New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metaplex-foundation/mpl-bubblegum

Package Overview
Dependencies
Maintainers
10
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metaplex-foundation/mpl-bubblegum - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

dist/src/hooked/mintAuthority.d.ts

6

dist/src/generated/accounts/voucher.d.ts

@@ -40,1 +40,7 @@ /**

export declare function getVoucherSize(): number;
export declare function findVoucherPda(context: Pick<Context, 'eddsa' | 'programs'>, seeds: {
merkleTree: PublicKey;
nonce: number | bigint;
}): Pda;
export declare function fetchVoucherFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, seeds: Parameters<typeof findVoucherPda>[1], options?: RpcGetAccountOptions): Promise<Voucher>;
export declare function safeFetchVoucherFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, seeds: Parameters<typeof findVoucherPda>[1], options?: RpcGetAccountOptions): Promise<Voucher | null>;

19

dist/src/generated/accounts/voucher.js

@@ -10,3 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getVoucherSize = exports.getVoucherGpaBuilder = exports.safeFetchAllVoucher = exports.fetchAllVoucher = exports.safeFetchVoucher = exports.fetchVoucher = exports.deserializeVoucher = exports.getVoucherAccountDataSerializer = void 0;
exports.safeFetchVoucherFromSeeds = exports.fetchVoucherFromSeeds = exports.findVoucherPda = exports.getVoucherSize = exports.getVoucherGpaBuilder = exports.safeFetchAllVoucher = exports.fetchAllVoucher = exports.safeFetchVoucher = exports.fetchVoucher = exports.deserializeVoucher = exports.getVoucherAccountDataSerializer = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -74,2 +74,19 @@ const serializers_1 = require("@metaplex-foundation/umi/serializers");

exports.getVoucherSize = getVoucherSize;
function findVoucherPda(context, seeds) {
const programId = context.programs.getPublicKey('mplBubblegum', 'BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY');
return context.eddsa.findPda(programId, [
(0, serializers_1.string)({ size: 'variable' }).serialize('voucher'),
(0, serializers_1.publicKey)().serialize(seeds.merkleTree),
(0, serializers_1.u64)().serialize(seeds.nonce),
]);
}
exports.findVoucherPda = findVoucherPda;
async function fetchVoucherFromSeeds(context, seeds, options) {
return fetchVoucher(context, findVoucherPda(context, seeds), options);
}
exports.fetchVoucherFromSeeds = fetchVoucherFromSeeds;
async function safeFetchVoucherFromSeeds(context, seeds, options) {
return safeFetchVoucher(context, findVoucherPda(context, seeds), options);
}
exports.safeFetchVoucherFromSeeds = safeFetchVoucherFromSeeds;
//# sourceMappingURL=voucher.js.map

@@ -171,2 +171,38 @@ /**

}
/** MetadataMintMismatch: Metadata mint does not match collection mint */
export declare class MetadataMintMismatchError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/** InvalidCollectionAuthority: Invalid collection authority */
export declare class InvalidCollectionAuthorityError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/** InvalidDelegateRecord: Invalid delegate record pda derivation */
export declare class InvalidDelegateRecordError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/** CollectionMasterEditionAccountInvalid: Edition account doesnt match collection */
export declare class CollectionMasterEditionAccountInvalidError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/** CollectionMustBeAUniqueMasterEdition: Collection Must Be a Unique Master Edition v2 */
export declare class CollectionMustBeAUniqueMasterEditionError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/** UnknownExternalError: Could not convert external error to BubblegumError */
export declare class UnknownExternalErrorError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/**

@@ -173,0 +209,0 @@ * Attempts to resolve a custom program error from the provided error code.

@@ -10,3 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getMplBubblegumErrorFromName = exports.getMplBubblegumErrorFromCode = exports.CollectionMustBeSizedError = exports.LeafAuthorityMustSignError = exports.UpdateAuthorityIncorrectError = exports.AlreadyUnverifiedError = exports.AlreadyVerifiedError = exports.CollectionNotFoundError = exports.CollectionCannotBeVerifiedInThisInstructionError = exports.IncorrectOwnerError = exports.NumericalOverflowErrorError = exports.InsufficientMintCapacityError = exports.TreeAuthorityIncorrectError = exports.MetadataBasisPointsTooHighError = exports.MetadataUriTooLongError = exports.MetadataSymbolTooLongError = exports.MetadataNameTooLongError = exports.CreatorsTooLongError = exports.DataHashMismatchError = exports.CreatorHashMismatchError = exports.NoCreatorsPresentError = exports.CreatorNotFoundError = exports.CreatorDidNotVerifyError = exports.DuplicateCreatorAddressError = exports.CreatorShareTotalMustBe100Error = exports.UnsupportedSchemaVersionError = exports.HashingMismatchError = exports.PublicKeyMismatchError = exports.AssetOwnerMismatchError = void 0;
exports.getMplBubblegumErrorFromName = exports.getMplBubblegumErrorFromCode = exports.UnknownExternalErrorError = exports.CollectionMustBeAUniqueMasterEditionError = exports.CollectionMasterEditionAccountInvalidError = exports.InvalidDelegateRecordError = exports.InvalidCollectionAuthorityError = exports.MetadataMintMismatchError = exports.CollectionMustBeSizedError = exports.LeafAuthorityMustSignError = exports.UpdateAuthorityIncorrectError = exports.AlreadyUnverifiedError = exports.AlreadyVerifiedError = exports.CollectionNotFoundError = exports.CollectionCannotBeVerifiedInThisInstructionError = exports.IncorrectOwnerError = exports.NumericalOverflowErrorError = exports.InsufficientMintCapacityError = exports.TreeAuthorityIncorrectError = exports.MetadataBasisPointsTooHighError = exports.MetadataUriTooLongError = exports.MetadataSymbolTooLongError = exports.MetadataNameTooLongError = exports.CreatorsTooLongError = exports.DataHashMismatchError = exports.CreatorHashMismatchError = exports.NoCreatorsPresentError = exports.CreatorNotFoundError = exports.CreatorDidNotVerifyError = exports.DuplicateCreatorAddressError = exports.CreatorShareTotalMustBe100Error = exports.UnsupportedSchemaVersionError = exports.HashingMismatchError = exports.PublicKeyMismatchError = exports.AssetOwnerMismatchError = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -312,2 +312,68 @@ const codeToErrorMap = new Map();

nameToErrorMap.set('CollectionMustBeSized', CollectionMustBeSizedError);
/** MetadataMintMismatch: Metadata mint does not match collection mint */
class MetadataMintMismatchError extends umi_1.ProgramError {
constructor(program, cause) {
super('Metadata mint does not match collection mint', program, cause);
this.name = 'MetadataMintMismatch';
this.code = 0x178b; // 6027
}
}
exports.MetadataMintMismatchError = MetadataMintMismatchError;
codeToErrorMap.set(0x178b, MetadataMintMismatchError);
nameToErrorMap.set('MetadataMintMismatch', MetadataMintMismatchError);
/** InvalidCollectionAuthority: Invalid collection authority */
class InvalidCollectionAuthorityError extends umi_1.ProgramError {
constructor(program, cause) {
super('Invalid collection authority', program, cause);
this.name = 'InvalidCollectionAuthority';
this.code = 0x178c; // 6028
}
}
exports.InvalidCollectionAuthorityError = InvalidCollectionAuthorityError;
codeToErrorMap.set(0x178c, InvalidCollectionAuthorityError);
nameToErrorMap.set('InvalidCollectionAuthority', InvalidCollectionAuthorityError);
/** InvalidDelegateRecord: Invalid delegate record pda derivation */
class InvalidDelegateRecordError extends umi_1.ProgramError {
constructor(program, cause) {
super('Invalid delegate record pda derivation', program, cause);
this.name = 'InvalidDelegateRecord';
this.code = 0x178d; // 6029
}
}
exports.InvalidDelegateRecordError = InvalidDelegateRecordError;
codeToErrorMap.set(0x178d, InvalidDelegateRecordError);
nameToErrorMap.set('InvalidDelegateRecord', InvalidDelegateRecordError);
/** CollectionMasterEditionAccountInvalid: Edition account doesnt match collection */
class CollectionMasterEditionAccountInvalidError extends umi_1.ProgramError {
constructor(program, cause) {
super('Edition account doesnt match collection', program, cause);
this.name = 'CollectionMasterEditionAccountInvalid';
this.code = 0x178e; // 6030
}
}
exports.CollectionMasterEditionAccountInvalidError = CollectionMasterEditionAccountInvalidError;
codeToErrorMap.set(0x178e, CollectionMasterEditionAccountInvalidError);
nameToErrorMap.set('CollectionMasterEditionAccountInvalid', CollectionMasterEditionAccountInvalidError);
/** CollectionMustBeAUniqueMasterEdition: Collection Must Be a Unique Master Edition v2 */
class CollectionMustBeAUniqueMasterEditionError extends umi_1.ProgramError {
constructor(program, cause) {
super('Collection Must Be a Unique Master Edition v2', program, cause);
this.name = 'CollectionMustBeAUniqueMasterEdition';
this.code = 0x178f; // 6031
}
}
exports.CollectionMustBeAUniqueMasterEditionError = CollectionMustBeAUniqueMasterEditionError;
codeToErrorMap.set(0x178f, CollectionMustBeAUniqueMasterEditionError);
nameToErrorMap.set('CollectionMustBeAUniqueMasterEdition', CollectionMustBeAUniqueMasterEditionError);
/** UnknownExternalError: Could not convert external error to BubblegumError */
class UnknownExternalErrorError extends umi_1.ProgramError {
constructor(program, cause) {
super('Could not convert external error to BubblegumError', program, cause);
this.name = 'UnknownExternalError';
this.code = 0x1790; // 6032
}
}
exports.UnknownExternalErrorError = UnknownExternalErrorError;
codeToErrorMap.set(0x1790, UnknownExternalErrorError);
nameToErrorMap.set('UnknownExternalError', UnknownExternalErrorError);
/**

@@ -314,0 +380,0 @@ * Attempts to resolve a custom program error from the provided error code.

12

dist/src/generated/instructions/decompressV1.d.ts

@@ -14,7 +14,7 @@ /**

leafOwner: Signer;
tokenAccount: PublicKey | Pda;
tokenAccount?: PublicKey | Pda;
mint: PublicKey | Pda;
mintAuthority: PublicKey | Pda;
metadata: PublicKey | Pda;
masterEdition: PublicKey | Pda;
mintAuthority?: PublicKey | Pda;
metadata?: PublicKey | Pda;
masterEdition?: PublicKey | Pda;
systemProgram?: PublicKey | Pda;

@@ -24,3 +24,3 @@ sysvarRent?: PublicKey | Pda;

tokenProgram?: PublicKey | Pda;
associatedTokenProgram: PublicKey | Pda;
associatedTokenProgram?: PublicKey | Pda;
logWrapper?: PublicKey | Pda;

@@ -39,2 +39,2 @@ };

export type DecompressV1InstructionArgs = DecompressV1InstructionDataArgs;
export declare function decompressV1(context: Pick<Context, 'programs'>, input: DecompressV1InstructionAccounts & DecompressV1InstructionArgs): TransactionBuilder;
export declare function decompressV1(context: Pick<Context, 'programs' | 'eddsa'>, input: DecompressV1InstructionAccounts & DecompressV1InstructionArgs): TransactionBuilder;

@@ -11,4 +11,7 @@ "use strict";

exports.decompressV1 = exports.getDecompressV1InstructionDataSerializer = void 0;
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");
const mpl_toolbox_1 = require("@metaplex-foundation/mpl-toolbox");
const umi_1 = require("@metaplex-foundation/umi");
const serializers_1 = require("@metaplex-foundation/umi/serializers");
const hooked_1 = require("../../hooked");
const shared_1 = require("../shared");

@@ -36,10 +39,32 @@ const types_1 = require("../types");

leafOwner: [input.leafOwner, true],
tokenAccount: [input.tokenAccount, true],
mint: [input.mint, true],
mintAuthority: [input.mintAuthority, true],
metadata: [input.metadata, true],
masterEdition: [input.masterEdition, true],
associatedTokenProgram: [input.associatedTokenProgram, false],
};
const resolvingArgs = {};
(0, shared_1.addObjectProperty)(resolvedAccounts, 'tokenAccount', input.tokenAccount
? [input.tokenAccount, true]
: [
(0, mpl_toolbox_1.findAssociatedTokenPda)(context, {
mint: (0, umi_1.publicKey)(input.mint, false),
owner: (0, umi_1.publicKey)(input.leafOwner, false),
}),
true,
]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'mintAuthority', input.mintAuthority
? [input.mintAuthority, true]
: [
(0, hooked_1.findMintAuthorityPda)(context, { mint: (0, umi_1.publicKey)(input.mint, false) }),
true,
]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'metadata', input.metadata
? [input.metadata, true]
: [
(0, mpl_token_metadata_1.findMetadataPda)(context, { mint: (0, umi_1.publicKey)(input.mint, false) }),
true,
]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'masterEdition', input.masterEdition
? [input.masterEdition, true]
: [
(0, mpl_token_metadata_1.findMasterEditionPda)(context, { mint: (0, umi_1.publicKey)(input.mint, false) }),
true,
]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'systemProgram', input.systemProgram

@@ -69,2 +94,8 @@ ? [input.systemProgram, false]

]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'associatedTokenProgram', input.associatedTokenProgram
? [input.associatedTokenProgram, false]
: [
context.programs.getPublicKey('splAssociatedToken', 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL'),
false,
]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'logWrapper', input.logWrapper

@@ -71,0 +102,0 @@ ? [input.logWrapper, false]

@@ -15,3 +15,3 @@ /**

merkleTree: PublicKey | Pda;
voucher: PublicKey | Pda;
voucher?: PublicKey | Pda;
logWrapper?: PublicKey | Pda;

@@ -18,0 +18,0 @@ compressionProgram?: PublicKey | Pda;

@@ -39,3 +39,2 @@ "use strict";

merkleTree: [input.merkleTree, true],
voucher: [input.voucher, true],
};

@@ -54,2 +53,11 @@ const resolvingArgs = {};

: [input.leafOwner, false]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'voucher', input.voucher
? [input.voucher, true]
: [
(0, accounts_1.findVoucherPda)(context, {
merkleTree: (0, umi_1.publicKey)(input.merkleTree, false),
nonce: input.nonce,
}),
true,
]);
(0, shared_1.addObjectProperty)(resolvedAccounts, 'logWrapper', input.logWrapper

@@ -56,0 +64,0 @@ ? [input.logWrapper, false]

@@ -10,2 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
import { PickPartial } from '../shared';
import { MetadataArgs, MetadataArgsArgs } from '../types';

@@ -52,3 +53,3 @@ export type SetAndVerifyCollectionInstructionAccounts = {

export declare function getSetAndVerifyCollectionInstructionDataSerializer(): Serializer<SetAndVerifyCollectionInstructionDataArgs, SetAndVerifyCollectionInstructionData>;
export type SetAndVerifyCollectionInstructionArgs = SetAndVerifyCollectionInstructionDataArgs;
export type SetAndVerifyCollectionInstructionArgs = PickPartial<SetAndVerifyCollectionInstructionDataArgs, 'dataHash' | 'creatorHash' | 'collection'>;
export declare function setAndVerifyCollection(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: SetAndVerifyCollectionInstructionAccounts & SetAndVerifyCollectionInstructionArgs): TransactionBuilder;

@@ -14,2 +14,3 @@ "use strict";

const serializers_1 = require("@metaplex-foundation/umi/serializers");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -116,2 +117,7 @@ const shared_1 = require("../shared");

]);
(0, shared_1.addObjectProperty)(resolvingArgs, 'dataHash', input.dataHash ??
(0, hooked_1.resolveDataHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
(0, shared_1.addObjectProperty)(resolvingArgs, 'creatorHash', input.creatorHash ??
(0, hooked_1.resolveCreatorHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
(0, shared_1.addObjectProperty)(resolvingArgs, 'collection', input.collection ?? (0, umi_1.publicKey)(input.collectionMint, false));
const resolvedArgs = { ...input, ...resolvingArgs };

@@ -118,0 +124,0 @@ (0, shared_1.addAccountMeta)(keys, signers, resolvedAccounts.treeConfig, false);

@@ -10,2 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
import { PickPartial } from '../shared';
import { MetadataArgs, MetadataArgsArgs } from '../types';

@@ -50,3 +51,3 @@ export type UnverifyCollectionInstructionAccounts = {

export declare function getUnverifyCollectionInstructionDataSerializer(): Serializer<UnverifyCollectionInstructionDataArgs, UnverifyCollectionInstructionData>;
export type UnverifyCollectionInstructionArgs = UnverifyCollectionInstructionDataArgs;
export type UnverifyCollectionInstructionArgs = PickPartial<UnverifyCollectionInstructionDataArgs, 'dataHash' | 'creatorHash'>;
export declare function unverifyCollection(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: UnverifyCollectionInstructionAccounts & UnverifyCollectionInstructionArgs): TransactionBuilder;

@@ -14,2 +14,3 @@ "use strict";

const serializers_1 = require("@metaplex-foundation/umi/serializers");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -115,2 +116,6 @@ const shared_1 = require("../shared");

]);
(0, shared_1.addObjectProperty)(resolvingArgs, 'dataHash', input.dataHash ??
(0, hooked_1.resolveDataHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
(0, shared_1.addObjectProperty)(resolvingArgs, 'creatorHash', input.creatorHash ??
(0, hooked_1.resolveCreatorHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
const resolvedArgs = { ...input, ...resolvingArgs };

@@ -117,0 +122,0 @@ (0, shared_1.addAccountMeta)(keys, signers, resolvedAccounts.treeConfig, false);

@@ -10,2 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
import { PickPartial } from '../shared';
import { MetadataArgs, MetadataArgsArgs } from '../types';

@@ -43,3 +44,3 @@ export type UnverifyCreatorInstructionAccounts = {

export declare function getUnverifyCreatorInstructionDataSerializer(): Serializer<UnverifyCreatorInstructionDataArgs, UnverifyCreatorInstructionData>;
export type UnverifyCreatorInstructionArgs = UnverifyCreatorInstructionDataArgs;
export declare function unverifyCreator(context: Pick<Context, 'programs' | 'eddsa' | 'payer'>, input: UnverifyCreatorInstructionAccounts & UnverifyCreatorInstructionArgs): TransactionBuilder;
export type UnverifyCreatorInstructionArgs = PickPartial<UnverifyCreatorInstructionDataArgs, 'dataHash' | 'creatorHash'>;
export declare function unverifyCreator(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: UnverifyCreatorInstructionAccounts & UnverifyCreatorInstructionArgs): TransactionBuilder;

@@ -13,2 +13,3 @@ "use strict";

const serializers_1 = require("@metaplex-foundation/umi/serializers");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -77,2 +78,6 @@ const shared_1 = require("../shared");

]);
(0, shared_1.addObjectProperty)(resolvingArgs, 'dataHash', input.dataHash ??
(0, hooked_1.resolveDataHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
(0, shared_1.addObjectProperty)(resolvingArgs, 'creatorHash', input.creatorHash ??
(0, hooked_1.resolveCreatorHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
const resolvedArgs = { ...input, ...resolvingArgs };

@@ -79,0 +84,0 @@ (0, shared_1.addAccountMeta)(keys, signers, resolvedAccounts.treeConfig, false);

@@ -10,2 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
import { PickPartial } from '../shared';
import { MetadataArgs, MetadataArgsArgs } from '../types';

@@ -50,3 +51,3 @@ export type VerifyCollectionInstructionAccounts = {

export declare function getVerifyCollectionInstructionDataSerializer(): Serializer<VerifyCollectionInstructionDataArgs, VerifyCollectionInstructionData>;
export type VerifyCollectionInstructionArgs = VerifyCollectionInstructionDataArgs;
export type VerifyCollectionInstructionArgs = PickPartial<VerifyCollectionInstructionDataArgs, 'dataHash' | 'creatorHash'>;
export declare function verifyCollection(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: VerifyCollectionInstructionAccounts & VerifyCollectionInstructionArgs): TransactionBuilder;

@@ -14,2 +14,3 @@ "use strict";

const serializers_1 = require("@metaplex-foundation/umi/serializers");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -115,2 +116,6 @@ const shared_1 = require("../shared");

]);
(0, shared_1.addObjectProperty)(resolvingArgs, 'dataHash', input.dataHash ??
(0, hooked_1.resolveDataHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
(0, shared_1.addObjectProperty)(resolvingArgs, 'creatorHash', input.creatorHash ??
(0, hooked_1.resolveCreatorHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
const resolvedArgs = { ...input, ...resolvingArgs };

@@ -117,0 +122,0 @@ (0, shared_1.addAccountMeta)(keys, signers, resolvedAccounts.treeConfig, false);

@@ -10,2 +10,3 @@ /**

import { Serializer } from '@metaplex-foundation/umi/serializers';
import { PickPartial } from '../shared';
import { MetadataArgs, MetadataArgsArgs } from '../types';

@@ -43,3 +44,3 @@ export type VerifyCreatorInstructionAccounts = {

export declare function getVerifyCreatorInstructionDataSerializer(): Serializer<VerifyCreatorInstructionDataArgs, VerifyCreatorInstructionData>;
export type VerifyCreatorInstructionArgs = VerifyCreatorInstructionDataArgs;
export declare function verifyCreator(context: Pick<Context, 'programs' | 'eddsa' | 'payer'>, input: VerifyCreatorInstructionAccounts & VerifyCreatorInstructionArgs): TransactionBuilder;
export type VerifyCreatorInstructionArgs = PickPartial<VerifyCreatorInstructionDataArgs, 'dataHash' | 'creatorHash'>;
export declare function verifyCreator(context: Pick<Context, 'programs' | 'eddsa' | 'identity' | 'payer'>, input: VerifyCreatorInstructionAccounts & VerifyCreatorInstructionArgs): TransactionBuilder;

@@ -13,2 +13,3 @@ "use strict";

const serializers_1 = require("@metaplex-foundation/umi/serializers");
const hooked_1 = require("../../hooked");
const accounts_1 = require("../accounts");

@@ -74,2 +75,6 @@ const shared_1 = require("../shared");

]);
(0, shared_1.addObjectProperty)(resolvingArgs, 'dataHash', input.dataHash ??
(0, hooked_1.resolveDataHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
(0, shared_1.addObjectProperty)(resolvingArgs, 'creatorHash', input.creatorHash ??
(0, hooked_1.resolveCreatorHash)(context, { ...input, ...resolvedAccounts }, { ...input, ...resolvingArgs }, programId, false));
const resolvedArgs = { ...input, ...resolvingArgs };

@@ -76,0 +81,0 @@ (0, shared_1.addAccountMeta)(keys, signers, resolvedAccounts.treeConfig, false);

@@ -16,3 +16,3 @@ "use strict";

const [leafAssetId] = (0, leafAssetId_1.findLeafAssetIdPda)(context, {
tree: input.merkleTree,
merkleTree: input.merkleTree,
leafIndex: input.leafIndex,

@@ -19,0 +19,0 @@ });

export * from './changeLog';
export * from './concurrentMerkleTree';
export * from './merkleTreeAccountData';
export * from './mintAuthority';
export * from './path';
export * from './resolvers';

@@ -20,3 +20,5 @@ "use strict";

__exportStar(require("./merkleTreeAccountData"), exports);
__exportStar(require("./mintAuthority"), exports);
__exportStar(require("./path"), exports);
__exportStar(require("./resolvers"), exports);
//# sourceMappingURL=index.js.map
import { Context, Pda, PublicKey } from '@metaplex-foundation/umi';
export declare function findLeafAssetIdPda(context: Pick<Context, 'programs' | 'eddsa'>, seeds: {
tree: PublicKey;
merkleTree: PublicKey;
leafIndex: number | bigint;
}): Pda;

@@ -10,3 +10,3 @@ "use strict";

(0, serializers_1.string)({ size: 'variable' }).serialize('asset'),
(0, serializers_1.publicKey)().serialize(seeds.tree),
(0, serializers_1.publicKey)().serialize(seeds.merkleTree),
(0, serializers_1.u64)().serialize(seeds.leafIndex),

@@ -13,0 +13,0 @@ ]);

{
"name": "@metaplex-foundation/mpl-bubblegum",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "Create and interact with compressed Metaplex NFTs",

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc