UNPKG

@solana-program/token-2022

Version:

JavaScript client for the Token 2022 program

53 lines 3.83 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 Option, type OptionOrNullable, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_SCALED_UI_AMOUNT_MINT_DISCRIMINATOR = 43; export declare function getInitializeScaledUiAmountMintDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export declare const INITIALIZE_SCALED_UI_AMOUNT_MINT_SCALED_UI_AMOUNT_MINT_DISCRIMINATOR = 0; export declare function getInitializeScaledUiAmountMintScaledUiAmountMintDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type InitializeScaledUiAmountMintInstruction<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 InitializeScaledUiAmountMintInstructionData = { discriminator: number; scaledUiAmountMintDiscriminator: number; /** The authority that can update the multiplier */ authority: Option<Address>; /** The initial multiplier for the scaled UI extension */ multiplier: number; }; export type InitializeScaledUiAmountMintInstructionDataArgs = { /** The authority that can update the multiplier */ authority: OptionOrNullable<Address>; /** The initial multiplier for the scaled UI extension */ multiplier: number; }; export declare function getInitializeScaledUiAmountMintInstructionDataEncoder(): Encoder<InitializeScaledUiAmountMintInstructionDataArgs>; export declare function getInitializeScaledUiAmountMintInstructionDataDecoder(): Decoder<InitializeScaledUiAmountMintInstructionData>; export declare function getInitializeScaledUiAmountMintInstructionDataCodec(): Codec<InitializeScaledUiAmountMintInstructionDataArgs, InitializeScaledUiAmountMintInstructionData>; export type InitializeScaledUiAmountMintInput<TAccountMint extends string = string> = { /** The mint to initialize. */ mint: Address<TAccountMint>; authority: InitializeScaledUiAmountMintInstructionDataArgs['authority']; multiplier: InitializeScaledUiAmountMintInstructionDataArgs['multiplier']; }; export declare function getInitializeScaledUiAmountMintInstruction<TAccountMint extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: InitializeScaledUiAmountMintInput<TAccountMint>, config?: { programAddress?: TProgramAddress; }): InitializeScaledUiAmountMintInstruction<TProgramAddress, TAccountMint>; export type ParsedInitializeScaledUiAmountMintInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { /** The mint to initialize. */ mint: TAccountMetas[0]; }; data: InitializeScaledUiAmountMintInstructionData; }; export declare function parseInitializeScaledUiAmountMintInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedInitializeScaledUiAmountMintInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=initializeScaledUiAmountMint.d.ts.map