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

Merge celestia v3.3.2 #424

Merged
merged 1,484 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1484 commits
Select commit Hold shift + click to select a range
c2ccab5
StateBuildingLogFunction shouldn't take targetHeader as an arg
ganeshvanahalli Oct 29, 2024
60daa96
minor fix
amsanghi Oct 29, 2024
8606740
Merge branch 'master' into bold-review
amsanghi Oct 29, 2024
35e944f
Merge branch 'master' into update-gethpin-v1.14.0
amsanghi Oct 29, 2024
3fc6b9b
Merge branch 'master' into dev_flag
amsanghi Oct 29, 2024
8e39be5
fix linter
amsanghi Oct 29, 2024
cffb793
Revert "Do not use SetFinalizer to remove entries from preimageResolv…
diegoximenes Oct 30, 2024
5390b0e
Uses preimageResolverRefCounter instead of relying on finalizers to r…
diegoximenes Oct 30, 2024
b7ba9c3
Reuse same global map to keep preimage resolver reference counter
diegoximenes Oct 30, 2024
98ccb2d
TestEntriesAreDeletedFromPreimageResolversGlobalMap
diegoximenes Oct 30, 2024
efc592f
Adds machine's finalizer back
diegoximenes Oct 30, 2024
ed689f5
Merge pull request #2759 from OffchainLabs/geth-v1.14.0-in-tree-bls
tsahee Oct 30, 2024
7ebf2dc
Change machine destroy order in TestEntriesAreDeletedFromPreimageReso…
diegoximenes Oct 30, 2024
0b4dbef
fix MockTransfer in trace
tsahee Oct 30, 2024
a0bd948
Merge remote-tracking branch 'origin/update-gethpin-v1.14.0' into gli…
tsahee Oct 31, 2024
59bd01e
Merge pull request #2725 from OffchainLabs/gligneul/fix-update-gethpi…
PlasmaPower Oct 31, 2024
04a8d83
Add a test challenging the start step in BoLD
PlasmaPower Oct 31, 2024
4649a54
Update the pin for the bold submodule
eljobe Oct 31, 2024
493f45b
Sets contextId to zero when destroying a machine
diegoximenes Nov 1, 2024
7ca0f24
contextId as pointer to avoid worrying about what are the valid conte…
diegoximenes Nov 1, 2024
d71865a
Simplifies if
diegoximenes Nov 1, 2024
b38a1fa
WIP: Add the boldmach wrapper
eljobe Nov 1, 2024
976a18f
Fix the two obviously errored hasStepped bits
eljobe Nov 1, 2024
4c316e5
Fix TestChallengeProtocolBOLDStartStepChallenge
PlasmaPower Nov 2, 2024
4aaee14
Handle SetPreimageResolver being called multiple times for the same m…
diegoximenes Nov 4, 2024
8b81224
panic in case when resolver is not found, or when ref counter is nega…
diegoximenes Nov 4, 2024
f7f90d2
renames refCounterAfter to refCount
diegoximenes Nov 4, 2024
84dfaf1
fix variable name
joshuacolvin0 Nov 4, 2024
76add00
Merge branch 'master' into check-build
joshuacolvin0 Nov 4, 2024
b01b895
Merge pull request #2746 from OffchainLabs/check-build
joshuacolvin0 Nov 4, 2024
2b656f2
Merge branch 'master' into destroy_val_entry
PlasmaPower Nov 4, 2024
30c39c3
Merge pull request #2752 from OffchainLabs/destroy_val_entry
PlasmaPower Nov 4, 2024
bc00529
Merge branch 'master' into fix-inbox-reader-reorg-window
PlasmaPower Nov 4, 2024
b4e27fc
Merge pull request #2673 from OffchainLabs/fix-inbox-reader-reorg-window
tsahee Nov 4, 2024
11afd69
Fix the execution_run tests
eljobe Nov 4, 2024
c3f806e
Attempt at fixing the virtual leaves issue
eljobe Nov 4, 2024
6e20fc6
Begin work on TestChallengeProtocolBOLDVirtualBlocks
PlasmaPower Nov 5, 2024
2323ddb
Merge branch 'master' into update-gethpin-v1.14.0
amsanghi Nov 5, 2024
d564703
Update geth
amsanghi Nov 5, 2024
60e7281
fix build
amsanghi Nov 5, 2024
09f9fde
Update geth
amsanghi Nov 5, 2024
cc25299
Merge branch 'master' into dev_flag
amsanghi Nov 5, 2024
07d7ec4
Changes based on PR comments
amsanghi Nov 5, 2024
e0fd4df
Merge pull request #2769 from OffchainLabs/bold-start-step-test
eljobe Nov 5, 2024
6566ff0
Changes based on PR comments
amsanghi Nov 5, 2024
c7f4f91
Update geth
amsanghi Nov 5, 2024
800f022
disable blob posting in the test batch poster config
amsanghi Nov 5, 2024
463f167
Complete TestChallengeProtocolBOLDVirtualBlocks
PlasmaPower Nov 5, 2024
259a4eb
Handle challenges in the virtually padded part of the leaaves
eljobe Nov 5, 2024
f878323
common_test: remove race condition
tsahee Nov 6, 2024
8e69f40
Merge pull request #2517 from OffchainLabs/update-gethpin-v1.14.0
tsahee Nov 6, 2024
aa5ebaa
Bump google.golang.org/grpc from 1.64.0 to 1.64.1
dependabot[bot] Nov 6, 2024
860f54a
merge master
ganeshvanahalli Nov 6, 2024
30af4ff
Get the test to compile
eljobe Nov 6, 2024
e712059
Split virtual blocks test into first and near last virtual block tests
PlasmaPower Nov 6, 2024
d3266db
Update test to better handle virtual blocks returned by honest impl
PlasmaPower Nov 6, 2024
ba72233
Merge branch 'master' into fix-failed-resend-error-logs
PlasmaPower Nov 6, 2024
fb467b4
Merge pull request #2627 from OffchainLabs/fix-failed-resend-error-logs
joshuacolvin0 Nov 6, 2024
5c69c82
switch geth-hook to PostingGasHook
tsahee Nov 6, 2024
a4809d4
update geth pin for posting gas hook
tsahee Nov 6, 2024
ad60c0d
Merge branch 'master' into improve-blocksreexecutor-impl
joshuacolvin0 Nov 6, 2024
967074a
rename to RPCPostingGasHook
tsahee Nov 7, 2024
5556819
Merge branch 'master' into posting_gas_hook
PlasmaPower Nov 7, 2024
f57a0eb
Merge pull request #2774 from OffchainLabs/posting_gas_hook
tsahee Nov 7, 2024
a74d22a
Merge remote-tracking branch 'origin/master' into improve-blocksreexe…
tsahee Nov 7, 2024
7e547ad
Merge pull request #2714 from OffchainLabs/improve-blocksreexecutor-impl
joshuacolvin0 Nov 7, 2024
ae1d18a
Fix the CollectProof and CollectMachineHashes calls
eljobe Nov 7, 2024
7056809
Merge branch 'bold-fix-tests' of github.com:OffchainLabs/nitro into b…
eljobe Nov 7, 2024
3b9ddde
merge master and resolve conflicts
ganeshvanahalli Nov 7, 2024
ae69f78
Merge branch 'master' into adjust_benchbin_args
PlasmaPower Nov 7, 2024
b8cf6ea
Merge pull request #2724 from OffchainLabs/adjust_benchbin_args
PlasmaPower Nov 7, 2024
65c5d54
Merge branch 'master' into dev_flag
tsahee Nov 7, 2024
54c4115
Merge pull request #2751 from OffchainLabs/dev_flag
tsahee Nov 7, 2024
40c8c9a
Add dangerous batch poster options configurable
tsahee Nov 7, 2024
0d1356d
Merge branch 'master' into batch_poster_option
joshuacolvin0 Nov 7, 2024
a81da40
Merge pull request #2776 from OffchainLabs/batch_poster_option
joshuacolvin0 Nov 7, 2024
26558d0
stylus test: infinite loop should create out-of-gas error
ganeshvanahalli Nov 8, 2024
4fe5c8b
fix user.wat
ganeshvanahalli Nov 8, 2024
f8b2c3f
update user.wat's module hash
ganeshvanahalli Nov 8, 2024
b8a297b
Use exec for docker entrypoint
PlasmaPower Nov 8, 2024
a3ad260
Merge pull request #2780 from OffchainLabs/entrypoint-exec
tsahee Nov 8, 2024
2f0bc89
Get the branch building again
eljobe Nov 12, 2024
2fc8cf1
Add gci to the golangci-lint config
eljobe Nov 12, 2024
ef9e90c
Make golangci-lint 1.62.0 happy
eljobe Nov 12, 2024
0469d0c
Merge branch 'master' into update-gethpin-v1.14.2
amsanghi Nov 12, 2024
2ea8a64
Merge remote-tracking branch 'origin/lint-type-checks' into update-ge…
amsanghi Nov 12, 2024
8e039e0
Also log an error if the backlogSegment type cannot be asserted
eljobe Nov 12, 2024
b51dcfd
Panic in syncmap if the key cannot be converted to the type
eljobe Nov 12, 2024
013d501
change default scheme used in tests to HashScheme
magicxyyz Nov 12, 2024
86b6cf0
Also panic in the other syncmap function on failed type assertions
eljobe Nov 12, 2024
9ad3707
Merge pull request #2785 from OffchainLabs/lint-type-checks
PlasmaPower Nov 12, 2024
f18c6e4
Merge branch 'master' into import-lint
eljobe Nov 12, 2024
65d347d
TestHostioWithoutEVMEquivalentCosts
diegoximenes Nov 4, 2024
9dde2d3
Renames test to TestGasUsageOfHostiosThatDontHaveGoodEVMEquivalents
diegoximenes Nov 4, 2024
3e9ef9e
expectedInc to expectedInk
diegoximenes Nov 4, 2024
6f43808
Split TestHostioWithoutEVMEquivalentCosts in multiple tests, test
diegoximenes Nov 8, 2024
c502d68
Adds missing t.Parallel() to gas usage hostio tests
diegoximenes Nov 8, 2024
2d90169
TestPayForMemoryGrowGasUsage with zero pages
diegoximenes Nov 8, 2024
28d71f1
HOSTIO_INK const
diegoximenes Nov 8, 2024
6307447
Fix lint issues
diegoximenes Nov 11, 2024
7c6cf62
Fix lint issues
diegoximenes Nov 11, 2024
1c5180c
Merge branch 'master' into default-test-scheme
magicxyyz Nov 12, 2024
1de23ba
Merge pull request #2784 from OffchainLabs/import-lint
joshuacolvin0 Nov 14, 2024
888dbad
Merge branch 'master' into stylusprogram-infiniteloop-outofgaserror
joshuacolvin0 Nov 14, 2024
57ce64f
Merge pull request #2778 from OffchainLabs/stylusprogram-infiniteloop…
joshuacolvin0 Nov 14, 2024
0abf704
Fix the wiring after the giant refactoring in bold repo
eljobe Nov 14, 2024
bc2683f
Merge branch 'master' into default-test-scheme
eljobe Nov 15, 2024
bcb2c64
Merge pull request #2786 from OffchainLabs/default-test-scheme
eljobe Nov 15, 2024
c6580c3
Merge branch 'master' into dependabot/go_modules/google.golang.org/gr…
eljobe Nov 15, 2024
ee13024
Merge pull request #2726 from OffchainLabs/dependabot/go_modules/goog…
eljobe Nov 15, 2024
d7f4134
update batch-poster.max-size and batch-poster.max-4844-batch-size des…
magicxyyz Nov 15, 2024
176b04d
Move ArbOS upgrade handling to a bit later in block production
PlasmaPower Nov 15, 2024
36a7ab8
Merge pull request #2790 from OffchainLabs/batch-poster-max-size-help
joshuacolvin0 Nov 15, 2024
121f3dd
Merge branch 'master' into move-upgrade-handling
joshuacolvin0 Nov 15, 2024
4d61af0
block reexecution should requite init.then-quit
ganeshvanahalli Nov 18, 2024
fb5886e
broadcastclient: check if compression was negotiated when connecting …
magicxyyz Nov 18, 2024
ed39624
use t.Run in broadcastclient tests
magicxyyz Nov 18, 2024
683d190
Merge branch 'master' into bold-review
eljobe Nov 18, 2024
d763207
Merge branch 'bold-review' into bold-fix-tests
eljobe Nov 18, 2024
bf1838e
Update to the same go-ethereum pin as master
eljobe Nov 18, 2024
d0bf3f4
Fix the path since it was moved down a dir
eljobe Nov 18, 2024
0b60721
Merge pull request #2792 from OffchainLabs/blocksreexecutor-require-i…
ganeshvanahalli Nov 19, 2024
1d335e1
merge master and resolve conflicts
ganeshvanahalli Nov 19, 2024
bc73ebc
update geth pin
ganeshvanahalli Nov 19, 2024
b84356f
Merge branch 'master' into update-gethpin-v1.14.2
amsanghi Nov 19, 2024
1ef4e05
update geth submodule
amsanghi Nov 19, 2024
eeaee91
Merge branch 'update-gethpin-v1.14.2' into zombies-for-v1.14.2
amsanghi Nov 19, 2024
7c1140f
Update the bold pin and remove some logging
eljobe Nov 19, 2024
361a747
Fix 2 lint issues
eljobe Nov 19, 2024
e9373e7
Merge commit '36a7ab854b8d528a50286c680f4b7c1a81d4eee2' into bold-review
eljobe Nov 19, 2024
4a323c3
Merge branch 'bold-review' into bold-fix-tests
eljobe Nov 19, 2024
61a81eb
update geth pin to master
ganeshvanahalli Nov 19, 2024
bbc4120
Merge pull request #2658 from OffchainLabs/derive-defaultchainsconfig…
ganeshvanahalli Nov 19, 2024
0aa337a
Merge pull request #2770 from OffchainLabs/bold-fix-tests
eljobe Nov 19, 2024
0f2fd1c
Merge branch 'master' into bold-review
eljobe Nov 19, 2024
7f70cc0
Merge branch 'master' into feed-handshake
joshuacolvin0 Nov 19, 2024
f8c5abb
Merge branch 'master' into move-upgrade-handling
tsahee Nov 19, 2024
438a992
Merge pull request #2793 from OffchainLabs/feed-handshake
joshuacolvin0 Nov 19, 2024
bd66067
Merge branch 'master' into move-upgrade-handling
PlasmaPower Nov 19, 2024
fdadb1b
Merge pull request #2791 from OffchainLabs/move-upgrade-handling
tsahee Nov 19, 2024
3d3e37b
Merge branch 'master' into test_gas_usage_hostio
tsahee Nov 19, 2024
387ac79
Merge pull request #2767 from OffchainLabs/test_gas_usage_hostio
tsahee Nov 19, 2024
3b07fcc
Check batchProcessed > 0 to avoid underflow
amsanghi Nov 20, 2024
7537061
Remove maxNumberOfBlocks from bold state provider
eljobe Nov 20, 2024
b053a14
Merge branch 'master' into bold-review
eljobe Nov 20, 2024
288a285
Merge pull request #2801 from OffchainLabs/overflow_check
joshuacolvin0 Nov 20, 2024
cc0d1a7
update geth submodule
amsanghi Nov 21, 2024
e9447ab
Merge branch 'update-gethpin-v1.14.2' into zombies-for-v1.14.2
amsanghi Nov 21, 2024
1e0461f
Merge branch 'master' into bold-review
eljobe Nov 21, 2024
6cc1d2f
Update the bold pin to use the tip of main
eljobe Nov 21, 2024
331c12e
Update bold pin and adjust nitro code accordingly
eljobe Nov 21, 2024
af7fe8f
Merge pull request #2732 from OffchainLabs/zombies-for-v1.14.2
tsahee Nov 21, 2024
f36ed0d
Get the BoLD challenge tests compiling again
eljobe Nov 21, 2024
19bc1ef
Bump nitro-testnode to bold-upgrade branch for bold testing
PlasmaPower Nov 22, 2024
4aba248
Fix bold staker without block validation enabled
PlasmaPower Nov 22, 2024
72ba88d
Fix multi protocol staker legacy staker wallet initialization
PlasmaPower Nov 22, 2024
eed7b12
Sync in the latests changes from the bold repo
eljobe Nov 22, 2024
e0a4a0f
Validator wallet refactor for bold
PlasmaPower Nov 22, 2024
b4f9dad
Address PR comments
PlasmaPower Nov 23, 2024
c2ac13a
Add documentation for the EOA struct
PlasmaPower Nov 23, 2024
0aa0cf8
Make bold state validated check more sturdy
PlasmaPower Nov 24, 2024
2821084
Fix bold state provider test exiting loop early
PlasmaPower Nov 24, 2024
56865a9
Merge pull request #2552 from OffchainLabs/update-gethpin-v1.14.2
hkalodner Nov 25, 2024
7b92647
bug fix
rauljordan Nov 25, 2024
dac6070
del
rauljordan Nov 25, 2024
1f259a9
add back tag
rauljordan Nov 25, 2024
f1de4c5
edit bold submodule
rauljordan Nov 25, 2024
11b270e
fix conflicts
rauljordan Nov 25, 2024
9e07266
bold submod
rauljordan Nov 25, 2024
8aff5ee
bold submod
rauljordan Nov 25, 2024
cdee55d
Merge branch 'bold-review' into val-wallet-refactor
rauljordan Nov 25, 2024
e9ecd45
Merge pull request #2804 from OffchainLabs/val-wallet-refactor
rauljordan Nov 25, 2024
bd7bd35
Merge branch 'master' into bold-review
rauljordan Nov 25, 2024
b6ee9d2
Make previousGlobalState a value instead of pointer
eljobe Nov 26, 2024
89b4cb5
Update bold repo pin to main
eljobe Nov 27, 2024
6608888
remove nil opts from validation node creation
rauljordan Nov 27, 2024
5cec6a7
remove nil opts from validation node creation
rauljordan Nov 27, 2024
0e6e2a8
rem print
rauljordan Nov 27, 2024
1ad24f2
Test an overflow assertion
eljobe Nov 28, 2024
fd85fcd
Make the finished machine actually pass the global state
eljobe Nov 28, 2024
e5b5354
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
eljobe Nov 28, 2024
4977148
Add BoLD ascii art for the log
eljobe Nov 28, 2024
e2a41e7
Rename maxInboxCount -> maxSeqInboxCount
eljobe Nov 28, 2024
c63db41
Merge pull request #2811 from OffchainLabs/bold-overflow-test
eljobe Nov 28, 2024
b9e263f
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
eljobe Nov 28, 2024
6a0754a
Move the Info logging into the staker implmentations
eljobe Nov 29, 2024
902696e
chore: update AEP link
hkalodner Dec 2, 2024
c58f3f0
Merge pull request #2813 from OffchainLabs/hk/update-aep
PlasmaPower Dec 2, 2024
abee6b8
commentary from lee addressed, part 1
rauljordan Dec 3, 2024
cdf48cf
address more review comments
rauljordan Dec 3, 2024
c874ed5
check stake token addr
rauljordan Dec 3, 2024
6cd3aec
move to test only file
rauljordan Dec 3, 2024
023ce1e
Merge branch 'master' into bold-review
rauljordan Dec 3, 2024
7b43136
lee feedback on testonly machine wrapper
rauljordan Dec 3, 2024
855462b
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Dec 3, 2024
17f0bbb
nolint
rauljordan Dec 4, 2024
14796b3
feedback
rauljordan Dec 5, 2024
1d0c06f
more feedback from lee, contexts, no caching module root
rauljordan Dec 5, 2024
027e2bd
address remaining bold commentary
rauljordan Dec 5, 2024
6365875
add back
rauljordan Dec 5, 2024
bd2adae
add back block validator set module root
rauljordan Dec 5, 2024
ec0a917
rm log
rauljordan Dec 5, 2024
828ebf4
assertion hash topic and path defaults
rauljordan Dec 5, 2024
25a0f89
builds
rauljordan Dec 5, 2024
1f436a6
gci
rauljordan Dec 5, 2024
dc36a3f
gci
rauljordan Dec 5, 2024
d706059
build
rauljordan Dec 5, 2024
46d742e
test
rauljordan Dec 5, 2024
8518e3d
Less useBoldMachine pointers
PlasmaPower Dec 6, 2024
1e635e4
builds
rauljordan Dec 6, 2024
d372f30
Merge branch 'bold-review' of github.com:OffchainLabs/nitro into bold…
rauljordan Dec 6, 2024
a64cb81
builds
rauljordan Dec 6, 2024
1a47581
Don't double wrap bold machines
PlasmaPower Dec 6, 2024
76a8a0f
Bump nitro-testnode to latest master to fix CI
PlasmaPower Dec 6, 2024
802c4c6
Merge pull request #2362 from OffchainLabs/bold-review
PlasmaPower Dec 6, 2024
0535fd2
Update bold submodule to fix shutdown
PlasmaPower Dec 8, 2024
d07d7a4
Merge pull request #2819 from OffchainLabs/bump-bold-2024-12-07
PlasmaPower Dec 8, 2024
0bd1e2a
Pull in geth tipReceipient fix
PlasmaPower Dec 17, 2024
9c0226f
Include tx compression level in calldata units cache
PlasmaPower Dec 20, 2024
5b5e179
Bump geth pin to fix lint
PlasmaPower Dec 20, 2024
8669e50
update geth: cherry-pick tracing fix
tsahee Jan 3, 2025
e326369
Merge pull request #2865 from OffchainLabs/geth-tracing-fix
joshuacolvin0 Jan 4, 2025
799ce56
Pull in flatcalltracer fix
joshuacolvin0 Jan 6, 2025
9d70997
Merge pull request #2866 from OffchainLabs/backport-trace-fix
joshuacolvin0 Jan 6, 2025
c4432ff
Pin contracts and testnode
Ferret-san Jan 8, 2025
bea14df
Merge branch 'celestia-v3.1.2' into celestia-v3.2.1
Ferret-san Sep 24, 2024
56f59a9
Fix anytrust fallback
Ferret-san Dec 2, 2024
0e49c15
Fix interface methods
Ferret-san Jan 9, 2025
edff899
Update Dockerfile
Ferret-san Jan 9, 2025
db1835f
merge
Sneh1999 Jan 10, 2025
2ea0aaf
update gitmodule
Sneh1999 Jan 10, 2025
7a684b9
update submodule
Sneh1999 Jan 10, 2025
31594ae
update go.mod
Sneh1999 Jan 10, 2025
dfdc0e9
fix code
Sneh1999 Jan 10, 2025
3ab0a56
fix tests
Sneh1999 Jan 10, 2025
410ad34
fix ci
Sneh1999 Jan 10, 2025
02fc748
temp: to fix build
Sneh1999 Jan 10, 2025
6748edb
use the latest version of celestia
Sneh1999 Jan 10, 2025
06ac37d
fix dockerfile
Sneh1999 Jan 10, 2025
0403e2b
lint
Sneh1999 Jan 10, 2025
cc65896
merge
ImJeremyHe Jan 10, 2025
26ec380
Fix challenge test
ImJeremyHe Jan 10, 2025
cad57cc
Skip BOLD test
ImJeremyHe Jan 10, 2025
2610b81
skip bold test TestChallengeProtocolBOLDFirstVirtualBlock
Sneh1999 Jan 10, 2025
840e0c3
fix dockerfile
Sneh1999 Jan 10, 2025
3d6f65d
merge
Sneh1999 Jan 10, 2025
c26a775
Fix ci
Sneh1999 Jan 10, 2025
8e093e2
rerun ci
Sneh1999 Jan 10, 2025
4caa609
add to skip test
Sneh1999 Jan 10, 2025
fe1ec4f
add to skip test bold test
Sneh1999 Jan 11, 2025
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
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions .github/buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 0.2

phases:
pre_build:
commands:
- git submodule update --init
- echo Logging in to Dockerhub....
- docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
- aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $REPOSITORY_URI
- COMMIT_HASH=$(git rev-parse --short=7 HEAD || echo "latest")
- VERSION_TAG=$(git tag --points-at HEAD | sed '/-/!s/$/_/' | sort -rV | sed 's/_$//' | head -n 1 | grep ^ || git show -s --pretty=%D | sed 's/, /\n/g' | grep -v '^origin/' |grep -v '^grafted\|HEAD\|master\|main$' || echo "dev")
- NITRO_VERSION=${VERSION_TAG}-${COMMIT_HASH}
- IMAGE_TAG=${NITRO_VERSION}
- NITRO_DATETIME=$(git show -s --date=iso-strict --format=%cd)
- NITRO_MODIFIED="false"
- echo ${NITRO_VERSION} > ./.nitro-tag.txt
build:
commands:
- echo Build started on `date`
- echo Building the Docker image ${NITRO_VERSION}...
- DOCKER_BUILDKIT=1 docker build . -t nitro-node-slim --target nitro-node-slim --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED
- DOCKER_BUILDKIT=1 docker build . -t nitro-node --target nitro-node --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED
- DOCKER_BUILDKIT=1 docker build . -t nitro-node-dev --target nitro-node-dev --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED
- DOCKER_BUILDKIT=1 docker build . -t nitro-node-validator --target nitro-node-validator --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED
- docker tag nitro-node:latest $REPOSITORY_URI:$IMAGE_TAG-$ARCH_TAG
- docker tag nitro-node-slim:latest $REPOSITORY_URI:$IMAGE_TAG-slim-$ARCH_TAG
- docker tag nitro-node-dev:latest $REPOSITORY_URI:$IMAGE_TAG-dev-$ARCH_TAG
- docker tag nitro-node-validator:latest $REPOSITORY_URI:$IMAGE_TAG-validator-$ARCH_TAG
post_build:
commands:
- echo Build completed on `date`
- echo pushing to repo
- docker push $REPOSITORY_URI:$IMAGE_TAG-$ARCH_TAG
- docker push $REPOSITORY_URI:$IMAGE_TAG-slim-$ARCH_TAG
- docker push $REPOSITORY_URI:$IMAGE_TAG-dev-$ARCH_TAG
- docker push $REPOSITORY_URI:$IMAGE_TAG-validator-$ARCH_TAG
6 changes: 2 additions & 4 deletions .github/workflows/arbitrator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ jobs:
- name: Install go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.23.x

