Open leohhhn opened 4 months ago
Additional thoughts: it would be great to unify the vm/qfuncs
query with what DevX is doing with gnoschema
, so we have a standard across the board.
I see this as a super useful quick and easy way to get the ABI of a realm, such as with this:
gnokey query vm/qfuncs --data "gno.land/r/demo/userbook" -remote https://rpc.gno.land:443 > abi.json
cc @salmad3 @ilgooz Let's have a discussion on defining the spec for this.
https://github.com/gnolang/gno/pull/2249 hey @leohhhn , i made a PR to format this query response, wdyt ?
Relates to https://github.com/gnolang/gno/issues/2301
Description
To consolidate our returns on
gnokey
queries, I propose that we make them return JSON strings. Currently, most of them return values with no wrapping, such as this:One exception is
vm/qfuncs
, which returns a partly formatted JSON string:Would be great to wrap
height
&data
properly, such as this: