@solana-program/address-lookup-table
Version:
The Solana Address Lookup Table program and its clients
40 lines • 3.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 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 FREEZE_LOOKUP_TABLE_DISCRIMINATOR = 1;
export declare function getFreezeLookupTableDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type FreezeLookupTableInstruction<TProgram extends string = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS, TAccountAddress extends string | IAccountMeta<string> = string, TAccountAuthority 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,
...TRemainingAccounts
]>;
export type FreezeLookupTableInstructionData = {
discriminator: number;
};
export type FreezeLookupTableInstructionDataArgs = {};
export declare function getFreezeLookupTableInstructionDataEncoder(): Encoder<FreezeLookupTableInstructionDataArgs>;
export declare function getFreezeLookupTableInstructionDataDecoder(): Decoder<FreezeLookupTableInstructionData>;
export declare function getFreezeLookupTableInstructionDataCodec(): Codec<FreezeLookupTableInstructionDataArgs, FreezeLookupTableInstructionData>;
export type FreezeLookupTableInput<TAccountAddress extends string = string, TAccountAuthority extends string = string> = {
address: Address<TAccountAddress>;
authority: TransactionSigner<TAccountAuthority>;
};
export declare function getFreezeLookupTableInstruction<TAccountAddress extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS>(input: FreezeLookupTableInput<TAccountAddress, TAccountAuthority>, config?: {
programAddress?: TProgramAddress;
}): FreezeLookupTableInstruction<TProgramAddress, TAccountAddress, TAccountAuthority>;
export type ParsedFreezeLookupTableInstruction<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];
};
data: FreezeLookupTableInstructionData;
};
export declare function parseFreezeLookupTableInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedFreezeLookupTableInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=freezeLookupTable.d.ts.map