Skip to content

Latest commit

 

History

History
376 lines (322 loc) · 11 KB

IERC20.md

File metadata and controls

376 lines (322 loc) · 11 KB

IERC20.sol

View Source: contracts/interfaces/IERC20.sol

↘ Derived Contracts: IChai, IPot, IWrbtcERC20

IERC20 contract

Contract Members

Constants & Variables

string public name;
uint8 public decimals;
string public symbol;

Events

event Transfer(address indexed from, address indexed to, uint256  value);
event Approval(address indexed owner, address indexed spender, uint256  value);

Functions


totalSupply

⤾ overrides IERC777.totalSupply

function totalSupply() external view
returns(uint256)
Source Code
function totalSupply() external view returns (uint256);

balanceOf

⤾ overrides IERC777.balanceOf

function balanceOf(address _who) external view
returns(uint256)

Arguments

Name Type Description
_who address
Source Code
function balanceOf(address _who) external view returns (uint256);

allowance

function allowance(address _owner, address _spender) external view
returns(uint256)

Arguments

Name Type Description
_owner address
_spender address
Source Code
function allowance(address _owner, address _spender) external view returns (uint256);

approve

function approve(address _spender, uint256 _value) external nonpayable
returns(bool)

Arguments

Name Type Description
_spender address
_value uint256
Source Code
function approve(address _spender, uint256 _value) external returns (bool);

transfer

function transfer(address _to, uint256 _value) external nonpayable
returns(bool)

Arguments

Name Type Description
_to address
_value uint256
Source Code
function transfer(address _to, uint256 _value) external returns (bool);

transferFrom

function transferFrom(address _from, address _to, uint256 _value) external nonpayable
returns(bool)

Arguments

Name Type Description
_from address
_to address
_value uint256
Source Code
function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) external returns (bool);

Contracts