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

feat: Call revm directly without Foundry #13

Merged
merged 34 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1139793
Try to call revm directly
DanielSchiavini Mar 15, 2024
8877746
Use `load_account` instead of `basic`
DanielSchiavini Mar 16, 2024
02e6f49
Allow retrieving a dict of account info
DanielSchiavini Mar 16, 2024
33b94e5
Copy EmptyDBWrapper from Foundry
DanielSchiavini Mar 18, 2024
28766d7
Implement forking
DanielSchiavini Mar 18, 2024
64e9459
Cleanup
DanielSchiavini Mar 18, 2024
1a8d390
Extract database implementation into separate class
DanielSchiavini Mar 19, 2024
7454bb0
Add tracing
DanielSchiavini Mar 19, 2024
b05b48d
Add comments
DanielSchiavini Mar 19, 2024
2085ed5
Save the full context and execution result
DanielSchiavini Mar 20, 2024
ef712be
Clone the DB as checkpoint
DanielSchiavini Mar 20, 2024
29e0d3f
Inline transact method
DanielSchiavini Mar 20, 2024
11ff79a
Inline output method
DanielSchiavini Mar 20, 2024
890ef86
Omit commit after execution
DanielSchiavini Mar 20, 2024
50c4581
Refactor
DanielSchiavini Mar 20, 2024
cfd0e46
Rename and move
DanielSchiavini Mar 20, 2024
84c1743
Expose actual PyBytes + check get_code return
DanielSchiavini Mar 21, 2024
618ef67
Fix tests
DanielSchiavini Mar 21, 2024
0dce9d8
Review comment
DanielSchiavini Mar 21, 2024
f6aa771
Documentation
DanielSchiavini Mar 22, 2024
7ace79a
Add `create2`, `gas` and `is_static` support
DanielSchiavini Mar 22, 2024
5bbc43d
Fix stub
DanielSchiavini Mar 22, 2024
e77c776
Expose logs
DanielSchiavini Mar 25, 2024
a93fa47
Review comments
DanielSchiavini Mar 25, 2024
28fe7df
Duplicate implementation
DanielSchiavini Mar 25, 2024
68db546
Support gas price
DanielSchiavini Mar 26, 2024
87cc451
Fix and set block_env
DanielSchiavini Mar 27, 2024
72b6130
chore: clippy
DaniPopes Mar 28, 2024
f6e2163
chore: run more stuff in CI, format code
DaniPopes Mar 28, 2024
b379fea
chore: less allocs
DaniPopes Mar 28, 2024
a1e8052
chore: sort imports
DaniPopes Mar 28, 2024
50b7fae
Rename to fork_block
DanielSchiavini Apr 4, 2024
525ec28
Add reset_transient_storage
DanielSchiavini Apr 4, 2024
daee94f
Merge branch 'master' into revm
charles-cooper Apr 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: rust

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ '*' ]
branches: ["*"]

jobs:
tests:
Expand All @@ -27,3 +27,41 @@ jobs:

- name: cargo test
run: cargo test

clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings

docs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo doc --workspace --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: "--cfg docsrs -D warnings"

fmt:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --all --check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
**/__pycache__/
.idea/
Loading
Loading