Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BondClaimMetrics ¶
type BondClaimMetrics interface {
RecordBondClaimed(amount uint64)
}
type BondClaimScheduler ¶
type BondClaimScheduler struct {
// contains filtered or unexported fields
}
func NewBondClaimScheduler ¶
func NewBondClaimScheduler(logger log.Logger, metrics BondClaimSchedulerMetrics, claimer BondClaimer) *BondClaimScheduler
func (*BondClaimScheduler) Close ¶
func (s *BondClaimScheduler) Close() error
func (*BondClaimScheduler) Schedule ¶
func (s *BondClaimScheduler) Schedule(blockNumber uint64, games []types.GameMetadata) error
func (*BondClaimScheduler) Start ¶
func (s *BondClaimScheduler) Start(ctx context.Context)
type BondClaimSchedulerMetrics ¶
type BondClaimSchedulerMetrics interface {
RecordBondClaimFailed()
}
type BondClaimer ¶
type BondClaimer interface {
ClaimBonds(ctx context.Context, games []types.GameMetadata) error
}
type BondContract ¶
type BondContractCreator ¶ added in v1.5.1
type BondContractCreator func(game types.GameMetadata) (BondContract, error)
type Claimer ¶ added in v1.5.1
type Claimer struct {
// contains filtered or unexported fields
}
func NewBondClaimer ¶
func NewBondClaimer(l log.Logger, m BondClaimMetrics, contractCreator BondContractCreator, txSender TxSender, claimants ...common.Address) *Claimer
func (*Claimer) ClaimBonds ¶ added in v1.5.1
Click to show internal directories.
Click to hide internal directories.