Skip to content

Commit eea7846

Browse files
committed
feat: upgrade typechain to target ethers v5
BREAKING CHANGE: upgrading to a new target ethers v5
1 parent f51a297 commit eea7846

8 files changed

+4090
-682
lines changed

contracts/DocumentStore.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.12;
1+
pragma solidity ^0.5.16;
22

33
import "./Ownable.sol";
44

contracts/DocumentStoreCreator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity 0.5.12;
1+
pragma solidity 0.5.16;
22

33
import "./UpgradableDocumentStore.sol";
44

contracts/DocumentStoreWithRevokeReasons.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity 0.5.12;
1+
pragma solidity 0.5.16;
22

33
import "./UpgradableDocumentStore.sol";
44

contracts/Ownable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.5.12;
1+
pragma solidity ^0.5.16;
22

33
/**
44
* @dev Contract module which provides a basic access control mechanism, where

contracts/ProxyFactory.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Importing OpenZeppelin's Proxy Factory here to build it
2-
pragma solidity 0.5.12;
2+
pragma solidity 0.5.16;
33

44
import "@openzeppelin/upgrades/contracts/upgradeability/ProxyFactory.sol";

contracts/UpgradableDocumentStore.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity 0.5.12;
1+
pragma solidity 0.5.16;
22

33
import "@openzeppelin/upgrades/contracts/Initializable.sol";
44
import "@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol";

package-lock.json

Lines changed: 4077 additions & 669 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"test": "npm run test:sol && npm run test:js",
3333
"truffle": "truffle",
3434
"benchmark": "truffle test ./benchmark/*",
35-
"typechain": "typechain --target ethers \"build/contracts/*.json\" --outDir src/contracts",
35+
"typechain": "typechain --target ethers-v5 \"build/contracts/*.json\" --outDir src/contracts",
3636
"postinstall": "node scripts/postInstall",
3737
"semantic-release": "semantic-release"
3838
},
@@ -54,7 +54,7 @@
5454
"@babel/plugin-proposal-class-properties": "^7.8.3",
5555
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
5656
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
57-
"@babel/preset-env": "^7.8.7",
57+
"@babel/preset-env": "^7.11.0",
5858
"@babel/preset-typescript": "^7.8.3",
5959
"@babel/register": "^7.8.6",
6060
"@commitlint/cli": "8.2.0",
@@ -63,6 +63,7 @@
6363
"@ls-age/commitlint-circle": "1.0.0",
6464
"@openzeppelin/contracts-ethereum-package": "^2.4.0",
6565
"@openzeppelin/upgrades": "2.6.0",
66+
"@typechain/ethers-v5": "^1.0.0",
6667
"@types/jest": "^25.1.4",
6768
"babel-eslint": "^10.1.0",
6869
"babel-jest": "^25.1.0",
@@ -76,7 +77,7 @@
7677
"eslint-plugin-chai-friendly": "^0.4.1",
7778
"eslint-plugin-import": "^2.20.0",
7879
"eslint-plugin-prettier": "^3.1.2",
79-
"ethers": "^4.0.45",
80+
"ethers": "^5.0.8",
8081
"ganache-cli": "^6.9.1",
8182
"git-cz": "3.2.1",
8283
"jest": "^25.1.0",
@@ -86,10 +87,9 @@
8687
"solhint": "^2.3.0",
8788
"solhint-plugin-prettier": "0.0.3",
8889
"solium": "^1.2.5",
89-
"truffle": "5.1.3",
90-
"typechain": "^1.0.5",
91-
"typechain-target-ethers": "^1.0.4",
92-
"typescript": "^3.8.3"
90+
"truffle": "5.1.37",
91+
"typechain": "^2.0.0",
92+
"typescript": "^3.9.7"
9393
},
9494
"config": {
9595
"commitizen": {

0 commit comments

Comments
 (0)