contracts

package
v0.0.0-...-86af830 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 9 Imported by: 0

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, blockNum uint64) (types.GameMetadata, error)

func (*DisputeGameFactoryContract) GetGameCount

func (f *DisputeGameFactoryContract) GetGameCount(ctx context.Context, blockNum uint64) (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 (*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 (*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 (*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

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 {
	Index         *big.Int
	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