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

HF doc audit for o1js docs: Recursion, Smart Contracts #841

Merged
merged 8 commits into from
Feb 15, 2024

Conversation

barriebyron
Copy link
Contributor

@barriebyron barriebyron commented Feb 13, 2024

This PR continues work for the Audit non-tutorial zkApps docs before HF epic:

The technical review requires verifying the code snippets in each doc and the code in the examples linked from these pages. Thanks @jackryanservia for teaching me how to run the code. Related PR #845

@barriebyron barriebyron added docs Improvements or additions to documentation zkApps Focused zkApps content hard fork Required updates for hard fork and zkApps on Mainnet labels Feb 13, 2024
@barriebyron barriebyron self-assigned this Feb 13, 2024
Copy link

vercel bot commented Feb 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2024 3:19pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
07-oracles ⬜️ Ignored (Inspect) Visit Preview Feb 15, 2024 3:19pm

@barriebyron barriebyron marked this pull request as ready for review February 13, 2024 19:35
@barriebyron barriebyron requested a review from a team as a code owner February 13, 2024 19:35
@@ -166,7 +131,7 @@ As a zkApp developer, if you add this method to your smart contract, you are say

## Reading state

Often, we also want to _read_ state – check out this example:
This example _reads_ state:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to provide a reason to read state? (the often statement can be enhanced)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe leave it as is until we start getting questions about this?

Copy link
Contributor

@iregina iregina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments here!

docs/zkapps/o1js/recursion.mdx Outdated Show resolved Hide resolved
docs/zkapps/o1js/recursion.mdx Show resolved Hide resolved
docs/zkapps/o1js/smart-contracts.md Outdated Show resolved Hide resolved
docs/zkapps/o1js/smart-contracts.md Outdated Show resolved Hide resolved
docs/zkapps/o1js/smart-contracts.md Outdated Show resolved Hide resolved
docs/zkapps/o1js/smart-contracts.md Show resolved Hide resolved
docs/zkapps/o1js/smart-contracts.md Outdated Show resolved Hide resolved
docs/zkapps/o1js/smart-contracts.md Outdated Show resolved Hide resolved
:::

In o1js, you can use `ZkProgram()` to define the steps of a recursive program. Just like `SmartContract()` methods, `ZkProgram()` methods have any number of methods and execute off-chain.
In o1js, you can use `ZkProgram()` to define the steps of a recursive program. Like `SmartContract()` methods, `ZkProgram()` methods have any number of methods and execute off-chain.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitschabaude wdyt about just omitting mention of a fixed limit of methods?

Copy link
Contributor

@iregina iregina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@barriebyron barriebyron merged commit 7bdf675 into main Feb 15, 2024
4 checks passed
@barriebyron barriebyron deleted the hf4-doc-audit branch February 15, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation hard fork Required updates for hard fork and zkApps on Mainnet zkApps Focused zkApps content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants