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

L2msgs in single tx #178

Closed
wants to merge 4,266 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4266 commits
Select commit Hold shift + click to select a range
060da16
Excludes arbitrum internal transaction when computing gasUsedForL1
diegoximenes Jun 26, 2024
8d9df42
Merge branch 'master' into gligneul/download-manifest
gligneul Jun 26, 2024
2f5add0
pin espresso-sequencer-go to new release v0.0.20
zacshowa Jun 26, 2024
151744f
Require program.version == params.Version when caching
PlasmaPower Jun 26, 2024
d2a06a6
Commit go.sum from running go mod tidy
zacshowa Jun 26, 2024
ea381f0
sequencer info logs
nomaxg Jun 26, 2024
68663fa
update minInitGas for stylus v2
tsahee Jun 26, 2024
e2c0347
Merge pull request #2435 from OffchainLabs/strict-cache-version
tsahee Jun 26, 2024
bc1b891
Merge branch 'arbos-31' into stylus_pricing
tsahee Jun 26, 2024
dd8cf65
Merge pull request #2436 from OffchainLabs/stylus_pricing
tsahee Jun 26, 2024
d9a5572
Merge branch 'master' into consensus_exec_split_l1gas
tsahee Jun 26, 2024
4e0d39c
Merge pull request #2415 from OffchainLabs/consensus_exec_split_l1gas
tsahee Jun 26, 2024
7ce31cf
Merge pull request #138 from EspressoSystems/logging
nomaxg Jun 26, 2024
ffba9cc
Merge branch 'master' into fix-das-store-sig-checking
tsahee Jun 26, 2024
2167662
Sequencer shouldn't want lockout if local blockchain is lagging too m…
ganeshvanahalli Jun 26, 2024
3ecd01e
Merge pull request #2433 from OffchainLabs/fix-das-store-sig-checking
tsahee Jun 26, 2024
c12543f
build arbitrator.h on test-go-deps
tsahee Jun 27, 2024
1349554
update testnode pin
tsahee Jun 27, 2024
7bcc1e7
Merge pull request #137 from zacshowa/update-sequencer-go
ImJeremyHe Jun 27, 2024
a58b014
Merge branch 'master' into mach-fetcher
eljobe Jun 27, 2024
cc9395f
Merge pull request #2438 from OffchainLabs/makefile_fix
tsahee Jun 27, 2024
cfe6a80
address PR comments
ganeshvanahalli Jun 27, 2024
dfb6e80
Merge branch 'master' into fix-seqcoordinator-lockout
ganeshvanahalli Jun 27, 2024
7ddb65b
minor fix
ganeshvanahalli Jun 27, 2024
e8ef4bc
Merge branch 'master' into das-filestore
Tristan-Wilson Jun 27, 2024
df0eddc
Merge remote-tracking branch 'origin/master' into das-store-failure-m…
Tristan-Wilson Jun 27, 2024
5494789
Merge branch 'master' into das-backends-conf
Tristan-Wilson Jun 27, 2024
021fda5
Merge branch 'master' into testnode_pin
tsahee Jun 27, 2024
68d457d
Separate DAS keyset and batch fetching logic
Tristan-Wilson Jun 25, 2024
208038a
Keyset fetching for replay binary via preimages
Tristan-Wilson Jun 25, 2024
b56ce1c
Rename KeysetFetcher method to be clearer
Tristan-Wilson Jun 27, 2024
59398ab
use gethexec syncmonitor in seq-coordinator to decide wanting lockout
ganeshvanahalli Jun 27, 2024
f867ae4
Merge pull request #2439 from OffchainLabs/testnode_pin
tsahee Jun 27, 2024
3b00882
Merge branch 'master' into das-separate-keyset-fetching
Tristan-Wilson Jun 27, 2024
6321019
Merge branch 'master' into addgasopcode-stylus-tracing
PlasmaPower Jun 27, 2024
c223cd8
Merge pull request #2382 from OffchainLabs/addgasopcode-stylus-tracing
PlasmaPower Jun 27, 2024
c91e654
Merge branch 'master' into das-store-failure-metric
Tristan-Wilson Jun 27, 2024
b87ce0d
Merge pull request #2410 from OffchainLabs/das-store-failure-metric
Tristan-Wilson Jun 27, 2024
bfb6ddf
Merge branch 'master' into das-separate-keyset-fetching
tsahee Jun 27, 2024
e1175b0
Merge branch 'master' into gligneul/download-manifest
gligneul Jun 28, 2024
75531ed
Merge branch 'master' into add-iostat-metrics
tsahee Jun 28, 2024
43cb7bd
Merge pull request #2398 from OffchainLabs/add-iostat-metrics
tsahee Jun 28, 2024
b07f7eb
init: change latest file contents to file path
gligneul Jun 28, 2024
c02d138
Merge branch 'master' into das-separate-keyset-fetching
Tristan-Wilson Jun 28, 2024
0ae39c8
refactor gethexec sync monitor and update ExecutionSequencer interface
ganeshvanahalli Jun 28, 2024
6dbbf38
Merge branch 'master' into fix-seqcoordinator-lockout
ganeshvanahalli Jun 28, 2024
050a9fd
support auto-detection of database engine
magicxyyz Jun 28, 2024
234207b
check if database opening error is NotExists error, otherwise fail early
magicxyyz Jun 28, 2024
30a3e8a
test if not exist error did not change
magicxyyz Jun 28, 2024
03961e2
Merge pull request #2429 from OffchainLabs/das-separate-keyset-fetching
Tristan-Wilson Jun 28, 2024
9d7483a
Merge branch 'master' into fix-seqcoordinator-lockout
tsahee Jun 28, 2024
88782d7
Merge branch 'master' into autodetect-db
magicxyyz Jun 28, 2024
9085e2b
Merge pull request #2437 from OffchainLabs/fix-seqcoordinator-lockout
tsahee Jun 28, 2024
c9ac4e0
Merge branch 'master' into das-backends-conf
Tristan-Wilson Jun 28, 2024
83d9405
fix lint
magicxyyz Jun 28, 2024
8caaa3b
Merge branch 'master' into autodetect-db
magicxyyz Jun 28, 2024
3767b1f
Merge pull request #2427 from OffchainLabs/das-backends-conf
PlasmaPower Jun 28, 2024
b90fe67
Merge branch 'master' into get-machine-hashes-with-step
amsanghi Jul 1, 2024
85fc845
Merge branch 'master' into gligneul/latest-url
gligneul Jul 1, 2024
b0f2287
Merge branch 'master' into autodetect-db
joshuacolvin0 Jul 1, 2024
dc84707
Merge pull request #2447 from OffchainLabs/autodetect-db
joshuacolvin0 Jul 1, 2024
f3db12d
Merge branch 'master' into das-filestore
Tristan-Wilson Jul 2, 2024
947af30
refactor: breakdown query to eth_getLogs
renlulu Jun 28, 2024
ea08ba5
fix: array append
renlulu Jun 28, 2024
40ff630
fix: log query range type error
renlulu Jun 28, 2024
4d14508
Add escape hatch test in e2e test
ImJeremyHe Jun 28, 2024
6d5b585
Check the reactivate hotshot
ImJeremyHe Jul 2, 2024
e34c95d
Merge pull request #139 from EspressoSystems/jh/e2e
ImJeremyHe Jul 2, 2024
31a168d
Add test for gas estimation with RPC gas limit
amsanghi Jul 2, 2024
5e7c5a1
Merge branch 'master' into gligneul/latest-url
gligneul Jul 2, 2024
6340b12
Merge branch 'master' into gligneul/download-manifest
gligneul Jul 2, 2024
d6a95e0
Update validator to handle preconditions and panics before entering t…
zacshowa Jul 2, 2024
b628488
Improve readability of conditions in `handleEspressoPreConditions` an…
zacshowa Jul 2, 2024
53c8841
Further improve readability
zacshowa Jul 2, 2024
022d5ee
Add LOG opcodes to Stylus tracing
ganeshvanahalli Jul 2, 2024
66e732e
address PR comments
ganeshvanahalli Jul 2, 2024
80d9436
Merge branch 'master' into add-l1bounds-reorgresistance-check
ganeshvanahalli Jul 2, 2024
f2e43be
Merge branch 'master' into mach-fetcher
eljobe Jul 2, 2024
644f017
Wire wasmRootDir into the MachineLocator.
eljobe Jul 2, 2024
4c96aaf
fix missed invocation of testLogs in stylus_test
ganeshvanahalli Jul 2, 2024
85d5f33
Fix lint issue
zacshowa Jul 2, 2024
8b0424b
fix
amsanghi Jul 3, 2024
857d9db
init: allow classic node exported data in db dir
gligneul Jul 3, 2024
b017e98
Add submodule pin check to CI
Tristan-Wilson Jul 3, 2024
b64dc4f
Add checkout step
Tristan-Wilson Jul 3, 2024
9e45391
Check out submodules
Tristan-Wilson Jul 3, 2024
30870b5
Update arbitrator/langs/bf pin
Tristan-Wilson Jul 3, 2024
bbd649e
Update .github/workflows/submodule-pin-check.yml
Tristan-Wilson Jul 3, 2024
44c00e5
Merge pull request #2446 from OffchainLabs/gligneul/latest-url
gligneul Jul 4, 2024
4c3eb97
Merge branch 'master' into gligneul/fix-init-with-classic-node-export…
gligneul Jul 4, 2024
3f4b5c5
Merge branch 'master' into gligneul/download-manifest
gligneul Jul 4, 2024
84d2eaf
Merge branch 'master' into mach-fetcher
eljobe Jul 8, 2024
4a178d9
Merge branch 'master' into add-ci-submodule-pin-check
Tristan-Wilson Jul 8, 2024
c399902
Remove check for labeled/unlabeled
Tristan-Wilson Jul 8, 2024
30b3857
Merge pull request #2394 from OffchainLabs/mach-fetcher
eljobe Jul 8, 2024
b50d38a
Merge branch 'master' into das-filestore
Tristan-Wilson Jul 8, 2024
df7d504
Update fastcache pin
Tristan-Wilson Jul 8, 2024
4289a8c
Merge branch 'master' into update-fastcache-pin
Tristan-Wilson Jul 8, 2024
75a88e3
Feed Client should log loud error when rate limited
amsanghi Jul 8, 2024
c128452
fix
amsanghi Jul 8, 2024
01647d1
Merge branch 'master' into get-machine-hashes-with-step
rauljordan Jul 8, 2024
a1d1fc4
update option usage description
ganeshvanahalli Jul 8, 2024
79c9a4e
Merge branch 'master' into add-l1bounds-reorgresistance-check
ganeshvanahalli Jul 8, 2024
2a09c3e
feedback
rauljordan Jul 8, 2024
d3f5742
Merge branch 'master' into gligneul/download-manifest
gligneul Jul 8, 2024
a5b13d6
Merge branch 'master' into gligneul/fix-init-with-classic-node-export…
gligneul Jul 8, 2024
80cf3d4
add descriptive comments to stack args
ganeshvanahalli Jul 8, 2024
4f512e3
Merge branch 'master' into add-logopcodes-stylustrace
ganeshvanahalli Jul 8, 2024
bb0d379
Merge pull request #2457 from OffchainLabs/update-fastcache-pin
Tristan-Wilson Jul 8, 2024
bb676cc
Merge branch 'master' into gligneul/fix-init-with-classic-node-export…
gligneul Jul 8, 2024
e0516e3
Merge pull request #2454 from OffchainLabs/gligneul/fix-init-with-cla…
joshuacolvin0 Jul 8, 2024
dd044ea
Merge branch 'arbos-31' into arbos-31-into-master
PlasmaPower Jul 8, 2024
e5244ad
Upgrade to node 18 in CI to fix contracts
PlasmaPower Jul 8, 2024
e63b4b5
Fix wasm cacheProgram stub
PlasmaPower Jul 8, 2024
e10102b
Update Dockerfile to node 18 for contracts build
PlasmaPower Jul 8, 2024
c69469d
Merge branch 'master' into arbos-31-into-master
PlasmaPower Jul 8, 2024
e483707
Merge pull request #2461 from OffchainLabs/arbos-31-into-master
PlasmaPower Jul 8, 2024
8c33630
Merge branch 'master' into gligneul/download-manifest
joshuacolvin0 Jul 9, 2024
81aa1b8
Merge pull request #2376 from OffchainLabs/gligneul/download-manifest
joshuacolvin0 Jul 9, 2024
f70130d
Update the nitro testnode
ImJeremyHe Jul 9, 2024
8e7e54c
Merge branch 'master' into add-logopcodes-stylustrace
tsahee Jul 9, 2024
747ecc5
Merge pull request #2452 from OffchainLabs/add-logopcodes-stylustrace
tsahee Jul 9, 2024
1489a82
Merge branch 'master' of github.com:OffchainLabs/nitro into jh/sync
ImJeremyHe Jul 9, 2024
d020297
Fix tests
ImJeremyHe Jul 9, 2024
0c3043d
Update contracts
ImJeremyHe Jul 9, 2024
027a6e6
Fix CI
ImJeremyHe Jul 9, 2024
fc3402e
Support different branches for submodule pin check
Tristan-Wilson Jul 9, 2024
5a2e013
Merge branch 'master' into add-ci-submodule-pin-check
Tristan-Wilson Jul 9, 2024
919b737
Fetch submodule branches
Tristan-Wilson Jul 9, 2024
d742d12
Merge branch 'master' into relay
amsanghi Jul 9, 2024
c205b67
Changes based on PR comments
amsanghi Jul 9, 2024
e12beee
Merge branch 'master' into rpc_gas_limit
amsanghi Jul 9, 2024
1cb907c
Drop nitro p2p config options
PlasmaPower Jul 9, 2024
99eca6d
Changes to `handleEspressoPreConditions` in `espresso_validation.go` …
zacshowa Jul 9, 2024
77ed716
Drop P2PConfig struct
PlasmaPower Jul 9, 2024
f65975f
Merge pull request #2458 from OffchainLabs/relay
joshuacolvin0 Jul 9, 2024
ffa14d0
Merge branch 'master' into drop-p2p-options
PlasmaPower Jul 9, 2024
f04796f
Merge branch 'master' into add-l1bounds-reorgresistance-check
ganeshvanahalli Jul 9, 2024
e8410c8
Merge branch 'master' into das-filestore
joshuacolvin0 Jul 9, 2024
c8307db
export redis-url for valnode
tsahee Jul 9, 2024
c41e032
Merge branch 'master' into redis_server_url
tsahee Jul 9, 2024
e23af60
Merge pull request #2385 from OffchainLabs/das-filestore
joshuacolvin0 Jul 9, 2024
c0da250
Merge branch 'master' into redis_server_url
tsahee Jul 9, 2024
affe0de
Merge pull request #2464 from OffchainLabs/redis_server_url
tsahee Jul 9, 2024
e883a46
Merge branch 'master' into drop-p2p-options
tsahee Jul 9, 2024
2c1feee
Merge pull request #2462 from OffchainLabs/drop-p2p-options
tsahee Jul 10, 2024
ce25064
Add consensus-v31 to Dockerfile
PlasmaPower Jul 10, 2024
2ffb416
Uppercase AS keyword in Dockerfile
PlasmaPower Jul 10, 2024
dd77b22
Try to fix docker artifact name in CI
PlasmaPower Jul 10, 2024
703ecdf
Merge pull request #2466 from OffchainLabs/docker-from-as-casing
PlasmaPower Jul 10, 2024
5fce599
Merge branch 'master' into fix-docker-artifact
PlasmaPower Jul 10, 2024
506a947
Merge pull request #2467 from OffchainLabs/fix-docker-artifact
PlasmaPower Jul 10, 2024
e048bf2
Add workflow_dispatch to gh actions merge-checks.yml
PlasmaPower Jul 10, 2024
7d903fc
Merge pull request #2469 from OffchainLabs/merge-checks-workflow-disp…
PlasmaPower Jul 10, 2024
b9d7f87
Only run "design approved" check when necessary
PlasmaPower Jul 10, 2024
6e416f4
Clarify comment
PlasmaPower Jul 10, 2024
de3dcff
Merge pull request #2468 from OffchainLabs/better-design-approved-check
Tristan-Wilson Jul 10, 2024
70d64f6
Merge branch 'master' into add-ci-submodule-pin-check
Tristan-Wilson Jul 10, 2024
a464232
Add exceptions for some arbitrator submodules
Tristan-Wilson Jul 10, 2024
232d9ad
Merge branch 'master' into das-migrate-off-badgerdb
Tristan-Wilson Jul 10, 2024
12affc8
Always make expiry index
Tristan-Wilson Jul 10, 2024
24ddd89
Merge branch 'master' into get-machine-hashes-with-step
rauljordan Jul 10, 2024
55e7d45
Fix check for iter by expiry when expiry disabled
Tristan-Wilson Jul 10, 2024
01f1cdb
return nil when we need a no-op panic handler
zacshowa Jul 10, 2024
be38d4d
Merge branch 'master' into docker-consensus-v31
PlasmaPower Jul 10, 2024
966f22c
Fix lint errors
zacshowa Jul 10, 2024
1b57f6a
Merge pull request #141 from zacshowa/update-validator
zacshowa Jul 10, 2024
fdf8bea
Don't close the sigint channel
PlasmaPower Jul 10, 2024
5e3bb7b
Fix validator pending validations metric
PlasmaPower Jul 10, 2024
0fb02ca
Merge pull request #2470 from OffchainLabs/das-fs-always-create-expir…
Tristan-Wilson Jul 10, 2024
3e12fd6
init: fix loading db with custom ancient path
gligneul Jul 10, 2024
0304116
Merge branch 'master' into gligneul/fix-init-persistent-ancient
gligneul Jul 10, 2024
50a4f1d
Merge pull request #2474 from OffchainLabs/gligneul/fix-init-persiste…
joshuacolvin0 Jul 10, 2024
5963d7e
Merge branch 'master' into fix-pending-validations-metric
joshuacolvin0 Jul 10, 2024
aae7995
Merge pull request #2473 from OffchainLabs/fix-pending-validations-me…
PlasmaPower Jul 10, 2024
21bfb21
Merge branch 'master' into dont-close-sigint
joshuacolvin0 Jul 10, 2024
43752ab
Merge pull request #2472 from OffchainLabs/dont-close-sigint
joshuacolvin0 Jul 10, 2024
718d60c
Merge branch 'master' into rpc_gas_limit
joshuacolvin0 Jul 10, 2024
1173644
Merge pull request #2451 from OffchainLabs/rpc_gas_limit
joshuacolvin0 Jul 10, 2024
ea39210
Merge branch 'master' into get-machine-hashes-with-step
tsahee Jul 10, 2024
22f15a3
Merge branch 'master' into add-l1bounds-reorgresistance-check
joshuacolvin0 Jul 11, 2024
95255eb
Merge pull request #2392 from OffchainLabs/get-machine-hashes-with-step
tsahee Jul 11, 2024
9107f8d
Merge branch 'master' into add-l1bounds-reorgresistance-check
joshuacolvin0 Jul 11, 2024
0a3a73d
Merge pull request #2411 from OffchainLabs/add-l1bounds-reorgresistan…
ganeshvanahalli Jul 11, 2024
4c43215
Merge branch 'master' into das-migrate-off-badgerdb
joshuacolvin0 Jul 11, 2024
58578ae
Merge pull request #142 from EspressoSystems/jh/dev-node
ImJeremyHe Jul 11, 2024
18bf1f2
Update contracts
ImJeremyHe Jul 11, 2024
850f023
Merge pull request #2409 from OffchainLabs/das-migrate-off-badgerdb
Tristan-Wilson Jul 11, 2024
53e86c8
Merge branch 'master' into enhance/break-down-query
renlulu Jul 11, 2024
725baef
refactor: rename and set the default value to 0 for log query batch size
renlulu Jul 11, 2024
0433d00
chore: rename command name
renlulu Jul 11, 2024
e89e283
chore: set the default value to 0 for TestL1ValidatorConfig
renlulu Jul 11, 2024
001c7cc
Fix the validation
ImJeremyHe Jul 11, 2024
d22da37
fix: query all requested logs while logQueryRangeSize is 0
renlulu Jul 11, 2024
4781fdf
fix: subcommand name for LogQueryBatchSize
renlulu Jul 11, 2024
8f2dc2e
Switch merge checks action to pull_request_target event
PlasmaPower Jul 11, 2024
6df9580
Merge pull request #2477 from OffchainLabs/merge-checks-pr-target
PlasmaPower Jul 11, 2024
8c7fc04
Merge branch 'master' into enhance/break-down-query
PlasmaPower Jul 11, 2024
5f92c57
Remove the switch test
ImJeremyHe Jul 11, 2024
432eea1
Merge branch 'master' into add-ci-submodule-pin-check
Tristan-Wilson Jul 11, 2024
798ed3a
Fix CI
ImJeremyHe Jul 11, 2024
29b40e8
Merge branch 'master' into docker-consensus-v31
PlasmaPower Jul 11, 2024
1fcaf60
Merge pull request #2465 from OffchainLabs/docker-consensus-v31
PlasmaPower Jul 11, 2024
a0418a6
Merge branch 'master' into enhance/break-down-query
renlulu Jul 11, 2024
eda3c94
Merge branch 'master' into add-ci-submodule-pin-check
Tristan-Wilson Jul 12, 2024
b6562ef
Merge pull request #2443 from renlulu/enhance/break-down-query
joshuacolvin0 Jul 12, 2024
a09a8a1
Merge branch 'master' into add-ci-submodule-pin-check
Tristan-Wilson Jul 12, 2024
5237c93
Merge pull request #2455 from OffchainLabs/add-ci-submodule-pin-check
Tristan-Wilson Jul 12, 2024
cbdf31f
Fix disabling P2P
PlasmaPower Jul 12, 2024
7d1d84c
Merge pull request #2485 from OffchainLabs/fix-disable-p2p
joshuacolvin0 Jul 12, 2024
8237585
Merge pull request #143 from EspressoSystems/jh/sync
ImJeremyHe Jul 13, 2024
0a8fd37
Remove postgres in espresso e2e test
ImJeremyHe Jul 17, 2024
2c7f9a4
Merge pull request #148 from EspressoSystems/jh/e2e
ImJeremyHe Jul 18, 2024
098802c
Merge pull request #152 from Sneh1999/sync-3.1.0
sveitser Jul 19, 2024
d4f0433
Codeowners: add Alysia, Zach, Sneh (#154)
sveitser Jul 19, 2024
26300e1
Remove Dockerfile.espresso (#156)
Sneh1999 Jul 22, 2024
1b6f511
Release 20240723 with 20240723-consensus
sveitser Jul 23, 2024
9f4ef0d
Merge pull request #160 from EspressoSystems/release-20240723
sveitser Jul 23, 2024
f2e59f5
Submit L2 Message to espresso network
Sneh1999 Jul 29, 2024
ee5f14c
add context timeout
Sneh1999 Jul 29, 2024
2be6a8c
check for hotshot liveness and add a polling interval to see if trans…
Sneh1999 Jul 29, 2024
d3c336c
cleanup
Sneh1999 Jul 29, 2024
1fb397a
lint
Sneh1999 Jul 29, 2024
38c3770
Draft the sovereign sequencer test
ImJeremyHe Jul 30, 2024
860cbff
Add espresso transaction queue
Sneh1999 Jul 30, 2024
41bbdfe
Merge branch 'forward-l2-message' of github.com:EspressoSystems/nitro…
Sneh1999 Jul 30, 2024
9c1264e
Draft the espresso submission
ImJeremyHe Jul 31, 2024
578c19b
Set a new l2 message type for the sovereign sequencer transactions
ImJeremyHe Jul 31, 2024
ee9c867
Attempt to write messages again
ImJeremyHe Jul 31, 2024
5d32af3
Fix typos and add some comments
ImJeremyHe Jul 31, 2024
317c9df
Fix typo
ImJeremyHe Jul 31, 2024
ae99792
add header to jst and submit transaction to espresso
Sneh1999 Jul 31, 2024
c9b069e
Update go client for development
ImJeremyHe Aug 1, 2024
01ce064
Confirm the transaction inclusion in hotshot
ImJeremyHe Aug 1, 2024
10b4b57
Fix the test
ImJeremyHe Aug 1, 2024
59deeec
Unblock the building blocks
ImJeremyHe Aug 1, 2024
132aa4d
Update go client
ImJeremyHe Aug 1, 2024
7ba876f
Fix the sovereign test
ImJeremyHe Aug 1, 2024
3240a39
add logs
Sneh1999 Aug 1, 2024
c240820
cleanup
Sneh1999 Aug 1, 2024
9f0ccda
lint
Sneh1999 Aug 1, 2024
6184913
Updage go client
ImJeremyHe Aug 2, 2024
84c592f
not to fetch merkle proof if hotshot height is 0
ImJeremyHe Aug 2, 2024
2da3b89
Cleanup
ImJeremyHe Aug 2, 2024
b584a3d
Fix CI
ImJeremyHe Aug 2, 2024
419b2b2
Add CI skip tests
ImJeremyHe Aug 2, 2024
330388c
remove unwanted variable
Sneh1999 Aug 2, 2024
65b94ea
skipping some tests to make ci pass
Sneh1999 Aug 2, 2024
15a9075
skipping some tests to make ci pass
Sneh1999 Aug 2, 2024
7aa8c59
Optional header in jst
ImJeremyHe Aug 5, 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
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,30 @@ solgen/go
**/node_modules

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

# these are used by environment outside the docker:
nitro-testnode/**/*

# Arbitrator ignores
arbitrator/tools/module_roots
arbitrator/tools/pricer

# Rust outputs
arbitrator/target/**/*
arbitrator/target
arbitrator/stylus/tests/*/target/
arbitrator/wasm-testsuite/target/
arbitrator/wasm-libraries/target/
arbitrator/tools/wasmer/target/
arbitrator/tools/wasm-tools/
arbitrator/tools/pricers/
arbitrator/tools/module_roots/
arbitrator/langs/rust/target/
arbitrator/langs/bf/target/

# Compiled files
**/*.o
Expand Down
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use nix
watch_file flake.nix
watch_file flake.lock
61 changes: 61 additions & 0 deletions .github/actions/docker-image/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Espresso Docker Image

inputs:
images:
required: true
type: string
target:
required: true
type: string
platforms:
required: true
type: string
file:
required: true
type: string

outputs:
digest:
value: "${{ steps.build.outputs.digest }}"

runs:
using: composite
steps:

- name: Generate docker metadata
uses: docker/metadata-action@v5
id: metadata
with:
images: ${{ inputs.images }}

# Build docker images and push to registry "by digest" later the images for
# ARM64 and AMD64 are merged and tagged as the final image.
#
# This step does not use `tags`. With tags (e.g. :main) push by digest fails.
- name: Build and push docker
uses: docker/build-push-action@v5
id: build
with:
file: ${{ inputs.file }}
target: ${{ inputs.target }}
labels: ${{ steps.metadata.outputs.labels }}
platforms: ${{ inputs.platforms }}
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=image,name=${{ inputs.images }},push-by-digest=true,name-canonical=true,push=true

- name: Export digest
shell: bash
run: |
digest_dir="${{ runner.temp }}/${{ inputs.target }}-digests"
mkdir -p "${digest_dir}"
digest="${{ steps.build.outputs.digest }}"
touch "${digest_dir}/${digest#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v3
with:
name: "${{ inputs.target }}-digests"
path: "${{ runner.temp }}/${{ inputs.target }}-digests/*"
if-no-files-found: error
retention-days: 1
99 changes: 52 additions & 47 deletions .github/workflows/arbitrator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ run-name: Arbitrator CI triggered from @${{ github.actor }} of ${{ github.head_r

on:
workflow_dispatch:
inputs:
enable_tmate:
type: boolean
description: 'Enable tmate'
required: false
default: false
merge_group:
pull_request:
paths:
Expand All @@ -16,56 +22,65 @@ on:

env:
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
# RUSTFLAGS: -Dwarnings # TODO: re-enable after wasmer upgrade
WABT_VERSION: 1.0.32

jobs:
coverage:
arbitrator:
name: Run Arbitrator tests
runs-on: ubuntu-8
runs-on: ubuntu-latest
steps:
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.enable_tmate }}
with:
detached: true

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
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.20.x
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:
node-version: '16'
node-version: '18'
cache: 'yarn'
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: "stable"
override: true
toolchain: "1.76"
components: 'llvm-tools-preview, rustfmt, clippy'

- name: Install grcov
uses: actions-rs/install@v0.1
- name: Install rust nightly
uses: dtolnay/rust-toolchain@nightly
id: install-rust-nightly
with:
crate: grcov
version: latest
use-tool-cache: true

- name: Install rust wasm targets
run: rustup target add wasm32-wasi wasm32-unknown-unknown
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 @@ -101,6 +116,11 @@ jobs:
make -j
make install

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

- name: Cache cbrotli
uses: actions/cache@v3
id: cache-cbrotli
Expand Down Expand Up @@ -138,48 +158,32 @@ jobs:
run: echo "$HOME/wabt-prefix/bin" >> "$GITHUB_PATH"

- name: Make arbitrator libraries
run: make -j wasm-ci-build

- name: Enable rust instrumentation
run: |
echo LLVM_PROFILE_FILE="your_name-%p-%m.profraw" >> $GITHUB_ENV
echo "CARGO_INCREMENTAL=0" >> $GITHUB_ENV
echo RUSTFLAGS="-Cinstrument-coverage" >> $GITHUB_ENV
echo RUSTDOCFLAGS="-Cpanic=abort" >> $GITHUB_ENV
run: make -j wasm-ci-build STYLUS_NIGHTLY_VER="+nightly-2024-02-04"

- name: Clippy check
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --manifest-path arbitrator/Cargo.toml -- -D warnings
run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings

- name: Run rust tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all --manifest-path arbitrator/Cargo.toml
args: -p arbutil -p prover -p jit -p stylus --release --manifest-path arbitrator/prover/Cargo.toml

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --manifest-path arbitrator/Cargo.toml -- --check
args: -p arbutil -p prover -p jit -p stylus --manifest-path arbitrator/Cargo.toml -- --check

- 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 -j test-gen-proofs

- name: Create code-coverage files
run: |
grcov . --binary-path arbitrator/target/release/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info

- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lcov.info
fail_ci_if_error: true
verbose: false

- name: Start geth server
run: |
geth --dev --http --http.port 8545 &
Expand All @@ -191,4 +195,5 @@ jobs:
cd contracts
yarn install
yarn build
yarn build:forge:yul
yarn hardhat --network localhost test test/prover/*.ts
2 changes: 1 addition & 1 deletion .github/workflows/arbitrator-skip-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'Makefile'

jobs:
coverage:
arbitrator:
name: Run Arbitrator tests
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Backport merged pull request
on:
pull_request_target:
types: [closed]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport pull request
runs-on: ubuntu-latest
# Don't run on closed unmerged pull requests
if: github.event.pull_request.merged
steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@v2
Loading
Loading