/** * 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 ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { MPL_BUBBLEGUM_PROGRAM_ADDRESS } from '../programs'; import { type MetadataArgs, type MetadataArgsArgs, type UpdateArgs, type UpdateArgsArgs } from '../types'; export declare const UPDATE_METADATA_DISCRIMINATOR: Uint8Array; export declare function getUpdateMetadataDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateMetadataInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountCollectionMint extends string | AccountMeta = string, TAccountCollectionMetadata extends string | AccountMeta = string, TAccountCollectionAuthorityRecordPda extends string | AccountMeta = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountLogWrapper extends string | AccountMeta = 'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV', TAccountCompressionProgram extends string | AccountMeta = 'cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK', TAccountTokenMetadataProgram extends string | AccountMeta = 'BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountTreeConfig extends string ? ReadonlyAccount : TAccountTreeConfig, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountCollectionMint extends string ? ReadonlyAccount : TAccountCollectionMint, TAccountCollectionMetadata extends string ? ReadonlyAccount : TAccountCollectionMetadata, TAccountCollectionAuthorityRecordPda extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecordPda, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountPayer extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPayer, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountTokenMetadataProgram extends string ? ReadonlyAccount : TAccountTokenMetadataProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type UpdateMetadataInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; nonce: bigint; index: number; currentMetadata: MetadataArgs; updateArgs: UpdateArgs; }; export type UpdateMetadataInstructionDataArgs = { root: ReadonlyUint8Array; nonce: number | bigint; index: number; currentMetadata: MetadataArgsArgs; updateArgs: UpdateArgsArgs; }; export declare function getUpdateMetadataInstructionDataEncoder(): Encoder; export declare function getUpdateMetadataInstructionDataDecoder(): Decoder; export declare function getUpdateMetadataInstructionDataCodec(): Codec; export type UpdateMetadataAsyncInput = { treeConfig?: Address; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection */ authority: TransactionSigner; /** Used when item is in a verified collection */ collectionMint?: Address; /** Used when item is in a verified collection */ collectionMetadata?: Address; collectionAuthorityRecordPda?: Address; leafOwner: Address; leafDelegate?: Address; payer: TransactionSigner; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; tokenMetadataProgram?: Address; systemProgram?: Address; root: UpdateMetadataInstructionDataArgs['root']; nonce: UpdateMetadataInstructionDataArgs['nonce']; index: UpdateMetadataInstructionDataArgs['index']; currentMetadata: UpdateMetadataInstructionDataArgs['currentMetadata']; updateArgs: UpdateMetadataInstructionDataArgs['updateArgs']; proof?: Array
; }; export declare function getUpdateMetadataInstructionAsync(input: UpdateMetadataAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateMetadataInput = { treeConfig: Address; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection */ authority: TransactionSigner; /** Used when item is in a verified collection */ collectionMint?: Address; /** Used when item is in a verified collection */ collectionMetadata?: Address; collectionAuthorityRecordPda?: Address; leafOwner: Address; leafDelegate?: Address; payer: TransactionSigner; merkleTree: Address; logWrapper?: Address; compressionProgram?: Address; tokenMetadataProgram?: Address; systemProgram?: Address; root: UpdateMetadataInstructionDataArgs['root']; nonce: UpdateMetadataInstructionDataArgs['nonce']; index: UpdateMetadataInstructionDataArgs['index']; currentMetadata: UpdateMetadataInstructionDataArgs['currentMetadata']; updateArgs: UpdateMetadataInstructionDataArgs['updateArgs']; proof?: Array
; }; export declare function getUpdateMetadataInstruction(input: UpdateMetadataInput, config?: { programAddress?: TProgramAddress; }): UpdateMetadataInstruction; export type ParsedUpdateMetadataInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection */ authority: TAccountMetas[1]; /** Used when item is in a verified collection */ collectionMint?: TAccountMetas[2] | undefined; /** Used when item is in a verified collection */ collectionMetadata?: TAccountMetas[3] | undefined; collectionAuthorityRecordPda?: TAccountMetas[4] | undefined; leafOwner: TAccountMetas[5]; leafDelegate: TAccountMetas[6]; payer: TAccountMetas[7]; merkleTree: TAccountMetas[8]; logWrapper: TAccountMetas[9]; compressionProgram: TAccountMetas[10]; tokenMetadataProgram: TAccountMetas[11]; systemProgram: TAccountMetas[12]; }; data: UpdateMetadataInstructionData; }; export declare function parseUpdateMetadataInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateMetadataInstruction; //# sourceMappingURL=updateMetadata.d.ts.map