Skip to main content
Version: 1.15.0

Function: readTokenPoolAllowlist()

readTokenPoolAllowlist(chain: EVMChain, poolAddress: string): Promise<{ enabled: boolean; entries: string[]; }>

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

Reads a sender allowlist and whether the feature is enabled at all, in two parallel eth_calls.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
poolAddressstringAllowlist holder to read from, as returned by resolveAllowlistHolder: a v1.5.0–v1.6.1 pool or an AdvancedPoolHooks.

Returns​

Promise<{ enabled: boolean; entries: string[]; }>

enabled, and the current entries checksummed (empty when disabled).

Remarks​

Same rationale as readTokenPoolOwner for not routing through getTokenPoolState, which does not expose the allowlist.