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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectionBatch

type DetectionBatch struct {
	InProgress             int
	AgreeDefenderWins      int
	DisagreeDefenderWins   int
	AgreeChallengerWins    int
	DisagreeChallengerWins int
}

func (*DetectionBatch) Merge

func (d *DetectionBatch) Merge(other DetectionBatch)

func (*DetectionBatch) Update

func (d *DetectionBatch) Update(status types.GameStatus, agree bool)

type EnrichedGameData

type EnrichedGameData struct {
	types.GameMetadata
	L2BlockNumber uint64
	RootClaim     common.Hash
	Status        types.GameStatus
}

type ForecastBatch

type ForecastBatch struct {
	AgreeDefenderAhead      int
	DisagreeDefenderAhead   int
	AgreeChallengerAhead    int
	DisagreeChallengerAhead int
}

type StatusBatch

type StatusBatch struct {
	InProgress    int
	DefenderWon   int
	ChallengerWon int
}

func (*StatusBatch) Add

func (s *StatusBatch) Add(status types.GameStatus)

Jump to

Keyboard shortcuts

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