types

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 3 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.

Jump to

Keyboard shortcuts

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