Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metaplex-foundation/mpl-candy-guard

Package Overview
Dependencies
Maintainers
10
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metaplex-foundation/mpl-candy-guard - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

5

dist/src/generated/errors/index.d.ts

@@ -260,4 +260,9 @@ declare type ErrorWithCode = Error & {

}
export declare class InvalidAccountVersionError extends Error {
readonly code: number;
readonly name: string;
constructor();
}
export declare function errorFromCode(code: number): MaybeErrorWithCode;
export declare function errorFromName(name: string): MaybeErrorWithCode;
export {};

15

dist/src/generated/errors/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidMintAuthorityError = exports.AllocationGuardNotEnabledError = exports.AllocationLimitReachedError = exports.AllocationNotInitializedError = exports.ExceededProgramListSizeError = exports.UnauthorizedProgramFoundError = exports.DuplicatedMintLimitIdError = exports.DuplicatedGroupLabelError = exports.UnlockNotEnabledError = exports.ThawNotEnabledError = exports.ExceededMaximumFreezePeriodError = exports.FreezeEscrowAlreadyExistsError = exports.MissingFreezePeriodError = exports.FreezeNotInitializedError = exports.FreezeGuardNotEnabledError = exports.MissingFreezeInstructionError = exports.AddressNotAuthorizedError = exports.MaximumRedeemedAmountError = exports.MissingNftError = exports.InvalidNftCollectionError = exports.AllowedMintLimitReachedError = exports.AllowedListNotEnabledError = exports.MissingAllowedListProofError = exports.AddressNotFoundInAllowedListError = exports.InvalidMintTimeError = exports.AfterEndDateError = exports.GatewayTokenInvalidError = exports.MissingRequiredSignatureError = exports.TokenTransferFailedError = exports.NotEnoughTokensError = exports.TokenBurnFailedError = exports.NotEnoughSOLError = exports.MintNotLiveError = exports.MintNotLastTransactionError = exports.CollectionUpdateAuthorityKeyMismatchError = exports.MissingCollectionAccountsError = exports.CollectionKeyMismatchError = exports.InstructionNotFoundError = exports.CandyMachineEmptyError = exports.ExceededLengthError = exports.GroupNotFoundError = exports.RequiredGroupLabelNotFoundError = exports.NumericalOverflowErrorError = exports.MissingRemainingAccountError = exports.UninitializedError = exports.IncorrectOwnerError = exports.DataIncrementLimitExceededError = exports.PublicKeyMismatchError = exports.DeserializationErrorError = exports.InvalidAccountSizeError = void 0;
exports.errorFromName = exports.errorFromCode = exports.InstructionBuilderFailedError = void 0;
exports.errorFromName = exports.errorFromCode = exports.InvalidAccountVersionError = exports.InstructionBuilderFailedError = void 0;
const createErrorFromCodeLookup = new Map();

@@ -670,2 +670,15 @@ const createErrorFromNameLookup = new Map();

createErrorFromNameLookup.set('InstructionBuilderFailed', () => new InstructionBuilderFailedError());
class InvalidAccountVersionError extends Error {
constructor() {
super('Invalid account version');
this.code = 0x17a3;
this.name = 'InvalidAccountVersion';
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, InvalidAccountVersionError);
}
}
}
exports.InvalidAccountVersionError = InvalidAccountVersionError;
createErrorFromCodeLookup.set(0x17a3, () => new InvalidAccountVersionError());
createErrorFromNameLookup.set('InvalidAccountVersion', () => new InvalidAccountVersionError());
function errorFromCode(code) {

@@ -672,0 +685,0 @@ const createError = createErrorFromCodeLookup.get(code);

8

package.json
{
"name": "@metaplex-foundation/mpl-candy-guard",
"version": "0.4.1",
"version": "0.4.2",
"programVersion": "1.0.0",

@@ -11,11 +11,7 @@ "description": "MPL Candy Guard JavaScript API. This MPL package is for the current generation of the Candy Guard",

"preversion": "yarn check:publish-ready",
"postversion": "git add package.json && git commit -m \"chore: update $npm_package_name to v$npm_package_version\" && git tag $npm_package_name@$npm_package_version",
"prepublishOnly": "yarn check:publish-ready",
"postpublish": "git push origin && git push origin --tags",
"build:docs": "typedoc",
"build": "rimraf dist && tsc -p tsconfig.json",
"test": "tape dist/test/**/*.test.js",
"test": "CI=1 tape dist/test/**/*.test.js",
"api:gen": "DEBUG='(solita|rustbin):(info|error)' solita",
"amman:start": "amman start",
"amman:stop": "amman stop",
"lint": "eslint \"{src,test}/**/*.ts\" --format stylish",

@@ -22,0 +18,0 @@ "fix:lint": "yarn lint --fix",

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