@solana-program/token-2022
Version:
JavaScript client for the Token 2022 program
48 lines • 3.87 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 IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs';
export declare const ENABLE_HARVEST_TO_MINT_DISCRIMINATOR = 37;
export declare function getEnableHarvestToMintDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export declare const ENABLE_HARVEST_TO_MINT_CONFIDENTIAL_TRANSFER_FEE_DISCRIMINATOR = 4;
export declare function getEnableHarvestToMintConfidentialTransferFeeDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type EnableHarvestToMintInstruction<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 ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
...TRemainingAccounts
]>;
export type EnableHarvestToMintInstructionData = {
discriminator: number;
confidentialTransferFeeDiscriminator: number;
};
export type EnableHarvestToMintInstructionDataArgs = {};
export declare function getEnableHarvestToMintInstructionDataEncoder(): Encoder<EnableHarvestToMintInstructionDataArgs>;
export declare function getEnableHarvestToMintInstructionDataDecoder(): Decoder<EnableHarvestToMintInstructionData>;
export declare function getEnableHarvestToMintInstructionDataCodec(): Codec<EnableHarvestToMintInstructionDataArgs, EnableHarvestToMintInstructionData>;
export type EnableHarvestToMintInput<TAccountMint extends string = string, TAccountAuthority extends string = string> = {
/** The token mint. */
mint: Address<TAccountMint>;
/** The confidential transfer fee authority */
authority: Address<TAccountAuthority> | TransactionSigner<TAccountAuthority>;
multiSigners?: Array<TransactionSigner>;
};
export declare function getEnableHarvestToMintInstruction<TAccountMint extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: EnableHarvestToMintInput<TAccountMint, TAccountAuthority>, config?: {
programAddress?: TProgramAddress;
}): EnableHarvestToMintInstruction<TProgramAddress, TAccountMint, (typeof input)['authority'] extends TransactionSigner<TAccountAuthority> ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority>;
export type ParsedEnableHarvestToMintInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
/** The token mint. */
mint: TAccountMetas[0];
/** The confidential transfer fee authority */
authority: TAccountMetas[1];
};
data: EnableHarvestToMintInstructionData;
};
export declare function parseEnableHarvestToMintInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedEnableHarvestToMintInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=enableHarvestToMint.d.ts.map