Skip to main content

Module erc20

Module erc20 

Source
Expand description

The ERC-20 calls a bridge or a Core link needs: transfer (USDC into the Arbitrum bridge, a token back to Core through its system address), balanceOf, approve, decimals and symbol, and their answers.

Constants§

APPROVE
approve(address,uint256).
BALANCE_OF
balanceOf(address).
DECIMALS
decimals().
SYMBOL
symbol().
TRANSFER
transfer(address,uint256).

Functions§

approve
approve(spender, amount).
balance_of
balanceOf(owner); its answer reads with read_amount.
decimals
decimals(); its answer reads with read_decimals.
read_amount
A uint256 answer: a balance or an allowance.
read_decimals
The uint8 decimals() answers.
read_symbol
The string symbol() answers.
symbol
symbol(); its answer reads with read_symbol.
transfer
transfer(to, amount), the amount in the token’s own units.