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

WIP: Stop bleeding the backends into user code #158

Open
RmbRT opened this issue Oct 10, 2024 · 0 comments
Open

WIP: Stop bleeding the backends into user code #158

RmbRT opened this issue Oct 10, 2024 · 0 comments

Comments

@RmbRT
Copy link
Collaborator

RmbRT commented Oct 10, 2024

  • Keep all backend template parameters entirely constrained to the internals of the SDK.
  • Session and client constructors don't need backend template parameters
  • Transaction receipts should be a uniform interface that only optionally exposes backend-specific types. It should have TX hash, block hash, block number maybe, sender, and the action that it corresponds to. All this information should be described using Erdstall types.
  • Unify L1 and L2 TX handles and receipts etc. into one common abstraction. For example session.leave() is a mix of L2 TX (exit request), waiting for phase shifts, and then sending L1 TXs. Make this as easy as possible to interface with from a user and UI perspective. Maybe have a Process or something awaitable that models transactions and phase shift waits.
  • Uniform and descriptive error types for L1 and L2 interactions.
  • […]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant