/** * 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 SET_AND_VERIFY_COLLECTION_DISCRIMINATOR: Uint8Array; export declare function getSetAndVerifyCollectionDiscriminatorBytes(): ReadonlyUint8Array; export type SetAndVerifyCollectionInstruction = 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 SetAndVerifyCollectionInstructionData = { discriminator: ReadonlyUint8Array; root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: bigint; index: number; metadata: MetadataArgs; collection: Address; }; export type SetAndVerifyCollectionInstructionDataArgs = { root: ReadonlyUint8Array; dataHash: ReadonlyUint8Array; creatorHash: ReadonlyUint8Array; nonce: number | bigint; index: number; metadata: MetadataArgsArgs; collection: Address; }; export declare function getSetAndVerifyCollectionInstructionDataEncoder(): Encoder; export declare function getSetAndVerifyCollectionInstructionDataDecoder(): Decoder; export declare function getSetAndVerifyCollectionInstructionDataCodec(): Codec; export type SetAndVerifyCollectionAsyncInput = { 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 | TransactionSigner; 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: SetAndVerifyCollectionInstructionDataArgs['root']; dataHash?: SetAndVerifyCollectionInstructionDataArgs['dataHash']; creatorHash?: SetAndVerifyCollectionInstructionDataArgs['creatorHash']; nonce: SetAndVerifyCollectionInstructionDataArgs['nonce']; index: SetAndVerifyCollectionInstructionDataArgs['index']; metadata: SetAndVerifyCollectionInstructionDataArgs['metadata']; collection?: SetAndVerifyCollectionInstructionDataArgs['collection']; proof?: Array
; }; export declare function getSetAndVerifyCollectionInstructionAsync(input: SetAndVerifyCollectionAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise ? ReadonlySignerAccount & AccountSignerMeta : TAccountTreeCreatorOrDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountCollectionEdition, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>>; export type SetAndVerifyCollectionInput = { 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 | TransactionSigner; 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: SetAndVerifyCollectionInstructionDataArgs['root']; dataHash?: SetAndVerifyCollectionInstructionDataArgs['dataHash']; creatorHash?: SetAndVerifyCollectionInstructionDataArgs['creatorHash']; nonce: SetAndVerifyCollectionInstructionDataArgs['nonce']; index: SetAndVerifyCollectionInstructionDataArgs['index']; metadata: SetAndVerifyCollectionInstructionDataArgs['metadata']; collection?: SetAndVerifyCollectionInstructionDataArgs['collection']; proof?: Array
; }; export declare function getSetAndVerifyCollectionInstruction(input: SetAndVerifyCollectionInput, config?: { programAddress?: TProgramAddress; }): SetAndVerifyCollectionInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountTreeCreatorOrDelegate, TAccountCollectionAuthority, TAccountCollectionAuthorityRecordPda, TAccountCollectionMint, TAccountCollectionMetadata, TAccountCollectionEdition, TAccountBubblegumSigner, TAccountLogWrapper, TAccountCompressionProgram, TAccountTokenMetadataProgram, TAccountSystemProgram>; export type ParsedSetAndVerifyCollectionInstruction = { 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: SetAndVerifyCollectionInstructionData; }; export declare function parseSetAndVerifyCollectionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetAndVerifyCollectionInstruction; //# sourceMappingURL=setAndVerifyCollection.d.ts.map