Documentation ¶
Index ¶
Constants ¶
View Source
const InternalEventTypePrefix = "INT-"
EventType prefix to be used for internal events. These events are not forwarded to the client, they are only used within status-go.
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"` RequestID *int `json:"requestId,omitempty"` }
Event is a type for transfer events.
type EventType ¶
type EventType string
EventType type for event types.
func (EventType) IsInternal ¶ added in v0.170.0
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.