Skip to main content
Version: 1.17.1

Class: EditChainConfigV2

Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:51

Replaces a CCIP 2.0 token pool's ChainConfigV2 for a remote chain: the lane's allowed finality, token transfer fees, and CCVs.

Remarks​

Every field is replaced, and omitted ones reset to their defaults; read the current config with getTokenPoolConfig to change only some. authority must be the pool owner and pays for any growth of the account. The config must exist; create it with initChainConfigV2.

Extends​

Constructors​

Constructor​

new EditChainConfigV2(): EditChainConfigV2

Returns​

EditChainConfigV2

Inherited from​

SolanaOperation<ChainConfigV2Params, UnsignedSolanaTx, ParsedChainConfigV2Params>.constructor

Properties​

name​

readonly name: "editChainConfigV2" = 'editChainConfigV2'

Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:56

camelCase id; matches the token-manager facade method and error context.

Overrides​

SolanaOperation.name


splitMode​

protected readonly splitMode: 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()​

protected buildUnsigned(chain: SolanaChain, opts: ParsedChainConfigV2Params): Promise<UnsignedSolanaTx>

Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:64

Builds the unsigned Solana edit_chain_config_v2 instruction.

Parameters​

ParameterType
chainSolanaChain
optsParsedChainConfigV2Params

Returns​

Promise<UnsignedSolanaTx>

Overrides​

SolanaOperation.buildUnsigned


execute()​

execute(chain: SolanaChain, params: ExecuteEditChainConfigV2Params): Promise<TransactionResult>

Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:96

Generate, sign, simulate, send, and confirm with the pool owner wallet.

Parameters​

ParameterType
chainSolanaChain
paramsExecuteEditChainConfigV2Params

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​

ParameterType
chainSolanaChain
paramsSolanaGenerateParams<ChainConfigV2Params>

Returns​

Promise<UnsignedSolanaTx>

Inherited from​

SolanaOperation.generate


prepare()​

protected prepare(params: GenerateEditChainConfigV2Params): ParsedChainConfigV2Params

Defined in: cct/solana/token-pool/operations/edit-chain-config-v2.ts:59

Parses and validates the config as the pool program does, before any RPC.

Parameters​

ParameterType
paramsGenerateEditChainConfigV2Params

Returns​

ParsedChainConfigV2Params

Overrides​

SolanaOperation.prepare


prepareWalletExecution()​

protected prepareWalletExecution(chain: SolanaChain, params: SolanaExecuteParams<ChainConfigV2Params>): { computeUnits: number | undefined; parsed: ParsedChainConfigV2Params; payer: PublicKey; wallet: Wallet; }

Defined in: cct/solana/operation.ts:60

Validates the wallet and prepares signed execution parameters with it as payer.

Parameters​

ParameterType
chainSolanaChain
paramsSolanaExecuteParams<ChainConfigV2Params>

Returns​

{ computeUnits: number | undefined; parsed: ParsedChainConfigV2Params; payer: PublicKey; wallet: Wallet; }

computeUnits​

computeUnits: number | undefined

parsed​

parsed: ParsedChainConfigV2Params

payer​

payer: PublicKey

wallet​

wallet: Wallet

Inherited from​

SolanaOperation.prepareWalletExecution