1. ERC20合约
1.1 ERC20合约的提案:
https://eips.ethereum.org/EIPS/eip-20
作者: Fabian Vogelsteller, Vitalik Buterin
1.2 ERC20合约基础:
https://en.bitcoinwiki.org/wiki/ERC20
2. ERC20合约实现代码:简单案例
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
interface IERC20 {
function totalSupply() external view returns(uint);
function balanceOf(address account) external view returns(uint);
function transfer(address recipient, uint amount) external returns(bool);
function allowance(address owner, address spender) external view returns(uint