Function: resolveTokenPool()
resolveTokenPool(
chain:EVMChain,address:string):Promise<{type:"BurnMintTokenPool"|"BurnFromMintTokenPool"|"BurnWithFromMintTokenPool"|"BurnToAddressTokenPool"|"BurnMintWithLockReleaseFlagTokenPool"|"LockReleaseTokenPool"|"SiloedLockReleaseTokenPool";version:TokenPoolVersion; }>
Defined in: cct/evm/token-pool/contracts.ts:172
Resolves an on-chain pool's type + version from its typeAndVersion, narrowed to a known
TokenPoolType and TokenPoolVersion.
Parameters
| Parameter | Type |
|---|---|
chain | EVMChain |
address | string |
Returns
Promise<{ type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"; version: TokenPoolVersion; }>
Throws
CCTContractTypeInvalidError if the reported type is not a supported pool type
Throws
CCTContractVersionUnsupportedError if the reported version is not a known pool version
Remarks
Exact match only; see TokenPoolVersion.