Skip to content

test: add SAC mint/burn blueprint test suite - #436

Open
yummyPancake2607 wants to merge 1 commit into
Open-audit-foundation:mainfrom
yummyPancake2607:test/sac-mint-burn
Open

test: add SAC mint/burn blueprint test suite#436
yummyPancake2607 wants to merge 1 commit into
Open-audit-foundation:mainfrom
yummyPancake2607:test/sac-mint-burn

Conversation

@yummyPancake2607

@yummyPancake2607 yummyPancake2607 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Every other blueprint in lib/translator/blueprints/ has a dedicated test file — blend-pool.test.ts, soroswap-router.test.ts, sdex-orderbook.test.ts all exist. sac-mint-burn.ts (exporting createSacMintBurnBlueprint) had zero test coverage.

closes #427

Changes:

  • Added lib/translator/tests/sac-mint-burn.test.ts with 21 tests covering:
  • Mint event translation (English, Spanish, French, Chinese)
  • Burn event translation (English, Spanish, French, Chinese)
  • Edge cases (unknown topics, empty topics, foreign contracts)
  • Blueprint factory (contract ID, name, translate results)
  • Multi-language consistency checks
    Uses realistic XDR fixtures with stellar-sdk encoders, following the same pattern as sdex-orderbook.test.ts and blend-pool.test.ts.

Verification:

npm run test -- sac-mint-burn — 21/21 passing.

Add lib/translator/__tests__/sac-mint-burn.test.ts covering:
- Mint event translation (English, Spanish, French, Chinese)
- Burn event translation (English, Spanish, French, Chinese)
- Edge cases (unknown topics, empty topics, foreign contracts)
- Blueprint factory (contract ID, name, translate results)
- Multi-language consistency checks

Uses realistic XDR fixtures with stellar-sdk encoders, following
the same pattern as sdex-orderbook.test.ts and blend-pool.test.ts.
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.

Add test coverage for the untested sac-mint-burn translation blueprint

1 participant