Skip to content

Issue 697 mobile fee estimation - #880

Merged
ONEONUORA merged 7 commits into
Fracverse:masterfrom
Toromo7:issue-697-mobile-fee-estimation
Sep 1, 2026
Merged

Issue 697 mobile fee estimation#880
ONEONUORA merged 7 commits into
Fracverse:masterfrom
Toromo7:issue-697-mobile-fee-estimation

Conversation

@Toromo7

@Toromo7 Toromo7 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary
This PR fixes the mobile transfer confirmation flow to display the network base fee and Soroban resource fee breakdown before signing, and cleans up the local TypeScript/Jest environment issues that were blocking validation.

  1. What changed
  2. Added fee estimation logic for Stellar/Soroban transaction signing flow
  3. Parsed the base network fee and Soroban resource fees from the simulation result
  4. Displayed a clear fee breakdown in the transfer confirmation UI:
  • Network base fee
  • Soroban resource fee
  • Estimated total fee
  1. Added a regression test covering the fee summary rendering
  2. Fixed Jest setup for React Native AsyncStorage compatibility
  3. Added TypeScript deprecation suppression to silence the TS 6 warning without removing the existing path alias config

Why
The app previously did not give users a clear view of the fee composition before signing a transaction, which could lead to confusion around what is being charged. The local environment also had issues preventing reliable validation of the mobile app and TypeScript config.

Validation
Verified the targeted Jest test passes:
node .\node_modules\jest\bin\jest.js --runInBand tests/TransferConfirmationCard.test.tsx
Result: test suite passed successfully
Confirmed no editor diagnostics remain in the TypeScript config after the cleanup

Closes #697

Toromo7 and others added 7 commits June 26, 2026 13:39
… authorizations

- Add Nonce(Address) storage key for per-user nonce tracking
- Add NonceAlreadyUsed and InvalidSignature error types
- Implement get_nonce() to query current user nonce
- Implement pay_with_signature() for off-chain signed payments
  * Validates nonce matches current on-chain value
  * Increments nonce on successful execution
  * Verifies Ed25519 signature
  * Prevents replay attacks
- Add SignedPaymentAuth struct for authorization payload
- Add comprehensive test coverage for nonce behavior
- Document implementation in NONCE_IMPLEMENTATION.md

Acceptance Criteria:
✅ Store Nonce(Address) in storage
✅ Increment user nonce on successful payment execution
✅ Reject reused nonces with proper error handling
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Toromo7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @Toromo7

@ONEONUORA
ONEONUORA merged commit f312a5a into Fracverse:master Sep 1, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mobile app: Implement dynamic fee estimation display on transfer confirmation card

2 participants