Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 1.09 KB
pragma solidity ^0.5.0;
import "zos-lib/contracts/Initializable.sol";
import "openzeppelin-eth/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-eth/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-eth/contracts/drafts/ERC20Migrator.sol";
import "openzeppelin-eth/contracts/token/ERC20/ERC20Mintable.sol";
import "openzeppelin-eth/contracts/token/ERC20/ERC20Detailed.sol";
* @title MyUpgradeableToken
* @dev This contract is an upgradeable ERC20 token example to show how a regular token could be migrated using
* ZeppelinOS and the ERC20Migrator contract provided by the EVM package openzeppelin-eth.
contract MyUpgradeableToken is Initializable, ERC20Detailed, ERC20Mintable {
* @dev Initialization function.
* @dev This function will initialize the new upgradeable ERC20 contract and will set up the ERC20 migrator.
function initialize(ERC20Detailed _legacyToken, ERC20Migrator _migrator) initializer public {
ERC20Detailed.initialize(, _legacyToken.symbol(), _legacyToken.decimals());
You can’t perform that action at this time.