-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update and improve smart rollup tutorial #118
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ca5ea35
to
ce61aa0
Compare
@NicNomadic @emturner @beatalipska I think this is ready to go, so please add your review. I've got a branch with changes to deploy a contract and use it to send messages to the rollup, but I will hold that for a future PR because we may want to change the kernel to use strings instead of bytes. |
I don't have time (and enough expertise) to do a full review, but I'm satisfied with the few changes that I asked. |
Co-authored-by: Emma Turner <[email protected]>
Co-authored-by: Emma Turner <[email protected]>
Co-authored-by: Emma Turner <[email protected]>
@emturner Thanks, I've pulled in your suggestions. |
octez-smart-rollup-wasm-debugger \ | ||
--kernel target/wasm32-unknown-unknown/debug/hello_world_kernel.wasm \ | ||
--inputs empty_input.json | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an error appeared when I try this command:
/bin/sh: step: not found
~/hello-world-kernel $ octez-smart-rollup-wasm-debugger \
--kernel target/wasm32-unknown-unknown/debug/hello_world_kernel.wasm
--inputs empty_input.json
Error
Wrong value for command line option --kernel.
target/wasm32-unknown-unknown/debug/hello_world_kernel.wasm is not a valid file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get that error when the .wasm file is not found. Are you sure you are in the hello_world_kernel folder and the path to the wasm file is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 beautiful, great job, Tim!
Here's an update to the smart rollup tutorial.
Preview:
https://docs-staging-git-feat-smart-rollup-tutorial-trili-tech.vercel.app/tutorials/smart-rollups/
Major changes:
Possible todos remaining:
Update: I've investigated sending an outbox message. We can send the message by deploying a contract in the sandbox and adding a function in the kernel to send a string as a call to that contract. That adds the message to the outbox. However, it does not get run automatically. The process for executing the messages in the outbox is involved. Maybe we can expand the tutorial or provide follow-up modules later to cover this part. I think it deals with this:
https://tezos.gitlab.io/shell/smart_rollup_node.html?highlight=outbox#triggering-the-execution-of-an-outbox-message