Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifier ¶
type Identifier struct {
Origin common.Address
BlockNumber uint64
LogIndex uint64
Timestamp uint64
ChainID ChainID // flat, not a pointer, to make Identifier safe as map key
}
func (Identifier) MarshalJSON ¶
func (id Identifier) MarshalJSON() ([]byte, error)
func (*Identifier) UnmarshalJSON ¶
func (id *Identifier) UnmarshalJSON(input []byte) error
type Message ¶ added in v1.9.1
type Message struct {
Identifier Identifier `json:"identifier"`
PayloadHash common.Hash `json:"payloadHash"`
}
type SafetyLevel ¶
type SafetyLevel string
const ( CrossFinalized SafetyLevel = "cross-finalized" Finalized SafetyLevel = "finalized" CrossSafe SafetyLevel = "cross-safe" Safe SafetyLevel = "safe" CrossUnsafe SafetyLevel = "cross-unsafe" Unsafe SafetyLevel = "unsafe" Invalid SafetyLevel = "invalid" )
func (*SafetyLevel) AtLeastAsSafe ¶ added in v1.9.1
func (lvl *SafetyLevel) AtLeastAsSafe(min SafetyLevel) bool
AtLeastAsSafe returns true if the receiver is at least as safe as the other SafetyLevel.
func (SafetyLevel) MarshalText ¶
func (lvl SafetyLevel) MarshalText() ([]byte, error)
func (SafetyLevel) String ¶
func (lvl SafetyLevel) String() string
func (*SafetyLevel) UnmarshalText ¶
func (lvl *SafetyLevel) UnmarshalText(text []byte) error
func (SafetyLevel) Valid ¶
func (lvl SafetyLevel) Valid() bool
Click to show internal directories.
Click to hide internal directories.