db

package
v0.0.0-...-8682519 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailTx

func FailTx(ctxt c.Context, tx c.TxByHash) error

func FinalizeTx

func FinalizeTx(ctxt c.Context, tx c.TxByHash) error

func GetLastBlock

func GetLastBlock(dbh *sqlx.DB, chain string, label string) (uint64, error)

func GetOldUnconfirmed

func GetOldUnconfirmed(dbh *sqlx.DB) ([]c.TXH, error)

func GetOldestUnconfirmed

func GetOldestUnconfirmed(dbh *sqlx.DB) (uint64, error)

func PersistFailedBlock

func PersistFailedBlock(dbh *sqlx.DB, b c.Block) error

func PersistFailedTx

func PersistFailedTx(dbh *sqlx.DB, b c.Block, tx c.Transaction) error

func PersistTxs

func PersistTxs(ctxt c.Context, bn uint64, ethPrice decimal.Decimal, txs []c.Transaction) error

func RequestPrice

func RequestPrice(ctxt c.Context, asset string, ts time.Time) error

func SetLastBlock

func SetLastBlock(ctxt c.Context, chain string, lbn uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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