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: upstream 5e72c69 merge #811

Merged
merged 47 commits into from
Jan 9, 2025
Merged

Conversation

MBerguer
Copy link
Contributor

@MBerguer MBerguer commented Jan 7, 2025

What 💻

Merge conflict resolution for upstream sync up to foundry-rs/foundry@5e72c69.

Conflicting files

CONFLICT (content): Merge conflict in .github/workflows/release.yml
CONFLICT (content): Merge conflict in Cargo.lock
CONFLICT (content): Merge conflict in Cargo.toml
CONFLICT (content): Merge conflict in README.md
CONFLICT (content): Merge conflict in crates/cheatcodes/src/inspector.rs
CONFLICT (content): Merge conflict in crates/cheatcodes/src/test/expect.rs
CONFLICT (content): Merge conflict in crates/forge/bin/cmd/create.rs
CONFLICT (content): Merge conflict in crates/forge/bin/cmd/init.rs
CONFLICT (content): Merge conflict in crates/forge/tests/it/test_helpers.rs
CONFLICT (content): Merge conflict in crates/script/src/lib.rs
CONFLICT (content): Merge conflict in foundryup-zksync/README.md
CONFLICT (content): Merge conflict in foundryup-zksync/foundryup-zksync

jtfirek and others added 30 commits December 11, 2024 19:18
…9543)

fix(`anvil`): set `best_number` correctly while loading state with fork activated
* fix(`cast`): reset `env.tx.caller` for impersonated txs

