Versions in this module Expand all Collapse all v0 v0.0.2 May 5, 2019 v0.0.1 Mar 15, 2019 Changes in this version + func GetAuth() (*bind.TransactOpts, error) + type EthService struct + Scanner *ScanEventDispatcher + Token *token.Token + func NewEthService(ks *keystore.KeyStore, acc *accounts.Account, storage *storage.Storage) *EthService + func (ethSrv *EthService) Account() *accounts.Account + func (ethSrv *EthService) Client() *ethclient.Client + func (ethSrv *EthService) ConnectWeb3() *ethclient.Client + func (ethSrv *EthService) DeployTokenContract() error + func (ethSrv *EthService) GetBalance(address common.Address) (*big.Float, error) + func (ethSrv *EthService) LoadTokenContract(contractAddr common.Address) + func (ethSrv *EthService) SavePointLoad() (lastBlock uint64, lastTxIndex uint, err error) + func (ethSrv *EthService) SavePointSave(lastBlock uint64, lastTxIndex uint) error + func (ethSrv *EthService) SignBytes(b []byte) (*SignatureEthMsg, error) + type EventHandlerFunc func(*types.Block, *types.Transaction, *types.Receipt) error + type ReceiptDownloader struct + func NewReceiptDownloader(client *ethclient.Client, concurrency int) *ReceiptDownloader + func (r *ReceiptDownloader) Forget(txid common.Hash) + func (r *ReceiptDownloader) Get(txid common.Hash) (*types.Receipt, error) + func (r *ReceiptDownloader) Join() + func (r *ReceiptDownloader) Request(txid common.Hash) + func (r *ReceiptDownloader) Start() + func (r *ReceiptDownloader) Stats() (queuelen, pendinglen int) + func (r *ReceiptDownloader) Stop() + type ReceiptTask struct + Err error + Receipt *types.Receipt + Tx common.Hash + type SavePoint interface + SavePointLoad func() (lastBlock uint64, lastTxIndex uint, err error) + SavePointSave func(lastBlock uint64, lastTxIndex uint) error + type ScanEventDispatcher struct + func NewScanEventDispatcher(client *ethclient.Client, handler EventHandlerFunc, savepoint SavePoint) *ScanEventDispatcher + func (e *ScanEventDispatcher) Join() + func (e *ScanEventDispatcher) Start() + func (e *ScanEventDispatcher) Stop() + type SignatureEthMsg [65]byte