- name: Install custom go-ethereum
run: |
cd /tmp
git clone --branch v1.13.8 --depth 1 https://github.com/ethereum/go-ethereum.git
git clone --branch v1.14.11 --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
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.23.x

- name: Install wasm-ld
run: |
Expand Down Expand Up @@ -147,14 +147,14 @@ jobs:
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/
~/.cargo/git/
arbitrator/**/target/
~/.cargo/
arbitrator/target/
arbitrator/wasm-libraries/target/
arbitrator/wasm-libraries/soft-float/SoftFloat/build
arbitrator/wasm-libraries/soft-float/
target/etc/initial-machine-cache/
key: v2-${{ runner.os }}-cargo-${{ steps.install-rust.outputs.rustc_hash }}-min-${{ hashFiles('arbitrator/Cargo.lock') }}-${{ matrix.test-mode }}
restore-keys: v1-${{ runner.os }}-cargo-${{ steps.install-rust.outputs.rustc_hash }}-
/home/runner/.rustup/toolchains/
key: ${{ runner.os }}-cargo-${{ steps.install-rust.outputs.rustc_hash }}-min-${{ hashFiles('arbitrator/Cargo.lock') }}-${{ matrix.test-mode }}
restore-keys: ${{ runner.os }}-cargo-${{ steps.install-rust.outputs.rustc_hash }}-

