Documentation ¶
Index ¶
Constants ¶
const ( SendToEvmChainEventName = "__CronosSendToEvmChain" SendToEvmChainResponseEventName = "__CronosSendToEvmChainResponse" )
const CancelSendToEvmChainEventName = "__CronosCancelSendToEvmChain"
const SendCroToIbcEventName = "__CronosSendCroToIbc"
const SendToAccountEventName = "__CronosSendToAccount"
const SendToIbcEventName = "__CronosSendToIbc"
Variables ¶
var ( // SendToEvmChainEvent represent the signature of // `event __CronosSendToEvmChain(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 __CronosSendToChainResponse(uint256 id)` SendToEvmChainResponseEvent abi.Event )
var CancelSendToEvmChainEvent abi.Event
CancelSendToEvmChainEvent represent the signature of `event __CronosCancelSendToEvmChain(uint256 id)`
var SendCroToIbcEvent abi.Event
SendCroToIbcEvent represent the signature of `event __CronosSendCroToIbc(string recipient, uint256 amount)`
var SendToAccountEvent abi.Event
SendToAccountEvent represent the signature of `event __CronosSendToAccount(address recipient, uint256 amount)`
var SendToIbcEvent abi.Event
SendToIbcEvent represent the signature of `event __CronosSendToIbc(address sender, string recipient, uint256 amount)`
var SendToIbcEventV2 abi.Event
SendToIbcEventV2 represent the signature of `event __CronosSendToIbc(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 `__CronosCancelSendToEvmChain` log
func NewCancelSendToEvmChainHandler ¶
func NewCancelSendToEvmChainHandler( gravitySrv gravitytypes.MsgServer, cronosKeeper cronoskeeper.Keeper, gravityKeeper types.GravityKeeper, ) *CancelSendToEvmChainHandler
func (CancelSendToEvmChainHandler) EventID ¶
func (h CancelSendToEvmChainHandler) EventID() common.Hash
func (CancelSendToEvmChainHandler) Handle ¶
func (h CancelSendToEvmChainHandler) Handle( ctx sdk.Context, _ common.Address, topics []common.Hash, 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
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
type SendToEvmChainHandler ¶
type SendToEvmChainHandler struct {
// contains filtered or unexported fields
}
SendToEvmChainHandler handles `__CronosSendToEvmChain` log
func NewSendToEvmChainHandler ¶
func NewSendToEvmChainHandler(gravitySrv gravitytypes.MsgServer, bankKeeper types.BankKeeper, cronosKeeper cronoskeeper.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 `__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
type SendToIbcV2Handler ¶
type SendToIbcV2Handler struct {
*SendToIbcHandler
}
SendToIbcV2Handler handles `__CronosSendToIbc` log
func NewSendToIbcV2Handler ¶
func NewSendToIbcV2Handler(bankKeeper types.BankKeeper, cronosKeeper cronoskeeper.Keeper) *SendToIbcV2Handler
func (SendToIbcV2Handler) EventID ¶
func (h SendToIbcV2Handler) EventID() common.Hash