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.0.5 to 0.1.0

dist/src/authority.d.ts

41

dist/src/types.d.ts

@@ -1,7 +0,36 @@

import { Connection, PublicKey } from '@solana/web3.js';
export declare type StringPublicKey = string;
export declare type AnyPublicKey = StringPublicKey | PublicKey;
export declare type RpcRequest = (methodName: string, args: Array<any>) => any;
export declare type ConnnectionWithRpcRequest = Connection & {
_rpcRequest: RpcRequest;
import { PublicKey } from '@metaplex-foundation/umi';
import { PluginAuthority, BurnDelegate, FreezeDelegate, PermanentFreezeDelegate, Royalties, TransferDelegate, UpdateDelegate, Attributes, PermanentTransferDelegate, UpdateAuthority, PermanentBurnDelegate } from './generated';
export type BasePluginAuthority = {
type: PluginAuthorityType;
address?: PublicKey;
};
export type BaseUpdateAuthority = {
type: UpdateAuthorityType;
address?: PublicKey;
};
export type UpdateAuthorityType = UpdateAuthority['__kind'];
export type PluginAuthorityType = PluginAuthority['__kind'];
export type BasePlugin = {
authority: BasePluginAuthority;
offset?: bigint;
};
export type RoyaltiesPlugin = BasePlugin & Royalties;
export type FreezeDelegatePlugin = BasePlugin & FreezeDelegate;
export type BurnDelegatePlugin = BasePlugin & BurnDelegate;
export type TransferDelegatePlugin = BasePlugin & TransferDelegate;
export type UpdateDelegatePlugin = BasePlugin & UpdateDelegate;
export type PermanentFreezeDelegatePlugin = BasePlugin & PermanentFreezeDelegate;
export type AttributesPlugin = BasePlugin & Attributes;
export type PermanentTransferDelegatePlugin = BasePlugin & PermanentTransferDelegate;
export type PermanentBurnDelegatePlugin = BasePlugin & PermanentBurnDelegate;
export type PluginsList = {
royalties?: RoyaltiesPlugin;
freezeDelegate?: FreezeDelegatePlugin;
burnDelegate?: BurnDelegatePlugin;
transferDelegate?: TransferDelegatePlugin;
updateDelegate?: UpdateDelegatePlugin;
attributes?: AttributesPlugin;
permanentFreezeDelegate?: PermanentFreezeDelegatePlugin;
permanentTransferDelegate?: PermanentTransferDelegatePlugin;
permanentBurnDelegate?: PermanentBurnDelegatePlugin;
};

88

package.json
{
"name": "@metaplex-foundation/mpl-core",
"version": "0.0.5",
"description": "MPL Core Tooling.",
"main": "dist/src/mpl-core.js",
"types": "dist/src/mpl-core.d.ts",
"scripts": {
"check:publish-ready": "yarn build && yarn test",
"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",
"prepublish": "yarn check:publish-ready",
"postpublish": "git push origin && git push origin --tags",
"build:docs": "typedoc",
"build": "rimraf dist && tsc -p tsconfig.json",
"test": "echo mpl-core tests coming up ...",
"lint": "eslint \"{src,test}/**/*.ts\" --format stylish",
"fix:lint": "yarn lint --fix",
"prettier": "prettier \"{src,test}/**/*.ts\" --check",
"fix:prettier": "prettier --write src/",
"fix": "yarn fix:lint && yarn fix:prettier"
},
"version": "0.1.0",
"description": "Digital Assets",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"files": [
"/dist"
"/dist/src"
],

@@ -29,22 +14,53 @@ "publishConfig": {

},
"keywords": [
"nft",
"metaplex",
"solana",
"blockchain"
],
"homepage": "https://metaplex.com",
"repository": "https://github.com/metaplex-foundation/metaplex-program-library.git",
"repository": "https://github.com/metaplex-foundation/mpl-core.git",
"author": "Metaplex Maintainers <contact@metaplex.com>",
"license": "MIT",
"dependencies": {
"@solana/spl-token": "^0.1.8",
"@solana/web3.js": "^1.35.1",
"bs58": "^4.0.1"
"license": "Apache-2.0",
"dependencies": {},
"peerDependencies": {
"@metaplex-foundation/umi": "^0.8.2",
"@metaplex-foundation/mpl-toolbox": "^0.8.0",
"@noble/hashes": "^1.3.1"
},
"devDependencies": {
"@types/bs58": "^4.0.1",
"eslint": "^8.3.0",
"rimraf": "^3.0.2"
"@ava/typescript": "^3.0.1",
"@metaplex-foundation/umi": "^0.8.2",
"@metaplex-foundation/umi-bundle-tests": "^0.8.2",
"@solana/web3.js": "^1.73.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.46.1",
"ava": "^5.1.0",
"bs58": "5.0.0",
"eslint": "^8.0.1",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"typedoc": "^0.23.16",
"typedoc-plugin-expand-object-like-types": "^0.1.1",
"typedoc-plugin-missing-exports": "^1.0.0",
"typescript": "^4.9.4",
"vercel": "^28.16.0"
},
"ava": {
"typescript": {
"compile": false,
"rewritePaths": {
"src/": "dist/src/",
"test/": "dist/test/"
}
}
},
"packageManager": "pnpm@8.2.0",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.json",
"build:docs": "typedoc",
"test": "ava --timeout 600s",
"lint": "eslint --ext js,ts,tsx src",
"lint:fix": "eslint --fix --ext js,ts,tsx src",
"format": "prettier --check src test",
"format:fix": "prettier --write src test"
}
}
}
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