@solana-program/token-2022
Version:
JavaScript client for the Token 2022 program
39 lines • 3.03 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 IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type WritableAccount } from '@solana/kit';
import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs';
export declare const INITIALIZE_NON_TRANSFERABLE_MINT_DISCRIMINATOR = 32;
export declare function getInitializeNonTransferableMintDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type InitializeNonTransferableMintInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMint extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
...TRemainingAccounts
]>;
export type InitializeNonTransferableMintInstructionData = {
discriminator: number;
};
export type InitializeNonTransferableMintInstructionDataArgs = {};
export declare function getInitializeNonTransferableMintInstructionDataEncoder(): Encoder<InitializeNonTransferableMintInstructionDataArgs>;
export declare function getInitializeNonTransferableMintInstructionDataDecoder(): Decoder<InitializeNonTransferableMintInstructionData>;
export declare function getInitializeNonTransferableMintInstructionDataCodec(): Codec<InitializeNonTransferableMintInstructionDataArgs, InitializeNonTransferableMintInstructionData>;
export type InitializeNonTransferableMintInput<TAccountMint extends string = string> = {
/** The mint account to initialize. */
mint: Address<TAccountMint>;
};
export declare function getInitializeNonTransferableMintInstruction<TAccountMint extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: InitializeNonTransferableMintInput<TAccountMint>, config?: {
programAddress?: TProgramAddress;
}): InitializeNonTransferableMintInstruction<TProgramAddress, TAccountMint>;
export type ParsedInitializeNonTransferableMintInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
/** The mint account to initialize. */
mint: TAccountMetas[0];
};
data: InitializeNonTransferableMintInstructionData;
};
export declare function parseInitializeNonTransferableMintInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeNonTransferableMintInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=initializeNonTransferableMint.d.ts.map