Documentation ¶
Overview ¶
Package evmstaking monitors the omni stake pre-deploy contract and converts its log events to cosmosSDK logic.
Index ¶
Constants ¶
View Source
const AccountName = "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 ¶
func (p EventProcessor) Deliver(ctx context.Context, _ common.Hash, elog *evmenginetypes.EVMEvent) error
Deliver processes a omni deposit log event: - Mint the corresponding amount of $STAKE coins. - Send the minted coins to the depositor's account. - Create a new validator with the depositor's account.ccbelunhfhcrcegtfvbgfibjjllhjurctgfrfjhhh.
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.