/** * 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 AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; import { type TokenMetadataField, type TokenMetadataFieldArgs } from '../types'; export declare const UPDATE_TOKEN_METADATA_FIELD_DISCRIMINATOR: Uint8Array; export declare function getUpdateTokenMetadataFieldDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateTokenMetadataFieldInstruction = string, TAccountUpdateAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMetadata extends string ? WritableAccount : TAccountMetadata, TAccountUpdateAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountUpdateAuthority, ...TRemainingAccounts ]>; export type UpdateTokenMetadataFieldInstructionData = { discriminator: ReadonlyUint8Array; /** Field to update in the metadata. */ field: TokenMetadataField; /** Value to write for the field. */ value: string; }; export type UpdateTokenMetadataFieldInstructionDataArgs = { /** Field to update in the metadata. */ field: TokenMetadataFieldArgs; /** Value to write for the field. */ value: string; }; export declare function getUpdateTokenMetadataFieldInstructionDataEncoder(): Encoder; export declare function getUpdateTokenMetadataFieldInstructionDataDecoder(): Decoder; export declare function getUpdateTokenMetadataFieldInstructionDataCodec(): Codec; export type UpdateTokenMetadataFieldInput = { metadata: Address; updateAuthority: TransactionSigner; field: UpdateTokenMetadataFieldInstructionDataArgs['field']; value: UpdateTokenMetadataFieldInstructionDataArgs['value']; }; export declare function getUpdateTokenMetadataFieldInstruction(input: UpdateTokenMetadataFieldInput, config?: { programAddress?: TProgramAddress; }): UpdateTokenMetadataFieldInstruction; export type ParsedUpdateTokenMetadataFieldInstruction = { programAddress: Address; accounts: { metadata: TAccountMetas[0]; updateAuthority: TAccountMetas[1]; }; data: UpdateTokenMetadataFieldInstructionData; }; export declare function parseUpdateTokenMetadataFieldInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateTokenMetadataFieldInstruction; //# sourceMappingURL=updateTokenMetadataField.d.ts.map