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
SolanaQuery<GetCCVConfigParams,GetCCVConfigResult,ParsedGetCCVConfigParams>
Constructors
Constructor
new GetCCVConfig():
GetCCVConfig
Returns
GetCCVConfig
Inherited from
SolanaQuery<GetCCVConfigParams, GetCCVConfigResult, ParsedGetCCVConfigParams>.constructor
Properties
name
readonlyname:"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()
protectedprepare(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
| Parameter | Type |
|---|---|
params | GetCCVConfigParams |
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
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | GetCCVConfigParams |
Returns
Promise<Required<TokenPoolCCVConfig>>
Inherited from
SolanaQuery.query
read()
protectedread(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
| Parameter | Type |
|---|---|
chain | SolanaChain |
__namedParameters | ParsedGetCCVConfigParams |
Returns
Promise<Required<TokenPoolCCVConfig>>
Overrides
SolanaQuery.read