handler

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMsgBytesToSDKMsg added in v0.6.0

func ConvertMsgBytesToSDKMsg(msgBytes [][]byte, protoCodec *codec.ProtoCodec) ([]sdk.Msg, error)

func SendBatchToEth

func SendBatchToEth(index uint64, handler MsgHandler) error

SendBatchToEth : Handling of msgSend

func SendBatchToTendermint

func SendBatchToTendermint(index uint64, handler MsgHandler) error

SendBatchToTendermint :

func TotalDelegations added in v0.2.0

func TotalDelegations(delegationResponses stakingTypes.DelegationResponses) sdk.Int

func ValidatorsInDelegations added in v0.2.0

func ValidatorsInDelegations(delegationResponses stakingTypes.DelegationResponses) []sdk.ValAddress

func WithdrawRewards added in v0.2.0

func WithdrawRewards(loop int, protoCodec *codec.ProtoCodec, producer sarama.SyncProducer, chain *relayer.Chain) (int, error)

Types

type MsgHandler

type MsgHandler struct {
	ProtoCodec      *codec.ProtoCodec
	Chain           *relayer.Chain
	EthClient       *ethclient.Client
	Count           *int
	WithdrawRewards bool
}

func (MsgHandler) Cleanup

func (MsgHandler) ConsumeClaim

func (m MsgHandler) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleEthUnbond

func (m MsgHandler) HandleEthUnbond(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleMsgDelegate

func (m MsgHandler) HandleMsgDelegate(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleMsgSend

func (m MsgHandler) HandleMsgSend(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleMsgUnbond

func (m MsgHandler) HandleMsgUnbond(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleRedelegate added in v0.6.0

func (m MsgHandler) HandleRedelegate(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleRetryTendermint added in v0.2.0

func (m MsgHandler) HandleRetryTendermint(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleToEth added in v0.1.1

func (m MsgHandler) HandleToEth(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) HandleToTendermint added in v0.1.1

func (m MsgHandler) HandleToTendermint(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (MsgHandler) Setup

Jump to

Keyboard shortcuts

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