Skip to main content
Version: 1.15.0

Class: SetCanAcceptLiquidity

Defined in: cct/solana/token-pool/operations/set-can-accept-liquidity.ts:57

Sets whether a Solana lock-release token pool accepts liquidity.

Extends​

  • SolanaOperation<SetCanAcceptLiquidityParams, UnsignedSolanaTx, ParsedSetCanAcceptLiquidityParams>

Constructors​

Constructor​

new SetCanAcceptLiquidity(): SetCanAcceptLiquidity

Returns​

SetCanAcceptLiquidity

Inherited from​

SolanaOperation< SetCanAcceptLiquidityParams, UnsignedSolanaTx, ParsedSetCanAcceptLiquidityParams >.constructor

Properties​

name​

readonly name: "setCanAcceptLiquidity" = 'setCanAcceptLiquidity'

Defined in: cct/solana/token-pool/operations/set-can-accept-liquidity.ts:62

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: ParsedSetCanAcceptLiquidityParams): Promise<UnsignedSolanaTx>

Defined in: cct/solana/token-pool/operations/set-can-accept-liquidity.ts:88

Builds the unsigned Solana setCanAcceptLiquidity instruction.

Parameters​

ParameterType
chainSolanaChain
optsParsedSetCanAcceptLiquidityParams

Returns​

Promise<UnsignedSolanaTx>

Overrides​

SolanaOperation.buildUnsigned


execute()​

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

Defined in: cct/solana/token-pool/operations/set-can-accept-liquidity.ts:108

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

Parameters​

ParameterType
chainSolanaChain
paramsExecuteSetCanAcceptLiquidityParams

Returns​

Promise<TransactionResult>

Overrides​

SolanaOperation.execute


generate()​

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

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

Run prepare and buildUnsigned; no signing.

Parameters​

ParameterType
chainSolanaChain
paramsSolanaGenerateParams<SetCanAcceptLiquidityParams>

Returns​

Promise<UnsignedSolanaTx>

Inherited from​

SolanaOperation.generate


parse()​

protected parse(params: GenerateSetCanAcceptLiquidityParams): ParsedSetCanAcceptLiquidityParams

Defined in: cct/solana/token-pool/operations/set-can-accept-liquidity.ts:65

Parses public keys, validates allow, and defaults authority to payer.

Parameters​

ParameterType
paramsGenerateSetCanAcceptLiquidityParams

Returns​

ParsedSetCanAcceptLiquidityParams

Overrides​

SolanaOperation.parse


prepare()​

protected prepare(params: SolanaGenerateParams): ParsedSetCanAcceptLiquidityParams

Defined in: cct/operation.ts:48

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

Parameters​

ParameterType
paramsSolanaGenerateParams

Returns​

ParsedSetCanAcceptLiquidityParams

Inherited from​

SolanaOperation.prepare


prepareWalletExecution()​

protected prepareWalletExecution(params: SolanaExecuteParams<SetCanAcceptLiquidityParams>): { computeUnits: number | undefined; parsed: ParsedSetCanAcceptLiquidityParams; 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<SetCanAcceptLiquidityParams>

Returns​

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

computeUnits​

computeUnits: number | undefined

parsed​

parsed: ParsedSetCanAcceptLiquidityParams

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