reward

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInsufficientFunds = errors.New("insufficient token balance")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	TokenAddress(ctx context.Context) (common.Address, error)
	SystemTokenAddress(ctx context.Context) (common.Address, error)
	GetSystemReward(ctx context.Context, address common.Address) (*big.Int, error)
	GetCashedReward(ctx context.Context, address common.Address) (*big.Int, error)
	GetUnCashReward(ctx context.Context, address common.Address) (*big.Int, error)
	DoSystemReward(ctx context.Context, addresses []common.Address, values []*big.Int) (common.Hash, error)
	DoReward(ctx context.Context, addresses []common.Address, values []*big.Int) (common.Hash, error)
	Cash(ctx context.Context, address common.Address, value *big.Int) (common.Hash, error)
	Txs() ([]string, error)
}

func New

func New(stateStore storage.StateStorer, transactionService transaction.Service, address common.Address) Service

Jump to

Keyboard shortcuts

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