Skip to content

Instantly share code, notes, and snippets.

@guaerjia
Created August 25, 2021 02:00
Show Gist options
  • Select an option

  • Save guaerjia/a2895c160e0ac5c08daf7f2ea54a0f35 to your computer and use it in GitHub Desktop.

Select an option

Save guaerjia/a2895c160e0ac5c08daf7f2ea54a0f35 to your computer and use it in GitHub Desktop.
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.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
abstract contract ERC20 {
function totalSupply() virtual public view returns(uint totalSupply);
function balanceOf(address _owner) virtual public view returns(uint balance);
function transfer(address _to, uint _value) virtual public returns(bool success);
function transferFrom(address _from, address _to, uint _value) virtual public returns(bool success);
function approve(address _spender, uint _value) virtual public returns(bool success);
function allowance(address _owner, address _spender) virtual public view returns(uint remaining);
event Transfer(address indexed _tran, address indexed _to, uint _value);
event Approval(address indexed _owner, address indexed _spender, uint _value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment