Skip to content

Commit cd420bc

Browse files
committed
updates zepplin upgrade repo reference
1 parent 5f46894 commit cd420bc

5 files changed

Lines changed: 20 additions & 15 deletions

File tree

.solcover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
skipFiles: ['_external', '_mocks'],
33
mocha: {
4-
timeout: 100000
4+
timeout: 100000,
55
},
66
};

contracts/satellite-chain/xc-ampleforth/XCAmple.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22
pragma solidity 0.6.12;
33

4-
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
5-
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
6-
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
4+
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
5+
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
6+
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
77

88
/**
99
* @title XC(cross-chain)Ample ERC20 token
@@ -15,9 +15,9 @@ import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
1515
* Additionally, the XCAmple contract lets the XCAmpleController
1616
* `mint` or `burn` tokens.
1717
*/
18-
contract XCAmple is IERC20, OwnableUpgradeSafe {
18+
contract XCAmple is IERC20Upgradeable, OwnableUpgradeable {
1919
// PLEASE EXERCISE CAUTION BEFORE CHANGING ANY ACCOUNTING OR MATH
20-
using SafeMath for uint256;
20+
using SafeMathUpgradeable for uint256;
2121

2222
event LogRebase(uint256 indexed epoch, uint256 globalAMPLSupply);
2323
event ControllerUpdated(address controller);

contracts/satellite-chain/xc-ampleforth/XCAmpleController.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22
pragma solidity 0.6.12;
33

4-
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
5-
import "@openzeppelin/contracts-ethereum-package/contracts/math/SignedSafeMath.sol";
6-
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
4+
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
5+
import "@openzeppelin/contracts-upgradeable/math/SignedSafeMathUpgradeable.sol";
6+
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
77

88
import "./UInt256Lib.sol";
99
import "../../_interfaces/IXCAmple.sol";
@@ -17,9 +17,9 @@ import "../../_interfaces/IBatchTxExecutor.sol";
1717
* rebase on XCAmple, based on updated AMPL supply reported through
1818
* the bridge gateway.
1919
*/
20-
contract XCAmpleController is OwnableUpgradeSafe {
21-
using SafeMath for uint256;
22-
using SignedSafeMath for int256;
20+
contract XCAmpleController is OwnableUpgradeable {
21+
using SafeMathUpgradeable for uint256;
22+
using SignedSafeMathUpgradeable for int256;
2323
using UInt256Lib for uint256;
2424

2525
event GatewayMint(

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
],
2020
"dependencies": {
2121
"@openzeppelin/contracts": "^3.2.0",
22-
"@openzeppelin/contracts-ethereum-package": "^3.0.0",
22+
"@openzeppelin/contracts-upgradeable": "^3.3.0",
2323
"chainbridge-solidity": "https://github.com/ChainSafe/chainbridge-solidity#master",
24-
"uFragments": "https://github.com/ampleforth/uFragments#master",
25-
"market-oracle": "https://github.com/ampleforth/market-oracle#master"
24+
"market-oracle": "https://github.com/ampleforth/market-oracle#master",
25+
"uFragments": "https://github.com/ampleforth/uFragments#master"
2626
},
2727
"devDependencies": {
2828
"@nomiclabs/hardhat-ethers": "^2.0.1",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,11 @@
751751
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-ethereum-package/-/contracts-ethereum-package-3.0.0.tgz#d5db971a177c3b37733db2ee4ebdb79c67575d64"
752752
integrity sha512-Xg33RtX7FGbSK/YnroLhcGNAvH30/C84NRW8KvbSdXXYiLA8YqM1bOA9sAeLjmQxXqYUn/YL4AUVTgDnG51NOw==
753753

754+
"@openzeppelin/contracts-upgradeable@^3.3.0":
755+
version "3.3.0"
756+
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-3.3.0.tgz#a536c6ff107d21319490e6cb699e555a3edcf6ea"
757+
integrity sha512-kJeNuKauR4xH52Yo3GdXXAOW4CWyWdm7VXcJFe63G8TRb45ISSnkt/gXwUa8zzEYqokQrwNZYoH/iGYfUlp6wA==
758+
754759
"@openzeppelin/contracts@^3.2.0":
755760
version "3.2.0"
756761
resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-3.2.0.tgz#3e6b3a7662d8ed64271ade96ef42655db983fd9d"

0 commit comments

Comments
 (0)