UNPKG

@solana-program/token-2022

Version:

JavaScript client for the Token 2022 program

39 lines 2.95 kB
/** * 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 IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_IMMUTABLE_OWNER_DISCRIMINATOR = 22; export declare function getInitializeImmutableOwnerDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type InitializeImmutableOwnerInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount, ...TRemainingAccounts ]>; export type InitializeImmutableOwnerInstructionData = { discriminator: number; }; export type InitializeImmutableOwnerInstructionDataArgs = {}; export declare function getInitializeImmutableOwnerInstructionDataEncoder(): Encoder<InitializeImmutableOwnerInstructionDataArgs>; export declare function getInitializeImmutableOwnerInstructionDataDecoder(): Decoder<InitializeImmutableOwnerInstructionData>; export declare function getInitializeImmutableOwnerInstructionDataCodec(): Codec<InitializeImmutableOwnerInstructionDataArgs, InitializeImmutableOwnerInstructionData>; export type InitializeImmutableOwnerInput<TAccountAccount extends string = string> = { /** The account to initialize. */ account: Address<TAccountAccount>; }; export declare function getInitializeImmutableOwnerInstruction<TAccountAccount extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: InitializeImmutableOwnerInput<TAccountAccount>, config?: { programAddress?: TProgramAddress; }): InitializeImmutableOwnerInstruction<TProgramAddress, TAccountAccount>; export type ParsedInitializeImmutableOwnerInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { /** The account to initialize. */ account: TAccountMetas[0]; }; data: InitializeImmutableOwnerInstructionData; }; export declare function parseInitializeImmutableOwnerInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeImmutableOwnerInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=initializeImmutableOwner.d.ts.map