File tree Expand file tree Collapse file tree
contracts/satellite-chain/xc-ampleforth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module . exports = {
22 skipFiles : [ '_external' , '_mocks' ] ,
33 mocha : {
4- timeout : 100000
4+ timeout : 100000 ,
55 } ,
66} ;
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: GPL-3.0-or-later
22pragma 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 );
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: GPL-3.0-or-later
22pragma 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
88import "./UInt256Lib.sol " ;
99import "../../_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 (
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments