Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] With Trace Dump #110

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

[DNM] With Trace Dump #110

wants to merge 6 commits into from

Conversation

JulianGCalderon
Copy link
Contributor

@JulianGCalderon JulianGCalderon commented Dec 30, 2024

Adds support for Trace Dump with both Sierra Emu and Cairo Native. See https://lambdaclass.github.io/cairo_native/cairo_native/docs/section06/index.html#comparing-with-sierra-emulator

This branch uses local dependencies as it is intended to be used only in development. It should not be merged.

Requires to use:

You may need to update Cairo Native's branch with the latest changes.

Remember to delete compiled programs (rm -rf compiled_programs).

Setup

Clone repositories

git clone [email protected]:lambdaclass/starknet-replay.git
git clone [email protected]:lambdaclass/sequencer.git
git clone [email protected]:lambdaclass/cairo_native.git
git clone [email protected]:lambdaclass/sierra-emu.git

Adapt Cairo native

cd cairo_native
git checkout add-trace-dump-contracts
make runtime-with-trace-dump

Adapt Sequencer

cd sequencer
git checkout replay-w-trace-dump

Adapt Replay

cd starknet-replay
git checkout w-trace-dump

Usage

To run with Native:

cargo run --features with-trace-dump \
  tx 0x04c397201320923d0b4a25b08ada7a5323fcb2c94bc7d865ac4484634674eef2 mainnet 901178

To run with Sierra Emu:

cargo run --features with-sierra-emu \
  tx 0x04c397201320923d0b4a25b08ada7a5323fcb2c94bc7d865ac4484634674eef2 mainnet 901178

Copy link

github-actions bot commented Dec 30, 2024

❌ Code is not formatted! Please run cargo format and push the changes.

@JulianGCalderon JulianGCalderon changed the base branch from add-sierra-emu to main January 17, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant