Class: WithdrawLiquidity
Defined in: cct/solana/token-pool/operations/withdraw-liquidity.ts:62
Withdraws tokens from a lock-release pool into a rebalancer's associated token account.
Extends
SolanaOperation<WithdrawLiquidityParams,UnsignedSolanaTx,ParsedWithdrawLiquidityParams>
Constructors
Constructor
new WithdrawLiquidity():
WithdrawLiquidity
Returns
WithdrawLiquidity
Inherited from
SolanaOperation< WithdrawLiquidityParams, UnsignedSolanaTx, ParsedWithdrawLiquidityParams >.constructor
Properties
name
readonlyname:"withdrawLiquidity"='withdrawLiquidity'
Defined in: cct/solana/token-pool/operations/withdraw-liquidity.ts:67
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:ParsedWithdrawLiquidityParams):Promise<UnsignedSolanaTx>
Defined in: cct/solana/token-pool/operations/withdraw-liquidity.ts:94
Builds the unsigned Solana withdrawLiquidity instruction for a lock-release pool.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
opts | ParsedWithdrawLiquidityParams |
Returns
Promise<UnsignedSolanaTx>
Overrides
SolanaOperation.buildUnsigned
execute()
execute(
chain:SolanaChain,params:ExecuteWithdrawLiquidityParams):Promise<TransactionResult>
Defined in: cct/solana/token-pool/operations/withdraw-liquidity.ts:148
Generate, sign, simulate, send, and confirm with the rebalancer wallet.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | ExecuteWithdrawLiquidityParams |
Returns
Promise<TransactionResult>
Overrides
SolanaOperation.execute
generate()
generate(
chain:SolanaChain,params:SolanaGenerateParams<WithdrawLiquidityParams>):Promise<UnsignedSolanaTx>
Defined in: cct/solana/operation.ts:42
Run prepare and buildUnsigned; no signing.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | SolanaGenerateParams<WithdrawLiquidityParams> |
Returns
Promise<UnsignedSolanaTx>
Inherited from
SolanaOperation.generate
prepare()
protectedprepare(params:GenerateWithdrawLiquidityParams):ParsedWithdrawLiquidityParams
Defined in: cct/solana/token-pool/operations/withdraw-liquidity.ts:70
Parses public keys, validates amount, and defaults authority to payer without mutating caller params.
Parameters
| Parameter | Type |
|---|---|
params | GenerateWithdrawLiquidityParams |
Returns
ParsedWithdrawLiquidityParams
Overrides
SolanaOperation.prepare
prepareWalletExecution()
protectedprepareWalletExecution(params:SolanaExecuteParams<WithdrawLiquidityParams>): {computeUnits:number|undefined;parsed:ParsedWithdrawLiquidityParams;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<WithdrawLiquidityParams> |
Returns
{ computeUnits: number | undefined; parsed: ParsedWithdrawLiquidityParams; payer: PublicKey; wallet: Wallet; }
computeUnits
computeUnits:
number|undefined
parsed
parsed:
ParsedWithdrawLiquidityParams
payer
payer:
PublicKey
wallet
wallet:
Wallet
Inherited from
SolanaOperation.prepareWalletExecution