-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpackage.json
126 lines (126 loc) · 6.25 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
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
{
"name": "@brickblock/smart-contracts",
"version": "6.1.0",
"description": "Smart contracts for the Brickblock platform",
"license": "UNLICENSED",
"engines": {
"node": ">=8",
"yarn": ">=1.5.1"
},
"repository": {
"type": "git",
"url": "[email protected]:platform/smart-contracts.git"
},
"author": "Brickblock Dev Team <[email protected]>",
"scripts": {
"---SECTION:BLOCKCHAIN---": "-------------------- HOW TO START A LOCAL BLOCKCHAIN --------------------",
"start:geth": "./scripts/geth/start-geth.sh",
"start": "yarn build && node e2e-tooling/bootstrap.js",
"start:e2e-tooling": "node e2e-tooling/bootstrap.js",
"---SECTION:BUILD---": "-------------------- HOW TO BUILD THE SMART CONTRACTS --------------------",
"build:comment": "Compile smart contracts and output into the build/ dir",
"build": "rimraf build && truffle compile --reset && yarn build:inject-deployed-contracts",
"build:inject-deployed-contracts:comment": "making the deployed chainid:address pair as configured in .env available to build/contract/Brickblock.json",
"build:inject-deployed-contracts": "rm -rf deployed-contracts/ && node scripts/inject-deployed-contracts.js",
"---SECTION:CLEAN---": "-------------------- HOW TO CLEAN OLD BUILD OUTPUT --------------------",
"clean:comment": "Clean up old contracts and build files",
"clean:install:comment": "In case there are some dependency issues, a clean install often helps",
"clean:install": "rimraf node_modules && yarn install",
"---SECTION:MIGRATE---": "-------------------- HOW TO MIGRATE AND SYNC THE SMART CONTRACTS --------------------",
"migrate:comment": "Compile smart contracts and output into the build/ dir then deploys our smart contracts to the some network",
"migrate:dev": "env-cmd .env truffle migrate --network dev --reset",
"migrate:kovan": "env-cmd .env truffle migrate --network kovan --reset",
"migrate:ropsten": "env-cmd .env truffle migrate --network ropsten --reset",
"migrate:rinkeby": "env-cmd .env truffle migrate --network rinkeby --reset",
"---SECTION:TEST---": "-------------------- HOW TO TEST THE SMART CONTRACTS --------------------",
"test": "yarn build && env-cmd .env truffle test",
"test:gas-reporter": "GAS_REPORTER=true yarn test",
"test:frozen": "env-cmd .env node scripts/test-frozen.js",
"test:coverage:comment": "Because solidity-coverage is still experimental we won't fail CI if it fails for now",
"test:coverage": "( yarn solidity-coverage || true ) && open coverage/contracts/index.html",
"test:mythril:comment": "ConsenSys' security vulnerability scanner for smart contracts",
"test:mythril": "yarn truffle compile && myth --truffle",
"test:exr-gas": "env-cmd .env yarn truffle test test/misc/ExchangeRateGasCosts.js",
"---SECTION:LINT---": "-------------------- HOW TO LINT --------------------",
"lint": "yarn lint:sol && yarn lint:js",
"lint:sol": "solium --dir contracts/ --fix",
"lint:js": "eslint migrations/ scripts/ test/ --fix",
"---SECTION:RELEASE---": "------------ RELEASE SCRIPTS ------------",
"release:comment": "This script should only ever be automatically run by our CI. Manual releases are error-prone and can mess up version history",
"release": "standard-version --message \"chore(release): %s [skip ci]\"",
"---SECTION:GITHOOKS---": "----------- GITHOOKS ------------",
"precommit:comment": "Makes sure we don't commit bad code",
"precommit": "lint-staged",
"prepush:comment": "Run healthcheck on prepush to ensure no bad code makes it to GitLab",
"prepush": "yarn health",
"postmerge:comment": "Automatically run 'yarn install' on postmerge if `yarn.lock` changed",
"postmerge": "$(pwd)/scripts/post-merge-githook.sh",
"---SECTION:HOUSEKEEPING---": "-------------------- GITHOOKS, HEALTHCHECK, OPEN TODOS, VULNERABILITY CHECK etc. --------------------",
"health:comment": "Runs all checks (linters, tests etc) to gauge the overall code health",
"health": "$(pwd)/scripts/healthcheck.sh",
"todo:comment": "Prints out all code comments that begin with `TODO:` or `FIXME:`",
"todo": "leasot '**/*.js' --ignore 'node_modules/**/*','build/**/*','.git/**/*' || true",
"---SECTION:REPL---": "--- INTERACT WITH DEPLOYED CONTRACTS IN A LOCAL REPL ---",
"repl:comment": "Useful for quickly interacting with deployed contracts, likely through an INFURA node",
"repl": "truffle console --network hdwallet",
"---SECTION:DIAGRAMS---": "--- GENERATE IMAGE ASSETS FOR SMART CONTRACT ECOSYSTEM DIAGRAMS ---",
"diagram:render:comment": "using the mermaid.cli tool -> there is an online editor here https://mermaidjs.github.io/mermaid-live-editor",
"diagram:render": "node docs/sequence-diagrams/render.js"
},
"lint-staged": {
"contracts/**/*.sol": [
"solium --fix -f",
"git add"
],
"*.js": [
"eslint --fix",
"git add"
]
},
"devDependencies": {
"babel-eslint": "^8.2.1",
"bignumber.js": "^4.1.0",
"bunyan": "^1.8.12",
"bunyan-format": "^0.2.1",
"chai": "^4.1.1",
"chalk": "^2.4.0",
"concurrently": "^3.5.0",
"env-cmd": "^8.0.2",
"eslint": "^5.2.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-compat": "^2.2.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-security": "^1.4.0",
"eth-gas-reporter": "^0.1.5",
"ethereumjs-testrpc": "^6.0.1",
"ethereumjs-util": "^5.1.5",
"express": "^4.16.0",
"frozen-truffle": "npm:[email protected]",
"frozen-zeppelin-solidity": "npm:[email protected]",
"ganache-cli": "^6.1.0",
"http-proxy-middleware": "^0.18.0",
"husky": "^0.14.3",
"leasot": "^6.3.0",
"left-pad": "^1.1.3",
"lint-staged": "^7.2.0",
"mermaid.cli": "^0.5.1",
"openzeppelin-solidity": "1.11.0",
"prettier": "^1.12.1",
"ramda": "^0.25.0",
"rimraf": "^2.6.2",
"solc": "0.4.24",
"solidity-coverage": "^0.5.5",
"solium": "^1.1.8",
"standard-version": "^4.3.0",
"table": "^4.0.3",
"tree-kill": "^1.2.1",
"truffle": "4.1.13",
"truffle-contract": "^3.0.1",
"truffle-hdwallet-provider": "^0.0.6",
"wait-on": "^2.1.0",
"web3": "^0.18.4",
"yargs": "^12.0.1"
}
}