@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
44 lines • 4.25 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs';
export declare const INITIALIZE_TICK_ARRAY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getInitializeTickArrayDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type InitializeTickArrayInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpool extends string | AccountMeta<string> = string, TAccountFunder extends string | AccountMeta<string> = string, TAccountTickArray extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpool extends string ? ReadonlyAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountFunder extends string ? WritableSignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder, TAccountTickArray extends string ? WritableAccount<TAccountTickArray> : TAccountTickArray, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
export type InitializeTickArrayInstructionData = {
discriminator: ReadonlyUint8Array;
startTickIndex: number;
};
export type InitializeTickArrayInstructionDataArgs = {
startTickIndex: number;
};
export declare function getInitializeTickArrayInstructionDataEncoder(): FixedSizeEncoder<InitializeTickArrayInstructionDataArgs>;
export declare function getInitializeTickArrayInstructionDataDecoder(): FixedSizeDecoder<InitializeTickArrayInstructionData>;
export declare function getInitializeTickArrayInstructionDataCodec(): FixedSizeCodec<InitializeTickArrayInstructionDataArgs, InitializeTickArrayInstructionData>;
export type InitializeTickArrayInput<TAccountWhirlpool extends string = string, TAccountFunder extends string = string, TAccountTickArray extends string = string, TAccountSystemProgram extends string = string> = {
whirlpool: Address<TAccountWhirlpool>;
funder: TransactionSigner<TAccountFunder>;
tickArray: Address<TAccountTickArray>;
systemProgram?: Address<TAccountSystemProgram>;
startTickIndex: InitializeTickArrayInstructionDataArgs["startTickIndex"];
};
export declare function getInitializeTickArrayInstruction<TAccountWhirlpool extends string, TAccountFunder extends string, TAccountTickArray extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: InitializeTickArrayInput<TAccountWhirlpool, TAccountFunder, TAccountTickArray, TAccountSystemProgram>, config?: {
programAddress?: TProgramAddress;
}): InitializeTickArrayInstruction<TProgramAddress, TAccountWhirlpool, TAccountFunder, TAccountTickArray, TAccountSystemProgram>;
export type ParsedInitializeTickArrayInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpool: TAccountMetas[0];
funder: TAccountMetas[1];
tickArray: TAccountMetas[2];
systemProgram: TAccountMetas[3];
};
data: InitializeTickArrayInstructionData;
};
export declare function parseInitializeTickArrayInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeTickArrayInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=initializeTickArray.d.ts.map