Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/critesjosh/token-bridge-tutorial-test
https://github.com/critesjosh/token-bridge-tutorial-test
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/critesjosh/token-bridge-tutorial-test
- Owner: critesjosh
- Created: 2024-06-03T19:23:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T16:20:38.000Z (5 months ago)
- Last Synced: 2024-10-29T07:41:08.847Z (2 months ago)
- Language: TypeScript
- Size: 2.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Token bridge tutorial
This is running through the token bridge tutorial off of aztec-packages `0.47.0` branch on July 29.
## Requirements
- node.js version 18.x.x
- Aztec sandbox, install with:```bash
bash -i <(curl -s install.aztec.network)
```## Testing
### Update
Use 0.47.0 build for `aztec-up`:
```bash
aztec-up
```or
```bash
VERSION=0.47.0 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
```bash
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 codegen target -o ../../src/test/fixtures
```#### L1 contracts
```bash
cd l1-contracts
yarn
npx hardhat compile
```### Run
:warning: 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
```bash
aztec start --sandbox
```Run the tests
```bash
cd packages/src
yarn
DEBUG='aztec:e2e_uniswap' yarn test
```