rewards

package
v1.6.0-alpha.1-nomain Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, reward *types.Reward) error

Add reward to the database.

func IterateRewardsOps added in v1.4.0

func IterateRewardsOps(
	db sql.Executor,
	operations builder.Operations,
	fn func(reward *types.Reward) bool,
) error

func ListByCoinbase added in v1.3.0

func ListByCoinbase(db sql.Executor, coinbase types.Address) (rst []*types.Reward, err error)

ListByCoinbase lists rewards from all layers for the coinbase address.

func ListByKey added in v1.3.0

func ListByKey(db sql.Executor, coinbase *types.Address, smesherID *types.NodeID) (rst []*types.Reward, err error)

ListByKey lists rewards from all layers for the specified smesherID and/or coinbase.

func ListBySmesherId added in v1.3.0

func ListBySmesherId(db sql.Executor, smesherID types.NodeID) (rst []*types.Reward, err error)

ListBySmesherId lists rewards from all layers for the smesher ID.

func Revert

func Revert(db sql.Executor, revertTo types.LayerID) error

Revert the rewards to the specified layer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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