-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
127 lines (127 loc) · 8.19 KB
/
package.json
File metadata and controls
127 lines (127 loc) · 8.19 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "in3-server",
"version": "0.1.0",
"description": "Typescript-version of the in3 server",
"main": "js/src/server/server.js",
"scripts": {
"updateTypes": "npm install slockit-generator; slockit-types ; npm uninstall slockit-generator",
"updateYaml": "mkdir -p js/src/types && node -p \"JSON.stringify(require('yaml').parse(require('fs').readFileSync('src/types/rpc.yaml', 'utf-8')))\" > js/src/types/rpc.json && cp js/src/types/rpc.json src/types/rpc.json && cp src/modules/eth/defaultConfig.json js/src/modules/eth/defaultConfig.json",
"docu": "typedoc --exclude test --excludePrivate --readme none --ignoreCompilerErrors --target ES6 --mode 'modules' --json doc.json src/index.ts ; cat doc.json | slockit-docu index slockit/in3-server/blob/master/src \"#INCUBED API\" > src/README.md ; rm doc.json",
"updateIn3": "rm -rf node_modules/in3 package-lock.json; npm install",
"build": "tsc -p . && npm run updateYaml",
"testAll": "cd node_modules/in3; npm run build && npm test; cd ../..; npm test",
"jsonTests": " node --experimental-worker node_modules/mocha/bin/_mocha --timeout 75000 --require ts-node/register --require source-map-support/register --exit test/JSONTest/JsonTests.ts",
"test-local": "export CI=1 && mocha --exit --timeout 5000 -R js/test/utils/mochaReporter --require ts-node/register --require source-map-support/register --full-trace --bail test/*/*.ts",
"test": "npm run updateYaml && NODE_ENV=test node --experimental-worker node_modules/mocha/bin/_mocha --exit --timeout 5000 -R js/test/utils/mochaReporter --require ts-node/register --require source-map-support/register --full-trace test/*/*.ts",
"testCoverage": "npm run updateYaml && nyc node --experimental-worker node_modules/mocha/bin/_mocha -R js/test/utils/mochaReporter --timeout 75000 --require ts-node/register --require source-map-support/register --exit --full-trace --bail test/*/*.ts && cp -r coverage test/report/",
"testReport": "npm run updateYaml && nyc node --experimental-worker node_modules/mocha/bin/_mocha -R mocha-junit-reporter --reporter-options mochaFile=mocha.xml --timeout 75000 --require ts-node/register --require source-map-support/register --exit --full-trace --bail test/*/*.ts && cp -r coverage test/report/",
"updateContracts": "docker run --rm -v $(pwd)/contracts:/contracts ethereum/solc:0.5.10 --optimize --combined-json abi,bin,bin-runtime,compact-format,hashes,interface,metadata,srcmap-runtime /contracts/IN3WhiteList.sol > contracts/contracts.json; docker run --rm -v $(pwd)/test:/test ethereum/solc:0.4.25 --optimize --combined-json abi,bin,bin-runtime,compact-format,hashes,interface,metadata /test/contracts/TestContract.sol > test/contracts/contracts.json;",
"start": "node --experimental-worker --inspect js/server/server",
"parity": "docker run --rm -p 8180:8180 -p 8545:8545 -p 8546:8546 slockit/parity-time-maschine:v0.0.1",
"geth": "docker run --rm -p 8545:8545 -p 8546:8546 docker.slock.it/core-technology/geth-timemachine:master",
"nethermind": "docker pull docker.slock.it/build-images/nethermind && docker run --rm -p 8545:8545 docker.slock.it/build-images/nethermind",
"docker-build": "docker build --squash --build-arg \"SSH_PRIVATE_KEY=`cat ~/.ssh/id_dsa`\" -t slockit/in3-server:0.1 .",
"docker-push": "npm run docker-build && docker push slockit/in3-server:0.1",
"docker-run": "docker run -p 8500:8500 docker.slock.it/slockit/in3-server:latest --chain=0x5 --rpcUrl=https://rpc.slock.it/goerli --minBlockHeight=6 --registry=0x013b82355a066A31427df3140C5326cdE9c64e3A --persistentFile=false --logging-host=logs7.papertrailapp.com --logging-name=Papertrail --logging-port=30571 --logging-type=winston-papertrail",
"docker-setup": "docker run -p 8500:8500 slockit/in3-server:latest --chain=0x5 --rpcUrl=https://rpc.slock.it/goerli --minBlockHeight=6 --registry=0x013b82355a066A31427df3140C5326cdE9c64e3A --persistentFile=false --autoRegistry-url=https://in3.slock.it/goerli --autoRegistry-capabilities-proof=true --autoRegistry-capabilities-multiChain=true --autoRegistry-deposit=1",
"local": "export NODE_ENV=0 && npm run build && node --experimental-worker ./js/src/server/server.js --chain=0x5 --rpcUrl=https://rpc.slock.it/goerli --minBlockHeight=6 --registry=0x013b82355a066A31427df3140C5326cdE9c64e3A --persistentFile=false",
"debug-local": "export NODE_ENV=0 && npm run build && node --inspect --experimental-worker ./js/src/server/server.js --chain=0x5 --rpcUrl=https://rpc.slock.it/goerli --minBlockHeight=6 --registry=0x013b82355a066A31427df3140C5326cdE9c64e3A --persistentFile=false",
"ipfs": "docker run -d -p 5001:5001 jbenet/go-ipfs daemon --offline",
"linkIn3": "cd node_modules; rm -rf in3; ln -s ../../in3 in3; cd ..",
"lint:solium": "node node_modules/ethlint/bin/solium.js -d contracts/",
"lint:solium:fix": "node node_modules/ethlint/bin/solium.js -d contracts/ --fix",
"lint:solhint": "node node_modules/solhint/solhint.js \"contracts/**/*.sol\" -w 0",
"local-env": "export NODE_ENV=0 && npm run build && node --experimental-worker ./js/src/server/server.js --chain=0x111 --rpcUrl=http://localhost:8545 --minBlockHeight=6 --registry=0x6dA43E64F8CC2427477178145C747E670733dEE7 --persistentFile=false --autoRegistry-url=http://127.0.0.1:8500 --autoRegistry-capabilities-proof=true --autoRegistry-capabilities-multiChain=true --autoRegistry-deposit=10",
"eth-node-local": "export NODE_ENV=0 && npm run build && node --experimental-worker ./js/src/server/server.js --chain=0x1 --rpcUrl=https://rpc.slock.it/mainnet/parity-pruned --minBlockHeight=6 --registry=0x6c095a05764a23156efd9d603eada144a9b1af33 --persistentFile=false",
"btc-node-local": "export NODE_ENV=0 && npm run build && node --experimental-worker ./js/src/server/server.js --chain=0x1 --handler=btc --registryRPC=https://rpc.slock.it/mainnet/parity-pruned --rpcUrl=https://slockit:slockit@rpc.slock.it/bitcoin --minBlockHeight=6 --registry=0x6c095a05764a23156efd9d603eada144a9b1af33 --persistentFile=false"
},
"nyc": {
"include": [
"node_modules/in3/src/**/*.ts",
"node_modules/in3/js/src/**/*.js",
"src/**/*.ts",
"test/**/*.ts"
],
"exclude": [
"!node_modules/in3/js/src/**/*.js",
"test/**/*.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"instrument": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/slockit/in3-server.git"
},
"author": "Simon Jentzsch",
"license": "(AGPL-3.0-or-later OR commercial)",
"bugs": {
"url": "https://github.com/slockit/in3-server/issues"
},
"homepage": "https://github.com/slockit/in3-server#readme",
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@types/bn.js": "^4.11.5",
"@types/cbor": "^2.0.0",
"@types/chai": "^4.1.3",
"@types/koa": "^2.0.48",
"@types/koa-bodyparser": "^4.2.2",
"@types/koa-router": "^7.0.40",
"@types/mocha": "^5.2.6",
"@types/winston": "^2.4.4",
"chai": "^4.1.2",
"dtsgenerator": "^0.9.9",
"in3": "^v2.0.8-RC1",
"lodash": "^4.17.20",
"mocha": "^5.1.1",
"mocha-junit-reporter": "^1.23.3",
"nyc": "^15.0.0",
"source-map-support": "^0.5.12",
"ts-node": "^6.0.3",
"typedoc": "^0.16.9",
"typescript": "^3.4.3",
"yaml": "^1.7.2"
},
"dependencies": {
"@ethersproject/abi": "^5.0.0-beta.133",
"@sentry/integrations": "^5.23.0",
"@sentry/node": "^5.1.0",
"ajv": "^6.12.3",
"args": "^5.0.1",
"axios": "^0.18.0",
"bn.js": "^5.0.0",
"cli-color": "^1.2.0",
"ethereumjs-abi": "^0.6.7",
"ethereumjs-account": "2.0.5",
"ethereumjs-tx": "1.3.7",
"ethereumjs-util": "6.1.0",
"ethereumjs-vm": "4.1.1",
"ethereumjs-wallet": "^0.6.0",
"ethers": "^4.0.27",
"ethjs-util": "0.1.4",
"form-data": "^2.3.2",
"in3-contracts": "^2.1.4",
"in3-trie": "^0.1.2",
"koa": "^2.7.0",
"koa-bodyparser": "^4.2.0",
"koa-router": "^7.4.0",
"merkle-patricia-tree": "^2.3.1",
"njstrace": "^1.1.0",
"pg-promise": "^8.6.4",
"prom-client": "^11.5.3",
"scrypt.js": "^0.3.0",
"winston": "^3.2.1",
"secp256k1": "3.8.0"
}
}