How to issue tokens on EtherZero network?
Chrome version: https://chrome.google.com/webstore/detail/goetz/pehghggdpcogjpbghapgfphphfaijmbp?hl=zh-CN
Firefox version:
https://addons.mozilla.org/zh-CN/firefox/addon/goetz/?src=search
2. Open the Remix website, and click Enable Optimization at Settings:
Remix website address is:
https://remix.etherzero.org/#optimize=true&version=soljson-v0.4.24+commit.e67f0147.js
Once opened, click on “settings” in the top right corner and check “Enable Optimization” at the arrow.
3. Enter the ERC 20 token code and click Run-Deploy then publish it to the network.
Enter the following code in the edit box:
pragma solidity 0.4.24;import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol";// mock class using StandardTokencontract MSM is StandardToken { string public name = "MSM"; string public symbol = "MSM"; uint public decimals = 8; uint initialBalance = 1000000000000000000; constructor() public { _mint(msg.sender, initialBalance); }}
In the code input box,
The arrow 1 is the name of the token;
The arrow 2 is the token symbol;
The number at arrow 3 is a few digits after the decimal point is displayed;
Arrow 4 is the total amount of tokens issued.
Click on the Compile screen in the upper right corner, check “Auto compile”, then click start to compile;
Then click the “Deploy” button in the “Run” interface, and the token will be issued successfully.
Click the Copy button in the lower right corner to copy the contract link and go to the block browser http://explorer.etherzero.org to check the contract.
The above,
Is the whole process of issuing tokens on EtherZero,
It’s simpler than you think.
Come to EtherZero,
Release your exclusive tokens now~~~