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: merge with upstream v14.0.0 #67

Merged
merged 93 commits into from
Sep 18, 2024
Merged

chore: merge with upstream v14.0.0 #67

merged 93 commits into from
Sep 18, 2024

Conversation

pythonberg1997
Copy link
Contributor

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Potential Impacts

  • add potential impacts for other components here
  • ...

rakita and others added 30 commits July 8, 2024 17:17
* defer bytecode load

* apply review
Bumps [alloy-rlp](https://github.com/alloy-rs/rlp) from 0.3.5 to 0.3.7.
- [Changelog](https://github.com/alloy-rs/rlp/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/rlp@v0.3.5...v0.3.7)

---
updated-dependencies:
- dependency-name: alloy-rlp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](bitflags/bitflags@2.5.0...2.6.0)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.203 to 1.0.204.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](serde-rs/serde@v1.0.203...v1.0.204)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.117 to 1.0.120.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.117...v1.0.120)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: use `kzg-rs`

* fix: use `c-kzg` by default in std env

* refactor: feature gate by `c-kzg`

* fix: use published crate

* fix: `kzg-rs` import

* feat: use `cfg_if` for `kzg-rs` imports

* feat: use `kzg-rs`

* fix: `kzg-rs` import

* chore: add `kzg-rs` feature to revm-interpreter

* fix: check kzg-rs enable in revm/precompile

* fix: kzg-rs include once_cell and derive_more in primitives, update feature tags

* Update crates/primitives/src/lib.rs

* Update crates/precompile/src/lib.rs

* Update crates/primitives/Cargo.toml

* Update crates/revm/Cargo.toml

* Update crates/precompile/Cargo.toml

* Update crates/primitives/src/lib.rs

---------

Co-authored-by: rakita <rakita@users.noreply.github.com>
…1600)

* chore: Refactor code, and check is precompile for create colision

* remove some TODOs for eofcreate nonce
* fix(EOF): MIN_CALLEE_GAS light failure, static-mode check

* clear buffer

* readd min caller gas
* refactor: group optimism invalid txn errors

* Update crates/primitives/src/result.rs
* fix(eof): Use cfg code size limit for eofcreate

* Update crates/revm/src/context/inner_evm_context.rs

* simplify
* feat(EOF): Bytecode::new_raw supports EOF, new_raw_checked added

