@solana-program/token-2022
Version:
JavaScript client for the Token 2022 program
48 lines • 3.85 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 DISABLE_MEMO_TRANSFERS_DISCRIMINATOR = 30;
export declare function getDisableMemoTransfersDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export declare const DISABLE_MEMO_TRANSFERS_MEMO_TRANSFERS_DISCRIMINATOR = 1;
export declare function getDisableMemoTransfersMemoTransfersDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type DisableMemoTransfersInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountToken extends string | IAccountMeta<string> = string, TAccountOwner extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
TAccountToken extends string ? WritableAccount<TAccountToken> : TAccountToken,
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
...TRemainingAccounts
]>;
export type DisableMemoTransfersInstructionData = {
discriminator: number;
memoTransfersDiscriminator: number;
};
export type DisableMemoTransfersInstructionDataArgs = {};
export declare function getDisableMemoTransfersInstructionDataEncoder(): Encoder<DisableMemoTransfersInstructionDataArgs>;
export declare function getDisableMemoTransfersInstructionDataDecoder(): Decoder<DisableMemoTransfersInstructionData>;
export declare function getDisableMemoTransfersInstructionDataCodec(): Codec<DisableMemoTransfersInstructionDataArgs, DisableMemoTransfersInstructionData>;
export type DisableMemoTransfersInput<TAccountToken extends string = string, TAccountOwner extends string = string> = {
/** The token account to update. */
token: Address<TAccountToken>;
/** The account's owner or its multisignature account. */
owner: Address<TAccountOwner> | TransactionSigner<TAccountOwner>;
multiSigners?: Array<TransactionSigner>;
};
export declare function getDisableMemoTransfersInstruction<TAccountToken extends string, TAccountOwner extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: DisableMemoTransfersInput<TAccountToken, TAccountOwner>, config?: {
programAddress?: TProgramAddress;
}): DisableMemoTransfersInstruction<TProgramAddress, TAccountToken, (typeof input)['owner'] extends TransactionSigner<TAccountOwner> ? ReadonlySignerAccount<TAccountOwner> & IAccountSignerMeta<TAccountOwner> : TAccountOwner>;
export type ParsedDisableMemoTransfersInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
/** The token account to update. */
token: TAccountMetas[0];
/** The account's owner or its multisignature account. */
owner: TAccountMetas[1];
};
data: DisableMemoTransfersInstructionData;
};
export declare function parseDisableMemoTransfersInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedDisableMemoTransfersInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=disableMemoTransfers.d.ts.map