Skip to content

Commit

Permalink
feat: upgrade typechain to target ethers v5
Browse files Browse the repository at this point in the history
BREAKING CHANGE: upgrading to a new target ethers v5
  • Loading branch information
Nebulis committed Aug 7, 2020
1 parent f51a297 commit eea7846
Show file tree
Hide file tree
Showing 8 changed files with 4,090 additions and 682 deletions.
2 changes: 1 addition & 1 deletion contracts/DocumentStore.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.12;
pragma solidity ^0.5.16;

import "./Ownable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/DocumentStoreCreator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.12;
pragma solidity 0.5.16;

import "./UpgradableDocumentStore.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/DocumentStoreWithRevokeReasons.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.12;
pragma solidity 0.5.16;

import "./UpgradableDocumentStore.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/Ownable.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.12;
pragma solidity ^0.5.16;

/**
* @dev Contract module which provides a basic access control mechanism, where
Expand Down
2 changes: 1 addition & 1 deletion contracts/ProxyFactory.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Importing OpenZeppelin's Proxy Factory here to build it
pragma solidity 0.5.12;
pragma solidity 0.5.16;

import "@openzeppelin/upgrades/contracts/upgradeability/ProxyFactory.sol";
2 changes: 1 addition & 1 deletion contracts/UpgradableDocumentStore.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.5.12;
pragma solidity 0.5.16;

import "@openzeppelin/upgrades/contracts/Initializable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol";
Expand Down
4,746 changes: 4,077 additions & 669 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"test": "npm run test:sol && npm run test:js",
"truffle": "truffle",
"benchmark": "truffle test ./benchmark/*",
"typechain": "typechain --target ethers \"build/contracts/*.json\" --outDir src/contracts",
"typechain": "typechain --target ethers-v5 \"build/contracts/*.json\" --outDir src/contracts",
"postinstall": "node scripts/postInstall",
"semantic-release": "semantic-release"
},
Expand All @@ -54,7 +54,7 @@
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-env": "^7.11.0",
"@babel/preset-typescript": "^7.8.3",
"@babel/register": "^7.8.6",
"@commitlint/cli": "8.2.0",
Expand All @@ -63,6 +63,7 @@
"@ls-age/commitlint-circle": "1.0.0",
"@openzeppelin/contracts-ethereum-package": "^2.4.0",
"@openzeppelin/upgrades": "2.6.0",
"@typechain/ethers-v5": "^1.0.0",
"@types/jest": "^25.1.4",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.1.0",
Expand All @@ -76,7 +77,7 @@
"eslint-plugin-chai-friendly": "^0.4.1",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-prettier": "^3.1.2",
"ethers": "^4.0.45",
"ethers": "^5.0.8",
"ganache-cli": "^6.9.1",
"git-cz": "3.2.1",
"jest": "^25.1.0",
Expand All @@ -86,10 +87,9 @@
"solhint": "^2.3.0",
"solhint-plugin-prettier": "0.0.3",
"solium": "^1.2.5",
"truffle": "5.1.3",
"typechain": "^1.0.5",
"typechain-target-ethers": "^1.0.4",
"typescript": "^3.8.3"
"truffle": "5.1.37",
"typechain": "^2.0.0",
"typescript": "^3.9.7"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit eea7846

Please sign in to comment.