Function: resolveAnyTokenPool()
resolveAnyTokenPool(
chain:EVMChain,address:string):Promise<{type:"BurnMintTokenPool"|"BurnFromMintTokenPool"|"BurnWithFromMintTokenPool"|"BurnToAddressTokenPool"|"BurnMintWithLockReleaseFlagTokenPool"|"LockReleaseTokenPool"|"SiloedLockReleaseTokenPool";version:TokenPoolVersion; } | {type:"USDCTokenPool"|"USDCTokenPoolCCTPV2"|"SiloedUSDCTokenPool"|"CCTPThroughCCVTokenPool";version:USDCTokenPoolVersion; }>
Defined in: cct/evm/token-pool/contracts.ts:299
resolveTokenPool with the USDC/CCTP pools accepted. Only for reads that hold for every
recognized pool (getTokenPoolState); every other op uses resolveTokenPool.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
address | string |
Returns
Promise<{ type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"; version: TokenPoolVersion; } | { type: "USDCTokenPool" | "USDCTokenPoolCCTPV2" | "SiloedUSDCTokenPool" | "CCTPThroughCCVTokenPool"; version: USDCTokenPoolVersion; }>
Throws
CCTContractTypeInvalidError if the reported type is not a recognized pool type
Throws
CCTContractVersionUnsupportedError if the reported version is not a known pool version