Skip to content

Commit c45fafe

Browse files
byteflyfunnyPinelliaCclabbyrefcellsergerad
authored
Mantle kona mpt (#4)
* adjust kona code to support Mantle's current version - Updated kona-executor codebase to ensure compatibility with the latest Mantle version * feat: Add EigenDA as a new data source for retrieval * feature: Adjust derive code to adapt to the Mantle version. * feature: Adjust derive code to adapt to the Mantle version. * feat: adapt revm for mantle * feature: Adjust derive code to adapt to the Mantle version. * remove grpc request method for zkvm compile * add test; * update revm * add some errors type * pub use some types * Refactor code structure; update alloy package version; add new features. * change bin for proof * remove da_indexer * remove da_indexer * chore: Improve error handling messages for Eigen DA * add log info * add log info * add log info * add log info * add log info * add log info * fix bug in eigen da blob size * debug derive * debug derive * debug derive * debug derive * fix: set base_fee to None (#2) * build: remove useless deps * fix: Prior to Holocene activation, this base_fee should always be none * fix: use non problematic hashmap fns * Synchronize the latest remote repository code on the main branch; rebase the development branch onto the main branch. * feat(build): Adjust RV target - `riscv64g` -> `riscv64ima` (op-rs#868) * feat(build): `riscv64g` -> `riscv64ima` * turn off `ziscr`, `zfencei`, `zicntr`, `zihpm` * fmt * fix * fix(derive): `BatchStream` Past batch handling (op-rs#876) * fix(derive): `BatchStream` Past batch handling * test * feat(build): Bump `asterisc-builder` version (op-rs#879) * fix: op-rs rename (op-rs#883) * fix: op-rs rename * fix: justfile * chore: op-rs rename: * chore(derive): Test Ignoring EIP-7702 (op-rs#887) * fix: Small Spelling Issue (op-rs#893) * Move temporary error logs to lower level than WARN (op-rs#897) * chore: fix some typos in comment (op-rs#906) Signed-off-by: piguagua <piguagua@aliyun.com> * feat(driver): Multi-block derivation (op-rs#888) Co-authored-by: refcell <abigger87@gmail.com> * chore(executor): Remove `anyhow` dev-dependency (op-rs#937) * feat: use empty requests hash when isthmus enabled (op-rs#951) * feat: Derive Eq/Ord/Hash for (Archived) PreimageKey(Type) (op-rs#956) * feat: allow 7702 receipts after Isthmus active (op-rs#959) * feat: fill eip 7702 tx env with auth list (op-rs#958) Co-authored-by: refcell <abigger87@gmail.com> * feat(executor): EIP-2935 Syscall Support [ISTHMUS] (op-rs#963) * feat(executor): EIP-7251 Syscall Support [ISTHMUS] (op-rs#968) * chore(executor): TxEnv Stuffing (op-rs#970) * feat(client): EIP-2537 BLS12-381 Curve Precompile Acceleration (op-rs#960) Co-authored-by: clabby <ben@clab.by> * chore(executor): De-duplicate `TrieAccount` type (op-rs#977) * fix(executor): Removes EIP-7002 and EIP-7251 Pre-block Calls (op-rs#990) * feat(proof-sdk): Cleanup `Hint` API (op-rs#998) * feat(mpt): Copy-on-hash (op-rs#1001) * feat(host): Accelerate all BLS12-381 Precompiles (op-rs#1010) * chore(client): Dedup MSM Required Gas Fn (op-rs#1012) * chore(client): Precompile Run Macro (op-rs#1014) * feat(executor): Sort trie keys (op-rs#1016) * feat(ci): Remove support for features after MSRV (op-rs#1018) * update upstream kona with some cherry pick commit * implemente clear func in eigenda source * fix: deposit_receipt_version should be None (#6) * fix: deposit_receipt_version should be None * chore: cargo fmt * Mantle kona mpt verify (#7) * downgrade the version of crossbeam-channel * Integrated the adjusted Hokulea and rust-kzg-bn254. * Integrated the eigenda verify * Adjust the EigenDA blob saving method to temporarily use one-time saving. * Optimize EigenDA blob data caching and proof generation. * optimize log levels * feat: support 7702 && cargo fmt * fix decode blob data bug * change eigen da point file * update op-alloy * without verification for commitment * remove point file --------- Co-authored-by: PinelliaC <wylbzc4928@gmail.com> --------- Signed-off-by: piguagua <piguagua@aliyun.com> Co-authored-by: PinelliaC <wylbzc4928@gmail.com> Co-authored-by: clabby <ben@clab.by> Co-authored-by: refcell <abigger87@gmail.com> Co-authored-by: Serge Radinovich <47865535+sergerad@users.noreply.github.com> Co-authored-by: piguagua <piguagua@aliyun.com> Co-authored-by: Rami <2418646+hashcashier@users.noreply.github.com> Co-authored-by: Julian Meyer <julianmeyer2000@gmail.com> Co-authored-by: Julian Meyer <julian.meyer@coinbase.com> Co-authored-by: Ratan Kaliani <ratankaliani@berkeley.edu>
1 parent 7a40d87 commit c45fafe

File tree

171 files changed

+7606
-6105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+7606
-6105
lines changed

.github/workflows/action_tests.yaml

+22-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
uses: actions/checkout@v4
1717
- uses: taiki-e/install-action@just
1818
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: llvm-tools-preview
21+
toolchain: 1.81
22+
- uses: taiki-e/install-action@cargo-llvm-cov
1923
- name: Clone monorepo
2024
run: just monorepo
2125
- uses: Swatinem/rust-cache@v2
@@ -31,8 +35,25 @@ jobs:
3135
uses: autero1/action-gotestsum@v2.0.0
3236
with:
3337
gotestsum_version: 1.12.0
38+
- name: Setup yq
39+
uses: dcarbone/install-yq-action@v1
40+
- name: Extract monorepo forge version
41+
id: collect-versions
42+
run: |
43+
echo "forge-version=$(yq '.tools.forge' monorepo/mise.toml | tr -d '\n')" >> $GITHUB_OUTPUT
3444
- name: Install Foundry
3545
uses: foundry-rs/foundry-toolchain@v1
36-
- name: Run Actions Tests
46+
with:
47+
version: ${{ steps.collect-versions.outputs.forge-version }}
48+
- name: Run Action Tests
3749
run: |
50+
source <(cargo llvm-cov show-env --export-prefix)
3851
just action-tests
52+
cargo llvm-cov report --lcov --output-path actions_cov.lcov
53+
- name: Upload coverage to codecov.io
54+
uses: codecov/codecov-action@v5
55+
with:
56+
fail_ci_if_error: true
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
env_vars: OS,RUST
59+
files: actions_cov.lcov

.github/workflows/book.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- uses: dtolnay/rust-toolchain@stable
17+
with:
18+
toolchain: 1.81
1719
- name: Setup mdbook
1820
run: |
1921
cargo install --version 0.4.40 mdbook

.github/workflows/client_host.yaml

+24-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ jobs:
1212
strategy:
1313
matrix:
1414
target: ["native", "asterisc"]
15-
name: ["OP Sepolia (Granite) - Block #16491249"]
15+
name: ["OP Sepolia (Holocene) - Block #22012816"]
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 20
1818
steps:
1919
- name: Checkout sources
2020
uses: actions/checkout@v4
2121
- uses: taiki-e/install-action@just
22+
- uses: taiki-e/install-action@cargo-llvm-cov
2223
- name: Install Rust stable toolchain
2324
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
components: llvm-tools-preview
27+
toolchain: 1.81
2428
- uses: Swatinem/rust-cache@v2
2529
with:
2630
cache-on-failure: true
@@ -45,26 +49,28 @@ jobs:
4549
- name: Build `asterisc`
4650
if: "!contains(matrix.target, 'native')"
4751
run: |
48-
cd asterisc && git checkout v1.1.2 && make build-rvgo
52+
cd asterisc && git checkout v1.2.0 && make build-rvgo
4953
mv ./rvgo/bin/asterisc /usr/local/bin/
5054
- name: Set run environment
5155
run: |
52-
if [[ ${{ contains(matrix.name, 16491249) }} == true ]]; then
53-
BLOCK_NUMBER=16491249
56+
if [[ ${{ contains(matrix.name, 22012816) }} == true ]]; then
57+
BLOCK_NUMBER=22012816
5458
echo "BLOCK_NUMBER=$BLOCK_NUMBER" >> $GITHUB_ENV
55-
echo "L2_CLAIM=0x82da7204148ba4d8d59e587b6b3fdde5561dc31d9e726220f7974bf9f2158d75" >> $GITHUB_ENV
56-
echo "L2_OUTPUT_ROOT=0xa548f22e1aa590de7ed271e3eab5b66c6c3db9b8cb0e3f91618516ea9ececde4" >> $GITHUB_ENV
57-
echo "L2_HEAD=0x09b298a83baf4c2e3c6a2e355bb09e27e3fdca435080e8754f8749233d7333b2" >> $GITHUB_ENV
58-
echo "L1_HEAD=0x33a3e5721faa4dc6f25e75000d9810fd6c41320868f3befcc0c261a71da398e1" >> $GITHUB_ENV
59+
echo "L2_CLAIM=0x42ff78e504c207c3786cb30ecb74fe915984b48649165f95bbf6f9248584be69" >> $GITHUB_ENV
60+
echo "L2_OUTPUT_ROOT=0x9084f101b85cd1c7c624946feca169768896d88b3ecf4eea3a7760bfceb9cd73" >> $GITHUB_ENV
61+
echo "L2_HEAD=0x6a34183664b9ad39de024a8d4077c78abf05198148b6dbfc6e39fbe4a70de299" >> $GITHUB_ENV
62+
echo "L1_HEAD=0x02a50d0b5a3226758a6e9b2bdeb5deb5f0779ab55b2b34a52331d0eac48c9389" >> $GITHUB_ENV
5963
echo "L2_CHAIN_ID=11155420" >> $GITHUB_ENV
60-
echo "WITNESS_TAR_NAME=granite-op-sepolia-$BLOCK_NUMBER-witness.tar.zst" >> $GITHUB_ENV
64+
echo "WITNESS_TAR_NAME=holocene-op-sepolia-$BLOCK_NUMBER-witness.tar.zst" >> $GITHUB_ENV
6165
fi
6266
- name: Decompress witness data directory
6367
run: |
6468
tar --zstd -xvf ./bin/client/testdata/$WITNESS_TAR_NAME -C .
6569
- name: Run host + client offline
6670
working-directory: ./bin/client
6771
run: |
72+
source <(cargo llvm-cov show-env --export-prefix)
73+
6874
mkdir -p ../../target
6975
just run-client-${{ matrix.target }}-offline \
7076
$BLOCK_NUMBER \
@@ -73,3 +79,12 @@ jobs:
7379
$L2_HEAD \
7480
$L1_HEAD \
7581
$L2_CHAIN_ID
82+
83+
cargo llvm-cov report --lcov --output-path client_host_cov.lcov
84+
- name: Upload coverage to codecov.io
85+
uses: codecov/codecov-action@v5
86+
with:
87+
fail_ci_if_error: true
88+
token: ${{ secrets.CODECOV_TOKEN }}
89+
env_vars: OS,RUST
90+
files: client_host_cov.lcov

.github/workflows/monorepo_pin_update.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
token: ${{ secrets.PAT_TOKEN }}
1818
- uses: taiki-e/install-action@just
1919
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
toolchain: 1.81
2022
- name: Update Monorepo Commit
2123
run: just update-monorepo
2224
- name: Create Pull Request

.github/workflows/release.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
submodules: true
1919
- name: Install Rust toolchain
2020
uses: dtolnay/rust-toolchain@stable
21+
with:
22+
toolchain: 1.81
2123
- name: Commit Cargo.lock
2224
run: |
2325
git config --local user.email "action@github.com"

.github/workflows/rust_ci.yaml

+54
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: taiki-e/install-action@just
2020
- name: Install Rust stable toolchain
2121
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
toolchain: 1.81
2224
- uses: Swatinem/rust-cache@v2
2325
with:
2426
cache-on-failure: true
@@ -70,6 +72,8 @@ jobs:
7072
- uses: taiki-e/install-action@just
7173
- name: Install Rust stable toolchain
7274
uses: dtolnay/rust-toolchain@stable
75+
with:
76+
toolchain: 1.81
7377
- uses: Swatinem/rust-cache@v2
7478
with:
7579
cache-on-failure: true
@@ -94,6 +98,8 @@ jobs:
9498
- uses: taiki-e/install-action@just
9599
- name: Install Rust stable toolchain
96100
uses: dtolnay/rust-toolchain@stable
101+
with:
102+
toolchain: 1.81
97103
- uses: Swatinem/rust-cache@v2
98104
with:
99105
cache-on-failure: true
@@ -120,6 +126,8 @@ jobs:
120126
- uses: taiki-e/install-action@just
121127
- name: Install Rust stable toolchain
122128
uses: dtolnay/rust-toolchain@stable
129+
with:
130+
toolchain: 1.81
123131
- uses: Swatinem/rust-cache@v2
124132
with:
125133
cache-on-failure: true
@@ -138,9 +146,55 @@ jobs:
138146
- uses: taiki-e/install-action@just
139147
- name: Install Rust stable toolchain
140148
uses: dtolnay/rust-toolchain@stable
149+
with:
150+
toolchain: 1.81
141151
- uses: taiki-e/install-action@cargo-hack
142152
- uses: Swatinem/rust-cache@v2
143153
with:
144154
cache-on-failure: true
145155
- name: cargo hack
146156
run: just hack
157+
coverage:
158+
runs-on: ubuntu-latest
159+
name: coverage
160+
steps:
161+
- uses: actions/checkout@v4
162+
with:
163+
submodules: true
164+
- uses: dtolnay/rust-toolchain@stable
165+
with:
166+
components: llvm-tools-preview
167+
toolchain: 1.81
168+
- uses: Swatinem/rust-cache@v2
169+
with:
170+
cache-on-failure: true
171+
- uses: taiki-e/install-action@cargo-llvm-cov
172+
- uses: taiki-e/install-action@nextest
173+
- name: cargo generate-lockfile
174+
if: hashFiles('Cargo.lock') == ''
175+
run: cargo generate-lockfile
176+
- name: cargo llvm-cov
177+
run: |
178+
RUST_MIN_STACK=33554432 cargo llvm-cov nextest \
179+
--locked \
180+
--workspace \
181+
--lcov \
182+
--output-path lcov.info \
183+
--features test-utils \
184+
--profile ci \
185+
-E '!test(test_online)' && \
186+
mv ./target/nextest/ci/junit.xml ./junit.xml
187+
- name: Record Rust version
188+
run: echo "RUST=$(rustc --version)" >> "$GITHUB_ENV"
189+
- name: Upload coverage to codecov.io
190+
uses: codecov/codecov-action@v5
191+
with:
192+
fail_ci_if_error: true
193+
token: ${{ secrets.CODECOV_TOKEN }}
194+
env_vars: OS,RUST
195+
files: lcov.info
196+
- name: Upload test results to codecov.io
197+
if: ${{ !cancelled() }}
198+
uses: codecov/test-results-action@v1
199+
with:
200+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ monorepo/
1010
# Environment Variables
1111
.env
1212

13+
.idea
14+
1315
# kona-host data-dir
1416
data/

0 commit comments

Comments
 (0)