-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support agoric follow -o jsonlines
style vstorage browsing in the agd api
#7581
Comments
Probably related: #5968 |
@gibson042 do you have details on the format you aim to produce? Is this design space any different / smaller than endojs/endo#1478 ? |
The primary consumers of this interface will be CLI and shell scripts, and its nature suggests (if not requires) opinionated lossy transformation of source data (answering your last question in the affirmative—lossiness differentiates the design space). But different consumers will have different needs, and the interface also needs configurability via some kind of request parameters to control each kind of JSON-incompatible data (slot/bigint/symbol/undefined/etc.) and also for how to represent the sequence of structured items (JSON Lines/JSON array/CSV/etc. at the top level, deep JSON/flat JSON/etc. at the record level). I'll consider the issue resolved when the initial/primary use case (metrics consumption) is satisfied and the path to supporting others with different rendering options is clear, even if the first pass doesn't actually support them yet. |
Well, this has become quite a journey... putting aside the other issues discovered during this work and focusing on the specific desire here, it seems to be the case that returning arbitrary HTTP content is not supported—everything is at minimum wrapped in JSON-RPC like What we can do is translate the passable/capdata encodings, so that will be the focus from this point. |
We might also want to request more flexibility from CometBFT and/or cosmos-sdk, but that is obviously out of scope for the short term. |
Proposed configurationTop-level format
StreamCell item(subject to compatibility with top-level format)
Bigint value
Remotable value
Other JSON-incompatible value
|
To assist with metrics processing on all vstorage nodes, implement an alternative route for vstorage to allow for post-processing of cap-encoded data.
E.g. today using
agoric follow -o jsonlines
expected future
https://devnet.api.agoric.net/agoric/custom/vstorage/data... plus post/query params for the vstorage path, to return json in the encoded value response similar to above
The text was updated successfully, but these errors were encountered: