Commit Graph

746 Commits

Author SHA1 Message Date
thesimplekid
6712a97118 refactor: move keysets to mint and remove config 2025-01-30 00:30:08 +00:00
thesimplekid
335bac7bca chore: clippy 2025-01-30 00:07:46 +00:00
thesimplekid
c455809812 refactor: move quote_ttl to database 2025-01-29 23:58:13 +00:00
thesimplekid
5481286ec9 refactor: move mint_info to database 2025-01-29 23:29:25 +00:00
thesimplekid
0674144001 refactor: remove mint url from config 2025-01-29 20:38:53 +00:00
thesimplekid
0c6108f86d fix: add time out to wait invoice in tests 2025-01-28 17:15:04 +00:00
thesimplekid
70daaec622 fix: tests that attempt to mint before payment 2025-01-28 14:12:27 +00:00
ok300
a2005e1ff0 Remove Default implementation of MintMeltLimits
The default would have been min=0, max=0. This made any mint initialized with MintMeltLimits::default() to fail every mint and melt operation, because the amount was out of bounds.
2025-01-28 12:34:21 +01:00
thesimplekid
f2aa51f038 Merge pull request #562 from ok300/ok300-rename-vars
Rename vars for clarity
2025-01-26 11:18:39 +00:00
ok300
9aa304d3d5 Rename vars for clarity 2025-01-26 11:32:04 +01:00
lollerfirst
021b9f9f3a reject mpp melt quote if internal or method-unit not supported. 2025-01-26 10:24:33 +00:00
ok300
fe223c4ce6 Remove dependency on rand 2025-01-24 16:46:59 +01:00
thesimplekid
780fa9a73d Merge pull request #555 from thesimplekid/regtest_muli_mint
Add LND mint to regtest itests
2025-01-24 15:11:42 +00:00
thesimplekid
67be74abb8 feat: tests on lnd node 2025-01-24 14:55:02 +00:00
thesimplekid
19156552ff fix: p2pk example to account for fees 2025-01-24 11:17:29 +00:00
thesimplekid
80b5305e96 fix: multi mint check 2025-01-24 10:37:22 +00:00
thesimplekid
486f98bc8b feat: lnd mint 2025-01-23 23:45:31 +00:00
thesimplekid
72c66af8b7 feat: second lnd node 2025-01-23 20:56:01 +00:00
thesimplekid
ed23853d5d feat: abstract create mint 2025-01-22 20:03:20 +00:00
thesimplekid
7aa83bfbf7 Merge pull request #553 from thesimplekid/lnd_unwrap
chore: remove unwrap from lnd wait invoice
2025-01-22 15:22:07 +00:00
thesimplekid
7b7d7ce946 chore: remove unwrap from lnd wait invoice 2025-01-22 13:51:26 +00:00
thesimplekid
c9c2061773 chore: update nix channel 2025-01-22 13:40:49 +00:00
ok300
4535fa4286 Fix "just final-check" 2025-01-21 15:06:49 +01:00
thesimplekid
2e16453638 Merge pull request #549 from thesimplekid/update_example_config
feat: update example config
2025-01-20 22:38:37 +00:00
thesimplekid
0fb7a75fb0 feat: update example config 2025-01-20 21:52:11 +00:00
thesimplekid
a9662d0362 refactor: add second cln node 2025-01-20 21:07:21 +00:00
thesimplekid
6bd4c0c899 feat: update regtest 2025-01-20 20:54:59 +00:00
findingsov
31b2bd0e1a Update example.config.toml
It seems like 
# fee_percent=0.04
# reserve_fee_min=4

need to be under [lnd] as well 
got an error message when they weren't under [lnd]

close if not.
2025-01-16 15:25:41 -05:00
thesimplekid
b86d42b6a5 fix: extra mint/melt info limits 2025-01-16 11:22:37 +00:00
thesimplekid
411ba61d16 Merge pull request #532 from thesimplekid/refactor_itests
Refactor itests
2025-01-14 12:52:39 +00:00
thesimplekid
57a7aa09d6 refactor: pure tests 2025-01-14 12:24:30 +00:00
hidewrong
665c927c68 chore: fix some comments
Signed-off-by: hidewrong <hidewrong@outlook.com>
2025-01-14 20:03:39 +08:00
thesimplekid
190256fce6 refactor: start mint shared fn 2025-01-13 22:27:12 +00:00
thesimplekid
c5d4fa52ef refactor: regtest mint as bin 2025-01-13 20:58:19 +00:00
thesimplekid
1f45be28a3 refactor: mint builder in itest 2025-01-13 20:05:17 +00:00
C
8fe0982c6d Introduce cashu to host the shared types, traits and other common code (#519)
---------

Co-authored-by: thesimplekid <tsk@thesimplekid.com>
2025-01-12 12:50:05 +00:00
thesimplekid
b4c11c6345 chore: RELEASE mintd v0.6.1 2025-01-10 16:44:43 +00:00
thesimplekid
1ec92e0109 chore: clippy 2025-01-10 16:41:36 +00:00
thesimplekid
e500a7a4a6 feat: work_dir from env 2025-01-10 16:24:44 +00:00
thesimplekid
7b9b430aa1 fix: mpp melt quote msats to pay 2025-01-05 15:15:06 +00:00
thesimplekid
6a8a5a7941 fix: mpp (#523) 2025-01-05 14:42:44 +00:00
David Caseria
d6b7d49ea9 Return proofs for wallet mint function (#520)
* chore: update flake

---------

Co-authored-by: thesimplekid <tsk@thesimplekid.com>
2025-01-03 13:23:52 +00:00
thesimplekid
6575e1477a fix: examples 2024-12-27 21:45:46 -05:00
Jesus Christ
8ab08c7fce Improve wallet example with memory store
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Introduced a timeout mechanism to prevent infinite loops when checking the quote state.
- Ensured the main function returns a Result type for graceful error handling.
- Added descriptive comments to explain the functionality of each section in the code.
2024-12-27 21:19:11 -05:00
Jesus Christ
7fea2ffa92 Update proof-selection.rs
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Managed the subscription mechanism properly to avoid potential issues with concurrent message handling.
- Ensured the main function returns a Result type for graceful error handling.
- Added descriptive comments to explain the functionality of each section in the code.
2024-12-27 21:17:53 -05:00
Jesus Christ
e33def2679 Improve mint-token.rs
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Managed the subscription mechanism properly to avoid potential issues with concurrent message handling.
- Ensured the main function returns a Result type for graceful error handling.
2024-12-27 21:11:17 -05:00
Jesus Christ
a1ac6d3ce1 Improve p2pk.rs
- Replaced unwrap() calls with proper error handling using `?` operator.
- Added comments for better code understanding.
- Managed the subscription mechanism properly to avoid potential issues with concurrent message handling.
- Ensured the main function returns a Result type for graceful error handling.
2024-12-27 21:10:44 -05:00
C
c6e27d0de9 Add ArcSwap to update Mint configuration at runtime (#503)
* Add ArcSwap to update Mint configuration at runtime

The main goal is to change settings without having multiple RwLock everywhere,
instead having ArcSwap to update the configuration without having access to a
mutable reference to the Mint.

This will allow the RPC Server, or any other medium to update the Mint without
minimum contention.

* Rename structs

* Move quote_ttl to the new config

* Fixed clippy issues
2024-12-25 09:53:58 -05:00
thesimplekid
003a8f1b47 feat: signature on mint witness 2024-12-23 10:25:42 -05:00
lollerfirst
8055c0ced1 crawB Binary Token Serialization (#507) 2024-12-19 13:27:05 -05:00