Skip to main content
Version: 1.17.1

Class: GetCCVConfig

Defined in: cct/solana/token-pool/operations/get-ccv-config.ts:39

Reads the CCVs a Solana CCIP 2.0 token pool requires on one remote chain's lane.

Extends​

Constructors​

Constructor​

new GetCCVConfig(): GetCCVConfig

Returns​

GetCCVConfig

Inherited from​

SolanaQuery<GetCCVConfigParams, GetCCVConfigResult, ParsedGetCCVConfigParams>.constructor

Properties​

name​

readonly name: "getCCVConfig" = 'getCCVConfig'

Defined in: cct/solana/token-pool/operations/get-ccv-config.ts:44

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

Overrides​

SolanaQuery.name

Methods​

prepare()​

protected prepare(params: GetCCVConfigParams): ParsedGetCCVConfigParams

Defined in: cct/solana/token-pool/operations/get-ccv-config.ts:50

Converts the mint and pool program, and validates the remote-chain selector.

Parameters​

ParameterType
paramsGetCCVConfigParams

Returns​

ParsedGetCCVConfigParams

Throws​

CCTParamsInvalidError if a parameter is invalid.

Overrides​

SolanaQuery.prepare


query()​

query(chain: SolanaChain, params: GetCCVConfigParams): Promise<Required<TokenPoolCCVConfig>>

Defined in: cct/solana/query.ts:20

Reads fresh account state; see refreshAccountState.

Parameters​

ParameterType
chainSolanaChain
paramsGetCCVConfigParams

Returns​

Promise<Required<TokenPoolCCVConfig>>

Inherited from​

SolanaQuery.query


read()​

protected read(chain: SolanaChain, __namedParameters: ParsedGetCCVConfigParams): Promise<Required<TokenPoolCCVConfig>>

Defined in: cct/solana/token-pool/operations/get-ccv-config.ts:64

Decodes the lane's ChainConfigV2; a lane without one requires no pool CCVs.

Parameters​

ParameterType
chainSolanaChain
__namedParametersParsedGetCCVConfigParams

Returns​

Promise<Required<TokenPoolCCVConfig>>

Overrides​

SolanaQuery.read