Skip to content

Commit 08b05a3

Browse files
jjeangaldiegoximenesganeshvanahallitsaheejoshuacolvin0
authored
Celestia v3.5.2 (#561)
* Fix br_table * Fixes data_type.gen * Generates number in local.set * Fixes select * Create a metric for local block execution time * merge master and update geth pin * address PR comments * fix arbitrator-ci * fix typo * Uses catch all in match * add targets to arbitrator * Fixes data_type.gen * Fix `--execution.rpc.gas-cap=0` to again mean infinite gas There was a regression introduced in v3.3.0 where specifying `--execution.rpc.gas-cap=0` would cause gas related errors. * refactor: using slices.Contains to simplify the code Signed-off-by: dashangcun <[email protected]> * Allow forwarding of express lane txs to the chosen sequencer * Fix typo pimative -> primitive * Update geth pin to pull in extra comment * fix forwarding of expressLane txs when paused * Enable the geth trie prefetcher for the sequencer * Revert wasmer update New version of wasmer considers binaries created by current version of wasmer as incompatible. Will delay merging in new versions to reduce the number of times that stylus contracts will need to be recompiled. This reverts commit 93841ce, reversing changes made to 3ba8fc2. * prevent non-chosen sequencer from processing an expressLaneTx itself when forwarder is disabled (eg: when updating forwarder to a new address) * address PR comments * Auction resolution latency metric * Timeboost: swap sequencers seamlessly * Upgrade actions/upload-artifact in CI * prioritize reading from timeboostAuctionResolutionTxQueue * chore: fix some function names in comment Signed-off-by: linchizhen <[email protected]> * Add the installation of the cbindgen binary This binary is used in the make invocation, so it needs to be installed. * add system test to test seamless swap of active sequencer * fix lint errors * Add cbindgen to both workflows It turns out that the ci.yml workflow was also failing because of the removal of cbindgen from the Ubuntu 24.04 image used by the GitHub action runners. This change also moves the installation of cbindgen earlier in the codequl-analysis.yml file and expands the scope of what is cached after a rust installation to include the cbindgen binary (which is installed in ~/.cargo/bin) * Bump golang.org/x/net from 0.26.0 to 0.33.0 Bumps [golang.org/x/net](https://github.com/golang/net) from 0.26.0 to 0.33.0. - [Commits](golang/net@v0.26.0...v0.33.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Implement CodeAt for contractAdapter CodeAt is needed if the contract call returns a zero length response. The bind library code uses CodeAt to check if there is any contract there at all. * make redis related updates more async * Move timeboost init back to mainImpl It doesn't work where it was before, the contractAdapter is unable to read the express lane contract. * address PR comments * Move express lane start to after init * Make auctioneer rpc namespace work on non jwt * make best effort to sync from redis during a swap * disable control transfer * update bold * geth-pin update: performance and metrics improvements * maintenance api * reduce roundInfo lock contention in syncFromRedis * address PR comments * Flushed TrieDB during maintenance * Forward auction resolution txs * Moves maintenance trie cap limit config to execution config * Fixes units related to trie cap limit config * Apply suggestions from code review Co-authored-by: Joshua Colvin <[email protected]> * Fixes mutex in FlushTrieDB * maintenance: improve api and address reviews * address PR comments * address PR comments * fix lint error * fix failing test after merge from upstream * update pin * fix for flatcalltracer originally just on v3.3.x branch fixes NIT-3071 Pulls in OffchainLabs/go-ethereum#401 * comment fixes by PR reviewe * fix TestPrestateTracingSimple * further fix TestPrestateTracingSimple * Add two new fields that were added to the rollup config * Extra logging for when forwarding fails * attempt to reduce flakiness of bold virtual block tests * Option to use redis coordinator to find sequencer This PR adds two new options for the autonomous-auctioneer which allow it to discover the active sequencer so that it can send its auction resolution transactions directly to it. If the sequencer is using the redis coordinator to manage which sequencer is active, then the same redis url can be passed as an option to the auctioneer. The new options are: --auctioneer-server.redis-coordinator-url --auctioneer-server.use-redis-coordinator * revert * revert changes to nitro-testnode * allow sequencer to not use block metadata * do not add zero metadata or track it when timeboost is not enabled * Use the correct error When the state provider isn't able to do its job because the chain is lagging behind head, it's supposed to use a predefined error from the l2stateprovider package. Instead, the nitro implemention of the provider was using a redefinition of the error. While this coding error easily accounts for why there were a bunch of ERROR logs about the chain's not keeping up with the latest changes, it does not explain why the test is sometimes flaky. I suspect that the original commits in this PR were chasing the ERROR logs in the flaky tests, but that those were not the root cause of the test failures. * bulk syncing of missing block metadata should start from the block number provided in trackBlockMetadataFrom flag, this prevents querying of stale missing data * Take out JWT from timeboost system tests * Add small sleep in BoLD when chain is behind Pulls in https://github.com/OffchainLabs/bold/pull/726/files * avoids leaking URL in fallback client * Fixes import lint issue * Update bold pin * TransactionStreamer: dont fetch block metadata when unnecessary avoid trying to fetch block metadata when nnecessary * fix failing tests * fix test * Revert "Update bold pin" This reverts commit 0800d46. * chainInfo supports track-block-metadata-from * Timeboost: Don't store or publish to feed, blockMetadata of blocks lower than TrackBlockMetadataFrom config option * allow sequencer to collect metadata without timeboost * remove accidental nitro-testnode pin update * add blockinfo to sepolia metadata * Fix reading of pending ExpressLane messages from redis * decouple scanning of keys from fetching of messages from redis * Mark `timeboost` as dangerous since it is a work in progress Timeboost is not completely finished yet, so not recommended for production use. * Fix configuration update * bound the search for pending messages in redis during a switchover * fix failing tests * update timeboost config in system_test * merge conflicts fix * Do not modify gas cap if already `0` (infinite) * update pin * update geth pin * remove block metadata from sepolia * Allow BlockMetadata to be generated when timeboost isn't enabled * fix lint error in systemTest * address PR comments * Start tracking metadata in sepolia Add configuration for block to start tracking sepolia metadata. * update stake-token to WETH on L1 * Fix syncMonitor's BlockMetadataByNumber response for arb classic block numbers * Celestia DA - Fix anytrust fallback issues - Add `Type()` to dapWritter to differentiate which dapWritter is being used (`celestia` or `anytrust`) - pin contracts branch and nitro testnode branch Update .gitmodules Update download-machine.sh Update Dockerfile Fix interface methods Merge branch 'celestia-v3.1.2' into celestia-v3.2.1 Pin contracts and testnode * fix go mod and pin submodules * Update submodules based on modified .gitmodules * Update contracts submodule to commit 1b04973 * updates on nitro-testnode v * Update go-ethereum submodule to commit b487f6fa36 * update bold to celestia branch * typo in gitmodules * Update bold submodule to the celestia latest commit * fix brotli lib issues * update node in fake.nix * update docker node version * update smart-account submodule commit * node18 * Update contracts submodule to v2.1.3-celestia-1b04973 * Keep upstream mod versions * fix docker file wasi -> wasip1 * Restore 3.5.2 rust wasm rules * test nits fixes * Fix some tests * Fix CI to match nitro-espresso origin * fix tests 2 * update bold commit with yulgen * Fix bold test * fix db ref * Fix old references to wasm2 and arbitrumdata2 * fix typos - duplicates * fix last test - das_test * Fix CI and update to last test * remove celestia failing lint * deadbeefbee * fix state scheme duplicate artifact * Update brotli commit to match upstream * add chains stake-token * add disableStylusCacheMetricsCollection check * update brotli script for updated commit --------- Signed-off-by: dashangcun <[email protected]> Signed-off-by: linchizhen <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Diego Ximenes <[email protected]> Co-authored-by: Ganesh Vanahalli <[email protected]> Co-authored-by: Tsahi Zidenberg <[email protected]> Co-authored-by: Tsahi Zidenberg <[email protected]> Co-authored-by: Joshua Colvin <[email protected]> Co-authored-by: dashangcun <[email protected]> Co-authored-by: Pepper Lebeck-Jobe <[email protected]> Co-authored-by: Maciej Kulawik <[email protected]> Co-authored-by: Lee Bousfield <[email protected]> Co-authored-by: Tristan Wilson <[email protected]> Co-authored-by: linchizhen <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raul Jordan <[email protected]> Co-authored-by: Tristan-Wilson <[email protected]> Co-authored-by: Derek Lee <[email protected]> Co-authored-by: Diego <[email protected]>
1 parent 9f6286a commit 08b05a3

File tree

241 files changed

+18070
-3785
lines changed

Some content is hidden

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

241 files changed

+18070
-3785
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ arbitrator/tools/wasmer/target/
3636
arbitrator/tools/wasm-tools/
3737
arbitrator/tools/pricers/
3838
arbitrator/tools/module_roots/
39+
arbitrator/tools/stylus_benchmark
3940
arbitrator/langs/rust/target/
4041
arbitrator/langs/bf/target/
4142

.github/workflows/arbitrator-ci.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ jobs:
7171
cache: 'yarn'
7272
cache-dependency-path: '**/yarn.lock'
7373

74-
- name: Install rust stable
75-
uses: dtolnay/rust-toolchain@stable
76-
with:
77-
toolchain: 'stable'
78-
components: 'llvm-tools-preview, rustfmt, clippy'
79-
8074
- name: Install rust nightly
8175
uses: dtolnay/rust-toolchain@nightly
8276
id: install-rust-nightly
@@ -85,6 +79,14 @@ jobs:
8579
targets: 'wasm32-wasi, wasm32-unknown-unknown'
8680
components: 'rust-src, rustfmt, clippy'
8781

82+
- name: Install rust stable
83+
id: install-rust
84+
uses: dtolnay/rust-toolchain@stable
85+
with:
86+
toolchain: '1.80.1'
87+
targets: 'wasm32-wasi, wasm32-unknown-unknown'
88+
components: 'llvm-tools-preview, rustfmt, clippy'
89+
8890
- name: Set STYLUS_NIGHTLY_VER environment variable
8991
run: echo "STYLUS_NIGHTLY_VER=+$(rustup toolchain list | grep '^nightly' | head -n1 | cut -d' ' -f1)" >> "$GITHUB_ENV"
9092

@@ -172,12 +174,18 @@ jobs:
172174
- name: Run rust tests
173175
run: cargo test -p arbutil -p prover -p jit -p stylus --release --manifest-path arbitrator/prover/Cargo.toml
174176

177+
- name: Check stylus_bechmark
178+
run: cargo check --manifest-path arbitrator/tools/stylus_benchmark/Cargo.toml
179+
175180
- name: Rustfmt
176181
run: cargo fmt -p arbutil -p prover -p jit -p stylus --manifest-path arbitrator/Cargo.toml -- --check
177182

178183
- name: Rustfmt - langs/rust
179184
run: cargo fmt --all --manifest-path arbitrator/langs/rust/Cargo.toml -- --check
180185

186+
- name: Rustfmt - tools/stylus_benchmark
187+
run: cargo fmt --all --manifest-path arbitrator/tools/stylus_benchmark/Cargo.toml -- --check
188+
181189
- name: Make proofs from test cases
182190
run: make -j test-gen-proofs
183191

.github/workflows/ci.yml

+53-16
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
117117
- name: Install rust stable
118118
uses: dtolnay/rust-toolchain@stable
119+
id: install-rust
119120
with:
120121
toolchain: "1.81.0"
121122
targets: "wasm32-wasi, wasm32-unknown-unknown"
@@ -140,6 +141,9 @@ jobs:
140141

141142
- name: Install Foundry
142143
uses: foundry-rs/foundry-toolchain@v1
144+
145+
- name: Install cbindgen
146+
run: cargo install --force cbindgen
143147

144148
- name: Cache Build Products
145149
uses: actions/cache@v3
@@ -196,6 +200,7 @@ jobs:
196200
- name: Build all lint dependencies
197201
run: make -j build-node-deps
198202

203+
199204
# TODO: celestia has lint errors, fix in later PRs
200205
# - name: Lint
201206
# if: matrix.test-mode == 'defaults'
@@ -215,29 +220,66 @@ jobs:
215220
echo "GOGC=80" >> "$GITHUB_ENV"
216221
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> "$GITHUB_ENV"
217222
218-
- name: run tests without race detection (path and hash state scheme)
223+
- name: run tests without race detection and path state scheme
224+
if: matrix.test-mode == 'defaults'
225+
shell: bash
226+
env:
227+
TEST_STATE_SCHEME: path
228+
run: |
229+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
230+
echo "Running tests with Path Scheme" >> full.log
231+
${{ github.workspace }}/scripts/espresso-run-test-ci
232+
233+
- name: run tests without race detection and hash state scheme
219234
if: matrix.test-mode == 'defaults'
220235
shell: bash
221236
env:
222-
TEST_STATE_SCHEME: ${{ matrix.test-state-scheme }}
237+
TEST_STATE_SCHEME: hash
223238
run: |
224239
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
225-
scripts/espresso-run-test-ci
240+
echo "Running tests with Hash Scheme" >> full.log
241+
${{ github.workspace }}/scripts/espresso-run-test-ci
226242
227-
- name: run tests with race detection (path and hash state scheme)
243+
- name: run tests with race detection and hash state scheme
228244
if: matrix.test-mode == 'race'
229245
shell: bash
230246
env:
231-
TEST_STATE_SCHEME: ${{ matrix.test-state-scheme }}
247+
TEST_STATE_SCHEME: hash
232248
run: |
233249
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
234-
scripts/espresso-run-test-ci -race
250+
echo "Running tests with Hash Scheme" >> full.log
251+
${{ github.workspace }}/scripts/espresso-run-test-ci -race
235252
236253
- name: run redis tests
237-
if: matrix.test-mode == 'redis'
254+
if: matrix.test-mode == 'defaults'
255+
shell: bash
238256
run: |
239257
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
240-
TEST_REDIS=redis://localhost:6379/0 scripts/espresso-run-test-ci -p 1 -run TestRedis ./arbnode/... ./system_tests/...
258+
echo "Running redis tests" >> full.log
259+
TEST_REDIS=redis://localhost:6379/0 ${{ github.workspace }}/scripts/espresso-run-test-ci -p 1 -run TestRedis ./arbnode/... ./system_tests/...
260+
261+
- name: create block input json file
262+
if: matrix.test-mode == 'defaults'
263+
run: |
264+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
265+
gotestsum --format short-verbose -- -run TestProgramStorage$ ./system_tests/... --count 1 --recordBlockInputs.WithBaseDir="${{ github.workspace }}/target" --recordBlockInputs.WithTimestampDirEnabled=false --recordBlockInputs.WithBlockIdInFileNameEnabled=false
266+
267+
- name: run arbitrator prover on block input json
268+
if: matrix.test-mode == 'defaults'
269+
run: |
270+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
271+
make build-prover-bin
272+
target/bin/prover target/machines/latest/machine.wavm.br -b --json-inputs="${{ github.workspace }}/target/TestProgramStorage/block_inputs.json"
273+
274+
- name: run jit prover on block input json
275+
if: matrix.test-mode == 'defaults'
276+
run: |
277+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/target/lib
278+
make build-jit
279+
if [ -n "$(target/bin/jit --binary target/machines/latest/replay.wasm --cranelift --json-inputs='${{ github.workspace }}/target/TestProgramStorage/block_inputs.json')" ]; then
280+
echo "Error: Command produced output."
281+
exit 1
282+
fi
241283
242284
- name: run challenge tests
243285
if: matrix.test-mode == 'challenge'
@@ -263,19 +305,14 @@ jobs:
263305
- name: Archive detailed run log
264306
uses: actions/upload-artifact@v4
265307
with:
266-
name: ${{ matrix.test-mode }}-full.log
308+
name: ${{ matrix.test-mode }}-${{ matrix.test-state-scheme || 'default' }}-full.log
267309
path: full.log
268310

269311
- name: Upload coverage to Codecov
270312
uses: codecov/codecov-action@v2
271-
if: false
313+
if: matrix.test-mode == 'defaults'
272314
with:
273315
fail_ci_if_error: false
274316
files: ./coverage.txt,./coverage-redis.txt
275317
verbose: false
276-
token: ${{ secrets.CODECOV_TOKEN }}
277-
278-
- name: Check available space after CI run
279-
if: "!cancelled()"
280-
run: |
281-
sudo df -h
318+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql-analysis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ jobs:
8383
with:
8484
version: nightly
8585

86+
- name: Install cbindgen
87+
run: cargo install --force cbindgen
88+
8689
- name: Cache Rust Build Products
8790
uses: actions/cache@v3
8891
with:
8992
path: |
90-
~/.cargo/registry/
91-
~/.cargo/git/
93+
~/.cargo/
9294
arbitrator/target/
9395
arbitrator/wasm-libraries/target/
9496
arbitrator/wasm-libraries/soft-float/SoftFloat/build

.github/workflows/submodule-pin-check.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ jobs:
2525
run: |
2626
status_state="pending"
2727
declare -Ar exceptions=(
28-
[contracts]=origin/develop
28+
[contracts]=origin/pre-bold
2929
[nitro-testnode]=origin/master
30-
30+
3131
#TODO Rachel to check these are the intended branches.
3232
[arbitrator/langs/c]=origin/vm-storage-cache
33-
[arbitrator/tools/wasmer]=origin/adopt-v4.2.8
33+
[arbitrator/tools/wasmer]=origin/stylus
3434
)
3535
divergent=0
3636
for mod in `git submodule --quiet foreach 'echo $name'`; do
3737
branch=origin/HEAD
3838
if [[ -v exceptions[$mod] ]]; then
3939
branch=${exceptions[$mod]}
4040
fi
41-
41+
4242
if ! git -C $mod merge-base --is-ancestor HEAD $branch; then
4343
echo $mod diverges from $branch
4444
divergent=1

.gitmodules

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
[submodule "contracts"]
1111
path = contracts
1212
url = https://github.com/EspressoSystems/nitro-contracts.git
13-
branch = celestia-integration
1413
[submodule "arbitrator/wasm-testsuite/testsuite"]
1514
path = arbitrator/wasm-testsuite/testsuite
1615
url = https://github.com/WebAssembly/testsuite.git
@@ -19,11 +18,12 @@
1918
url = https://github.com/OffchainLabs/wasmer.git
2019
[submodule "nitro-testnode"]
2120
path = nitro-testnode
22-
url = https://github.com/EspressoSystems/nitro-testnode
21+
url = https://github.com/EspressoSystems/nitro-testnode.git
2322
branch = celestia-integration
2423
[submodule "bold"]
2524
path = bold
26-
url = https://github.com/OffchainLabs/bold.git
25+
url = https://github.com/EspressoSystems/bold.git
26+
branch = celestia
2727
[submodule "arbitrator/langs/rust"]
2828
path = arbitrator/langs/rust
2929
url = https://github.com/OffchainLabs/stylus-sdk-rs.git
@@ -39,4 +39,3 @@
3939
[submodule "go-ethereum"]
4040
path = go-ethereum
4141
url = https://github.com/OffchainLabs/go-ethereum.git
42-
branch = nitro_v3.3.1

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ FROM nitro-node-slim AS nitro-node
326326
USER root
327327
COPY --from=prover-export /bin/jit /usr/local/bin/
328328
COPY --from=node-builder /workspace/target/bin/daserver /usr/local/bin/
329+
COPY --from=node-builder /workspace/target/bin/autonomous-auctioneer /usr/local/bin/
330+
COPY --from=node-builder /workspace/target/bin/bidder-client /usr/local/bin/
329331
COPY --from=node-builder /workspace/target/bin/datool /usr/local/bin/
330332
COPY --from=nitro-legacy /home/user/target/machines /home/user/nitro-legacy/machines
331333
RUN rm -rf /workspace/target/legacy-machines/latest
@@ -361,6 +363,7 @@ RUN rm -f /home/user/target/machines/latest
361363
COPY --from=prover-export /bin/jit /usr/local/bin/
362364
COPY --from=node-builder /workspace/target/bin/deploy /usr/local/bin/
363365
COPY --from=node-builder /workspace/target/bin/seq-coordinator-invalidate /usr/local/bin/
366+
COPY --from=node-builder /workspace/target/bin/mockexternalsigner /usr/local/bin/
364367
COPY --from=module-root-calc /workspace/target/machines/latest/machine.wavm.br /home/user/target/machines/latest/
365368
COPY --from=module-root-calc /workspace/target/machines/latest/until-host-io-state.bin /home/user/target/machines/latest/
366369
COPY --from=module-root-calc /workspace/target/machines/latest/module-root.txt /home/user/target/machines/latest/

Makefile

+36-14
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ all: build build-replay-env test-gen-proofs
186186
@touch .make/all
187187

188188
.PHONY: build
189-
build: $(patsubst %,$(output_root)/bin/%, nitro deploy relay daserver datool seq-coordinator-invalidate nitro-val seq-coordinator-manager dbconv)
189+
build: $(patsubst %,$(output_root)/bin/%, nitro deploy relay daserver autonomous-auctioneer bidder-client datool mockexternalsigner seq-coordinator-invalidate nitro-val seq-coordinator-manager dbconv)
190190
@printf $(done)
191191

192192
.PHONY: build-node-deps
@@ -334,9 +334,18 @@ $(output_root)/bin/relay: $(DEP_PREDICATE) build-node-deps
334334
$(output_root)/bin/daserver: $(DEP_PREDICATE) build-node-deps
335335
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/daserver"
336336

337+
$(output_root)/bin/autonomous-auctioneer: $(DEP_PREDICATE) build-node-deps
338+
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/autonomous-auctioneer"
339+
340+
$(output_root)/bin/bidder-client: $(DEP_PREDICATE) build-node-deps
341+
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/bidder-client"
342+
337343
$(output_root)/bin/datool: $(DEP_PREDICATE) build-node-deps
338344
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/datool"
339345

346+
$(output_root)/bin/mockexternalsigner: $(DEP_PREDICATE) build-node-deps
347+
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/mockexternalsigner"
348+
340349
$(output_root)/bin/seq-coordinator-invalidate: $(DEP_PREDICATE) build-node-deps
341350
go build $(GOLANG_PARAMS) -o $@ "$(CURDIR)/cmd/seq-coordinator-invalidate"
342351

@@ -471,67 +480,80 @@ $(stylus_test_dir)/%.wasm: $(stylus_test_dir)/%.b $(stylus_lang_bf)
471480

472481
$(stylus_test_keccak_wasm): $(stylus_test_keccak_src)
473482
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
474-
./scripts/remove_reference_types.sh $@
483+
wasm2wat $@ > $@.wat #removing reference types
484+
wat2wasm $@.wat -o $@
475485
@touch -c $@ # cargo might decide to not rebuild the binary
476486

477487
$(stylus_test_keccak-100_wasm): $(stylus_test_keccak-100_src)
478488
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
479-
./scripts/remove_reference_types.sh $@
489+
wasm2wat $@ > $@.wat #removing reference types
490+
wat2wasm $@.wat -o $@
480491
@touch -c $@ # cargo might decide to not rebuild the binary
481492

482493
$(stylus_test_fallible_wasm): $(stylus_test_fallible_src)
483494
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
484-
./scripts/remove_reference_types.sh $@
495+
wasm2wat $@ > $@.wat #removing reference types
496+
wat2wasm $@.wat -o $@
485497
@touch -c $@ # cargo might decide to not rebuild the binary
486498

487499
$(stylus_test_storage_wasm): $(stylus_test_storage_src)
488500
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
489-
./scripts/remove_reference_types.sh $@
501+
wasm2wat $@ > $@.wat #removing reference types
502+
wat2wasm $@.wat -o $@
490503
@touch -c $@ # cargo might decide to not rebuild the binary
491504

492505
$(stylus_test_multicall_wasm): $(stylus_test_multicall_src)
493506
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
494-
./scripts/remove_reference_types.sh $@
507+
wasm2wat $@ > $@.wat #removing reference types
508+
wat2wasm $@.wat -o $@
495509
@touch -c $@ # cargo might decide to not rebuild the binary
496510

497511
$(stylus_test_log_wasm): $(stylus_test_log_src)
498512
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
499-
./scripts/remove_reference_types.sh $@
513+
wasm2wat $@ > $@.wat #removing reference types
514+
wat2wasm $@.wat -o $@
500515
@touch -c $@ # cargo might decide to not rebuild the binary
501516

502517
$(stylus_test_create_wasm): $(stylus_test_create_src)
503518
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
504-
./scripts/remove_reference_types.sh $@
519+
wasm2wat $@ > $@.wat #removing reference types
520+
wat2wasm $@.wat -o $@
505521
@touch -c $@ # cargo might decide to not rebuild the binary
506522

507523
$(stylus_test_math_wasm): $(stylus_test_math_src)
508524
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
509-
./scripts/remove_reference_types.sh $@
525+
wasm2wat $@ > $@.wat #removing reference types
526+
wat2wasm $@.wat -o $@
510527
@touch -c $@ # cargo might decide to not rebuild the binary
511528

512529
$(stylus_test_evm-data_wasm): $(stylus_test_evm-data_src)
513530
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
514-
./scripts/remove_reference_types.sh $@
531+
wasm2wat $@ > $@.wat #removing reference types
532+
wat2wasm $@.wat -o $@
515533
@touch -c $@ # cargo might decide to not rebuild the binary
516534

517535
$(stylus_test_read-return-data_wasm): $(stylus_test_read-return-data_src)
518536
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
519-
./scripts/remove_reference_types.sh $@
537+
wasm2wat $@ > $@.wat #removing reference types
538+
wat2wasm $@.wat -o $@
520539
@touch -c $@ # cargo might decide to not rebuild the binary
521540

522541
$(stylus_test_sdk-storage_wasm): $(stylus_test_sdk-storage_src)
523542
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
524-
./scripts/remove_reference_types.sh $@
543+
wasm2wat $@ > $@.wat #removing reference types
544+
wat2wasm $@.wat -o $@
525545
@touch -c $@ # cargo might decide to not rebuild the binary
526546

527547
$(stylus_test_erc20_wasm): $(stylus_test_erc20_src)
528548
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
529-
./scripts/remove_reference_types.sh $@
549+
wasm2wat $@ > $@.wat #removing reference types
550+
wat2wasm $@.wat -o $@
530551
@touch -c $@ # cargo might decide to not rebuild the binary
531552

532553
$(stylus_test_hostio-test_wasm): $(stylus_test_hostio-test_src)
533554
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
534-
./scripts/remove_reference_types.sh $@
555+
wasm2wat $@ > $@.wat #removing reference types
556+
wat2wasm $@.wat -o $@
535557
@touch -c $@ # cargo might decide to not rebuild the binary
536558

537559
contracts/test/prover/proofs/float%.json: $(arbitrator_cases)/float%.wasm $(prover_bin) $(output_latest)/soft-float.wasm

arbitrator/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ members = [
1212
exclude = [
1313
"stylus/tests/",
1414
"tools/wasmer/",
15+
"tools/stylus_benchmark",
1516
]
1617
resolver = "2"
1718

0 commit comments

Comments
 (0)