From be6d97f7595d7b954a57b1434a97b9470c6f1aa5 Mon Sep 17 00:00:00 2001 From: pdobacz <5735525+pdobacz@users.noreply.github.com> Date: Thu, 3 Sep 2026 11:02:17 +0000 Subject: [PATCH 1/3] feat(runloop): vendor the eest-runner harness as monad-runloop/ The monad stack comes in as one submodule pinned at upstream monad-bft master, whose monad-execution pin carries the EEST entry points. Co-Authored-By: Claude --- .github/workflows/consume_release.yaml | 125 +- .gitmodules | 5 + MONAD_RUNLOOP_TESTING.md | 38 +- monad-runloop/.gitignore | 2 + monad-runloop/LICENSE | 674 +++ monad-runloop/README.md | 107 + monad-runloop/bin/eest-runner | 25 + monad-runloop/bin/monad-mpt | 17 + monad-runloop/build.sh | 44 + monad-runloop/docker/builder/Dockerfile | 78 + monad-runloop/monad-bft | 1 + monad-runloop/rust-harness/Cargo.lock | 4208 +++++++++++++++++ monad-runloop/rust-harness/Cargo.toml | 42 + .../rust-harness/eest-runner/Cargo.toml | 25 + .../rust-harness/eest-runner/src/main.rs | 271 ++ monad-runloop/rust-harness/ledger/Cargo.toml | 27 + monad-runloop/rust-harness/ledger/src/lib.rs | 253 + monad-runloop/rust-harness/runloop/Cargo.toml | 9 + monad-runloop/rust-harness/runloop/build.rs | 4 + monad-runloop/rust-harness/runloop/src/lib.rs | 5 + .../rust-harness/runloop/src/runloop.rs | 7 + .../runloop/src/runloop_interface_monad.rs | 152 + .../client_clis/clis/monad.py | 9 +- pyproject.toml | 5 + 24 files changed, 6046 insertions(+), 87 deletions(-) create mode 100644 monad-runloop/.gitignore create mode 100644 monad-runloop/LICENSE create mode 100644 monad-runloop/README.md create mode 100755 monad-runloop/bin/eest-runner create mode 100755 monad-runloop/bin/monad-mpt create mode 100755 monad-runloop/build.sh create mode 100644 monad-runloop/docker/builder/Dockerfile create mode 160000 monad-runloop/monad-bft create mode 100644 monad-runloop/rust-harness/Cargo.lock create mode 100644 monad-runloop/rust-harness/Cargo.toml create mode 100644 monad-runloop/rust-harness/eest-runner/Cargo.toml create mode 100644 monad-runloop/rust-harness/eest-runner/src/main.rs create mode 100644 monad-runloop/rust-harness/ledger/Cargo.toml create mode 100644 monad-runloop/rust-harness/ledger/src/lib.rs create mode 100644 monad-runloop/rust-harness/runloop/Cargo.toml create mode 100644 monad-runloop/rust-harness/runloop/build.rs create mode 100644 monad-runloop/rust-harness/runloop/src/lib.rs create mode 100644 monad-runloop/rust-harness/runloop/src/runloop.rs create mode 100644 monad-runloop/rust-harness/runloop/src/runloop_interface_monad.rs diff --git a/.github/workflows/consume_release.yaml b/.github/workflows/consume_release.yaml index 9996313f680..06420543f48 100644 --- a/.github/workflows/consume_release.yaml +++ b/.github/workflows/consume_release.yaml @@ -1,5 +1,7 @@ # Manually run a filled fixtures release against a pinned monad stack via -# `consume direct` + the eest-runner runloop client. +# `consume direct` + the eest-runner runloop client. The harness lives in +# this repo under monad-runloop/; the monad stack comes in as the +# monad-runloop/monad-bft submodule and its own monad-execution submodule. name: Consume Release (monad runloop) @@ -10,12 +12,8 @@ on: description: "Fixtures source: release spec (e.g. tests-monad_runloop@v1.1.1-rc2), a fixtures.tar.gz URL, or latest" required: true default: "tests-monad_runloop@latest" - harness_ref: - description: "monad-eest-rust-harness ref (branch/tag/SHA)" - required: false - default: "main" monad_bft_repo: - description: "Override monad-bft from this owner/repo (e.g. category-labs/monad-bft); empty = keep the harness's pinned commit" + description: "Override monad-bft from this owner/repo (e.g. category-labs/monad-bft); empty = keep the pinned commit" required: false default: "" monad_bft_ref: @@ -23,7 +21,7 @@ on: required: false default: "" monad_execution_repo: - description: "Override monad-execution from this owner/repo; empty = keep the harness's pinned commit" + description: "Override monad-execution from this owner/repo; empty = keep the pinned commit" required: false default: "" monad_execution_ref: @@ -63,58 +61,62 @@ jobs: fi [ "$fail" -eq 0 ] - - name: Checkout consumer (execution-specs) - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - - name: Checkout monad-eest-rust-harness (build input) + # The monad stack arrives with the repo. actions/checkout handles + # submodule auth, so no manual credential setup is needed; the PAT + # is only required if either submodule repo is private. + - name: Checkout consumer and the monad stack uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: - repository: monad-exp/monad-eest-rust-harness - ref: ${{ inputs.harness_ref }} - path: monad-eest-rust-harness submodules: recursive fetch-depth: 0 - token: ${{ secrets.MONAD_STACK_TOKEN }} - - # Optional submodule overrides. Set a *_repo to pull that submodule from - # a different fork at *_ref (default branch if ref is empty); leave it - # empty to keep the harness's pinned commit. actions/checkout handles - # auth, so no manual credential setup is needed. The monad-bft override - # recurses (so monad-execution lands at the new bft's pin); the - # monad-execution override runs after, so it is not reset. + token: ${{ secrets.MONAD_STACK_TOKEN || github.token }} + + # Optional submodule overrides. Set a *_repo to pull that submodule + # from a different fork at *_ref (default branch if ref is empty); + # leave it empty to keep the pinned commit. The monad-bft override + # runs first and re-inits its nested monad-execution at the new + # bft's pin; the monad-execution override runs after, so it is not + # reset. - name: Override monad-bft if: ${{ inputs.monad_bft_repo != '' }} - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - repository: ${{ inputs.monad_bft_repo }} - ref: ${{ inputs.monad_bft_ref }} - path: monad-eest-rust-harness/monad-bft - submodules: recursive - fetch-depth: 0 - token: ${{ secrets.MONAD_STACK_TOKEN }} + shell: bash + env: + REPO: ${{ inputs.monad_bft_repo }} + REF: ${{ inputs.monad_bft_ref }} + TOKEN: ${{ secrets.MONAD_STACK_TOKEN || github.token }} + run: | + set -euo pipefail + url="https://x-access-token:${TOKEN}@github.com/${REPO}.git" + git -C monad-runloop/monad-bft fetch --depth=1 "$url" "${REF:-HEAD}" + git -C monad-runloop/monad-bft checkout --detach FETCH_HEAD + git -C monad-runloop/monad-bft submodule update --init --recursive - name: Override monad-execution if: ${{ inputs.monad_execution_repo != '' }} - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - repository: ${{ inputs.monad_execution_repo }} - ref: ${{ inputs.monad_execution_ref }} - path: monad-eest-rust-harness/monad-bft/monad-execution - submodules: recursive - fetch-depth: 0 - token: ${{ secrets.MONAD_STACK_TOKEN }} + shell: bash + env: + REPO: ${{ inputs.monad_execution_repo }} + REF: ${{ inputs.monad_execution_ref }} + TOKEN: ${{ secrets.MONAD_STACK_TOKEN || github.token }} + run: | + set -euo pipefail + url="https://x-access-token:${TOKEN}@github.com/${REPO}.git" + exec_dir=monad-runloop/monad-bft/monad-execution + git -C "$exec_dir" fetch --depth=1 "$url" "${REF:-HEAD}" + git -C "$exec_dir" checkout --detach FETCH_HEAD + git -C "$exec_dir" submodule update --init --recursive - name: Log pinned stack id: stack - working-directory: monad-eest-rust-harness shell: bash run: | - harness=$(git rev-parse HEAD) - bft=$(git -C monad-bft rev-parse HEAD) - exec=$(git -C monad-bft/monad-execution rev-parse HEAD) - echo "harness: $harness" - echo "monad-bft: $bft" - echo "monad-execution: $exec" + set -euo pipefail + harness=$(git rev-parse HEAD:monad-runloop) + bft=$(git -C monad-runloop/monad-bft rev-parse HEAD) + exec=$(git -C monad-runloop/monad-bft/monad-execution rev-parse HEAD) + echo "monad-runloop tree: $harness" + echo "monad-bft: $bft" + echo "monad-execution: $exec" { echo "harness=$harness" echo "bft=$bft" @@ -124,24 +126,23 @@ jobs: # The monad-builder image is a fixed toolchain built from a bare # Dockerfile (no build context), and it is needed both by build.sh # and at consume time (the bin/ wrappers run the binary inside it). - # Cache it as a tarball keyed on the Dockerfile so it rebuilds only - # when the toolchain changes. + # Cache it as a tarball keyed on the vendored Dockerfile so it + # rebuilds only when the toolchain changes. - name: Restore monad-builder image id: image-cache uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: path: /tmp/monad-builder.tar - key: monad-builder-${{ runner.os }}-${{ hashFiles('monad-eest-rust-harness/monad-bft/docker/builder/Dockerfile') }} + key: monad-builder-${{ runner.os }}-${{ hashFiles('monad-runloop/docker/builder/Dockerfile') }} - name: Build or load the monad-builder image - working-directory: monad-eest-rust-harness shell: bash run: | if [ -f /tmp/monad-builder.tar ]; then docker load -i /tmp/monad-builder.tar else docker build -t monad-builder:latest \ - - < monad-bft/docker/builder/Dockerfile + - < monad-runloop/docker/builder/Dockerfile docker save -o /tmp/monad-builder.tar monad-builder:latest fi @@ -152,29 +153,29 @@ jobs: path: /tmp/monad-builder.tar key: ${{ steps.image-cache.outputs.cache-primary-key }} - # build.sh bind-mounts the harness root, so cargo/cmake output lands - # on the host under install/. Cache it keyed on the exact resolved - # stack (harness + monad-bft + monad-execution) plus the toolchain, - # so re-running the same stack skips the ~10 min build. Exact match + # build.sh bind-mounts monad-runloop/, so cargo/cmake output lands on + # the host under monad-runloop/install/. Cache it keyed on the exact + # resolved stack (harness tree + monad-bft + monad-execution) plus the + # toolchain, so re-running the same stack skips the ~10 min build and + # docs-only commits elsewhere in the repo do not bust it. Exact match # only: an install/ from a different stack would be wrong. - name: Restore eest-runner install/ id: install-cache uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: - path: monad-eest-rust-harness/install - key: eest-install-${{ runner.os }}-${{ hashFiles('monad-eest-rust-harness/monad-bft/docker/builder/Dockerfile') }}-${{ steps.stack.outputs.harness }}-${{ steps.stack.outputs.bft }}-${{ steps.stack.outputs.exec }} + path: monad-runloop/install + key: eest-install-${{ runner.os }}-${{ hashFiles('monad-runloop/docker/builder/Dockerfile') }}-${{ steps.stack.outputs.harness }}-${{ steps.stack.outputs.bft }}-${{ steps.stack.outputs.exec }} - name: Build the eest-runner stack (build.sh) if: steps.install-cache.outputs.cache-hit != 'true' - working-directory: monad-eest-rust-harness shell: bash - run: ./build.sh + run: ./monad-runloop/build.sh - name: Save eest-runner install/ if: steps.install-cache.outputs.cache-hit != 'true' uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: - path: monad-eest-rust-harness/install + path: monad-runloop/install key: ${{ steps.install-cache.outputs.cache-primary-key }} - name: Setup uv @@ -201,7 +202,7 @@ jobs: fi uv run consume direct \ --input "$RELEASE" \ - --bin "$GITHUB_WORKSPACE/monad-eest-rust-harness/bin/eest-runner" \ + --bin "$GITHUB_WORKSPACE/monad-runloop/bin/eest-runner" \ "${FILTER_ARG[@]}" -v | tee consume.log - name: Summary @@ -210,7 +211,7 @@ jobs: env: RELEASE: ${{ inputs.release }} FILTER: ${{ inputs.filter || '(none)' }} - HARNESS_REF: ${{ inputs.harness_ref }} + HARNESS_TREE: ${{ steps.stack.outputs.harness }} BFT_SHA: ${{ steps.stack.outputs.bft }} EXEC_SHA: ${{ steps.stack.outputs.exec }} run: | @@ -219,7 +220,7 @@ jobs: echo "" echo "| input | value |" echo "|---|---|" - echo "| harness_ref | \`${HARNESS_REF}\` |" + echo "| monad-runloop tree | \`${HARNESS_TREE:-(unknown)}\` |" echo "| monad-bft | \`${BFT_SHA:-(unknown)}\` |" echo "| monad-execution | \`${EXEC_SHA:-(unknown)}\` |" echo "| filter | \`${FILTER:-(none)}\` |" diff --git a/.gitmodules b/.gitmodules index 3152990094c..103f567188e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,8 @@ path = tests/benchmark/stateful/bloatnet/depth_benchmarks/.worst_case_miner url = https://github.com/CPerezz/worst_case_miner branch = master + +[submodule "monad-runloop/monad-bft"] + path = monad-runloop/monad-bft + url = https://github.com/pdobacz/monad-bft.git + branch = eestnet/master diff --git a/MONAD_RUNLOOP_TESTING.md b/MONAD_RUNLOOP_TESTING.md index c8d502d1f4d..aa24d167b61 100644 --- a/MONAD_RUNLOOP_TESTING.md +++ b/MONAD_RUNLOOP_TESTING.md @@ -10,10 +10,13 @@ executed result. | Repo / branch | Role | |---|---| -| `monad-exp/monad-eest-rust-harness` | `eest-runner` harness: builds consensus blocks from a fixture and runs them on the runloop | -| `monad-bft` @ `execute-with-eestnet` (submodule of the above) | consensus block types + ledger writer; pins monad-execution below | -| `monad` @ `execute-with-eestnet` (submodule of monad-bft) | execution client with the `EestNet` chain (id 30143, per-fixture revision schedule, runtime genesis) and the extended `monad_runloop_*` FFI | -| this repo | `MonadFixtureConsumer` (`packages/testing/.../client_clis/clis/monad.py`) wired into `consume direct` | +| this repo | the `eest-runner` harness under `monad-runloop/`, plus the `MonadFixtureConsumer` (`packages/testing/.../client_clis/clis/monad.py`) wired into `consume direct` | +| `monad-bft` @ `eestnet/master` (submodule `monad-runloop/monad-bft`) | consensus block types + ledger writer; pins monad-execution below | +| `monad` @ `eestnet/main` (submodule of monad-bft) | execution client with the `EestNet` chain (id 30143, per-fixture revision schedule, runtime genesis) and the extended `monad_runloop_*` FFI | + +Both submodule branches are upstream (`category-labs/monad-bft@master`, +`category-labs/monad@main`) plus, on monad only, the one commit that adds +the EEST entry points. ## One-time setup @@ -21,28 +24,21 @@ Requirements: docker, ~10 GB disk for the builder image and build artifacts, ~6 GB RAM for hugepages. ```sh -git clone --branch main \ - git@github.com:monad-exp/monad-eest-rust-harness.git -cd monad-eest-rust-harness -git submodule update --init --recursive - -# Toolchain image (gcc-15 + rust), from monad-bft's Dockerfile: -curl -fsSL https://raw.githubusercontent.com/category-labs/monad-bft/master/docker/builder/Dockerfile \ - | docker build -t monad-builder:latest - +git submodule update --init --recursive monad-runloop/monad-bft -./build.sh # builds + syncs binaries/libs into install/ -bin/eest-runner --version -``` +# Toolchain image (gcc-15 + rust), from the vendored Dockerfile: +docker build -t monad-builder:latest \ + - < monad-runloop/docker/builder/Dockerfile -In this repo: +./monad-runloop/build.sh # builds + syncs binaries/libs into install/ +monad-runloop/bin/eest-runner --version -```sh uv sync ``` -Always rebuild with `./build.sh`; it syncs `libmonad_execution.so` -alongside the binary (copying only the binary leaves a stale library -that fails silently). +Always rebuild with `./monad-runloop/build.sh`; it syncs +`libmonad_execution.so` alongside the binary (copying only the binary +leaves a stale library that fails silently). ## Fill + consume @@ -52,7 +48,7 @@ uv run fill --clean -m blockchain_test \ --output ../fixtures_eestnet uv run consume direct --input ../fixtures_eestnet \ - --bin ../monad-eest-rust-harness/bin/eest-runner + --bin monad-runloop/bin/eest-runner ``` - `--monad-runloop` stamps monad blocks with the consensus-derived diff --git a/monad-runloop/.gitignore b/monad-runloop/.gitignore new file mode 100644 index 00000000000..0556a050129 --- /dev/null +++ b/monad-runloop/.gitignore @@ -0,0 +1,2 @@ +install/ +rust-harness/target/ diff --git a/monad-runloop/LICENSE b/monad-runloop/LICENSE new file mode 100644 index 00000000000..f288702d2fa --- /dev/null +++ b/monad-runloop/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/monad-runloop/README.md b/monad-runloop/README.md new file mode 100644 index 00000000000..8f76328a6af --- /dev/null +++ b/monad-runloop/README.md @@ -0,0 +1,107 @@ +# monad runloop harness + +Executes EEST (execution-spec-tests) blockchain fixtures against the +monad runloop, feeding blocks through the consensus ledger directory. +Each fixture's `postState` is compared against the executed result by +the `MonadFixtureConsumer` in this repo via `consume direct`. See +`MONAD_RUNLOOP_TESTING.md` at the repo root for the full fill + consume +pipeline. + +The sources under `rust-harness/ledger/` and `rust-harness/runloop/` +carry Category Labs GPL-3 headers, so this subtree keeps its own +`LICENSE` rather than the repo's CC0. + +## Layout + +- `rust-harness/` — cargo workspace: + - `ledger/` — builds, signs, and writes consensus blocks (ported + from `monad-execution-fuzzer`, OCaml dependency dropped), + - `runloop/` — Rust bindings for the `monad_runloop_*` C++ FFI, + - `eest-runner/` — the harness binary: installs the fixture `pre` + as genesis, proposes/finalizes the fixture blocks, runs them on + the monad runloop (EestNet chain, id 30143), emits the + post-state as JSON. +- `monad-bft` — submodule; its own `monad-execution` submodule carries + the `EestNet` chain and the extended runloop FFI. +- `docker/builder/Dockerfile` — vendored byte-identical from + monad-bft, so the toolchain image builds with no network fetch and + the CI cache key can hash it directly. +- `build.sh` — builds everything in the `monad-builder` container and + syncs binaries + shared libraries into `install/`. Always rebuild + with this script; copying only the binary leaves a stale + `libmonad_execution.so` that fails silently. +- `bin/eest-runner`, `bin/monad-mpt` — host wrappers that run the + installed binaries inside the container (privileged: io_uring + + hugepages) and auto-provision `vm.nr_hugepages`. + +## Flow + +``` +┌───────────────────────────────────────────────────────────────────────────────┐ +│ execution-specs · MonadFixtureConsumer (Python, `consume direct`) │ +│ digest fixture ─▶ input.json reads output.json, compares each │ +│ postState account (bal/nonce/…) │ +└───────────────┬──────────────────────────────────────────▲────────────────────┘ + │ spawn eest-runner │ output.json + │ --input --output --ledger-dir --db │ + ▼ │ +┌──────────────────────────────────────────────────────────┴────────────────────┐ +│ crate: eest-runner (bin · main.rs) ── orchestrator │ +│ parse Input ─▶ build engine ─▶ per-block loop ─▶ read back ─▶ output │ +└────┬───────────────────────────────────────────────┬──────────────────────────┘ + │ propose(txs) / finalize() │ new_eest / run(1) / + │ │ get_*_state_root / dump_json + ▼ ▼ +┌──────────────────────────┐ ┌────────────────────────────────────┐ +│ crate: ledger │ │ crate: runloop │ +│ Ledger │ │ MonadRunloop (wraps raw ptr) │ +│ fake consensus: │ │ extern "C" monad_runloop_* │ +│ build + validate the │ └────────────────┬───────────────────┘ +│ consensus block │ │ FFI (dylib link) +└───────────┬──────────────┘ ▼ + │ write ┌───────────────────────────────────┐ + │ headers/bodies │ libmonad_execution.so (C++) │ + ▼ │ runloop_monad: │ + ┌─────────────┐ read each block │ read block ─ execute │ + │ ledger dir │ ────────────────────▶ │ ─ commit_block │ + └─────────────┘ └────────────────┬──────────────────┘ + │ commit state + ▼ + ┌─────────────┐ + │ triedb (db) │ + └─────────────┘ +``` + +Per-block sequence (what main's loop does, block by block): + +``` +for block N: + eest-runner ─ ledger.propose(txs, base_fee, beneficiary) ─▶ ledger dir [Proposed] + eest-runner ─ ledger.finalize() ──────────────────────────▶ ledger dir [Finalized] + eest-runner ─ runloop.run(1) ─▶ C++ engine ─ reads ledger dir ─ executes ─▶ triedb + +after the last block: + eest-runner ─ runloop.get_primary_state_root() or + get_secondary_state_root() (page canonical from MONAD_TEN) + + dump_json() + ─▶ normalize_dump() ─▶ output.json ─▶ (Python compares vs fixture) +``` + +## Build + +From the repo root: + +```sh +git submodule update --init --recursive monad-runloop/monad-bft +docker build -t monad-builder:latest - < monad-runloop/docker/builder/Dockerfile +./monad-runloop/build.sh +monad-runloop/bin/eest-runner --version +``` + +The `--recursive` is required here: `monad-bft/monad-execution` holds +the execution client and its own third-party submodules. Cloning the +superproject without `--recurse-submodules` leaves all of this empty, +which costs nothing for contributors who never run the harness. + +Requirements: docker, ~10 GB disk for the builder image and build +artifacts, ~6 GB RAM for hugepages. diff --git a/monad-runloop/bin/eest-runner b/monad-runloop/bin/eest-runner new file mode 100755 index 00000000000..99c161f7277 --- /dev/null +++ b/monad-runloop/bin/eest-runner @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# Wrapper: run the eest-runner harness inside the monad-builder +# container (io_uring + hugepages + ubuntu-26.04 libs required). +ROOT="$(cd "$(dirname "$0")/.." && pwd)" + +# Hugepages reset to 0 on codespace restart; re-provision if needed +# (needs a root privileged container; the main one runs as $USER). +if [ "$(cat /proc/sys/vm/nr_hugepages)" -lt 2048 ]; then + docker run --rm --privileged monad-builder:latest \ + sysctl -q -w vm.nr_hugepages=3072 >/dev/null +fi + +# --init: tini as PID 1 forwards signals and reaps the binary, so it +# stops on a forwarded SIGINT/SIGTERM instead of ignoring it as PID 1. +# --name (when the caller sets it): a stable handle so the consumer can +# `docker kill` the container if its client is killed without forwarding +# a stop, which would otherwise leave the runloop spinning past pytest. +exec docker run --rm --init \ + ${EEST_RUNNER_CONTAINER_NAME:+--name "$EEST_RUNNER_CONTAINER_NAME"} \ + --privileged --ulimit nofile=16384:16384 --ulimit memlock=-1:-1 --user $(id -u):$(id -g) \ + -v /tmp:/tmp \ + -v "$ROOT":"$ROOT" \ + -e LD_LIBRARY_PATH="$ROOT"/install/lib \ + monad-builder:latest \ + "$ROOT"/install/bin/eest-runner.real "$@" diff --git a/monad-runloop/bin/monad-mpt b/monad-runloop/bin/monad-mpt new file mode 100755 index 00000000000..897cef1f801 --- /dev/null +++ b/monad-runloop/bin/monad-mpt @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Wrapper: run monad-mpt inside the monad-builder container. +ROOT="$(cd "$(dirname "$0")/.." && pwd)" + +# Hugepages reset to 0 on codespace restart; re-provision if needed +# (needs a root privileged container; the main one runs as $USER). +if [ "$(cat /proc/sys/vm/nr_hugepages)" -lt 2048 ]; then + docker run --rm --privileged monad-builder:latest \ + sysctl -q -w vm.nr_hugepages=3072 >/dev/null +fi + +exec docker run --rm --privileged --ulimit nofile=16384:16384 --ulimit memlock=-1:-1 --user $(id -u):$(id -g) \ + -v /tmp:/tmp \ + -v "$ROOT":"$ROOT" \ + -e LD_LIBRARY_PATH="$ROOT"/install/lib \ + monad-builder:latest \ + "$ROOT"/install/bin/monad-mpt.real "$@" diff --git a/monad-runloop/build.sh b/monad-runloop/build.sh new file mode 100755 index 00000000000..b773348985f --- /dev/null +++ b/monad-runloop/build.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +# Build the eest-runner harness inside the monad-builder container and +# sync ALL artifacts (binary + shared libraries + monad-mpt) into +# install/, which the bin/ wrappers run from. Always use this script to +# rebuild — copying only the binary leaves a stale libmonad_execution.so. +set -e +ROOT="$(cd "$(dirname "$0")" && pwd)" + +if [ ! -f "$ROOT/monad-bft/Cargo.toml" ] || + [ ! -f "$ROOT/monad-bft/monad-execution/CMakeLists.txt" ]; then + echo "error: the monad stack is not checked out. Run:" >&2 + echo " git submodule update --init --recursive monad-runloop/monad-bft" >&2 + exit 1 +fi + +# Advisory only: a submodule at a commit other than its gitlink is a +# normal way to work on monad locally, so say so and carry on. +REPO="$(git -C "$ROOT" rev-parse --show-toplevel 2>/dev/null || true)" +if [ -n "$REPO" ] && + git -C "$REPO" submodule status --recursive monad-runloop/monad-bft \ + 2>/dev/null | grep -q '^+'; then + echo "note: the monad stack is not at its pinned gitlink" >&2 + git -C "$REPO" submodule status --recursive monad-runloop/monad-bft \ + 2>/dev/null | grep '^+' >&2 || true +fi + +docker run --rm -v "$ROOT":/work -w /work/rust-harness \ + -e CC=gcc-15 -e CXX=g++-15 \ + -e ASMFLAGS=-march=haswell -e CFLAGS=-march=haswell \ + -e CXXFLAGS=-march=haswell \ + -e TRIEDB_TARGET=triedb_driver -e RUSTFLAGS="-A warnings" \ + monad-builder:latest bash -c ' +set -e +git config --global --add safe.directory "*" +cargo build --locked +mkdir -p /work/install/bin /work/install/lib +cp target/debug/eest-runner /work/install/bin/eest-runner.real +BUILD_DIR=$(ls -d target/debug/build/monad-cxx-*/out/build | head -1) +cmake --build $BUILD_DIR --target monad-mpt -j8 >/dev/null +cp $(find $BUILD_DIR -name monad-mpt -type f | head -1) \ + /work/install/bin/monad-mpt.real +find target/debug/build -name "*.so*" -exec cp -P {} /work/install/lib/ \; +echo "build + install sync done" +' diff --git a/monad-runloop/docker/builder/Dockerfile b/monad-runloop/docker/builder/Dockerfile new file mode 100644 index 00000000000..d8db694ac02 --- /dev/null +++ b/monad-runloop/docker/builder/Dockerfile @@ -0,0 +1,78 @@ +FROM ubuntu:26.04 AS base + +RUN apt update && apt install -y \ + binutils \ + iproute2 \ + clang \ + curl \ + make \ + ca-certificates \ + pkg-config \ + gnupg \ + software-properties-common \ + wget \ + git \ + python-is-python3 \ + cgroup-tools \ + libstdc++-15-dev \ + gcc-15 \ + g++-15 \ + libcrypto++-dev \ + libhugetlbfs0 \ + libhugetlbfs-bin \ + libhugetlbfs-dev \ + libmagicenum-dev + +RUN apt update && apt install -y \ + libboost1.83-dev \ + libboost-atomic1.83.0 \ + libboost-container1.83.0 \ + libboost-fiber1.83.0 \ + libboost-fiber1.83-dev \ + libboost-filesystem1.83.0 \ + libboost-graph1.83.0 \ + libboost-graph1.83-dev \ + libboost-json1.83.0 \ + libboost-json1.83-dev \ + libboost-regex1.83.0 \ + libboost-stacktrace1.83.0 \ + libboost-stacktrace1.83-dev + +RUN apt update && apt install -y \ + libcgroup-dev \ + libabsl-dev \ + libarchive-dev \ + libbenchmark-dev \ + libbrotli-dev \ + libcap-dev \ + libcli11-dev \ + libgmock-dev \ + libgmp-dev \ + libgtest-dev \ + libmimalloc-dev \ + libsecp256k1-dev \ + libtbb-dev \ + liburing-dev \ + libzstd-dev + +RUN apt update && apt install -y \ + cmake \ + clang-19 \ + libssl-dev \ + gdb \ + python-is-python3 \ + valgrind \ + ninja-build \ + python3-pytest + +WORKDIR /app + +# Install Rust system-wide +ENV RUSTUP_HOME=/usr/local/rustup \ + CARGO_HOME=/usr/local/cargo \ + PATH=/usr/local/cargo/bin:$PATH + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y +RUN rustup toolchain install 1.97.1-x86_64-unknown-linux-gnu + +RUN chmod -R a+rwX $RUSTUP_HOME $CARGO_HOME diff --git a/monad-runloop/monad-bft b/monad-runloop/monad-bft new file mode 160000 index 00000000000..c4e3899f240 --- /dev/null +++ b/monad-runloop/monad-bft @@ -0,0 +1 @@ +Subproject commit c4e3899f240b1498ab3b1dedaa165b6708240428 diff --git a/monad-runloop/rust-harness/Cargo.lock b/monad-runloop/rust-harness/Cargo.lock new file mode 100644 index 00000000000..d6e3d535b94 --- /dev/null +++ b/monad-runloop/rust-harness/Cargo.lock @@ -0,0 +1,4208 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "alloy-consensus" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12a542fe1e6a48cfd010a9e8eba1235436de58ee0f1415e588c27d5d556e98df" +dependencies = [ + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "alloy-trie", + "alloy-tx-macros", + "auto_impl", + "borsh", + "c-kzg", + "derive_more", + "either", + "k256", + "once_cell", + "rand 0.8.6", + "secp256k1 0.30.0", + "serde", + "serde_json", + "serde_with", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-consensus-any" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ac1559726a5e71d6dbab59cbd8ad0988c762105d2ae41ae4f3241a3166262d" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "serde", +] + +[[package]] +name = "alloy-eip2124" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "741bdd7499908b3aa0b159bba11e71c8cddd009a2c2eb7a06e825f1ec87900a5" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "crc", + "serde", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-eip2930" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9441120fa82df73e8959ae0e4ab8ade03de2aaae61be313fbf5746277847ce25" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "borsh", + "serde", +] + +[[package]] +name = "alloy-eip7702" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2919c5a56a1007492da313e7a3b6d45ef5edc5d33416fdec63c0d7a2702a0d20" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "borsh", + "k256", + "serde", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-eip7928" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fb59cca9e58f5c624becc3cffb32772dc278f31eeae4606844a88592e8d2672" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "borsh", + "once_cell", + "serde", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-eips" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d40246adf7468b430fce87945ece8a54ef27fa760dd9f670f5162a412007bdb2" +dependencies = [ + "alloy-eip2124", + "alloy-eip2930", + "alloy-eip7702", + "alloy-eip7928", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "auto_impl", + "borsh", + "c-kzg", + "derive_more", + "either", + "serde", + "serde_with", + "sha2", +] + +[[package]] +name = "alloy-json-abi" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c36c9d7f9021601b04bfef14a4b64849f6d73116a4e91e071d7fbfe10247901" +dependencies = [ + "alloy-primitives", + "alloy-sol-type-parser", + "serde", + "serde_json", +] + +[[package]] +name = "alloy-json-rpc" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e5722ea29a9a85ecdba2516c58f50d71e77cd25f8ce7e9f4ee8570ddeee6df1" +dependencies = [ + "alloy-primitives", + "alloy-sol-types", + "http", + "serde", + "serde_json", + "thiserror 2.0.18", + "tracing", +] + +[[package]] +name = "alloy-network" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e4d278913f00ab611f5367448a3a800fed173ab791c3cc67b7a1b0d7afd305" +dependencies = [ + "alloy-consensus", + "alloy-consensus-any", + "alloy-eips", + "alloy-json-rpc", + "alloy-network-primitives", + "alloy-primitives", + "alloy-rpc-types-any", + "alloy-rpc-types-eth", + "alloy-serde", + "alloy-signer", + "alloy-sol-types", + "async-trait", + "auto_impl", + "derive_more", + "futures-utils-wasm", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-network-primitives" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e52ae56d1acaa6b46e9d7015b8ae6c10f3d1c213a32ae70b17426a03ae6729" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-serde", + "serde", +] + +[[package]] +name = "alloy-primitives" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4885c1409b6936c4898e646ef58baf6ec54edaf6d8179f79df805a7b85b7cf3e" +dependencies = [ + "alloy-rlp", + "bytes", + "cfg-if", + "const-hex", + "derive_more", + "foldhash 0.2.0", + "hashbrown 0.17.1", + "indexmap 2.14.0", + "itoa", + "k256", + "keccak-asm", + "paste", + "proptest", + "rand 0.9.4", + "rapidhash", + "ruint", + "rustc-hash", + "secp256k1 0.31.1", + "serde", + "sha3", +] + +[[package]] +name = "alloy-rlp" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc90b1e703d3c03f4ff7f48e82dd0bc1c8211ab7d079cd836a06fcfeb06651cb" +dependencies = [ + "alloy-rlp-derive", + "arrayvec", + "bytes", +] + +[[package]] +name = "alloy-rlp-derive" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36834a5c0a2fa56e171bf256c34d70fca07d0c0031583edea1c4946b7889c9e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "alloy-rpc-types-any" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0a6cce3f97e5d9c0048081b5d173e0e406c2056c52c012e578a1d451ff0cdc" +dependencies = [ + "alloy-consensus-any", + "alloy-network-primitives", + "alloy-primitives", + "alloy-rpc-types-eth", + "alloy-serde", + "serde", + "serde_json", +] + +[[package]] +name = "alloy-rpc-types-eth" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1eb4c87dfdde83cd97e03a8c0c5e986b52e14075e02266e322ac6c7eb02e7399" +dependencies = [ + "alloy-consensus", + "alloy-consensus-any", + "alloy-eips", + "alloy-network-primitives", + "alloy-primitives", + "alloy-rlp", + "alloy-serde", + "alloy-sol-types", + "itertools 0.14.0", + "serde", + "serde_json", + "serde_with", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-serde" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ff89f75b8a9d00f659750e9220c31b42d67c69ffc43b2ac8911dfd0506eb4a6" +dependencies = [ + "alloy-primitives", + "serde", + "serde_json", +] + +[[package]] +name = "alloy-signer" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e1f6fae3ade809daa4c32bee35a30a439bb307209d7b42f3995988b5cc74b8" +dependencies = [ + "alloy-primitives", + "async-trait", + "auto_impl", + "either", + "elliptic-curve", + "k256", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-signer-local" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "621cc39c34b85875858ef149598f3d5f9797dff9a3247f3606fcc06f9b20acc8" +dependencies = [ + "alloy-consensus", + "alloy-network", + "alloy-primitives", + "alloy-signer", + "async-trait", + "k256", + "rand 0.8.6", + "thiserror 2.0.18", +] + +[[package]] +name = "alloy-sol-macro" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "840128ed2b2971d6d4668a553fe403a82683d3acc646c73e75887e7157408033" +dependencies = [ + "alloy-sol-macro-expander", + "alloy-sol-macro-input", + "proc-macro-error2", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "alloy-sol-macro-expander" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63ec265e5d65d725175f6ca7711c970824c90ef9c0d1f1973711d4150ee612dd" +dependencies = [ + "alloy-sol-macro-input", + "const-hex", + "heck", + "indexmap 2.14.0", + "proc-macro-error2", + "proc-macro2", + "quote", + "sha3", + "syn 2.0.117", + "syn-solidity", +] + +[[package]] +name = "alloy-sol-macro-input" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89bf01077f18650876cfa682eb1f949967b5cde03f1a51c955c469d2c9b4aa67" +dependencies = [ + "const-hex", + "dunce", + "heck", + "macro-string", + "proc-macro2", + "quote", + "syn 2.0.117", + "syn-solidity", +] + +[[package]] +name = "alloy-sol-type-parser" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "857b470ecdd2ed38beaf82ad1a38c516a8ff75266750f38b9eeed001d575241b" +dependencies = [ + "serde", + "winnow 1.0.3", +] + +[[package]] +name = "alloy-sol-types" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384cf252de0db2dec52821eac037a7f57e2aa33fe5b900ce6fe39973402341f1" +dependencies = [ + "alloy-json-abi", + "alloy-primitives", + "alloy-sol-macro", + "serde", +] + +[[package]] +name = "alloy-trie" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f14b5d9b2c2173980202c6ff470d96e7c5e202c65a9f67884ad565226df7fbb" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "derive_more", + "nybbles", + "serde", + "smallvec", + "thiserror 2.0.18", + "tracing", +] + +[[package]] +name = "alloy-tx-macros" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d0626c4f3b2028f7e8db32f53c22d9ecd5939f772317b7c4b6fe5219cb0589a" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "ark-ff" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b3235cc41ee7a12aaaf2c575a2ad7b46713a8a50bda2fc3b003a04845c05dd6" +dependencies = [ + "ark-ff-asm 0.3.0", + "ark-ff-macros 0.3.0", + "ark-serialize 0.3.0", + "ark-std 0.3.0", + "derivative", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.3.3", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm 0.4.2", + "ark-ff-macros 0.4.2", + "ark-serialize 0.4.2", + "ark-std 0.4.0", + "derivative", + "digest 0.10.7", + "itertools 0.10.5", + "num-bigint", + "num-traits", + "paste", + "rustc_version 0.4.1", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" +dependencies = [ + "ark-ff-asm 0.5.0", + "ark-ff-macros 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "arrayvec", + "digest 0.10.7", + "educe", + "itertools 0.13.0", + "num-bigint", + "num-traits", + "paste", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db02d390bf6643fb404d3d22d31aee1c4bc4459600aef9113833d17e786c6e44" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-asm" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62945a2f7e6de02a31fe400aa489f0e0f5b2502e69f95f853adb82a96c7a6b60" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ark-ff-macros" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fd794a08ccb318058009eefdf15bcaaaaf6f8161eb3345f907222bac38b20" +dependencies = [ + "num-bigint", + "num-traits", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09be120733ee33f7693ceaa202ca41accd5653b779563608f1234f78ae07c4b3" +dependencies = [ + "num-bigint", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ark-serialize" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6c2b318ee6e10f8c2853e73a83adc0ccb88995aa978d8a3408d492ab2ee671" +dependencies = [ + "ark-std 0.3.0", + "digest 0.9.0", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-std 0.4.0", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-serialize" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f4d068aaf107ebcd7dfb52bc748f8030e0fc930ac8e360146ca54c1203088f7" +dependencies = [ + "ark-std 0.5.0", + "arrayvec", + "digest 0.10.7", + "num-bigint", +] + +[[package]] +name = "ark-std" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1df2c09229cbc5a028b1d70e00fdb2acee28b1055dfb5ca73eea49c5a25c4e7c" +dependencies = [ + "num-traits", + "rand 0.8.6", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.6", +] + +[[package]] +name = "ark-std" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246a225cc6131e9ee4f24619af0f19d67761fff15d7ccc22e42b80846e69449a" +dependencies = [ + "num-traits", + "rand 0.8.6", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "as-any" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0f477b951e452a0b6b4a10b53ccd569042d1d01729b519e02074a9c0958a063" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "auto_impl" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffdcb70bdbc4d478427380519163274ac86e52916e10f0a8889adf0f96d3fee7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base16ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bindgen" +version = "0.71.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3" +dependencies = [ + "bitflags", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "log", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex 1.3.0", + "syn 2.0.117", +] + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitcoin-io" +version = "0.1.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11301df0b06f22dea7bb1916403fdd88a371031e495c49b8f96931b28189e175" + +[[package]] +name = "bitcoin_hashes" +version = "0.14.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c9901a56e133a1fc86eeb1113e2591f45f4682451ca893bff494d2f88918e3f" +dependencies = [ + "bitcoin-io", + "hex-conservative", +] + +[[package]] +name = "bitflags" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8" + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "serde", + "tap", + "wyz", +] + +[[package]] +name = "blake3" +version = "1.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aa83c34e62843d924f905e0f5c866eb1dd6545fc4d719e803d9ba6030371fce" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "cpufeatures 0.3.0", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "blst" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcdb4c7013139a150f9fc55d123186dbfaba0d912817466282c73ac49e71fb45" +dependencies = [ + "cc", + "glob", + "threadpool", + "zeroize", +] + +[[package]] +name = "borsh" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd1e3f8955a5d7de9fab72fc8373fade9fb8a703968cb200ae3dc6cf08e185a" +dependencies = [ + "borsh-derive", + "bytes", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfcfdc083699101d5a7965e49925975f2f55060f94f9a05e7187be95d530ca59" +dependencies = [ + "once_cell", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "byte-slice-cast" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7575182f7272186991736b70173b0ea045398f984bf5ebbb3804736ce1330c9d" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] + +[[package]] +name = "c-kzg" +version = "2.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6648ed1e4ea8e8a1a4a2c78e1cda29a3fd500bc622899c340d8525ea9a76b24a" +dependencies = [ + "blst", + "cc", + "glob", + "hex", + "libc", + "once_cell", + "serde", +] + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0061da739915fae12ea00e16397555ed4371a6bb285431aab930f61b0aa4ba" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "cargo_metadata" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef987d17b0a113becdd19d3d0022d04d7ef41f9efe4f3fb63ac44ba61df3ade9" +dependencies = [ + "camino", + "cargo-platform", + "semver 1.0.28", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "cc" +version = "1.2.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556e016178bb5662a08681bbe0f00f8e17631781a4dfc8c45e466e4b185ec27f" +dependencies = [ + "find-msvc-tools", + "shlex 2.0.1", +] + +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "clang-sys" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +dependencies = [ + "glob", + "libc", + "libloading", +] + +[[package]] +name = "clap" +version = "4.5.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52fa72306bb30daf11bc97773431628e5b4916e97aaa74b7d3f625d4d495da02" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2071365c5c56eae7d77414029dde2f4f4ba151cf68d5a3261c9a40de428ace93" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.5.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dec5be1eea072311774b7b84ded287adbd9f293f9d23456817605c6042f4f5e0" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "clap_lex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" + +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "const-hex" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33e2a781ebdf4467d1428dc4593067825fb646f6871475098d8577421af73558" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "proptest", + "serde_core", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "const_format" +version = "0.2.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4481a617ad9a412be3b97c5d403fef8ed023103368908b9c50af598ff467cc1e" +dependencies = [ + "const_format_proc_macros", + "konst", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + +[[package]] +name = "crc" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5eb8a2a1cd12ab0d987a5d5e825195d372001a4094a0376319d5a0ad71c1ba0d" +dependencies = [ + "crc-catalog", +] + +[[package]] +name = "crc-catalog" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853" + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-bigint" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "crypto-common" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "serde", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid", + "zeroize", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version 0.4.1", + "syn 2.0.117", + "unicode-xid", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "const-oid", + "crypto-common 0.1.6", + "subtle", +] + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer 0.12.0", + "crypto-common 0.2.2", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "ecdsa" +version = "0.16.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" +dependencies = [ + "der", + "digest 0.10.7", + "elliptic-curve", + "rfc6979", + "serdect", + "signature", + "spki", +] + +[[package]] +name = "educe" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "eest-runner" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "alloy-signer", + "alloy-signer-local", + "clap", + "ledger", + "monad-chain-config", + "monad-types", + "runloop", + "serde", + "serde_json", +] + +[[package]] +name = "either" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e" +dependencies = [ + "serde", +] + +[[package]] +name = "elliptic-curve" +version = "0.13.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +dependencies = [ + "base16ct", + "crypto-bigint", + "digest 0.10.7", + "ff", + "generic-array", + "group", + "pkcs8", + "rand_core 0.6.4", + "sec1", + "serdect", + "subtle", + "zeroize", +] + +[[package]] +name = "enum-ordinalize" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a1091a7bb1f8f2c4b28f1fe2cef4980ca2d410a3d727d67ecc3178c9b0800f0" +dependencies = [ + "enum-ordinalize-derive", +] + +[[package]] +name = "enum-ordinalize-derive" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca9601fb2d62598ee17836250842873a413586e5d7ed88b356e38ddbb0ec631" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "env_filter" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e90c2accc4b07a8456ea0debdc2e7587bdd890680d71173a15d4ae604f6eef" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "env_logger" +version = "0.11.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0621c04f2196ac3f488dd583365b9c09be011a4ab8b9f37248ffcc8f6198b56a" +dependencies = [ + "env_filter", + "log", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[package]] +name = "fastrlp" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139834ddba373bbdd213dffe02c8d110508dcf1726c2be27e8d1f7d7e1856418" +dependencies = [ + "arrayvec", + "auto_impl", + "bytes", +] + +[[package]] +name = "fastrlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce8dba4714ef14b8274c371879b175aa55b16b30f269663f19d576f380018dc4" +dependencies = [ + "arrayvec", + "auto_impl", + "bytes", +] + +[[package]] +name = "ff" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fixed-hash" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" +dependencies = [ + "byteorder", + "rand 0.8.6", + "rustc-hex", + "static_assertions", +] + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "futures-utils-wasm" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42012b0f064e01aa58b545fe3727f90f7dd4020f4a3ea735b50344965f5a57e9" + +[[package]] +name = "generic-array" +version = "0.14.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2" +dependencies = [ + "typenum", + "version_check", + "zeroize", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "rand_core 0.10.1", + "wasip2", + "wasip3", +] + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "foldhash 0.2.0", + "serde", + "serde_core", +] + +[[package]] +name = "hdrhistogram" +version = "7.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "765c9198f173dd59ce26ff9f95ef0aafd0a0fe01fb9d72841bc5066a4c06511d" +dependencies = [ + "base64 0.21.7", + "byteorder", + "crossbeam-channel", + "flate2", + "nom", + "num-traits", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-conservative" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fda06d18ac606267c40c04e41b9947729bf8b9efe74bd4e82b61a5f26a510b9f" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "http" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "hybrid-array" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da" +dependencies = [ + "typenum", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "impl-codec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba6a270039626615617f3f36d15fc827041df3b78c439da2cadfa47455a77f2f" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "impl-trait-for-tuples" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2025f20d7a4fa7785846e7b63d10a76d3f1cee98ee5cb79ea59703f95e42162" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "k256" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b" +dependencies = [ + "cfg-if", + "ecdsa", + "elliptic-curve", + "once_cell", + "serdect", + "sha2", + "signature", +] + +[[package]] +name = "keccak" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e24a010dd405bd7ed803e5253182815b41bf2e6a80cc3bfc066658e03a198aa" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", +] + +[[package]] +name = "keccak-asm" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5dc2c0d691cbf7595cde551ced329cca99c2387c2cbc97754c5d0cd045d3ee" +dependencies = [ + "digest 0.10.7", + "sha3-asm", +] + +[[package]] +name = "konst" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "128133ed7824fcd73d6e7b17957c5eb7bacb885649bd8c69708b2331a10bcefb" +dependencies = [ + "konst_macro_rules", +] + +[[package]] +name = "konst_macro_rules" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4933f3f57a8e9d9da04db23fb153356ecaf00cbd14aee46279c33dc80925c37" + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "ledger" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-primitives", + "alloy-signer", + "alloy-signer-local", + "monad-bls", + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-eth-block-policy", + "monad-eth-block-validator", + "monad-eth-types", + "monad-execution-state-read", + "monad-executor", + "monad-executor-glue", + "monad-ledger", + "monad-secp", + "monad-types", + "monad-validator", + "runloop", +] + +[[package]] +name = "libc" +version = "0.2.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a" + +[[package]] +name = "lru" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f66e8d5d03f609abc3a39e6f08e4164ebf1447a732906d39eb9b99b7919ef39" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "macro-string" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59a9dbbfc75d2688ed057456ce8a3ee3f48d12eec09229f560f3643b9f275653" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "memchr" +version = "2.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8" + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda" +dependencies = [ + "libc", + "wasi", + "windows-sys", +] + +[[package]] +name = "monad-block-persist" +version = "0.1.0" +dependencies = [ + "alloy-rlp", + "hex", + "monad-consensus-types", + "monad-crypto", + "monad-types", + "monad-validator", +] + +[[package]] +name = "monad-blocksync" +version = "0.1.0" +dependencies = [ + "alloy-rlp", + "bytes", + "itertools 0.13.0", + "monad-blocktree", + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-execution-state-read", + "monad-types", + "monad-validator", + "rand 0.8.6", + "rand_chacha 0.3.1", + "serde", + "tracing", +] + +[[package]] +name = "monad-blocktree" +version = "0.1.0" +dependencies = [ + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-execution-state-read", + "monad-types", + "monad-validator", +] + +[[package]] +name = "monad-bls" +version = "0.1.0" +dependencies = [ + "alloy-rlp", + "bitvec", + "blst", + "hex", + "monad-crypto", + "monad-types", + "monad-validator", + "serde", + "zeroize", +] + +[[package]] +name = "monad-build" +version = "0.1.0" +dependencies = [ + "bindgen", + "cargo_metadata", + "cmake", +] + +[[package]] +name = "monad-chain-config" +version = "0.1.0" +dependencies = [ + "monad-eth-types", + "monad-types", + "serde", + "thiserror 1.0.69", + "tracing", +] + +[[package]] +name = "monad-consensus" +version = "0.1.0" +dependencies = [ + "alloy-rlp", + "lru", + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-types", + "monad-validator", + "serde", + "tracing", +] + +[[package]] +name = "monad-consensus-types" +version = "0.1.0" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "auto_impl", + "bytes", + "hex", + "monad-chain-config", + "monad-crypto", + "monad-execution-state-read", + "monad-executor", + "monad-types", + "monad-validator", + "prometheus", + "serde", + "serde_with", + "toml", +] + +[[package]] +name = "monad-crypto" +version = "0.1.0" +dependencies = [ + "alloy-rlp", + "blake3", + "hex", + "serde", + "sha2", + "zerocopy", +] + +[[package]] +name = "monad-cxx" +version = "0.1.0" +dependencies = [ + "monad-build", + "tracing", +] + +[[package]] +name = "monad-eth-block-policy" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "itertools 0.13.0", + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-eth-types", + "monad-execution-state-read", + "monad-system-calls", + "monad-tfm", + "monad-types", + "monad-validator", + "serde", + "sorted_vector_map", + "tracing", +] + +[[package]] +name = "monad-eth-block-validator" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-eth-block-policy", + "monad-eth-types", + "monad-execution-state-read", + "monad-secp", + "monad-system-calls", + "monad-types", + "monad-validator", + "rayon", + "tracing", +] + +[[package]] +name = "monad-eth-types" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-eips", + "alloy-primitives", + "alloy-rlp", + "monad-crypto", + "monad-types", + "serde", + "serde_with", +] + +[[package]] +name = "monad-execution-state-read" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-primitives", + "monad-crypto", + "monad-eth-types", + "monad-tfm", + "monad-types", + "monad-validator", + "serde", + "tracing", +] + +[[package]] +name = "monad-executor" +version = "0.1.0" +dependencies = [ + "bytes", + "hdrhistogram", + "monad-types", + "prometheus", + "tracing", +] + +[[package]] +name = "monad-executor-glue" +version = "0.1.0" +dependencies = [ + "alloy-rlp", + "bincode", + "bytes", + "chrono", + "futures", + "monad-blocksync", + "monad-chain-config", + "monad-consensus", + "monad-consensus-types", + "monad-crypto", + "monad-execution-state-read", + "monad-statesync-version", + "monad-types", + "monad-validator", + "monad-wal", + "serde", + "serde_with", +] + +[[package]] +name = "monad-ledger" +version = "0.1.0" +dependencies = [ + "futures", + "monad-block-persist", + "monad-blocksync", + "monad-consensus-types", + "monad-crypto", + "monad-eth-types", + "monad-executor", + "monad-executor-glue", + "monad-types", + "monad-validator", + "tokio", + "tracing", +] + +[[package]] +name = "monad-secp" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-primitives", + "alloy-rlp", + "hex", + "k256", + "monad-crypto", + "monad-eth-types", + "rand 0.8.6", + "secp256k1 0.31.1", + "serde", + "serde_with", + "sha2", + "zeroize", +] + +[[package]] +name = "monad-statesync-version" +version = "0.1.0" +dependencies = [ + "monad-build", +] + +[[package]] +name = "monad-system-calls" +version = "0.1.0" +dependencies = [ + "alloy-consensus", + "alloy-primitives", + "alloy-rlp", + "alloy-signer", + "alloy-signer-local", + "alloy-sol-types", + "monad-chain-config", + "monad-consensus-types", + "monad-crypto", + "monad-eth-types", + "monad-types", + "monad-validator", + "tracing", +] + +[[package]] +name = "monad-tfm" +version = "0.1.0" +dependencies = [ + "alloy-primitives", +] + +[[package]] +name = "monad-types" +version = "0.1.0" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "futures", + "hex", + "monad-crypto", + "serde", + "serde_json", + "serde_with", + "zerocopy", +] + +[[package]] +name = "monad-validator" +version = "0.1.0" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "as-any", + "auto_impl", + "itertools 0.13.0", + "monad-crypto", + "monad-types", + "rand 0.8.6", + "rand_chacha 0.3.1", + "serde", + "tracing", +] + +[[package]] +name = "monad-version" +version = "0.1.0" + +[[package]] +name = "monad-wal" +version = "0.1.0" +dependencies = [ + "bytes", + "monad-types", + "monad-version", + "monad-wal-derive", + "tracing", +] + +[[package]] +name = "monad-wal-derive" +version = "0.1.0" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "nybbles" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d49ff0c0d00d4a502b39df9af3a525e1efeb14b9dabb5bb83335284c1309210" +dependencies = [ + "alloy-rlp", + "cfg-if", + "proptest", + "ruint", + "serde", + "smallvec", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "parity-scale-codec" +version = "3.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799781ae679d79a948e13d4824a40970bfa500058d245760dd857301059810fa" +dependencies = [ + "arrayvec", + "bitvec", + "byte-slice-cast", + "const_format", + "impl-trait-for-tuples", + "parity-scale-codec-derive", + "rustversion", + "serde", +] + +[[package]] +name = "parity-scale-codec-derive" +version = "3.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34b4653168b563151153c9e4c08ebed57fb8262bebfa79711552fa983c623e7a" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pest" +version = "2.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0848c601009d37dfa3430c4666e147e49cdcf1b92ecd3e63657d8a5f19da662" +dependencies = [ + "memchr", + "ucd-trie", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[package]] +name = "primitive-types" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b34d9fd68ae0b74a41b21c03c2f62847aa0ffea044eee893b4c140b37e244e2" +dependencies = [ + "fixed-hash", + "impl-codec", + "uint", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro-error-attr2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "proc-macro-error2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" +dependencies = [ + "proc-macro-error-attr2", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "prometheus" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ca5326d8d0b950a9acd87e6a3f94745394f62e4dae1b1ee22b2bc0c394af43a" +dependencies = [ + "cfg-if", + "fnv", + "lazy_static", + "memchr", + "parking_lot", + "protobuf", + "thiserror 2.0.18", +] + +[[package]] +name = "proptest" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744" +dependencies = [ + "bit-set", + "bit-vec", + "bitflags", + "num-traits", + "rand 0.9.4", + "rand_chacha 0.9.0", + "rand_xorshift", + "regex-syntax", + "rusty-fork", + "tempfile", + "unarray", +] + +[[package]] +name = "protobuf" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d65a1d4ddae7d8b5de68153b48f6aa3bba8cb002b243dbdbc55a5afbc98f99f4" +dependencies = [ + "once_cell", + "protobuf-support", + "thiserror 1.0.69", +] + +[[package]] +name = "protobuf-support" +version = "3.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e36c2f31e0a47f9280fb347ef5e461ffcd2c52dd520d8e216b52f93b0b0d7d6" +dependencies = [ + "thiserror 1.0.69", +] + +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + +[[package]] +name = "quickcheck" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95c589f335db0f6aaa168a7cd27b1fc6920f5e1470c804f814d9cd6e62a0f70b" +dependencies = [ + "env_logger", + "log", + "rand 0.10.1", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", + "serde", +] + +[[package]] +name = "rand" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", + "serde", +] + +[[package]] +name = "rand" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207" +dependencies = [ + "getrandom 0.4.2", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", + "serde", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_xorshift" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" +dependencies = [ + "rand_core 0.9.5", +] + +[[package]] +name = "rapidhash" +version = "4.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e48930979c155e2f33aa36ab3119b5ee81332beb6482199a8ecd6029b80b59" +dependencies = [ + "rustversion", +] + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1292b7759ae1cb9ec195452d1390a074f0cd8541ab7a5a8c31cd6db45d4a6ba" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac", + "subtle", +] + +[[package]] +name = "rlp" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb919243f34364b6bd2fc10ef797edbfa75f33c252e7998527479c6d6b47e1ec" +dependencies = [ + "bytes", + "rustc-hex", +] + +[[package]] +name = "ruint" +version = "1.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0298da754d1395046b0afdc2f20ee76d29a8ae310cd30ffa84ed42acba9cb12a" +dependencies = [ + "alloy-rlp", + "ark-ff 0.3.0", + "ark-ff 0.4.2", + "ark-ff 0.5.0", + "bytes", + "fastrlp 0.3.1", + "fastrlp 0.4.0", + "num-bigint", + "num-integer", + "num-traits", + "parity-scale-codec", + "primitive-types", + "proptest", + "rand 0.8.6", + "rand 0.9.4", + "rlp", + "ruint-macro", + "serde_core", + "valuable", + "zeroize", +] + +[[package]] +name = "ruint-macro" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48fd7bd8a6377e15ad9d42a8ec25371b94ddc67abe7c8b9127bec79bebaaae18" + +[[package]] +name = "runloop" +version = "0.1.0" +dependencies = [ + "alloy-primitives", + "monad-cxx", +] + +[[package]] +name = "rustc-hash" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" + +[[package]] +name = "rustc-hex" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" + +[[package]] +name = "rustc_version" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" +dependencies = [ + "semver 0.11.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver 1.0.28", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "rusty-fork" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2" +dependencies = [ + "fnv", + "quick-error", + "tempfile", + "wait-timeout", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct", + "der", + "generic-array", + "pkcs8", + "serdect", + "subtle", + "zeroize", +] + +[[package]] +name = "secp256k1" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b50c5943d326858130af85e049f2661ba3c78b26589b8ab98e65e80ae44a1252" +dependencies = [ + "bitcoin_hashes", + "rand 0.8.6", + "secp256k1-sys 0.10.1", + "serde", +] + +[[package]] +name = "secp256k1" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3c81b43dc2d8877c216a3fccf76677ee1ebccd429566d3e67447290d0c42b2" +dependencies = [ + "bitcoin_hashes", + "rand 0.9.4", + "secp256k1-sys 0.11.0", +] + +[[package]] +name = "secp256k1-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4387882333d3aa8cb20530a17c69a3752e97837832f34f6dccc760e715001d9" +dependencies = [ + "cc", +] + +[[package]] +name = "secp256k1-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcb913707158fadaf0d8702c2db0e857de66eb003ccfdda5924b5f5ac98efb38" +dependencies = [ + "cc", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "semver-parser" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9900206b54a3527fdc7b8a938bffd94a568bac4f4aa8113b209df75a09c0dec2" +dependencies = [ + "pest", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_json" +version = "1.0.150" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a5c54c7310e7b8b9577c286d7e399ddd876c3e12b3ed917a8aabc4b96e9e8c" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84d57bc0c8b9a17920c178daa6bb924850d54a9c97ab45194bb8c17ad66bb660" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serdect" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a84f14a19e9a014bb9f4512488d9829a68e04ecabffb0f9904cd1ace94598177" +dependencies = [ + "base16ct", + "serde", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be176f1a57ce4e3d31c1a166222d9768de5954f811601fb7ca06fc8203905ce1" +dependencies = [ + "digest 0.11.3", + "keccak", +] + +[[package]] +name = "sha3-asm" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6287fd675f713484342a89cbf0a386abef5f15919cfad607e5e1f19e1e15331" +dependencies = [ + "cc", + "cfg-if", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest 0.10.7", + "rand_core 0.6.4", +] + +[[package]] +name = "simd-adler32" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" +dependencies = [ + "serde", +] + +[[package]] +name = "socket2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "sorted_vector_map" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94bf565ee1681b4473aa5a9d71d807347c28021bd1d8947cb626b02f42a0141f" +dependencies = [ + "itertools 0.14.0", + "quickcheck", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn-solidity" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec005042c7d952febc1a3ef5b0f6674e9054aa836877a31c90b20e25b3d31744" +dependencies = [ + "paste", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "threadpool" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" +dependencies = [ + "num_cpus", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" +dependencies = [ + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys", +] + +[[package]] +name = "tokio-macros" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2153edc6955a6c354fad8f5efd38b6a8769bdccf9fe50f8e1329f81b0baa5d7" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.3", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow 1.0.3", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "ucd-trie" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" + +[[package]] +name = "uint" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" +dependencies = [ + "byteorder", + "crunchy", + "hex", + "static_assertions", +] + +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wait-timeout" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" +dependencies = [ + "libc", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.3+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" +dependencies = [ + "wit-bindgen 0.57.1", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen 0.51.0", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.123" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a254a4b10c19a76f09a27640e7ffbf9bc30bf67e16a3bf28aaefa4920fe81563" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.123" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24a40fc75b0ec6f3746ceb10d36f53a93dcd68a93b11b6445983945d79eba0dc" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.123" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "908f34bd9b9ce3d4caf07b72dfab63d61504d156856c6bd3cd87fa350cf3985b" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.123" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7acbf7616c27b194bbb550bf77ed0c2c3e5b7fd1260a93082b95fb7f47959b92" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.14.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags", + "hashbrown 0.15.5", + "indexmap 2.14.0", + "semver 1.0.28", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap 2.14.0", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap 2.14.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.14.0", + "log", + "semver 1.0.28", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[package]] +name = "zerocopy" +version = "0.8.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce1022995ff5ff5d841ad7d994facc23098cd40152f2c1d11cd607c6f530653f" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ae7f38b72ec2a254e2b87ef277cf2cd4fb97cbebf944faa6f33354da0867930" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/monad-runloop/rust-harness/Cargo.toml b/monad-runloop/rust-harness/Cargo.toml new file mode 100644 index 00000000000..2265cc44f3b --- /dev/null +++ b/monad-runloop/rust-harness/Cargo.toml @@ -0,0 +1,42 @@ +[workspace] +resolver = "2" +members = [ "ledger", "runloop", "eest-runner" ] + +[profile.dev] +opt-level = 1 + +[profile.release] +debug = true +lto = "thin" +panic = "abort" + +[workspace.dependencies] +ledger = { path = "./ledger" } +runloop = { path = "./runloop" } + +monad-bls = { path = "../monad-bft/monad-bls" } +monad-chain-config = { path = "../monad-bft/monad-chain-config" } +monad-consensus-types = { path = "../monad-bft/monad-consensus-types" } +monad-crypto = { path = "../monad-bft/monad-crypto" } +monad-cxx = { path = "../monad-bft/monad-execution/rust/crates/monad-cxx" } +monad-eth-block-policy = { path = "../monad-bft/monad-eth-block-policy" } +monad-eth-block-validator = { path = "../monad-bft/monad-eth-block-validator" } +monad-eth-types = { path = "../monad-bft/monad-eth-types" } +monad-executor = { path = "../monad-bft/monad-executor" } +monad-executor-glue = { path = "../monad-bft/monad-executor-glue" } +monad-ledger = { path = "../monad-bft/monad-ledger" } +monad-secp = { path = "../monad-bft/monad-secp" } +monad-execution-state-read = { path = "../monad-bft/monad-execution-state-read" } +monad-tfm = { path = "../monad-bft/monad-tfm" } +monad-types = { path = "../monad-bft/monad-types" } +monad-validator = { path = "../monad-bft/monad-validator" } + +alloy-consensus = "2.0" +alloy-eips = "2.0" +alloy-primitives = "1.5" +alloy-rlp = "0.3" +alloy-signer = "2.0" +alloy-signer-local = "2.0" +clap = { version = "=4.5", features = ["derive"] } +serde = { version = "1", features = ["derive"] } +serde_json = "1" diff --git a/monad-runloop/rust-harness/eest-runner/Cargo.toml b/monad-runloop/rust-harness/eest-runner/Cargo.toml new file mode 100644 index 00000000000..fd6a3a81b52 --- /dev/null +++ b/monad-runloop/rust-harness/eest-runner/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "eest-runner" +version = "0.1.0" +edition = "2021" + +[[bin]] +name = "eest-runner" +path = "./src/main.rs" + +[dependencies] +ledger = { workspace = true } +runloop = { workspace = true } + +monad-chain-config = { workspace = true } +monad-types = { workspace = true } + +alloy-consensus = { workspace = true, features = ["k256"] } +alloy-eips = { workspace = true } +alloy-primitives = { workspace = true } +alloy-rlp = { workspace = true } +alloy-signer = { workspace = true } +alloy-signer-local = { workspace = true } +clap = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } diff --git a/monad-runloop/rust-harness/eest-runner/src/main.rs b/monad-runloop/rust-harness/eest-runner/src/main.rs new file mode 100644 index 00000000000..ef950818f5c --- /dev/null +++ b/monad-runloop/rust-harness/eest-runner/src/main.rs @@ -0,0 +1,271 @@ +// EEST fixture runner: executes a digested EEST blockchain fixture +// against the production monad runloop (EestNet chain) and emits the +// resulting post-state as JSON. +// +// Input document (produced by the EEST `consume direct` Monad consumer): +// { +// "genesis_alloc": { +// "0x
": { +// "wei_balance": "", +// "nonce": "0x..", // optional +// "code": "0x..", // optional +// "storage": {"0x..": "0x.."} // optional +// }, ... +// }, +// "blocks": [ +// { +// "timestamp": , +// "base_fee": , +// "beneficiary": "0x
", +// "txs": ["0x", ...] +// }, ... +// ] +// } +// +// Output document: +// { +// "state_root": "0x..", +// "post_state": { +// "0x
": { +// "balance": "0x..", +// "nonce": "0x..", +// "code": "0x..", +// "storage": {"0x": "0x", ...} +// }, ... +// } +// } + +use std::collections::BTreeMap; +use std::path::PathBuf; + +use alloy_eips::eip2718::Decodable2718; +use alloy_consensus::TxEnvelope; +use alloy_primitives::{Address, U256}; +use clap::Parser; +use ledger::Ledger; +use monad_chain_config::MonadChainConfig; +use runloop::{MonadRunloop, Runloop}; +use serde::Deserialize; +use serde_json::json; + +pub const EEST_NET_CHAIN_ID: u64 = 30143; + +#[derive(Parser)] +#[command(name = "eest-runner", version)] +struct Args { + /// Path to the digested fixture input document (JSON). + #[arg(long)] + input: PathBuf, + + /// Path to write the post-state output document (JSON). + #[arg(long)] + output: PathBuf, + + /// Directory for the consensus ledger (headers/bodies). + #[arg(long)] + ledger_dir: PathBuf, + + /// Path to the triedb storage (file or block device). + #[arg(long)] + db: PathBuf, +} + +#[derive(Deserialize)] +struct InputBlock { + timestamp: u64, + base_fee: u64, + beneficiary: Address, + txs: Vec, +} + +#[derive(Deserialize)] +struct InputRevision { + revision: u8, + from_timestamp: u64, +} + +#[derive(Deserialize)] +struct Input { + genesis_alloc: serde_json::Value, + genesis_rlp: String, + revision_schedule: Vec, + blocks: Vec, +} + +fn eest_net_chain_config() -> MonadChainConfig { + serde_json::from_value(json!({ + "chain_id": EEST_NET_CHAIN_ID, + "epoch_length": 50_000, + "epoch_start_delay": 5_000, + "v_0_7_0_activation": 0, + "v_0_8_0_activation": 0, + "v_0_10_0_activation": 0, + "v_0_11_0_activation": 0, + // Pin the consensus revision at V_0_11_0: its proposal_gas_limit + // (200M) is the block gas limit `MonadRunloopDefaults.gas_limit` + // stamps into filled headers. V_0_12_0 lowers it to 150M, which + // would change every block hash and break the EIP-2935 history a + // later block reads back. Moving to V_0_12_0 means updating that + // default and re-filling. + "v_0_12_0_activation": u64::MAX, + "staking_config": { + "staking_activation": u64::MAX, + // BlockRewardActivation is an externally tagged enum, so the + // never-activate value is a variant, not a bare integer. + "block_reward_v_one": { + "block_reward_activation": { "Epoch": u64::MAX }, + "block_reward_mon": 0, + }, + "block_reward_v_two": { + "block_reward_activation": { "Epoch": u64::MAX }, + "block_reward_mon": 0, + }, + }, + "execution_v_one_activation": 0, + "execution_v_two_activation": 0, + "execution_v_four_activation": 0, + })) + .expect("valid eest-net chain config") +} + +fn decode_tx(raw: &str) -> TxEnvelope { + let bytes = hex_decode(raw); + TxEnvelope::decode_2718(&mut bytes.as_slice()).expect("valid signed tx") +} + +fn hex_decode(raw: &str) -> Vec { + let raw = raw.strip_prefix("0x").unwrap_or(raw); + (0..raw.len()) + .step_by(2) + .map(|i| u8::from_str_radix(&raw[i..i + 2], 16).expect("valid hex")) + .collect() +} + +// Convert the triedb dump (accounts keyed by hashed trie path, storage +// keyed by hashed slot with plaintext slot/value entries) into an +// address-keyed post-state document. +fn normalize_dump(dump: &str) -> serde_json::Value { + let dump: serde_json::Value = + serde_json::from_str(dump).expect("valid dump json"); + let mut post_state = BTreeMap::new(); + for (_, account) in dump.as_object().expect("dump is an object") { + let address = account["address"] + .as_str() + .expect("account address") + .to_lowercase(); + let balance_dec = + account["balance"].as_str().expect("account balance"); + let balance = + U256::from_str_radix(balance_dec, 10).expect("decimal balance"); + let mut storage = BTreeMap::new(); + if let Some(slots) = account["storage"].as_object() { + for (_, entry) in slots { + let slot = + entry["slot"].as_str().expect("slot key").to_lowercase(); + let value = entry["value"] + .as_str() + .expect("slot value") + .to_lowercase(); + storage.insert(slot, value); + } + } + post_state.insert( + address, + json!({ + "balance": format!("0x{:x}", balance), + "nonce": account["nonce"], + "code": account["code"], + "storage": storage, + }), + ); + } + serde_json::to_value(post_state).expect("valid post state") +} + +fn main() { + let args = Args::parse(); + + let input: Input = serde_json::from_str( + &std::fs::read_to_string(&args.input).expect("readable input"), + ) + .expect("valid input document"); + + let genesis_alloc = serde_json::to_string(&input.genesis_alloc) + .expect("valid genesis alloc"); + + let genesis_rlp_hex = + input.genesis_rlp.strip_prefix("0x").unwrap_or(&input.genesis_rlp); + let revision_schedule = input + .revision_schedule + .iter() + .map(|r| format!("{}:{}", r.revision, r.from_timestamp)) + .collect::>() + .join(","); + let mut runloop = MonadRunloop::new_eest( + args.ledger_dir.clone(), + args.db.clone(), + &genesis_alloc, + genesis_rlp_hex, + &revision_schedule, + ); + + let chain_config = eest_net_chain_config(); + let proposer_private_key = [1u8; 32]; + let mut machine = Ledger::new( + chain_config, + args.ledger_dir.clone(), + proposer_private_key, + ); + + // Drive the runloop one block at a time, finalizing each block before + // the next executes. A single run(n_blocks) over a fully-written ledger + // would instead replay everything with nothing finalized until the end, + // leaving a deep unfinalized proposal chain: the runloop's proposal walk + // then truncates (DEPTH_LIMIT / unresolved genesis) and marks reads + // uncacheable, defeating the read-through page cache. Executing each + // block against an already-finalized parent keeps the walk shallow so + // the commit-time RMW read hits the cache. + let n_blocks = input.blocks.len() as u64; + for block in &input.blocks { + machine.set_timestamp(block.timestamp as u128 * 1_000_000_000); + let txs: Vec = + block.txs.iter().map(|tx| decode_tx(tx)).collect(); + machine.propose( + txs, + block.base_fee, + /* base_fee_trend: */ 0, + /* base_fee_moment: */ 0, + block.beneficiary, + ); + machine.finalize(); + runloop.run(1); + } + + // The canonical state root is the page-encoded secondary timeline's + // from MONAD_NEXT (MIP-8, revision 10) on, the slot-encoded + // primary's before. The schedule is ascending, so the last entry is + // the revision the run ends in. + let final_revision = input + .revision_schedule + .last() + .expect("non-empty revision schedule") + .revision; + let state_root = if final_revision >= 10 { + runloop.get_secondary_state_root() + } else { + runloop.get_primary_state_root() + }; + let post_state = normalize_dump(&runloop.dump_json()); + + let output = json!({ + "state_root": format!("0x{:064x}", state_root), + "post_state": post_state, + }); + std::fs::write( + &args.output, + serde_json::to_string_pretty(&output).expect("valid output"), + ) + .expect("writable output"); + + println!("eest-runner: executed {} block(s)", n_blocks); +} diff --git a/monad-runloop/rust-harness/ledger/Cargo.toml b/monad-runloop/rust-harness/ledger/Cargo.toml new file mode 100644 index 00000000000..bb5f51002d6 --- /dev/null +++ b/monad-runloop/rust-harness/ledger/Cargo.toml @@ -0,0 +1,27 @@ +[package] +name = "ledger" +version = "0.1.0" +edition = "2021" + +[dependencies] +runloop = { workspace = true } + +monad-bls = { workspace = true } +monad-chain-config = { workspace = true } +monad-consensus-types = { workspace = true } +monad-crypto = { workspace = true } +monad-eth-block-policy = { workspace = true } +monad-eth-block-validator = { workspace = true } +monad-eth-types = { workspace = true } +monad-executor = { workspace = true } +monad-executor-glue = { workspace = true } +monad-ledger = { workspace = true } +monad-secp = { workspace = true } +monad-execution-state-read = { workspace = true } +monad-types = { workspace = true } +monad-validator = { workspace = true } + +alloy-consensus = { workspace = true, features = ["k256"] } +alloy-primitives = { workspace = true } +alloy-signer = { workspace = true } +alloy-signer-local = { workspace = true } diff --git a/monad-runloop/rust-harness/ledger/src/lib.rs b/monad-runloop/rust-harness/ledger/src/lib.rs new file mode 100644 index 00000000000..8e352a083f7 --- /dev/null +++ b/monad-runloop/rust-harness/ledger/src/lib.rs @@ -0,0 +1,253 @@ +// Copyright (C) 2025 Category Labs, Inc. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +use alloy_consensus::constants::EMPTY_WITHDRAWALS; +use alloy_consensus::proofs::calculate_transaction_root; +use alloy_consensus::TxEnvelope; +use alloy_consensus::EMPTY_OMMER_ROOT_HASH; +use alloy_primitives::Address; +use monad_bls::{BlsKeyPair, BlsSignature, BlsSignatureCollection}; +use monad_chain_config::revision::ChainRevision; +use monad_chain_config::revision::MonadChainRevision; +use monad_chain_config::ChainConfig; +use monad_chain_config::MonadChainConfig; +use monad_consensus_types::block::{OptimisticCommit, GENESIS_TIMESTAMP}; +use monad_consensus_types::block::ConsensusBlockHeader; +use monad_consensus_types::block::ConsensusFullBlock; +use monad_consensus_types::block_validator::BlockValidator; +use monad_consensus_types::metrics; +use monad_consensus_types::payload::RoundSignature; +use monad_consensus_types::voting::Vote; +use monad_consensus_types::payload::ConsensusBlockBody; +use monad_consensus_types::payload::ConsensusBlockBodyInner; +use monad_consensus_types::quorum_certificate::QuorumCertificate; +use monad_crypto::certificate_signature::CertificateSignaturePubKey; +use monad_crypto::signing_domain; +use monad_eth_block_policy::timestamp_ns_to_secs; +use monad_eth_block_policy::EthBlockPolicy; +use monad_eth_block_validator::error::EthBlockValidationError; +use monad_eth_block_validator::EthBlockValidator; +use monad_eth_types::EthBlockBody; +use monad_eth_types::EthExecutionProtocol; +use monad_eth_types::ProposedEthHeader; +use monad_executor::Executor; +use monad_executor_glue::LedgerCommand; +use monad_ledger::MonadBlockFileLedger; +use monad_secp::{KeyPair, PubKey, SecpSignature}; +use monad_execution_state_read::InMemoryState; +use monad_types::GENESIS_ROUND; +use monad_types::{Epoch, LimitedVec, NodeId, Round, SeqNum, GENESIS_SEQ_NUM}; +use monad_validator::signature_collection::SignatureCollection; +use monad_validator::validator_mapping::ValidatorMapping; + +use std::collections::VecDeque; +use std::path::PathBuf; + +pub type SignatureType = SecpSignature; + +pub type SignatureCollectionType = BlsSignatureCollection>; + +pub type BlockType = ConsensusFullBlock; + +type StateBackendType = InMemoryState; + +type LedgerType = MonadBlockFileLedger; + +type BlockPolicyType = + EthBlockPolicy; + +type ValidatorType = dyn BlockValidator< + SignatureType, + SignatureCollectionType, + EthExecutionProtocol, + BlockPolicyType, + StateBackendType, + MonadChainConfig, + MonadChainRevision, + BlockValidationError = EthBlockValidationError, +>; + +fn node_id_from_private_key(mut node_private_key: [u8; 32]) -> NodeId { + let node_keypair = KeyPair::from_bytes(&mut node_private_key).unwrap(); + let node_pubkey_bytes = node_keypair.pubkey().bytes(); + let node_pubkey = PubKey::from_slice(node_pubkey_bytes.as_slice()).unwrap(); + NodeId::new(node_pubkey) +} + +pub struct Ledger { + chain_config: MonadChainConfig, + timestamp: u128, + epoch: Epoch, + round: Round, + seq_num: SeqNum, + ledger: LedgerType, + proposer_node_id: NodeId, + unfinalized_blocks: VecDeque, + qc: QuorumCertificate, +} + +impl Ledger { + pub fn new( + chain_config: MonadChainConfig, + ledger_path: PathBuf, + proposer_private_key: [u8; 32], + ) -> Ledger { + Ledger { + chain_config, + timestamp: GENESIS_TIMESTAMP, + epoch: Epoch(0), + round: GENESIS_ROUND, + seq_num: GENESIS_SEQ_NUM + SeqNum(1), + ledger: LedgerType::new(ledger_path), + proposer_node_id: node_id_from_private_key(proposer_private_key), + unfinalized_blocks: VecDeque::default(), + qc: QuorumCertificate::genesis_qc(), + } + } + + pub fn set_timestamp(&mut self, t: u128) { + self.timestamp = t + } + + fn round_signature(&self) -> RoundSignature { + let mut keypair_bytes = [0u8; 32]; + let keypair = BlsKeyPair::from_bytes(&mut keypair_bytes).unwrap(); + RoundSignature::new(self.round, &keypair) + } + + pub fn propose( + &mut self, + txs: Vec, + base_fee: u64, + base_fee_trend: u64, + base_fee_moment: u64, + beneficiary: Address, + ) { + let round_sig = self.round_signature(); + let chain_config = self.chain_config; + let node_id = self.proposer_node_id; + + let body = EthBlockBody { + transactions: LimitedVec(txs), + ommers: LimitedVec::default(), + withdrawals: LimitedVec::default(), + }; + + let timestamp_s = timestamp_ns_to_secs(self.timestamp); + + let maybe_request_hash = if self + .chain_config + .get_execution_chain_revision(timestamp_s) + .execution_chain_params() + .prague_enabled + { + Some([0_u8; 32]) + } else { + None + }; + + let header = ProposedEthHeader { + transactions_root: *calculate_transaction_root(&body.transactions.0), + ommers_hash: *EMPTY_OMMER_ROOT_HASH, + withdrawals_root: *EMPTY_WITHDRAWALS, + beneficiary: beneficiary, + difficulty: 0, + number: self.seq_num.0, + gas_limit: self + .chain_config + .get_chain_revision(self.round) + .chain_params() + .proposal_gas_limit, + timestamp: timestamp_s, + mix_hash: round_sig.get_hash().0, + nonce: [0_u8; 8], + extra_data: [0_u8; 32], + base_fee_per_gas: base_fee, + blob_gas_used: 0, + excess_blob_gas: 0, + parent_beacon_block_root: [0_u8; 32], + requests_hash: maybe_request_hash, + }; + + let consensus_block_body_inner = ConsensusBlockBodyInner { + execution_body: body, + }; + let consensus_block_body = ConsensusBlockBody::new(consensus_block_body_inner); + + let consensus_block_header = ConsensusBlockHeader { + block_round: self.round, + epoch: self.epoch, + qc: self.qc.clone(), + author: node_id, + seq_num: self.seq_num, + timestamp_ns: self.timestamp, + round_signature: round_sig, + delayed_execution_results: Vec::default(), + execution_inputs: header, + block_body_id: consensus_block_body.get_id(), + base_fee: base_fee, + base_fee_trend: base_fee_trend, + base_fee_moment: base_fee_moment, + }; + + let consensus_full_block = + ConsensusFullBlock::new(consensus_block_header, consensus_block_body).unwrap(); + let validator: &ValidatorType = &EthBlockValidator::default(); + let mut validator_metrics = metrics::Metrics::default(); + let _ = validator + .validate( + consensus_full_block.header().clone(), + consensus_full_block.body().clone(), + None, + &chain_config, + &mut validator_metrics, + ) + .expect("valid block"); + + let optimistic_commit = OptimisticCommit::Proposed { + block: consensus_full_block.clone(), + is_canonical: true, // true -> update proposed head + }; + + let ledger_command = LedgerCommand::LedgerCommit(optimistic_commit); + self.ledger.exec(vec![ledger_command]); + + self.qc = QuorumCertificate::new( + Vote { + id: consensus_full_block.get_id(), + round: self.round, + epoch: self.epoch, + }, + SignatureCollectionType::new::( + Vec::default().into_iter(), + &ValidatorMapping::new(Vec::default().into_iter()), + &[], + ) + .unwrap(), + ); + self.seq_num += SeqNum(1); + self.unfinalized_blocks.push_back(consensus_full_block); + } + + pub fn finalize(&mut self) { + let consensus_full_block = self + .unfinalized_blocks + .pop_front() + .expect("unfinalized block"); + let optimistic_commit = OptimisticCommit::Finalized(consensus_full_block); + let ledger_command = LedgerCommand::LedgerCommit(optimistic_commit); + self.ledger.exec(vec![ledger_command]); + } +} diff --git a/monad-runloop/rust-harness/runloop/Cargo.toml b/monad-runloop/rust-harness/runloop/Cargo.toml new file mode 100644 index 00000000000..0e0945a0ae7 --- /dev/null +++ b/monad-runloop/rust-harness/runloop/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "runloop" +version = "0.1.0" +edition = "2021" + +[dependencies] +monad-cxx = { workspace = true } + +alloy-primitives = { workspace = true } diff --git a/monad-runloop/rust-harness/runloop/build.rs b/monad-runloop/rust-harness/runloop/build.rs new file mode 100644 index 00000000000..3f7089dadba --- /dev/null +++ b/monad-runloop/rust-harness/runloop/build.rs @@ -0,0 +1,4 @@ +fn main() { + println!("cargo:rerun-if-changed=../../monad-bft/monad-execution/rust/crates/monad-cxx"); + println!("cargo:rustc-link-lib=dylib=monad_execution"); +} diff --git a/monad-runloop/rust-harness/runloop/src/lib.rs b/monad-runloop/rust-harness/runloop/src/lib.rs new file mode 100644 index 00000000000..049ac55bd90 --- /dev/null +++ b/monad-runloop/rust-harness/runloop/src/lib.rs @@ -0,0 +1,5 @@ +mod runloop; +mod runloop_interface_monad; + +pub use runloop::Runloop; +pub use runloop_interface_monad::MonadRunloop; diff --git a/monad-runloop/rust-harness/runloop/src/runloop.rs b/monad-runloop/rust-harness/runloop/src/runloop.rs new file mode 100644 index 00000000000..100d9656900 --- /dev/null +++ b/monad-runloop/rust-harness/runloop/src/runloop.rs @@ -0,0 +1,7 @@ +use alloy_primitives::U256; + +pub trait Runloop { + fn run(&mut self, n_blocks: u64); + fn get_primary_state_root(&mut self) -> U256; + fn get_secondary_state_root(&mut self) -> U256; +} diff --git a/monad-runloop/rust-harness/runloop/src/runloop_interface_monad.rs b/monad-runloop/rust-harness/runloop/src/runloop_interface_monad.rs new file mode 100644 index 00000000000..37436bfbb31 --- /dev/null +++ b/monad-runloop/rust-harness/runloop/src/runloop_interface_monad.rs @@ -0,0 +1,152 @@ +// Copyright (C) 2025 Category Labs, Inc. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +use std::{ + ffi::CStr, + ffi::CString, + ffi::c_char, + ffi::c_void, + path::PathBuf, +}; +use alloy_primitives::U256; +use crate::runloop::Runloop; + +#[repr(C)] +struct RawMonadRunloopWord { + bytes: [u8; 32] +} + +// Opaque runloop structure: +type RawMonadRunloop = c_void; + +extern "C" { + // Deallocate a runloop client + fn monad_runloop_delete(runloop: *mut RawMonadRunloop); + + // Execute and finalize `nblocks` number of blocks. + fn monad_runloop_run(runloop: *mut RawMonadRunloop, nblocks: u64); + + // Store current primary (slot-encoded) state root. + fn monad_runloop_get_primary_state_root( + runloop: *mut RawMonadRunloop, + result_state_root: *mut RawMonadRunloopWord, + ); + + // Store current secondary (page-encoded) state root. + fn monad_runloop_get_secondary_state_root( + runloop: *mut RawMonadRunloop, + result_state_root: *mut RawMonadRunloopWord, + ); + + // Make a new runloop client on the EEST chain (EestNet), installing + // the given genesis allocation JSON and genesis block (hex RLP) + // when the database is fresh. The revision schedule is a comma + // separated ":" list. + fn monad_runloop_new_eest( + ledger_path: *const c_char, + db_path: *const c_char, + genesis_alloc_json: *const c_char, + genesis_block_rlp_hex: *const c_char, + revision_schedule: *const c_char, + ) -> *mut RawMonadRunloop; + + // Dump the current state of the database as a JSON string. + fn monad_runloop_dump_json(runloop: *mut RawMonadRunloop) -> *mut c_char; + + // Free a string returned by the interface. + fn monad_runloop_free_string(str: *mut c_char); +} + +pub struct MonadRunloop { + raw: *mut RawMonadRunloop +} + +impl Drop for MonadRunloop { + fn drop(&mut self) { + unsafe { + monad_runloop_delete(self.raw) + } + } +} + +impl MonadRunloop { + pub fn new_eest( + ledger_path: PathBuf, + db_path: PathBuf, + genesis_alloc_json: &str, + genesis_block_rlp_hex: &str, + revision_schedule: &str, + ) -> MonadRunloop { + let ledger_path = ledger_path.into_os_string().into_string().unwrap(); + let ledger_path = CString::new(ledger_path).unwrap(); + let db_path = db_path.into_os_string().into_string().unwrap(); + let db_path = CString::new(db_path).unwrap(); + let genesis_alloc_json = CString::new(genesis_alloc_json).unwrap(); + let genesis_block_rlp_hex = + CString::new(genesis_block_rlp_hex).unwrap(); + let revision_schedule = CString::new(revision_schedule).unwrap(); + MonadRunloop { + raw: unsafe { + monad_runloop_new_eest( + ledger_path.as_ptr(), + db_path.as_ptr(), + genesis_alloc_json.as_ptr(), + genesis_block_rlp_hex.as_ptr(), + revision_schedule.as_ptr()) + } + } + } + + pub fn dump_json(&mut self) -> String { + unsafe { + let raw_str = monad_runloop_dump_json(self.raw); + let result = CStr::from_ptr(raw_str) + .to_str() + .expect("valid utf-8 state dump") + .to_owned(); + monad_runloop_free_string(raw_str); + result + } + } +} + +impl Runloop for MonadRunloop { + + fn run(&mut self, nblocks: u64) { + unsafe { + monad_runloop_run(self.raw, nblocks) + } + } + + fn get_primary_state_root(&mut self) -> U256 { + let mut state_root = RawMonadRunloopWord{ + bytes: [0; 32], + }; + unsafe { + monad_runloop_get_primary_state_root(self.raw, &mut state_root) + }; + U256::from_be_bytes(state_root.bytes) + } + + fn get_secondary_state_root(&mut self) -> U256 { + let mut state_root = RawMonadRunloopWord{ + bytes: [0; 32], + }; + unsafe { + monad_runloop_get_secondary_state_root(self.raw, &mut state_root) + }; + U256::from_be_bytes(state_root.bytes) + } +} diff --git a/packages/testing/src/execution_testing/client_clis/clis/monad.py b/packages/testing/src/execution_testing/client_clis/clis/monad.py index 0c5889785e6..3a986722247 100644 --- a/packages/testing/src/execution_testing/client_clis/clis/monad.py +++ b/packages/testing/src/execution_testing/client_clis/clis/monad.py @@ -4,10 +4,11 @@ Executes blockchain fixtures against the production monad runloop via the `eest-runner` harness binary (built from monad-bft + monad execution, EestNet chain). The fixture is digested into a simple input -document (genesis allocation + per-block timestamp/base fee/beneficiary -and raw signed transactions); the harness drives the consensus ledger -and the runloop, then emits the resulting post-state, which is compared -against the fixture's `postState`. +document (genesis allocation, genesis block RLP, the monad revision +schedule, and per-block timestamp/base fee/beneficiary with raw signed +transactions); the harness drives the consensus ledger and the runloop, +then emits the resulting post-state, which is compared against the +fixture's `postState`. """ import ctypes diff --git a/pyproject.toml b/pyproject.toml index 6f2998981ec..8e8bb146ad8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -478,6 +478,11 @@ skip = [ "tmp", "*.coverage*", "uv.lock", + # Vendored monad runloop stack: the submodule checkout, the Rust + # sources (identifiers, not prose) and the build outputs + "./monad-runloop/monad-bft", + "./monad-runloop/rust-harness", + "./monad-runloop/install", ] ignore-words = "whitelist.txt" # Custom whitelist file count = true # Display counts of errors From df72cff21cc1728b90254e1f543b71955757a4a5 Mon Sep 17 00:00:00 2001 From: pdobacz <5735525+pdobacz@users.noreply.github.com> Date: Fri, 4 Sep 2026 07:07:41 +0000 Subject: [PATCH 2/3] feat(runloop): check out only the monad submodules the build needs init-stack.sh skips three of monad's 23 third_party submodules that no CMakeLists in the default build reads, taking the stack from ~3.6 GB to ~300 MB. A guard fails the checkout if a skipped path becomes referenced. Co-Authored-By: Claude --- .github/workflows/consume_release.yaml | 22 ++++++------ MONAD_RUNLOOP_TESTING.md | 2 +- monad-runloop/README.md | 13 ++++--- monad-runloop/build.sh | 2 +- monad-runloop/init-stack.sh | 50 ++++++++++++++++++++++++++ 5 files changed, 70 insertions(+), 19 deletions(-) create mode 100755 monad-runloop/init-stack.sh diff --git a/.github/workflows/consume_release.yaml b/.github/workflows/consume_release.yaml index 06420543f48..b081b12d9b8 100644 --- a/.github/workflows/consume_release.yaml +++ b/.github/workflows/consume_release.yaml @@ -61,15 +61,15 @@ jobs: fi [ "$fail" -eq 0 ] - # The monad stack arrives with the repo. actions/checkout handles - # submodule auth, so no manual credential setup is needed; the PAT - # is only required if either submodule repo is private. - - name: Checkout consumer and the monad stack + - name: Checkout consumer uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: - submodules: recursive fetch-depth: 0 - token: ${{ secrets.MONAD_STACK_TOKEN || github.token }} + + # actions/checkout's own `submodules: recursive` would pull too much. + - name: Check out the monad stack + shell: bash + run: ./monad-runloop/init-stack.sh # Optional submodule overrides. Set a *_repo to pull that submodule # from a different fork at *_ref (default branch if ref is empty); @@ -83,13 +83,12 @@ jobs: env: REPO: ${{ inputs.monad_bft_repo }} REF: ${{ inputs.monad_bft_ref }} - TOKEN: ${{ secrets.MONAD_STACK_TOKEN || github.token }} run: | set -euo pipefail - url="https://x-access-token:${TOKEN}@github.com/${REPO}.git" + url="https://github.com/${REPO}.git" git -C monad-runloop/monad-bft fetch --depth=1 "$url" "${REF:-HEAD}" git -C monad-runloop/monad-bft checkout --detach FETCH_HEAD - git -C monad-runloop/monad-bft submodule update --init --recursive + ./monad-runloop/init-stack.sh - name: Override monad-execution if: ${{ inputs.monad_execution_repo != '' }} @@ -97,14 +96,13 @@ jobs: env: REPO: ${{ inputs.monad_execution_repo }} REF: ${{ inputs.monad_execution_ref }} - TOKEN: ${{ secrets.MONAD_STACK_TOKEN || github.token }} run: | set -euo pipefail - url="https://x-access-token:${TOKEN}@github.com/${REPO}.git" + url="https://github.com/${REPO}.git" exec_dir=monad-runloop/monad-bft/monad-execution git -C "$exec_dir" fetch --depth=1 "$url" "${REF:-HEAD}" git -C "$exec_dir" checkout --detach FETCH_HEAD - git -C "$exec_dir" submodule update --init --recursive + ./monad-runloop/init-stack.sh - name: Log pinned stack id: stack diff --git a/MONAD_RUNLOOP_TESTING.md b/MONAD_RUNLOOP_TESTING.md index aa24d167b61..90b7677e1ff 100644 --- a/MONAD_RUNLOOP_TESTING.md +++ b/MONAD_RUNLOOP_TESTING.md @@ -24,7 +24,7 @@ Requirements: docker, ~10 GB disk for the builder image and build artifacts, ~6 GB RAM for hugepages. ```sh -git submodule update --init --recursive monad-runloop/monad-bft +./monad-runloop/init-stack.sh # monad-bft + monad-execution, ~300 MB # Toolchain image (gcc-15 + rust), from the vendored Dockerfile: docker build -t monad-builder:latest \ diff --git a/monad-runloop/README.md b/monad-runloop/README.md index 8f76328a6af..f68085ebfd3 100644 --- a/monad-runloop/README.md +++ b/monad-runloop/README.md @@ -23,6 +23,8 @@ carry Category Labs GPL-3 headers, so this subtree keeps its own post-state as JSON. - `monad-bft` — submodule; its own `monad-execution` submodule carries the `EestNet` chain and the extended runloop FFI. +- `init-stack.sh` — checks out monad-bft, monad-execution, and the needed + third_party submodules, skipping test data and prose. - `docker/builder/Dockerfile` — vendored byte-identical from monad-bft, so the toolchain image builds with no network fetch and the CI cache key can hash it directly. @@ -92,16 +94,17 @@ after the last block: From the repo root: ```sh -git submodule update --init --recursive monad-runloop/monad-bft +./monad-runloop/init-stack.sh docker build -t monad-builder:latest - < monad-runloop/docker/builder/Dockerfile ./monad-runloop/build.sh monad-runloop/bin/eest-runner --version ``` -The `--recursive` is required here: `monad-bft/monad-execution` holds -the execution client and its own third-party submodules. Cloning the -superproject without `--recurse-submodules` leaves all of this empty, -which costs nothing for contributors who never run the harness. +A plain `git clone` leaves all of this empty, which costs nothing for +contributors who never run the harness. `git clone --recurse-submodules` +does populate it, but pulls the full 3.6 GB rather than the 300 MB +`init-stack.sh` selects; re-running the script afterwards is harmless +but will not shrink an already-fetched checkout. Requirements: docker, ~10 GB disk for the builder image and build artifacts, ~6 GB RAM for hugepages. diff --git a/monad-runloop/build.sh b/monad-runloop/build.sh index b773348985f..ea99297c782 100755 --- a/monad-runloop/build.sh +++ b/monad-runloop/build.sh @@ -9,7 +9,7 @@ ROOT="$(cd "$(dirname "$0")" && pwd)" if [ ! -f "$ROOT/monad-bft/Cargo.toml" ] || [ ! -f "$ROOT/monad-bft/monad-execution/CMakeLists.txt" ]; then echo "error: the monad stack is not checked out. Run:" >&2 - echo " git submodule update --init --recursive monad-runloop/monad-bft" >&2 + echo " ./monad-runloop/init-stack.sh" >&2 exit 1 fi diff --git a/monad-runloop/init-stack.sh b/monad-runloop/init-stack.sh new file mode 100755 index 00000000000..cfcd1271f44 --- /dev/null +++ b/monad-runloop/init-stack.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +# Check out the monad stack the harness builds against: monad-bft, its +# monad-execution submodule, and the third_party submodules the CMake +# build needs. +# +# monad declares 23 third_party submodules, 3.3 GB, not all needed. +# +# SKIP is a denylist on purpose. A submodule the build turns out to need +# fails as a confusing CMake error deep into the build, while an extra +# one only costs disk, so anything monad adds later is checked out by +# default and only entries verified unreferenced are listed here. +set -euo pipefail + +ROOT="$(cd "$(dirname "$0")" && pwd)" +REPO="$(git -C "$ROOT" rev-parse --show-toplevel)" +EXEC="$ROOT/monad-bft/monad-execution" + +SKIP=( + third_party/ethereum-tests + third_party/yellowpaper + third_party/zkevm-standards +) + +git -C "$REPO" submodule update --init monad-runloop/monad-bft +git -C "$ROOT/monad-bft" submodule update --init monad-execution + +# Guard the denylist against upstream drift. The scope mirrors what the +# top-level CMakeLists descends into, which excludes zkvm/ — that is why +# zkevm-standards can be skipped even though zkvm/guest references it. +guard_scope=("$EXEC/CMakeLists.txt" "$EXEC/category" "$EXEC/cmd") +for path in "${SKIP[@]}"; do + if grep -rlq --include=CMakeLists.txt --include='*.cmake' \ + -- "$(basename "$path")" "${guard_scope[@]}" 2>/dev/null; then + echo "error: $path is on the skip list but the build references" >&2 + echo " it. Remove it from SKIP in $(basename "$0")." >&2 + exit 1 + fi +done + +mapfile -t wanted < <( + git -C "$EXEC" config --file .gitmodules --get-regexp '\.path$' | + awk '{print $2}' | + grep -vxF -f <(printf '%s\n' "${SKIP[@]}") +) + +git -C "$EXEC" submodule update --init --recursive -- "${wanted[@]}" + +echo "monad stack ready: $(git -C "$ROOT/monad-bft" rev-parse --short HEAD)" \ + "+ monad-execution $(git -C "$EXEC" rev-parse --short HEAD)," \ + "${#wanted[@]} of $((${#wanted[@]} + ${#SKIP[@]})) third_party submodules" From 9aa7ec39a4bfa58d62358450d8993d916a1cf92c Mon Sep 17 00:00:00 2001 From: pdobacz <5735525+pdobacz@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:50:15 +0000 Subject: [PATCH 3/3] fix(ci): keep stack overrides from being reset by init-stack.sh git submodule update returns a submodule to the recorded gitlink, so calling init-stack.sh after an override reverted it and the run tested the pinned stack. --keep names the level already checked out. Co-Authored-By: Claude --- .github/workflows/consume_release.yaml | 4 ++-- monad-runloop/init-stack.sh | 33 ++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/consume_release.yaml b/.github/workflows/consume_release.yaml index b081b12d9b8..401edc213c2 100644 --- a/.github/workflows/consume_release.yaml +++ b/.github/workflows/consume_release.yaml @@ -88,7 +88,7 @@ jobs: url="https://github.com/${REPO}.git" git -C monad-runloop/monad-bft fetch --depth=1 "$url" "${REF:-HEAD}" git -C monad-runloop/monad-bft checkout --detach FETCH_HEAD - ./monad-runloop/init-stack.sh + ./monad-runloop/init-stack.sh --keep bft - name: Override monad-execution if: ${{ inputs.monad_execution_repo != '' }} @@ -102,7 +102,7 @@ jobs: exec_dir=monad-runloop/monad-bft/monad-execution git -C "$exec_dir" fetch --depth=1 "$url" "${REF:-HEAD}" git -C "$exec_dir" checkout --detach FETCH_HEAD - ./monad-runloop/init-stack.sh + ./monad-runloop/init-stack.sh --keep exec - name: Log pinned stack id: stack diff --git a/monad-runloop/init-stack.sh b/monad-runloop/init-stack.sh index cfcd1271f44..da08c436953 100755 --- a/monad-runloop/init-stack.sh +++ b/monad-runloop/init-stack.sh @@ -9,8 +9,33 @@ # fails as a confusing CMake error deep into the build, while an extra # one only costs disk, so anything monad adds later is checked out by # default and only entries verified unreferenced are listed here. +# +# `git submodule update` resets a submodule to the recorded gitlink, so +# a caller that has deliberately checked one out elsewhere must say so: +# +# --keep bft monad-bft is already where it should be; still apply +# its own monad-execution pin +# --keep exec monad-bft and monad-execution are both already where +# they should be +# +# Without this the consume workflow's stack overrides would be reverted +# to the pinned stack, and the run would silently test the wrong code. set -euo pipefail +KEEP=none +case "${1:-}" in + "") ;; + --keep) + KEEP="${2:?--keep needs an argument: bft or exec}" + case "$KEEP" in + bft | exec) ;; + *) echo "error: --keep takes bft or exec, got '$KEEP'" >&2 + exit 1 ;; + esac + ;; + *) echo "usage: $(basename "$0") [--keep bft|exec]" >&2; exit 1 ;; +esac + ROOT="$(cd "$(dirname "$0")" && pwd)" REPO="$(git -C "$ROOT" rev-parse --show-toplevel)" EXEC="$ROOT/monad-bft/monad-execution" @@ -21,8 +46,12 @@ SKIP=( third_party/zkevm-standards ) -git -C "$REPO" submodule update --init monad-runloop/monad-bft -git -C "$ROOT/monad-bft" submodule update --init monad-execution +if [ "$KEEP" = none ]; then + git -C "$REPO" submodule update --init monad-runloop/monad-bft +fi +if [ "$KEEP" != exec ]; then + git -C "$ROOT/monad-bft" submodule update --init monad-execution +fi # Guard the denylist against upstream drift. The scope mirrors what the # top-level CMakeLists descends into, which excludes zkvm/ — that is why