EIP 20 Non Standard Interface

EIP20NonStandardInterface

Version of ERC20 with no return values for transfer and transferFrom See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca

Methods

allowance

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

Get the current allowance from owner for spender

Parameters

NameTypeDescription

owner

address

The address of the account which owns the tokens to be spent

spender

address

The address of the account which may transfer tokens return The number of tokens allowed to be spent

Returns

NameTypeDescription

remaining

uint256

undefined

approve

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

Approve spender to transfer up to amount from src

This will overwrite the approval amount for spender and is subject to issues noted here

Parameters

NameTypeDescription

spender

address

The address of the account which may transfer tokens

amount

uint256

The number of tokens that are approved return Whether or not the approval succeeded

Returns

NameTypeDescription

success

bool

undefined

balanceOf

function balanceOf(address owner) external view returns (uint256 balance)

Gets the balance of the specified address

Parameters

NameTypeDescription

owner

address

The address from which the balance will be retrieved

Returns

NameTypeDescription

balance

uint256

undefined

totalSupply

function totalSupply() external view returns (uint256)

Get the total number of tokens in circulation

Returns

NameTypeDescription

_0

uint256

The supply of tokens

transfer

function transfer(address dst, uint256 amount) external nonpayable

Transfer amount tokens from msg.sender to dst

Parameters

NameTypeDescription

dst

address

The address of the destination account

amount

uint256

The number of tokens to transfer

transferFrom

function transferFrom(address src, address dst, uint256 amount) external nonpayable

Transfer amount tokens from src to dst

Parameters

NameTypeDescription

src

address

The address of the source account

dst

address

The address of the destination account

amount

uint256

The number of tokens to transfer

Events

Approval

event Approval(address indexed owner, address indexed spender, uint256 amount)

Parameters

NameTypeDescription

owner indexed

address

undefined

spender indexed

address

undefined

amount

uint256

undefined

Transfer

event Transfer(address indexed from, address indexed to, uint256 amount)

Parameters

NameTypeDescription

from indexed

address

undefined

to indexed

address

undefined

amount

uint256

undefined

Last updated