Skip to content

feat: Soroban argument golden vectors — ABI drift guard (#60) - #169

Merged
jhayniffy merged 1 commit into
InsurNiffy:mainfrom
kelly-musk:feat/soroban-golden-vectors
Mar 27, 2026
Merged

feat: Soroban argument golden vectors — ABI drift guard (#60)#169
jhayniffy merged 1 commit into
InsurNiffy:mainfrom
kelly-musk:feat/soroban-golden-vectors

Conversation

@kelly-musk

@kelly-musk kelly-musk commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Closes #60


  • Add golden-vectors.json with exact ScVal types/encodings for initiate_policy, file_claim, vote_on_claim, generate_premium
  • Add golden-vectors.test.ts: encoding tests fail CI on drift
  • Add scripts/refresh-vectors.ts for local vector regeneration
  • Add golden-vectors CI job; fails if JSON is stale after rebuild
  • Add CONTRIBUTING.md with refresh workflow and release checklist
  • Enable resolveJsonModule in tsconfig.json for JSON import
  • Add refresh-vectors npm script to backend/package.json

No real private keys committed. Placeholder G/C addresses only.

- Add golden-vectors.json with exact ScVal types/encodings for
  initiate_policy, file_claim, vote_on_claim, generate_premium
- Add golden-vectors.test.ts: encoding tests fail CI on drift
- Add scripts/refresh-vectors.ts for local vector regeneration
- Add golden-vectors CI job; fails if JSON is stale after rebuild
- Add CONTRIBUTING.md with refresh workflow and release checklist
- Enable resolveJsonModule in tsconfig.json for JSON import
- Add refresh-vectors npm script to backend/package.json

No real private keys committed. Placeholder G/C addresses only.
@drips-wave

drips-wave Bot commented Mar 27, 2026

Copy link
Copy Markdown

@kelly-musk 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

@jhayniffy
jhayniffy merged commit c337a61 into InsurNiffy:main Mar 27, 2026
3 of 5 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.

Backend — Soroban argument golden vectors: prevent ABI drift regressions

2 participants