feat(wallet): remove multi mint wallet #1582
No reviewers
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!1582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/remove-multi-mint-wallet"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing@ -0,0 +1,970 @@//! Wallet RepositoryThis could sum different units since it just takes the value of the
get_balancesBTreeMap without checking the unit. It could return a BTreeMap of <Unit, Amount>?Are these actually used, I do not see where they are?
We should remove the multiple news and instead use a builder pattern like we do in other places.
Would it be safer to not remove the wallet from the db? I think having this case of it sometimes removes from the db isn't safe and that should be explicit.
There is some inconsistency with the naming of the API in a few places we use
add_mintbut then to get the wallet we sayget_wallet. I think we should align this and it should beadd_wallet.Should we remove this and just force the caller to be explicit about if they are getting a wallet or creating one. In cdk-cli we already have an additional wrapper of a fn by the same name that does this, I think it makes more sense to be done like that.
Thanks for this nice work. Looks good to me will merge assuming ci passes.
ACK b41ad66