Documentation
¶
Index ¶
- type Claim
- type DisputeGameFactory
- func (f *DisputeGameFactory) GameAtIndex(idx int64) *FaultDisputeGame
- func (f *DisputeGameFactory) GameCount() int64
- func (f *DisputeGameFactory) StartSuperCannonGame(eoa *dsl.EOA, rootClaim common.Hash, opts ...GameOpt) *SuperFaultDisputeGame
- func (f *DisputeGameFactory) WaitForGame() *FaultDisputeGame
- type FaultDisputeGame
- func (g *FaultDisputeGame) Attack(eoa *dsl.EOA, claimIdx int64, newClaim common.Hash)
- func (g *FaultDisputeGame) ClaimAtIndex(claimIndex int64) *Claim
- func (g *FaultDisputeGame) L2SequenceNumber() *big.Int
- func (g *FaultDisputeGame) MaxDepth() uint64
- func (g *FaultDisputeGame) RootClaim() *Claim
- func (g *FaultDisputeGame) SplitDepth() uint64
- type GameCfg
- type GameOpt
- type SuperFaultDisputeGame
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) WaitForCounterClaim ¶
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 (*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) 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 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
Click to show internal directories.
Click to hide internal directories.