- name: Cache cbrotli
uses: actions/cache@v3
Expand Down Expand Up @@ -189,14 +189,14 @@ jobs:
- name: Build all lint dependencies
run: make -j build-node-deps

- name: Lint
if: matrix.test-mode == 'defaults'
uses: golangci/golangci-lint-action@v5
with:
version: v1.59.1
skip-cache: true
# TODO: celestia has lint errors, fix in later PRs
# - name: Lint
# if: matrix.test-mode == 'defaults'
# uses: golangci/golangci-lint-action@v3
# with:
# version: v1.59.1
# skip-cache: true

# TODO: celestia has lint errors, fix later
# - name: Custom Lint
# if: matrix.test-mode == 'defaults'
# run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.23.x

- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
Expand Down
83 changes: 83 additions & 0 deletions .github/workflows/gotestsum.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#!/bin/bash

check_missing_value() {
if [[ $1 -eq 0 || $2 == -* ]]; then
echo "missing $3 argument value"
exit 1
fi
}

timeout=""
tags=""
run=""
race=false
cover=false
while [[ $# -gt 0 ]]; do
case $1 in
--timeout)
shift
check_missing_value $# "$1" "--timeout"
timeout=$1
shift
;;
--tags)
shift
check_missing_value $# "$1" "--tags"
tags=$1
shift
;;
--run)
shift
check_missing_value $# "$1" "--run"
run=$1
shift
;;
--race)
race=true
shift
;;
--cover)
cover=true
shift
;;
*)
echo "Invalid argument: $1"
exit 1
;;
esac
done

