@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
40 lines • 4.04 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 { YVAULTS_PROGRAM_ADDRESS } from '../programs';
export declare const RESIZE_TOKEN_INFOS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getResizeTokenInfosDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type ResizeTokenInfosInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountTokenInfos extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountRent extends string | AccountMeta<string> = "SysvarRent111111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner, TAccountTokenInfos extends string ? WritableAccount<TAccountTokenInfos> : TAccountTokenInfos, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent, ...TRemainingAccounts]>;
export type ResizeTokenInfosInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type ResizeTokenInfosInstructionDataArgs = {};
export declare function getResizeTokenInfosInstructionDataEncoder(): FixedSizeEncoder<ResizeTokenInfosInstructionDataArgs>;
export declare function getResizeTokenInfosInstructionDataDecoder(): FixedSizeDecoder<ResizeTokenInfosInstructionData>;
export declare function getResizeTokenInfosInstructionDataCodec(): FixedSizeCodec<ResizeTokenInfosInstructionDataArgs, ResizeTokenInfosInstructionData>;
export type ResizeTokenInfosInput<TAccountSigner extends string = string, TAccountTokenInfos extends string = string, TAccountSystemProgram extends string = string, TAccountRent extends string = string> = {
signer: TransactionSigner<TAccountSigner>;
tokenInfos: Address<TAccountTokenInfos>;
systemProgram?: Address<TAccountSystemProgram>;
rent?: Address<TAccountRent>;
};
export declare function getResizeTokenInfosInstruction<TAccountSigner extends string, TAccountTokenInfos extends string, TAccountSystemProgram extends string, TAccountRent extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: ResizeTokenInfosInput<TAccountSigner, TAccountTokenInfos, TAccountSystemProgram, TAccountRent>, config?: {
programAddress?: TProgramAddress;
}): ResizeTokenInfosInstruction<TProgramAddress, TAccountSigner, TAccountTokenInfos, TAccountSystemProgram, TAccountRent>;
export type ParsedResizeTokenInfosInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
signer: TAccountMetas[0];
tokenInfos: TAccountMetas[1];
systemProgram: TAccountMetas[2];
rent: TAccountMetas[3];
};
data: ResizeTokenInfosInstructionData;
};
export declare function parseResizeTokenInfosInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedResizeTokenInfosInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=resizeTokenInfos.d.ts.map