Module ERC20

Source
Expand description

Module containing a contract’s types and functions.

contract ERC20 {
    function name() external view returns (string);
    function symbol() external view returns (string);
    function decimals() external view returns (uint8);
}

Structs§

ERC20Instance
A ERC20 instance.
decimalsCall
Function with signature decimals() and selector 0x313ce567.
decimalsReturn
Container type for the return parameters of the decimals() function.
nameCall
Function with signature name() and selector 0x06fdde03.
nameReturn
Container type for the return parameters of the name() function.
symbolCall
Function with signature symbol() and selector 0x95d89b41.
symbolReturn
Container type for the return parameters of the symbol() function.

Enums§

ERC20Calls
Container for all the ERC20 function calls.

Functions§

new
Creates a new wrapper around an on-chain ERC20 contract instance.