Open dckc opened 5 months ago
Parameters such as RPC addresses and LDC/API addresses are passed around as strings and then combined with ambient access to fetch. This is like passing around integers and then casting them to pointers.
fetch
IOU a bit more detail
see https://github.com/agoric-labs/ag-power-tools/tree/dc-launchpad-ui (currently 5f49c5c) and httpClient.js from endo playground
makes code easier to reason about locally
facilitates passing alternative network access, such as record / playback: test-interpose-net-access.js
What is the Problem Being Solved?
Parameters such as RPC addresses and LDC/API addresses are passed around as strings and then combined with ambient access to
fetch
. This is like passing around integers and then casting them to pointers.Description of the Design
IOU a bit more detail
see https://github.com/agoric-labs/ag-power-tools/tree/dc-launchpad-ui (currently 5f49c5c) and httpClient.js from endo playground
Security Considerations
makes code easier to reason about locally
Scaling Considerations
Test Plan
facilitates passing alternative network access, such as record / playback: test-interpose-net-access.js