/** * 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 AccountMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_MINT2_DISCRIMINATOR = 20; export declare function getInitializeMint2DiscriminatorBytes(): ReadonlyUint8Array; export type InitializeMint2Instruction = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, ...TRemainingAccounts ]>; export type InitializeMint2InstructionData = { discriminator: number; /** Number of base 10 digits to the right of the decimal place. */ decimals: number; /** The authority/multisignature to mint tokens. */ mintAuthority: Address; /** The optional freeze authority/multisignature of the mint. */ freezeAuthority: Option
; }; export type InitializeMint2InstructionDataArgs = { /** Number of base 10 digits to the right of the decimal place. */ decimals: number; /** The authority/multisignature to mint tokens. */ mintAuthority: Address; /** The optional freeze authority/multisignature of the mint. */ freezeAuthority?: OptionOrNullable
; }; export declare function getInitializeMint2InstructionDataEncoder(): Encoder; export declare function getInitializeMint2InstructionDataDecoder(): Decoder; export declare function getInitializeMint2InstructionDataCodec(): Codec; export type InitializeMint2Input = { /** The mint to initialize. */ mint: Address; decimals: InitializeMint2InstructionDataArgs['decimals']; mintAuthority: InitializeMint2InstructionDataArgs['mintAuthority']; freezeAuthority?: InitializeMint2InstructionDataArgs['freezeAuthority']; }; export declare function getInitializeMint2Instruction(input: InitializeMint2Input, config?: { programAddress?: TProgramAddress; }): InitializeMint2Instruction; export type ParsedInitializeMint2Instruction = { programAddress: Address; accounts: { /** The mint to initialize. */ mint: TAccountMetas[0]; }; data: InitializeMint2InstructionData; }; export declare function parseInitializeMint2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeMint2Instruction; //# sourceMappingURL=initializeMint2.d.ts.map