This is a demo for showcasing how to setup l1<->l2 integration in your local dev env. The purpose of this tutorial is to have a quick and ease testing framework setup in your local dev env when testing l1-l2 bridging.
This folder includes all the layer1 code, which will be deployed on your local ganache instance. The project is scaffolded using hardhat.
ganache -s 1234
This folder includes all the layer2 starknet cairo code, which will be deployed on starknet-devnet. The project is scaffolded using protostar.
source ~/cairo_venv/bin/activate //Assume your have your cairo_venv setup already
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES //This is required for MAC M1 machine at least, otherwise the l1 l2 messaging wont work
starknet-devnet --seed 1234
For it to work, we also need to install postman and search of starknet-edu collection.
Please load your code for the gist here