Function: parseTokenPoolVersion()
parseTokenPoolVersion(
__namedParameters: {address:string;contractType:string;version:string; }): {type:"BurnMintTokenPool"|"BurnFromMintTokenPool"|"BurnWithFromMintTokenPool"|"BurnToAddressTokenPool"|"BurnMintWithLockReleaseFlagTokenPool"|"LockReleaseTokenPool"|"SiloedLockReleaseTokenPool";version:TokenPoolVersion; }
Defined in: cct/evm/token-pool/contracts.ts:137
Narrows raw typeAndVersion strings to a known TokenPoolType and
TokenPoolVersion. A v1.5.0 *AndProxy type normalizes to its base pool type.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { address: string; contractType: string; version: string; } |
__namedParameters.address | string |
__namedParameters.contractType | string |
__namedParameters.version | string |
Returns
{ type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"; version: TokenPoolVersion; }
type
type:
"BurnMintTokenPool"|"BurnFromMintTokenPool"|"BurnWithFromMintTokenPool"|"BurnToAddressTokenPool"|"BurnMintWithLockReleaseFlagTokenPool"|"LockReleaseTokenPool"|"SiloedLockReleaseTokenPool"
version
version:
TokenPoolVersion
Throws
CCTContractTypeInvalidError if contractType is not a supported pool type
Throws
CCTContractVersionUnsupportedError if version is not a known pool version, or
is 1.6.0 on a type other than SiloedLockReleaseTokenPool