Skip to main content
Version: 1.15.0

Function: assertSiloedChain()

assertSiloedChain(operation: string, chain: EVMChain, poolAddress: string, remoteChainSelector: bigint): Promise<void>

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

Pre-flights that a lane is siloed on a v1.6.x siloed pool, since the per-lane liquidity and rebalancer writes revert ChainNotSiloed otherwise.

Parameters​

ParameterTypeDescription
operationstringOperation name, for the error's operation field.
chainEVMChainChain to read from.
poolAddressstringv1.6.x SiloedLockReleaseTokenPool being written to.
remoteChainSelectorbigintLane being acted on.

Returns​

Promise<void>

Remarks​

A property of the pool, not of the caller, so the ops run it with or without a sender. The error names both cures: designate the lane, or use the unsiloed-bucket ops.

Throws​

CCTParamsInvalidError if the lane is not siloed