evmupgrade

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package evmupgrade monitors the Upgrade pre-deploy contract and converts its log events to cosmosSDK x/upgrade logic.

Index

Constants

View Source
const ModuleName = "evmupgrade"

Variables

This section is empty.

Functions

This section is empty.

Types

type DIInputs

type DIInputs struct {
	depinject.In
	EthCl        ethclient.Client
	UpdateKeeper *updatekeeper.Keeper
}

type DIOutputs

type DIOutputs struct {
	depinject.Out
	EventProc         EventProcessor
	InjectedEventProc evmenginetypes.InjectedEventProc
}

func DIProvide

func DIProvide(input DIInputs) (DIOutputs, error)

type EventProcessor

type EventProcessor struct {
	// contains filtered or unexported fields
}

EventProcessor implements the evmenginetypes.EvmEventProcessor interface.

func New

func New(ethCl ethclient.Client, uKeeper *ukeeper.Keeper) (EventProcessor, error)

New returns a new EventProcessor.

func (EventProcessor) Addresses

func (p EventProcessor) Addresses() []common.Address

func (EventProcessor) Deliver

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL