Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

Update deprecated vstorage queries #55

Closed samsiegart closed 9 months ago

samsiegart commented 9 months ago

refs: https://github.com/Agoric/ui-kit/issues/53

For the chain storage watcher, no longer use the deprecated RPC method to query vstorage. Instead, use the JSON API. There's a lot of ways to handle the query logic, but for now this just keeps the same internal logic and makes a shotgun of requests instead of a batch query. Bandwidth consumption seems roughly similar after increasing the polling period a bit, and the increased request count should have minimal impact with connection coalescing.

Also, updates the wallet connection component because it was relying on the watcher having an RPC node.

Updated unit tests and validated with https://github.com/Agoric/dapp-inter/pull/209 locally using yarn link