Class: InitChainRemoteConfig
Defined in: cct/solana/token-pool/operations/init-chain-remote-config.ts:75
Initializes a previously unconfigured remote-chain config.
Remarks
Fails if the chain config already exists.
Extends
SolanaOperation<InitChainRemoteConfigParams,UnsignedSolanaTx,ParsedInitChainRemoteConfigParams>
Constructors
Constructor
new InitChainRemoteConfig():
InitChainRemoteConfig
Returns
InitChainRemoteConfig
Inherited from
SolanaOperation< InitChainRemoteConfigParams, UnsignedSolanaTx, ParsedInitChainRemoteConfigParams >.constructor
Properties
name
readonlyname:"initChainRemoteConfig"='initChainRemoteConfig'
Defined in: cct/solana/token-pool/operations/init-chain-remote-config.ts:80
camelCase id; matches the token-manager facade method and error context.
Overrides
SolanaOperation.name
splitMode
protectedreadonlysplitMode: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()
protectedbuildUnsigned(chain:SolanaChain,opts:ParsedInitChainRemoteConfigParams):Promise<UnsignedSolanaTx>
Defined in: cct/solana/token-pool/operations/init-chain-remote-config.ts:112
Builds the unsigned Solana initChainRemoteConfig instruction.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
opts | ParsedInitChainRemoteConfigParams |
Returns
Promise<UnsignedSolanaTx>
Overrides
SolanaOperation.buildUnsigned
execute()
execute(
chain:SolanaChain,params:ExecuteInitChainRemoteConfigParams):Promise<TransactionResult>
Defined in: cct/solana/token-pool/operations/init-chain-remote-config.ts:144
Generate, sign, simulate, send, and confirm with the pool owner wallet.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | ExecuteInitChainRemoteConfigParams |
Returns
Promise<TransactionResult>
Overrides
SolanaOperation.execute
generate()
generate(
chain:SolanaChain,params:SolanaGenerateParams<InitChainRemoteConfigParams>):Promise<UnsignedSolanaTx>
Defined in: cct/solana/operation.ts:42
Run prepare and buildUnsigned; no signing.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | SolanaGenerateParams<InitChainRemoteConfigParams> |
Returns
Promise<UnsignedSolanaTx>
Inherited from
SolanaOperation.generate
parse()
protectedparse(params:GenerateInitChainRemoteConfigParams):ParsedInitChainRemoteConfigParams
Defined in: cct/solana/token-pool/operations/init-chain-remote-config.ts:83
Parses config values and defaults authority to payer without mutating caller params.
Parameters
| Parameter | Type |
|---|---|
params | GenerateInitChainRemoteConfigParams |
Returns
ParsedInitChainRemoteConfigParams
Overrides
SolanaOperation.parse
prepare()
protectedprepare(params:SolanaGenerateParams):ParsedInitChainRemoteConfigParams
Defined in: cct/operation.ts:48
validate then parse — the single pre-RPC step, before any chain access.
Parameters
| Parameter | Type |
|---|---|
params | SolanaGenerateParams |
Returns
ParsedInitChainRemoteConfigParams
Inherited from
SolanaOperation.prepare
prepareWalletExecution()
protectedprepareWalletExecution(params:SolanaExecuteParams<InitChainRemoteConfigParams>): {computeUnits:number|undefined;parsed:ParsedInitChainRemoteConfigParams;payer:PublicKey;wallet:Wallet; }
Defined in: cct/solana/operation.ts:47
Validates the wallet and prepares signed execution parameters with it as payer.
Parameters
| Parameter | Type |
|---|---|
params | SolanaExecuteParams<InitChainRemoteConfigParams> |
Returns
{ computeUnits: number | undefined; parsed: ParsedInitChainRemoteConfigParams; payer: PublicKey; wallet: Wallet; }
computeUnits
computeUnits:
number|undefined
parsed
parsed:
ParsedInitChainRemoteConfigParams
payer
payer:
PublicKey
wallet
wallet:
Wallet
Inherited from
SolanaOperation.prepareWalletExecution
validate()
protectedvalidate(_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
| Parameter | Type |
|---|---|
_params | SolanaGenerateParams |
Returns
void
Inherited from
SolanaOperation.validate