Giter Club home page Giter Club logo

zksync-web-v2-docs's Introduction

zkSync v2.0 Documentation

GitHub release (latest SemVer) GitHub license GitHub license Follow us!

zkEVM

zkEVM is a virtual machine that executes smart contracts in a way that is compatible with zero-knowledge-proof computation. Our zkEVM keeps EVM semantics, but is also ZK-friendly and takes on traditional CPU architectures.

Constantly updated, zkSync: Docs for 2.0 offers the most complete knowledge about the upcoming zkSync 2.0. zkSync 2 release has built-in EVM compatibility which makes it a single key to release EVM-compatible ZK rollup. We call it zkEVM: long-awaited way to preserve the battle-tested code and knowledge gained after years of working with Solidity scaling it with Layer 2.

Build and setup

Initial setup

The Frontend team chose the yarn@berry packager, so don't forget to install node version LTS@14 after configuring yarn

# configure yarn version: berry or specifically 3.1.1.
$ yarn set version berry

Main scripts

# install dependencies
$ yarn add

# serve with hot reload at localhost:8080
$ yarn docs:dev

# static generation to dist
$ yarn docs:build

Development

CI pipeline will check that the files are formatted according to prettier, markdownlint founds no issues in document and spelling is correct. Also, there should be no dead links.

You can check it locally as follows:

# check dead links
$ yarn lint:dead

# check spelling
$ yarn lint:spell

# check with markdownlint
$ yarn lint:mdl

# check with prettier
$ yarn lint:fmt

# fix with markdownlint
$ yarn fix:mdl

# fix with prettier
$ yarn fix:fmt

# run all checks
$ yarn ci

# run all fixes
$ yarn ci:fix

# build for production
$ yarn ci:build

If lint:spell doesn't recognize a word but you're sure that it's correct, consider adding it to the cspell-zksync.txt.

Contributions

Adding new tutorials

To add a new tutorial:

  • Fork the repository and create a new branch locally to add your changes.
  • Add the tutorial markdown file inside the docs/dev/tutorials folder.
  • Give the file with a SEO-friendly name as it'll be part of the URL.
  • In the docs/.vuepress/config.js file, add the tutorial inside this block:
{
title: "Tutorials",
path: "/dev/tutorials",
collapsable: false,
children: [
  "/dev/tutorials/cross-chain-tutorial.md",
  "/dev/tutorials/custom-aa-tutorial.md",
  "/dev/tutorials/custom-paymaster-tutorial.md"],
  // ADD YOUR FILE HERE
},
  • If your tutorial contains images, make sure to compress them using https://squoosh.app/ before adding them to the docs/assets/images folder.
  • Finally, create a PR.

Deployment

main branch is automatically deployed to https://console.firebase.google.com/u/0/project/aqwzx-zksync-v2-docs

Deploying altogether

will do:

  • install node modules;
  • prepare, test and build documentation;
  • afterwards all contained into the dist folder will be deployed in form of the static website
yarn zk-ci-prepare
yarn firebase deploy

Extra documentation

cSpell

Configuration in .cSpell.json:

  • version — version of the setting file, always 0.1
  • language — language - current active spelling language
  • words[] — words - list of words to be always considered correct
  • dictionaries[]
"dictionaryDefinitions": [
  {
    "name": "zksync", "path": "./cspell-zksync.txt"
  }
]

zksync-web-v2-docs's People

Contributors

krofax avatar stanislavbreadless avatar uf4no avatar defigeneration avatar barakshani avatar lgingerich avatar ly0va avatar keriat avatar andriidrebot avatar anastasiiavashchuk avatar har00ga avatar mpopovac-txfusion avatar mpavlovic-txfusion avatar nicobevilacqua avatar romanbrodetski avatar semantic-release-bot avatar perekopskiy avatar omahs avatar bxpana avatar jaywelsh avatar hatemosphere avatar popzxc avatar filiptxfusion avatar porco-rosso-j avatar pcheremu avatar levonsargsyandev avatar frosh-li avatar ermyas avatar dozyio avatar botdad avatar

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.