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

type safe UI worker interfaces #1816

Open
Trivo25 opened this issue Sep 9, 2024 · 2 comments
Open

type safe UI worker interfaces #1816

Trivo25 opened this issue Sep 9, 2024 · 2 comments
Assignees

Comments

@Trivo25
Copy link
Member

Trivo25 commented Sep 9, 2024

make zkapp workers (UI) type safe, prevent nasty bugs when sending data across the UI

allowing to pass native o1js types directly, type-safety on client side code, 'type-safety' when declaring zkappWorkerClient <-> zkappWorker interactions

see https://docs.minaprotocol.com/zkapps/tutorials/zkapp-ui-with-react

example https://github.com/KarolDevLtd/Sliced.club/blob/dev/client/src/pages/zkappWorker.ts

@mitschabaude
Copy link
Member

or we just get rid of the need to run your own worker 😅

@ymekuria
Copy link
Contributor

ymekuria commented Sep 9, 2024

I agree with @mitschabaude here. I was always conflicted about adding examples of UIs with web workers as the recommended way of building UIs with o1js. In my opinion, web workers were always a temporary solution.

@ymekuria ymekuria self-assigned this Sep 17, 2024
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

3 participants