github.com/status-im/status-go@v1.1.0/contracts/ierc20/ierc20_iface.go (about) 1 package ierc20 2 3 import ( 4 "math/big" 5 6 "github.com/ethereum/go-ethereum/accounts/abi/bind" 7 "github.com/ethereum/go-ethereum/common" 8 ) 9 10 type IERC20Iface interface { 11 BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) 12 Name(opts *bind.CallOpts) (string, error) 13 Symbol(opts *bind.CallOpts) (string, error) 14 Decimals(opts *bind.CallOpts) (uint8, error) 15 Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) 16 } 17 18 // Verify that IERC20 implements IERC20Iface. If contract changes, this will fail to compile, update interface to match. 19 var _ IERC20Iface = (*IERC20)(nil) 20 21 type IERC20CallerIface interface { 22 BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) 23 Name(opts *bind.CallOpts) (string, error) 24 Symbol(opts *bind.CallOpts) (string, error) 25 Decimals(opts *bind.CallOpts) (uint8, error) 26 } 27 28 var _ IERC20CallerIface = (*IERC20Caller)(nil)