Loading
[api] Expose used_by_txs in reference memo API endpoint
Summary
- Add the list of transaction hashes that used a reference memo to the
/thorchain/memo/{asset}/{reference}API response - The
ReferenceMemotype already stored this data internally but it was not exposed through the API
Changes
- Add
used_by_txsfield toQueryReferenceMemoResponseproto message - Add
used_by_txsfield toQueryReferenceMemoByHashResponseproto message - Update OpenAPI spec with
used_by_txsarray field - Update queriers to populate the new field from stored data
- Add regression test assertions to verify the field is populated
Test plan
-
Regression test memo.yamlpasses with new assertions forused_by_txs -
Build succeeds