Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
328 stars 206 forks source link

package up utilities for dapps #9109

Open turadg opened 7 months ago

turadg commented 7 months ago

What is the Problem Being Solved?

We have a bunch of support code in the agoric package that helps with making transactions and queries on chain. However they're not exported because they were never carefully factored or designed for longevity.

We've repeated some of that code in ui-kit, a3p and now https://github.com/Agoric/agoric-sdk/pull/9078/files/58141ac551088158552d5ff2d9805f66ba3aaa66#diff-88e9ae2b981c19291ac56e9300af03daeed1e1edee3793aecae9a377fdc5745b

Description of the Design

Package up an abstraction for transactions and querying of the chain, for use in JS code. It should also provide abstractions for smart wallet use and potentially common use cases.

It could be in the ui-kit repo but since the domains are in agoric-sdk it's probably best to keep it here. They should be pretty low level and not have to change much once published. This also allows them to be published in sync with agd and Cosmos SDK updates.

Security Considerations

Scaling Considerations

Test Plan

Upgrade Considerations

turadg commented 7 months ago

https://github.com/Agoric/agoric-sdk/pull/9044 has another example of open coding unmarshalling