UNPKG

@solana-program/token-2022

Version:

JavaScript client for the Token 2022 program

57 lines 4.04 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const REMOVE_TOKEN_METADATA_KEY_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getRemoveTokenMetadataKeyDiscriminatorBytes(): ReadonlyUint8Array; export type RemoveTokenMetadataKeyInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetadata extends string | IAccountMeta<string> = string, TAccountUpdateAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountMetadata extends string ? WritableAccount<TAccountMetadata> : TAccountMetadata, TAccountUpdateAuthority extends string ? ReadonlySignerAccount<TAccountUpdateAuthority> & IAccountSignerMeta<TAccountUpdateAuthority> : TAccountUpdateAuthority, ...TRemainingAccounts ]>; export type RemoveTokenMetadataKeyInstructionData = { discriminator: ReadonlyUint8Array; /** * If the idempotent flag is set to true, then the instruction will not * error if the key does not exist */ idempotent: boolean; /** Key to remove in the additional metadata portion. */ key: string; }; export type RemoveTokenMetadataKeyInstructionDataArgs = { /** * If the idempotent flag is set to true, then the instruction will not * error if the key does not exist */ idempotent?: boolean; /** Key to remove in the additional metadata portion. */ key: string; }; export declare function getRemoveTokenMetadataKeyInstructionDataEncoder(): Encoder<RemoveTokenMetadataKeyInstructionDataArgs>; export declare function getRemoveTokenMetadataKeyInstructionDataDecoder(): Decoder<RemoveTokenMetadataKeyInstructionData>; export declare function getRemoveTokenMetadataKeyInstructionDataCodec(): Codec<RemoveTokenMetadataKeyInstructionDataArgs, RemoveTokenMetadataKeyInstructionData>; export type RemoveTokenMetadataKeyInput<TAccountMetadata extends string = string, TAccountUpdateAuthority extends string = string> = { metadata: Address<TAccountMetadata>; updateAuthority: TransactionSigner<TAccountUpdateAuthority>; idempotent?: RemoveTokenMetadataKeyInstructionDataArgs['idempotent']; key: RemoveTokenMetadataKeyInstructionDataArgs['key']; }; export declare function getRemoveTokenMetadataKeyInstruction<TAccountMetadata extends string, TAccountUpdateAuthority extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: RemoveTokenMetadataKeyInput<TAccountMetadata, TAccountUpdateAuthority>, config?: { programAddress?: TProgramAddress; }): RemoveTokenMetadataKeyInstruction<TProgramAddress, TAccountMetadata, TAccountUpdateAuthority>; export type ParsedRemoveTokenMetadataKeyInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { metadata: TAccountMetas[0]; updateAuthority: TAccountMetas[1]; }; data: RemoveTokenMetadataKeyInstructionData; }; export declare function parseRemoveTokenMetadataKeyInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedRemoveTokenMetadataKeyInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=removeTokenMetadataKey.d.ts.map