Skip to main content
Version: 1.17.1

Function: toSetChainConfigV2Args()

toSetChainConfigV2Args(opts: ParsedChainConfigV2Params): { allowedFinalityConfig: { blockDepth: number; flags: number; }; ccvConfig: { inboundCcvs: PublicKey[]; outboundCcvs: PublicKey[]; thresholdAmount: BN; thresholdInboundCcvs: PublicKey[]; thresholdOutboundCcvs: PublicKey[]; }; mint: PublicKey; remoteChainSelector: BN; tokenTransferFeeConfig: { destBytesOverhead: number; destGasOverhead: number; fastFinalityBpsFee: number; fastFinalityFee: number; finalityBpsFee: number; finalityFee: number; isEnabled: boolean; }; }

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

Encodes parsed params as the program's SetChainConfigV2Params instruction argument.

Parameters​

ParameterType
optsParsedChainConfigV2Params

Returns​

{ allowedFinalityConfig: { blockDepth: number; flags: number; }; ccvConfig: { inboundCcvs: PublicKey[]; outboundCcvs: PublicKey[]; thresholdAmount: BN; thresholdInboundCcvs: PublicKey[]; thresholdOutboundCcvs: PublicKey[]; }; mint: PublicKey; remoteChainSelector: BN; tokenTransferFeeConfig: { destBytesOverhead: number; destGasOverhead: number; fastFinalityBpsFee: number; fastFinalityFee: number; finalityBpsFee: number; finalityFee: number; isEnabled: boolean; }; }

allowedFinalityConfig​

allowedFinalityConfig: { blockDepth: number; flags: number; } = opts.allowedFinalityConfig

allowedFinalityConfig.blockDepth​

blockDepth: number

allowedFinalityConfig.flags​

flags: number

ccvConfig​

ccvConfig: { inboundCcvs: PublicKey[]; outboundCcvs: PublicKey[]; thresholdAmount: BN; thresholdInboundCcvs: PublicKey[]; thresholdOutboundCcvs: PublicKey[]; }

ccvConfig.inboundCcvs​

inboundCcvs: PublicKey[] = opts.ccvConfig.inboundCCVs

ccvConfig.outboundCcvs​

outboundCcvs: PublicKey[] = opts.ccvConfig.outboundCCVs

ccvConfig.thresholdAmount​

thresholdAmount: BN

ccvConfig.thresholdInboundCcvs​

thresholdInboundCcvs: PublicKey[] = opts.ccvConfig.thresholdInboundCCVs

ccvConfig.thresholdOutboundCcvs​

thresholdOutboundCcvs: PublicKey[] = opts.ccvConfig.thresholdOutboundCCVs

mint​

mint: PublicKey = opts.tokenAddress

remoteChainSelector​

remoteChainSelector: BN

tokenTransferFeeConfig​

tokenTransferFeeConfig: { destBytesOverhead: number; destGasOverhead: number; fastFinalityBpsFee: number; fastFinalityFee: number; finalityBpsFee: number; finalityFee: number; isEnabled: boolean; } = opts.tokenTransferFeeConfig

tokenTransferFeeConfig.destBytesOverhead​

destBytesOverhead: number

tokenTransferFeeConfig.destGasOverhead​

destGasOverhead: number

tokenTransferFeeConfig.fastFinalityBpsFee​

fastFinalityBpsFee: number

tokenTransferFeeConfig.fastFinalityFee​

fastFinalityFee: number

tokenTransferFeeConfig.finalityBpsFee​

finalityBpsFee: number

tokenTransferFeeConfig.finalityFee​

finalityFee: number

tokenTransferFeeConfig.isEnabled​

isEnabled: boolean