handler

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

staker_delegated.go

staker_delegated.go

staker_delegated.go

staker_delegated.go

event_handler.go

staker_delegated.go

staker_delegated.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type EVMEventReactor

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

func (*EVMEventReactor) CheckAndBuildInboundVoteMsg

func (r *EVMEventReactor) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt, lastBlock uint64) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*EVMEventReactor) HandleBlocks

func (r *EVMEventReactor) HandleBlocks(startBlock, toBlock uint64) (map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx, uint64)

func (*EVMEventReactor) RegisterEventHandler

func (r *EVMEventReactor) RegisterEventHandler(handler interfaces.ChainEventHandler)

type PellSentHandler

type PellSentHandler struct {
	EvmJSONRPC       interfaces.EVMJSONRPCClient
	ContractAddr     common.Address
	Contract         *pellconnector.PellConnector
	ChainId          int64
	CoreChainId      int64
	SignerAddress    string
	InBoundLogger    zerolog.Logger
	ComplianceLogger zerolog.Logger
}

func (*PellSentHandler) BuildInboundVoteMsg

func (*PellSentHandler) CheckAndBuildInboundVoteMsg

func (h *PellSentHandler) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*PellSentHandler) HandleBlocks

func (h *PellSentHandler) HandleBlocks(startBlock, toBlock uint64, eventStore *map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx) (uint64, error)

type RegisterChainDVSToPellHandler

type RegisterChainDVSToPellHandler struct {
	EvmJSONRPC       interfaces.EVMJSONRPCClient
	ContractAddr     common.Address
	Contract         *registryinteractor.RegistryInteractor
	ChainId          int64
	CoreChainId      int64
	SignerAddress    string
	InBoundLogger    zerolog.Logger
	ComplianceLogger zerolog.Logger
}

func (*RegisterChainDVSToPellHandler) BuildInboundVoteMsg

func (*RegisterChainDVSToPellHandler) CheckAndBuildInboundVoteMsg

func (h *RegisterChainDVSToPellHandler) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*RegisterChainDVSToPellHandler) HandleBlocks

func (h *RegisterChainDVSToPellHandler) HandleBlocks(startBlock, toBlock uint64, eventStore *map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx) (uint64, error)

HandleBlocks processes the blocks from startBlock to toBlock and returns the last scanned block need three types of events in one tx to build the message 1. CentralSchedulerEvent 2. StakeManagerEvent 3. EjectionManagerEvent

type RegisterToPellEvents

Add this struct to hold all three event types

type StakerDelegatedHandler

type StakerDelegatedHandler struct {
	EvmJSONRPC       interfaces.EVMJSONRPCClient
	ContractAddr     common.Address
	Contract         *delegationmanager.DelegationManager
	ChainId          int64
	CoreChainId      int64
	SignerAddress    string
	InBoundLogger    zerolog.Logger
	ComplianceLogger zerolog.Logger
}

func (*StakerDelegatedHandler) CheckAndBuildInboundVoteMsg

func (h *StakerDelegatedHandler) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*StakerDelegatedHandler) HandleBlocks

func (h *StakerDelegatedHandler) HandleBlocks(startBlock, toBlock uint64, eventStore *map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx) (uint64, error)

type StakerDepositHandler

type StakerDepositHandler struct {
	EvmJSONRPC       interfaces.EVMJSONRPCClient
	ContractAddr     common.Address
	Contract         *strategymanager.StrategyManager
	ChainId          int64
	CoreChainId      int64
	SignerAddress    string
	InBoundLogger    zerolog.Logger
	ComplianceLogger zerolog.Logger
}

func (*StakerDepositHandler) BuildInboundVoteMsg

func (*StakerDepositHandler) CheckAndBuildInboundVoteMsg

func (h *StakerDepositHandler) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*StakerDepositHandler) HandleBlocks

func (h *StakerDepositHandler) HandleBlocks(startBlock, toBlock uint64, eventStore *map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx) (uint64, error)

type StakerUndelegatedHandler

type StakerUndelegatedHandler struct {
	EvmJSONRPC       interfaces.EVMJSONRPCClient
	ContractAddr     common.Address
	Contract         *delegationmanager.DelegationManager
	ChainId          int64
	CoreChainId      int64
	SignerAddress    string
	InBoundLogger    zerolog.Logger
	ComplianceLogger zerolog.Logger
}

func (*StakerUndelegatedHandler) CheckAndBuildInboundVoteMsg

func (h *StakerUndelegatedHandler) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*StakerUndelegatedHandler) HandleBlocks

func (h *StakerUndelegatedHandler) HandleBlocks(startBlock, toBlock uint64, eventStore *map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx) (uint64, error)

type TxEvents

type TxEvents struct {
	BlockNumber uint64
	TxHash      string
	Events      *RegisterToPellEvents
}

TxEvents is used to collect and sort the completed events by block number.

type WithdrawalQueuedHandler

type WithdrawalQueuedHandler struct {
	EvmJSONRPC       interfaces.EVMJSONRPCClient
	ContractAddr     common.Address
	Contract         *delegationmanager.DelegationManager
	ChainId          int64
	CoreChainId      int64
	SignerAddress    string
	InBoundLogger    zerolog.Logger
	ComplianceLogger zerolog.Logger
}

func (*WithdrawalQueuedHandler) CheckAndBuildInboundVoteMsg

func (h *WithdrawalQueuedHandler) CheckAndBuildInboundVoteMsg(tx *ethrpc.Transaction, receipt *ethtypes.Receipt) ([]*xmsgtypes.MsgVoteOnObservedInboundTx, error)

func (*WithdrawalQueuedHandler) HandleBlocks

func (h *WithdrawalQueuedHandler) HandleBlocks(startBlock, toBlock uint64, eventStore *map[uint64][]*xmsgtypes.MsgVoteOnObservedInboundTx) (uint64, error)

Jump to

Keyboard shortcuts

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