packages=$(go list ./...)
for package in $packages; do
cmd="stdbuf -oL gotestsum --format short-verbose --packages=\"$package\" --rerun-fails=2 --no-color=false --"

if [ "$timeout" != "" ]; then
cmd="$cmd -timeout $timeout"
fi

if [ "$tags" != "" ]; then
cmd="$cmd -tags=$tags"
fi

if [ "$run" != "" ]; then
cmd="$cmd -run=$run"
fi

if [ "$race" == true ]; then
cmd="$cmd -race"
fi

if [ "$cover" == true ]; then
cmd="$cmd -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,./go-ethereum/..."
fi

cmd="$cmd > >(stdbuf -oL tee -a full.log | grep -vE \"INFO|seal\")"

echo ""
echo running tests for "$package"
echo "$cmd"

if ! eval "$cmd"; then
exit 1
fi
done
3 changes: 2 additions & 1 deletion .github/workflows/submodule-pin-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
with:
fetch-depth: 0
submodules: true
ref: "${{ github.event.pull_request.merge_commit_sha }}"
persist-credentials: false
ref: "${{ github.event.pull_request.head.sha }}"

- name: Check all submodules are ancestors of origin/HEAD or configured branch
run: |
Expand Down
11 changes: 7 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[submodule "go-ethereum"]
path = go-ethereum
url = https://github.com/EspressoSystems/geth-arbitrum.git
branch = integration
[submodule "fastcache"]
path = fastcache
url = https://github.com/OffchainLabs/fastcache.git
Expand All @@ -25,6 +21,9 @@
path = nitro-testnode
url = https://github.com/EspressoSystems/nitro-testnode
branch = celestia-integration
[submodule "bold"]
path = bold
url = https://github.com/OffchainLabs/bold.git
[submodule "arbitrator/langs/rust"]
path = arbitrator/langs/rust
url = https://github.com/OffchainLabs/stylus-sdk-rs.git
Expand All @@ -37,3 +36,7 @@
[submodule "safe-smart-account"]
path = safe-smart-account
url = https://github.com/safe-global/safe-smart-account.git
[submodule "go-ethereum"]
path = go-ethereum
url = https://github.com/OffchainLabs/go-ethereum.git
branch = nitro_v3.3.1
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ linters:
enable:
- asciicheck # check for non-ascii characters
- errorlint # enure error wrapping is safely done
- gci # keep imports sorted deterministically
- gocritic # check for certain simplifications
- gofmt # ensure code is formatted
- gosec # check for security concerns
Expand All @@ -30,6 +31,13 @@ linters-settings:
#
check-type-assertions: true

