/** * 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 } from '../types'; export declare const SET_COLLECTION_V2_DISCRIMINATOR: Uint8Array; export declare function getSetCollectionV2DiscriminatorBytes(): ReadonlyUint8Array; export type SetCollectionV2Instruction = string, TAccountPayer extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountNewCollectionAuthority extends string | AccountMeta = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountCoreCollection extends string | AccountMeta = string, TAccountNewCoreCollection extends string | AccountMeta = string, TAccountMplCoreCpiSigner extends string | AccountMeta = 'CbNY3JiXdXNE9tPNEk1aRZVEkWdj2v7kfJLNQwZZgpXk', TAccountLogWrapper extends string | AccountMeta = 'mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3', TAccountCompressionProgram extends string | AccountMeta = 'mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW', TAccountMplCoreProgram extends string | AccountMeta = 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d', 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, TAccountNewCollectionAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountNewCollectionAuthority, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountCoreCollection extends string ? WritableAccount : TAccountCoreCollection, TAccountNewCoreCollection extends string ? WritableAccount : TAccountNewCoreCollection, TAccountMplCoreCpiSigner extends string ? ReadonlyAccount : TAccountMplCoreCpiSigner, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountMplCoreProgram extends string ? ReadonlyAccount : TAccountMplCoreProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type SetCollectionV2InstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; assetDataHash: Option; flags: Option; nonce: bigint; index: number; metadata: MetadataArgsV2; }; export type SetCollectionV2InstructionDataArgs = { root: ReadonlyUint8Array; assetDataHash?: OptionOrNullable; flags?: OptionOrNullable; nonce: number | bigint; index: number; metadata: MetadataArgsV2Args; }; export declare function getSetCollectionV2InstructionDataEncoder(): Encoder; export declare function getSetCollectionV2InstructionDataDecoder(): Decoder; export declare function getSetCollectionV2InstructionDataCodec(): Codec; export type SetCollectionV2AsyncInput = { treeConfig?: Address; payer: TransactionSigner; /** * If item is not in a collection, then authority must be tree owner/delegate. If item is * getting removed from a collection, then this must be an authority for the existing * collection. Defaults to `payer` */ authority?: TransactionSigner; /** * If item is getting added to a new collection, then this must be the authority * for the new collection. Defaults to `authority` */ newCollectionAuthority?: TransactionSigner; leafOwner: Address; /** Defaults to `leaf_owner` */ leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; newCoreCollection?: Address; mplCoreCpiSigner?: Address; logWrapper?: Address; compressionProgram?: Address; mplCoreProgram?: Address; systemProgram?: Address; root: SetCollectionV2InstructionDataArgs['root']; assetDataHash?: SetCollectionV2InstructionDataArgs['assetDataHash']; flags?: SetCollectionV2InstructionDataArgs['flags']; nonce: SetCollectionV2InstructionDataArgs['nonce']; index: SetCollectionV2InstructionDataArgs['index']; metadata: SetCollectionV2InstructionDataArgs['metadata']; proof?: Array
; }; export declare function getSetCollectionV2InstructionAsync(input: SetCollectionV2AsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type SetCollectionV2Input = { treeConfig: Address; payer: TransactionSigner; /** * If item is not in a collection, then authority must be tree owner/delegate. If item is * getting removed from a collection, then this must be an authority for the existing * collection. Defaults to `payer` */ authority?: TransactionSigner; /** * If item is getting added to a new collection, then this must be the authority * for the new collection. Defaults to `authority` */ newCollectionAuthority?: TransactionSigner; leafOwner: Address; /** Defaults to `leaf_owner` */ leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; newCoreCollection?: Address; mplCoreCpiSigner?: Address; logWrapper?: Address; compressionProgram?: Address; mplCoreProgram?: Address; systemProgram?: Address; root: SetCollectionV2InstructionDataArgs['root']; assetDataHash?: SetCollectionV2InstructionDataArgs['assetDataHash']; flags?: SetCollectionV2InstructionDataArgs['flags']; nonce: SetCollectionV2InstructionDataArgs['nonce']; index: SetCollectionV2InstructionDataArgs['index']; metadata: SetCollectionV2InstructionDataArgs['metadata']; proof?: Array
; }; export declare function getSetCollectionV2Instruction(input: SetCollectionV2Input, config?: { programAddress?: TProgramAddress; }): SetCollectionV2Instruction; export type ParsedSetCollectionV2Instruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; payer: TAccountMetas[1]; /** * If item is not in a collection, then authority must be tree owner/delegate. If item is * getting removed from a collection, then this must be an authority for the existing * collection. Defaults to `payer` */ authority?: TAccountMetas[2] | undefined; /** * If item is getting added to a new collection, then this must be the authority * for the new collection. Defaults to `authority` */ newCollectionAuthority?: TAccountMetas[3] | undefined; leafOwner: TAccountMetas[4]; /** Defaults to `leaf_owner` */ leafDelegate?: TAccountMetas[5] | undefined; merkleTree: TAccountMetas[6]; coreCollection?: TAccountMetas[7] | undefined; newCoreCollection?: TAccountMetas[8] | undefined; mplCoreCpiSigner: TAccountMetas[9]; logWrapper: TAccountMetas[10]; compressionProgram: TAccountMetas[11]; mplCoreProgram: TAccountMetas[12]; systemProgram: TAccountMetas[13]; }; data: SetCollectionV2InstructionData; }; export declare function parseSetCollectionV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetCollectionV2Instruction; //# sourceMappingURL=setCollectionV2.d.ts.map