Skip to content

chore: upstream c78faa2 merge#1116

Merged
Jrigada merged 45 commits intomainfrom
upstream-c78faa2-merge
Aug 19, 2025
Merged

chore: upstream c78faa2 merge#1116
Jrigada merged 45 commits intomainfrom
upstream-c78faa2-merge

Conversation

@matias-gonz
Copy link
Copy Markdown
Member

What 💻

  • First thing updated with this PR
  • Second thing updated with this PR
  • Third thing updated with this PR

Why ✋

  • Reason why first thing was added to PR
  • Reason why second thing was added to PR
  • Reason why third thing was added to PR

Evidence 📷

Include screenshots, screen recordings, or console output here demonstrating that your changes work as intended

Documentation 📚

Please ensure the following before submitting your PR:

  • Check if these changes affect any documented features or workflows.
  • Update the book if these changes affect any documented features or workflows.

Soubhik-10 and others added 29 commits July 14, 2025 15:47
* feat: added get_blob_by_hash

* use correct get_full_block_fn

* clippy

* clippy

* refactoring and moving to backend

* refactoring and moving to backend

* vec blobs

* get blob

* clippy
perform generic deps update to compatible versions
* bump revm, pending alloy-evm alloy-rs/evm#100, pending foundry-fork-db

* bump alloy-evm, foundry-fork-db

* bump deps

* apply alloy-evm fix

* start porting types

* unpin revm-inspectors

* fix issues

* continue preperation

* .control field was removed

* frame_return_result now needs to happen in bigger run_exec_loop block

* update handler and inspector per latest changes removing previous methods

* add new frame loop

* pass in frame

* fix transact_raw

* continue fixes

* apply will_exit, on continue should skip as it is none, on exit (any ok, revert or error) we exit

* continue clean up, some attention points in regards to InstructionResult::Continue

* continue porting

* continue porting

* temporarily use hardcoded BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE

* remove clamping now that revm supports U256 internally for number and timestamp

* fix clippy

* fix doctest

* bump alloy version

* make assertion on `bytecode`

* revert bytecode(), fix to come in upcoming release

* bump revm 27

* fix debug

* revert Cargo.toml change

* clean up

