@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
46 lines • 4.52 kB
TypeScript
/**
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { LB_CLMM_PROGRAM_ADDRESS } from '../programs';
export declare const SET_LOCK_RELEASE_SLOT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetLockReleaseSlotDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type SetLockReleaseSlotInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountPosition extends string | AccountMeta<string> = string, TAccountLbPair extends string | AccountMeta<string> = string, TAccountSender extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition, TAccountLbPair extends string ? ReadonlyAccount<TAccountLbPair> : TAccountLbPair, TAccountSender extends string ? ReadonlySignerAccount<TAccountSender> & AccountSignerMeta<TAccountSender> : TAccountSender, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
export type SetLockReleaseSlotInstructionData = {
discriminator: ReadonlyUint8Array;
newLockReleaseSlot: bigint;
};
export type SetLockReleaseSlotInstructionDataArgs = {
newLockReleaseSlot: number | bigint;
};
export declare function getSetLockReleaseSlotInstructionDataEncoder(): FixedSizeEncoder<SetLockReleaseSlotInstructionDataArgs>;
export declare function getSetLockReleaseSlotInstructionDataDecoder(): FixedSizeDecoder<SetLockReleaseSlotInstructionData>;
export declare function getSetLockReleaseSlotInstructionDataCodec(): FixedSizeCodec<SetLockReleaseSlotInstructionDataArgs, SetLockReleaseSlotInstructionData>;
export type SetLockReleaseSlotInput<TAccountPosition extends string = string, TAccountLbPair extends string = string, TAccountSender extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
position: Address<TAccountPosition>;
lbPair: Address<TAccountLbPair>;
sender: TransactionSigner<TAccountSender>;
eventAuthority: Address<TAccountEventAuthority>;
program: Address<TAccountProgram>;
newLockReleaseSlot: SetLockReleaseSlotInstructionDataArgs["newLockReleaseSlot"];
};
export declare function getSetLockReleaseSlotInstruction<TAccountPosition extends string, TAccountLbPair extends string, TAccountSender extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof LB_CLMM_PROGRAM_ADDRESS>(input: SetLockReleaseSlotInput<TAccountPosition, TAccountLbPair, TAccountSender, TAccountEventAuthority, TAccountProgram>, config?: {
programAddress?: TProgramAddress;
}): SetLockReleaseSlotInstruction<TProgramAddress, TAccountPosition, TAccountLbPair, TAccountSender, TAccountEventAuthority, TAccountProgram>;
export type ParsedSetLockReleaseSlotInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
position: TAccountMetas[0];
lbPair: TAccountMetas[1];
sender: TAccountMetas[2];
eventAuthority: TAccountMetas[3];
program: TAccountMetas[4];
};
data: SetLockReleaseSlotInstructionData;
};
export declare function parseSetLockReleaseSlotInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetLockReleaseSlotInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setLockReleaseSlot.d.ts.map