@metaplex-foundation/mpl-bubblegum
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -255,2 +255,8 @@ /** | ||
} | ||
/** InvalidCanopySize: Canopy size should be set bigger for this tree */ | ||
export declare class InvalidCanopySizeError extends ProgramError { | ||
readonly name: string; | ||
readonly code: number; | ||
constructor(program: Program, cause?: Error); | ||
} | ||
/** | ||
@@ -257,0 +263,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.InvalidTokenStandardError = exports.CreatorDidNotUnverifyError = exports.PrimarySaleCanOnlyBeFlippedToTrueError = exports.MetadataImmutableError = exports.CollectionMismatchError = exports.MissingCollectionMetadataAccountError = exports.MissingCollectionMintAccountError = exports.DecompressionDisabledError = 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; | ||
exports.getMplBubblegumErrorFromName = exports.getMplBubblegumErrorFromCode = exports.InvalidCanopySizeError = exports.InvalidTokenStandardError = exports.CreatorDidNotUnverifyError = exports.PrimarySaleCanOnlyBeFlippedToTrueError = exports.MetadataImmutableError = exports.CollectionMismatchError = exports.MissingCollectionMetadataAccountError = exports.MissingCollectionMintAccountError = exports.DecompressionDisabledError = 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"); | ||
@@ -466,2 +466,13 @@ const codeToErrorMap = new Map(); | ||
nameToErrorMap.set('InvalidTokenStandard', InvalidTokenStandardError); | ||
/** InvalidCanopySize: Canopy size should be set bigger for this tree */ | ||
class InvalidCanopySizeError extends umi_1.ProgramError { | ||
constructor(program, cause) { | ||
super('Canopy size should be set bigger for this tree', program, cause); | ||
this.name = 'InvalidCanopySize'; | ||
this.code = 0x1799; // 6041 | ||
} | ||
} | ||
exports.InvalidCanopySizeError = InvalidCanopySizeError; | ||
codeToErrorMap.set(0x1799, InvalidCanopySizeError); | ||
nameToErrorMap.set('InvalidCanopySize', InvalidCanopySizeError); | ||
/** | ||
@@ -468,0 +479,0 @@ * Attempts to resolve a custom program error from the provided error code. |
{ | ||
"name": "@metaplex-foundation/mpl-bubblegum", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"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
405499
6216