sql

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetATXs

func GetATXs(db *sql.Database, atxIds []types.ATXID) (map[types.ATXID]*types.VerifiedActivationTx, []types.ATXID)

func Setup

func Setup(path string) (db *sql.Database, err error)

Types

type Client

type Client struct{}

func (*Client) AccountsSnapshot

func (c *Client) AccountsSnapshot(db *sql.Database, lid types.LayerID) (rst []*types.Account, err error)

func (*Client) GetLayer

func (c *Client) GetLayer(db *sql.Database, lid types.LayerID, numLayers uint32) (*pb.Layer, error)

func (*Client) GetLayerRewards

func (c *Client) GetLayerRewards(db *sql.Database, lid types.LayerID) (rst []*types.Reward, err error)

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)
	AccountsSnapshot(db *sql.Database, lid types.LayerID) (rst []*types.Account, err error)
}

Jump to

Keyboard shortcuts

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