Documentation ¶
Index ¶
- func GetATXs(db *sql.Database, atxIds []types.ATXID) (map[types.ATXID]*types.VerifiedActivationTx, []types.ATXID)
- func Setup(path string) (db *sql.Database, err error)
- type Client
- func (c *Client) AccountsSnapshot(db *sql.Database, lid types.LayerID) (rst []*types.Account, err error)
- func (c *Client) GetAllRewards(db *sql.Database) (rst []*types.Reward, err error)
- func (c *Client) GetLayer(db *sql.Database, lid types.LayerID, numLayers uint32) (*pb.Layer, error)
- func (c *Client) GetLayerRewards(db *sql.Database, lid types.LayerID) (rst []*types.Reward, err error)
- type DatabaseClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct{}
func (*Client) AccountsSnapshot ¶
func (*Client) GetAllRewards ¶ added in v1.4.0
type DatabaseClient ¶
type DatabaseClient interface { GetLayer(db *sql.Database, lid types.LayerID, numLayers uint32) (*pb.Layer, error) GetLayerRewards(db *sql.Database, lid types.LayerID) (rst []*types.Reward, err error) GetAllRewards(db *sql.Database) (rst []*types.Reward, err error) AccountsSnapshot(db *sql.Database, lid types.LayerID) (rst []*types.Account, err error) }
Click to show internal directories.
Click to hide internal directories.