-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable uninscribed utxos retrieval, closes #5067 #5370
Conversation
WalkthroughThe recent changes bring enhancements to the wallet configuration, Collectibles layout, and Taproot balance logic. These updates enable new features, improve layout alignment, and refine UTXO filtering based on value. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@@ -18,7 +20,7 @@ export function useCurrentTaprootAccountUninscribedUtxos() { | |||
const inscriptions = query.data?.pages?.flatMap(page => page.inscriptions) ?? []; | |||
return filterUtxosWithInscriptions( | |||
inscriptions, | |||
utxos.filter(utxo => utxo.status.confirmed) | |||
utxos.filter(utxo => utxo.status.confirmed && utxo.value > RETRIEVE_UTXO_DUST_AMOUNT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personal pref, but more readable as separate filters imo
utxos.filter(utxo => utxo.status.confirmed && utxo.value > RETRIEVE_UTXO_DUST_AMOUNT) | |
utxos | |
.filter(utxo => utxo.status.confirmed) | |
.filter(utxo => utxo.value > RETRIEVE_UTXO_DUST_AMOUNT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put to sep variable also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and increased dust amount. should be 10000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- config/wallet-config.json (1 hunks)
- src/app/features/collectibles/components/collectible.layout.tsx (1 hunks)
- src/app/features/retrieve-taproot-to-native-segwit/components/retrieve-taproot-to-native-segwit.layout.tsx (1 hunks)
- src/app/query/bitcoin/balance/btc-taproot-balance.hooks.ts (2 hunks)
Additional comments not posted (5)
src/app/query/bitcoin/balance/btc-taproot-balance.hooks.ts (2)
12-12
: Addition ofRETRIEVE_UTXO_DUST_AMOUNT
constant looks good.
23-23
: The updated filtering logic inuseCurrentTaprootAccountUninscribedUtxos
enhances the function by excluding UTXOs with a value less thanRETRIEVE_UTXO_DUST_AMOUNT
.src/app/features/collectibles/components/collectible.layout.tsx (1)
26-26
: The addition ofalignItems="center"
in theFlex
component improves the visual alignment of items within theCollectiblesLayout
.src/app/features/retrieve-taproot-to-native-segwit/components/retrieve-taproot-to-native-segwit.layout.tsx (1)
54-54
: Changing themt
property tomy
in thestyled.span
component ensures consistent vertical margins.config/wallet-config.json (1)
103-103
: EnablingrecoverUninscribedTaprootUtxosFeature
in the configuration aligns with the PR objective of re-enabling BTC retrieval.
58b1bd8
to
68795d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- config/wallet-config.json (1 hunks)
- src/app/features/collectibles/components/collectible.layout.tsx (1 hunks)
- src/app/features/retrieve-taproot-to-native-segwit/components/retrieve-taproot-to-native-segwit.layout.tsx (1 hunks)
- src/app/query/bitcoin/balance/btc-taproot-balance.hooks.ts (1 hunks)
Files skipped from review as they are similar to previous changes (4)
- config/wallet-config.json
- src/app/features/collectibles/components/collectible.layout.tsx
- src/app/features/retrieve-taproot-to-native-segwit/components/retrieve-taproot-to-native-segwit.layout.tsx
- src/app/query/bitcoin/balance/btc-taproot-balance.hooks.ts
This pr re-enables btc retrieval
Summary by CodeRabbit
New Features
Improvements