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

Fix Tutorial 6 #568

Merged
merged 20 commits into from
Sep 4, 2023
Merged

Fix Tutorial 6 #568

merged 20 commits into from
Sep 4, 2023

Conversation

MartinMinkov
Copy link
Contributor

@MartinMinkov MartinMinkov commented Aug 24, 2023

Description

This PR fixes the tutorial 6-bitrot. The following changes were made in this PR:

  1. Move the npm package experimental-offchain-zkapp-storage to experimental-zkapp-offchain-storage which is now moved to the docs repo to live beside the tutorial 6. This gives us better maintainability as these projects are now colocated and much easier to find.

  2. Refactor the npm package to be used with the newest version of SnarkyJS. Some other additional refactors to the project were made.

  3. Update the docs content for tutorial 6 to match the newly created npm package

  4. Update the tutorial code (both contracts and UI)

Note
The links in the updated docs are expected to 404, since the new npm package has not been added to the repo yet.

@vercel
Copy link

vercel bot commented Aug 24, 2023

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 Sep 4, 2023 10:14pm

….0 to 0.12.1 for compatibility improvements

refactor(package.json): rename experimental-zkapp-offchain-storage dependency to experimental-offchain-zkapp-storage and downgrade version from 0.2.0 to 0.1.0 due to package renaming and versioning changes
- refactor: change import paths from 'experimental-zkapp-offchain-storage' to 'experimental-offchain-zkapp-storage' for better naming consistency
- refactor: replace 'Field.zero' with 'Field(0)' for better readability
- refactor: replace 'assertGt' with 'assertGreaterThan' for better readability
- refactor: replace 'setPermissions' with 'account.permissions.set' for better readability
- refactor: remove unnecessary 'SignedMessageBoard.test.ts' file
- refactor: clean up unnecessary imports and await calls
- refactor: update transaction signing and sending process for better readability
- refactor: update 'loopUntilAccountExists' and 'makeAndSendTransaction' functions for better readability
- refactor: update 'zkAppNeedsInitialization' function for better readability

These changes were made to improve the readability and maintainability of the code.
…contract

feat(main.ts): add console log message after compiling smart contract for better user feedback
…es, build, and dist directories for better project cleanliness
…ide more project information and improve project visibility on npm
…nks to reflect recent changes

feat(experimental-offchain-zkapp-storage): bump version to 0.1.1 to reflect changes in the package
@MartinMinkov MartinMinkov marked this pull request as ready for review August 25, 2023 20:44
@MartinMinkov MartinMinkov requested a review from a team as a code owner August 25, 2023 20:44
Copy link
Contributor

@ymekuria ymekuria left a comment

Choose a reason for hiding this comment

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

Nice work @MartinMinkov! Thank you for taking this on!! I left some comments. I cloned the repo and ran the project and UI. I didn't leave comments on the UI because I saw you were going to update it.

@barriebyron
Copy link
Contributor

thank you @MartinMinkov ! Ongoing editorial content improvements are happening in #557 so I'll want to reconcile all of the goodness here into that work

…hanges

feat(package.json): add clean script to remove build files and database.json for a clean start
feat(package.json): add prepublishOnly script to ensure clean build before publishing
…w build command and file path

fix(mina-setup.ts): correct the error message to match the updated usage instructions for better user guidance
Copy link
Contributor

@ymekuria ymekuria left a comment

Choose a reason for hiding this comment

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

This looks great Martin! I cloned the repo and ran the contracts, server, and UI. I left some UI suggestions, but I will leave it up to you if you want to implement them or not.

barriebyron added a commit that referenced this pull request Sep 4, 2023
…build artifacts

feat(GradientBG.js): add new GradientBG component for dynamic background gradients
feat(index.page.tsx): integrate GradientBG component into main page for enhanced UI
style(Home.module.css): update styles for better UI/UX and responsive design
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.

3 participants