* fix(`config`): block_timestamp and block_number mismatch in Config and EvmOpts (#10903)

* fix clippy

* fix(`anvil/test`): change delegatecall.value in test_call_ots_trace_transaction

* bump revm: 27.0.2

* apply clippy fixes

* fix fmt

* fix config defaults

* fix config change of block_number, block_timestamp require hex formatting

* fix(`evm`): create2 in InspectorHandler and trace decoder for None status (#10925)

* fix: handler CREATE2 override in InspectorHandler

* fix: account for trace.status: None - this is due to removal of InstructionResult::Continue

* fix(`forge/test`): update test fixture: can_run_test_with_json_output_verbose - as trace.status can be null and trace.success can be false due to removal of InstructionResult::Continue

* fix(`forge/test`): repro 6501 - account for success being false due to status being None

* fix(`evm/inspectors`): prevent panic in should_revert_on_address_opcode (#10940)

* fix(`evm/inspectors`): prevent panic by checking interp.action.is_some - fixes: should_revert_on_address_opcode

* undo step removal

* fix merge conflict

* fix(`evm`): enable tx_chain_id_check (#10943)

* use dynamic blob_base_fee_update_fraction selection based on hardfork set

* bump alloy-chains version w/ foundry-fork-db

* fix: fork errors getting overriden by RevertDiagnostic inspector (#10954)

* fix: fork revert diagnostic

* feat(`cheatcodes`): introduces `ForkRevertDiagnostic`

* patch revm to include fix for `call_end` not being called

* fix: can_run_test_with_json_output_verbose

* Revert "fix: fork errors getting overriden by RevertDiagnostic inspector (#10954)"

This reverts commit b74f48a2bb5027670809292840fe26d800c8e4b5.

* fix(`cast`): disable balance check for impersonated txs. (#10972)

fix(`cast/test`): disable balance check for impersonated tx

* Revert "fix(`anvil/test`): change delegatecall.value in test_call_ots_trace_transaction"

This reverts commit 6db3d9768f277a610b138d633a915a1485500fcc.

* fix(`evm`): remove Handler impl for `FoundryHandler` (#10975)

* fix(`evm`): Handler impl for FoundryEvm

* cleanup

* fmt

* bump foundry-fork-db 0.16, fix tests

* bump alloy

* unify blob_base_fee_update_fraction in helper, clarify exception

* move helpers to evm-core for blob_base_fee_update_fraction

* Update mod.rs

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* unpatch revm, update to 27.0.3

* fix fmt

* revert to solar 1.4, waiting for upgrade PR

* bump alloy-evm / alloy-op-evm

* forcibly downgrade solar-config, solar-macros due to breaking change in 0.1.5

* feat(`revm bump`): add serialization method that serializes as `u64` if fits or `U256` if not (#11008)

* add serialization method that serializes as u64 if fits or u256 if not

* clean up, no longer a need for 0x1

* toml spec limits number representation to i64

---------

Co-authored-by: Yash Atreya <44857776+yash-atreya@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* fix(`cheatcodes`): count `0` swallows non-matching reverts

* rm test testNoRevertSpecificButDiffRevert as this is a breaking change

* rm t

* fmt

* forge fmt

* fix: tests according to breaking changes

* fmt

* fix: test test_assume_no_revert_with_data due to breaking change

* clippy

* nit

---------

Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
* feat: fuzzer metrics

* Display metrics in progess bar or inline (if corpus set)

* Nits

---------

Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
…tract target (#11015)

* fix(invariant): apply targetSelector and excludeSelector for test
contract target

* fix unrelated test_assume_no_revert_with_data failure on win

* nits, record and use test contract selectors
* fix: manually walk overide paths

* chore: rmv modifier visitor
* feat(cast): add --raw option to block command for RLP-encoded block header

- Introduced a new `raw` argument in the `CastSubcommand::Block` to allow users to retrieve the raw RLP-encoded block header.
- Updated the `block` function to handle the new `raw` parameter and return the appropriate output.
- Added a unit test to verify the functionality of the `--raw` option in the CLI command.

* quick fix doctest

* encoding only header

* fix the unit test using a mainnet endpoint
…ed (#11025)

* ensure account is always loaded and marked as touched when pranked

* add clarifying comment

* clarifying comment
* feat(fmt): adds tab as style for indents

* docs(fmt): adds configuration doc for style

* fix(fmt): return char type in indent_char()

* fix(fmt): adds correct char for visibility attrs

* test(fmt): adds testdata for tabs

* test(cli): adds fmt style to default config

* test(cli): adds fmt style at the correct location

* chore: configure fmt testdata to use lf as eol

* fix(fmt): handling of CRLF in parsing of disable line as inline config

* test(fmt): remove tab test cases

---------

Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
…… (#10993)

fix(cheatcodes): remove redundant computation in validate_private_key function

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* chore: don't create a new tokio runtime for MultiFork

* chore: centralize tokio runtime spawning

* chore: keep std thread if no runtime is available

* chore: avoid spawning a runtime for SignaturesIdentifier::save

This was running after the runtime for forge test was destroyed,
so it was creating its own runtime just for this one simple task.
* chore: migrate from codespell to typos for spellchecking

Replaced codespell with typos for better performance and more flexible
configuration. This includes:

- Removed .codespellrc configuration
- Added typos.toml with equivalent exclusions and ignored words
- Updated GitHub Actions workflow to use crate-ci/typos@v1
- Updated Makefile targets from lint-codespell to lint-typos
- Fixed actual typos found: overide→override, diffent→different,
  unintialized→uninitialized, dependendy→dependency, appropiate→appropriate

* chore: improve typos configuration with pattern-based ignores

Added regex patterns to ignore common programming constructs:
- Hex strings of various lengths (8, 40, 64 chars)
- Hex literals starting with 0x
- Ordinal numbers in identifiers (1st, 2nd, 3rd, etc.)

This removes most of the word-level exceptions except 'ba' which is
used as a command alias for 'basefee'.

* chore: exclude test directories from typos checks

Added test directory exclusions to reduce false positives in test code:
- **/tests/** and **/test/** directories
- Files matching **/*_test.* and **/*_tests.*

Also added descriptive comments to all file exclusion entries for clarity.

* chore: add explanatory comments to allowed words

Documented why each word in extend-words is allowed:
- crate: Rust keyword used in dependency resolution
- ser: Common abbreviation for serialization
- ratatui: Terminal UI library name
- Caf: Appears in test data/fixtures
- froms: Used in error messages and API names
- strat: Common abbreviation for strategy
- ba: Command alias for basefee
* feat(cast): add checksum address with chain id

* docs(cast): add docs for chain id in ToCheckSumAddress
@matias-gonz matias-gonz requested a review from a team as a code owner August 18, 2025 12:03
Comment thread .github/workflows/test.yml Fixed
@matias-gonz matias-gonz changed the title Upstream c78faa2 merge chore: upstream c78faa2 merge Aug 18, 2025
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/test.yml
Comment thread crates/cast/src/cmd/run.rs Outdated
Comment thread crates/evm/core/src/evm.rs
Comment thread crates/forge/src/cmd/build.rs
Comment thread crates/forge/tests/cli/cmd.rs
@matias-gonz matias-gonz requested a review from Jrigada August 18, 2025 15:16
@tomimor tomimor moved this from Todo to In Progress in DevEx squad Aug 19, 2025
@Jrigada Jrigada enabled auto-merge (squash) August 19, 2025 12:45
@Jrigada Jrigada merged commit 8fad710 into main Aug 19, 2025
55 checks passed
@Jrigada Jrigada deleted the upstream-c78faa2-merge branch August 19, 2025 13:55
@github-project-automation github-project-automation Bot moved this from In Progress to Done in DevEx squad Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.