Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
479 changes: 283 additions & 196 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ members = [
"libraries/math",
"memo/program",
"metadata/program",
"metadata/utils",
"name-service/program",
"record/program",
"shared-memory/program",
Expand Down
9 changes: 0 additions & 9 deletions metadata/js/.editorconfig

This file was deleted.

5 changes: 2 additions & 3 deletions metadata/js/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules

docs
lib
dist/
coverage/
16 changes: 16 additions & 0 deletions metadata/js/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
ecmaVersion: 2020,
sourceType: 'module',
},
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-types': ['error', { extendDefaults: true, types: { '{}': false } }],
'@typescript-eslint/ban-ts-comment': 'off',
},
};
14 changes: 0 additions & 14 deletions metadata/js/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion metadata/js/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lib
dist
docs
5 changes: 0 additions & 5 deletions metadata/js/.mocharc.json

This file was deleted.

Empty file removed metadata/js/.nojekyll
Empty file.
5 changes: 2 additions & 3 deletions metadata/js/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
docs
lib
test-ledger
dist
node_modules
7 changes: 0 additions & 7 deletions metadata/js/.prettierrc

This file was deleted.

10 changes: 10 additions & 0 deletions metadata/js/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"useTabs": false,
"tabWidth": 2,
"arrowParens": "always",
"printWidth": 80,
"parser": "typescript"
}
111 changes: 0 additions & 111 deletions metadata/js/README.md

This file was deleted.

100 changes: 46 additions & 54 deletions metadata/js/package.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,68 @@
{
"name": "@bbachain/spl-token-metadata",
"version": "0.0.6",
"version": "0.1.2",
"author": "BBAChain Labs <developers@bbachain.com>",
"repository": "https://github.com/bbachain/program-executor",
"license": "Apache-2.0",
"keywords": [
"metadata",
"bbachain",
"blockchain"
],
"publishConfig": {
"access": "public"
},
"files": [
"lib",
"src",
"LICENSE",
"README.md"
"dist/src"
],
"type": "module",
"sideEffects": false,
"main": "lib/cjs/index.js",
"module": "lib/esm/index.mjs",
"types": "lib/types/index.d.ts",
"exports": {
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.mjs",
"types": "./lib/types/index.d.ts"
},
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"scripts": {
"clean": "shx rm -rf lib",
"build": "yarn clean && tsc -p tsconfig.json; tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
"postbuild": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
"deploy": "yarn docs && gh-pages --dist docs --dest metadata/js --dotfiles",
"test": "yarn test:unit && yarn test:e2e-built && yarn test:e2e-native && yarn test:e2e-2022",
"test:unit": "mocha test/unit",
"test:e2e-built": "start-server-and-test 'solana-test-validator --bpf-program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA ../../target/deploy/spl_token.so --reset --quiet' http://localhost:8899/health 'mocha test/e2e'",
"test:e2e-native": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health 'mocha test/e2e'",
"test:build-programs": "cargo build-bpf --manifest-path ../program/Cargo.toml && cargo build-bpf --manifest-path ../program-2022/Cargo.toml && cargo build-bpf --manifest-path ../../associated-token-account/program/Cargo.toml",
"docs": "shx rm -rf docs && NODE_OPTIONS=--max_old_space_size=4096 typedoc && shx cp .nojekyll docs/",
"fmt": "prettier --write '{*,**/*}.{js,ts,jsx,tsx,json}'",
"lint": "eslint --max-warnings 0 --ext .ts . && prettier --check '{*,**/*}.{js,ts,jsx,tsx,json}'",
"lint:fix": "eslint --fix --ext .ts . && yarn fmt",
"nuke": "shx rm -rf node_modules yarn.lock"
"check:publish-ready": "yarn build && yarn lint",
"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",
"api:gen": "DEBUG='(solita|rustbin):(info|error)' solita",
"test": "cpr test/fixtures dist/test/fixtures -o && tape dist/test/*.js",
"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"
},
"dependencies": {
"@bbachain/beet": "^0.0.1",
"@bbachain/beet-bbachain": "^0.0.1",
"@bbachain/buffer-layout": "^1.0.0",
"@bbachain/buffer-layout-utils": "^1.0.0",
"@bbachain/web3.js": "^1.0.3",
"@metaplex-foundation/cusper": "^0.0.2",
"bn.js": "^5.2.0",
"debug": "^4.3.4",
"rpc-websockets": "7.11.0"
},
"devDependencies": {
"@bbachain/spl-memo": "^0.0.1",
"@types/bn.js": "^5.1.6",
"@types/chai-as-promised": "^7.1.4",
"@types/eslint": "^8.4.0",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/mocha": "^9.1.0",
"@types/node": "^16.11.21",
"@types/node-fetch": "^2.6.12",
"@types/prettier": "^2.4.3",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"gh-pages": "^3.2.3",
"mocha": "^9.1.4",
"@msgpack/msgpack": "^2.8.0",
"@types/bn.js": "^5.1.1",
"@types/debug": "^4.1.7",
"@types/tape": "^4.13.2",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"cpr": "^3.0.1",
"esbuild": "0.15.12",
"esbuild-runner": "^2.2.1",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.5.1",
"shx": "^0.3.4",
"start-server-and-test": "^1.14.0",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typedoc": "^0.22.11",
"typescript": "^4.5.5",
"typescript-esm": "^2.0.0"
"rimraf": "^3.0.2",
"spok": "^1.4.3",
"supports-color": "^9.2.3",
"tape": "^5.5.3",
"typedoc": "^0.23.16",
"typescript": "^4.9.3"
}
}
Loading
Loading