/** * 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 MINT_TO_COLLECTION_V1_DISCRIMINATOR: Uint8Array; export declare function getMintToCollectionV1DiscriminatorBytes(): ReadonlyUint8Array; export type MintToCollectionV1Instruction = 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 ? WritableAccount : 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 ? ReadonlySignerAccount & AccountSignerMeta : 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 MintToCollectionV1InstructionData = { discriminator: ReadonlyUint8Array; metadata: MetadataArgs; }; export type MintToCollectionV1InstructionDataArgs = { metadata: MetadataArgsArgs; }; export declare function getMintToCollectionV1InstructionDataEncoder(): Encoder; export declare function getMintToCollectionV1InstructionDataDecoder(): Decoder; export declare function getMintToCollectionV1InstructionDataCodec(): Codec; export type MintToCollectionV1AsyncInput = { treeConfig?: Address; leafOwner: Address; leafDelegate?: Address; merkleTree: Address; payer: TransactionSigner; treeCreatorOrDelegate: 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; metadata: MintToCollectionV1InstructionDataArgs['metadata']; }; export declare function getMintToCollectionV1InstructionAsync(input: MintToCollectionV1AsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type MintToCollectionV1Input = { treeConfig: Address; leafOwner: Address; leafDelegate?: Address; merkleTree: Address; payer: TransactionSigner; treeCreatorOrDelegate: 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; metadata: MintToCollectionV1InstructionDataArgs['metadata']; }; export declare function getMintToCollectionV1Instruction(input: MintToCollectionV1Input, config?: { programAddress?: TProgramAddress; }): MintToCollectionV1Instruction; export type ParsedMintToCollectionV1Instruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; leafOwner: TAccountMetas[1]; leafDelegate: TAccountMetas[2]; merkleTree: TAccountMetas[3]; payer: TAccountMetas[4]; 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: MintToCollectionV1InstructionData; }; export declare function parseMintToCollectionV1Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedMintToCollectionV1Instruction; //# sourceMappingURL=mintToCollectionV1.d.ts.map