proofs

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {
	Index int64
	// contains filtered or unexported fields
}

func (*Claim) Attack

func (c *Claim) Attack(eoa *dsl.EOA, newClaim common.Hash) *Claim

func (*Claim) Depth

func (c *Claim) Depth() uint64

func (*Claim) Value

func (c *Claim) Value() common.Hash

func (*Claim) WaitForCounterClaim

func (c *Claim) WaitForCounterClaim() *Claim

WaitForCounterClaim waits for the claim to be countered by another claim being posted. Return the new claim that counters this claim.

type DisputeGameFactory

type DisputeGameFactory struct {
	// contains filtered or unexported fields
}

func NewDisputeGameFactory

func NewDisputeGameFactory(t devtest.T, l1Network *dsl.L1Network, ethClient apis.EthClient, dgfAddr common.Address, supervisor *dsl.Supervisor) *DisputeGameFactory

func (*DisputeGameFactory) GameAtIndex

func (f *DisputeGameFactory) GameAtIndex(idx int64) *FaultDisputeGame

func (*DisputeGameFactory) GameCount

func (f *DisputeGameFactory) GameCount() int64

func (*DisputeGameFactory) StartSuperCannonGame

func (f *DisputeGameFactory) StartSuperCannonGame(eoa *dsl.EOA, rootClaim common.Hash, opts ...GameOpt) *SuperFaultDisputeGame

func (*DisputeGameFactory) WaitForGame

func (f *DisputeGameFactory) WaitForGame() *FaultDisputeGame

type FaultDisputeGame

type FaultDisputeGame struct {
	// contains filtered or unexported fields
}

func NewFaultDisputeGame

func NewFaultDisputeGame(t devtest.T, require *require.Assertions, game *bindings.FaultDisputeGame) *FaultDisputeGame

func (*FaultDisputeGame) Attack

func (g *FaultDisputeGame) Attack(eoa *dsl.EOA, claimIdx int64, newClaim common.Hash)

func (*FaultDisputeGame) ClaimAtIndex

func (g *FaultDisputeGame) ClaimAtIndex(claimIndex int64) *Claim

func (*FaultDisputeGame) L2SequenceNumber

func (g *FaultDisputeGame) L2SequenceNumber() *big.Int

func (*FaultDisputeGame) MaxDepth

func (g *FaultDisputeGame) MaxDepth() uint64

func (*FaultDisputeGame) RootClaim

func (g *FaultDisputeGame) RootClaim() *Claim

func (*FaultDisputeGame) SplitDepth

func (g *FaultDisputeGame) SplitDepth() uint64

type GameCfg

type GameCfg struct {
	// contains filtered or unexported fields
}

func NewGameCfg

func NewGameCfg(opts ...GameOpt) *GameCfg

type GameOpt

type GameOpt interface {
	Apply(cfg *GameCfg)
}

func WithFutureProposal

func WithFutureProposal() GameOpt

func WithUnsafeProposal

func WithUnsafeProposal() GameOpt

type SuperFaultDisputeGame

type SuperFaultDisputeGame struct {
	*FaultDisputeGame
}

func NewSuperFaultDisputeGame

func NewSuperFaultDisputeGame(t devtest.T, require *require.Assertions, game *bindings.FaultDisputeGame) *SuperFaultDisputeGame

Jump to

Keyboard shortcuts

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