Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nitro 2.2.5 merge #211

Merged
merged 1,455 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1455 commits
Select commit Hold shift + click to select a range
fe65429
Port BlobClient from old 4844 branch
Tristan-Wilson Jan 23, 2024
6a6c69a
Merge pull request #2091 from OffchainLabs/docker-consensus-v11.1
PlasmaPower Jan 23, 2024
eefa47a
Rename HexBytes to HexBytesParser
PlasmaPower Jan 23, 2024
11e61aa
Implement 4844 blob reading in replay binary
PlasmaPower Jan 23, 2024
511480e
Add foundry to CI
PlasmaPower Jan 23, 2024
5377d0f
Install foundry in docker and fix CI
PlasmaPower Jan 23, 2024
6cca704
Fix docker build
PlasmaPower Jan 23, 2024
609b4cf
Add 4844 blob tx support to data poster (rbf is wip)
PlasmaPower Jan 23, 2024
d3d0e0f
Add support for 4844 batch posting
PlasmaPower Jan 23, 2024
d229f3c
Use updated contracts
PlasmaPower Jan 23, 2024
3b6da8a
Merge branch 'master' into fix-delayed-seq-finality
amsanghi Jan 23, 2024
4bcb5ec
Fix
amsanghi Jan 23, 2024
2694d8e
Add comments
amsanghi Jan 23, 2024
306a19d
Merge pull request #2085 from OffchainLabs/fix-delayed-seq-finality
PlasmaPower Jan 23, 2024
411e2b5
Add safety check of KZG preimage length
PlasmaPower Jan 23, 2024
6b9ac0a
Fix formatting
PlasmaPower Jan 23, 2024
eba35e5
Fix bit checks
PlasmaPower Jan 23, 2024
c6ff17b
Merge branch '4844-consensus' into 4844-batch-posting
PlasmaPower Jan 23, 2024
8639116
Fix Data field type in estimateGasParams
PlasmaPower Jan 23, 2024
367dfec
Merge pull request #2093 from OffchainLabs/4844-consensus
PlasmaPower Jan 23, 2024
5cdcde1
Fix raw estimateGas in batch poster
PlasmaPower Jan 23, 2024
54ee5c3
Misc refactors while I was tracking down the previous bug
PlasmaPower Jan 23, 2024
4925e63
Add option to force posting 4844 blobs
PlasmaPower Jan 23, 2024
a432347
Merge branch 'master' into kzg-proof
PlasmaPower Jan 23, 2024
aa45e17
Merge pull request #2064 from OffchainLabs/kzg-proof
PlasmaPower Jan 23, 2024
633e967
Merge branch 'master' into 4844-inbox-reader
PlasmaPower Jan 23, 2024
89d5415
broadcastclient_test: avoid deadlock in test
tsahee Jan 24, 2024
b6b54ef
Use custom beacon request helper
PlasmaPower Jan 24, 2024
a750ef9
Merge branch 'beacon-request-helper' into 4844-batch-posting
PlasmaPower Jan 24, 2024
f870d9d
Merge remote-tracking branch 'origin/master' into geth-1.13
tsahee Jan 24, 2024
4d87c88
Merge pull request #2098 from OffchainLabs/beacon-request-helper
Tristan-Wilson Jan 24, 2024
18a47f7
update geth commit
tsahee Jan 24, 2024
2ba1c49
Update contracts to support zero basefee for gas estimation
PlasmaPower Jan 24, 2024
2bd34c6
Fetch seconds per slot from beacon endpoint
Tristan-Wilson Jan 24, 2024
fe9fce1
Update go-ethereum pin to fix trusted setup
PlasmaPower Jan 24, 2024
ac0978f
Support batch data location for batch hashes
PlasmaPower Jan 24, 2024
8ca7cf8
Fix beacon URL concatenation
PlasmaPower Jan 24, 2024
44e6c56
Merge pull request #2083 from OffchainLabs/geth-1.13
tsahee Jan 24, 2024
ef832b2
Unmarshal beacon chain JSON integers as strings
PlasmaPower Jan 24, 2024
13ed4c6
Fix blob decoding not accepting trailing bytes
PlasmaPower Jan 24, 2024
d7a80df
Merge branch '4844-inbox-reader-fixes' into 4844-batch-posting
PlasmaPower Jan 24, 2024
b482243
Fix arbitrator tests and hopefully CI
PlasmaPower Jan 24, 2024
ae7a199
Use KZG preimage support in replay binary
PlasmaPower Jan 24, 2024
3de7b73
Fix arbitrator handling of non-keccak preimages
PlasmaPower Jan 24, 2024
e82ac72
Provide blob preimages during validation
PlasmaPower Jan 24, 2024
59a8935
Fix arbitrator CI
PlasmaPower Jan 24, 2024
eb7d6f8
Merge pull request #2099 from OffchainLabs/4844-inbox-reader-fixes
PlasmaPower Jan 24, 2024
f646430
Fix Go test
PlasmaPower Jan 24, 2024
d2b7c9d
Strengthen Uint64String parsing
PlasmaPower Jan 24, 2024
277f241
Pack more bits into blobs
PlasmaPower Jan 24, 2024
03b2fe8
Add separate max batch size for 4844
PlasmaPower Jan 24, 2024
b660d9b
Merge branch '4844-inbox-reader' into 4844-batch-posting
PlasmaPower Jan 24, 2024
5e87053
Merge pull request #2095 from OffchainLabs/4844-batch-posting
PlasmaPower Jan 24, 2024
a931a61
Merge pull request #2101 from OffchainLabs/4844-bit-packing
PlasmaPower Jan 25, 2024
10753a9
Merge branch '4844-inbox-reader' into 4844-validation
PlasmaPower Jan 25, 2024
ec2541b
Fix nitro-fuzzer entrypoint argument
anodar Jan 25, 2024
4445f93
Fix script to complain when neither build nor fuzzer name is specified
anodar Jan 25, 2024
2e5832e
Add flag to fuzz script for timeout
anodar Jan 25, 2024
601681a
Add workflow for release ci that is triggered with PR tag, run nitro …
anodar Jan 25, 2024
86cf5ca
Trigger workflow from label instead of PR title
anodar Jan 25, 2024
041aa35
upgrade geth to 1.13.3
tsahee Jan 25, 2024
32ea163
Update workflow triggering conditions
anodar Jan 25, 2024
991f055
Fix workflow syntax
anodar Jan 25, 2024
e71ca4b
Yet another attempt to fix workflow syntax
anodar Jan 25, 2024
ee8cc8d
Checout submodules recursively in the workflow, cache docker layers
anodar Jan 25, 2024
47053b9
In delayed sequencer, check accumulator against safe block hash
PlasmaPower Jan 25, 2024
158bf19
update geth branch
tsahee Jan 25, 2024
83ac9b0
Merge pull request #2100 from OffchainLabs/4844-validation
PlasmaPower Jan 26, 2024
ddefe8b
update geth pin
joshuacolvin0 Jan 26, 2024
14fb850
Ignore timeout error, and error out only if the fuzzing binary errors…
anodar Jan 26, 2024
4adcb9b
Merge branch 'master' into fix-pruning-test
ganeshvanahalli Jan 26, 2024
71a0fc0
Merge remote-tracking branch 'origin/master' into 4844-inbox-reader
Tristan-Wilson Jan 26, 2024
8789f1c
Fix LookupNodeChildren for L3s
PlasmaPower Jan 26, 2024
3f67f04
Merge pull request #2106 from OffchainLabs/fix-l3-lookup-node-children
PlasmaPower Jan 26, 2024
2abf48e
Merge branch 'master' into geth-1.13.3
joshuacolvin0 Jan 26, 2024
91f67ba
Merge pull request #2104 from OffchainLabs/geth-1.13.3
joshuacolvin0 Jan 26, 2024
3d85d89
Add a flag to enable re-execution of a range of historic blocks
ganeshvanahalli Jan 26, 2024
d278fc9
Merge branch 'master' into 4844-inbox-reader
PlasmaPower Jan 28, 2024
1ba8e07
Move contracts back to previous pin
PlasmaPower Jan 28, 2024
26eb57d
Merge pull request #2092 from OffchainLabs/4844-inbox-reader
PlasmaPower Jan 28, 2024
f3b0610
Support and test ArbOS 20
PlasmaPower Jan 28, 2024
67292b4
Merge pull request #2108 from OffchainLabs/arbos-20
PlasmaPower Jan 28, 2024
fe0d623
Add missing L1 pricing getters to ArbGasInfo in ArbOS 20
PlasmaPower Jan 28, 2024
b7d2678
Disable EIP-4844 batch posting by default for now
PlasmaPower Jan 28, 2024
c7294a0
Merge pull request #2109 from OffchainLabs/missing-l1-pricing-getters
PlasmaPower Jan 28, 2024
0ca2b29
Merge branch 'master' into default-no-4844
PlasmaPower Jan 28, 2024
18fe0d4
Merge pull request #2110 from OffchainLabs/default-no-4844
PlasmaPower Jan 28, 2024
a80fa28
Add ArbOS precompile method to get scheduled upgrade
PlasmaPower Jan 28, 2024
76924e0
Bump contracts pin
PlasmaPower Jan 28, 2024
4db1014
Add test of scheduling upgrade and getting it
PlasmaPower Jan 29, 2024
7bc1412
Fix testTimestamp
PlasmaPower Jan 29, 2024
3cb5f77
Merge pull request #2112 from OffchainLabs/arbos-scheduled-upgrade-ge…
PlasmaPower Jan 29, 2024
a4cbf3b
Implement linter for checking 1>>x expressions
anodar Jan 29, 2024
c65ecb4
Merge branch 'master' into fix-fuzzer-entrypoint
anodar Jan 29, 2024
e8e1fb3
Merge branch 'fix-fuzzer-entrypoint' into release-testing
anodar Jan 29, 2024
964b3a9
Merge branch 'master' into fix-pruning-test
magicxyyz Jan 29, 2024
b16a3b5
Merge pull request #2073 from OffchainLabs/fix-pruning-test
magicxyyz Jan 29, 2024
e5594fd
Merge branch 'master' into prefetch
joshuacolvin0 Jan 29, 2024
1f399ba
add state recovery option
magicxyyz Jan 29, 2024
333e46f
fix referencing
magicxyyz Jan 29, 2024
4ac385c
Merge pull request #2089 from OffchainLabs/prefetch
joshuacolvin0 Jan 29, 2024
5a54d22
Prevent a 4844 header from being used inside Anytrust data
PlasmaPower Jan 29, 2024
28127e0
Merge pull request #2115 from OffchainLabs/4844-das-exclusive
PlasmaPower Jan 30, 2024
e5757b8
Merge branch 'master' into fix-fuzzer-entrypoint
anodar Jan 30, 2024
254de23
Revert running fuzzer in release-ci
anodar Jan 30, 2024
444eae3
Merge branch 'release-testing' of github.com:OffchainLabs/nitro into …
anodar Jan 30, 2024
208119b
Merge pull request #2103 from OffchainLabs/release-testing
anodar Jan 30, 2024
3eef8ec
Merge branch 'master' into linter
anodar Jan 30, 2024
2bc60c3
Merge pull request #2113 from OffchainLabs/linter
anodar Jan 30, 2024
2770f81
Merge branch 'master' into fix-fuzzer-entrypoint
anodar Jan 30, 2024
d920feb
Consolidate linters into single binary
anodar Jan 30, 2024
68d8534
Update Go CI workflow with consolidated linters binary
anodar Jan 30, 2024
f6dfe98
Merge pull request #2117 from OffchainLabs/linter
anodar Jan 30, 2024
6c68686
Merge branch 'master' into delayed-sequencer-hash
PlasmaPower Jan 30, 2024
c53c26a
defer last dereference call
magicxyyz Jan 30, 2024
2cb1342
don't use referencing when recovering states
magicxyyz Jan 30, 2024
a594bc2
remove unsused assignment
magicxyyz Jan 30, 2024
8b0e4eb
Merge branch 'master' into state-recovery
magicxyyz Jan 30, 2024
aa304a9
don't rely on BlockChain.CurrentBlock to get last available block
magicxyyz Jan 30, 2024
43a8aeb
improve recovery test
magicxyyz Jan 30, 2024
d5989b5
add recreate-missing-state config validation
magicxyyz Jan 30, 2024
6f9d044
update log messages
magicxyyz Jan 30, 2024
d08507c
Merge branch 'master' into fix-fuzzer-entrypoint
anodar Jan 31, 2024
07c74c7
Change release workflow trigger condition
anodar Jan 31, 2024
5969a11
Change trigger to workflow_dispatch only
anodar Feb 1, 2024
f61ad77
allow setting start block for missing states recreation, fix tests
magicxyyz Feb 1, 2024
ea34814
remove Session.vim added by mistake
magicxyyz Feb 1, 2024
b9a1c49
Log error data where available
yahgwai Feb 1, 2024
e8167fe
Use lint reco for errors.as
yahgwai Feb 1, 2024
b9043c4
Merge pull request #2120 from OffchainLabs/log-data-error
PlasmaPower Feb 1, 2024
03138e0
Pull in geth changes to parse ABI errors
PlasmaPower Feb 1, 2024
e727c02
Merge branch 'master' into state-recovery
magicxyyz Feb 1, 2024
5bda207
fix typo
magicxyyz Feb 1, 2024
b94cf9c
address review comment
magicxyyz Feb 1, 2024
b3f42cd
set target only once
magicxyyz Feb 1, 2024
7469252
Fix tests
PlasmaPower Feb 1, 2024
f632620
update override warning
magicxyyz Feb 1, 2024
4128f24
Merge pull request #2114 from OffchainLabs/state-recovery
PlasmaPower Feb 2, 2024
d36491a
Update common_test.go
ImJeremyHe Feb 2, 2024
b127b8a
Merge branch 'master' into fix-fuzzer-entrypoint
anodar Feb 2, 2024
f0156cc
Add P2P options
amsanghi Feb 2, 2024
8eb64f2
minor fix
amsanghi Feb 2, 2024
2aa5656
minor fix
amsanghi Feb 2, 2024
acc85b3
Gate GetScheduledUpgrade to ArbOS 20
PlasmaPower Feb 2, 2024
0fcce6a
Merge branch 'master' into gate-get-scheduled-upgrade
joshuacolvin0 Feb 2, 2024
dddc111
Merge pull request #2125 from OffchainLabs/gate-get-scheduled-upgrade
PlasmaPower Feb 2, 2024
f16bc04
Test precompiles per ArbOS version
PlasmaPower Feb 2, 2024
050ff38
Merge branch 'master' into delayed-sequencer-hash
PlasmaPower Feb 2, 2024
17468a8
Merge pull request #2105 from OffchainLabs/delayed-sequencer-hash
PlasmaPower Feb 2, 2024
17e4fd0
Merge branch 'master' into parse-abi-errors
joshuacolvin0 Feb 5, 2024
bba477f
Merge pull request #2121 from OffchainLabs/parse-abi-errors
joshuacolvin0 Feb 5, 2024
f4810cc
Merge branch 'master' into fix-fuzzer-entrypoint
joshuacolvin0 Feb 5, 2024
2f5a9a5
Merge pull request #2102 from OffchainLabs/fix-fuzzer-entrypoint
anodar Feb 5, 2024
6a1c546
Merge branch 'master' into patch-1
joshuacolvin0 Feb 6, 2024
3b36c03
Merge pull request #2123 from ImJeremyHe/patch-1
joshuacolvin0 Feb 6, 2024
6ce1845
Merge branch 'master' into test-precompiles-per-version
joshuacolvin0 Feb 6, 2024
7b7234e
Merge branch 'master' into cli_finalized
amsanghi Feb 6, 2024
ab4d316
Changes based on PR comments
amsanghi Feb 6, 2024
38fb7dc
Changes based on PR comments
amsanghi Feb 6, 2024
be92196
Bump go-ethereum submodule pin to latest master
PlasmaPower Feb 6, 2024
7ceab18
Merge branch 'master' into support-multiple-validation-rpcs
ganeshvanahalli Feb 6, 2024
3bce233
address PR comments
ganeshvanahalli Feb 6, 2024
142b089
Merge pull request #2133 from OffchainLabs/bump-geth-2024-02-06
PlasmaPower Feb 6, 2024
2be83d1
Merge branch 'master' into add-readmode-inboxreader
ganeshvanahalli Feb 6, 2024
ae10772
Merge branch 'master' into test-precompiles-per-version
PlasmaPower Feb 6, 2024
4c2dd22
Merge pull request #2126 from OffchainLabs/test-precompiles-per-version
PlasmaPower Feb 6, 2024
90b0c53
Merge branch 'master' into cli_finalized
joshuacolvin0 Feb 6, 2024
a7026a7
Merge pull request #2086 from OffchainLabs/cli_finalized
joshuacolvin0 Feb 6, 2024
7646d73
Merge branch 'master' into add-readmode-inboxreader
joshuacolvin0 Feb 7, 2024
8517340
Merge pull request #2080 from OffchainLabs/add-readmode-inboxreader
joshuacolvin0 Feb 7, 2024
5ff1ad2
Merge branch 'master' into p2p
ganeshvanahalli Feb 7, 2024
69c43da
Merge pull request #2124 from OffchainLabs/p2p
amsanghi Feb 7, 2024
668393b
Produce better error messages when failing to read the delayed inbox
PlasmaPower Feb 8, 2024
9c133d3
Merge branch 'master' into better-delayed-msg-errs
PlasmaPower Feb 8, 2024
ab6790a
Merge pull request #2135 from OffchainLabs/better-delayed-msg-errs
PlasmaPower Feb 8, 2024
cf2c513
Gate 4844 Batch Posting on ArbOS 20
Tristan-Wilson Feb 9, 2024
b8e5ed4
Move Prefetch flag from sequencer to execution node
amsanghi Feb 9, 2024
ae0d7c6
Minor fix
amsanghi Feb 9, 2024
56f355a
Startup nitro-testnode in release CI
anodar Feb 9, 2024
b658c09
Fix typo
anodar Feb 9, 2024
93eb607
resolve merge conflict
ganeshvanahalli Feb 9, 2024
f271c17
minor fix
ganeshvanahalli Feb 9, 2024
9763871
Fix batch msg arbos version check off by 1
Tristan-Wilson Feb 10, 2024
9964983
Fix stray edit
Tristan-Wilson Feb 10, 2024
fb88691
Merge pull request #2107 from OffchainLabs/historic-blocks-reexecution
ganeshvanahalli Feb 12, 2024
48f5208
Merge branch 'master' into nitro-testnode-ci
anodar Feb 12, 2024
5b2e861
Test INVALID opcode (using withdrawEth) in the flatCallTracer
amsanghi Feb 12, 2024
7fc2f76
Minor fix
amsanghi Feb 12, 2024
86db302
Merge branch 'master' into gate-4844-posting-arbos-20
Tristan-Wilson Feb 12, 2024
4ff4ade
Merge branch 'master' into move_prefetch
amsanghi Feb 13, 2024
0300b56
Merge pull request #2139 from OffchainLabs/flatCallTracer_fix
amsanghi Feb 13, 2024
b21101a
Merge branch 'master' into move_prefetch
amsanghi Feb 13, 2024
5e4dfbc
Merge pull request #2137 from OffchainLabs/move_prefetch
amsanghi Feb 13, 2024
58f1621
Merge branch 'master' into nitro-testnode-ci
anodar Feb 13, 2024
f81d226
Move ArbOSVersionForMessageNumber
Tristan-Wilson Feb 13, 2024
747173e
Merge branch 'master' into gate-4844-posting-arbos-20
Tristan-Wilson Feb 14, 2024
2f07c64
Rename force-post-4844-blobs opt ignore-blob-price
Tristan-Wilson Feb 14, 2024
b8d35e7
Merge pull request #2138 from OffchainLabs/nitro-testnode-ci
anodar Feb 14, 2024
1e1f96c
Merge branch 'master' into support-multiple-validation-rpcs
ganeshvanahalli Feb 14, 2024
d6251df
Merge pull request #2071 from OffchainLabs/support-multiple-validatio…
ganeshvanahalli Feb 14, 2024
14d59b3
Merge branch 'master' into gate-4844-posting-arbos-20
Tristan-Wilson Feb 14, 2024
20dec92
Merge pull request #2136 from OffchainLabs/gate-4844-posting-arbos-20
Tristan-Wilson Feb 14, 2024
5f44856
Add option to save arbitrum blobs to disk when they are fetched
ganeshvanahalli Feb 14, 2024
e948f92
refactor
ganeshvanahalli Feb 14, 2024
15deba7
Error if reading authenticated batch with unknown header bits
PlasmaPower Feb 15, 2024
1f633b9
Merge branch 'master' into 4844-cli-opts-rename
Tristan-Wilson Feb 15, 2024
edc5b32
bug fix
ganeshvanahalli Feb 15, 2024
02323c2
Fix IsKnownHeaderByte
PlasmaPower Feb 15, 2024
8cdb2e2
Merge pull request #2144 from OffchainLabs/4844-cli-opts-rename
Tristan-Wilson Feb 15, 2024
5869938
Merge branch 'master' into save-blobs-locally
ganeshvanahalli Feb 15, 2024
aeab672
Merge pull request #2145 from OffchainLabs/save-blobs-locally
ganeshvanahalli Feb 15, 2024
e9f3326
Error on rpc daserver configured without bls key
Tristan-Wilson Feb 16, 2024
e3ca308
Merge branch 'master' into known-batch-header-bits
PlasmaPower Feb 16, 2024
45836db
Merge pull request #2147 from OffchainLabs/known-batch-header-bits
PlasmaPower Feb 16, 2024
1fb7d0d
Merge branch 'master' into dac-error-no-writer
Tristan-Wilson Feb 16, 2024
e9350a3
Test retryable gas estimation isn't too high
PlasmaPower Feb 16, 2024
c55968f
Merge pull request #2150 from OffchainLabs/dac-error-no-writer
Tristan-Wilson Feb 16, 2024
4a73e7e
Merge branch 'master' into retryable-gas-estimation
PlasmaPower Feb 16, 2024
a20a1c7
Merge pull request #2152 from OffchainLabs/retryable-gas-estimation
PlasmaPower Feb 16, 2024
0511504
Merge tag 'v2.2.5' into HEAD
tsahee Mar 12, 2024
846ecf7
prover: limit kzg to native
tsahee Mar 12, 2024
39d2b22
ipfs: rename files so compiler will ignore them, fix go.mod/sum
tsahee Mar 13, 2024
bd65bdc
fix merge errors
tsahee Mar 13, 2024
09d7c5f
programs: fix calls to WasmAccountTouchCost
tsahee Mar 14, 2024
50ff20c
precompile: limit programs to latest sytlus
tsahee Mar 14, 2024
63cf663
program_test: use systest builder
tsahee Mar 14, 2024
4747bf8
update geth
tsahee Mar 14, 2024
ffe5dc9
add rust-src
tsahee Mar 14, 2024
1f48bc0
Merge commit '484efac4' into nitro-2.2.5-merge
tsahee Mar 14, 2024
5d2656a
system_test: fix testEarlyExit
tsahee Mar 14, 2024
b51bf56
cargo fmt
tsahee Mar 14, 2024
670e1c2
cargo update
tsahee Mar 15, 2024
c6e264b
program_test: split race from norace
tsahee Mar 15, 2024
714ca9d
arbitrator ci: update SW versions
tsahee Mar 15, 2024
83d28bc
arbitrator-ci: use an older nightly
tsahee Mar 15, 2024
884051a
Makefile: support specific nightly for stylus
tsahee Mar 15, 2024
99b5511
arbitrator-ci: add rust components
tsahee Mar 15, 2024
0e8a25c
clippy fixes
tsahee Mar 15, 2024
8432de5
rust test fixes
tsahee Mar 15, 2024
e42cad9
Merge remote-tracking branch 'origin/stylus' into nitro-2.2.5-merge
tsahee Mar 25, 2024
bde6037
cargo update
tsahee Mar 25, 2024
6fb8939
arbcompress: compilation fixes
tsahee Mar 25, 2024
5e07876
cargo fmt
tsahee Mar 25, 2024
ca67357
clippy fix
tsahee Mar 25, 2024
9b81b11
Fix test timeouts in CI
PlasmaPower Mar 23, 2024
66c69d7
Merge branch 'stylus' into nitro-2.2.5-merge
rachel-bousfield Mar 26, 2024
377c89c
diffuse self-destruct
rachel-bousfield Mar 28, 2024
e075ea0
Merge pull request #217 from OffchainLabs/stylus-dencun-self-destruct
rachel-bousfield Apr 1, 2024
2d7eb25
cached data pricer & minor tweaks
rachel-bousfield Apr 2, 2024
132234f
Merge branch 'stylus' into nitro-2.2.5-merge
rachel-bousfield Apr 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ solgen/go
**/node_modules

