/** * 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 AssetDataSchema, type AssetDataSchemaArgs, type MetadataArgsV2, type MetadataArgsV2Args } from '../types'; export declare const MINT_V2_DISCRIMINATOR: Uint8Array; export declare function getMintV2DiscriminatorBytes(): ReadonlyUint8Array; export type MintV2Instruction = string, TAccountPayer extends string | AccountMeta = string, TAccountTreeCreatorOrDelegate extends string | AccountMeta = string, TAccountCollectionAuthority extends string | AccountMeta = string, TAccountLeafOwner extends string | AccountMeta = string, TAccountLeafDelegate extends string | AccountMeta = string, TAccountMerkleTree extends string | AccountMeta = string, TAccountCoreCollection extends string | AccountMeta = string, TAccountMplCoreCpiSigner extends string | AccountMeta = string, 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, TAccountTreeCreatorOrDelegate extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountTreeCreatorOrDelegate, TAccountCollectionAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountCollectionAuthority, TAccountLeafOwner extends string ? ReadonlyAccount : TAccountLeafOwner, TAccountLeafDelegate extends string ? ReadonlyAccount : TAccountLeafDelegate, TAccountMerkleTree extends string ? WritableAccount : TAccountMerkleTree, TAccountCoreCollection extends string ? WritableAccount : TAccountCoreCollection, 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 MintV2InstructionData = { discriminator: ReadonlyUint8Array; metadata: MetadataArgsV2; assetData: Option; assetDataSchema: Option; }; export type MintV2InstructionDataArgs = { metadata: MetadataArgsV2Args; assetData?: OptionOrNullable; assetDataSchema?: OptionOrNullable; }; export declare function getMintV2InstructionDataEncoder(): Encoder; export declare function getMintV2InstructionDataDecoder(): Decoder; export declare function getMintV2InstructionDataCodec(): Codec; export type MintV2AsyncInput = { treeConfig?: Address; payer: TransactionSigner; /** Optional tree delegate, defaults to `payer` */ treeCreatorOrDelegate?: TransactionSigner; /** Optional collection authority, defaults to `tree_delegate` */ collectionAuthority?: TransactionSigner; leafOwner: Address; leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; mplCoreCpiSigner?: Address; logWrapper?: Address; compressionProgram?: Address; mplCoreProgram?: Address; systemProgram?: Address; metadata: MintV2InstructionDataArgs['metadata']; assetData?: MintV2InstructionDataArgs['assetData']; assetDataSchema?: MintV2InstructionDataArgs['assetDataSchema']; }; export declare function getMintV2InstructionAsync(input: MintV2AsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type MintV2Input = { treeConfig: Address; payer: TransactionSigner; /** Optional tree delegate, defaults to `payer` */ treeCreatorOrDelegate?: TransactionSigner; /** Optional collection authority, defaults to `tree_delegate` */ collectionAuthority?: TransactionSigner; leafOwner: Address; leafDelegate?: Address; merkleTree: Address; coreCollection?: Address; mplCoreCpiSigner?: Address; logWrapper?: Address; compressionProgram?: Address; mplCoreProgram?: Address; systemProgram?: Address; metadata: MintV2InstructionDataArgs['metadata']; assetData?: MintV2InstructionDataArgs['assetData']; assetDataSchema?: MintV2InstructionDataArgs['assetDataSchema']; }; export declare function getMintV2Instruction(input: MintV2Input, config?: { programAddress?: TProgramAddress; }): MintV2Instruction; export type ParsedMintV2Instruction = { programAddress: Address; accounts: { treeConfig: TAccountMetas[0]; payer: TAccountMetas[1]; /** Optional tree delegate, defaults to `payer` */ treeCreatorOrDelegate?: TAccountMetas[2] | undefined; /** Optional collection authority, defaults to `tree_delegate` */ collectionAuthority?: TAccountMetas[3] | undefined; leafOwner: TAccountMetas[4]; leafDelegate?: TAccountMetas[5] | undefined; merkleTree: TAccountMetas[6]; coreCollection?: TAccountMetas[7] | undefined; mplCoreCpiSigner?: TAccountMetas[8] | undefined; logWrapper: TAccountMetas[9]; compressionProgram: TAccountMetas[10]; mplCoreProgram: TAccountMetas[11]; systemProgram: TAccountMetas[12]; }; data: MintV2InstructionData; }; export declare function parseMintV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedMintV2Instruction; //# sourceMappingURL=mintV2.d.ts.map