/** * 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 Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { MPL_BUBBLEGUM_PROGRAM_ADDRESS } from '../programs'; import { type MetadataArgsV2, type MetadataArgsV2Args, type UpdateArgs, type UpdateArgsArgs } from '../types'; export declare const UPDATE_METADATA_V2_DISCRIMINATOR: Uint8Array; export declare function getUpdateMetadataV2DiscriminatorBytes(): ReadonlyUint8Array; export type UpdateMetadataV2Instruction = string, TAccountPayer extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountCoreCollection extends string | AccountMeta = string, TAccountLogWrapper extends string | AccountMeta = 'mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3', TAccountCompressionProgram extends string | AccountMeta = 'mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountTreeConfig extends string ? WritableAccount : TAccountTreeConfig, TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountCoreCollection extends string ? ReadonlyAccount : TAccountCoreCollection, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type UpdateMetadataV2InstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; assetDataHash: Option; flags: Option; nonce: bigint; index: number; currentMetadata: MetadataArgsV2; updateArgs: UpdateArgs; }; export type UpdateMetadataV2InstructionDataArgs = { root: ReadonlyUint8Array; assetDataHash?: OptionOrNullable; flags?: OptionOrNullable; nonce: number | bigint; index: number; currentMetadata: MetadataArgsV2Args; updateArgs: UpdateArgsArgs; }; export declare function getUpdateMetadataV2InstructionDataEncoder(): Encoder; export declare function getUpdateMetadataV2InstructionDataDecoder(): Decoder; export declare function getUpdateMetadataV2InstructionDataCodec(): Codec; export type UpdateMetadataV2AsyncInput = { treeConfig?: Address; payer: TransactionSigner; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection. Defaults to `payer` */ authority?: TransactionSigner; leafOwner: Address; /** Defaults to `leaf_owner` */ leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: UpdateMetadataV2InstructionDataArgs['root']; assetDataHash?: UpdateMetadataV2InstructionDataArgs['assetDataHash']; flags?: UpdateMetadataV2InstructionDataArgs['flags']; nonce: UpdateMetadataV2InstructionDataArgs['nonce']; index: UpdateMetadataV2InstructionDataArgs['index']; currentMetadata: UpdateMetadataV2InstructionDataArgs['currentMetadata']; updateArgs: UpdateMetadataV2InstructionDataArgs['updateArgs']; proof?: Array
; }; export declare function getUpdateMetadataV2InstructionAsync(input: UpdateMetadataV2AsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateMetadataV2Input = { treeConfig: Address; payer: TransactionSigner; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection. Defaults to `payer` */ authority?: TransactionSigner; leafOwner: Address; /** Defaults to `leaf_owner` */ leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; logWrapper?: Address; compressionProgram?: Address; systemProgram?: Address; root: UpdateMetadataV2InstructionDataArgs['root']; assetDataHash?: UpdateMetadataV2InstructionDataArgs['assetDataHash']; flags?: UpdateMetadataV2InstructionDataArgs['flags']; nonce: UpdateMetadataV2InstructionDataArgs['nonce']; index: UpdateMetadataV2InstructionDataArgs['index']; currentMetadata: UpdateMetadataV2InstructionDataArgs['currentMetadata']; updateArgs: UpdateMetadataV2InstructionDataArgs['updateArgs']; proof?: Array
; }; export declare function getUpdateMetadataV2Instruction(input: UpdateMetadataV2Input, config?: { programAddress?: TProgramAddress; }): UpdateMetadataV2Instruction; export type ParsedUpdateMetadataV2Instruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; payer: TAccountMetas[1]; /** * Either collection authority or tree owner/delegate, depending * on whether the item is in a verified collection. Defaults to `payer` */ authority?: TAccountMetas[2] | undefined; leafOwner: TAccountMetas[3]; /** Defaults to `leaf_owner` */ leafDelegate?: TAccountMetas[4] | undefined; merkleTree: TAccountMetas[5]; coreCollection?: TAccountMetas[6] | undefined; logWrapper: TAccountMetas[7]; compressionProgram: TAccountMetas[8]; systemProgram: TAccountMetas[9]; }; data: UpdateMetadataV2InstructionData; }; export declare function parseUpdateMetadataV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateMetadataV2Instruction; //# sourceMappingURL=updateMetadataV2.d.ts.map