-
address: Factory contract address or array of addresses (required) -
event: Factory creation event ABI or filtered event object (required)- Simple format:
AbiEvent<T>- Capture all factory events - Filtered format:
{ event: AbiEvent<T>, params: {...} }- Filter by indexed parameters
evmEventDecoder()itself uses. - Simple format:
-
childAddressField: How to extract the child contract address from the decoded factory event (required). Either- a key of the decoded event data (e.g.
'pool'), or - a function
(decodedEventData) => string | null. Returnnullto skip the event.
- a key of the decoded event data (e.g.
-
database: A factory store that persists the list of known child contracts (required). Accepts aFactoryPersistentAdapterinstance or aPromiseresolving to one, so you can pass the result ofcontractFactorySqliteStore()directly.
contractFactorySqliteStore
Create an SQLite factory database: an object used to persist the list of child contracts in a fork-aware way. For now, only SQLite-based factory databases are supported.contractFactory()’s database option as is.