0.17.0 • Published 4 months ago

@aztec/aztec-sandbox v0.17.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

aztec-sandbox

Aztec Sandbox is a package that allows for a simple development environment on Aztec stack. It creates a Private eXecution Environment (PXE) that listens for HTTP requests on localhost:8080 by default. When started, it deploys all necessary L1 Aztec contracts and then starts listening for RPC requests.

How to run:

Docker Compose

The easiest way to run is by using docker compose up. This will create two containers:

  1. The sandbox listening on port 8080
  2. An anvil instance listening on port 8545

Node Server

You can also run it as a standalone node server with:

yarn start

It will look for a local Ethereum RPC to talk to but you can change this with the ETHEREUM_HOST environment variable.

Examples

The package also includes 2 examples. There are some system prerequisites that you will need to run these locally:

Before running locally you'll need to:

  • Head to l1-contracts directory and run ./bootstrap.sh
  • Then go to `yarn-project and run:
    • yarn install
    • yarn build And you should be good to go!

From the aztec-sandbox directory, you can run the two existing examples:

  • Deployment, mint and transfer on an Aztec Private Token
    • yarn run:example:token
  • An L1 / L2 uniswap token trade.
    • yarn run:example:uniswap
    • To run this example, you need to set the following vars:
export FORK_BLOCK_NUMBER=17514288
export FORK_URL=<YOUR_RPC_URL e.g. https://mainnet.infura.io/v3/API_KEY>

Publishing

This package is set-up to be published on dockerhub by CI whenever there's a tagged release on master branch. It's published under the tags aztecprotocol/aztec-sandbox:latest & aztecprotocol/aztec-sandbox:<version-tag>.

0.17.0

4 months ago

0.16.8

5 months ago

0.16.9

5 months ago

0.16.5

6 months ago

0.16.6

6 months ago

0.16.7

6 months ago

0.16.3

6 months ago

0.16.4

6 months ago

0.16.2

6 months ago

0.16.0

6 months ago

0.16.1

6 months ago

0.15.0

6 months ago

0.15.1

6 months ago

0.14.0

7 months ago

0.14.1

7 months ago

0.14.2

7 months ago

0.11.0

7 months ago

0.11.1

7 months ago

0.13.0

7 months ago

0.13.1

7 months ago

0.12.0

7 months ago

0.10.1

7 months ago

0.10.0

7 months ago

0.9.0

7 months ago

0.8.14

7 months ago

0.8.13

7 months ago

0.8.12

7 months ago

0.8.11

7 months ago

0.8.10

7 months ago

0.8.9

7 months ago

0.8.8

8 months ago

0.8.7

8 months ago

0.8.6

8 months ago

0.7.10

8 months ago

0.7.9

8 months ago

0.7.8

8 months ago

0.7.7

8 months ago

0.7.5

8 months ago

0.7.4

8 months ago

0.7.3

8 months ago

0.7.2

8 months ago

0.7.0

8 months ago

0.6.7

8 months ago

0.6.6

8 months ago

0.6.5

9 months ago

0.6.4

9 months ago

0.6.2

9 months ago

0.1.0-alpha63

9 months ago

0.1.0-alpha62

9 months ago

0.1.0-alpha61

9 months ago

0.1.0-alpha60

9 months ago

0.1.0-alpha59

9 months ago

0.1.0-alpha57

9 months ago

0.1.0-alpha49

9 months ago

0.1.0-alpha48

9 months ago

0.1.0-alpha47

9 months ago

0.1.0-alpha46

9 months ago

0.1.0-alpha45

9 months ago

0.1.0-alpha44

9 months ago

0.1.0-alpha43

9 months ago

0.1.0-alpha42

9 months ago

0.1.0-alpha41

9 months ago

0.1.0-alpha40

9 months ago

0.1.0-alpha39

9 months ago

0.1.0-alpha38

9 months ago

0.1.0-alpha37

9 months ago

0.1.0-alpha36

10 months ago

0.1.0-alpha35

10 months ago

0.1.0-alpha34

10 months ago

0.1.0-alpha33

10 months ago

0.1.0-alpha32

10 months ago

0.1.0-alpha31

10 months ago

0.1.0-alpha30

10 months ago

0.1.0-alpha29

10 months ago

0.1.0-alpha28

10 months ago

0.1.0-alpha26

10 months ago

0.1.0-alpha25

10 months ago