-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
141 lines (141 loc) · 4.92 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
134
135
136
137
138
139
140
141
{
"name": "@indexcoop/index-rebalance-utils",
"version": "0.0.9",
"description": "Utilities for param and allocation determination for IndexCoop indices.",
"main": "dist",
"types": "dist/types",
"files": [
"artifacts",
"dist",
"contracts",
"external",
"utils",
"scripts",
"tasks",
"typechain",
"tsconfig.json"
],
"scripts": {
"build": "yarn build:typechain",
"build:lazy": "if [ ! -d \"typechain\" ]; then yarn build; fi;",
"build:typechain": "yarn transpile-dist",
"calculate-dpi-units": "npx hardhat --network production calculate-new-dpi-position",
"calculate-index-units": "npx hardhat --network production calculate-new-index-position",
"calculate-params": "npx hardhat --network production calculate-params",
"validate-index-rebalance": "npx hardhat --network production validate-index-params",
"chain": "npx hardhat node --no-deploy",
"clean": "rm -rf coverage.json .coverage_cache .coverage_contracts cache coverage typechain artifacts dist",
"clean-dev-deployment": "rm -rf deployments/50-development.json",
"fix-typechain": "node scripts/fix-typechain.js && yarn rename-extensions",
"lint": "yarn run lint-sol && yarn run lint-ts",
"lint-sol": "solhint 'contracts/**/*.sol'",
"lint-ts": "tslint -c tslint.json -p tsconfig.json --fix",
"patch-hardhat-typechain": "node scripts/patch-hardhat-typechain.js",
"precommit": "lint-staged",
"prepare": "yarn build",
"prepack": "if [[ \"$(basename \"$PWD\")\" == \"index-coop-smart-contracts\" ]]; then echo \"CANNOT PUBLISH FROM THIS REPO\"; exit 1; fi;",
"params:calc:dpi": "yarn build:lazy && BUILT=true yarn calculate-params --index DPI",
"params:calc:mvi": "yarn build:lazy && BUILT=true yarn calculate-params --index MVI",
"rebalance:calc:dpi": "yarn build:lazy && BUILT=true yarn calculate-index-units --index DPI",
"rebalance:calc:mvi": "yarn build:lazy && BUILT=true yarn calculate-index-units --index MVI",
"rebalance:validate:dpi": "yarn build:lazy && BUILT=true yarn validate-index-rebalance --index DPI",
"rebalance:validate:mvi": "yarn build:lazy && BUILT=true yarn validate-index-rebalance --index MVI",
"rename-extensions": "for f in typechain/*.d.ts; do mv -- \"$f\" \"${f%.d.ts}.ts\"; done",
"semantic-release": "semantic-release --branches master",
"test": "npx hardhat test --network localhost",
"test:fork": "FORK=true npx hardhat test",
"transpile": "tsc",
"transpile-dist": "tsc -p tsconfig.dist.json",
"typechain": "npx hardhat typechain"
},
"resolutions": {
"ganache-cli": "6.12.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/IndexCoop/index-rebalance-utils.git"
},
"author": "felix2feng",
"license": "MIT",
"homepage": "https://github.com/IndexCoop",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@typechain/ethers-v5": "^5.0.0",
"@types/chai": "^4.2.11",
"@types/fs-extra": "^5.0.0",
"@types/lodash": "^4.14.86",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.5",
"chai": "^4.2.0",
"coveralls": "^3.0.1",
"dotenv": "^8.2.0",
"ethereum-waffle": "^3.2.1",
"globby": "^11.0.2",
"hardhat": "^2.0.6",
"hardhat-deploy": "^0.7.0-beta.39",
"hardhat-typechain": "^0.3.4",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"lodash": "^4.17.4",
"semantic-release": "^19.0.2",
"ts-generator": "^0.1.1",
"ts-node": "^8.10.1",
"tslint": "^6.1.3",
"tslint-eslint-rules": "^5.4.0",
"typescript": "^3.9.3"
},
"dependencies": {
"@balancer-labs/sor": "^1.0.0",
"@dynamic-amm/sdk": "^3.0.9",
"@ethersproject/abstract-signer": "5.0.9",
"@ethersproject/bignumber": "5.0.12",
"@ethersproject/providers": "5.0.17",
"@setprotocol/index-coop-contracts": "0.0.25",
"@setprotocol/set-protocol-v2": "0.0.46",
"@sushiswap/sdk": "^5.0.0-canary.23",
"@uniswap/sdk": "^3.0.3",
"@uniswap/sdk-core": "^3.0.0",
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@uniswap/v3-core": "^1.0.0",
"@uniswap/v3-periphery": "^1.1.1",
"@uniswap/v3-sdk": "^3.2.1",
"bignumber.js": "^9.0.1",
"ethereumjs-util": "^7.0.5",
"ethers": "5.0.24",
"fs-extra": "^5.0.0",
"handlebars": "^4.7.7",
"module-alias": "^2.2.2",
"replace-in-file": "^6.1.0",
"typechain": "^4.0.1"
},
"peerDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"ethereum-waffle": "^3.2.1",
"hardhat": "^2.2.1"
},
"_moduleAliases": {
"@utils": "utils",
"@typechain": "typechain"
},
"husky": {
"hooks": {
"pre-commit": "yarn precommit"
}
},
"lint-staged": {
"test/**/*.ts": [
"yarn lint-ts --fix"
],
"utils/**/*.ts": [
"yarn lint-ts --fix"
],
"tasks/**/*.ts": [
"yarn lint-ts --fix"
],
"index-rebalances/**/*.ts": [
"yarn lint-ts --fix"
]
}
}