Documentation ¶
Index ¶
- func ConvertMsgBytesToSDKMsg(msgBytes [][]byte, protoCodec *codec.ProtoCodec) ([]sdk.Msg, error)
- func SendBatchToEth(index uint64, handler MsgHandler) error
- func SendBatchToTendermint(index uint64, handler MsgHandler) error
- func TotalDelegations(delegationResponses stakingTypes.DelegationResponses) sdk.Int
- func ValidatorsInDelegations(delegationResponses stakingTypes.DelegationResponses) []sdk.ValAddress
- func WithdrawRewards(loop int, protoCodec *codec.ProtoCodec, producer sarama.SyncProducer, ...) (int, error)
- type MsgHandler
- func (m MsgHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (m MsgHandler) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleEthUnbond(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleMsgDelegate(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleMsgSend(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleMsgUnbond(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleRedelegate(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleRetryTendermint(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleToEth(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) HandleToTendermint(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (m MsgHandler) Setup(_ sarama.ConsumerGroupSession) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMsgBytesToSDKMsg ¶ added in v0.6.0
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 (m MsgHandler) Cleanup(_ sarama.ConsumerGroupSession) error
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 ¶
func (m MsgHandler) Setup(_ sarama.ConsumerGroupSession) error
Click to show internal directories.
Click to hide internal directories.