Documentation ¶
Index ¶
- Constants
- Variables
- type Module
- func (m *Module) AutoMigrate() error
- func (m *Module) ExtractEvent(ctx context.Context, block *tmctypes.ResultBlock, txHash common.Hash, ...) (interface{}, error)
- func (m *Module) HandleEvent(ctx context.Context, block *tmctypes.ResultBlock, txHash common.Hash, ...) error
- func (m *Module) Name() string
- func (m *Module) PrepareTables() error
Constants ¶
View Source
const (
ModuleName = "prefix_tree"
)
Variables ¶
View Source
var ( EventCreateObject = proto.MessageName(&storagetypes.EventCreateObject{}) EventDeleteObject = proto.MessageName(&storagetypes.EventDeleteObject{}) EventCancelCreateObject = proto.MessageName(&storagetypes.EventCancelCreateObject{}) EventRejectSealObject = proto.MessageName(&storagetypes.EventRejectSealObject{}) )
View Source
var BuildPrefixTreeEvents = map[string]bool{ EventCreateObject: true, EventDeleteObject: true, EventCancelCreateObject: true, EventRejectSealObject: true, }
buildPrefixTreeEvents maps event types that trigger the creation or deletion of prefix tree nodes. If an event type is present and set to true in this map, it means that event will result in changes to the prefix tree structure.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents the object module
func (*Module) AutoMigrate ¶
func (*Module) ExtractEvent ¶
Click to show internal directories.
Click to hide internal directories.