Documentation ¶
Index ¶
- type DisputeGameFactoryContract
- type FaultDisputeGameContract
- func (f *FaultDisputeGameContract) AttackTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)
- func (f *FaultDisputeGameContract) CallResolve(ctx context.Context) (gameTypes.GameStatus, error)
- func (f *FaultDisputeGameContract) CallResolveClaim(ctx context.Context, claimIdx uint64) error
- func (f *FaultDisputeGameContract) DefendTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)
- func (f *FaultDisputeGameContract) GetAbsolutePrestateHash(ctx context.Context) (common.Hash, error)
- func (f *FaultDisputeGameContract) GetAllClaims(ctx context.Context) ([]types.Claim, error)
- func (f *FaultDisputeGameContract) GetClaim(ctx context.Context, idx uint64) (types.Claim, error)
- func (f *FaultDisputeGameContract) GetClaimCount(ctx context.Context) (uint64, error)
- func (f *FaultDisputeGameContract) GetGameDuration(ctx context.Context) (uint64, error)
- func (f *FaultDisputeGameContract) GetL1Head(ctx context.Context) (common.Hash, error)
- func (f *FaultDisputeGameContract) GetMaxGameDepth(ctx context.Context) (uint64, error)
- func (f *FaultDisputeGameContract) GetProposals(ctx context.Context) (Proposal, Proposal, error)
- func (f *FaultDisputeGameContract) GetStatus(ctx context.Context) (gameTypes.GameStatus, error)
- func (f *FaultDisputeGameContract) ResolveClaimTx(claimIdx uint64) (txmgr.TxCandidate, error)
- func (f *FaultDisputeGameContract) ResolveTx() (txmgr.TxCandidate, error)
- func (f *FaultDisputeGameContract) StepTx(claimIdx uint64, isAttack bool, stateData []byte, proof []byte) (txmgr.TxCandidate, error)
- func (f *FaultDisputeGameContract) UpdateOracleTx(ctx context.Context, claimIdx uint64, data *types.PreimageOracleData) (txmgr.TxCandidate, error)
- type OutputBisectionGameContract
- func (f *OutputBisectionGameContract) AttackTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)
- func (f *OutputBisectionGameContract) CallResolve(ctx context.Context) (gameTypes.GameStatus, error)
- func (f *OutputBisectionGameContract) CallResolveClaim(ctx context.Context, claimIdx uint64) error
- func (f *OutputBisectionGameContract) DefendTx(parentContractIndex uint64, pivot common.Hash) (txmgr.TxCandidate, error)
- func (f *OutputBisectionGameContract) GetAbsolutePrestateHash(ctx context.Context) (common.Hash, error)
- func (f *OutputBisectionGameContract) GetAllClaims(ctx context.Context) ([]types.Claim, error)
- func (c *OutputBisectionGameContract) GetBlockRange(ctx context.Context) (prestateBlock uint64, poststateBlock uint64, retErr error)
- func (f *OutputBisectionGameContract) GetClaim(ctx context.Context, idx uint64) (types.Claim, error)
- func (f *OutputBisectionGameContract) GetClaimCount(ctx context.Context) (uint64, error)
- func (f *OutputBisectionGameContract) GetGameDuration(ctx context.Context) (uint64, error)
- func (f *OutputBisectionGameContract) GetL1Head(ctx context.Context) (common.Hash, error)
- func (f *OutputBisectionGameContract) GetMaxGameDepth(ctx context.Context) (uint64, error)
- func (c *OutputBisectionGameContract) GetSplitDepth(ctx context.Context) (uint64, error)
- func (f *OutputBisectionGameContract) GetStatus(ctx context.Context) (gameTypes.GameStatus, error)
- func (f *OutputBisectionGameContract) ResolveClaimTx(claimIdx uint64) (txmgr.TxCandidate, error)
- func (f *OutputBisectionGameContract) ResolveTx() (txmgr.TxCandidate, error)
- func (f *OutputBisectionGameContract) StepTx(claimIdx uint64, isAttack bool, stateData []byte, proof []byte) (txmgr.TxCandidate, error)
- func (f *OutputBisectionGameContract) UpdateOracleTx(ctx context.Context, claimIdx uint64, data *types.PreimageOracleData) (txmgr.TxCandidate, error)
- type PreimageOracleContract
- type Proposal
- type VMContract
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 ¶
type FaultDisputeGameContract ¶
type FaultDisputeGameContract struct {
// contains filtered or unexported fields
}
func NewFaultDisputeGameContract ¶
func NewFaultDisputeGameContract(addr common.Address, caller *batching.MultiCaller) (*FaultDisputeGameContract, error)
func (*FaultDisputeGameContract) CallResolve ¶
func (f *FaultDisputeGameContract) CallResolve(ctx context.Context) (gameTypes.GameStatus, error)
func (*FaultDisputeGameContract) CallResolveClaim ¶
func (*FaultDisputeGameContract) GetAbsolutePrestateHash ¶
func (*FaultDisputeGameContract) GetAllClaims ¶
func (*FaultDisputeGameContract) GetClaimCount ¶
func (*FaultDisputeGameContract) GetGameDuration ¶
func (*FaultDisputeGameContract) GetMaxGameDepth ¶
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) 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) CallResolve ¶
func (f *OutputBisectionGameContract) CallResolve(ctx context.Context) (gameTypes.GameStatus, error)
func (*OutputBisectionGameContract) CallResolveClaim ¶
func (*OutputBisectionGameContract) GetAbsolutePrestateHash ¶
func (*OutputBisectionGameContract) GetAllClaims ¶
func (*OutputBisectionGameContract) GetBlockRange ¶
func (*OutputBisectionGameContract) GetClaimCount ¶
func (*OutputBisectionGameContract) GetGameDuration ¶
func (*OutputBisectionGameContract) GetMaxGameDepth ¶
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) UpdateOracleTx ¶
func (f *OutputBisectionGameContract) UpdateOracleTx(ctx context.Context, claimIdx uint64, data *types.PreimageOracleData) (txmgr.TxCandidate, error)
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 ¶
func (c PreimageOracleContract) AddGlobalDataTx(data *types.PreimageOracleData) (txmgr.TxCandidate, error)
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 ¶
func (c *VMContract) Oracle(ctx context.Context) (*PreimageOracleContract, error)
Click to show internal directories.
Click to hide internal directories.