evmhandler

package
v2.0.0-...-a6f2824 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SendToEvmChainEventName         = "__ElysiumSendToEvmChain"
	SendToEvmChainResponseEventName = "__ElysiumSendToEvmChainResponse"
)
View Source
const CancelSendToEvmChainEventName = "__ElysiumCancelSendToEvmChain"
View Source
const SendElyToIbcEventName = "__ElysiumSendElyToIbc"
View Source
const SendToAccountEventName = "__ElysiumSendToAccount"
View Source
const SendToIbcEventName = "__ElysiumSendToIbc"

Variables

View Source
var (
	// SendToEvmChainEvent represent the signature of
	// `event __ElysiumSendToEvmChain(address indexed sender, address indexed recipient, uint256 indexed chain_id, uint256 amount, uint256 bridge_fee, bytes extraData)`
	SendToEvmChainEvent abi.Event

	// SendToEvmChainResponseEvent represent the signature of
	// `event __ElysiumSendToChainResponse(uint256 id)`
	SendToEvmChainResponseEvent abi.Event
)
View Source
var CancelSendToEvmChainEvent abi.Event

CancelSendToEvmChainEvent represent the signature of `event __ElysiumCancelSendToEvmChain(uint256 id)`

View Source
var SendElyToIbcEvent abi.Event

SendElyToIbcEvent represent the signature of `event __ElysiumSendElyToIbc(string recipient, uint256 amount)`

View Source
var SendToAccountEvent abi.Event

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

View Source
var SendToIbcEvent abi.Event

SendToIbcEvent represent the signature of `event __ElysiumSendToIbc(address sender, string recipient, uint256 amount)`

View Source
var SendToIbcEventV2 abi.Event

SendToIbcEventV2 represent the signature of `event __ElysiumSendToIbc(address indexed sender, string indexed recipient, string indexed channel_id, uint256 amount, bytes extraData)`

Functions

This section is empty.

Types

type CancelSendToEvmChainHandler

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

CancelSendToEvmChainHandler handles `__ElysiumCancelSendToEvmChain` log

func NewCancelSendToEvmChainHandler

func NewCancelSendToEvmChainHandler(
	gravitySrv gravitytypes.MsgServer,
	elysiumKeeper elysiumkeeper.Keeper,
	gravityKeeper types.GravityKeeper,
) *CancelSendToEvmChainHandler

func (CancelSendToEvmChainHandler) EventID

func (CancelSendToEvmChainHandler) Handle

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

Handle `__ElysiumCancelSendToChain` log only if gravity is activated.

type SendElyToIbcHandler

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

SendElyToIbcHandler handles `__ElysiumSendElyToIbc` log

func NewSendElyToIbcHandler

func NewSendElyToIbcHandler(bankKeeper types.BankKeeper, elysiumKeeper elysiumkeeper.Keeper) *SendElyToIbcHandler

func (SendElyToIbcHandler) EventID

func (h SendElyToIbcHandler) EventID() common.Hash

func (SendElyToIbcHandler) Handle

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

type SendToAccountHandler

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

SendToAccountHandler handles `__ElysiumSendToAccount` log

func NewSendToAccountHandler

func NewSendToAccountHandler(bankKeeper types.BankKeeper, elysiumKeeper elysiumkeeper.Keeper) *SendToAccountHandler

func (SendToAccountHandler) EventID

func (h SendToAccountHandler) EventID() common.Hash

func (SendToAccountHandler) Handle

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

type SendToEvmChainHandler

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

SendToEvmChainHandler handles `__ElysiumSendToEvmChain` log

func NewSendToEvmChainHandler

func NewSendToEvmChainHandler(gravitySrv gravitytypes.MsgServer, bankKeeper types.BankKeeper, elysiumKeeper elysiumkeeper.Keeper) *SendToEvmChainHandler

func (SendToEvmChainHandler) EventID

func (h SendToEvmChainHandler) EventID() common.Hash

func (SendToEvmChainHandler) Handle

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

Handle `__ElysiumSendToChain` log only if gravity is activated.

type SendToIbcHandler

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

SendToIbcHandler handles `__ElysiumSendToIbc` log

func NewSendToIbcHandler

func NewSendToIbcHandler(bankKeeper types.BankKeeper, elysiumKeeper elysiumkeeper.Keeper) *SendToIbcHandler

func (SendToIbcHandler) EventID

func (h SendToIbcHandler) EventID() common.Hash

func (SendToIbcHandler) Handle

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

type SendToIbcV2Handler

type SendToIbcV2Handler struct {
	*SendToIbcHandler
}

SendToIbcV2Handler handles `__ElysiumSendToIbc` log

func NewSendToIbcV2Handler

func NewSendToIbcV2Handler(bankKeeper types.BankKeeper, elysiumKeeper elysiumkeeper.Keeper) *SendToIbcV2Handler

func (SendToIbcV2Handler) EventID

func (h SendToIbcV2Handler) EventID() common.Hash

func (SendToIbcV2Handler) Handle

func (h SendToIbcV2Handler) Handle(
	ctx sdk.Context,
	contract common.Address,
	topics []common.Hash,
	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