types

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainID

type ChainID uint256.Int

func ChainIDFromBig

func ChainIDFromBig(chainID *big.Int) ChainID

func ChainIDFromUInt64

func ChainIDFromUInt64(i uint64) ChainID

func (ChainID) String

func (id ChainID) String() string

type Identifier

type Identifier struct {
	Origin      common.Address
	BlockNumber uint64
	LogIndex    uint64
	Timestamp   uint64
	ChainID     uint256.Int // 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 SafetyLevel

type SafetyLevel string
const (
	Finalized   SafetyLevel = "finalized"
	Safe        SafetyLevel = "safe"
	CrossUnsafe SafetyLevel = "cross-unsafe"
	Unsafe      SafetyLevel = "unsafe"
)

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

Jump to

Keyboard shortcuts

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