basicAssetsSQLStorage

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryTypes struct {
	AssetsList enum.Element
	Assets     enum.Element

	Transfer             enum.Element
	TransferList         enum.Element
	TransfersUnderAssets enum.Element
	BalancesUnderAssets  enum.Element

	AddressList         enum.Element
	AddressActionRecord enum.Element
	AddressBalanceList  enum.Element

	SellingHistory enum.Element
}

Functions

func Load

func Load()

Types

type Storage

type Storage struct {
	Driver simpleSQLDatabase.IDriver
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(sqlDriver simpleSQLDatabase.IDriver) (s *Storage)

func (*Storage) DoQuery

func (s *Storage) DoQuery(queryReq basicAssetsLedger.QueryRequest) (result interface{}, err error)

func (*Storage) GetAddressActionRecord

func (s *Storage) GetAddressActionRecord(p []string) (ret interface{}, err error)

func (*Storage) GetAddressBalance

func (s *Storage) GetAddressBalance(p []string) (ret interface{}, err error)

func (*Storage) GetAddressesList

func (s *Storage) GetAddressesList(p []string) (ret interface{}, err error)

func (*Storage) GetAssets

func (s *Storage) GetAssets(p []string) (ret interface{}, err error)

func (*Storage) GetAssetsList

func (s *Storage) GetAssetsList(p []string) (ret interface{}, err error)

func (*Storage) GetBalancesUnderAssetsList

func (s *Storage) GetBalancesUnderAssetsList(p []string) (ret interface{}, err error)

func (*Storage) GetSellingHistory

func (s *Storage) GetSellingHistory(p []string) (ret interface{}, err error)

func (*Storage) GetTransfer

func (s *Storage) GetTransfer(p []string) (ret interface{}, err error)

func (*Storage) GetTransferList

func (s *Storage) GetTransferList(p []string) (ret interface{}, err error)

func (*Storage) GetTransfersUnderAssets

func (s *Storage) GetTransfersUnderAssets(p []string) (ret interface{}, err error)

func (*Storage) StoreAssets

func (s *Storage) StoreAssets(tx basicAssetsLedger.TransactionWithBlockInfo) (err error)

func (*Storage) StoreBalance

func (s *Storage) StoreBalance(height uint64, tm int64, balanceList []basicAssetsLedger.Balance) (err error)

func (*Storage) StoreUnspent

func (s *Storage) StoreUnspent(tx basicAssetsLedger.TransactionWithBlockInfo, inputUnspent []basicAssetsLedger.Unspent) (err error)

Jump to

Keyboard shortcuts

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