Function: resolveAdvancedPoolHooks()
resolveAdvancedPoolHooks(
operation:string,chain:EVMChain,poolAddress:string):Promise<string>
Defined in: cct/evm/advanced-pool-hooks/contracts.ts:280
Resolves the AdvancedPoolHooks bound to a v2.0.0 pool, probing the bound address since the
pool binds any address unchecked.
Parameters
| Parameter | Type |
|---|---|
operation | string |
chain | EVMChain |
poolAddress | string |
Returns
Promise<string>
Remarks
Read when the tx is built, not when it executes.
Throws
CCTOperationUnsupportedError on a pre-v2.0.0 pool
Throws
CCTParamsInvalidError (param poolAddress) if the pool has no hooks bound
Throws
CCTContractTypeInvalidError if the pool's type is unsupported, or the bound
address is not AdvancedPoolHooks
Throws
CCTContractVersionUnsupportedError if the pool reports an unknown version