Skip to main content
Version: 1.16.0

Type Alias: ApplyChainUpdatesParams

ApplyChainUpdatesParams = { chainsToAdd: ChainUpdate[]; poolAddress: string; remoteChainSelectorsToRemove: bigint[]; sender?: string; }

Defined in: cct/evm/token-pool/operations/apply-chain-updates.ts:79

Parameters for ApplyChainUpdates: additions and removals as two arrays, the shape of every pool from v1.5.1 up. A v1.5.0 pool is written with the same params — its legacy chains signature is derived from them once the pool's version is resolved, at no extra RPC.

Properties​

chainsToAdd​

chainsToAdd: ChainUpdate[]

Defined in: cct/evm/token-pool/operations/apply-chain-updates.ts:94

Lanes to add or reconfigure. To replace a lane's remote pools wholesale, list its selector here and in remoteChainSelectorsToRemove — the contract applies removals first, so that cross-array pairing stays legal. Within this array a selector may appear only once, and may not be 0n; holes are rejected too.


poolAddress​

poolAddress: string

Defined in: cct/evm/token-pool/operations/apply-chain-updates.ts:81

Token pool whose lanes are being configured.


remoteChainSelectorsToRemove​

remoteChainSelectorsToRemove: bigint[]

Defined in: cct/evm/token-pool/operations/apply-chain-updates.ts:99

Lanes to remove, applied before chainsToAdd. No duplicates and no holes; 0n is accepted here, so a pool already holding a junk lane can be cleaned up.


sender?​

optional sender?: string

Defined in: cct/evm/token-pool/operations/apply-chain-updates.ts:87

Pool owner; sets tx.from for offline / multisig signing. When supplied it is also pre-flighted against the pool's on-chain owner(), so an unauthorized caller fails here rather than as an opaque revert.