Documentation ¶
Index ¶
- func Add(db sql.Executor, reward *types.Reward) error
- func ListByCoinbase(db sql.Executor, coinbase types.Address) (rst []*types.Reward, err error)
- func ListByKey(db sql.Executor, coinbase *types.Address, smesherID *types.NodeID) (rst []*types.Reward, err error)
- func ListBySmesherId(db sql.Executor, smesherID types.NodeID) (rst []*types.Reward, err error)
- func Revert(db sql.Executor, revertTo types.LayerID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListByCoinbase ¶ added in v1.3.0
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
ListBySmesherId lists rewards from all layers for the smesher ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.