UNPKG

@solana-program/token-2022

Version:

JavaScript client for the Token 2022 program

59 lines 4.55 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 IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_MULTIPLIER_SCALED_UI_MINT_DISCRIMINATOR = 43; export declare function getUpdateMultiplierScaledUiMintDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export declare const UPDATE_MULTIPLIER_SCALED_UI_MINT_SCALED_UI_AMOUNT_MINT_DISCRIMINATOR = 1; export declare function getUpdateMultiplierScaledUiMintScaledUiAmountMintDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type UpdateMultiplierScaledUiMintInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMint extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint, TAccountAuthority extends string ? WritableAccount<TAccountAuthority> : TAccountAuthority, ...TRemainingAccounts ]>; export type UpdateMultiplierScaledUiMintInstructionData = { discriminator: number; scaledUiAmountMintDiscriminator: number; /** The new multiplier for the scaled UI extension */ multiplier: number; /** The timestamp at which the new multiplier will take effect */ effectiveTimestamp: bigint; }; export type UpdateMultiplierScaledUiMintInstructionDataArgs = { /** The new multiplier for the scaled UI extension */ multiplier: number; /** The timestamp at which the new multiplier will take effect */ effectiveTimestamp: number | bigint; }; export declare function getUpdateMultiplierScaledUiMintInstructionDataEncoder(): Encoder<UpdateMultiplierScaledUiMintInstructionDataArgs>; export declare function getUpdateMultiplierScaledUiMintInstructionDataDecoder(): Decoder<UpdateMultiplierScaledUiMintInstructionData>; export declare function getUpdateMultiplierScaledUiMintInstructionDataCodec(): Codec<UpdateMultiplierScaledUiMintInstructionDataArgs, UpdateMultiplierScaledUiMintInstructionData>; export type UpdateMultiplierScaledUiMintInput<TAccountMint extends string = string, TAccountAuthority extends string = string> = { /** The mint. */ mint: Address<TAccountMint>; /** The multiplier authority. */ authority: Address<TAccountAuthority> | TransactionSigner<TAccountAuthority>; multiplier: UpdateMultiplierScaledUiMintInstructionDataArgs['multiplier']; effectiveTimestamp: UpdateMultiplierScaledUiMintInstructionDataArgs['effectiveTimestamp']; multiSigners?: Array<TransactionSigner>; }; export declare function getUpdateMultiplierScaledUiMintInstruction<TAccountMint extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: UpdateMultiplierScaledUiMintInput<TAccountMint, TAccountAuthority>, config?: { programAddress?: TProgramAddress; }): UpdateMultiplierScaledUiMintInstruction<TProgramAddress, TAccountMint, (typeof input)['authority'] extends TransactionSigner<TAccountAuthority> ? WritableSignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority>; export type ParsedUpdateMultiplierScaledUiMintInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { /** The mint. */ mint: TAccountMetas[0]; /** The multiplier authority. */ authority: TAccountMetas[1]; }; data: UpdateMultiplierScaledUiMintInstructionData; }; export declare function parseUpdateMultiplierScaledUiMintInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedUpdateMultiplierScaledUiMintInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateMultiplierScaledUiMint.d.ts.map