model

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DestinationInfo

type DestinationInfo struct {
	ContractAddress *string        `json:"contractAddress,omitempty"`
	BlockNumber     *int           `json:"blockNumber,omitempty"`
	TxHash          *string        `json:"txHash,omitempty"`
	TxIndex         *int           `json:"txIndex,omitempty"`
	MessageHash     *string        `json:"messageHash,omitempty"`
	ChainID         *int           `json:"chainID,omitempty"`
	RemoteDomain    *int           `json:"remoteDomain,omitempty"`
	Success         *bool          `json:"success,omitempty"`
	MessageStatus   *MessageStatus `json:"messageStatus,omitempty"`
	OriginInfo      []*OriginInfo  `json:"originInfo,omitempty"`
}

DestinationInfo provides granular information on an execution event.

type MessageState added in v0.0.5

type MessageState string

MessageState gives the current state of a message.

const (
	MessageStatePending   MessageState = "PENDING"
	MessageStateCompleted MessageState = "COMPLETED"
)

func (MessageState) IsValid added in v0.0.5

func (e MessageState) IsValid() bool

func (MessageState) MarshalGQL added in v0.0.5

func (e MessageState) MarshalGQL(w io.Writer)

func (MessageState) String added in v0.0.5

func (e MessageState) String() string

func (*MessageState) UnmarshalGQL added in v0.0.5

func (e *MessageState) UnmarshalGQL(v interface{}) error

type MessageStateLastSeen

type MessageStateLastSeen string
const (
	MessageStateLastSeenOrigin      MessageStateLastSeen = "ORIGIN"
	MessageStateLastSeenDestination MessageStateLastSeen = "DESTINATION"
	MessageStateLastSeenUnknown     MessageStateLastSeen = "UNKNOWN"
)

func (MessageStateLastSeen) IsValid

func (e MessageStateLastSeen) IsValid() bool

func (MessageStateLastSeen) MarshalGQL

func (e MessageStateLastSeen) MarshalGQL(w io.Writer)

func (MessageStateLastSeen) String

func (e MessageStateLastSeen) String() string

func (*MessageStateLastSeen) UnmarshalGQL

func (e *MessageStateLastSeen) UnmarshalGQL(v interface{}) error

type MessageStatus

type MessageStatus struct {
	MessageHash       *string               `json:"messageHash,omitempty"`
	LastSeen          *MessageStateLastSeen `json:"lastSeen,omitempty"`
	OriginTxHash      *string               `json:"originTxHash,omitempty"`
	DestinationTxHash *string               `json:"destinationTxHash,omitempty"`
	OriginInfo        []*OriginInfo         `json:"originInfo,omitempty"`
	DestinationInfo   []*DestinationInfo    `json:"destinationInfo,omitempty"`
}

MessageStatus gives the status of a message.

type OriginInfo

type OriginInfo struct {
	MessageHash        *string            `json:"messageHash,omitempty"`
	ContractAddress    *string            `json:"contractAddress,omitempty"`
	BlockNumber        *int               `json:"blockNumber,omitempty"`
	OriginTxHash       *string            `json:"originTxHash,omitempty"`
	Sender             *string            `json:"sender,omitempty"`
	Recipient          *string            `json:"recipient,omitempty"`
	OriginChainID      *int               `json:"originChainID,omitempty"`
	DestinationChainID *int               `json:"destinationChainID,omitempty"`
	Nonce              *int               `json:"nonce,omitempty"`
	Message            *string            `json:"message,omitempty"`
	OptimisticSeconds  *int               `json:"optimisticSeconds,omitempty"`
	MessageFlag        *int               `json:"messageFlag,omitempty"`
	SummitTip          *string            `json:"summitTip,omitempty"`
	AttestationTip     *string            `json:"attestationTip,omitempty"`
	ExecutionTip       *string            `json:"executionTip,omitempty"`
	DeliveryTip        *string            `json:"deliveryTip,omitempty"`
	Version            *int               `json:"version,omitempty"`
	GasLimit           *int               `json:"gasLimit,omitempty"`
	GasDrop            *string            `json:"gasDrop,omitempty"`
	MessageStatus      *MessageStatus     `json:"messageStatus,omitempty"`
	DestinationInfo    []*DestinationInfo `json:"destinationInfo,omitempty"`
}

OriginInfo provides granular information on an origin sent event.

Jump to

Keyboard shortcuts

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