Skip to main content
Version: 1.15.0

Class: EditChainRemoteConfig

Defined in: cct/solana/token-pool/operations/edit-chain-remote-config.ts:86

Replaces an initialized remote-chain config.

Remarks​

Full replacement, not a partial update — pass the complete intended config for all three fields, or omitted values are cleared. For example, remotePoolAddresses: [] clears all remote pools.

Extends​

  • SolanaOperation<EditChainRemoteConfigParams, UnsignedSolanaTx, ParsedEditChainRemoteConfigParams>

Constructors​

Constructor​

new EditChainRemoteConfig(): EditChainRemoteConfig

Returns​

EditChainRemoteConfig

Inherited from​

SolanaOperation< EditChainRemoteConfigParams, UnsignedSolanaTx, ParsedEditChainRemoteConfigParams >.constructor

Properties​

name​

readonly name: "editChainRemoteConfig" = 'editChainRemoteConfig'

Defined in: cct/solana/token-pool/operations/edit-chain-remote-config.ts:91

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:36

Multi-transaction safety policy; resource splitting requires an operation-specific audit.

Inherited from​

SolanaOperation.splitMode

Methods​

buildUnsigned()​

protected buildUnsigned(chain: SolanaChain, opts: ParsedEditChainRemoteConfigParams): Promise<UnsignedSolanaTx>

Defined in: cct/solana/token-pool/operations/edit-chain-remote-config.ts:134

Builds the unsigned Solana editChainRemoteConfig instruction.

Parameters​

ParameterType
chainSolanaChain
optsParsedEditChainRemoteConfigParams

Returns​

Promise<UnsignedSolanaTx>

Overrides​

SolanaOperation.buildUnsigned


execute()​

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

Defined in: cct/solana/token-pool/operations/edit-chain-remote-config.ts:168

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

Parameters​

ParameterType
chainSolanaChain
paramsExecuteEditChainRemoteConfigParams

Returns​

Promise<TransactionResult>

Overrides​

SolanaOperation.execute


generate()​

generate(chain: SolanaChain, params: SolanaGenerateParams<EditChainRemoteConfigParams>): Promise<UnsignedSolanaTx>

Defined in: cct/solana/operation.ts:42

Run prepare and buildUnsigned; no signing.

Parameters​

ParameterType
chainSolanaChain
paramsSolanaGenerateParams<EditChainRemoteConfigParams>

Returns​

Promise<UnsignedSolanaTx>

Inherited from​

SolanaOperation.generate


parse()​

protected parse(params: GenerateEditChainRemoteConfigParams): ParsedEditChainRemoteConfigParams

Defined in: cct/solana/token-pool/operations/edit-chain-remote-config.ts:94

Parses config values and defaults authority to payer without mutating caller params.

Parameters​

ParameterType
paramsGenerateEditChainRemoteConfigParams

Returns​

ParsedEditChainRemoteConfigParams

Overrides​

SolanaOperation.parse


prepare()​

protected prepare(params: SolanaGenerateParams): ParsedEditChainRemoteConfigParams

Defined in: cct/operation.ts:48

validate then parse — the single pre-RPC step, before any chain access.

Parameters​

ParameterType
paramsSolanaGenerateParams

Returns​

ParsedEditChainRemoteConfigParams

Inherited from​

SolanaOperation.prepare


prepareWalletExecution()​

protected prepareWalletExecution(params: SolanaExecuteParams<EditChainRemoteConfigParams>): { computeUnits: number | undefined; parsed: ParsedEditChainRemoteConfigParams; payer: PublicKey; wallet: Wallet; }

Defined in: cct/solana/operation.ts:47

Validates the wallet and prepares signed execution parameters with it as payer.

Parameters​

ParameterType
paramsSolanaExecuteParams<EditChainRemoteConfigParams>

Returns​

{ computeUnits: number | undefined; parsed: ParsedEditChainRemoteConfigParams; payer: PublicKey; wallet: Wallet; }

computeUnits​

computeUnits: number | undefined

parsed​

parsed: ParsedEditChainRemoteConfigParams

payer​

payer: PublicKey

wallet​

wallet: Wallet

Inherited from​

SolanaOperation.prepareWalletExecution


validate()​

protected validate(_params: SolanaGenerateParams): void

Defined in: cct/operation.ts:36

Reject invalid params before any chain RPC. No-op by default: an op that normalizes as it checks does that work in parse instead, and needs no empty stub here.

Parameters​

ParameterType
_paramsSolanaGenerateParams

Returns​

void

Inherited from​

SolanaOperation.validate