sqlite

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDB

type SQLiteDB struct {
	// contains filtered or unexported fields
}

func InitSQLite

func InitSQLite(path, migrationPath string) (*SQLiteDB, error)

func (*SQLiteDB) AddPendingProofs added in v0.3.0

func (sqlite *SQLiteDB) AddPendingProofs(proofs cashu.Proofs, quoteId string) error

func (*SQLiteDB) Close added in v0.3.0

func (sqlite *SQLiteDB) Close()

func (*SQLiteDB) GetBalance

func (sqlite *SQLiteDB) GetBalance() (uint64, error)

func (*SQLiteDB) GetBlindSignature added in v0.3.0

func (sqlite *SQLiteDB) GetBlindSignature(B_ string) (cashu.BlindedSignature, error)

func (*SQLiteDB) GetBlindSignatures added in v0.3.0

func (sqlite *SQLiteDB) GetBlindSignatures(B_s []string) (cashu.BlindedSignatures, error)

func (*SQLiteDB) GetKeysets

func (sqlite *SQLiteDB) GetKeysets() ([]storage.DBKeyset, error)

func (*SQLiteDB) GetMeltQuote

func (sqlite *SQLiteDB) GetMeltQuote(quoteId string) (storage.MeltQuote, error)

func (*SQLiteDB) GetMeltQuoteByPaymentRequest added in v0.3.0

func (sqlite *SQLiteDB) GetMeltQuoteByPaymentRequest(invoice string) (*storage.MeltQuote, error)

func (*SQLiteDB) GetMintQuote

func (sqlite *SQLiteDB) GetMintQuote(quoteId string) (storage.MintQuote, error)

func (*SQLiteDB) GetMintQuoteByPaymentHash added in v0.3.0

func (sqlite *SQLiteDB) GetMintQuoteByPaymentHash(paymentHash string) (storage.MintQuote, error)

func (*SQLiteDB) GetPendingProofs added in v0.3.0

func (sqlite *SQLiteDB) GetPendingProofs(Ys []string) ([]storage.DBProof, error)

func (*SQLiteDB) GetPendingProofsByQuote added in v0.3.0

func (sqlite *SQLiteDB) GetPendingProofsByQuote(quoteId string) ([]storage.DBProof, error)

func (*SQLiteDB) GetProofsUsed

func (sqlite *SQLiteDB) GetProofsUsed(Ys []string) ([]storage.DBProof, error)

func (*SQLiteDB) GetSeed

func (sqlite *SQLiteDB) GetSeed() ([]byte, error)

func (*SQLiteDB) RemovePendingProofs added in v0.3.0

func (sqlite *SQLiteDB) RemovePendingProofs(Ys []string) error

func (*SQLiteDB) SaveBlindSignature added in v0.3.0

func (sqlite *SQLiteDB) SaveBlindSignature(B_ string, blindSignature cashu.BlindedSignature) error

func (*SQLiteDB) SaveKeyset

func (sqlite *SQLiteDB) SaveKeyset(keyset storage.DBKeyset) error

func (*SQLiteDB) SaveMeltQuote

func (sqlite *SQLiteDB) SaveMeltQuote(meltQuote storage.MeltQuote) error

func (*SQLiteDB) SaveMintQuote

func (sqlite *SQLiteDB) SaveMintQuote(mintQuote storage.MintQuote) error

func (*SQLiteDB) SaveProofs

func (sqlite *SQLiteDB) SaveProofs(proofs cashu.Proofs) error

func (*SQLiteDB) SaveSeed

func (sqlite *SQLiteDB) SaveSeed(seed []byte) error

func (*SQLiteDB) UpdateKeysetActive

func (sqlite *SQLiteDB) UpdateKeysetActive(id string, active bool) error

func (*SQLiteDB) UpdateMeltQuote

func (sqlite *SQLiteDB) UpdateMeltQuote(quoteId, preimage string, state nut05.State) error

func (*SQLiteDB) UpdateMintQuoteState

func (sqlite *SQLiteDB) UpdateMintQuoteState(quoteId string, state nut04.State) error

Jump to

Keyboard shortcuts

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