Socket
Socket
Sign inDemoInstall

@metaplex-foundation/mpl-core

Package Overview
Dependencies
9
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

dist/src/instructions/freeze.d.ts

6

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

@@ -177,2 +177,8 @@ /**

}
/** InvalidPluginSetting: Invalid setting for plugin */
export declare class InvalidPluginSettingError extends ProgramError {
readonly name: string;
readonly code: number;
constructor(program: Program, cause?: Error);
}
/**

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

13

dist/src/generated/errors/mplCore.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getMplCoreErrorFromName = exports.getMplCoreErrorFromCode = exports.CannotRedelegateError = exports.NoApprovalsError = exports.MissingCollectionError = exports.InvalidAssetError = exports.NotAvailableError = exports.MissingSystemProgramError = exports.MissingNewOwnerError = exports.MissingUpdateAuthorityError = exports.InvalidCollectionError = exports.AlreadyDecompressedError = exports.AlreadyCompressedError = exports.NumericalOverflowErrorError = exports.PluginAlreadyExistsError = exports.CannotBurnCollectionError = exports.CannotMigratePrintsError = exports.CannotMigrateMasterWithSupplyError = exports.MissingCompressionProofError = exports.AssetIsFrozenError = exports.InvalidAuthorityError = exports.InvalidPluginError = exports.IncorrectAssetHashError = exports.IncorrectAccountError = exports.NumericalOverflowError = exports.PluginNotFoundError = exports.PluginsNotInitializedError = exports.SerializationErrorError = exports.DeserializationErrorError = exports.InvalidSystemProgramError = void 0;
exports.getMplCoreErrorFromName = exports.getMplCoreErrorFromCode = exports.InvalidPluginSettingError = exports.CannotRedelegateError = exports.NoApprovalsError = exports.MissingCollectionError = exports.InvalidAssetError = exports.NotAvailableError = exports.MissingSystemProgramError = exports.MissingNewOwnerError = exports.MissingUpdateAuthorityError = exports.InvalidCollectionError = exports.AlreadyDecompressedError = exports.AlreadyCompressedError = exports.NumericalOverflowErrorError = exports.PluginAlreadyExistsError = exports.CannotBurnCollectionError = exports.CannotMigratePrintsError = exports.CannotMigrateMasterWithSupplyError = exports.MissingCompressionProofError = exports.AssetIsFrozenError = exports.InvalidAuthorityError = exports.InvalidPluginError = exports.IncorrectAssetHashError = exports.IncorrectAccountError = exports.NumericalOverflowError = exports.PluginNotFoundError = exports.PluginsNotInitializedError = exports.SerializationErrorError = exports.DeserializationErrorError = exports.InvalidSystemProgramError = void 0;
const umi_1 = require("@metaplex-foundation/umi");

@@ -323,2 +323,13 @@ const codeToErrorMap = new Map();

nameToErrorMap.set('CannotRedelegate', CannotRedelegateError);
/** InvalidPluginSetting: Invalid setting for plugin */
class InvalidPluginSettingError extends umi_1.ProgramError {
constructor(program, cause) {
super('Invalid setting for plugin', program, cause);
this.name = 'InvalidPluginSetting';
this.code = 0x1c; // 28
}
}
exports.InvalidPluginSettingError = InvalidPluginSettingError;
codeToErrorMap.set(0x1c, InvalidPluginSettingError);
nameToErrorMap.set('InvalidPluginSetting', InvalidPluginSettingError);
/**

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

5

dist/src/generated/types/updateDelegate.d.ts

@@ -8,5 +8,8 @@ /**

*/
import { PublicKey } from '@metaplex-foundation/umi';
import { Serializer } from '@metaplex-foundation/umi/serializers';
export type UpdateDelegate = {};
export type UpdateDelegate = {
additionalDelegates: Array<PublicKey>;
};
export type UpdateDelegateArgs = UpdateDelegate;
export declare function getUpdateDelegateSerializer(): Serializer<UpdateDelegateArgs, UpdateDelegate>;

@@ -13,7 +13,5 @@ "use strict";

function getUpdateDelegateSerializer() {
return (0, serializers_1.struct)([], {
description: 'UpdateDelegate',
});
return (0, serializers_1.struct)([['additionalDelegates', (0, serializers_1.array)((0, serializers_1.publicKey)())]], { description: 'UpdateDelegate' });
}
exports.getUpdateDelegateSerializer = getUpdateDelegateSerializer;
//# sourceMappingURL=updateDelegate.js.map

@@ -8,1 +8,2 @@ export * from './generated';

export * from './helpers';
export * from './instructions';

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

__exportStar(require("./helpers"), exports);
__exportStar(require("./instructions"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { PluginHeaderV1, Plugin as BasePlugin, RegistryRecord, PluginAuthorityPair, PluginAuthority, RoyaltiesArgs, FreezeDelegateArgs, AttributesArgs, PermanentFreezeDelegateArgs } from './generated';
import { PluginHeaderV1, Plugin as BasePlugin, RegistryRecord, PluginAuthorityPair, PluginAuthority, RoyaltiesArgs, FreezeDelegateArgs, AttributesArgs, PermanentFreezeDelegateArgs, UpdateDelegateArgs } from './generated';
import { BasePluginAuthority, PluginsList } from './types';

@@ -19,2 +19,3 @@ export declare function formPluginHeaderV1(pluginRegistryOffset: bigint): Omit<PluginHeaderV1, 'publicKey' | 'header'>;

type: 'UpdateDelegate';
data?: UpdateDelegateArgs;
} | {

@@ -21,0 +22,0 @@ type: 'Attributes';

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

function createPlugin(args) {
// TODO refactor when there are more required empty fields in plugins
if (args.type === 'UpdateDelegate') {
return {
__kind: args.type,
fields: [
args.data || {
additionalDelegates: [],
},
],
};
}
return {

@@ -25,2 +36,16 @@ __kind: args.type,

const { type, authority, data } = args;
// TODO refactor when there are more required empty fields in plugins
if (type === 'UpdateDelegate') {
return {
plugin: {
__kind: type,
fields: [
data || {
additionalDelegates: [],
},
],
},
authority: authority ? (0, umi_1.some)(authority) : (0, umi_1.none)(),
};
}
return {

@@ -27,0 +52,0 @@ plugin: { __kind: type, fields: [data || {}] },

{
"name": "@metaplex-foundation/mpl-core",
"version": "0.2.0",
"version": "0.3.0",
"description": "Digital Assets",

@@ -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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc