|
15 | 15 | "tsconfig.json"
|
16 | 16 | ],
|
17 | 17 | "scripts": {
|
18 |
| - "build": "yarn compile && yarn copy-external-abi && yarn typechain && yarn fix-typechain && yarn transpile-dist", |
19 |
| - "chain": "npx buidler node --no-deploy", |
| 18 | + "build": "yarn compile && yarn patch-hardhat-typechain && yarn typechain && yarn fix-typechain && yarn transpile-dist", |
| 19 | + "chain": "npx hardhat node --no-deploy", |
20 | 20 | "clean": "rm -f coverage.json; rm -rf .coverage_cache; rm -rf .coverage_contracts; rm -rf cache; rm -rf coverage; rm -rf typechain; rm -rf artifacts",
|
21 |
| - "compile": "npx buidler compile", |
| 21 | + "compile": "npx hardhat compile", |
22 | 22 | "copy-external-abi": "cp -r external/abi/**/* artifacts",
|
23 |
| - "coverage": "yarn clean && yarn build && npx buidler coverage --temp artifacts --network coverage", |
24 |
| - "etherscan:verify": "buidler --network kovan etherscan-verify --solc-input --license 'None'", |
| 23 | + "coverage": "yarn clean && yarn build && npx hardhat coverage --temp artifacts --network coverage", |
| 24 | + "etherscan:verify": "hardhat --network kovan etherscan-verify --solc-input --license 'None'", |
25 | 25 | "fix-typechain": "node scripts/fix-typechain.js && yarn rename-extensions",
|
26 | 26 | "flatten": "npx waffle flatten",
|
27 | 27 | "lint": "yarn run lint-sol && yarn run lint-ts",
|
28 | 28 | "lint-sol": "solhint 'contracts/**/*.sol'",
|
29 | 29 | "lint-ts": "tslint -c tslint.json -p tsconfig.json --fix",
|
| 30 | + "patch-hardhat-typechain": "node scripts/patch-hardhat-typechain.js", |
30 | 31 | "precommit": "lint-staged",
|
31 | 32 | "prepare": "yarn build",
|
32 | 33 | "prepack": "if [[ \"$(basename \"$PWD\")\" == \"set-protocol-v2-contracts\" ]]; then echo \"CANNOT PUBLISH FROM THIS REPO\"; exit 1; fi;",
|
33 | 34 | "rename-extensions": "for f in typechain/*.d.ts; do mv -- \"$f\" \"${f%.d.ts}.ts\"; done",
|
34 |
| - "test": "npx buidler test --network localhost", |
| 35 | + "test": "npx hardhat test --network localhost", |
35 | 36 | "test:clean": "yarn clean && yarn build && yarn test",
|
36 | 37 | "transpile": "tsc",
|
37 | 38 | "transpile-dist": "tsc -p tsconfig.dist.json",
|
38 |
| - "typechain": "npx buidler typechain" |
| 39 | + "typechain": "npx hardhat typechain" |
39 | 40 | },
|
40 | 41 | "repository": {
|
41 | 42 | "type": "git",
|
|
45 | 46 | "license": "MIT",
|
46 | 47 | "homepage": "https://github.com/SetProtocol",
|
47 | 48 | "devDependencies": {
|
| 49 | + "@ethersproject/bignumber": "^5.0.12", |
| 50 | + "@ethersproject/providers": "^5.0.17", |
| 51 | + "@nomiclabs/hardhat-ethers": "^2.0.1", |
| 52 | + "@nomiclabs/hardhat-waffle": "^2.0.1", |
48 | 53 | "@openzeppelin/contracts": "^3.1.0",
|
49 |
| - "@typechain/ethers-v4": "^1.0.0", |
| 54 | + "@typechain/ethers-v5": "^5.0.0", |
50 | 55 | "@typechain/truffle-v4": "^2.0.2",
|
51 | 56 | "@typechain/truffle-v5": "^2.0.2",
|
52 | 57 | "@typechain/web3-v1": "^1.0.0",
|
|
55 | 60 | "@types/lodash": "^4.14.86",
|
56 | 61 | "@types/mocha": "^7.0.2",
|
57 | 62 | "@types/node": "^14.0.5",
|
58 |
| - "buidler-deploy": "^0.5.14", |
59 | 63 | "chai": "^4.2.0",
|
60 | 64 | "coveralls": "^3.0.1",
|
61 | 65 | "dotenv": "^8.2.0",
|
62 | 66 | "ethereum-waffle": "^2.5.1",
|
63 |
| - "ethers": "^4.0.47", |
| 67 | + "ethers": "^5.0.24", |
| 68 | + "hardhat": "^2.0.6", |
| 69 | + "hardhat-deploy": "^0.7.0-beta.39", |
| 70 | + "hardhat-typechain": "^0.3.4", |
64 | 71 | "husky": "^4.2.5",
|
65 | 72 | "lint-staged": "^10.2.11",
|
66 | 73 | "lodash": "^4.17.4",
|
67 | 74 | "solc": "^0.6.10",
|
68 | 75 | "solhint": "^3.1.0",
|
69 |
| - "solidity-coverage": "^0.7.5", |
70 |
| - "ts-generator": "0.0.8", |
| 76 | + "solidity-coverage": "^0.7.13", |
| 77 | + "ts-generator": "^0.1.1", |
71 | 78 | "ts-node": "^8.10.1",
|
72 | 79 | "tslint": "^5.8.0",
|
73 | 80 | "tslint-eslint-rules": "^5.3.1",
|
74 | 81 | "typescript": "^3.9.3",
|
75 | 82 | "web3": "^1.2.9"
|
76 | 83 | },
|
77 | 84 | "dependencies": {
|
78 |
| - "@nomiclabs/buidler": "^1.3.4", |
79 |
| - "@nomiclabs/buidler-ethers": "^1.3.3", |
80 |
| - "@nomiclabs/buidler-waffle": "^1.3.3", |
81 |
| - "buidler-typechain": "0.1.1", |
82 | 85 | "fs-extra": "^5.0.0",
|
83 | 86 | "module-alias": "^2.2.2",
|
84 | 87 | "replace-in-file": "^6.1.0",
|
85 |
| - "typechain": "^2.0.0" |
| 88 | + "typechain": "^4.0.1" |
86 | 89 | },
|
87 | 90 | "_moduleAliases": {
|
88 | 91 | "@utils": "utils",
|
|
0 commit comments