ERC20 interface (IERC20.sol)

View Source: openzeppelin-solidity/contracts/token/ERC20/IERC20.solโ€‹

โ†˜ Derived Contracts: ERC20โ€‹

IERC20

see https://eips.ethereum.org/EIPS/eip-20โ€‹

Events

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

Functions

transfer

โคฟ Overridden Implementation(s): ERC20.transfer,SecurityToken.transferโ€‹

function transfer(address to, uint256 value) external nonpayable
returns(bool)

Arguments

Name

Type

Description

to

address

โ€‹

value

uint256

โ€‹

approve

โคฟ Overridden Implementation(s): ERC20.approveโ€‹

function approve(address spender, uint256 value) external nonpayable
returns(bool)

Arguments

Name

Type

Description

spender

address

โ€‹

value

uint256

โ€‹

transferFrom

โคฟ Overridden Implementation(s): ERC20.transferFrom,SecurityToken.transferFromโ€‹

function transferFrom(address from, address to, uint256 value) external nonpayable
returns(bool)

Arguments

Name

Type

Description

from

address

โ€‹

to

address

โ€‹

value

uint256

โ€‹

totalSupply

โคฟ Overridden Implementation(s): ERC20.totalSupplyโ€‹

function totalSupply() external view
returns(uint256)

Arguments

Name

Type

Description

balanceOf

โคฟ Overridden Implementation(s): ERC20.balanceOfโ€‹

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

Arguments

Name

Type

Description

who

address

โ€‹

allowance

โคฟ Overridden Implementation(s): ERC20.allowanceโ€‹

function allowance(address owner, address spender) external view
returns(uint256)

Arguments

Name

Type

Description

owner

address

โ€‹

spender

address

โ€‹