forked from castframework/cast1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
94 lines (94 loc) · 3.99 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
{
"name": "@castframework/cast-eth-v1",
"version": "1.0.0",
"description": "Smartcontracts for the CAST framework",
"author": "Société Générale Forge",
"license": "See license in LICENSE",
"private": true,
"main": "truffle-config.js",
"engines": {
"node": "<14"
},
"directories": {
"test": "test"
},
"dependencies": {
"@openzeppelin/contracts": "4.4.0",
"@truffle/hdwallet-provider": "2.0.0",
"any-promise": "1.3.0",
"bignumber.js": "^9.0.2",
"bn.js": "5.2.0",
"esm": "3.2.25",
"ethereumjs-util": "^7.1.3",
"ethereumjs-wallet": "^1.0.2",
"faker": "^5.5.3",
"keccak256": "^1.0.6",
"truffle": "5.4.24",
"truffle-privatekey-provider": "1.5.0",
"typescript": "^4.5.3",
"web3": "^1.6.1"
},
"devDependencies": {
"@typechain/truffle-v5": "6.0.0",
"@types/minimist": "1.2.2",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"coveralls": "3.1.1",
"eslint": "^7.11.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-import-helpers": "^1.2.0",
"eslint-plugin-prettier": "^4.0.0",
"eth-gas-reporter": "0.2.23",
"husky": "7.0.4",
"jq.node": "^2.4.0",
"lint-staged": "^12.1.2",
"mocha": "^8.4.0",
"prettier": "^2.5.1",
"prettier-plugin-solidity": "1.0.0-beta.19",
"solhint": "3.3.6",
"solhint-plugin-prettier": "0.0.5",
"solidity-coverage": "0.7.17",
"truffle-security": "1.7.3",
"truffle-typings": "^1.0.8",
"typechain": "6.0.5"
},
"scripts": {
"clean": "rm -rf dist/",
"console:local": "NETWORK_FOLDER=../../../networks/local $(npm bin)/truffle console --network default",
"console:forge-net": "NETWORK_FOLDER=../../../networks/forge-net $(npm bin)/truffle console --network default",
"console:testnet": "NETWORK_FOLDER=../../../networks/testnet $(npm bin)/truffle console --network default",
"build:contracts": "$(npm bin)/truffle compile && typechain --target truffle-v5 \"./dist/**/*.json\" --out-dir ./dist/types",
"build:ts": "tsc",
"build": "npm run clean && npm run build:contracts && npm run build:ts && npm run extract:abi",
"copy:solidity": "cp ./src/test_solidity/* test",
"coverage:report": "npm run coverage && open coverage/index.html ",
"coverage": "./node_modules/.bin/solidity-coverage",
"deploy": "$(npm bin)/truffle migrate --network default --reset",
"distribute": "$(npm bin)/truffle exec distribute.js --network default",
"generate-address": "node generateAddress.js --network default",
"infos": "$(npm bin)/truffle exec infos.js --network default",
"infos:local": "NETWORK_FOLDER=../../../networks/local $(npm bin)/truffle exec infos.js --network default",
"infos:forge-net": "NETWORK_FOLDER=../../../networks/forge-net $(npm bin)/truffle exec infos.js --network default",
"infos:testnet": "NETWORK_FOLDER=../../../networks/testnet $(npm bin)/truffle exec infos.js --network default",
"extract:abi": "mkdir -p dist/abi; for file in dist/contracts/*.json ; do npx jqn --color=false 'property(\"abi\")' < $file > dist/abi/$(basename $file) ; done",
"extract:last-deploy": "node ./extract-last-deploy-address-from-artifacts.js",
"lint:sol": "solhint -f table {src,contracts}/**/*.sol",
"lint:ts": "eslint --ext ts src/**/*.ts",
"lint": "npm run lint:ts && npm run lint:sol",
"prestats": "npm run build && npm run lint && npm run prettify",
"prettify:sol": "prettier --config ./.prettierrc --write \"{src,contracts}/**/*.sol\"",
"prettify:ts": "prettier --config ./.prettierrc --write \"./src/**/*.ts\"",
"prettify": "npm run prettify:ts && npm run prettify:sol",
"stats": "npm run test",
"test": "npm run build && truffle test",
"verify": "truffle run verify",
"pre-commit": "lint-staged --verbose",
"init": "bin/init"
},
"lint-staged": {
"*.ts": "eslint --ignore-path .gitignore --quiet",
"*.sol": "npm run lint:sol"
}
}