This repository has been archived by the owner on Aug 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
53 lines (53 loc) · 2.62 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "karmachain2-js",
"version": "0.1.7",
"description": "Karmachain 2.0 api types",
"repository": "https://github.com/karma-coin/karmachain-js",
"author": "Avive <[email protected]>",
"license": "LicenseRef-LICENSE",
"private": false,
"engines": {
"node": ">=14.0.0"
},
"main": "./src/index.js",
"scripts": {
"generate": "npm run load:meta && npm run generate:defs && npm run generate:meta",
"load:meta": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > metadata.json",
"generate:defs": "ts-node-esm node_modules/.bin/polkadot-types-from-defs --package karmachain-js/interfaces --input ./src/interfaces --endpoint ./karmachain.json",
"generate:meta": "ts-node-esm node_modules/.bin/polkadot-types-from-chain --package karmachain-js/interfaces --endpoint ./karmachain.json --output ./src/interfaces --strict",
"build": "tsc -b --verbose",
"clean": "rm -rf dist/*",
"build-main": "npx webpack --mode production",
"build-main-dev": "npx webpack -d --mode development",
"publish": "npm publish",
"lint": "eslint . --ext .js,.ts",
"test": "npm run setup:verifier && npm run setup:offchain && ava --serial",
"setup:verifier": "curl --location 'http://localhost:9933/' --header 'Content-Type: application/json' --data '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"author_insertKey\",\"params\":{\"key_type\":\"Veri\",\"suri\":\"//Alice\",\"public\":\"0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d\"}}'",
"setup:offchain": "curl --location 'http://localhost:9933/' --header 'Content-Type: application/json' --data '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"author_insertKey\",\"params\":{\"key_type\":\"rewa\",\"suri\":\"//Alice\",\"public\":\"0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d\"}}'"
},
"dependencies": {
"@polkadot/api": "^10.7.1",
"@polkadot/util-crypto": "^12.2.1",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"ava": "^4.1.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@polkadot/typegen": "10.7.1",
"@webpack-cli/info": "^2.0.2",
"@webpack-cli/init": "^1.1.3",
"babel-loader": "^9.1.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4"
}
}