Class: EditChainConfigV2
Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:79
Edits a CCIP 2.0 token pool's ChainConfigV2 for a remote chain: the lane's allowed finality,
token transfer fees, and CCVs.
Remarks
Each of allowedFinality, tokenTransferFeeConfig and ccvConfig replaces that part
of the config in full when passed, and keeps its current value when omitted: the current config
is read when the transaction is built and written back unchanged (ccvConfig: {} clears the
CCVs). authority must be the pool owner and pays for any growth of the account. The config
must exist; create it with initChainConfigV2.
Extends
SolanaOperation<ChainConfigV2Params,UnsignedSolanaTx,ParsedEditChainConfigV2Params>
Constructors
Constructor
new EditChainConfigV2():
EditChainConfigV2
Returns
EditChainConfigV2
Inherited from
SolanaOperation<ChainConfigV2Params, UnsignedSolanaTx, ParsedEditChainConfigV2Params>.constructor
Properties
name
readonlyname:"editChainConfigV2"='editChainConfigV2'
Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:84
camelCase id; matches the token-manager facade method and error context.
Overrides
SolanaOperation.name
splitMode
protectedreadonlysplitMode:SolanaSplitMode='atomic'
Defined in: cct/solana/operation.ts:48
Multi-transaction safety policy; resource splitting requires an operation-specific audit.
Inherited from
SolanaOperation.splitMode
Methods
buildUnsigned()
protectedbuildUnsigned(chain:SolanaChain,opts:ParsedEditChainConfigV2Params):Promise<UnsignedSolanaTx>
Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:102
Builds the unsigned Solana edit_chain_config_v2 instruction, carrying over the lane's current
value of each omitted config field.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
opts | ParsedEditChainConfigV2Params |
Returns
Promise<UnsignedSolanaTx>
Throws
CCIPTokenPoolChainConfigNotFoundError if a config field was omitted and the lane
has no ChainConfigV2 to keep it from.
Overrides
SolanaOperation.buildUnsigned
execute()
execute(
chain:SolanaChain,params:ExecuteEditChainConfigV2Params):Promise<TransactionResult>
Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:159
Generate, sign, simulate, send, and confirm with the pool owner wallet.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | ExecuteEditChainConfigV2Params |
Returns
Promise<TransactionResult>
Overrides
SolanaOperation.execute
generate()
generate(
chain:SolanaChain,params:SolanaGenerateParams<ChainConfigV2Params>):Promise<UnsignedSolanaTx>
Defined in: cct/solana/operation.ts:54
Run prepare and buildUnsigned; no signing.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | SolanaGenerateParams<ChainConfigV2Params> |
Returns
Promise<UnsignedSolanaTx>
Inherited from
SolanaOperation.generate
prepare()
protectedprepare(params:GenerateEditChainConfigV2Params):ParsedEditChainConfigV2Params
Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:87
Parses and validates the config as the pool program does, before any RPC.
Parameters
| Parameter | Type |
|---|---|
params | GenerateEditChainConfigV2Params |
Returns
ParsedEditChainConfigV2Params
Overrides
SolanaOperation.prepare
prepareWalletExecution()
protectedprepareWalletExecution(chain:SolanaChain,params:SolanaExecuteParams<ChainConfigV2Params>): {computeUnits:number|undefined;parsed:ParsedEditChainConfigV2Params;payer:PublicKey;wallet:Wallet; }
Defined in: cct/solana/operation.ts:60
Validates the wallet and prepares signed execution parameters with it as payer.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | SolanaExecuteParams<ChainConfigV2Params> |
Returns
{ computeUnits: number | undefined; parsed: ParsedEditChainConfigV2Params; payer: PublicKey; wallet: Wallet; }
computeUnits
computeUnits:
number|undefined
parsed
parsed:
ParsedEditChainConfigV2Params
payer
payer:
PublicKey
wallet
wallet:
Wallet
Inherited from
SolanaOperation.prepareWalletExecution