gci:
sections:
- standard
- default
- prefix(github.com/ethereum/go-ethereum)
- prefix(github.com/offchainlabs)

gocritic:
disabled-tags:
- experimental
Expand Down
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ FROM wasm-base AS wasm-libs-builder
# clang / lld used by soft-float wasm
RUN apt-get update && \
apt-get install -y clang=1:14.0-55.7~deb12u1 lld=1:14.0-55.7~deb12u1 wabt
# pinned rust 1.81.0
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.81.0 --target x86_64-unknown-linux-gnu wasm32-unknown-unknown wasm32-wasi
# pinned rust 1.80.1
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.80.1 --target x86_64-unknown-linux-gnu wasm32-unknown-unknown wasm32-wasi
COPY ./Makefile ./
COPY arbitrator/Cargo.* arbitrator/
COPY arbitrator/arbutil arbitrator/arbutil
Expand All @@ -66,7 +66,7 @@ COPY --from=wasm-libs-builder /workspace/ /

FROM wasm-base AS wasm-bin-builder
# pinned go version
RUN curl -L https://golang.org/dl/go1.21.10.linux-`dpkg --print-architecture`.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://golang.org/dl/go1.23.1.linux-`dpkg --print-architecture`.tar.gz | tar -C /usr/local -xzf -
COPY ./Makefile ./go.mod ./go.sum ./
COPY ./arbcompress ./arbcompress
COPY ./arbos ./arbos
Expand Down Expand Up @@ -204,6 +204,8 @@ RUN apt-get update && apt-get install -y unzip wget curl
WORKDIR /workspace/machines
# Download WAVM machines
COPY ./scripts/download-machine.sh .
COPY ./scripts/download-machine-celestia.sh .
RUN chmod +x ./download-machine.sh ./download-machine-celestia.sh
#RUN ./download-machine.sh consensus-v1-rc1 0xbb9d58e9527566138b682f3a207c0976d5359837f6e330f4017434cca983ff41
#RUN ./download-machine.sh consensus-v2.1 0x9d68e40c47e3b87a8a7e6368cc52915720a6484bb2f47ceabad7e573e3a11232
#RUN ./download-machine.sh consensus-v3 0x53c288a0ca7100c0f2db8ab19508763a51c7fd1be125d376d940a65378acaee7
Expand All @@ -225,8 +227,10 @@ COPY ./scripts/download-machine.sh .
RUN ./download-machine.sh consensus-v30 0xb0de9cb89e4d944ae6023a3b62276e54804c242fd8c4c2d8e6cc4450f5fa8b1b && true
RUN ./download-machine.sh consensus-v31 0x260f5fa5c3176a856893642e149cf128b5a8de9f828afec8d11184415dd8dc69
RUN ./download-machine.sh consensus-v32 0x184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa39
RUN ./download-machine-celestia.sh v3.2.1-rc.1 0xe81f986823a85105c5fd91bb53b4493d38c0c26652d23f76a7405ac889908287 celestiaorg
RUN ./download-machine-celestia.sh v3.3.2 0xaf1dbdfceb871c00bfbb1675983133df04f0ed04e89647812513c091e3a982b3 celestiaorg

