messagebus

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package messagebus provides types for Message events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLog

type EventLog interface {
	// GetContractAddress returns the contract address of the log.
	GetContractAddress() common.Address
	// GetBlockNumber returns the block number of the log.'
	GetBlockNumber() uint64
	// GetTxHash returns the transaction hash of the log.
	GetTxHash() common.Hash
	// GetEventType returns the event type of the log.
	GetEventType() EventType
	// GetEventIndex returns the index of the log.
	GetEventIndex() uint64
	// GetMessageID returns the message id of the event.
	GetMessageID() *string
	// GetSourceChainID returns the chain id of the message's source chain.
	GetSourceChainID() *big.Int

	// GetSourceAddress gets the address that the message will be passed from.
	GetSourceAddress() *string
	// GetStatus returns the status of the event.
	GetStatus() *string
	// GetDestinationAddress gets the address that the message will be passed to.
	GetDestinationAddress() *string
	// GetDestinationChainID returns the chain id of the message's destination chain.
	GetDestinationChainID() *big.Int

	// GetNonce returns the nonce of the message.
	GetNonce() *big.Int
	// GetMessage gets the message.
	GetMessage() *string
	// GetReceiver returns the receiver of the event.
	GetReceiver() *string
	// GetOptions gets the message.
	GetOptions() *string
	// GetFee returns the fee of the message.
	GetFee() *big.Int
	// GetRevertReason returns the reason why the event was reverted.
	GetRevertReason() *string
}

EventLog is the interface for all message events.

type EventType

type EventType uint8

EventType is the type of the swap event.

const (
	// ExecutedEvent is the message executed (sent) event.
	ExecutedEvent EventType = iota
	// MessageSentEvent is the message sent event.
	MessageSentEvent
	// CallRevertedEvent is when a call is reverted.
	CallRevertedEvent
)

func AllEventTypes

func AllEventTypes() []EventType

AllEventTypes is a list of the event types.

func (EventType) Int

func (i EventType) Int() uint8

Int gets the int value of the event type.

func (EventType) String

func (i EventType) String() string

Jump to

Keyboard shortcuts

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