make sure you're on node 20 (hardhat needs it)
nvm install 20;
nvm use 20;
npm install --global yarn;
yarn install;make sure you're on aztec 3.0.0-devnet.5
aztec-up 3.0.0-devnet.5install noir and backend
bbup -v 0.72.1;
noirup -v 1.0.0-beta.5;in root run:
yarn run b:compile:aztecyarn run b:circuitin a new shell window run either:
VERSION=3.0.0-devnet.5 aztec start --sandboxor
yarn run b:sandboxyarn workspace @warp-toad/backend hardhat vars set PRIVATE_KEY;
yarn workspace @warp-toad/backend hardhat vars set SEPOLIA_URL;
yarn workspace @warp-toad/backend hardhat vars set SCROLL_SEPOLIA_URL;
yarn workspace @warp-toad/backend hardhat vars set ETHERSCAN_KEY;
yarn workspace @warp-toad/backend hardhat vars set ETHERSCAN_KEY_SCROLL;yarn workspace @warp-toad/backend hardhat ignition deploy ignition/modules/TestToken.ts --network aztecSandbox;NATIVE_TOKEN_ADDRESS=0xUrNativeTokenAddress yarn workspace @warp-toad/backend hardhat run scripts/deploy/L1/deployL1.ts --network aztecSandbox;sandbox
NATIVE_TOKEN_ADDRESS=0xUrNativeTokenAddress PXE_URL=http:/localhost:8080 yarn workspace @warp-toad/backend hardhat run scripts/deploy/aztec/deployAztec.ts --network aztecSandbox;#L1
PXE_URL=http://localhost:8080 yarn workspace @warp-toad/backend hardhat run scripts/deploy/L1/initializeL1.ts --network aztecSandbox;
#aztec
PXE_URL=http://localhost:8080 yarn workspace @warp-toad/backend hardhat run scripts/deploy/aztec/initializeAztec.ts --network aztecSandbox;yarn workspace @warp-toad/backend hardhat ignition deploy ignition/modules/TestToken.ts --network sepolia;NATIVE_TOKEN_ADDRESS=0xUrNativeTokenAddress yarn workspace @warp-toad/backend hardhat run scripts/deploy/L1/deployL1.ts --network sepolia;sandbox
NATIVE_TOKEN_ADDRESS=0xUrNativeTokenAddress PXE_URL=https://devnet.aztec-labs.com yarn workspace @warp-toad/backend hardhat run scripts/deploy/aztec/deployAztec.ts --network sepolia;NATIVE_TOKEN_ADDRESS=0xUrNativeTokenAddress yarn workspace @warp-toad/backend hardhat run scripts/deploy/scroll/deployL2Scroll.ts --network scrollSepolia;PXE_URL=https://devnet.aztec-labs.com yarn workspace @warp-toad/backend hardhat run scripts/deploy/L1/initializeL1.ts --network sepolia;
#aztec
PXE_URL=https://devnet.aztec-labs.com yarn workspace @warp-toad/backend hardhat run scripts/deploy/aztec/initializeAztec.ts --network sepolia;
#scroll
yarn workspace @warp-toad/backend hardhat run scripts/deploy/scroll/initializeL2Scroll.ts --network scrollSepolia;PXE_URL=http:/localhost:8080 yarn workspace @warp-toad/backend bun scripts/dev_op/bridge.ts --isAztec --localRootProviders 0xL1WarpToadAddress 0xL1AztecAdapterAddressTakes about 0.5-1 hour to run
yarn workspace @warp-toad/backend bun scripts/dev_op/bridge.ts --L1Rpc UrUrl --L2Rpc http://localhost:8080/ --privatekey 0xUrPrivateKey --isAztecNote: You have to use a paid rpc since free rpcs wont allow you to work with events well enough
Takes about 2-3 hours to run
yarn workspace @warp-toad/backend bun scripts/dev_op/bridge.ts --L1Rpc https://usSepoliaRpc --L2Rpc https://urlScrollRpc --evmPrivatekey 0xUrPrivateKeytest L1->Aztec
yarn workspace @warp-toad/backend hardhat test test/testL1ToAztec.ts --network aztecSandboxtest Aztec->L1
yarn workspace @warp-toad/backend hardhat test test/testAztecToL1.ts --network aztecSandboxtest L1->L1
yarn workspace @warp-toad/backend hardhat test test/testL1ToL1.ts --network aztecSandboxtest EVERYTHING
yarn workspace @warp-toad/backend hardhat test --network aztecSandboxget gas estimation minting (broken)
rm -fr backend/ignition/deployments/chain-31337/;
yarn workspace @warp-toad/backend hardhat ignition deploy ./ignition/modules/L1WarpToadWithTestToken.ts --parameters ignition/WarpToadCoreParametersTesting.json --network aztecSandbox;
yarn workspace @warp-toad/backend ts-node scripts/dev_op/estimateGas.ts -d ignition/deployments/chain-31337/deployed_addresses.json;prepare .env file.
cd bridgeSync/;
cp .env.template .env;edit the contents of .env (for local test set ALLOWED_ORIGINS to the port the frontend will be running on.)
in root either run
yarn bridge:devor build and spin up docker container:
yarn bridge:docker && yarn bridge:docker:runprepare .env file.
cd frontend/;
cp .env.template .env;edit the contents of .env (for local test set VITE_TEST_MODE=true and VITE_BRIDGE_KEEPER_URL=http://localhost:6969)
in root run
yarn f:prepeither run:
yarn f:devor if you want to use proving:
yarn f:run