* test
…release created (#9550)

fix(release): allow contents write permission, run attestation after release published
* chore: bump compilers

* clippy
* chore: account for impersonated tx in configure_tx_env

* nit
* read rpc config when using fork cheatcodes

* attempt to resolve failed environment variables again

* nit: refactor

* nit: refactor

* fix clippy errors

* fix rustfmt errors

* run cargofmt

* set auth header for fork

* remove redundant clone()

* Update crates/cheatcodes/src/config.rs

---------

Co-authored-by: Matthias Seitz <[email protected]>
* feat(cast): add support for beacon proxies in cast impl

* test: pin test to current block
* introduce ExpectEmitTracker

* cheats

* account for emit accounts + simple testNoEmit

* tests: expectCountEmits from specific address

* fix

* failure tests

* fix

* fix: account for log data

* LogCountMap

* fix

* nit

* test

* fix

* fix

* fix: instantiate log count map in tracker only if log satisfies the checks

* nit

* nit

* nits

* doc nits

* helper fn

* nit

* nits

* fix

* fix

* nit

* refactor count tests

* fix

* fix

* fix
fix(release): check IS_NIGHTLY as string
- feat / fixes category per binaries
- breaking changes and perf category
- restrict summary to max 60 days / max 100 PRs, add full diff and contributors
* feat(foundryup): allow multiple installed versions

* Changes after review: new line after version, -v renamed as -i, create version dir on untar

* Update foundryup link repo and contribute URL

* Fix --one-top-level not avail in bsd tar

* Fix --one-top-level not avail in bsd tar

* update docs

* Err if no version provided to use

---------

Co-authored-by: zerosnacks <[email protected]>
…ng on `foundry-toolchain` default (#9573)

* default CI workflow template to stable as opposed to nightly, related: foundry-rs/foundry-toolchain#60

* remove pinning to stable in workflow file, rely on default in foundry-toolchain - now being nightly, becoming stable
* chore: testFail* deprecation warning

* test

* fix
* chore: bump forge-std version used for tests

* run CI

* fix tests

* fix gas

---------

Co-authored-by: DaniPopes <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
…d in (#9585)

* default to stable if no specific version is passed in

* update mention, defaults to stable now
* fix(cast): pretty print other receipt fields

Signed-off-by: jsvisa <[email protected]>

* feat(cast): add other receipt fields pretty test

Signed-off-by: jsvisa <[email protected]>

* fix(ui): receipt column length 20

Signed-off-by: jsvisa <[email protected]>

* fmt

Signed-off-by: jsvisa <[email protected]>

* fix receipt indent test

Signed-off-by: jsvisa <[email protected]>

* fix test case /2

Signed-off-by: jsvisa <[email protected]>

* fix revert reason indent

Signed-off-by: jsvisa <[email protected]>

---------

Signed-off-by: jsvisa <[email protected]>
Locking 29 packages to latest compatible versions
    Updating alloy-chains v0.1.49 -> v0.1.51
    Updating alloy-trie v0.7.6 -> v0.7.7
    Updating anyhow v1.0.94 -> v1.0.95
    Updating aws-config v1.5.11 -> v1.5.12
    Updating aws-runtime v1.5.1 -> v1.5.2
    Updating aws-sdk-kms v1.52.0 -> v1.53.0
    Updating aws-sdk-sso v1.51.0 -> v1.52.0
    Updating aws-sdk-ssooidc v1.52.0 -> v1.53.0
    Updating aws-sdk-sts v1.52.0 -> v1.53.0
    Updating aws-smithy-async v1.2.2 -> v1.2.3
    Updating aws-smithy-runtime v1.7.5 -> v1.7.6
    Updating aws-smithy-types v1.2.10 -> v1.2.11
    Updating bon v3.3.0 -> v3.3.2
    Updating bon-macros v3.3.0 -> v3.3.2
    Updating cc v1.2.5 -> v1.2.6
    Updating gix-date v0.9.2 -> v0.9.3
    Updating glob v0.3.1 -> v0.3.2
    Updating jiff v0.1.15 -> v0.1.16
    Updating nybbles v0.2.1 -> v0.3.0
    Updating quote v1.0.37 -> v1.0.38
    Updating reqwest v0.12.9 -> v0.12.11
    Updating rustversion v1.0.18 -> v1.0.19
    Updating scc v2.2.6 -> v2.3.0
    Updating serde v1.0.216 -> v1.0.217
    Updating serde_derive v1.0.216 -> v1.0.217
    Updating syn v2.0.90 -> v2.0.93
    Updating tracing-tracy v0.11.3 -> v0.11.4
    Updating tracy-client v0.17.6 -> v0.18.0
    Updating unicase v2.8.0 -> v2.8.1
note: pass `--verbose` to see 13 unchanged dependencies behind latest

Co-authored-by: mattsse <[email protected]>
* chore: make clippy happy

* allow literals tring with formatting args global
chore(fmt): follow the same indent rules of other fields

Signed-off-by: jsvisa <[email protected]>
* feat: update revm 19 alloy 09

* clippy

* updata test

* add back max data gas check
add comment to -r option about default value
9547 and others added 14 commits January 3, 2025 11:07
* fix(anvil): ipc append a newline

Signed-off-by: 9547 <[email protected]>

* use put_u8 instead of extend from slice

Signed-off-by: 9547 <[email protected]>

---------

Signed-off-by: 9547 <[email protected]>
Signed-off-by: 9547 <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
This has to be explicitly enabled for git to utilize its enhanced rust diffing, evidently. 

ref: rust-lang/rust#78882

Co-authored-by: zerosnacks <[email protected]>
Locking 56 packages to latest compatible versions
    Updating alloy-chains v0.1.51 -> v0.1.52
    Updating alloy-consensus v0.9.1 -> v0.9.2
    Updating alloy-consensus-any v0.9.1 -> v0.9.2
    Updating alloy-contract v0.9.1 -> v0.9.2
    Updating alloy-dyn-abi v0.8.16 -> v0.8.18
    Updating alloy-eips v0.9.1 -> v0.9.2
    Updating alloy-genesis v0.9.1 -> v0.9.2
    Updating alloy-json-abi v0.8.16 -> v0.8.18
    Updating alloy-json-rpc v0.9.1 -> v0.9.2
    Updating alloy-network v0.9.1 -> v0.9.2
    Updating alloy-network-primitives v0.9.1 -> v0.9.2
    Updating alloy-node-bindings v0.9.1 -> v0.9.2
    Updating alloy-primitives v0.8.16 -> v0.8.18
    Updating alloy-provider v0.9.1 -> v0.9.2
    Updating alloy-pubsub v0.9.1 -> v0.9.2
    Updating alloy-rpc-client v0.9.1 -> v0.9.2
    Updating alloy-rpc-types v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-anvil v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-any v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-debug v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-engine v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-eth v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-trace v0.9.1 -> v0.9.2
    Updating alloy-rpc-types-txpool v0.9.1 -> v0.9.2
    Updating alloy-serde v0.9.1 -> v0.9.2
    Updating alloy-signer v0.9.1 -> v0.9.2
    Updating alloy-signer-aws v0.9.1 -> v0.9.2
    Updating alloy-signer-gcp v0.9.1 -> v0.9.2
    Updating alloy-signer-ledger v0.9.1 -> v0.9.2
    Updating alloy-signer-local v0.9.1 -> v0.9.2
    Updating alloy-signer-trezor v0.9.1 -> v0.9.2
    Updating alloy-sol-macro v0.8.16 -> v0.8.18
    Updating alloy-sol-macro-expander v0.8.16 -> v0.8.18
    Updating alloy-sol-macro-input v0.8.16 -> v0.8.18
    Updating alloy-sol-type-parser v0.8.16 -> v0.8.18
    Updating alloy-sol-types v0.8.16 -> v0.8.18
    Updating alloy-transport v0.9.1 -> v0.9.2
    Updating alloy-transport-http v0.9.1 -> v0.9.2
    Updating alloy-transport-ipc v0.9.1 -> v0.9.2
    Updating alloy-transport-ws v0.9.1 -> v0.9.2
    Updating async-trait v0.1.83 -> v0.1.84
    Updating aws-config v1.5.12 -> v1.5.13
    Updating aws-runtime v1.5.2 -> v1.5.3
    Updating aws-sdk-kms v1.53.0 -> v1.54.0
    Updating aws-sdk-sso v1.52.0 -> v1.53.0
    Updating aws-sdk-ssooidc v1.53.0 -> v1.54.0
    Updating aws-sdk-sts v1.53.0 -> v1.54.0
    Updating bstr v1.11.1 -> v1.11.3
    Updating cc v1.2.6 -> v1.2.7
    Removing diff v0.1.13
    Removing hex-literal v0.4.1
    Updating instability v0.3.5 -> v0.3.6
    Updating jiff v0.1.18 -> v0.1.21
    Removing pretty_assertions v1.4.1
    Updating schnellru v0.2.3 -> v0.2.4
    Updating syn v2.0.93 -> v2.0.94
    Updating syn-solidity v0.8.16 -> v0.8.18
    Updating tempfile v3.14.0 -> v3.15.0
    Updating winnow v0.6.21 -> v0.6.22
note: pass `--verbose` to see 12 unchanged dependencies behind latest

Co-authored-by: mattsse <[email protected]>
forge: rm subcommand debug

Co-authored-by: 9547 <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
* feat(test): add Issue8566 testcase

Signed-off-by: 9547 <[email protected]>

* bump alloy to 0.8.18

Signed-off-by: 9547 <[email protected]>

---------

Signed-off-by: 9547 <[email protected]>
* globalopts -> globalargs

* consistently use opts for configurations, args for command line arguments
@MBerguer MBerguer requested a review from a team as a code owner January 7, 2025 00:12
@@ -21,6 +21,8 @@ use forge_verify::{zk_provider::CompilerVerificationContext, RetryArgs, Verifier
use foundry_cli::{
opts::{CoreBuildArgs, EthereumOpts, EtherscanOpts, TransactionOpts},
utils::{self, read_constructor_args_file, remove_contract, remove_zk_contract, LoadConfig},
opts::{BuildOpts, EthereumOpts, EtherscanOpts, TransactionOpts},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple of repeated imports here, this conflict happens because there are somethings we import (e.g remove_zk_contract ) that upstream does not. Maybe check the specific imports added on upstream and add them to the two above.

@elfedy
Copy link
Contributor

elfedy commented Jan 7, 2025

CONFLICT (content): Merge conflict in foundryup-zksync/README.md
CONFLICT (content): Merge conflict in foundryup-zksync/foundryup-zksync

These two files are not in upstream so if you got a conflict here something weird is going on

@MBerguer MBerguer force-pushed the upstream-5e72c69-merge branch from bdf9df8 to e797f06 Compare January 9, 2025 20:35
@MBerguer MBerguer merged commit e797f06 into upstream-5e72c69 Jan 9, 2025
24 of 77 checks passed
@MBerguer MBerguer deleted the upstream-5e72c69-merge branch January 9, 2025 20:58
@MBerguer
Copy link
Contributor Author

MBerguer commented Jan 9, 2025

I did quite a few things to update this:

First, regarding your question @elfedy, yes, these files are not upstream, but those are under a rename of the folder foundryup to foundryup-zksync, and my git can recognize the rename back in the file history, so it is tracking the changes as if they were the same file.

But don't worry, I accepted our changes because they made more sense for us.

CONFLICT (content): Merge conflict in foundryup-zksync/README.md
CONFLICT (content): Merge conflict in foundryup-zksync/foundryup-zksync

Until we merge the alloy-zksync update and publish the new version (cc: @popzxc), I'm pointing our toml to that specific commit. Otherwise, this is not able to compile because of a change in how alloy handles the Network crate.

Tests are still failing; I'm working on this now in a separate PR

@popzxc
Copy link
Member

popzxc commented Jan 10, 2025

@MBerguer the fix in anvil-zksync is merged, so I guess alloy-zksync update would be unblocked as soon as we release a new version (should happen soon).

@elfedy elfedy changed the title feat: sync with upstream 5e72c69 feat: supstream 5e72c69 merge Jan 10, 2025
@elfedy elfedy changed the title feat: supstream 5e72c69 merge feat: upstream 5e72c69 merge Jan 10, 2025
@elfedy
Copy link
Contributor

elfedy commented Jan 10, 2025

@MBerguer sounds good. Updated the title to reflect this PR is to solve merge conflict and it's not the final sync

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.