Coder Social home page Coder Social logo

brunny-eth / aztec-packages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aztecprotocol/aztec-packages

0.0 0.0 0.0 260.65 MB

License: Apache License 2.0

Shell 1.83% JavaScript 0.52% C++ 77.86% Python 0.16% Perl 0.26% C 1.32% Rust 2.24% TypeScript 14.28% CSS 0.03% Nix 0.03% Makefile 0.05% BitBake 0.01% HTML 0.17% CMake 0.69% HCL 0.04% Jupyter Notebook 0.05% Dockerfile 0.08% Roff 0.33% SCSS 0.06% WebAssembly 0.01%

aztec-packages's Introduction

Aztec Monorepo

All the packages that make up Aztec.

  • circuits: C++ code for circuits and cryptographic functions
  • l1-contracts: Solidity code for the Ethereum contracts that process rollups
  • yarn-project: Typescript code for client and backend
  • docs: Documentation source for the docs site

Popular packages

  • Aztec.nr: A Noir framework for smart contracts on Aztec.
  • Aztec Sandbox: A package for setting up a local dev net, including a local Ethereum network, deployed rollup contracts and Aztec execution environment.
  • Aztec.js: A tool for interacting with the Aztec network. It communicates via the Private Execution Environment (PXE).
  • Aztec Boxes: A minimal framework for building full stack applications for Aztec (using React).
  • Example contracts: Example contracts for the Aztec network, written in Noir.
  • End to end tests: Integration tests writted in Typescript--a good reference for how to use the packages for specific tasks.

Issues Board

All issues being worked on are tracked on the Aztec Github Project. For a higher-level roadmap, check the milestones overview section of our docs.

Development Setup

Run bootstrap.sh in the project root to set up your environment. This will update git submodules, download ignition transcripts, build all C++ circuits code, install Foundry, compile Solidity contracts, install the current node version via nvm, and build all typescript packages.

To build the C++ code, follow the instructions in the circuits subdirectory, which contains all of the ZK circuit logic for Aztec. Note that "barretenberg", Aztec's underlying cryptographic library, can be found inside the circuits subdirectory as well and is automatically built as a side effect of building the circuits.

To build Typescript code, make sure to have nvm (node version manager) installed.

To build noir code, make sure that you are using the version from yarn-project/noir-compiler/src/noir-version.json. Install nargo by running noirup -v TAG_FROM_THE_FILE.

Continuous Integration

This repository uses CircleCI for continuous integration. Build steps are managed using build-system. Small packages are built and tested as part of a docker build operation, while larger ones and end-to-end tests spin up a large AWS spot instance. Each successful build step creates a new docker image that gets tagged with the package name and commit.

All packages need to be included in the build manifest, which declares what paths belong to each package, as well as dependencies between packages. When the CI runs, if none of the rebuild patterns or dependencies were changed, then the build step is skipped and the last successful image is re-tagged with the current commit. Read more on the build-system repository README.

It is faster to debug CI failures within a persistent ssh session compared to pushing and waiting. You can create a session with "Rerun step with SSH" on CircleCI which will generate an ssh command for debugging on a worker. Run that command locally and then do

cd project
./build-system/scripts/setup_env "$(git rev-parse HEAD)" "" "" ""
source /tmp/.bash_env*
{start testing your CI commands here}

This provide an interactive environment for debugging the CI test.

Debugging

Logging goes through the info and debug functions in C++, and through the DebugLogger module in Typescript. To see the log output, set a DEBUG environment variable to the name of the module you want to debug, to aztec:*, or to * to see all logs.

Releases

Releases are driven by release-please, which maintains a 'Release PR' containing an updated CHANGELOG.md since the last release. Triggering a new release is simply a case of merging this PR to master. A github workflow will create the tagged release triggering CircleCI to build and deploy the version at that tag.

Contribute

There are many ways you can participate and help build high quality software. Check out the contribution guide!

aztec-packages's People

Contributors

adr1anh avatar arielgabizon avatar aztecbot avatar benesjan avatar charlielye avatar codygunton avatar critesjosh avatar dbanks12 avatar github-actions[bot] avatar iammichaelconnor avatar jeanmon avatar jjwumaster avatar joeandrews avatar joss-aztec avatar kevaundray avatar ledwards2225 avatar leilawang avatar lherskind avatar ludamad avatar maddiaa0 avatar phated avatar philwindle avatar rahul-kothari avatar rumata888 avatar savio-sou avatar sirasistant avatar spalladino avatar spypsy avatar suyash67 avatar zac-williamson 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.