contract

package
v0.0.0-...-8e9f79f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2018 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

type CoinwallEthAbi struct {
	EthAbi.ABI
}

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)

type EthCallTx

type EthCallTx struct {
	From     string `json:"from"`
	To       string `json:"to"`
	Gas      string `json:"gas"`
	GasPrice string `json:"gasPrice"`
	Value    string `json:"value"`
	Data     string `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL