tari-project / tari-dan

BSD 3-Clause "New" or "Revised" License
5 stars 14 forks source link

feat(indexer): new JRPC method to list substates #1049

Closed mrnaveira closed 1 month ago

mrnaveira commented 1 month ago

Description

Motivation and Context

On https://github.com/tari-project/tari-dan/pull/1043 we refactored the Indexer to automatically store all substates related to events. This PR follows on that work and adds a new JRPC method list_substates that allows to fetch and filter all the substates stored in the Indexer database. It also adds some metadata (template_address, module_name, timestamp) to substates.

The new method JRPC method list_substates has the following optional parameters:

How Has This Been Tested?

Manually by:

What process can a PR reviewer use to test or verify this change?

See previous section

Breaking Changes

github-actions[bot] commented 1 month ago

Test Results (CI)

538 tests  +4   538 :white_check_mark: +4   1h 49m 7s :stopwatch: + 6m 47s  64 suites ±0     0 :zzz: ±0    2 files   ±0     0 :x: ±0 

Results for commit c185e76a. ± Comparison against base commit ba41514f.

:recycle: This comment has been updated with latest results.

sdbondi commented 1 month ago

LGTM - looks like a graphQL test is missing the timestamp field or it should be optional