gnolang / gnonative

Develop for Gno using your app's native language
Apache License 2.0
9 stars 9 forks source link

chore: Add Render and QEval #52

Closed jefft0 closed 9 months ago

jefft0 commented 9 months ago

This PR has three commits:

  1. As we discussed, in api.go, add a general comment at the top and remove duplicated function doc comments.
  2. As we discussed, in gnoclient, change QueryAccount addr from string to crypto.Address, to be consistent with how the address is stored in other structs.
  3. In gnoclient, add methods Render and QEval . Add these to the gRPC API and use_gno.ts .

The React Native app can use these, for example:

await gno.render("gno.land/r/demo/boards", "testboard/1")

await gno.qEval("gno.land/r/demo/boards", "GetBoardIDFromName(\"testboard\")")