smartAssetsSQLStorage

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryParameterFields struct {
	Account  enum.Element
	Contract enum.Element
	TxHash   enum.Element
	Page     enum.Element
}
View Source
var QueryTypes struct {
	TransactionList enum.Element
	Transaction     enum.Element
	AccountList     enum.Element
	Account         enum.Element
	Contract        enum.Element
	ContractByTx    enum.Element
	ContractList    enum.Element
	ContractCall    enum.Element
	TransferList    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(req smartAssetsLedger.QueryRequest) (interface{}, error)

func (Storage) StoreSystemIssueBalance

func (s Storage) StoreSystemIssueBalance(balance *big.Int, owner string) error

func (Storage) StoreTransaction

func (s Storage) StoreTransaction(tx smartAssetsLedger.Transaction, blk block.Entity) (err error)

Jump to

Keyboard shortcuts

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