Documentation
¶
Index ¶
- func GetATXs(db *sql.Database, atxIds []types.ATXID) (map[types.ATXID]*types.ActivationTx, []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) CountAtxsByEpoch(db *sql.Database, epoch int64) (int, error)
- func (c *Client) GetAllRewards(db *sql.Database) (rst []*types.Reward, err error)
- func (c *Client) GetAtxById(db *sql.Database, id string) (*types.ActivationTx, error)
- func (c *Client) GetAtxsByEpoch(db *sql.Database, epoch int64, fn func(tx *types.ActivationTx) bool) error
- func (c *Client) GetAtxsByEpochPaginated(db *sql.Database, epoch, limit, offset int64, ...) error
- func (c *Client) GetAtxsReceivedAfter(db *sql.Database, ts int64, fn func(tx *types.ActivationTx) bool) 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) CountAtxsByEpoch ¶ added in v1.6.1
func (*Client) GetAllRewards ¶ added in v1.4.0
func (*Client) GetAtxById ¶ added in v1.6.1
func (*Client) GetAtxsByEpoch ¶ added in v1.5.7
func (*Client) GetAtxsByEpochPaginated ¶ added in v1.6.1
func (*Client) GetAtxsReceivedAfter ¶ added in v1.5.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)
GetAtxsReceivedAfter(db *sql.Database, ts int64, fn func(tx *types.ActivationTx) bool) error
GetAtxsByEpoch(db *sql.Database, epoch int64, fn func(tx *types.ActivationTx) bool) error
CountAtxsByEpoch(db *sql.Database, epoch int64) (int, error)
GetAtxsByEpochPaginated(db *sql.Database, epoch, limit, offset int64, fn func(tx *types.ActivationTx) bool) error
GetAtxById(db *sql.Database, id string) (*types.ActivationTx, error)
}
Click to show internal directories.
Click to hide internal directories.