evmhandler

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SendToChainEventName         = "__CronosSendToChain"
	SendToChainResponseEventName = "__CronosSendToChainResponse"
)
View Source
const CancelSendToChainEventName = "__CronosCancelSendToChain"
View Source
const SendCroToIbcEventName = "__CronosSendCroToIbc"
View Source
const SendToAccountEventName = "__CronosSendToAccount"
View Source
const SendToIbcEventName = "__CronosSendToIbc"

Variables

View Source
var (
	// SendToChainEvent represent the signature of
	// `event __CronosSendToChain(address recipient, uint256 amount, uint256 bridge_fee)`
	SendToChainEvent abi.Event

	// SendToChainResponseEvent represent the signature of
	// `event __CronosSendToChainResponse(uint256 id)`
	SendToChainResponseEvent abi.Event
)
View Source
var CancelSendToChainEvent abi.Event

CancelSendToChainEvent represent the signature of `event __CronosCancelSendToChain(uint256 id)`

View Source
var SendCroToIbcEvent abi.Event

SendCroToIbcEvent represent the signature of `event __CronosSendCroToIbc(string recipient, uint256 amount)`

View Source
var SendToAccountEvent abi.Event

SendToAccountEvent represent the signature of `event __CronosSendToAccount(address recipient, uint256 amount)`

View Source
var SendToIbcEvent abi.Event

SendToIbcEvent represent the signature of `event __CronosSendToIbc(string recipient, uint256 amount)`

Functions

This section is empty.

Types

type CancelSendToChainHandler

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

CancelSendToChainHandler handles `__CronosCancelSendToChain` log

func NewCancelSendToChainHandler

func NewCancelSendToChainHandler(
	gravitySrv gravitytypes.MsgServer,
	cronosKeeper cronoskeeper.Keeper,
	gravityKeeper types.GravityKeeper,
) *CancelSendToChainHandler

func (CancelSendToChainHandler) EventID

func (h CancelSendToChainHandler) EventID() common.Hash

func (CancelSendToChainHandler) Handle

func (h CancelSendToChainHandler) Handle(
	ctx sdk.Context,
	_ common.Address,
	data []byte,
	_ func(contractAddress common.Address, logSig common.Hash, logData []byte),
) error

Handle `__CronosCancelSendToChain` log only if gravity is activated.

type SendCroToIbcHandler

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

SendCroToIbcHandler handles `__CronosSendCroToIbc` log

func NewSendCroToIbcHandler

func NewSendCroToIbcHandler(bankKeeper types.BankKeeper, cronosKeeper cronoskeeper.Keeper) *SendCroToIbcHandler

func (SendCroToIbcHandler) EventID

func (h SendCroToIbcHandler) EventID() common.Hash

func (SendCroToIbcHandler) Handle

func (h SendCroToIbcHandler) Handle(
	ctx sdk.Context,
	contract common.Address,
	data []byte,
	_ func(contractAddress common.Address, logSig common.Hash, logData []byte),
) error

type SendToAccountHandler

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

SendToAccountHandler handles `__CronosSendToAccount` log

func NewSendToAccountHandler

func NewSendToAccountHandler(bankKeeper types.BankKeeper, cronosKeeper cronoskeeper.Keeper) *SendToAccountHandler

func (SendToAccountHandler) EventID

func (h SendToAccountHandler) EventID() common.Hash

func (SendToAccountHandler) Handle

func (h SendToAccountHandler) Handle(
	ctx sdk.Context,
	contract common.Address,
	data []byte,
	_ func(contractAddress common.Address, logSig common.Hash, logData []byte),
) error

type SendToChainHandler

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

SendToChainHandler handles `__CronosSendToChain` log

func NewSendToChainHandler

func NewSendToChainHandler(gravitySrv gravitytypes.MsgServer, bankKeeper types.BankKeeper, cronosKeeper cronoskeeper.Keeper) *SendToChainHandler

func (SendToChainHandler) EventID

func (h SendToChainHandler) EventID() common.Hash

func (SendToChainHandler) Handle

func (h SendToChainHandler) Handle(
	ctx sdk.Context,
	contract common.Address,
	data []byte,
	addLogToReceipt func(contractAddress common.Address, logSig common.Hash, logData []byte),
) error

Handle `__CronosSendToChain` log only if gravity is activated.

type SendToIbcHandler

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

SendToIbcHandler handles `__CronosSendToIbc` log

func NewSendToIbcHandler

func NewSendToIbcHandler(bankKeeper types.BankKeeper, cronosKeeper cronoskeeper.Keeper) *SendToIbcHandler

func (SendToIbcHandler) EventID

func (h SendToIbcHandler) EventID() common.Hash

func (SendToIbcHandler) Handle

func (h SendToIbcHandler) Handle(
	ctx sdk.Context,
	contract common.Address,
	data []byte,
	_ func(contractAddress common.Address, logSig common.Hash, logData []byte),
) error

Jump to

Keyboard shortcuts

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