* Use from abbreviation
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@1.0.61...1.0.62)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [alloy-primitives](https://github.com/alloy-rs/core) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/alloy-rs/core/releases)
- [Changelog](https://github.com/alloy-rs/core/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/core@v0.7.6...v0.7.7)

---
updated-dependencies:
- dependency-name: alloy-primitives
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [alloy-sol-macro](https://github.com/alloy-rs/core) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/alloy-rs/core/releases)
- [Changelog](https://github.com/alloy-rs/core/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/core@v0.7.6...v0.7.7)

---
updated-dependencies:
- dependency-name: alloy-sol-macro
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](tokio-rs/bytes@v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: bytes
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [alloy-sol-types](https://github.com/alloy-rs/core) from 0.7.6 to 0.7.7.
- [Release notes](https://github.com/alloy-rs/core/releases)
- [Changelog](https://github.com/alloy-rs/core/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/core@v0.7.6...v0.7.7)

---
updated-dependencies:
- dependency-name: alloy-sol-types
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(eip7702): Add tests and fix some bugs

* passing tests

* remove disabling of state clear, fix eip7702

* fmt/clippy rm comments

* add CI for eof and prague tests

* code cleanup

* fmt
* feat(eof): cli eof-validation

* cleanup, remove old tests

* rm eof verification test
* chore: bump alloy deps

* add From
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
dependabot bot and others added 18 commits August 9, 2024 20:43
Bumps [alloy-provider](https://github.com/alloy-rs/alloy) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/alloy-rs/alloy/releases)
- [Changelog](https://github.com/alloy-rs/alloy/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/alloy@v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: alloy-provider
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [alloy-transport](https://github.com/alloy-rs/alloy) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/alloy-rs/alloy/releases)
- [Changelog](https://github.com/alloy-rs/alloy/blob/main/CHANGELOG.md)
- [Commits](alloy-rs/alloy@v0.2.0...v0.2.1)

---
updated-dependencies:
- dependency-name: alloy-transport
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [enumn](https://github.com/dtolnay/enumn) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/dtolnay/enumn/releases)
- [Commits](dtolnay/enumn@0.1.13...0.1.14)

---
updated-dependencies:
- dependency-name: enumn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.6.1 to 1.7.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](tokio-rs/bytes@v1.6.1...v1.7.1)

---
updated-dependencies:
- dependency-name: bytes
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.204 to 1.0.209.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](serde-rs/serde@v1.0.204...v1.0.209)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update memory.md

* Update bits.md

* Update kzg.md

* Update documentation/src/crates/primitives/kzg.md

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>

* Update bits.md

---------

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
* chore: bump c-kzg v2.0.0

* feat: cleanup c-kzg kzgsetting

* rm kzg-rs from no_std check
* chore: bump `kzg-rs` version

* fix: remove serde req

* ci: check `kzg-rs` in no-std mode

* chore: update kzg-rs dep

* Update .github/workflows/ci.yml

* Update .github/workflows/ci.yml
* fix: cast block number to u64 and not usize

* clippy
* latest eip7702 wip

* add code loading handler

* WIP adding is_delegate_cold flag

* feat: add StateLoad and Eip7702CodeLoad

* feat: add gas accounting among other things

* clippy,fmt, op test

* path to latest alloy-eips

* comment eip7702 decode tests

* Eip7702 format starts with 0xEF0100

* typo

* fix(eip7702): fix empty or eip7702 code check

* Type Eip7702s to Eip7702

* Corrent comments

* switch new and new_raw Eip7702Bytecode

* propagate last commit

* nit: rename fn

* fix(eip7702): set delegated code on call (#1706)

* type change, return eip7702 raw on Bytecode::bytecode

* eip7702 delegation test

* Cleanup, refactor sstore gas calc

* doc

* chore: add AuthList json format

* fix initial eip7702 gas, fix eip7702 refund on revert

* small refactor

* fix refund cnt

* error handling, EIP-3607 fix, wip on auth validity

* add auth validity check, fix EIP-3607 fix

* switch tests

* missing comment

* fix tests

* rm println

* remove skip of required fields

* docs, test meta dat
* latest eip7702 wip

* add code loading handler

* WIP adding is_delegate_cold flag

* feat: add StateLoad and Eip7702CodeLoad

* feat: add gas accounting among other things

* clippy,fmt, op test

* path to latest alloy-eips

* comment eip7702 decode tests

* Eip7702 format starts with 0xEF0100

* typo

* fix(eip7702): fix empty or eip7702 code check

* Type Eip7702s to Eip7702

* Corrent comments

* switch new and new_raw Eip7702Bytecode

* propagate last commit

* nit: rename fn

* fix(eip7702): set delegated code on call (#1706)

* type change, return eip7702 raw on Bytecode::bytecode

* eip7702 delegation test

* Cleanup, refactor sstore gas calc

* doc

* chore: add AuthList json format

* chore(deps): bump alloy

* fix initial eip7702 gas, fix eip7702 refund on revert

* small refactor

* fix refund cnt

* error handling, EIP-3607 fix, wip on auth validity

* rm patches

* add auth validity check, fix EIP-3607 fix

* switch tests

* missing comment

* fix tests

* rm println

* remove skip of required fields

* docs, test meta dat
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Aug 30, 2024

Valgrind Results:

==6258== Cachegrind, a cache and branch-prediction profiler
==6258== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote et al.
==6258== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==6258== Command: target/release/snailtracer
==6258== 
--6258-- warning: L3 cache found, using its data for the LL simulation.
Running snailtracer example!
elapsed: 1.821606052s
==6258== 
==6258== I   refs:      426,714,686
==6258== I1  misses:          3,104
==6258== LLi misses:          2,835
==6258== I1  miss rate:        0.00%
==6258== LLi miss rate:        0.00%
==6258== 
==6258== D   refs:      204,178,952  (132,371,525 rd   + 71,807,427 wr)
==6258== D1  misses:        342,611  (    202,690 rd   +    139,921 wr)
==6258== LLd misses:        137,683  (      4,380 rd   +    133,303 wr)
==6258== D1  miss rate:         0.2% (        0.2%     +        0.2%  )
==6258== LLd miss rate:         0.1% (        0.0%     +        0.2%  )
==6258== 
==6258== LL refs:           345,715  (    205,794 rd   +    139,921 wr)
==6258== LL misses:         140,518  (      7,215 rd   +    133,303 wr)
==6258== LL miss rate:          0.0% (        0.0%     +        0.2%  )

@pythonberg1997 pythonberg1997 force-pushed the merge-v14.0.0 branch 2 times, most recently from 2a5c69c to db7424c Compare August 30, 2024 09:03
@unclezoro unclezoro merged commit a65da6e into develop Sep 18, 2024
26 checks passed
@pythonberg1997 pythonberg1997 deleted the merge-v14.0.0 branch September 19, 2024 08:13
@j75689 j75689 mentioned this pull request Oct 9, 2024
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.