Skip to content

add simplified memo utilities for Hash and Return memo types#296

Merged
Solomonsolomonsolomon merged 4 commits intogear5labs:masterfrom
DokaIzk:feat/memot-types
Mar 31, 2026
Merged

add simplified memo utilities for Hash and Return memo types#296
Solomonsolomonsolomon merged 4 commits intogear5labs:masterfrom
DokaIzk:feat/memot-types

Conversation

@DokaIzk
Copy link
Copy Markdown
Contributor

@DokaIzk DokaIzk commented Mar 30, 2026

  • Add buildHashMemo() and buildReturnMemo() utilities for simplified
    memo construction from Buffer, Uint8Array, or hex strings
  • Add comprehensive validation with MemoValidationError custom class
  • Add memoToHex() for conversion to hex representation
  • Add hexToMemoBuffer() for safe hex to buffer conversion
  • Add compareMemos() for equality comparison
  • Include full TypeScript and JavaScript implementations
  • Add 50+ test cases covering edge cases and integration paths

Closes #159

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

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

@DokaIzk
Copy link
Copy Markdown
Contributor Author

DokaIzk commented Mar 30, 2026

@Solomonsolomonsolomon kindly awaiting your review

@Solomonsolomonsolomon Solomonsolomonsolomon merged commit f7cb3a8 into gear5labs:master Mar 31, 2026
2 of 3 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.

[SDK] Add Memos.fromHash helper for complex metadata

2 participants