FROM golang:1.21.10-bookworm AS node-builder
FROM golang:1.23.1-bookworm AS node-builder
WORKDIR /workspace
ARG version=""
ARG datetime=""
Expand All @@ -240,6 +244,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
COPY go.mod go.sum ./
COPY go-ethereum/go.mod go-ethereum/go.sum go-ethereum/
COPY fastcache/go.mod fastcache/go.sum fastcache/
COPY bold/go.mod bold/go.sum bold/
RUN go mod download
COPY . ./
COPY --from=contracts-builder workspace/contracts/build/ contracts/build/
Expand Down
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Additional Use Grant: You may use the Licensed Work in a production environment
validating the correctness of the posted chain state, or to deploy
and operate (x) a blockchain that settles to a Covered Arbitrum Chain
or (y) a blockchain in accordance with, and subject to, the [Arbitrum
Expansion Program Term of Use](https://docs.arbitrum.foundation/assets/files/Arbitrum%20Expansion%20Program%20Jan182024-4f08b0c2cb476a55dc153380fa3e64b0.pdf). For purposes of this
Expansion Program Term of Use](https://docs.arbitrum.foundation/aep/ArbitrumExpansionProgramTerms.pdf). For purposes of this
Additional Use Grant, the "Covered Arbitrum Chains" are
(a) Arbitrum One (chainid:42161), Arbitrum Nova (chainid:42170),
rbitrum Rinkeby testnet/Rinkarby (chainid:421611),Arbitrum Nitro
Arbitrum Rinkeby testnet/Rinkarby (chainid:421611),Arbitrum Nitro
Goerli testnet (chainid:421613), and Arbitrum Sepolia Testnet
(chainid:421614); (b) any future blockchains authorized to be
designated as Covered Arbitrum Chains by the decentralized autonomous
Expand Down
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,16 @@ stylus_test_erc20_wasm = $(call get_stylus_test_wasm,erc20)
stylus_test_erc20_src = $(call get_stylus_test_rust,erc20)
stylus_test_read-return-data_wasm = $(call get_stylus_test_wasm,read-return-data)
stylus_test_read-return-data_src = $(call get_stylus_test_rust,read-return-data)
stylus_test_hostio-test_wasm = $(call get_stylus_test_wasm,hostio-test)
stylus_test_hostio-test_src = $(call get_stylus_test_rust,hostio-test)

stylus_test_wasms = $(stylus_test_keccak_wasm) $(stylus_test_keccak-100_wasm) $(stylus_test_fallible_wasm) $(stylus_test_storage_wasm) $(stylus_test_multicall_wasm) $(stylus_test_log_wasm) $(stylus_test_create_wasm) $(stylus_test_math_wasm) $(stylus_test_sdk-storage_wasm) $(stylus_test_erc20_wasm) $(stylus_test_read-return-data_wasm) $(stylus_test_evm-data_wasm) $(stylus_test_bfs:.b=.wasm)
stylus_test_wasms = $(stylus_test_keccak_wasm) $(stylus_test_keccak-100_wasm) $(stylus_test_fallible_wasm) $(stylus_test_storage_wasm) $(stylus_test_multicall_wasm) $(stylus_test_log_wasm) $(stylus_test_create_wasm) $(stylus_test_math_wasm) $(stylus_test_sdk-storage_wasm) $(stylus_test_erc20_wasm) $(stylus_test_read-return-data_wasm) $(stylus_test_evm-data_wasm) $(stylus_test_hostio-test_wasm) $(stylus_test_bfs:.b=.wasm)
stylus_benchmarks = $(wildcard $(stylus_dir)/*.toml $(stylus_dir)/src/*.rs) $(stylus_test_wasms)

espresso_crypto_dir = ./espressocrypto/lib/espresso-crypto-helper
espresso_crypto_files = $(wildcard $(espresso_crypto_dir)/*.toml $(espresso_crypto_dir)/src/*.rs)
espresso_crypto_lib = $(output_root)/lib/libespresso_crypto_helper.a
CBROTLI_WASM_BUILD_ARGS ?=-d

# user targets
.PHONY: build-espresso-crypto-lib
Expand Down Expand Up @@ -294,6 +297,7 @@ clean:
rm -f arbitrator/wasm-libraries/soft-float/SoftFloat/build/Wasm-Clang/*.a
rm -f arbitrator/wasm-libraries/forward/*.wat
rm -rf arbitrator/stylus/tests/*/target/ arbitrator/stylus/tests/*/*.wasm
rm -rf brotli/buildfiles
@rm -rf contracts/build contracts/cache solgen/go/
@rm -f .make/*
rm -rf brotli/buildfiles
Expand Down Expand Up @@ -498,6 +502,10 @@ $(stylus_test_erc20_wasm): $(stylus_test_erc20_src)
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
@touch -c $@ # cargo might decide to not rebuild the binary

$(stylus_test_hostio-test_wasm): $(stylus_test_hostio-test_src)
$(cargo_nightly) --manifest-path $< --release --config $(stylus_cargo)
@touch -c $@ # cargo might decide to not rebuild the binary

contracts/test/prover/proofs/float%.json: $(arbitrator_cases)/float%.wasm $(prover_bin) $(output_latest)/soft-float.wasm
$(prover_bin) $< -l $(output_latest)/soft-float.wasm -o $@ -b --allow-hostapi --require-success

Expand Down Expand Up @@ -588,9 +596,9 @@ contracts/test/prover/proofs/%.json: $(arbitrator_cases)/%.wasm $(prover_bin)
@touch $@

.make/cbrotli-wasm: $(DEP_PREDICATE) $(ORDER_ONLY_PREDICATE) .make
test -f target/lib-wasm/libbrotlicommon-static.a || ./scripts/build-brotli.sh -w -d
test -f target/lib-wasm/libbrotlienc-static.a || ./scripts/build-brotli.sh -w -d
test -f target/lib-wasm/libbrotlidec-static.a || ./scripts/build-brotli.sh -w -d
test -f target/lib-wasm/libbrotlicommon-static.a || ./scripts/build-brotli.sh -w $(CBROTLI_WASM_BUILD_ARGS)
test -f target/lib-wasm/libbrotlienc-static.a || ./scripts/build-brotli.sh -w $(CBROTLI_WASM_BUILD_ARGS)
test -f target/lib-wasm/libbrotlidec-static.a || ./scripts/build-brotli.sh -w $(CBROTLI_WASM_BUILD_ARGS)
@touch $@

.make/wasm-lib: $(DEP_PREDICATE) arbitrator/wasm-libraries/soft-float/SoftFloat/build/Wasm-Clang/softfloat.a $(ORDER_ONLY_PREDICATE) .make
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Nitro is currently licensed under a [Business Source License](./LICENSE.md), sim

The Additional Use Grant also permits the deployment of the Nitro software, in a permissionless fashion and without cost, as a new blockchain provided that the chain settles to either Arbitrum One or Arbitrum Nova.

For those that prefer to deploy the Nitro software either directly on Ethereum (i.e. an L2) or have it settle to another Layer-2 on top of Ethereum, the [Arbitrum Expansion Program (the "AEP")](https://docs.arbitrum.foundation/assets/files/Arbitrum%20Expansion%20Program%20Jan182024-4f08b0c2cb476a55dc153380fa3e64b0.pdf) was recently established. The AEP allows for the permissionless deployment in the aforementioned fashion provided that 10% of net revenue (as more fully described in the AEP) is contributed back to the Arbitrum community in accordance with the requirements of the AEP.
For those that prefer to deploy the Nitro software either directly on Ethereum (i.e. an L2) or have it settle to another Layer-2 on top of Ethereum, the [Arbitrum Expansion Program (the "AEP")](https://docs.arbitrum.foundation/aep/ArbitrumExpansionProgramTerms.pdf) was recently established. The AEP allows for the permissionless deployment in the aforementioned fashion provided that 10% of net revenue (as more fully described in the AEP) is contributed back to the Arbitrum community in accordance with the requirements of the AEP.

## Contact

Expand Down
3 changes: 2 additions & 1 deletion arbcompress/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
package arbcompress

/*
#cgo CFLAGS: -g -Wall -I${SRCDIR}/../target/include/
#cgo CFLAGS: -g -I${SRCDIR}/../target/include/
#cgo LDFLAGS: ${SRCDIR}/../target/lib/libstylus.a -lm
#include "arbitrator.h"
*/
import "C"

import (
"errors"
"fmt"
Expand Down
Loading
Loading