Skip to main content
Version: 1.17.1

Class: InitChainConfigV2

Defined in: cct/solana/token-pool/operations/init-chain-config-v2.ts:55

Creates a CCIP 2.0 token pool's ChainConfigV2 for a remote chain: the lane's allowed finality, token transfer fees, and CCVs. Also creates, if missing, the fee vault token account where the lane's in-token BPS fee accrues.

Remarks​

authority must be the pool owner and pays the rent. The config must not exist yet; replace it with editChainConfigV2.

Extends​

Constructors​

Constructor​

new InitChainConfigV2(): InitChainConfigV2

Returns​

InitChainConfigV2

Inherited from​

SolanaOperation<ChainConfigV2Params, UnsignedSolanaTx, ParsedChainConfigV2Params>.constructor

Properties​

name​

readonly name: "initChainConfigV2" = 'initChainConfigV2'

Defined in: cct/solana/token-pool/operations/init-chain-config-v2.ts:60

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/init-chain-config-v2.ts:68

Builds the unsigned Solana init_chain_config_v2 instruction.

Parameters​

ParameterType
chainSolanaChain
optsParsedChainConfigV2Params

Returns​

Promise<UnsignedSolanaTx>

Overrides​

SolanaOperation.buildUnsigned


execute()​

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

Defined in: cct/solana/token-pool/operations/init-chain-config-v2.ts:108

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

Parameters​

ParameterType
chainSolanaChain
paramsExecuteInitChainConfigV2Params

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: GenerateInitChainConfigV2Params): ParsedChainConfigV2Params

Defined in: cct/solana/token-pool/operations/init-chain-config-v2.ts:63

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

Parameters​

ParameterType
paramsGenerateInitChainConfigV2Params

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