arbitrum_types

package
v0.0.0-...-8b90792 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLimitExceededError

func NewLimitExceededError(msg string) *limitExceededError

func NewRejectedError

func NewRejectedError(msg string) *rejectedError

func WrapOptionsCheckError

func WrapOptionsCheckError(err error, msg string) error

Types

type ConditionalOptions

type ConditionalOptions struct {
	KnownAccounts  map[common.Address]RootHashOrSlots `json:"knownAccounts"`
	BlockNumberMin *math.HexOrDecimal64               `json:"blockNumberMin,omitempty"`
	BlockNumberMax *math.HexOrDecimal64               `json:"blockNumberMax,omitempty"`
	TimestampMin   *math.HexOrDecimal64               `json:"timestampMin,omitempty"`
	TimestampMax   *math.HexOrDecimal64               `json:"timestampMax,omitempty"`
}

func (*ConditionalOptions) Check

func (o *ConditionalOptions) Check(l1BlockNumber uint64, l2Timestamp uint64, statedb *state.StateDB) error

type RootHashOrSlots

type RootHashOrSlots struct {
	RootHash  *common.Hash
	SlotValue map[common.Hash]common.Hash
}

func (RootHashOrSlots) MarshalJSON

func (r RootHashOrSlots) MarshalJSON() ([]byte, error)

func (*RootHashOrSlots) UnmarshalJSON

func (r *RootHashOrSlots) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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