@solana-program/address-lookup-table
Version:
The Solana Address Lookup Table program and its clients
43 lines • 3.59 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 Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlySignerAccount, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS } from '../programs';
export declare const CLOSE_LOOKUP_TABLE_DISCRIMINATOR = 4;
export declare function getCloseLookupTableDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type CloseLookupTableInstruction<TProgram extends string = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS, TAccountAddress extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountRecipient extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
TAccountAddress extends string ? WritableAccount<TAccountAddress> : TAccountAddress,
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
TAccountRecipient extends string ? WritableAccount<TAccountRecipient> : TAccountRecipient,
...TRemainingAccounts
]>;
export type CloseLookupTableInstructionData = {
discriminator: number;
};
export type CloseLookupTableInstructionDataArgs = {};
export declare function getCloseLookupTableInstructionDataEncoder(): Encoder<CloseLookupTableInstructionDataArgs>;
export declare function getCloseLookupTableInstructionDataDecoder(): Decoder<CloseLookupTableInstructionData>;
export declare function getCloseLookupTableInstructionDataCodec(): Codec<CloseLookupTableInstructionDataArgs, CloseLookupTableInstructionData>;
export type CloseLookupTableInput<TAccountAddress extends string = string, TAccountAuthority extends string = string, TAccountRecipient extends string = string> = {
address: Address<TAccountAddress>;
authority: TransactionSigner<TAccountAuthority>;
recipient: Address<TAccountRecipient>;
};
export declare function getCloseLookupTableInstruction<TAccountAddress extends string, TAccountAuthority extends string, TAccountRecipient extends string, TProgramAddress extends Address = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS>(input: CloseLookupTableInput<TAccountAddress, TAccountAuthority, TAccountRecipient>, config?: {
programAddress?: TProgramAddress;
}): CloseLookupTableInstruction<TProgramAddress, TAccountAddress, TAccountAuthority, TAccountRecipient>;
export type ParsedCloseLookupTableInstruction<TProgram extends string = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
address: TAccountMetas[0];
authority: TAccountMetas[1];
recipient: TAccountMetas[2];
};
data: CloseLookupTableInstructionData;
};
export declare function parseCloseLookupTableInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCloseLookupTableInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=closeLookupTable.d.ts.map