Skip to content

feat(regulated-asset-inspector): show SEP-8 regulated status from stellar.toml - #530

Merged
egekoca merged 2 commits into
RevenantLabs:mainfrom
Caneryy:feat/regulated-asset-inspector
Oct 21, 2026
Merged

egekoca merged 2 commits into
RevenantLabs:mainfrom
Caneryy:feat/regulated-asset-inspector

Conversation

@Caneryy

@Caneryy Caneryy commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Read an issuer home domain and the matching stellar.toml CURRENCIES entry, then show whether that asset is published as SEP-8 regulated.
  • Treat a missing regulated field as explicitly not regulated, and a failed toml fetch as toml_unreachable.
  • Show Horizon account flags separately from the declaration, and label every field as self-published.

Files

  • features/regulated-asset-inspector/

Out of scope

  • Does not call the approval server or change issuer flags.
  • Does not infer AUTH_REQUIRED or AUTH_REVOCABLE from the regulated field.

Test plan

  • npx vitest run features/regulated-asset-inspector (26 passed)
  • npm run verify:features -- regulated-asset-inspector (35 files)
  • Open /tools/regulated-asset-inspector and confirm a failed toml is not labeled not regulated

Closes #502

@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@Caneryy 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

@Caneryy

Caneryy commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the TypeScript error in __tests__/format.test.ts.

The format fixture used satisfies RegulatedAssetInspectorResult without regulatedStatus. The field is now on the fixture, and the two status cases still override it.

@egekoca
egekoca merged commit a91eeed into RevenantLabs:main Oct 21, 2026
1 check 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.

[Stellar Standards (SEPs)] SEP-8 Regulated Asset Inspector

2 participants