Skip to main content
Version: 1.15.0

Function: assertSiloedLockReleasePool()

assertSiloedLockReleasePool(operation: string, poolAddress: string, type: "BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"): void

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

Guards a per-lane siloed op: the silo functions (v1.6.x) and the lane → lockbox functions (v2.0.0) are declared only by SiloedLockReleaseTokenPool, so without this the op would hand another family's Interface an unknown function name and fail as an opaque ethers error.

Parameters​

ParameterTypeDescription
operationstringOperation name, for the error's context.
poolAddressstringToken pool being acted on.
type"BurnMintTokenPool" | "BurnFromMintTokenPool" | "BurnWithFromMintTokenPool" | "BurnToAddressTokenPool" | "BurnMintWithLockReleaseFlagTokenPool" | "LockReleaseTokenPool" | "SiloedLockReleaseTokenPool"Pool type, as resolved by resolveTokenPool.

Returns​

void

Remarks​

The siloed counterpart of assertNonSiloedLockReleasePool. A non-siloed LockReleaseTokenPool gets a pointer to its single-bucket equivalents, since that is the likeliest mix-up.

Throws​

CCTContractTypeInvalidError if type is not SiloedLockReleaseTokenPool