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

chore: initial merge conflict resolution for update up to f5aa05e #614

Merged
merged 119 commits into from
Oct 28, 2024

Conversation

elfedy
Copy link
Contributor

@elfedy elfedy commented Oct 18, 2024

Initial merge conflic resolution for upstream update to f5aa05e
Compilation errors are not solved yet.

Updated forked dependencies:

Conflicting files:

  • .github/workflows/test.yml
  • Cargo.lock
  • Cargo.toml
  • Dockerfile
  • README.md
  • crates/cheatcodes/src/evm.rs
  • crates/cheatcodes/src/evm/mock.rs
  • crates/cheatcodes/src/inspector.rs
  • crates/cheatcodes/src/test.rs
  • crates/cheatcodes/src/test/expect.rs
  • crates/evm/abi/src/console/hardhat.rs
  • crates/evm/core/src/backend/cow.rs
  • crates/evm/core/src/backend/mod.rs
  • crates/evm/core/src/decode.rs
  • crates/evm/core/src/lib.rs
  • crates/evm/core/src/utils.rs
  • crates/evm/evm/src/executors/fuzz/mod.rs
  • crates/evm/evm/src/executors/mod.rs
  • crates/evm/fuzz/src/strategies/param.rs
  • crates/evm/traces/src/decoder/mod.rs
  • crates/evm/traces/src/identifier/local.rs
  • crates/forge/Cargo.toml
  • crates/forge/src/result.rs
  • crates/forge/tests/cli/script.rs
  • crates/script/Cargo.toml
  • crates/script/src/broadcast.rs
  • crates/script/src/lib.rs
  • crates/script/src/sequence.rs
  • crates/script/src/simulate.rs
  • crates/script/src/transaction.rs
  • testdata/cheats/Vm.sol

Conflicting commits

New cheatcodes:

foundry-rs/foundry#8571: record traces
foundry-rs/foundry#9024: mockCalls
foundry-rs/foundry#8952: gasSnapshots over arbitrary sections
foundry-rs/foundry#9087: cheatcodes to derive and save multiple wallets
foundry-rs/foundry#9106: mv script wallets into Cheatcode
foundry-rs/foundry#8883: Warnings for deprecated cheatcodes:

Fixes:

foundry-rs/foundry#9050: Identify artifacts using both deployed and creation code.
foundry-rs/foundry#9096: running script with --broadcast for a transaction sequence can error out due to nonce desync from rpc latency 

Refactors:

foundry-rs/foundry#8924 dyn DatabaseExt vs generic refactor
foundry-rs/foundry#9011 Reduce dynamic dispatch from inspectors
foundry-rs/foundry#8969 Remove unreachable decoding of expect revert
foundry-rs/foundry#9098 move ScriptSequence to new crate
foundry-rs/foundry#8945 renaming of snapshot to be more specific

CI

foundry-rs/foundry#8948: Add makefile and codespell
foundry-rs/foundry#8964: use multiarchitecture images in Dockerfile
foundry-rs/foundry@7a9ebf9: Bump alpine to 3.20

Deps

Bump alloy core to 0.8.26: foundry-rs/foundry#9045

DaniPopes and others added 30 commits September 20, 2024 11:58
* feat(cheatcode): disaply message for cheatcodes marked as deprecated

* Deprecated cheatcodes as hashset, displayed once per test suite

* Add deprecated cheatcode replacement attr

* Add support for fuzz and invariant tests

* Changes after review: add Deprecated(replacement)

* Update crates/cheatcodes/src/inspector.rs

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

* chore: touchups

* Fix CI

---------

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* refactor: rewrite the console.log format string parser

* chore: clippy
* feat: implement `parseTomlType` cheats

* chore: `forge fmt`

* revert: use json naming to indicate to users that they are operating on json data

* chore: nit

* chore: nit
Co-authored-by: jenpaff <jepaff0@gmail.com>
improve description of --flamechart and --flamegraph, explaining the difference
chore(evm): use dyn DatabaseExt in inspect
chore: use serde_json::from_str when possible
* chore: deprecate --debug regex argument

* fix: enable full internal decoding if exactly one test matched
…ansaction` conversion (#8942)

* fix(`anvil`): handle OP deposit tx in TypeTransaction conversion.

* nits

* clippy

* test

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

* nits

---------

Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
…m gas_limit on forks (#8933)

* fix: #8759, do not set low gas price on block if disabled, use custom gas price in forks

* test(fix): default block gas limit for large mine test

* fix fmt

* fix: optional gas_limit in as_json

* fix: use option not serde_json::Value::Null

* tests: base tests + config tests

* fix: nits

* fix: comment
* add makefile + codespell

* update makefile

* fix typos found by codespell

* add codespell CI task

* fix outdated spec

* ignore testdata

* switch default profile to dev, add strat to ignored words list
* chore: improve fuzz scrape bytecode test

* Remove duped comments, Trigger CI
* chore: add anvil NodeHandle.fire_shutdown_signal

* Remove DAPP remappings from env vars from cli tests.

* Unwrap fire shutdown

* Fix clippy

* track_caller on fire shutdown

* fire shutdown signal on drop
…loyedCode` (#8938)

* feat(`cheatcodes`): vm.getArtifactPath

* cargo cheats

* nit

* nit

* fix

* test: vm.getArtifactPath

* feat: vm.getArtifactPath(creationCode)

* cheats

* nit

* change seed

* rm vm.getArtifactPath(contractName)

* fmt

* nit

* fix

* nit

* rename

* nit

* fix

---------

Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com>
pogobounce and others added 7 commits October 14, 2024 12:32
… error out due to nonce desync from rpc latency (#9096)

* fix for issue #9095

* changed 'if' statement into 'match'

* fmt fix

* repeat ask for provider nonce on desync

* loop break and tokio::time use instead of std::thread
… (#9050)

* Identify by creation code

* Compute score for both creation and runtime code

* Fallback to deployed bytecode only if min creation bytecode score is under threshold

* reuse check closure, add basic test
* refac(`script`): extract script sequence and related types to new crate

* replace MultiChainSequence in script crate

* replace TransactionWithMetadata and AdditionalContract

* replace ScriptSequence

* replace all underlying ScriptSequence and related types

* doc nits

* add `ScriptTransactionBuilder`

* remove `TxWithMetadata`

* mv verify fns and use `ScriptSequence` directly

* clippy
@tomimor
Copy link
Contributor

tomimor commented Oct 21, 2024

For more visibility on the update process @dutterbutter @popzxc

dutterbutter and others added 11 commits October 21, 2024 08:54
* Add integration for vm.getCode in zkcontext

* Format cheatcode contract

* fix test and clippy

* fix comparing with wrong bytecode

* improve tests

* forge fmt

* change test name

* refactor(test:zk): simplify getCode

* cargo fmt

* panic if can't find contract by type

---------

Co-authored-by: Francesco Dainese <franci.dainese@gmail.com>
* Add paymaster support to cast send

* remove reference

* Add zksync flag to cast send and handle missing zk paymaster parameters

* Clap zksync flag when paymaster parameters present, better handling paymaster parameters

* put cast send logic for zksync in it's own function

* Add cast paymaster tests

* Remove unnecesary paymaster settings in test
deps: remove unused dep
crates/cheatcodes/src/evm.rs Outdated Show resolved Hide resolved
crates/cheatcodes/src/inspector.rs Show resolved Hide resolved
crates/evm/evm/src/inspectors/stack.rs Show resolved Hide resolved
crates/script/src/lib.rs Outdated Show resolved Hide resolved
crates/script/src/lib.rs Outdated Show resolved Hide resolved
crates/script/src/lib.rs Outdated Show resolved Hide resolved
@elfedy elfedy requested a review from nbaztec October 28, 2024 17:26
@elfedy elfedy merged commit 427c240 into upstream-f5aa05e Oct 28, 2024
4 checks passed
@elfedy elfedy deleted the elfedy-ummc branch October 28, 2024 17:35
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.