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
SolanaOperation<ChainConfigV2Params,UnsignedSolanaTx,ParsedChainConfigV2Params>
Constructors
Constructor
new EditChainConfigV2():
EditChainConfigV2
Returns
EditChainConfigV2
Inherited from
SolanaOperation<ChainConfigV2Params, UnsignedSolanaTx, ParsedChainConfigV2Params>.constructor
Properties
name
readonlyname:"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
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: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
| Parameter | Type |
|---|---|
chain | SolanaChain |
opts | ParsedChainConfigV2Params |
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
| 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):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
| Parameter | Type |
|---|---|
params | GenerateEditChainConfigV2Params |
Returns
Overrides
SolanaOperation.prepare
prepareWalletExecution()
protectedprepareWalletExecution(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
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | SolanaExecuteParams<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