/** * 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 ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_MINT_DISCRIMINATOR = 0; export declare function getInitializeMintDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeMintInstruction = string, TAccountRent extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export type InitializeMintInstructionData = { discriminator: number; /** Number of decimals in token account amounts. */ decimals: number; /** Minting authority. */ mintAuthority: Address; /** Optional authority that can freeze token accounts. */ freezeAuthority: Option
; }; export type InitializeMintInstructionDataArgs = { /** Number of decimals in token account amounts. */ decimals: number; /** Minting authority. */ mintAuthority: Address; /** Optional authority that can freeze token accounts. */ freezeAuthority?: OptionOrNullable
; }; export declare function getInitializeMintInstructionDataEncoder(): Encoder; export declare function getInitializeMintInstructionDataDecoder(): Decoder; export declare function getInitializeMintInstructionDataCodec(): Codec; export type InitializeMintInput = { /** Token mint account. */ mint: Address; /** Rent sysvar. */ rent?: Address; decimals: InitializeMintInstructionDataArgs['decimals']; mintAuthority: InitializeMintInstructionDataArgs['mintAuthority']; freezeAuthority?: InitializeMintInstructionDataArgs['freezeAuthority']; }; export declare function getInitializeMintInstruction(input: InitializeMintInput, config?: { programAddress?: TProgramAddress; }): InitializeMintInstruction; export type ParsedInitializeMintInstruction = { programAddress: Address; accounts: { /** Token mint account. */ mint: TAccountMetas[0]; /** Rent sysvar. */ rent: TAccountMetas[1]; }; data: InitializeMintInstructionData; }; export declare function parseInitializeMintInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeMintInstruction; //# sourceMappingURL=initializeMint.d.ts.map