Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #283 from Loopring/rename-tokenMint
Browse files Browse the repository at this point in the history
rename TokenMint to TokenCreator
  • Loading branch information
kongliangzhong committed Apr 9, 2018
2 parents b713fd8 + 6250388 commit 1049c6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions contracts/TokenMint.sol → contracts/TokenCreator.sol
Expand Up @@ -27,14 +27,14 @@ import "./TokenRegistry.sol";
/// so the token can be traded with Loopring Protocol.
/// @author Kongliang Zhong - <kongliang@loopring.org>,
/// @author Daniel Wang - <daniel@loopring.org>.
contract TokenMint {
contract TokenCreator {
using AddressUtil for address;

address[] public tokens;
address public tokenRegistry;
address public tokenTransferDelegate;

event TokenMinted(
event TokenCreated(
address indexed addr,
string name,
string symbol,
Expand Down Expand Up @@ -65,13 +65,13 @@ contract TokenMint {
tokenTransferDelegate = _tokenTransferDelegate;
}

/// @dev Deploy an ERC20 token contract, register it with TokenRegistry,
/// @dev Deploy an ERC20 token contract, register it with TokenRegistry,
/// and returns the new token's address.
/// @param name The name of the token
/// @param symbol The symbol of the token.
/// @param decimals The decimals of the token.
/// @param totalSupply The total supply of the token.
function mintToken(
function createToken(
string name,
string symbol,
uint8 decimals,
Expand All @@ -96,7 +96,7 @@ contract TokenMint {
TokenRegistry(tokenRegistry).registerMintedToken(addr, symbol);
tokens.push(addr);

emit TokenMinted(
emit TokenCreated(
addr,
name,
symbol,
Expand Down
6 changes: 3 additions & 3 deletions migrations/2_deploy_registries.js
@@ -1,14 +1,14 @@
var TokenRegistry = artifacts.require("./TokenRegistry");
var TokenTransferDelegate = artifacts.require("./TokenTransferDelegate");
var NameRegistry = artifacts.require("./NameRegistry");
var TokenMint = artifacts.require("./TokenMint");
var TokenCreator = artifacts.require("./TokenCreator");

module.exports = function(deployer, network, accounts) {
deployer.deploy(TokenTransferDelegate);
deployer.deploy(NameRegistry);

deployer.deploy(TokenMint).then(function() {
return deployer.deploy(TokenRegistry, TokenMint.address);
deployer.deploy(TokenCreator).then(function() {
return deployer.deploy(TokenRegistry, TokenCreator.address);
});

};

0 comments on commit 1049c6d

Please sign in to comment.