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

@agoric/rpc (batchQuery, chainStorageWatcher) support for node.js #47

Open 0xpatrickdev opened 11 months ago

0xpatrickdev commented 11 months ago

What is the Problem Being Solved?

batchQuery and chainStorageWatcher support for Node.js server environment in @agoric/rpc.

Description of the Design

  1. [ ] There are currently two references to window in the @agoric/rpc package:

    • window.setTimeout, window.clearTimeout
    • window.atob()
    • window.btoa() (testing only)
  2. [ ] Additionally, there are dependencies on window.keplr. Logic for setting up a wallet/signer should be separate from makeInteractiveSigner.js and walletConnection.js, so other wallets like DirectSecp256k1HdWallet can be supported.

Security Considerations

Scaling Considerations

I recognize this repository is named ui-kit, so I'm not sure it's the best place for these changes. However, the changes are so trivial that I think they make sense to land here.

Test Plan