Commit Graph

1412 Commits

Author SHA1 Message Date
C
8e0c44248b Add NUT-19 support in the wallet (#912)
* Add NUT-19 support in the wallet
2025-07-29 21:45:30 -04:00
thesimplekid
72887341ca Merge pull request #919 from crodas/fix/add-missing-migration
Add missing migrations for wallet and auth db
2025-07-29 21:41:55 -04:00
Cesar Rodas
ed7b64b71a Add missing migrations for wallet and auth db 2025-07-29 20:28:09 -03:00
C
f0af2121b2 Merge pull request #890 from crodas/feature/sql-base
Introduce `cdk-sql-common`
2025-07-29 17:03:32 -03:00
Cesar Rodas
0041c135f7 Fix get_mint_quote_by_request_lookup_id
Fixes #916

The two functions (read and transaction) got out of sync
2025-07-29 11:31:29 -03:00
Cesar Rodas
659518f241 Improve migrations
Add the namespaced migrations and global migrations
2025-07-29 11:31:29 -03:00
C
99ced01e67 Apply suggestions from code review
Co-authored-by: thesimplekid <tsk@thesimplekid.com>
2025-07-29 11:31:29 -03:00
Cesar Rodas
fb4c470a9a Rename still_active to stale 2025-07-29 11:31:29 -03:00
Cesar Rodas
1f85d0fd7a Changes
1. Fix migration to avoid re-running migration twice
2. Remove tokio dependency
2025-07-29 11:31:28 -03:00
Cesar Rodas
034af74013 Add Cache to SQL stmt
The cache will store the placeholders and if possible the RAW SQL with position
placeholders, to avoid repetitive computations
2025-07-29 11:31:28 -03:00
Cesar Rodas
349c773406 Introduce cdk-sql-common
The primary purpose of this new crate is to have a common and shared codebase
for all SQL storage systems. It would force us to write standard SQL using best
practices for all databases.

This crate has been extracted from #878
2025-07-29 11:31:23 -03:00
C
0b79121de4 Merge pull request #917 from crodas/bug/get_mint_quote_by_request_lookup_id
Fix `get_mint_quote_by_request_lookup_id`
2025-07-29 11:29:00 -03:00
Cesar Rodas
d14cfff8b8 Fix get_mint_quote_by_request_lookup_id
Fixes #916

The two functions (read and transaction) got out of sync
2025-07-28 22:30:25 -03:00
thesimplekid
db04537a34 Merge pull request #915 from BitcreditProtocol/peanut/transactionid_panic
TransactionId::from_hex check bytes len before copy_from_slice
2025-07-28 09:25:27 -04:00
codingpeanut157
29a2866326 TransactionId::from_hex check bytes len before copy_from_slice
avoid panicking when the input does not convert to an [u8;32] byte array
2025-07-28 12:24:03 +02:00
thesimplekid
e346ab638e Merge pull request #907 from thesimplekid/update_flake
refactor(flake): remove crane build system and simplify flake depende…
2025-07-27 07:29:51 -04:00
thesimplekid
735de32161 feat: sig all (#862)
* feat: swap sig all

* feat: melt sig all

* feat: swap and melt sig flag verify for mint

* feat: msg to sign tests
2025-07-26 09:51:28 -04:00
thesimplekid
fef1cda009 refactor(flake): remove crane build system and simplify flake dependencies
Remove crane and fenix dependencies along with their associated build
infrastructure. This simplifies the flake to focus on development
environments while removing package builds and applications.
2025-07-26 08:01:29 -04:00
thesimplekid
fb08e88457 Merge pull request #909 from thesimplekid/fix_unit_ser
fix(cashu): preserve original case for custom CurrencyUnit values
2025-07-24 16:59:33 +01:00
thesimplekid
0605eddf6f Merge pull request #910 from thesimplekid/flake_check_as_daily_check
refactor(ci): move flake check from CI to separate daily workflow
2025-07-24 09:18:09 +01:00
thesimplekid
4997af879a refactor(ci): move flake check from CI to separate daily workflow
Move Nix flake input checking from the main CI pipeline to a dedicated
daily scheduled workflow to reduce CI build time while maintaining
regular dependency monitoring.
2025-07-24 09:14:43 +01:00
thesimplekid
9df904648e fix(cashu): preserve original case for custom CurrencyUnit values
Custom currency units were incorrectly being converted to uppercase
during deserialization. This change ensures custom units maintain
their original case while still allowing case-insensitive matching
for standard units.
2025-07-24 09:00:06 +01:00
thesimplekid
7b2e31a3df Merge pull request #903 from thesimplekid/mint_start
feat(cdk): add mint lifecycle management with start/stop methods
2025-07-23 20:50:19 +01:00
thesimplekid
d2e9f1a626 Merge pull request #901 from thesimplekid/refresh_keys
feat: refactor wallet keyset management for better clarity
2025-07-23 20:49:42 +01:00
thesimplekid
af2762e5ef fix: waiting start stop tests 2025-07-23 15:58:47 +01:00
thesimplekid
8ab545ae44 Merge pull request #889 from gudnuf/fix/ws-melt-updates-include-change
fix: include change in melt quote state updates
2025-07-23 15:01:33 +01:00
lollerfirst
d07388d1ce refactor Nut10SecretRequest and add tests with provided test vectors (#900)
* refactor Nut10SecretRequest and add tests with provided test vectors
2025-07-23 14:55:27 +01:00
thesimplekid
6e0c3a3f7f feat(cdk): add mint lifecycle management with start/stop methods
- Add background service management with graceful shutdown handling
- Refactor invoice payment monitoring to use centralized task supervision
- Update cdk-mintd and integration tests to use new lifecycle methods
- Add comprehensive documentation and lifecycle tests
2025-07-23 13:38:20 +01:00
thesimplekid
49a05f410d Merge pull request #902 from thesimplekid/goose_recipe
feat(misc): add Goose AI recipes for automated changelog and git message
2025-07-23 08:45:26 +01:00
thesimplekid
7ee0fe0385 feat(misc): add Goose AI recipes for automated changelog and git message generation
- Add changelog-update.yaml recipe for analyzing staged changes and updating CHANGELOG.md
- Add git-commit-message.yaml recipe for creating conventional commit messages
- Add justfile commands (goose-changelog-update, goose-git-msg) for running recipes
- Update CHANGELOG.md with new recipe functionality entries
2025-07-22 23:54:09 +01:00
asmo
e639bd4021 fakewallet: convert sat to msat (#899) 2025-07-22 15:27:18 +02:00
David Caseria
f018465aa6 Refactor MintBuilder (#887)
* Refactor MintBuilder
* Validate azp instead of aud for client id
2025-07-19 18:13:11 +02:00
findingsov
7f0e261a25 Update README.md-small typo (#893)
could not find cdk-mint-cli in crates.io.  Found cdk-mint-rpc.
2025-07-17 09:38:32 +02:00
David Caseria
bd2fbb13f9 Wallet: Check Pending Melt Quotes (#895)
* Add transaction for pending melt

* Check pending melt quotes

* Fix imports
2025-07-17 09:37:38 +02:00
thesimplekid
0b88c990a9 Merge pull request #884 from davidcaseria/get-active-mint-quotes
Get active mint quotes
2025-07-17 09:31:28 +02:00
David Caseria
8cfda577b6 Merge remote-tracking branch 'origin/get-active-mint-quotes' into get-active-mint-quotes 2025-07-16 14:01:20 -04:00
David Caseria
3ce8d6bb16 Merge remote-tracking branch 'upstream/main' into get-active-mint-quotes 2025-07-16 14:00:33 -04:00
gudnuf
21a32b6b0f fix: include change in melt quote state updates 2025-07-14 06:56:40 -07:00
thesimplekid
bc545fcd77 Merge pull request #874 from thesimplekid/bolt12_2
Bolt12 2
2025-07-13 20:17:37 +01:00
thesimplekid
ae6c107809 feat: bolt12 2025-07-13 18:48:35 +01:00
thesimplekid
34e91dc924 Merge pull request #888 from vnprc/main
fix: return the correct error when fetching mint config values
2025-07-13 16:54:49 +01:00
vnprc
180a7c41b7 fix: return the correct error when fetching config values
do not always return UnknownQuoteTTL
return UnknownMintInfo when appropriate
add a new UnknownConfigKey for unknown key values
unit tests to cover this functionality
2025-07-11 19:59:08 -04:00
David Caseria
2d08e6c080 Merge branch 'main' into get-active-mint-quotes 2025-07-11 16:50:17 -04:00
asmo
526cadf539 refactor mintd main function (#778) 2025-07-11 10:32:11 +01:00
David Caseria
a308702376 Filter active mint quotes for wallet 2025-07-10 14:58:00 -04:00
David Caseria
1cae6caae1 Merge remote-tracking branch 'upstream/main' into get-active-mint-quotes 2025-07-10 14:54:36 -04:00
thesimplekid
e2a2646f71 Merge pull request #876 from thesimplekid/mprocs
feat: mprocs regtest
2025-07-08 11:56:54 +01:00
thesimplekid
ea0b696db9 fix: cln mprocs logging 2025-07-08 11:33:21 +01:00
thesimplekid
0f586543bf Merge pull request #875 from thesimplekid/remove_rexie
feat: remove rexie
2025-07-08 11:11:38 +01:00
thesimplekid
a97eb84db6 chore: update docs 2025-07-08 11:09:20 +01:00