StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

Feature: L1 <> L2 messaging with Bridge example

Open julio4 opened this issue 1 year ago • 9 comments

Description

In Starknet, it is possible to interact with Ethereum by using the L1 <> L2 messaging system.

In this example, we want to demonstrate the usage of this messaging system to send and receive messages from L1 to L2 for a token bridge.

Criteria:

  • Bridge example for a token between L1 and L2
  • Provide both Solidity and Cairo contracts, deployed and verified on testnets.
  • Focus more on the implementation. Do not reuse the content of the Cairo book for the explanation, but give a succinct overview.

Resources:

ODHack

To be eligible for additional rewards, be sure to review and follow the ODHack Common Guidelines and Contributing Guidelines. Be sure to join the telegram group and introduce yourself.

julio4 avatar May 23 '24 08:05 julio4

I am a blockchain engineer and I have built a couple of smart contracts both on Ethereum and Starknet. I was fully into Solidity before I started building on Starknet.

  • In order to work on this, I will first explore and obtain a deep understanding of what L1<>L2 messaging by exploring the resources provided in the issue description, and this resource as well: https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/messaging-mechanism/ which gives more details as it is from the official documentation.
  • Next, I will write the solidity code, test and verify to ensure it works as expected
  • And then write the equivalent Cairo code and also verify that it works as expected.
  • I will then create a content explaining how it works and verify that the content is correct and meets the standard of StarknetByExample.
  • I will create a PR and prepare for review

muheebyusufbaba1 avatar May 23 '24 08:05 muheebyusufbaba1

Hey! I want to work on this issue. The estimated timeline to complete this issue is 5-7 days. I have been working with rust for quite a while and have majorly contributed to Foundry and Reth, which are rust-based open-source projects. Can you assign me another one if you are assigning this issue to anyone else?

You can check out my public profile here.

kamuik16 avatar May 23 '24 08:05 kamuik16

I am interested in working on this. I have a good idea how I can go about this. Please assign me.

VictoriaAde avatar May 23 '24 09:05 VictoriaAde

Hello everyone and thank you for your interest! @muheebyusufbaba1 @kamuik16 @VictoriaAde Before being assigned, could you share what idea you have in mind?

julio4 avatar May 23 '24 16:05 julio4

Hello @julio4 check previous comment please, just did that

muheebyusufbaba1 avatar May 24 '24 07:05 muheebyusufbaba1

I would've liked to have a more specific ideas of messaging use cases for this example. But I'll assign you @muheebyusufbaba1! Keep in mind that you have two days to atleast open a draft PR so I can track progress and help you if needed.

julio4 avatar May 24 '24 10:05 julio4

Just to update you about my progress. I will be creating the PR soon. Still working on the implementation.

muheebyusufbaba1 avatar May 31 '24 20:05 muheebyusufbaba1

Just to update you about my progress. I will be creating the PR soon. Still working on the implementation.

Thank you very much. ODHack hackathon has already finished, so today will be the last day if you want to be eligible!

julio4 avatar Jun 03 '24 02:06 julio4

Updated with specific use cases: Bridge

julio4 avatar Jun 27 '24 07:06 julio4

I'd be interested to work on this

0xNeshi avatar Oct 21 '24 06:10 0xNeshi