types

package
v1.4.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameMetadata added in v1.4.2

type GameMetadata struct {
	GameType  uint8
	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