Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingBlockNumber = errors.New("game loader missing block number")
)
Functions ¶
func NewGameLoader ¶
func NewGameLoader(caller MinimalDisputeGameFactoryCaller) *gameLoader
NewGameLoader creates a new services that can be used to fetch on chain dispute games.
Types ¶
type FaultDisputeGame ¶
type MinimalDisputeGameFactoryCaller ¶
type MinimalDisputeGameFactoryCaller interface { GameCount(opts *bind.CallOpts) (*big.Int, error) GameAtIndex(opts *bind.CallOpts, _index *big.Int) (struct { GameType uint8 Timestamp uint64 Proxy common.Address }, error) }
MinimalDisputeGameFactoryCaller is a minimal interface around bindings.DisputeGameFactoryCaller. This needs to be updated if the bindings.DisputeGameFactoryCaller interface changes.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
NewService creates a new Service.
Click to show internal directories.
Click to hide internal directories.