Skip to content

Instantly share code, notes, and snippets.

Avatar
😜
Hi

Siwei 申思维 sg552

😜
Hi
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am sg552 on github.
  • I am siwei (https://keybase.io/siwei) on keybase.
  • I have a public key ASDL5VM_vjBIyg2sMyvVgK2bPynSWJRzF2srO4-MITf1HAo

To claim this, I am signing this object:

@sg552
sg552 / ERC20.sol
Created Jul 12, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.21+commit.dfe3193c.js&optimize=true&gist=
View ERC20.sol
pragma solidity ^0.4.10;
interface ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function allowance(address owner, address spender) public view returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);