contracts

package
v1.4.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisputeGameFactoryContract

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

func NewDisputeGameFactoryContract

func NewDisputeGameFactoryContract(addr common.Address, caller *batching.MultiCaller) (*DisputeGameFactoryContract, error)

func (*DisputeGameFactoryContract) GetGame

func (f *DisputeGameFactoryContract) GetGame(ctx context.Context, idx uint64, blockHash common.Hash) (types.GameMetadata, error)

func (*DisputeGameFactoryContract) GetGameCount

func (f *DisputeGameFactoryContract) GetGameCount(ctx context.Context, blockHash common.Hash) (uint64, error)

type FaultDisputeGameContract

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

func NewFaultDisputeGameContract

func NewFaultDisputeGameContract(addr common.Address, caller *batching.MultiCaller) (*FaultDisputeGameContract, error)

func (*FaultDisputeGameContract) AttackTx

func (f *FaultDisputeGameContract) AttackTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)

func (*FaultDisputeGameContract) CallResolve

func (f *FaultDisputeGameContract) CallResolve(ctx context.Context) (gameTypes.GameStatus, error)

func (*FaultDisputeGameContract) CallResolveClaim

func (f *FaultDisputeGameContract) CallResolveClaim(ctx context.Context, claimIdx uint64) error

func (*FaultDisputeGameContract) DefendTx

func (f *FaultDisputeGameContract) DefendTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)

func (*FaultDisputeGameContract) GetAbsolutePrestateHash

func (f *FaultDisputeGameContract) GetAbsolutePrestateHash(ctx context.Context) (common.Hash, error)

func (*FaultDisputeGameContract) GetAllClaims

func (f *FaultDisputeGameContract) GetAllClaims(ctx context.Context) ([]types.Claim, error)

func (*FaultDisputeGameContract) GetClaim

func (f *FaultDisputeGameContract) GetClaim(ctx context.Context, idx uint64) (types.Claim, error)

func (*FaultDisputeGameContract) GetClaimCount

func (f *FaultDisputeGameContract) GetClaimCount(ctx context.Context) (uint64, error)

func (*FaultDisputeGameContract) GetGameDuration

func (f *FaultDisputeGameContract) GetGameDuration(ctx context.Context) (uint64, error)

func (*FaultDisputeGameContract) GetL1Head

func (f *FaultDisputeGameContract) GetL1Head(ctx context.Context) (common.Hash, error)

func (*FaultDisputeGameContract) GetMaxGameDepth

func (f *FaultDisputeGameContract) GetMaxGameDepth(ctx context.Context) (uint64, error)

func (*FaultDisputeGameContract) GetProposals

GetProposals returns the agreed and disputed proposals

func (*FaultDisputeGameContract) GetStatus

func (f *FaultDisputeGameContract) GetStatus(ctx context.Context) (gameTypes.GameStatus, error)

func (*FaultDisputeGameContract) ResolveClaimTx

func (f *FaultDisputeGameContract) ResolveClaimTx(claimIdx uint64) (txmgr.TxCandidate, error)

func (*FaultDisputeGameContract) ResolveTx

func (f *FaultDisputeGameContract) ResolveTx() (txmgr.TxCandidate, error)

func (*FaultDisputeGameContract) StepTx

func (f *FaultDisputeGameContract) StepTx(claimIdx uint64, isAttack bool, stateData []byte, proof []byte) (txmgr.TxCandidate, error)

func (*FaultDisputeGameContract) UpdateOracleTx

func (f *FaultDisputeGameContract) UpdateOracleTx(ctx context.Context, claimIdx uint64, data *types.PreimageOracleData) (txmgr.TxCandidate, error)

type OutputBisectionGameContract

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

func NewOutputBisectionGameContract

func NewOutputBisectionGameContract(addr common.Address, caller *batching.MultiCaller) (*OutputBisectionGameContract, error)

func (*OutputBisectionGameContract) AttackTx

func (f *OutputBisectionGameContract) AttackTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)

func (*OutputBisectionGameContract) CallResolve

func (f *OutputBisectionGameContract) CallResolve(ctx context.Context) (gameTypes.GameStatus, error)

func (*OutputBisectionGameContract) CallResolveClaim

func (f *OutputBisectionGameContract) CallResolveClaim(ctx context.Context, claimIdx uint64) error

func (*OutputBisectionGameContract) DefendTx

func (f *OutputBisectionGameContract) DefendTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)

func (*OutputBisectionGameContract) GetAbsolutePrestateHash

func (f *OutputBisectionGameContract) GetAbsolutePrestateHash(ctx context.Context) (common.Hash, error)

func (*OutputBisectionGameContract) GetAllClaims

func (f *OutputBisectionGameContract) GetAllClaims(ctx context.Context) ([]types.Claim, error)

func (*OutputBisectionGameContract) GetBlockRange

func (c *OutputBisectionGameContract) GetBlockRange(ctx context.Context) (prestateBlock uint64, poststateBlock uint64, retErr error)

func (*OutputBisectionGameContract) GetClaim

func (f *OutputBisectionGameContract) GetClaim(ctx context.Context, idx uint64) (types.Claim, error)

func (*OutputBisectionGameContract) GetClaimCount

func (f *OutputBisectionGameContract) GetClaimCount(ctx context.Context) (uint64, error)

func (*OutputBisectionGameContract) GetGameDuration

func (f *OutputBisectionGameContract) GetGameDuration(ctx context.Context) (uint64, error)

func (*OutputBisectionGameContract) GetL1Head

func (f *OutputBisectionGameContract) GetL1Head(ctx context.Context) (common.Hash, error)

func (*OutputBisectionGameContract) GetMaxGameDepth

func (f *OutputBisectionGameContract) GetMaxGameDepth(ctx context.Context) (uint64, error)

func (*OutputBisectionGameContract) GetSplitDepth

func (c *OutputBisectionGameContract) GetSplitDepth(ctx context.Context) (uint64, error)

func (*OutputBisectionGameContract) GetStatus

func (f *OutputBisectionGameContract) GetStatus(ctx context.Context) (gameTypes.GameStatus, error)

func (*OutputBisectionGameContract) ResolveClaimTx

func (f *OutputBisectionGameContract) ResolveClaimTx(claimIdx uint64) (txmgr.TxCandidate, error)

func (*OutputBisectionGameContract) ResolveTx

func (f *OutputBisectionGameContract) ResolveTx() (txmgr.TxCandidate, error)

func (*OutputBisectionGameContract) StepTx

func (f *OutputBisectionGameContract) StepTx(claimIdx uint64, isAttack bool, stateData []byte, proof []byte) (txmgr.TxCandidate, error)

func (*OutputBisectionGameContract) UpdateOracleTx

type PreimageOracleContract

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

PreimageOracleContract is a binding that works with contracts implementing the IPreimageOracle interface

func NewPreimageOracleContract

func NewPreimageOracleContract(addr common.Address, caller *batching.MultiCaller) (*PreimageOracleContract, error)

func (PreimageOracleContract) AddGlobalDataTx

type Proposal

type Proposal struct {
	L2BlockNumber *big.Int
	OutputRoot    common.Hash
}

type VMContract

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

VMContract is a binding that works with contracts implementing the IBigStepper interface

func NewVMContract

func NewVMContract(addr common.Address, caller *batching.MultiCaller) (*VMContract, error)

func (*VMContract) Oracle

Jump to

Keyboard shortcuts

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