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

This is the repo to showcase l1 l2 messaging integration on your local devnet

Notifications You must be signed in to change notification settings

starknet-edu/l1-l2-messaging-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is the repo to showcase l1 l2 messaging integration on your local devnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published