claims

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 10 Imported by: 0

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 BondContract interface {
	GetCredit(ctx context.Context, recipient common.Address) (*big.Int, types.GameStatus, error)
	ClaimCreditTx(ctx context.Context, recipient common.Address) (txmgr.TxCandidate, error)
}

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

func (c *Claimer) ClaimBonds(ctx context.Context, games []types.GameMetadata) (err error)

type TxSender added in v1.7.3

type TxSender interface {
	SendAndWaitSimple(txPurpose string, txs ...txmgr.TxCandidate) error
}

Jump to

Keyboard shortcuts

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