Commit Graph

33 Commits

Author SHA1 Message Date
Cesar Rodas
af2fe580f4 Minor improvement in the SQLite crate
This is a minor improvement over the SQLite crate, which performs fewer SQL
statements and fetches multiple results instead.

This will also remove some redundant commit() and rollback calls. Rollback
already happens on drop, and there is no need for a commit if the database
hasn't changed, as the transaction is used as a locking mechanism in this
context.
2024-11-27 08:33:16 +00:00
ok300
f6533a08de Add Proofs trait to consolidate aggregate fns 2024-10-17 23:28:56 +01:00
thesimplekid
7ea568e615 feat: sql store signatures dleq 2024-09-30 12:20:43 +02:00
thesimplekid
ca6fdb5bff feat: return change in check quote 2024-09-30 09:47:23 +02:00
thesimplekid
5139c47dac feat: check outgoing payment status flow 2024-09-25 20:28:05 +02:00
thesimplekid
974796400d feat: get proofs for quote id 2024-09-23 14:05:28 +02:00
thesimplekid
fa8776998a feat(mint): store mint_quote_id for blind sig 2024-09-21 11:13:30 +02:00
thesimplekid
117443d126 feat: store melt_quote_id for proof 2024-09-21 11:13:30 +02:00
thesimplekid
f2867188a8 fix: sqlx sqlite settings
feat: use transactions in all sql fns
2024-09-21 11:10:38 +02:00
thesimplekid
5f87df2cef refactor: use MintUrl::from_str 2024-09-03 11:36:28 +01:00
thesimplekid
bcb4a5927d refactor: remove the use of flat maps 2024-08-17 14:35:52 +02:00
thesimplekid
ba19663531 feat(mint): issued and redeamed by keyset 2024-07-25 08:43:14 -04:00
thesimplekid
97fd83c8f4 feat(mint): add get blinded_sig by keyset 2024-07-22 16:43:26 +01:00
thesimplekid
a96ba31784 refactor: remove get single blinded sig 2024-07-20 10:19:12 +01:00
thesimplekid
6705761aec fix: dont update proof state if already spent 2024-07-19 00:30:59 +01:00
thesimplekid
fb014573c1 refactor: use sproof state update 2024-07-18 23:07:09 +01:00
thesimplekid
9789475686 feat: remove unused db fns 2024-07-18 23:07:09 +01:00
thesimplekid
373a4203b2 refactor(cdk/cdk_database): rename add_active_keyset to set_active_keyset 2024-07-16 09:21:51 +01:00
thesimplekid
d45019ae8b refactor: add_blind_signature to add_blind_signatures 2024-07-16 01:31:35 +01:00
thesimplekid
ed007c475e refactor: get spent and pending proofs by list of secrets or ys 2024-07-16 00:40:28 +01:00
thesimplekid
920e5d1fd7 fix: set inactive keysets as inactive in sql db 2024-07-11 21:02:12 +01:00
thesimplekid
6d3200c72d feat: use derivation path by unit 2024-07-11 20:48:45 +01:00
thesimplekid
17263b07f5 feat(NUT02): add input_fee_ppk
chore: instrument log on mint fns
2024-07-11 12:22:20 +01:00
thesimplekid
8b775cb7f1 feat: wait invoice is stream of request_lookup_id 2024-07-05 23:49:31 +01:00
thesimplekid
6a315fc3b9 feat: mintd axum server
feat: deafult NUT-04 and NUT-05 settings to enable bolt11 sats
2024-07-05 23:49:31 +01:00
thesimplekid
5db6eaa858 fix: default state sql
fix(mint/sqlite): add pending proof state

fix(mint): adding proof to pending before checking current

fix(mint): remove double call to verify melt quote
2024-06-29 09:03:57 +01:00
thesimplekid
b528964fb6 chore: readmes
chore: doc comments on public
2024-06-28 15:37:10 +01:00
thesimplekid
b0bfaec94a feat: add and remove proofs use vecs 2024-06-27 23:11:54 +01:00
thesimplekid
7223c5bda8 feat(NUT05): update with quote state
feat(NUT04): update with quote state

feat: db migrations for mint state

chore: remove logging
2024-06-27 20:35:19 +01:00
thesimplekid
5123571687 feat(cli): working dir 2024-06-24 12:20:35 +01:00
thesimplekid
a07364c5c6 feat(mint/sqlite): use sql migrations 2024-06-12 15:43:37 +01:00
thesimplekid
e1506c4e34 feat: wallet sqlite 2024-06-08 11:37:48 +01:00
thesimplekid
bbc63306db feat: mint sqlite 2024-06-08 10:34:39 +01:00