Documentation ¶
Overview ¶
Package evmupgrade monitors the Upgrade pre-deploy contract and converts its log events to cosmosSDK x/upgrade logic.
Index ¶
- Constants
- type DIInputs
- type DIOutputs
- type EventProcessor
- func (p EventProcessor) Addresses() []common.Address
- func (p EventProcessor) Deliver(ctx context.Context, _ common.Hash, elog evmenginetypes.EVMEvent) error
- func (EventProcessor) Name() string
- func (p EventProcessor) Prepare(ctx context.Context, blockHash common.Hash) ([]evmenginetypes.EVMEvent, error)
Constants ¶
View Source
const ModuleName = "evmupgrade"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DIOutputs ¶
type DIOutputs struct { depinject.Out EventProc EventProcessor InjectedEventProc evmenginetypes.InjectedEventProc }
type EventProcessor ¶
type EventProcessor struct {
// contains filtered or unexported fields
}
EventProcessor implements the evmenginetypes.EvmEventProcessor interface.
func (EventProcessor) Addresses ¶
func (p EventProcessor) Addresses() []common.Address
func (EventProcessor) Deliver ¶
func (p EventProcessor) Deliver(ctx context.Context, _ common.Hash, elog evmenginetypes.EVMEvent) error
Deliver processes a upgrade log event, which must be one of: - PlanUpgrade. - CancelUpgrade.
func (EventProcessor) Name ¶
func (EventProcessor) Name() string
func (EventProcessor) Prepare ¶
func (p EventProcessor) Prepare(ctx context.Context, blockHash common.Hash) ([]evmenginetypes.EVMEvent, error)
Prepare returns all omni stake contract EVM event logs from the provided block hash.
Click to show internal directories.
Click to hide internal directories.