forked from opynfinance/GammaProtocol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
133 lines (133 loc) · 6.58 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": "gamma-protocol",
"version": "1.0.0",
"description": "Advanced Margin Opyn",
"devDependencies": {
"@0x/order-utils": "^10.4.14",
"@codechecks/client": "^0.1.10",
"@openzeppelin/cli": "^2.8.2",
"@openzeppelin/test-helpers": "^0.5.4",
"@types/chai": "4.2.5",
"@typescript-eslint/eslint-plugin": "^2.9.0",
"@typescript-eslint/parser": "^2.9.0",
"bignumber.js": "^9.0.0",
"chai": "4.2.0",
"coveralls": "^3.0.11",
"date-fns": "^2.9.0",
"dotenv": "^8.2.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.1",
"eth-gas-reporter": "^0.2.17",
"eth-sig-util": "^3.0.0",
"ethereumjs-util": "^7.0.7",
"ethereumjs-wallet": "^1.0.1",
"ethers": "^5.0.26",
"husky": "^3.1.0",
"lint-staged": "^9.5.0",
"prettier": "^1.19.1",
"prettier-plugin-solidity": "^1.0.0-alpha.54",
"solhint": "3.0.0",
"solhint-plugin-prettier": "0.0.4",
"solidity-coverage": "0.7.5",
"surya": "^0.4.0",
"truffle": "^5.1.32",
"truffle-assertions": "0.9.2",
"truffle-contract-size": "^2.0.0",
"truffle-plugin-verify": "^0.5.2",
"truffle-typings": "^1.0.8",
"ts-node": "8.5.4",
"typechain": "^1.0.5",
"typechain-target-truffle": "1.0.2",
"typescript": "3.7.2",
"web3-utils": "1.2.4"
},
"files": [
"build"
],
"scripts": {
"ganache": "ganache-cli -d --port 8545 --defaultBalanceEther 500",
"migrate": "truffle migrate",
"build": "npm run compile:contracts && npm run compile:types",
"compile:contracts": "truffle compile",
"compile:types": "typechain --target=truffle --outDir build/types/truffle-types \"build/contracts/*.json\"",
"deploy:development": "npm run build && npm run migrate -- --network development",
"deploy:mainnet": "npm run build && npm run migrate -- --network mainnet",
"deploy:rinkeby": "npm run build && npm run migrate -- --network rinkeby",
"lint:tests": "eslint 'test/**/*.ts'",
"lint:tests:fix": "npm run lint:tests -- --fix",
"lint:sol": "solhint -f table contracts/**/*.sol",
"lint:sol:prettier:fix": "prettier --write \"contracts/**/*.sol\"",
"lint:tests:prettier:fix": "prettier --write \"test/**/*.ts\"",
"test:unit": "truffle test ./test/unit-tests/*.ts",
"test:integration": "truffle test ./test/integration-tests/*.ts",
"test:testing-engine": "truffle test ./test/test-engine/*.ts",
"test:mainnet-fork": "./scripts/local-e2e.sh",
"coverage": "truffle run coverage --file \"test/unit-tests/*.test.ts\"",
"contract-size": "truffle run contract-size --checkMaxSize",
"generate:doc": "npm run generate:doc:control-flow & npm run generate:doc:uml",
"generate:doc:control-flow": "npm run doc:control-flow & npm run doc:control-flow:high-level & npm run doc:control-flow:controller & npm run doc:control-flow:pool & npm run doc:control-flow:oracle & npm run doc:control-flow:pricer & npm run doc:control-flow:otoken & npm run doc:control-flow:factory & npm run doc:control-flow:whitelist & npm run doc:control-flow:addressbook ",
"generate:doc:uml": "npm run doc:uml & npm run doc:uml:controller & npm run doc:uml:pool & npm run doc:uml:calculator & npm run doc:uml:oracle & npm run doc:uml:pricer & npm run doc:uml:otoken & npm run doc:uml:factory & npm run doc:uml:whitelist & npm run doc:uml:addressbook",
"doc:control-flow": "surya graph -m contracts/*.sol | dot -Tpng > ./docs/control-flow/Gamma.png",
"doc:control-flow:high-level": "surya graph -s contracts/*.sol | dot -Tpng > ./docs/control-flow/GammaHighLevel.png",
"doc:control-flow:controller": "surya graph -m contracts/Controller.sol | dot -Tpng > ./docs/control-flow/GammaController.png",
"doc:control-flow:pool": "surya graph -m contracts/MarginPool.sol | dot -Tpng > ./docs/control-flow/GammaPool.png",
"doc:control-flow:calculator": "surya graph -m -l contracts/MarginCalculator.sol | dot -Tpng > ./docs/control-flow/GammaCalculator.png",
"doc:control-flow:oracle": "surya graph -m contracts/Oracle.sol | dot -Tpng > ./docs/control-flow/GammaOracle.png",
"doc:control-flow:pricer": "surya graph -m contracts/pricers/*.sol | dot -Tpng > ./docs/control-flow/GammaPricer.png",
"doc:control-flow:otoken": "surya graph -m contracts/Otoken.sol | dot -Tpng > ./docs/control-flow/GammaOtoken.png",
"doc:control-flow:factory": "surya graph -m contracts/OtokenFactory.sol | dot -Tpng > ./docs/control-flow/GammaFactory.png",
"doc:control-flow:whitelist": "surya graph -m contracts/Whitelist.sol | dot -Tpng > ./docs/control-flow/GammaWhitelist.png",
"doc:control-flow:addressbook": "surya graph -m contracts/AddressBook.sol | dot -Tpng > ./docs/control-flow/GammaAddressbook.png",
"doc:uml": "sol2uml ./contracts -f png -o ./docs/uml/GammaUML.png",
"doc:uml:controller": "sol2uml ./contracts/Controller.sol -f png -o ./docs/uml/GammaController.png",
"doc:uml:pool": "sol2uml ./contracts/MarginPool.sol -f png -o ./docs/uml/GammaPool.png",
"doc:uml:calculator": "sol2uml ./contracts/MarginCalculator.sol -f png -o ./docs/uml/GammaCalculator.png",
"doc:uml:oracle": "sol2uml ./contracts/Oracle.sol -f png -o ./docs/uml/GammaOracle.png",
"doc:uml:pricer": "sol2uml ./contracts/pricers/ -f png -o ./docs/uml/GammaPricer.png",
"doc:uml:otoken": "sol2uml ./contracts/Otoken.sol -f png -o ./docs/uml/GammaOtoken.png",
"doc:uml:factory": "sol2uml ./contracts/OtokenFactory.sol -f png -o ./docs/uml/GammaFactory.png",
"doc:uml:whitelist": "sol2uml ./contracts/Whitelist.sol -f png -o ./docs/uml/GammaWhitelist.png",
"doc:uml:addressbook": "sol2uml ./contracts/AddressBook.sol -f png -o ./docs/uml/GammaAddressbook.png",
"docify": "node docify.js",
"ci:test:unit": "CI=true truffle test ./test/unit-tests/*.ts",
"ci:test:integration": "CI=true truffle test ./test/integration-tests/*.ts"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.sol": [
"npm run lint:sol:prettier:fix",
"git add"
],
"test/**": [
"npm run lint:tests:fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/opynfinance/GammaProtocol.git"
},
"keywords": [
"options",
"ethereum",
"defi"
],
"author": "Opyn",
"license": "ISC",
"bugs": {
"url": "https://github.com/opynfinance/GammaProtocol/issues"
},
"homepage": "https://github.com/opynfinance/GammaProtocol#readme",
"dependencies": {
"@truffle/hdwallet-provider": "^1.0.44",
"solc-0.6.10": "npm:solc@^0.6.10",
"solidity-docgen": "^0.5.6",
"yargs": "^13.2.4"
}
}