Skip to main content
Version: 1.16.0

Function: getTokenPoolInterface()

getTokenPoolInterface(type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool", version: TokenPoolVersion): Interface

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

Returns the cached pool Interface for type and version, selected by the type's TokenPoolFamily. Never throws when both came from parseTokenPoolVersion.

Parameters​

ParameterType
type"BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"
versionTokenPoolVersion

Returns​

Interface

Throws​

CCTContractVersionUnsupportedError if the type's family never shipped at version