target/**/*
!target/machines
!target/machines/*
!target/machines/**/*
brotli/buildfiles/**/*

# these are used by environment outside the docker:
Expand Down
50 changes: 28 additions & 22 deletions .github/workflows/arbitrator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
description: 'Enable tmate'
required: false
default: false
merge_group:
pull_request:
paths:
- 'arbitrator/**'
Expand Down Expand Up @@ -36,23 +37,31 @@ jobs:
detached: true

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PRIVATE_CHECKOUT }}
submodules: recursive

- name: Install Ubuntu dependencies
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update && sudo apt-get install -y \
build-essential cmake ethereum lld-14 libudev-dev
build-essential cmake lld-14 libudev-dev
sudo ln -s /usr/bin/wasm-ld-14 /usr/local/bin/wasm-ld

- name: Install go
uses: actions/setup-go@v4
with:
go-version: 1.21.x

- name: Install custom go-ethereum
run: |
cd /tmp
git clone --branch v1.13.8 --depth 1 https://github.com/ethereum/go-ethereum.git
cd go-ethereum
# Enable KZG point evaluation precompile early
sed -i 's#var PrecompiledContractsBerlin = map\[common.Address\]PrecompiledContract{#\0 common.BytesToAddress([]byte{0x0a}): \&kzgPointEvaluation{},#g' core/vm/contracts.go
go build -o /usr/local/bin/geth ./cmd/geth

