Giter Site home page Giter Site logo

o1-labs / docs2 Goto Github PK

View Code? Open in Web Editor NEW
74.0 20.0 110.0 42.25 MB

Docs website for the Mina Protocol.

Home Page: https://docs.minaprotocol.com

JavaScript 55.34% CSS 0.55% TypeScript 22.90% SCSS 21.21%
blockchain cryptocurrency mina zero-knowledge zk zkapps zkp

docs2's People

Contributors

amc-ie avatar barriebyron avatar bkase avatar deepthiskumar avatar dkijania avatar drea-rodriguez avatar duncand0nuts avatar emberian avatar es92 avatar garwalsh avatar halsaphi avatar iregina avatar jackryanservia avatar jasongitmail avatar kadirchan avatar kaozenn avatar kogeletey avatar lucidsamuel avatar luffysama-dev avatar martinminkov avatar mitschabaude avatar nicc avatar omahs avatar qwadratic avatar rjdellecese avatar satyambnsal avatar shimkiv avatar trivo25 avatar vfrsilva avatar ymekuria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs2's Issues

Document SnarkyJS permissions

And document use cases:

  • I want to prevent tokens from being spent by __, etc
  • who can upgrade a smart contract
  • how to make it non-upgradeable

Customize "copy text" JS snippet to remove line numbers and ellipsis

See the Hello World tutorial. Some text snippets contain line numbers or ellipsis, to help readers

...
10
11
12
13
14
15
...

This helps when viewing the tutorial vs the final version that is linked to on Github, but makes a mess for users who copy the code. If we have the ability to customize this JS code, we could use a regex for the start of the line to remove these.

Missing GraphQL schema link

Description

The old docs had a page that displayed the graphql schema. The new docs are missing this page, we should re-add this.

Describe how snarkyjs code creates constraints while executed

The dominant paradigm in today's zk tooling is that some user code is compiled to a zk circuit. SnarkyJS, however, works differently: The user-written JS is executed to create a circuit, not compiled.

This difference creates a lot of misconceptions about snarkyjs, for users coming from other zk ecosystems or from higher-level zk material, so we should call it out in the docs to prevent these misconceptions early on.

Fix flash of "Not found" when directly navigating to a URL

Steps to reproduce:

  1. Open a new browser
  2. Visit a URL such as https://docs.minaprotocol.com/zkapps/tutorials/hello-world A flash of "Not Found" will appear, before the desired content loads.

It's most likely due to client side routing, but weird that it is happening at all given it's a static site. If needed, we could also consider moving the URL redirects out of the docusaurus config and into the vercel config, which should avoid it because those occur before the request reaches the framework.

Document how to use zkApps with create-react-app

Quoting a great write-up shared by from Gordon Freeman on discord:

  1. npx create-react-app --template typescript

  2. npm run eject

  3. add the following line to the config/webpack.config.json in the return statement
    experiments: { topLevelAwait: true },
    (on my setup it is before the line target: ['browserslist'],)

  4. go to your zkapp project and type: npm link

  5. go to your react app and type: npm link
    5.1. make sure that the name matches the name in your zkapp package.json
    5.2 if there is a type stuff error during import use this // @ts-ignore right before the import statement in your react app
    // @ts-ignore
    import { Multisignature } from 'zkapp-multisign'
    https://stackoverflow.com/questions/64732623/react-typescript-cannot-find-module-or-its-corresponding-type-declaration

  6. if there is an import error you might have to set the file extension of your zkapp in
    /build/src/index.js manually (like this: import { Multisignature } from './Multisignature.js';) -- .js is the important part
    6.1 Don't forget to add this file extension after every build of your zkapp

Explain setting file permission on Windows when using Docker to set up a node.

Hello,

A requirement to run a node (and verify the key pair) is that the following permissions are set. The following command is provided on the Connect to Network page, under the Docker section. (The commands are also used on the key pair generation page.)

chmod 700 ~/keys
chmod 600 ~/keys/my-wallet

Windows users can't normally run these commands, and that may pose a problem if the user decides to share a windows folder containing the keys to docker using the --bind/--volume commands. The user may face an issue where the programs throw an error that the permissions are incorrectly set.

The suggestion is to add a warning block in the docs to Windows users, informing them to use Windows Subsystem for Linux (WSL) to perform the permission changes. Modern Docker makes use of WSL, and it is assumed that it's enabled on the Windows machine using Docker.

Here is a short guide showing how to perform these steps from a windows terminal. In my case, using Powershell, but it's assumed the command line (CMD) works as well.

  1. Open Powershell/CMD in the directory where the keys folder is located.
  2. Type wsl -d docker-desktop to open Windows Subsystem for Linux with the docker-desktop distribution (It should be available since you installed docker). You are now in a linux environment, and can run the above commands, however, some modifications need to be done.
  3. Since the active directory is the folder with the files, you can drop the ~, and you need to make sure that you only use forward / slashes. The process will look something like the following. If no error message appears, the permission change completed successfully.
PS C:\CryptoWallet> wsl docker-desktop
Desktop-name:/tmp/docker-desktop-root/mnt/host/c/CryptoWallet# chmod 700 keys
Desktop-name:/tmp/docker-desktop-root/mnt/host/c/CryptoWallet# chmod 600 keys/my-wallet

This should allow users to continue as normal with the installation and use of the mina node software.

Fix Google Analytics integration

It seems like the current plugin used to integrate Google Analytics @docusaurus/plugin-google-gtag, is not working correctly. To fix this, we should just insert the markup that Google Analytics looks for directly in the head and body tag manually.

Add documentation on "commutative state" (CRDT state machine)

  • People think state is hard to deal with in a world with off-chain execution
    • Implement "Sequence events"
    • Document/Tutorial around using "commutative state" (CRDT state machine)
    • Create thorough documentation acknowledging that this is a complicated thing that you need to think about
    • Better document preconditions

Add Hotjar integration

We would like to have better tracking of user behavior while using the docs. Hotjar will be the chosen tool to enable this feature.

Fix email form in the footer to correctly submit

In the footer, we have an email submission for that lets users sign up for updates. Currently, this form does not do anything when a user submits their email form.

We need to add some behavior to submit the email to an endpoint for this flow to be finished.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.