feat(dashboard/yield): add audit log list + Freighter wallet integrat… - #669
Merged
ONEONUORA merged 2 commits intoJul 28, 2026
Conversation
…ion (Fracverse#597, Fracverse#598) Issue Fracverse#598 — Detailed ledger audit logs for yield vaults: - Display all vault events (deposit, withdraw, yield_accrual, config) with full timestamp, address, tx hash, block height and network fee - Summary stats bar: total events, deposit volume, withdrawal volume, yield accrued - Search filtering across tx hash, address, action, and block height - Action-type dropdown filter (deposit / withdraw / yield_accrual / config) - Date-range filters (from / to) with clear-all shortcut - Sortable columns (timestamp, address, action, volume) - Expandable rows showing full addresses and complete tx hashes - Paginated results (6 per page) with prev/next + numbered controls Issue Fracverse#597 — Freighter wallet integration on yield admin panel: - New dashboard/lib/freighter.ts helper module: detectFreighter(), connectFreighter(), signWithFreighter(), truncateKey() - Auto-detect wallet on mount; display live WalletBadge in page header - Install prompt + external link when extension is not found - Connect button triggers requestAccess() and updates wallet state - Connected address displayed in full, auto-filled into Admin Address field - Signing flow gated behind wallet connection with clear error messages - signAndSubmit() uses signWithFreighter() from new helper instead of inline dynamic import
|
@Ceejaytech25 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! 🚀 |
Contributor
Author
|
@ONEONUORA , pls review PR |
ONEONUORA
approved these changes
Jul 28, 2026
ONEONUORA
left a comment
Contributor
There was a problem hiding this comment.
Great job @Ceejaytech25
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.
Summary
Implements two related issues on the Yield Vault admin panel in a single branch:
Changes
dashboard/lib/freighter.ts(new file)A dedicated helper module for
@stellar/freighter-apibrowser wallet workflows:detectFreighter()— detects extension installation, connection status, active public key, and network on mount; SSR-safe (catches import failures gracefully)connectFreighter()— callsrequestAccess()and returns updated wallet statesignWithFreighter(xdr, networkPassphrase)— wrapssignTransaction()and normalises the error surfacetruncateKey(key, head, tail)— utility to shorten Stellar public keys for display (e.g.GABCD…WXYZ)FreighterWalletStateinterface +DEFAULT_WALLET_STATEconstant for predictable initial UI statedashboard/app/dashboard/yield/page.tsx(modified)Freighter Wallet Integration (#597)
detectFreighter(); no manual pollingWalletBadgecomponent rendered in the page header showing one of three states:freighter.appconnectFreighter()with loading spinnersignAndSubmitusessignWithFreighter()from the new helper; clear, user-facing error messages for missing extension and disconnected statesAudit Log List (#598)
txHash,address,action, andblockHeightHH:mm:ssfor full precisionYieldTxtype extended withaddress,blockHeight, andfeefields; action type updated to includeyield_accrualFiles Changed
dashboard/lib/freighter.tsdashboard/app/dashboard/yield/page.tsxAcceptance Criteria
@stellar/freighter-apipackage implementationsNotes
MOCK_TXS). Replace with a real API call to/admin/vault/audit(or equivalent) once the endpoint is available — the filter/sort/pagination logic is fully data-source agnostic.btoa(JSON.stringify({...}))) until the backend provides the actual unsigned transaction envelope forset_vault_params.Test SDF Network ; September 2015); updateNETWORK_PASSPHRASEconstant for Mainnet.Closes #597
Closes #598
Closes #596
Closes #594