Feature/issues transfer wallet tracer irec#436
Merged
AnnabelJoe merged 5 commits intoJun 3, 2026
Merged
Conversation
- POST /api/certificates/:id/transfer with Stellar address validation - transferCertificate() in stellar.ts using SEP-41 transfer call - Audit log entry for certificate.transfer action - TransferModal component matching RetireModal pattern - Transfer button added to certificates dashboard table - v1 redirect at /api/v1/certificates/:id/transfer
- createMockFreighter() / installMockFreighter() / uninstallMockFreighter() utilities in src/tests/mock-freighter.ts - Supports connection, signing, disconnection, requiresAccess flag - wallet.test.ts covers connect, disconnect, session restore, revoked session, missing extension, and production isolation - vitest config updated to run wallet tests in jsdom environment
- Failed mint triggers tracer-sim diagnosis via /replay endpoint - Diagnosis result stored on reading record and matches returned value - TRACER_SIM_URL unset returns TRACER_SIM_UNAVAILABLE stub gracefully - HTTP error (503), network failure (ECONNREFUSED), and timeout all return REPLAY_ERROR without throwing - Partial tracer-sim responses filled with sensible defaults - Mock tracer-sim via vi.fn() — no real service required in CI
- buildIRecXml() in src/lib/irec-xml.ts maps certificate fields to I-REC Standard v3 XML including on-chain AnchorProof extension - GET /api/certificates/:id/irec-export returns XML with Content-Disposition: attachment for direct download - v1 redirect at /api/v1/certificates/:id/irec-export - I-REC export button added to certificates dashboard table - XML escaping prevents injection via certificate/meter data
|
@jhayniffy 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! 🚀 |
| * Tests for useWallet hook using the mock Freighter wallet. | ||
| * Runs headlessly in CI — no browser extension required. | ||
| */ | ||
| import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' |
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 #329
closes #327
closes #345
closes #348