- name: Setup nodejs
uses: actions/setup-node@v3
with:
Expand All @@ -61,28 +70,18 @@ jobs:
cache-dependency-path: '**/yarn.lock'

- name: Install rust stable
uses: actions-rs/toolchain@v1
id: install-rust
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: "1.75"
override: true
components: 'llvm-tools-preview, rustfmt'
components: 'llvm-tools-preview, rustfmt, clippy'

- name: Install rust nightly
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
id: install-rust-nightly
with:
profile: minimal
toolchain: "nightly"

- name: Install rust wasm targets
run: rustup target add wasm32-wasi wasm32-unknown-unknown

- name: Install nightly wasm targets
run: |
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
toolchain: "nightly-2024-02-04"
targets: 'wasm32-wasi, wasm32-unknown-unknown'
components: 'rust-src, rustfmt, clippy'

- name: Cache Rust intermediate build products
uses: actions/cache@v3
Expand Down Expand Up @@ -118,6 +117,9 @@ jobs:
make -j
make install

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Cache cbrotli
uses: actions/cache@v3
id: cache-cbrotli
Expand Down Expand Up @@ -155,7 +157,10 @@ jobs:
run: echo "$HOME/wabt-prefix/bin" >> "$GITHUB_PATH"

- name: Make arbitrator libraries
run: make -j wasm-ci-build
run: make -j wasm-ci-build STYLUS_NIGHTLY_VER="+nightly-2024-02-04"

