Commit Graph

296 Commits

Author SHA1 Message Date
David Caseria
2a09dff5c6 Address PR feedback 2024-05-14 20:27:07 -04:00
David Caseria
b9234817db Refactor wallet to accept seed for internal Xpriv 2024-05-14 13:58:25 -04:00
thesimplekid
f7b79e9e8e feat(wallet): total balance 2024-05-10 11:48:47 +01:00
thesimplekid
e766f3fbb1 feat(bindings): melted getters 2024-05-10 11:27:32 +01:00
thesimplekid
29a9eaa60c refactor: remove process swap 2024-05-10 11:27:32 +01:00
thesimplekid
c100b4f5f9 feat(bindings): swap 2024-05-10 11:27:32 +01:00
thesimplekid
fd4afeb2bd refactor(wallet): add swap function 2024-05-10 11:27:32 +01:00
thesimplekid
7c9b61aab6 chore: use workspace deps 2024-05-10 11:27:32 +01:00
thesimplekid
3cc660812a refactor: use spending conditions 2024-05-10 11:27:32 +01:00
thesimplekid
4cc02b7770 feat(bindings): js bindings send 2024-05-10 11:27:32 +01:00
thesimplekid
c62381f252 refactor(wallet): send returns token string 2024-05-10 11:27:32 +01:00
thesimplekid
60f7c39183 refactor: store keys amount as string 2024-05-10 11:27:32 +01:00
thesimplekid
8c4b74f16c refactor: rexie db keypath 2024-05-10 11:27:32 +01:00
thesimplekid
7ea7e0bda0 feat: js bindings 2024-05-10 11:27:32 +01:00
thesimplekid
ce5fd1e98c refactor: map error to cdk_database error 2024-05-10 11:27:32 +01:00
thesimplekid
7e1d97e545 feat: indexddb db 2024-05-10 11:27:32 +01:00
thesimplekid
35540f4304 refactor(cdk-redb): abstract error 2024-05-10 11:27:32 +01:00
thesimplekid
1dd08ae537 refactor(cdk-redb): feature gate mint and wallet 2024-05-10 11:27:32 +01:00
thesimplekid
6035f02b20 refactor: mint redb database 2024-05-10 11:27:32 +01:00
thesimplekid
a412d83dcd refactor: cdk_database 2024-05-10 11:27:32 +01:00
Lorenzo Maturano
21296fdca7 chore: use Self::Err on error variant of MintDatabase trait impl 2024-05-07 20:46:21 -03:00
thesimplekid
7ff22a4a8a feat: refresh mint keysets 2024-05-02 14:36:49 +01:00
thesimplekid
381dacd417 refactor(wallet): remove unwraps 2024-05-02 10:56:47 +01:00
thesimplekid
db14c11714 feat: NUT14 2024-05-02 09:32:04 +01:00
David Caseria
a5a50f281c refactor: Mint to use bip32 derivation and not store priv keys 2024-04-29 21:49:24 +01:00
thesimplekid
b186da2863 fix: verify with rust-secp256k1 2024-04-29 15:36:47 +01:00
thesimplekid
545d2c822d feat: add msat from string 2024-04-27 08:37:51 +01:00
kody.low
7c19eaea8f feat: add msats currencyUnit 2024-04-26 19:01:37 -07:00
thesimplekid
4893885002 refactor: store id as bytes 2024-04-25 11:36:07 +01:00
thesimplekid
c8e61b34b8 chore: remove unused features 2024-04-22 17:49:00 +01:00
thesimplekid
e4adb1c7c5 refactor: wallet use cdk_database Error 2024-04-21 23:25:32 +01:00
thesimplekid
c7dcf25812 refactor: use cdk_database Error 2024-04-21 23:19:01 +01:00
thesimplekid
83288ee178 refactor: mint use self error 2024-04-21 22:58:08 +01:00
thesimplekid
3dd1d03fa5 refactor: remove unused localstore 2024-04-21 21:24:05 +01:00
thesimplekid
080253aefc fix: handle keys response with old keyset ids
This adds a new deserializer that will skip invalid keyset ids.
This prevents an the response from erroring
if a mint returns old keysetids
2024-04-19 21:52:22 +01:00
thesimplekid
27e70aa921 refactor(cdk-redb): abstract error 2024-04-18 15:53:08 +01:00
thesimplekid
15a25a4f3d refactor(cdk-redb): feature gate mint and wallet 2024-04-18 15:52:39 +01:00
thesimplekid
2eca18007d refactor: mint redb database 2024-04-18 15:52:37 +01:00
thesimplekid
06373beff4 refactor: cdk_database 2024-04-18 15:47:40 +01:00
Yuki Kishimoto
61c80606f6 cdk: adj. code according to CODE_STYLE and remove serde_utils mod
* Remove `wallet` and `mint` features from `nuts` module
* Sort dependencies in ASC order
* Fix `check-docks.sh` script

Closes https://github.com/cashubtc/cdk/issues/88
Closes https://github.com/cashubtc/cdk/issues/87

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
2024-04-18 09:31:36 +02:00
thesimplekid
0c953fb38a chore: replace authors in cdk 2024-04-15 15:45:40 +01:00
thesimplekid
664776f122 refactor: export http client 2024-04-13 10:56:58 +01:00
thesimplekid
9e26c48fc2 refactor: client error 2024-04-12 22:22:38 +01:00
thesimplekid
324d3c028f refactor: add doc comment 2024-04-12 22:10:43 +01:00
thesimplekid
391692e332 refactor: use reqwest client
Using reqwest reduced code duplication since it can be used for both
wasm and non wasm targets.
2024-04-12 22:00:32 +01:00
thesimplekid
ce207953a1 refactor: remove mint and wallet error mods 2024-04-12 20:47:07 +01:00
thesimplekid
27f718de08 refactor: mint and wallet errors as mod files 2024-04-12 19:29:34 +01:00
thesimplekid
ef1c2fac2a refactor: mint and wallet error use transparent 2024-04-12 18:55:21 +01:00
thesimplekid
76688c35e4 refactor: use transparent error 2024-04-12 17:19:07 +01:00
thesimplekid
370a1df96a refactor: wallet and mint use nut13 feature 2024-04-12 14:03:10 +01:00