Coder Social home page Coder Social logo

gokfidanboy / zksync-web-era-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matter-labs/zksync-web-era-docs

1.0 1.0 0.0 112.96 MB

zkSync Era Documentation

Home Page: https://era.zksync.io/docs/dev/

License: MIT License

Shell 47.30% JavaScript 52.70%

zksync-web-era-docs's Introduction

zkSync Era 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 adopts a traditional register-based CPU architecture.

zkSync Era Docs contain up-to-date information about zkSync Era. zkSync Era has built-in EVM compatibility which makes it a unified tool for releasing EVM-compatible ZK rollups. We call it zkEVM: web3, Layer 2, scaling functionality that preserves your battle-tested code and knowledge gained after years of working with Solidity.

Build and setup

Initial setup

The frontend team chose the yarn@berry package manager, so ensure you 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

The continuous integration pipeline uses prettier and markdownlint to ensure there are no issues with your document, that spelling is correct, and there are 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, and you’re sure that it’s correct, consider adding it to 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 an SEO-friendly name, as it is included in the live URL.
  • In the docs/.vuepress/sidebar/en.ts file, add the tutorial inside this block:
{
  text: "Tutorials",
  link: "/dev/tutorials",
  children: [
        "/dev/tutorials/cross-chain-tutorial.md",
        "/dev/tutorials/custom-aa-tutorial.md",
        "/dev/tutorials/aa-daily-spend-limit.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

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

Deploying does the following:

  • Installs node modules.
  • Prepares, tests, and builds documentation.
  • Deploys everything contained in the dist folder as a 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 — current active spelling language.
  • words[] — list of correctly-spelled words.
  • dictionaries[]
"dictionaryDefinitions": [
  {
    "name": "zksync", "path": "./cspell-zksync.txt"
  }
]

zksync-web-era-docs's People

Contributors

krofax avatar uf4no avatar kailash-manasarovar avatar stanislavbreadless avatar dutterbutter avatar amelnytskyi avatar renovate[bot] avatar defigeneration avatar danijeltxfusion avatar idea404 avatar githubdoramon avatar barakshani avatar lgingerich avatar albionahoti avatar jackhamer09 avatar filiptxfusion avatar mexicanace avatar olehbairak avatar hatemosphere avatar mpopovac-txfusion avatar ly0va avatar vladbochok avatar andriidrebot avatar keriat avatar hedgar2017 avatar omahs avatar miladpiri avatar cooganb avatar anton-matterlabs avatar abdullah-txfusion avatar

Stargazers

 avatar

Watchers

 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.