Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Desired API for Block Effects #313

Closed
harrysolovay opened this issue Oct 22, 2022 · 1 comment
Closed

Desired API for Block Effects #313

harrysolovay opened this issue Oct 22, 2022 · 1 comment

Comments

@harrysolovay
Copy link
Contributor

harrysolovay commented Oct 22, 2022

Currently we have BlockRead and BlockWatch effects. Not the prettiest API imo. Moving forward, what do we want for the raw block effects?

Is the following desirable?

C.Block.from(HASH);
C.Block.latest();
C.Block.watch((stop) => (block) => { /* ... */ })
@harrysolovay
Copy link
Contributor Author

Not worth thinking about at the moment. Will tackle via #517.

@harrysolovay harrysolovay closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2023
@github-project-automation github-project-automation bot moved this to Properly Done in Capi Jan 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant