Skip to main content
Version: 1.15.0

Function: resolveAllowlistHolder()

resolveAllowlistHolder(chain: EVMChain, poolAddress: string): Promise<{ holder: string; type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"; version: TokenPoolVersion; }>

Defined in: cct/evm/token-pool/contracts.ts:489

Resolves the contract holding a pool's sender allowlist: the pool itself on v1.5.0–v1.6.1. A v2.0.0 pool has no allowlist of its own and enforces the one on its bound AdvancedPoolHooks, which may back several pools at once.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
poolAddressstringToken pool to resolve.

Returns​

Promise<{ holder: string; type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"; version: TokenPoolVersion; }>

The pool's type + version, and holder checksummed: the zero address for a v2.0.0 pool with no hooks bound, which enforces no allowlist.

Throws​

CCTContractTypeInvalidError if the address is not a supported pool type

Throws​

CCTContractVersionUnsupportedError if the pool reports an unknown version