-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpackage.json
150 lines (150 loc) · 7.06 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
142
143
144
145
146
147
148
149
150
{
"name": "@lyrafinance/protocol",
"version": "0.1.3-alpha",
"description": "protocol SDK for building on top of Lyra options markets",
"homepage": "www.lyra.finance",
"author": "Lyra Finance",
"license": "ISC",
"main": "dist/test/utils/package/index.js",
"types": "dist/test/utils/package/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/lyra-finance/lyra-protocol/tree/avalon"
},
"files": [
"dist/artifacts/@openzeppelin/**/**/**/*.json",
"dist/artifacts/contracts/**/**/*.json",
"dist/test/utils",
"dist/deployments",
"dist/scripts/util",
"dist/typechain-types",
"contracts"
],
"config": {
"src": "test/**/*.ts scripts/**/*.ts contracts/**/*.sol contracts/*.sol hardhat.config.ts"
},
"scripts": {
"clean": "hardhat clean && rimraf ./cache && rimraf ./artifacts && rimraf ./cache-ovm && rimraf ./artifacts-ovm",
"compile": "hardhat compile",
"build": "yarn clean && yarn compile",
"test": "hardhat test ./test/contracts/**/*.ts ./test/contracts/periphery/**/*.ts ./test/contracts/USDC_quoteAsset/**/*.ts",
"test:heavy": "hardhat test:heavy ./test/contracts/**/*.ts",
"coverage": "NODE_OPTIONS=\"--max-old-space-size=4096\" hardhat coverage --temp artifacts --network hardhat --testfiles \"./test/contracts/**/*.ts\"",
"peripheryCoverage": "hardhat coverage --temp artifacts --network hardhat --testfiles \"./test/contracts/periphery/**/*.ts\"",
"integrationCoverage": "hardhat coverage --temp artifacts --network hardhat --testfiles \"./test/contracts/gmx_integration/integrationTestsGMX.ts\"",
"govWrapperCoverage": "hardhat coverage --temp artifacts --network hardhat --testfiles \"./test/contracts/GovernanceWrapper/*.ts\"",
"deployAndSeed": "yarn deployTestSNX --network local && yarn seedTestSNX --network local",
"deploy:wait": "wait-port 8545 && yarn deployAndSeed",
"deployTestSNX": "hardhat run scripts/deployTestSNX.ts",
"deployTestGMX": "hardhat run scripts/deployTestGMX.ts",
"deployRealSNX": "hardhat run scripts/deployRealSNX.ts",
"deployRealGMX": "hardhat run scripts/deployRealGMX.ts",
"deployTestWithRealPricing": "hardhat run scripts/deployTestWithRealPricing.ts",
"deployTestWithRealPricingGMX": "hardhat run scripts/deployTestWithRealPricingGMX.ts",
"govWrapTestWithRealPricingGMX": "hardhat run scripts/govWrapTestWithRealPricingGMX.ts",
"seedTestSNX": "hardhat run scripts/seedTestSNX.ts",
"seedTestGMX": "hardhat run scripts/seedTestGMX.ts",
"govWrapTestGMX": "hardhat run scripts/govWrapTestGMX.ts",
"seedRealGMX": "hardhat run scripts/seedRealGMX.ts",
"seedTestWithRealPricing": "hardhat run scripts/seedTestWithRealPricing.ts",
"seedTestWithRealPricingGMX": "hardhat run scripts/seedTestWithRealPricingGMX.ts",
"integration": "hardhat test --network local ./test/integration/integrationTestsSNX.ts && hardhat test --network local ./test/integration/integrationTestsGMX.ts",
"integration:GMX": "hardhat test --network local ./test/integration/integrationTestsGMX.ts",
"integration:wait": "wait-port 8545 && hardhat test --network local ./test/integration/integrationTests.ts",
"lint": "yarn run lint:sol && yarn run lint:ts",
"lint:fix": "yarn run lint:sol:fix && yarn run lint:ts:fix",
"lint:sol": "solhint \\\"contracts/*.sol\\\" \\\"contracts/periphery/*.sol\\\" \\\"contracts/libraries/*.sol\\\"",
"lint:sol:fix": "yarn lint:sol --fix",
"lint:ts": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore --ext .js,.ts .",
"lint:ts:fix": "yarn lint:ts --fix",
"prettier:sol": "prettier --config .prettierrc --write \"contracts/**/*.sol\"",
"prettier:ts": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
"prettier:json:md": "prettier --config .prettierrc --write \"**/*.{json,md}\"",
"prettier": "yarn prettier:sol && yarn prettier:ts",
"prettier:list-different": "prettier --config .prettierrc --list-different \"**/*.{js,sol,ts}\"",
"size": "yarn build && hardhat size-contracts",
"gas-report": "REPORT_GAS=true npm run test",
"hardhat:node": "hardhat node",
"surya": "surya",
"prepare": "yarn build && yarn prepare:clean && yarn tsc",
"prepare:clean": "rimraf ./dist",
"prepare:artifacts": "yarn ts-node ./test/utils/package/prepare-artifacts.ts"
},
"devDependencies": {
"@ethereum-waffle/mock-contract": "^3.3.0",
"@ethersproject/web": "^5.6.1",
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@nomiclabs/hardhat-etherscan": "^3.1.0",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@typechain/ethers-v5": "^8.0.5",
"@typechain/hardhat": "^3.0.0",
"@types/chai": "^4.2.14",
"@types/fs-extra": "^9.0.13",
"@types/mathjs": "^9.4.2",
"@types/mocha": "^9.0.0",
"@types/mustache": "^4.1.2",
"@types/node": "^16.11.10",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"chai": "^4.2.0",
"chalk": "^4.1.0",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.2.0",
"eth-gas-reporter": "^0.2.24",
"ethereum-waffle": "^3.2.1",
"ethers": "^5.7.1",
"gmx": "git+https://github.com/0xdomrom/gmx-contracts#master",
"hardhat": "^2.8.0",
"hardhat-contract-sizer": "^2.0.3",
"hardhat-gas-reporter": "^1.0.4",
"husky": "4.3.8",
"lint-staged": "^10.5.4",
"mathjs": "^10.0.0",
"mustache": "^4.2.0",
"openzeppelin-solidity-2.3.0": "npm:[email protected]",
"prettier": "^2.5.1",
"prettier-plugin-organize-imports": "^2.3.4",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"rimraf": "^3.0.2",
"solhint": "^3.3.7",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.18",
"surya": "git+https://github.com/dominicromanowski/surya.git#patch-1",
"synthetix": "git+https://github.com/beefmaster/lyra-snaxport-integration#develop",
"ts-generator": "^0.1.1",
"ts-node": "^9.1.1",
"typechain": "^6.0.5",
"typescript": "^4.1.3",
"wait-port": "^0.2.9"
},
"dependencies": {
"@ethersproject/abi": "^5.4.0",
"@ethersproject/abstract-provider": "^5.6.0",
"@openzeppelin/hardhat-upgrades": "^1.14.0",
"@typechain/hardhat": "^3.0.0",
"@types/sinon-chai": "^3.2.9",
"@uniswap/v3-core": "^1.0.0",
"@uniswap/v3-periphery": "^1.1.1",
"axios": "^1.3.4",
"dotenv": "^9.0.2",
"hardhat-dependency-compiler": "^1.1.2",
"hardhat-interface-generator": "^0.0.6",
"hardhat-tracer": "1.0.0-alpha.6",
"lodash.uniq": "^4.5.0",
"openzeppelin-contracts-3.4.2": "npm:@openzeppelin/[email protected]",
"openzeppelin-contracts-4.4.1": "npm:@openzeppelin/[email protected]",
"openzeppelin-contracts-upgradeable-4.5.1": "npm:@openzeppelin/[email protected]",
"openzeppelin-solidity-2.3.0": "npm:[email protected]",
"solidifier": "^2.2.3",
"stochastic": "^0.0.14"
},
"peerDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@typechain/ethers-v5": "^8.0.5",
"@typechain/hardhat": "^3.0.0",
"ethers": "^5.1.0",
"hardhat": "^2.8.0",
"hardhat-dependency-compiler": "^1.1.2",
"typechain": "^6.0.5"
}
}