rewards

package
v0.3.10-beta.2-trigger... Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 3 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 List

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

List rewards from all layers for the coinbase address.

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