- name: Clippy check
run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings

- name: Run rust tests
uses: actions-rs/cargo@v1
Expand All @@ -169,14 +174,14 @@ jobs:
command: fmt
args: -p arbutil -p prover -p jit -p stylus --manifest-path arbitrator/Cargo.toml -- --check

- name: Rustfmt
- name: Rustfmt - langs/rust
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --manifest-path arbitrator/langs/rust/Cargo.toml -- --check

- name: Make proofs from test cases
run: make -j8 test-gen-proofs
run: make -j test-gen-proofs

- name: Start geth server
run: |
Expand All @@ -189,4 +194,5 @@ jobs:
cd contracts
yarn install
yarn build
yarn build:forge:yul
yarn hardhat --network localhost test test/prover/*.ts
1 change: 1 addition & 0 deletions .github/workflows/arbitrator-skip-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Arbitrator skip CI
run-name: Arbitrator skip CI triggered from @${{ github.actor }} of ${{ github.head_ref }}

on:
merge_group:
pull_request:
paths-ignore:
- 'arbitrator/**'
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ run-name: Go tests CI triggered from @${{ github.actor }} of ${{ github.head_ref

on:
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
Expand All @@ -28,7 +29,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PRIVATE_CHECKOUT }}
submodules: true
Expand All @@ -54,12 +55,12 @@ jobs:
sudo ln -s /usr/bin/wasm-ld-14 /usr/local/bin/wasm-ld

- name: Install rust stable
uses: actions-rs/toolchain@v1
id: install-rust
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: "stable"
override: true
targets: 'wasm32-unknown-unknown, wasm32-wasi'

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install rust nightly
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -126,11 +127,13 @@ jobs:
run: make -j build-node-deps

- name: Lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: latest
skip-go-installation: true
skip-pkg-cache: true
- name: Custom Lint
run: |
go run ./linters ./...

- name: Set environment variables
run: |
Expand All @@ -143,13 +146,13 @@ jobs:
if: matrix.test-mode == 'defaults'
run: |
packages=`go list ./...`
stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,./go-ethereum/... -parallel=8 > >(stdbuf -oL tee full.log | grep -vE "INFO|seal")
stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,./go-ethereum/... -timeout 20m -parallel=8 > >(stdbuf -oL tee full.log | grep -vE "INFO|seal")

- name: run tests with race detection
if: matrix.test-mode == 'race'
run: |
packages=`go list ./...`
stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -race -parallel=8 > >(stdbuf -oL tee full.log | grep -vE "INFO|seal")
stdbuf -oL gotestsum --format short-verbose --packages="$packages" --rerun-fails=1 --no-color=false -- ./... -race -timeout 30m -parallel=8 > >(stdbuf -oL tee full.log | grep -vE "INFO|seal")

- name: run redis tests
if: matrix.test-mode == 'defaults'
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ name: "CodeQL"
on:
push:
branches: [ "master" ]
merge_group:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
Expand All @@ -30,7 +32,6 @@ jobs:
contents: read
security-events: write
env:
CODEQL_EXTRACTOR_GO_BUILD_TRACING: 'on'
WABT_VERSION: 1.0.32

strategy:
Expand All @@ -42,7 +43,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PRIVATE_CHECKOUT }}
submodules: true
Expand Down Expand Up @@ -73,12 +74,10 @@ jobs:
go-version: 1.21.x

- name: Install rust stable
uses: actions-rs/toolchain@v1
id: install-rust
with:
profile: minimal
toolchain: "stable"
override: true
uses: dtolnay/rust-toolchain@stable

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Cache Rust Build Products
uses: actions/cache@v3
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ run-name: Docker build CI triggered from @${{ github.actor }} of ${{ github.head

on:
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
Expand All @@ -22,13 +23,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PRIVATE_CHECKOUT }}
submodules: recursive

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

Expand All @@ -40,7 +41,7 @@ jobs:
restore-keys: ${{ runner.os }}-buildx-

- name: Build nitro-node docker
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
target: nitro-node
push: true
Expand All @@ -50,7 +51,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Build nitro-node-dev docker
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
target: nitro-node-dev
push: true
Expand All @@ -59,6 +60,17 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Start background nitro-testnode
shell: bash
run: |
cd nitro-testnode
./test-node.bash --init --dev &

- name: Wait for rpc to come up
shell: bash
run: |
${{ github.workspace }}/.github/workflows/waitForNitro.sh

- name: Print WAVM module root
id: module-root
run: |
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release CI
run-name: Release CI triggered from @${{ github.actor }} of ${{ github.head_ref }}

on:
workflow_dispatch:

jobs:
build_and_run:
runs-on: ubuntu-8

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
restore-keys: ${{ runner.os }}-buildx-

- name: Startup Nitro testnode
run: ./scripts/startup-testnode.bash
13 changes: 13 additions & 0 deletions .github/workflows/waitForNitro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# poll the nitro endpoint until we get a 0 return code or 30mins have passed, in that case exit 1
timeout_time=$(($(date +%s) + 1800))

while (( $(date +%s) <= timeout_time )); do
if curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":45678,"method":"eth_chainId","params":[]}' 'http://localhost:8547'; then
exit 0
else
sleep 20
fi
done

exit 1
Loading
Loading