Skip to content

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

@0xpatrickdev

Description

@0xpatrickdev

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)
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions