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

45930/lightnet in readme #562

Merged
merged 4 commits into from
Feb 2, 2024
Merged

45930/lightnet in readme #562

merged 4 commits into from
Feb 2, 2024

Conversation

45930
Copy link
Contributor

@45930 45930 commented Jan 24, 2024

Adding info in the readme about how to run the lightnet.

@shimkiv
Copy link
Member

shimkiv commented Jan 24, 2024

@45930 thanks for PR.
FYI we have another WIP PR that will provide documentation for the "lightnet": MinaProtocol/docs2#780
Also o1js repo has almost the same docs: https://github.com/o1-labs/o1js/blob/main/README-dev.md#test-zkapps-against-lightnet-network
So i'm not sure if we need this PR to be merged.

@45930
Copy link
Contributor Author

45930 commented Jan 24, 2024

You can close this PR, but I'd highly recommend documenting usage of the lightnet in zkapp-cli, or linking to a more robust documentation hosted elsewhere. Why would I look in the o1js dev readme to learn how to use the zkapp-cli?

@shimkiv
Copy link
Member

shimkiv commented Jan 24, 2024

You can close this PR, but I'd highly recommend documenting usage of the lightnet in zkapp-cli, or linking to a more robust documentation hosted elsewhere. Why would I look in the o1js dev readme to learn how to use the zkapp-cli?

Once mentioned documentation will be published the zkapp-cli also will be updated with links #519

Copy link
Contributor

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

I think this is valuable either way! We also document zk deploy on the README, why not lightnet?

README.md Outdated
const feePayerAccount = feePayerPrivateKey.toPublicKey();

// Fund the fee payer
Mina.faucet(feePayerAccount);
Copy link
Member

Choose a reason for hiding this comment

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

This is redundant in case of lightnet.

README.md Outdated

### Block Explorer

If you require a block explorer, you can use [this lightweight one](https://github.com/o1-labs/mina-lightweight-explorer) alongside the lightnet.
Copy link
Member

Choose a reason for hiding this comment

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

In context of zkapp-cli I'd use zk lightnet explorer.

@shimkiv
Copy link
Member

shimkiv commented Jan 24, 2024

I don't mind at all but

I think this is valuable either way! We also document zk deploy on the README, why not lightnet?

Because this PR adds some description about certain sub-commands and APIs. It does not describes what the lightnet is and what other sub-commands are used for. At the same time adds yet another item for maintenance in case of future changes.
I'd prefer this to also be reviewed by @barriebyron to keep it consistent across different repos.

@shimkiv shimkiv requested a review from barriebyron January 24, 2024 15:29
@45930
Copy link
Contributor Author

45930 commented Jan 24, 2024

@shimkiv I agree that Barrie's docs are phenomenal and the existing docs in o1js readme are better than these proposed changes. I could edit this PR to just copy the o1js docs if you want, with the goal of replacing that section entirely with a link to the full docs after MinaProtocol/docs2#780 is merged.

At the moment this feature is totally undocumented in a zkapp-dev-facing location (o1js doc is for o1 devs, not o1js consumers). But we are still using it. A search in discord will reveal many recommendations to "run zk lightnet start". I only meant to add some context to the readme here, since I was unaware of the other documentation efforts.

@barriebyron
Copy link
Contributor

@shimkiv I agree that Barrie's docs are phenomenal and the existing docs in o1js readme are better than these proposed changes. I could edit this PR to just copy the o1js docs if you want, with the goal of replacing that section entirely with a link to the full docs after o1-labs/docs2#780 is merged.

At the moment this feature is totally undocumented in a zkapp-dev-facing location (o1js doc is for o1 devs, not o1js consumers). But we are still using it. A search in discord will reveal many recommendations to "run zk lightnet start". I only meant to add some context to the readme here, since I was unaware of the other documentation efforts.

@45930 Thanks for taking the incentive to help our devs discover and use Lightnet. We appreciate you!

I circled in with our product manager. The strategy is to have the docs serve as the canonical resource, so the most important thing here is the description and link to the doc.

We agree, @shimkiv , that we do not want to duplicate technical information that requires maintenance. Please can you use GitHub suggestions to remove the out-of-scope lines?

I've added a Lightnet description, the basic start command, the explorer command, and links to the Lightnet doc (see the preview at https://docs2-git-lightnet-minadocs.vercel.app/zkapps/testing-zkapps-lightnet#lightweight-mina-explorer live doc after PR is approved and merged).

@shimkiv
Copy link
Member

shimkiv commented Jan 26, 2024

Copy link
Contributor

@barriebyron barriebyron left a comment

Choose a reason for hiding this comment

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

thanks for this PR @45930

Now that Lightnet docs are published, let's put the main command and the explorer and then maintain the details in the doc

Copy link
Contributor

@barriebyron barriebyron left a comment

Choose a reason for hiding this comment

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

Great idea @45930 thanks Coby! I went ahead and made product-approved updates to your useful PR

Copy link
Member

@shimkiv shimkiv left a comment

Choose a reason for hiding this comment

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

LGTM with couple of comments

README.md Show resolved Hide resolved
Before you test with a live network, use Lightnet to test your zkApp locally on an accurate representation of a Mina blockchain.

```sh
zk lightnet
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
zk lightnet
zk lightnet --help

Copy link
Contributor

Choose a reason for hiding this comment

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

got it now!

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry to miss this, I fixed in #572

Thanks @shimkiv

@barriebyron barriebyron merged commit d1c2be5 into o1-labs:main Feb 2, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

4 participants