-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
133 lines (133 loc) · 5.14 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
127
128
129
130
131
132
133
{
"name": "set-protocol-contract-utils",
"version": "1.0.4",
"main": "dist/artifacts/index.js",
"typings": "dist/typings/artifacts/index.d.ts",
"files": [
"build",
"dist",
"artifacts",
"contracts",
"migrations",
"scripts",
"tsconfig.dist.json",
"truffle.js"
],
"directories": {
"test": "test"
},
"scripts": {
"chain": "yarn clean-chain && ganache-cli --db blockchain --networkId 50 --accounts 20 -l 20000000 -e 10000000000 -m 'concert load couple harbor equip island argue ramp clarify fence smart topic'",
"clean": "rm -rf build; rm -rf transpiled; rm -rf types/generated",
"clean-chain": "rm -rf blockchain && cp -r snapshots/0x-Kyber-Compound blockchain",
"compile": "./node_modules/.bin/truffle compile --all",
"coverage": "yarn coverage-setup && ./node_modules/.bin/solidity-coverage && yarn coverage-cleanup",
"coverage-cleanup": "find artifacts/ts -name \\*.js* -type f -delete && find test -name \\*.js* -type f -delete && find types -name \\*.js* -type f -delete && find utils -name \\*.js* -type f -delete",
"coverage-continuous": "./node_modules/.bin/solidity-coverage",
"coverage-setup": "yarn transpile && cp -r transpiled/artifacts/ts/* artifacts/ts/. && cp -r transpiled/test/contracts/* test/. && cp -r transpiled/types/* types/. && cp -r transpiled/utils/* utils/.",
"deploy-development": "bash scripts/deploy_development.sh && yarn transformJson",
"delete-dev-addresses": "jq 'del(.development)' ./deployments/outputs.json > outputs.tmp && mv outputs.tmp ./deployments/outputs.json && bash scripts/generate_outputs.sh && git add .",
"dist": "yarn setup && bash scripts/prepare_dist.sh",
"generate-typings": "set-abi-gen --abis './build/contracts/*.json' --out './types/generated' --template './types/contract_templates/contract.mustache' --partials './types/contract_templates/partials/*.mustache'",
"lint": "yarn run lint-sol && yarn run lint-ts",
"lint-sol": "solium -d contracts/",
"lint-ts": "tslint -c tslint.json -p tsconfig.json --fix test/**/*.ts utils/**/*.ts deployments/**/*.ts",
"precommit": "lint-staged",
"prepare-test": "yarn setup && yarn transpile",
"postinstall": "bash scripts/fix-web3-eth-abi.sh",
"setup": "yarn clean && yarn deploy-development && yarn generate-typings",
"test": "yarn prepare-test && yarn truffle-test-contracts",
"test-nocompile": "yarn transpile && yarn truffle-test-contracts",
"test-continuous": "yarn deploy-development && yarn test",
"transpile": "tsc",
"transformJson": "node scripts/transform_contract_json.js",
"truffle-test-contracts": "truffle test `find transpiled/test/contracts/lib -name '*.spec.js'`",
"prepublishOnly": "yarn dist",
"flatten": "truffle-flattener contracts/managers/SocialTradingManager.sol"
},
"repository": "[email protected]:SetProtocol/set-protocol-contract-utils.git",
"author": "Brian Weickmann <[email protected]>",
"license": "Apache-2.0",
"devDependencies": {
"@0xproject/base-contract": "^1.0.4",
"@0xproject/order-utils": "^1.0.1-rc.3",
"@0xproject/types": "^1.0.1-rc.4",
"@0xproject/utils": "^2.0.2",
"@0xproject/web3-wrapper": "^1.1.2",
"@types/bignumber.js": "^4.0.3",
"@types/expect": "^1.20.4",
"@types/fs-extra": "^5.0.0",
"@types/json-stable-stringify": "^1.0.32",
"@types/lodash": "^4.14.86",
"@types/mocha": "^5.2.6",
"@types/node": "^8.5.1",
"abi-decoder": "^1.0.9",
"bignumber.js": "^4.1.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-bignumber": "^2.0.2",
"coveralls": "^3.0.1",
"ethereumjs-abi": "^0.6.4",
"ethereumjs-util": "^5.1.2",
"ethjs-abi": "^0.2.1",
"ganache-cli": "^6.3.0",
"import-sort-cli": "^4.2.0",
"import-sort-parser-babylon": "^4.2.0",
"import-sort-style-eslint": "^4.2.0",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.13",
"set-abi-gen": "1.1.0-beta.1",
"solc": "^0.5.4",
"solidity-coverage": "^0.6.3",
"truffle": "^5.1.12",
"@truffle/contract": "^4.0.2",
"tslint": "^5.8.0",
"tslint-no-unused-expression-chai": "0.0.3",
"types-ethereumjs-util": "^0.0.5",
"typescript": "^3.3.1"
},
"dependencies": {
"bn-chai": "^1.0.1",
"canonical-weth": "^1.3.1",
"dotenv": "^6.2.0",
"eth-gas-reporter": "^0.1.10",
"ethlint": "^1.2.3",
"expect": "^24.1.0",
"fs-extra": "^5.0.0",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"module-alias": "^2.1.0",
"openzeppelin-solidity": "^2.2",
"set-protocol-utils": "^1.0.0-beta.45",
"tiny-promisify": "^1.0.0",
"truffle-flattener": "^1.4.2",
"ts-mocha": "^6.0.0",
"ts-node": "^8.0.2",
"tslint-eslint-rules": "^5.3.1",
"web3": "1.0.0-beta.36",
"web3-utils": "1.0.0-beta.36",
"zos-lib": "^2.4.2"
},
"husky": {
"hooks": {
"pre-commit": "yarn precommit"
}
},
"lint-staged": {
"contracts/**/*.sol": [
"yarn lint-sol --fix",
"git add"
],
"test/**/*.ts": [
"yarn lint-ts --fix",
"git add"
],
"utils/**/*.ts": [
"yarn lint-ts --fix",
"git add"
]
},
"_moduleAliases": {
"@utils": "transpiled/utils"
}
}