Documentation ¶
Index ¶
Constants ¶
View Source
const ( NewTxEventID = eventbus.EventID("transaction-new") AddBlockEventID = eventbus.EventID("block-add") NewFlipKeyID = eventbus.EventID("flip-key-new") FastSyncCompleted = eventbus.EventID("fast-sync-completed") NewFlipEventID = eventbus.EventID("flip-new") NewFlipKeysPackageID = eventbus.EventID("flip-keys-package-new") IpfsPortChangedEventId = eventbus.EventID("ipfs-port-changed") DeleteFlipEventID = eventbus.EventID("flip-delete") PeersEventID = eventbus.EventID("peers") BlockchainResetEventID = eventbus.EventID("chain-reset") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainResetEvent ¶ added in v0.27.0
type BlockchainResetEvent struct { Header *types.Header RevertedTxs []*types.Transaction }
func (*BlockchainResetEvent) EventID ¶ added in v0.27.0
func (e *BlockchainResetEvent) EventID() eventbus.EventID
type DeleteFlipEvent ¶
type DeleteFlipEvent struct {
FlipCid []byte
}
func (DeleteFlipEvent) EventID ¶
func (DeleteFlipEvent) EventID() eventbus.EventID
type FastSyncCompletedEvent ¶
type FastSyncCompletedEvent struct { }
func (FastSyncCompletedEvent) EventID ¶
func (FastSyncCompletedEvent) EventID() eventbus.EventID
type IpfsPortChangedEvent ¶
func (IpfsPortChangedEvent) EventID ¶
func (i IpfsPortChangedEvent) EventID() eventbus.EventID
type NewBlockEvent ¶
func (*NewBlockEvent) EventID ¶
func (e *NewBlockEvent) EventID() eventbus.EventID
type NewFlipEvent ¶
func (NewFlipEvent) EventID ¶
func (NewFlipEvent) EventID() eventbus.EventID
type NewFlipKeyEvent ¶
type NewFlipKeyEvent struct { Key *types.PublicFlipKey ShardId common.ShardId Own bool }
func (*NewFlipKeyEvent) EventID ¶
func (e *NewFlipKeyEvent) EventID() eventbus.EventID
type NewFlipKeysPackageEvent ¶
type NewFlipKeysPackageEvent struct { Key *types.PrivateFlipKeysPackage ShardId common.ShardId Own bool }
func (*NewFlipKeysPackageEvent) EventID ¶
func (e *NewFlipKeysPackageEvent) EventID() eventbus.EventID
type NewTxEvent ¶
func (*NewTxEvent) EventID ¶
func (e *NewTxEvent) EventID() eventbus.EventID
type PeersEvent ¶ added in v0.26.6
type PeersEvent struct { PeersData []iface.ConnectionInfo Time time.Time }
func (*PeersEvent) EventID ¶ added in v0.26.6
func (e *PeersEvent) EventID() eventbus.EventID
Click to show internal directories.
Click to hide internal directories.