@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
42 lines • 4.61 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 CLOSE_PROGRAM_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getCloseProgramAccountDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type CloseProgramAccountInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TAccountProgramData extends string | AccountMeta<string> = string, TAccountClosingAccount extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAdminAuthority extends string ? WritableSignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData, TAccountClosingAccount extends string ? WritableAccount<TAccountClosingAccount> : TAccountClosingAccount, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
export type CloseProgramAccountInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type CloseProgramAccountInstructionDataArgs = {};
export declare function getCloseProgramAccountInstructionDataEncoder(): FixedSizeEncoder<CloseProgramAccountInstructionDataArgs>;
export declare function getCloseProgramAccountInstructionDataDecoder(): FixedSizeDecoder<CloseProgramAccountInstructionData>;
export declare function getCloseProgramAccountInstructionDataCodec(): FixedSizeCodec<CloseProgramAccountInstructionDataArgs, CloseProgramAccountInstructionData>;
export type CloseProgramAccountInput<TAccountAdminAuthority extends string = string, TAccountProgram extends string = string, TAccountProgramData extends string = string, TAccountClosingAccount extends string = string, TAccountSystemProgram extends string = string> = {
adminAuthority: TransactionSigner<TAccountAdminAuthority>;
program: Address<TAccountProgram>;
programData: Address<TAccountProgramData>;
closingAccount: Address<TAccountClosingAccount>;
systemProgram?: Address<TAccountSystemProgram>;
};
export declare function getCloseProgramAccountInstruction<TAccountAdminAuthority extends string, TAccountProgram extends string, TAccountProgramData extends string, TAccountClosingAccount extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: CloseProgramAccountInput<TAccountAdminAuthority, TAccountProgram, TAccountProgramData, TAccountClosingAccount, TAccountSystemProgram>, config?: {
programAddress?: TProgramAddress;
}): CloseProgramAccountInstruction<TProgramAddress, TAccountAdminAuthority, TAccountProgram, TAccountProgramData, TAccountClosingAccount, TAccountSystemProgram>;
export type ParsedCloseProgramAccountInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
adminAuthority: TAccountMetas[0];
program: TAccountMetas[1];
programData: TAccountMetas[2];
closingAccount: TAccountMetas[3];
systemProgram: TAccountMetas[4];
};
data: CloseProgramAccountInstructionData;
};
export declare function parseCloseProgramAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseProgramAccountInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=closeProgramAccount.d.ts.map