Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

feat: setup local infra for l1-l2 messaging #1191

Merged
merged 15 commits into from
Jun 18, 2024

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented Jun 7, 2024

Time spent on this PR: 3d

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves #1181

What is the new behavior?

  • L1 -> L2 Messaging using a L1KakarotMessaging solidity contract that unpacks bytes memory to a uint256 payload (1 byte per u256) and forwards calls to StarknetMessaging

  • L2 -> L1 messaging directly into Kakarot, using a reserved address 75002 that can be called to send messages and exposed in the CairoLib

  • Test directory includes l1-related helpers, and tests & CI now use anvil for message-passing features

  • Left to do:

    • Research how to properly price and pay the sequencer with the gas of message calls.

This change is Reviewable

Makefile Outdated Show resolved Hide resolved
@enitrat enitrat force-pushed the feat/setup-messaging-katana branch from b711899 to 2a52a55 Compare June 7, 2024 15:44
@enitrat enitrat force-pushed the feat/setup-messaging-katana branch 2 times, most recently from 920e48b to 948a398 Compare June 12, 2024 08:58
@enitrat enitrat force-pushed the feat/setup-messaging-katana branch from 948a398 to a9b40e7 Compare June 12, 2024 09:29
@enitrat enitrat force-pushed the feat/setup-messaging-katana branch from fb0ab7b to 83ef0f7 Compare June 12, 2024 12:22
@enitrat enitrat force-pushed the feat/setup-messaging-katana branch from 3f1bb04 to 5189669 Compare June 12, 2024 15:25
@enitrat enitrat marked this pull request as ready for review June 14, 2024 13:15
@enitrat enitrat changed the title (wip)feat: setup local infra for l1-l2 messaging feat: setup local infra for l1-l2 messaging Jun 14, 2024
@kkrt-labs kkrt-labs deleted a comment from enitrat Jun 14, 2024
@kkrt-labs kkrt-labs deleted a comment from enitrat Jun 14, 2024
@ClementWalter ClementWalter merged commit a63c25a into main Jun 18, 2024
7 checks passed
@ClementWalter ClementWalter deleted the feat/setup-messaging-katana branch June 18, 2024 20:27
matthieuauger pushed a commit to matthieuauger/kakarot that referenced this pull request Nov 9, 2024
* add precompiles to staging

* add cairo 1 build
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: investigate how to use Starknet messaging with Kakarot
2 participants