/** * 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 } from '../types'; export declare const VERIFY_COLLECTION_DISCRIMINATOR: Uint8Array; export declare function getVerifyCollectionDiscriminatorBytes(): ReadonlyUint8Array; export type VerifyCollectionInstruction = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountPayer extends string | AccountMeta = string, TAccountTreeCreatorOrDelegate extends string | AccountMeta = string, TAccountCollectionAuthority extends string | AccountMeta = string, TAccountCollectionAuthorityRecordPda extends string | AccountMeta = string, TAccountCollectionMint extends string | AccountMeta = string, TAccountCollectionMetadata extends string | AccountMeta = string, TAccountCollectionEdition extends string | AccountMeta = string, TAccountBubblegumSigner extends string | AccountMeta = 'BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY', 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, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountPayer extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPayer, TAccountTreeCreatorOrDelegate extends string ? ReadonlyAccount : TAccountTreeCreatorOrDelegate, TAccountCollectionAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda extends string ? ReadonlyAccount : TAccountCollectionAuthorityRecordPda, TAccountCollectionMint extends string ? ReadonlyAccount : TAccountCollectionMint, TAccountCollectionMetadata extends string ? WritableAccount : TAccountCollectionMetadata, TAccountCollectionEdition extends string ? ReadonlyAccount : TAccountCollectionEdition, TAccountBubblegumSigner extends string ? ReadonlyAccount : TAccountBubblegumSigner, TAccountLogWrapper extends string ? ReadonlyAccount : TAccountLogWrapper, TAccountCompressionProgram extends string ? ReadonlyAccount : TAccountCompressionProgram, TAccountTokenMetadataProgram extends string ? ReadonlyAccount : TAccountTokenMetadataProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type VerifyCollectionInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: bigint; index: number; metadata: MetadataArgs; }; export type VerifyCollectionInstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: number | bigint; index: number; metadata: MetadataArgsArgs; }; export declare function getVerifyCollectionInstructionDataEncoder(): Encoder; export declare function getVerifyCollectionInstructionDataDecoder(): Decoder; export declare function getVerifyCollectionInstructionDataCodec(): Codec; export type VerifyCollectionAsyncInput = { treeConfig?: Address; leafOwner: Address; leafDelegate?: Address; merkleTree: Address; payer: TransactionSigner; /** * This account is checked to be a signer in * the case of `set_and_verify_collection` where * we are actually changing the NFT metadata. */ treeCreatorOrDelegate: Address; collectionAuthority: TransactionSigner; /** * If there is no collecton authority record PDA then * this must be the Bubblegum program address. */ collectionAuthorityRecordPda?: Address; collectionMint: Address; collectionMetadata?: Address; collectionEdition?: Address; bubblegumSigner?: Address; logWrapper?: Address; compressionProgram?: Address; tokenMetadataProgram?: Address; systemProgram?: Address; root: VerifyCollectionInstructionDataArgs['root']; dataHash?: VerifyCollectionInstructionDataArgs['dataHash']; creatorHash?: VerifyCollectionInstructionDataArgs['creatorHash']; nonce: VerifyCollectionInstructionDataArgs['nonce']; index: VerifyCollectionInstructionDataArgs['index']; metadata: VerifyCollectionInstructionDataArgs['metadata']; proof?: Array
; }; export declare function getVerifyCollectionInstructionAsync(input: VerifyCollectionAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type VerifyCollectionInput = { treeConfig: Address; leafOwner: Address; leafDelegate?: Address; merkleTree: Address; payer: TransactionSigner; /** * This account is checked to be a signer in * the case of `set_and_verify_collection` where * we are actually changing the NFT metadata. */ treeCreatorOrDelegate: Address; collectionAuthority: TransactionSigner; /** * If there is no collecton authority record PDA then * this must be the Bubblegum program address. */ collectionAuthorityRecordPda?: Address; collectionMint: Address; collectionMetadata: Address; collectionEdition: Address; bubblegumSigner?: Address; logWrapper?: Address; compressionProgram?: Address; tokenMetadataProgram?: Address; systemProgram?: Address; root: VerifyCollectionInstructionDataArgs['root']; dataHash?: VerifyCollectionInstructionDataArgs['dataHash']; creatorHash?: VerifyCollectionInstructionDataArgs['creatorHash']; nonce: VerifyCollectionInstructionDataArgs['nonce']; index: VerifyCollectionInstructionDataArgs['index']; metadata: VerifyCollectionInstructionDataArgs['metadata']; proof?: Array
; }; export declare function getVerifyCollectionInstruction(input: VerifyCollectionInput, config?: { programAddress?: TProgramAddress; }): VerifyCollectionInstruction; export type ParsedVerifyCollectionInstruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; leafOwner: TAccountMetas[1]; leafDelegate: TAccountMetas[2]; merkleTree: TAccountMetas[3]; payer: TAccountMetas[4]; /** * This account is checked to be a signer in * the case of `set_and_verify_collection` where * we are actually changing the NFT metadata. */ treeCreatorOrDelegate: TAccountMetas[5]; collectionAuthority: TAccountMetas[6]; /** * If there is no collecton authority record PDA then * this must be the Bubblegum program address. */ collectionAuthorityRecordPda?: TAccountMetas[7] | undefined; collectionMint: TAccountMetas[8]; collectionMetadata: TAccountMetas[9]; collectionEdition: TAccountMetas[10]; bubblegumSigner: TAccountMetas[11]; logWrapper: TAccountMetas[12]; compressionProgram: TAccountMetas[13]; tokenMetadataProgram: TAccountMetas[14]; systemProgram: TAccountMetas[15]; }; data: VerifyCollectionInstructionData; }; export declare function parseVerifyCollectionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedVerifyCollectionInstruction; //# sourceMappingURL=verifyCollection.d.ts.map