rchain-community / rchat-fork

Apache License 2.0
0 stars 0 forks source link

iddb read-only facet #9

Open dckc opened 4 years ago

dckc commented 4 years ago

Of course anyone can inspect the store from outside the chain, but that's kinda awkward.

The iddb.rho contract should provide a read-only facet so that members etc. can query it from rholang, e.g. in exploratory deploys.

dckc commented 4 years ago

the tables method works but not keys nor select.

It's acting like INSERT isn't working.

I'm stumped. https://discord.com/channels/375365542359465989/717821191728922684/733848517633900554

dckc commented 4 years ago

kinda hard to tally votes (#35) without this.

dckc commented 4 years ago

Debugging tools for rholang are sufficiently painful that I spent some time on back-porting iddb.rho to .js and enhancing js2rho to handle it. I'm not there yet, but... progress:

https://github.com/rchain-community/js2rho/blob/notary/examples/iddb.js https://github.com/rchain-community/js2rho/commit/3bc9dc10bbc13c14091472ac875299b96d5282fa