batchQuery and chainStorageWatcher support for Node.js server environment in @agoric/rpc.
Description of the Design
[ ] There are currently two references to window in the @agoric/rpc package:
window.setTimeout, window.clearTimeout
window.atob()
window.btoa() (testing only)
[ ] 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.
What is the Problem Being Solved?
batchQuery
andchainStorageWatcher
support for Node.js server environment in @agoric/rpc.Description of the Design
[ ] There are currently two references to
window
in the@agoric/rpc
package:window.setTimeout
,window.clearTimeout
window.atob()
window.btoa()
(testing only)[ ] Additionally, there are dependencies on
window.keplr
. Logic for setting up a wallet/signer should be separate frommakeInteractiveSigner.js
andwalletConnection.js
, so other wallets likeDirectSecp256k1HdWallet
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