Repository navigation
mock transaction - #161
Merged
Merged
mock transaction#161
Conversation
|
@Ghoost-404 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! 🚀 |
|
@Ghoost-404 is attempting to deploy a commit to the Marvel's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #7
Closes #8
Closes #9
Closes #10
Summary of Changes
Fee and Reserve Model (
lib/stellar/fees.ts&lib/stellar/units.ts):bigint), and Soroban footprint metrics.minBalance = (2 + numSubEntries + numSponsoring - numSponsored) * baseReserve; spendable = balance - minBalance - sellingLiabilities, floored at 0).DEFAULT_BASE_RESERVE = 5_000_000n.units.tsgeneralizingformatFixedto 7-decimal stroops while preserving formatUsdc behavior and test cases byte-for-byte.errors.tswith"insufficient-xlm"forop_low_reserveandtxInsufficientBalancewithout breaking USDC balance error matching.Transaction Lifecycle Runner (
lib/stellar/tx-lifecycle.ts):signAndSend()with TxLifecycle driving explicit, observable phases:building→simulating→awaiting-signature→submitting(hash available) →pending(polling with backoff) →confirmed|failed|expired.latestLedgerCloseTimeagainst transaction time bounds, avoiding client clock skew.SendTransactionResponsestatuses (PENDING,DUPLICATE,TRY_AGAIN_LATER,ERROR,txBadSeq, etc.).phasestate surviving component unmounts.Transaction Session Tracker & Toasts (
lib/stellar/tx-tracker*&components/ui/tx-toast.tsx):sessionStorage(oracledesk_pending_txs) withbigintserialized as decimal strings, automatically resuming polling upon page reload.BroadcastChannel("oracledesk-tx")for multi-tab election to avoid duplicate RPC polling.role="status"andaria-live="polite", with support for resuming premium daily pass activation (unlockDailyPass).Checkout Surfaces & Fee Preview:
Network fee ≈ X XLM · spendable Y XLMwith tooltip fallback note"assumes the network base reserve of 0.5 XLM"."Fund this account with XLM first."for unfunded accounts."You need about X more XLM to pay the network fee."disabling the Buy button when spendable XLM is insufficient.phasecopy and explorer link as soon as a hash exists.followUp: { type: "unlock-daily-pass", traceId, amountRaw }to the tracker.Real
/txRoute & Demo Screen Cleanup:?hash=<64-hex>, queryingrpcServer().getTransaction(hash), displaying confirmed/failed status, ledger, fee charged in XLM, decoded return value, and fallback to Stellar Expert.transaction-status,transaction-success,transaction-failed) with redirects to/tx.Documentation & Validation:
npm run typecheck,npm run lint, andnpm run buildall pass with 0 errors.