Skip to content

holonym-foundation/aztec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Token bridge tutorial

This is running through the token bridge tutorial off of aztec-packages 0.45.1 branch on July 8th.

Requirements

  • node.js version 18.x.x
  • Aztec sandbox, install with:
  bash -i <(curl -s install.aztec.network)

Testing

Update

Use 0.45.1 build for aztec-up:

aztec-up

or

VERSION=0.45.1 aztec-up

Dependencies

  • Update dependencies in Nargo.toml in packages/aztec-contracts/token_bridge to your version.
  • Update @aztec package versions in packages/src/package.json to your version.

Compile

Aztec contracts

cd packages/aztec-contracts/token_bridge
aztec-nargo compile
# the output is already committed in this repo, but you'll have to rerun this if you change anything in the contract
aztec-builder codegen target -o ../../src/test/fixtures

L1 contracts

cd l1-contracts
yarn
npx hardhat compile

Run

⚠️ You might need to restart the sandbox between testing runs, since the test will produce the same note commitments and nullifiers, which the sequencer will reject.

Run the sandbox

aztec-sandbox

Run the tests

cd packages/src
yarn
DEBUG='aztec:e2e_uniswap' yarn test
DEBUG='aztec:*' yarn test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published