@solana-program/address-lookup-table
Version:
The Solana Address Lookup Table program and its clients
65 lines • 5.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 ProgramDerivedAddress, type ReadonlyAccount, type ReadonlySignerAccount, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
import { ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS } from '../programs';
import { type IInstructionWithByteDelta } from '../shared';
export declare const CREATE_LOOKUP_TABLE_DISCRIMINATOR = 0;
export declare function getCreateLookupTableDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type CreateLookupTableInstruction<TProgram extends string = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS, TAccountAddress extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TAccountPayer extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
TAccountAddress extends string ? WritableAccount<TAccountAddress> : TAccountAddress,
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority,
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
...TRemainingAccounts
]>;
export type CreateLookupTableInstructionData = {
discriminator: number;
recentSlot: bigint;
bump: number;
};
export type CreateLookupTableInstructionDataArgs = {
recentSlot: number | bigint;
bump: number;
};
export declare function getCreateLookupTableInstructionDataEncoder(): Encoder<CreateLookupTableInstructionDataArgs>;
export declare function getCreateLookupTableInstructionDataDecoder(): Decoder<CreateLookupTableInstructionData>;
export declare function getCreateLookupTableInstructionDataCodec(): Codec<CreateLookupTableInstructionDataArgs, CreateLookupTableInstructionData>;
export type CreateLookupTableAsyncInput<TAccountAddress extends string = string, TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
address?: ProgramDerivedAddress<TAccountAddress>;
authority: TransactionSigner<TAccountAuthority>;
payer?: TransactionSigner<TAccountPayer>;
systemProgram?: Address<TAccountSystemProgram>;
recentSlot: CreateLookupTableInstructionDataArgs['recentSlot'];
bump?: CreateLookupTableInstructionDataArgs['bump'];
};
export declare function getCreateLookupTableInstructionAsync<TAccountAddress extends string, TAccountAuthority extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS>(input: CreateLookupTableAsyncInput<TAccountAddress, TAccountAuthority, TAccountPayer, TAccountSystemProgram>, config?: {
programAddress?: TProgramAddress;
}): Promise<CreateLookupTableInstruction<TProgramAddress, TAccountAddress, TAccountAuthority, TAccountPayer, TAccountSystemProgram> & IInstructionWithByteDelta>;
export type CreateLookupTableInput<TAccountAddress extends string = string, TAccountAuthority extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
address: ProgramDerivedAddress<TAccountAddress>;
authority: TransactionSigner<TAccountAuthority>;
payer?: TransactionSigner<TAccountPayer>;
systemProgram?: Address<TAccountSystemProgram>;
recentSlot: CreateLookupTableInstructionDataArgs['recentSlot'];
bump?: CreateLookupTableInstructionDataArgs['bump'];
};
export declare function getCreateLookupTableInstruction<TAccountAddress extends string, TAccountAuthority extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof ADDRESS_LOOKUP_TABLE_PROGRAM_ADDRESS>(input: CreateLookupTableInput<TAccountAddress, TAccountAuthority, TAccountPayer, TAccountSystemProgram>, config?: {
programAddress?: TProgramAddress;
}): CreateLookupTableInstruction<TProgramAddress, TAccountAddress, TAccountAuthority, TAccountPayer, TAccountSystemProgram> & IInstructionWithByteDelta;
export type ParsedCreateLookupTableInstruction<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];
payer: TAccountMetas[2];
systemProgram: TAccountMetas[3];
};
data: CreateLookupTableInstructionData;
};
export declare function parseCreateLookupTableInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateLookupTableInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=createLookupTable.d.ts.map