Expand description
Module containing a contract’s types and functions.
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function decimals() external view returns (uint256);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
Modules§
- Contains dynamic ABI definitions for this contract.
Structs§
- Event with signature
Approval(address,address,uint256)
and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
. - A
IERC20
instance. - Event with signature
Transfer(address,address,uint256)
and selector0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
. - Function with signature
allowance(address,address)
and selector0xdd62ed3e
. - Container type for the return parameters of the
allowance(address,address)
function. - Function with signature
approve(address,uint256)
and selector0x095ea7b3
. - Container type for the return parameters of the
approve(address,uint256)
function. - Function with signature
balanceOf(address)
and selector0x70a08231
. - Container type for the return parameters of the
balanceOf(address)
function. - Function with signature
decimals()
and selector0x313ce567
. - Container type for the return parameters of the
decimals()
function. - Function with signature
totalSupply()
and selector0x18160ddd
. - Container type for the return parameters of the
totalSupply()
function. - Function with signature
transfer(address,uint256)
and selector0xa9059cbb
. - Function with signature
transferFrom(address,address,uint256)
and selector0x23b872dd
. - Container type for the return parameters of the
transferFrom(address,address,uint256)
function. - Container type for the return parameters of the
transfer(address,uint256)
function.
Enums§
Functions§
- Creates a new wrapper around an on-chain
IERC20
contract instance.