Deploy components

Deploy EVM contracts

Build

$ forge build

Deploy Poseidon2

forge create --broadcast \
  --private-key <private_key> \
  --rpc-url <EVM L2 - rpc_url> \
  src/libs/Poseidon2.sol:Poseidon2

Deploy EVM Gateway

forge create --broadcast \
  --private-key <private_key> \
  --rpc-url <EVM L2 - rpc_url> \
  src/L2Gateway7683.sol:L2Gateway7683 \
  --constructor-args <permit2_address>

Deploy Forwarder

forge create  --broadcast \
  --private-key <private_key> \
  --rpc-url <EVM L1 - rpc_url> \
  src/Forwarder.sol:Forwarder \
  --constructor-args <l2_gateway_7683> <aztec_inbox> <aztec_outbox> <aztec_gateway> <anchor_state_registry>
 

Deploy Aztec contracts

If you see the following error when compiling:

Go to src/artifacts/Token.ts and remove the L1EventPayload import.

Deploy Aztec Gateway

Set Aztec Gateway on Forwarder

Set Aztec Gateway on L2Gateway7683

Set Forwarder on L2Gateway7683

Filler

Installation

Clone the repository and install dependencies:

Usage

Run the project with:

Last updated