@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
46 lines • 4.6 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 { LB_CLMM_PROGRAM_ADDRESS } from '../programs';
export declare const INCREASE_ORACLE_LENGTH_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getIncreaseOracleLengthDiscriminatorBytes(): ReadonlyUint8Array;
export type IncreaseOracleLengthInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountOracle extends string | AccountMeta<string> = string, TAccountFunder extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountOracle extends string ? WritableAccount<TAccountOracle> : TAccountOracle, TAccountFunder extends string ? WritableSignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
export type IncreaseOracleLengthInstructionData = {
discriminator: ReadonlyUint8Array;
lengthToAdd: bigint;
};
export type IncreaseOracleLengthInstructionDataArgs = {
lengthToAdd: number | bigint;
};
export declare function getIncreaseOracleLengthInstructionDataEncoder(): FixedSizeEncoder<IncreaseOracleLengthInstructionDataArgs>;
export declare function getIncreaseOracleLengthInstructionDataDecoder(): FixedSizeDecoder<IncreaseOracleLengthInstructionData>;
export declare function getIncreaseOracleLengthInstructionDataCodec(): FixedSizeCodec<IncreaseOracleLengthInstructionDataArgs, IncreaseOracleLengthInstructionData>;
export type IncreaseOracleLengthInput<TAccountOracle extends string = string, TAccountFunder extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
oracle: Address<TAccountOracle>;
funder: TransactionSigner<TAccountFunder>;
systemProgram?: Address<TAccountSystemProgram>;
eventAuthority: Address<TAccountEventAuthority>;
program: Address<TAccountProgram>;
lengthToAdd: IncreaseOracleLengthInstructionDataArgs["lengthToAdd"];
};
export declare function getIncreaseOracleLengthInstruction<TAccountOracle extends string, TAccountFunder extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof LB_CLMM_PROGRAM_ADDRESS>(input: IncreaseOracleLengthInput<TAccountOracle, TAccountFunder, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
programAddress?: TProgramAddress;
}): IncreaseOracleLengthInstruction<TProgramAddress, TAccountOracle, TAccountFunder, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
export type ParsedIncreaseOracleLengthInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
oracle: TAccountMetas[0];
funder: TAccountMetas[1];
systemProgram: TAccountMetas[2];
eventAuthority: TAccountMetas[3];
program: TAccountMetas[4];
};
data: IncreaseOracleLengthInstructionData;
};
export declare function parseIncreaseOracleLengthInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIncreaseOracleLengthInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=increaseOracleLength.d.ts.map