HECO发币教程 HRC20发币教程 火币智能链发币教程

HECO又叫火币智能链,如何发币呢,HECO发币教程 HRC20发币教程,今天我们来讲一下。
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(address to, uint tokens) public returns (bool success);
function approve(address spender, uint tokens) public returns (bool success);
function transferFrom(address from, address to, uint tokens) public returns (bool success);

event Transfer(address indexed from, address indexed to, uint tokens);
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);

}
标准请参考:eip-20
标准官网如下:https://eips.ethereum.org/EIPS/eip-20

实现请参考:

openzeppelin-contracts
官网如下:https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC20
都是全英文,有兴趣的可以翻译成中文看下,看完你就会发现HRC20发币很简单
如果不会可以加2460739157帮你代发

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页