types

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPrestate = errors.New("absolute prestate does not match")

Functions

This section is empty.

Types

type GameMetadata added in v1.4.2

type GameMetadata struct {
	GameType  uint32
	Timestamp uint64
	Proxy     common.Address
}

type GameStatus

type GameStatus uint8
const (
	GameStatusInProgress GameStatus = iota
	GameStatusChallengerWon
	GameStatusDefenderWon
)

func GameStatusFromUint8

func GameStatusFromUint8(i uint8) (GameStatus, error)

GameStatusFromUint8 returns a game status from the uint8 representation.

func (GameStatus) String

func (s GameStatus) String() string

String returns the string representation of the game status.

type TxSender added in v1.5.0

type TxSender interface {
	From() common.Address
	SendAndWait(txPurpose string, txs ...txmgr.TxCandidate) ([]*ethtypes.Receipt, error)
}

Jump to

Keyboard shortcuts

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