Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factor higher-order client-utils kits with increasing functionality #10690

Open
turadg opened this issue Dec 12, 2024 · 1 comment
Open

factor higher-order client-utils kits with increasing functionality #10690

turadg opened this issue Dec 12, 2024 · 1 comment
Labels
enhancement New feature or request technical-debt

Comments

@turadg
Copy link
Member

turadg commented Dec 12, 2024

What is the Problem Being Solved?

We have these increasingly higher order utilities in @agoric/client-utils:

  • Vstorage
  • VstorageKit
  • SmartWalletKit

The last one includes agoricName which requires fetching them from the board, but it also requires delay which is a power not needed for fetching from agoric names.

Description of the Design

There should be an intermediate like BoardKit wrapping VstorageKit and contained in SmartWalletKit.

It should be synchronously constructible. The data will be made available either by an imperative function like load() or by maing all the data access a promise.

The constructors should make it easy to compose these kits from each other, or to make one from scratch that creates the whole chain.

Separately it would be good to abstract being able to pass in delay or setTimeout. We could have an @agoric/internal utility to handle either.

Security Considerations

Scaling Considerations

Test Plan

Upgrade Considerations

@turadg turadg added enhancement New feature or request technical-debt labels Dec 12, 2024
@dckc
Copy link
Member

dckc commented Dec 12, 2024

should be synchronously constructible.

yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request technical-debt
Projects
None yet
Development

No branches or pull requests

2 participants