This is in its own directory so that it's more portable. It will be copy-pasted into other dapps, but eventually live in a reusable package.
Testing
Tested manually after rewiring dapp to use the client, as well as unit tests. NOTE - The wallet connection component in agoric-sdk doesn't use this lib yet, so if you connect your wallet then you'll see a lot of unnecessary rpc requests still.
@turadg I see that you approved this already, but I just updated the PR to include migrating the dapp to use this library, removing casting as a (direct) dependency entirely. PTAL.
refs https://github.com/Agoric/agoric-sdk/issues/6870
This is in its own directory so that it's more portable. It will be copy-pasted into other dapps, but eventually live in a reusable package.
Testing
Tested manually after rewiring dapp to use the client, as well as unit tests. NOTE - The wallet connection component in agoric-sdk doesn't use this lib yet, so if you connect your wallet then you'll see a lot of unnecessary rpc requests still.