Documentation ¶
Index ¶
- Constants
- type CoinwallEthAbi
- type CoinwallEthContract
- func (contract *CoinwallEthContract) ABI() *CoinwallEthAbi
- func (contract *CoinwallEthContract) Decimals() (int, error)
- func (contract *CoinwallEthContract) GetAddressBalance(addr string) (*amount.Amount, error)
- func (contract *CoinwallEthContract) Name() (string, error)
- func (contract *CoinwallEthContract) SetRpc(client *rpc.Client)
- func (contract *CoinwallEthContract) Symbol() (string, error)
- func (contract *CoinwallEthContract) TotalSupply() (*amount.Amount, error)
- type EthCallTx
Constants ¶
View Source
const ( MethodIdSymbol = "symbol" MethodIdName = "name" MethodIdDecimals = "decimals" MethodIdBalanceOf = "balanceOf" MethodIdTotalSupply = "totalSupply" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinwallEthAbi ¶
https://theethereum.wiki/w/index.php/ERC20_Token_Standard github.com/ethereum/go-ethereum/accounts/abi#ABI
func (*CoinwallEthAbi) UnpackInputs ¶
func (abi *CoinwallEthAbi) UnpackInputs(v interface{}, name string, output []byte) (err error)
type CoinwallEthContract ¶
type CoinwallEthContract struct {
// contains filtered or unexported fields
}
func NewContractFromAddress ¶
func NewContractFromAddress(addr string) (*CoinwallEthContract, error)
func (*CoinwallEthContract) ABI ¶
func (contract *CoinwallEthContract) ABI() *CoinwallEthAbi
func (*CoinwallEthContract) Decimals ¶
func (contract *CoinwallEthContract) Decimals() (int, error)
func (*CoinwallEthContract) GetAddressBalance ¶
func (contract *CoinwallEthContract) GetAddressBalance(addr string) (*amount.Amount, error)
func (*CoinwallEthContract) Name ¶
func (contract *CoinwallEthContract) Name() (string, error)
func (*CoinwallEthContract) SetRpc ¶
func (contract *CoinwallEthContract) SetRpc(client *rpc.Client)
func (*CoinwallEthContract) Symbol ¶
func (contract *CoinwallEthContract) Symbol() (string, error)
func (*CoinwallEthContract) TotalSupply ¶
func (contract *CoinwallEthContract) TotalSupply() (*amount.Amount, error)
Click to show internal directories.
Click to hide internal directories.