Function: readTokenPoolAdvancedPoolHooks()
readTokenPoolAdvancedPoolHooks(
chain:EVMChain,poolAddress:string):Promise<string>
Defined in: cct/evm/token-pool/contracts.ts:392
Reads the AdvancedPoolHooks contract bound to a v2.0.0 pool in one eth_call.
Parameters
| Parameter | Type | Description |
|---|---|---|
chain | EVMChain | Chain to read from. |
poolAddress | string | v2.0.0 token pool to read. |
Returns
Promise<string>
The bound hooks contract, checksummed; the zero address when none is bound, which means the pool enforces no allowlist and no CCV requirements.
Remarks
Callers must resolve and require v2.0.0 first: the hooks binding was introduced with
that pool interface. The getter is declared on the v2.0.0 TokenPool base and inherited
unchanged by every pool family, so the BurnMint ABI resolves it for a LockRelease pool too.