evmstaking

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package evmstaking monitors the Staking pre-deploy contract and converts its log events to cosmosSDK x/staking logic.

Index

Constants

View Source
const ModuleName = "evmstaking"

Variables

This section is empty.

Functions

This section is empty.

Types

type EventProcessor

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

EventProcessor implements the evmenginetypes.EvmEventProcessor interface.

func New

func New(
	ethCl ethclient.Client,
	sKeeper *skeeper.Keeper,
	bKeeper bkeeper.Keeper,
	aKeeper akeeper.AccountKeeper,
) (EventProcessor, error)

New returns a new EventProcessor.

func (EventProcessor) Addresses

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

func (EventProcessor) Deliver

Deliver processes a omni deposit log event, which must be one of: - CreateValidator - Delegate.

func (EventProcessor) Name added in v0.1.8

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