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

Test pr #58

Merged
merged 232 commits into from
Aug 7, 2024
Merged

Test pr #58

merged 232 commits into from
Aug 7, 2024

Conversation

yutianwu
Copy link
Contributor

@yutianwu yutianwu commented Aug 7, 2024

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 April 2, 2024 22:08
Bumps [secp256k1](https://github.com/rust-bitcoin/rust-secp256k1) from 0.28.2 to 0.29.0.
- [Changelog](https://github.com/rust-bitcoin/rust-secp256k1/blob/master/CHANGELOG.md)
- [Commits](rust-bitcoin/rust-secp256k1@secp256k1-0.28.2...secp256k1-0.29.0)

---
updated-dependencies:
- dependency-name: secp256k1
  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>
… (#1243)

* feat(interpreter): remove SPEC generic from gas calculation functions

* feat(interpreter): make most gas cost calculation functions `const`

* set_final_refund

* unused

* fix: optimism

* chore: use `is_london: bool` instead of `SpecId` in `Gas::set_final_refund`
* feat: alloydb

* chore: turn on needed deps for test

* derive

* correct address

* chore: remove arc

* feat: actually make Transport and Network generic to accept any transport or network

* chore: condense markers into one, more idiomatic
* fix typo

* fix typo
* check without microbench
* cleanup
* feat: add modifies_memory macro

* refactor
* fix examples->generate_block_traces reuse TracerEip3155.gas_inspector issue

* fmt code

* clear the eip3155 tracer state so that it can be used in next transaction

* print summary and clean state when create_end

* update documentation

* fix left nits

* add cancun upgrade block number

* remove outdated doc

* remove outdated doc

* remove empty file

* TS is unit used to trigger the hardork

---------

Co-authored-by: rakita <rakita@users.noreply.github.com>
* eof

* feat(EOF): Header decoder

* EofBody decode

* disable eof deprecated opcodes

* add eof instructions

* temp tests

* rjump instructions

* eof rjump with tests

* EOF bytecode

* callf, retf, jumpf

* tests for callf,retf,jumpf

* small rename

* add dataload, dataloadn and datacopy opcodes

* refactor calls

* blueprint for creates

* eof create inputs

* some wip

* add eofcreate structs and exccall flow

* wip eofcreate code flow and handlers

* fix tests

* eof creates

* refactor eofcreate a little

* some work on extcall

* feat: refactor simplify CallInput, eof extcalls

* feat: restructure OpCode and add stack input/output num

* add flags for stack_io and not_eof

* wip eof verification

* wip validation

* EOF Bytecode validity

* insturction and jump validation seems good

* merged eof validate function

* EOP test runner, fex fixes

* RETURNDATALOAD, fix call bugs, refactor gas warm/cold calc

* debug session, rjumpv imm fix

* fixing validation bugs, bytecode decoder for EOF in revme

* pass most of validation tests

* bounds check moved to decode

* Fix merge compilation, fmt

* TXCREATE work

* remove training wheels, panic on eof

* test fix and std

* std

* fix test

* fix valgrind

* fix tests

* clippy

* removed checked logic

* small change

* no std revm-test

* check pending TODOs

* build check no_std

* doc

* chore: move some files. cleanup comments

* fix fmt,clippy and compile error
* feat: add flag to force hashbrown usage

* misc: propagate hashbrown feature flag
* feat(revm): make `FrameOrResult` serializable

This commit make all structs under `FrameOrResult` serializable, which
is useful when trying to save execution state inside an inspector during
transaction execution.

The modified structs include:

* revm: `FrameOrResult`, `FrameResult`, `Frame`, `FrameData`,
  `CallFrame`, `CreateFrame`, `JournalCheckpoint`
* interpreter: `BytecodeLocked`, `Contract`, `Gas`, `CreateOutcome`,
  `CallOutcome`, `Interpreter`

* style(interpreter): make clippy happy

* fix(interpreter): fix missing conflict

* style(interpreter): make clippy happy
* fix: correct some stack IO

* chore: remove dead code
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](dtolnay/anyhow@1.0.81...1.0.82)

---
updated-dependencies:
- dependency-name: anyhow
  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>
dependabot bot and others added 28 commits August 2, 2024 02:26
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 [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>
* bump versions for primitives

* bump revm
* feat: support Wright upgrade for opbnb

* fix lint errors

* fix lint errors
Copy link
Contributor

github-actions bot commented Aug 7, 2024

Valgrind Results:

==6506== Cachegrind, a cache and branch-prediction profiler
==6506== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote et al.
==6506== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==6506== Command: target/release/snailtracer
==6506== 
--6506-- warning: L3 cache found, using its data for the LL simulation.
Running snailtracer example!
elapsed: 1.816907855s
==6506== 
==6506== I   refs:      427,740,027
==6506== I1  misses:          3,142
==6506== LLi misses:          2,828
==6506== I1  miss rate:        0.00%
==6506== LLi miss rate:        0.00%
==6506== 
==6506== D   refs:      204,084,161  (132,274,773 rd   + 71,809,388 wr)
==6506== D1  misses:        340,825  (    200,865 rd   +    139,960 wr)
==6506== LLd misses:        137,637  (      4,345 rd   +    133,292 wr)
==6506== D1  miss rate:         0.2% (        0.2%     +        0.2%  )
==6506== LLd miss rate:         0.1% (        0.0%     +        0.2%  )
==6506== 
==6506== LL refs:           343,967  (    204,007 rd   +    139,960 wr)
==6506== LL misses:         140,465  (      7,173 rd   +    133,292 wr)
==6506== LL miss rate:          0.0% (        0.0%     +        0.2%  )

@unclezoro unclezoro merged commit 8675437 into main Aug 7, 2024
49 checks passed
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.