Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Type EventType `json:"type"` BlockNumber *big.Int `json:"blockNumber"` Accounts []common.Address `json:"accounts"` Message string `json:"message"` At int64 `json:"at"` ChainID uint64 `json:"chainId"` }
Event is a type for transfer events.
type Publisher ¶
type Publisher interface {
Subscribe(interface{}) event.Subscription
}
type SignalsTransmitter ¶
type SignalsTransmitter struct { Publisher // contains filtered or unexported fields }
SignalsTransmitter transmits received events as wallet signals.
func (*SignalsTransmitter) Start ¶
func (tmr *SignalsTransmitter) Start() error
Start runs loop in background.
func (*SignalsTransmitter) Stop ¶
func (tmr *SignalsTransmitter) Stop()
Stop stops the loop and waits till it exits.
Click to show internal directories.
Click to hide internal directories.