Skip to content

Memo-encoded structured metadata schema #140

Description

@truthixify

Extra labels: stellar, feature, interop
Tier: M (2-4 days) | Type: feature

Context. Wraith memos today are opaque bytes. Partners (Reflector, Soroswap) want a structured schema so they can attach reason strings / invoice IDs. Ship a versioned MessagePack (or similar) schema + a decode helper.

Scope.

  • Schema v1: { version, kind, data } where kind is a small enum.
  • Encoder + decoder in src/chains/stellar/memo/schema.ts.
  • Backwards compat: if memo is not schema-shaped, decode returns raw bytes.
  • Docs land via a separate docs issue.

Acceptance.

  • Schema fits Stellar memo size (32 bytes for MEMO_HASH is tight; consider MEMO_RETURN or off-memo)
  • Encode / decode round-trip test
  • Doc'd extension mechanism for new kinds

Files. src/chains/stellar/memo/schema.ts (new), test/chains/stellar/memo/schema.test.ts (new).

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is neededinteropCross-chain / interoperabilitystellarTouches Stellar / Soroban code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions