Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 1.17 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.17 KB

L1 <-> L2 integration Message Example

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.

l1-setup-ganache-hardhat

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

l2-setup-devnet-protostar

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

Postman integration

For it to work, we also need to install postman and search of starknet-edu collection.

Remix Code for verification purpose.

Please load your code for the gist here

For video tutorial, please refer to this youtbe video