Commit Graph

33 Commits

Author SHA1 Message Date
thesimplekid (aider)
cb87fefacd refactor: Remove nostr last checked methods from database trait and implementations 2025-03-09 23:11:02 +00:00
benthecarman
40c53e83df feat: Add support for sqlcipher 2025-03-09 15:08:43 -05:00
ok300
fe223c4ce6 Remove dependency on rand 2025-01-24 16:46:59 +01:00
Cesar Rodas
760564cee0 Introduce subscription support in the Wallet crate.
The main goal is to add a subscription to CDK Mint updates into the wallet.
This feature will be particularly useful for improving the code whenever loops
hit the mint server to check status changes.

The goal is to add an easy-to-use interface that will hide the fact that we're
connecting to WebSocket and subscribing to events. This will also hide the fact
that the CDK-mint server may not support WebSocket updates.

To be fully backward compatible, the HttpClientMethods traits have a new
method, `subscribe,` which will return an object that implements
`ActiveSubscription.`

In the primary implementation, there is a `SubscriptionClient` that will
attempt to connect through WebSocket and will fall to the HTTP-status pull and
sleep approach (the current approach), but upper stream code will receive
updates as if they come from a stream of updates through WebSocket. This
`SubscriptionClient` struct will also manage reconnections to WebSockets (with
automatic resubscriptions) and all the low-level stuff, providing an
easy-to-use interface and leaving the upper-level code with a nice interface
that is hard to misuse. When `ActiveSubscription` is dropped, it will
automatically unsubscribe.

Fixed bug with Default as described in https://github.com/cashubtc/cdk/pull/473#discussion_r1871032297
2024-12-08 16:25:00 +00:00
ok300
86c4c2dfeb Add support for pure integration tests (#458)
* Embed mint_url as a field of HttpClient

* Create pure integration tests

* DirectMintConnection: convert between String and Uuid
2024-12-08 14:33:58 +00:00
thesimplekid
bc490ed208 fix(wallet): stop sqlite from overwritting keyset counter 2024-12-02 19:38:28 +00:00
thesimplekid
7a0a17038d fix(cdk-cli/restore): create wallet if not in multimit wallet 2024-12-02 11:30:22 +00:00
thesimplekid
c4abafb617 feat(cdk-cli): decode, send, receice payment request 2024-10-25 13:25:18 +01:00
mubarak23
2905b36a1c chore:change cli command name from Pay to Melt 2024-10-23 12:57:47 +01:00
Ruben
e0f5344e8f feat: mint-proofs command
fix typo

make output more readable.

Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-10-13 09:39:00 +02:00
thesimplekid
5f87df2cef refactor: use MintUrl::from_str 2024-09-03 11:36:28 +01:00
David Caseria
0945b3540a Add proxy support (#272)
* Add proxy support
2024-08-07 08:53:05 -04:00
thesimplekid
bb8d088f82 feat: receive adds unknown mint 2024-07-23 16:04:16 +01:00
thesimplekid
7bdc9280d2 feat: support muli unit 2024-07-15 22:36:30 +01:00
thesimplekid
ef66273554 refactor: cdk-cli use multimint wallet 2024-07-15 22:07:56 +01:00
thesimplekid
17263b07f5 feat(NUT02): add input_fee_ppk
chore: instrument log on mint fns
2024-07-11 12:22:20 +01:00
David Caseria
6d54b97a95 Use arg to set log level for cli 2024-07-10 16:50:49 -04:00
thesimplekid
658d85c16d fix: mint info deserlization 2024-07-08 16:04:15 +01:00
thesimplekid
6d5d2e154c refactor: rename melt to pay 2024-06-29 10:26:57 +01:00
thesimplekid
a710bae212 chore(cli): reduce log level 2024-06-29 09:34:11 +01:00
thesimplekid
b528964fb6 chore: readmes
chore: doc comments on public
2024-06-28 15:37:10 +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
04a463be1f feat(wallet): make wallet single mint and unit
feat(wallet): cli use mint with one url and unit

feat(wallet): remove p2pk keys from wallet

feat(wallet): multimint wallet
2024-06-27 12:09:44 +01:00
thesimplekid
54c50c3724 feat(wallet): update mint url
feat(cli): add change mint
2024-06-25 10:44:59 +01:00
thesimplekid
5123571687 feat(cli): working dir 2024-06-24 12:20:35 +01:00
thesimplekid
53329997bb refactor: remove mnemonic from cdk 2024-06-18 12:45:51 +01:00
thesimplekid
6298da79f5 feat(cli): call migrate on sqlx 2024-06-12 15:43:38 +01:00
thesimplekid
eb8bd373ad fix(cli): databases were backwards 2024-06-12 15:22:46 +01:00
thesimplekid
ea05cc37a3 feat: pending mints 2024-06-09 18:00:24 +01:00
thesimplekid
7c4c24d0b7 feat(cli): burn 2024-06-09 11:40:45 +01:00
thesimplekid
bfc737f2f5 feat(cli): balance 2024-06-09 11:24:32 +01:00
thesimplekid
4244053330 refactor: rename create-token to send 2024-06-09 10:15:51 +01:00
thesimplekid
5ebdd4f506 feat: cdk-cli 2024-06-09 00:04:20 +01:00