Repository navigation
feat(platform-wallet)!: support DashPay shielded tips with dedicated accounts #4616
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
Closed
PastaPastaPasta
wants to merge
17
commits into
dashpay:v5.1-dev
from
PastaPastaPasta:feat/dashpay-shielded-tips
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4290e2b
feat(dashpay)!: support shielded tips with dedicated wallet accounts
PastaPastaPasta 4956dfa
fix(swift-example-app): expose shielded tip address storage
PastaPastaPasta 75e1592
fix(platform-wallet): harden shielded tip recovery and mobile error h…
PastaPastaPasta b02eb22
fix(platform-wallet): address shielded tip review findings
PastaPastaPasta 47e9e1b
Merge branch 'v4.2-dev' into feat/dashpay-shielded-tips
QuantumExplorer a637a0e
fix(platform-wallet): contain tip export panics and share the mobile …
QuantumExplorer 8010d0c
Merge branch 'v5.1-dev' into feat/dashpay-shielded-tips
PastaPastaPasta 4e070e9
fix(platform-wallet): address remaining shielded tip review threads
PastaPastaPasta 0c61806
test(platform-wallet): set integer_range_clauses in the tip resolver …
PastaPastaPasta 4e803f2
fix(wallet-storage): decode payment-only identity rewrites by their f…
PastaPastaPasta 43b7eb7
fix(kotlin-example-app): make the shielded tip screens compile
PastaPastaPasta a69b2d0
fix(swift-example-app): rebind shielded with ordinary accounts only
PastaPastaPasta f4e9f07
test(platform-wallet-ffi): cover owned DashPay profile hydration thro…
PastaPastaPasta a1c33fa
fix(platform-wallet): verify the identity index before allocating a t…
PastaPastaPasta 1e27b9f
fix(platform-wallet): refuse verified identity placement into an occu…
PastaPastaPasta 86af2c2
fix(kotlin-example-app): rebind shielded after every successful disco…
PastaPastaPasta 5b6e8d6
fix(platform-wallet): refuse adding an identity into an occupied slot
PastaPastaPasta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...nExampleApp/app/src/main/java/org/dashfoundation/example/ui/dashpay/ShieldedTipFailure.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package org.dashfoundation.example.ui.dashpay | ||
|
|
||
| import org.dashfoundation.dashsdk.errors.DashSdkError | ||
|
|
||
| /** | ||
| * Permit a fresh user review only for failures known not to have executed a tip. | ||
| * On the tip path, Rust maps selection/build/recipient-check failures to | ||
| * WalletOperation. Broadcast ambiguity maps to ShieldedSpendUnconfirmed, and | ||
| * successful post-broadcast bookkeeping is best-effort (never WalletOperation). | ||
| * Unknown exceptions, including JNI failures and cancellation, remain locked. | ||
| */ | ||
| internal fun canReviewShieldedTipAfterFailure(error: Exception): Boolean = when (error) { | ||
| is IllegalArgumentException, | ||
| is DashSdkError.InvalidParameter, | ||
| is DashSdkError.PlatformWallet.InvalidHandle, | ||
| is DashSdkError.PlatformWallet.NotFound, | ||
| is DashSdkError.PlatformWallet.SigningKeyUnavailable, | ||
| is DashSdkError.PlatformWallet.WalletOperation, | ||
| is DashSdkError.PlatformWallet.ShieldedNoRecordedAnchor, | ||
| is DashSdkError.PlatformWallet.ShieldedBroadcastFailed -> true | ||
| // ErrorInvalidParameter is a preflight-only FFI failure on this call path. | ||
| is DashSdkError.PlatformWallet.Generic -> error.nativeCode == 2 | ||
| else -> false | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.