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

Clay/feature/merge optismism v1.9.3 #9

Merged
merged 270 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
957e13d
feat: add ERC-5202 Blueprint library with initial tests (#11700)
mds1 Sep 3, 2024
5b907dc
chore: Fix lint error (#11714)
ajsutton Sep 3, 2024
669a0fb
maint: no kontrol summaries in PRs (#11725)
smartcontracts Sep 3, 2024
337749f
feat: check interface differences in CI (#11677)
smartcontracts Sep 4, 2024
72eff5f
add comment to SingularBatch.Timestamp (#11720)
zhiqiangxu Sep 4, 2024
e80d23b
op-program: Use PebbleDB for DiskKV (Reapply with fixes) (#11709)
ajsutton Sep 4, 2024
5a1a18d
fix: SuperchainWETH fuzz flake with bad sender (#11728)
smartcontracts Sep 4, 2024
f8b421b
Fix copy-paste typo (#11731)
geoknee Sep 4, 2024
e0f6e1e
maint: add interfaces for legacy contracts (#11625)
smartcontracts Sep 4, 2024
2f10fb7
Slim down contracts-bedrock package (#11723)
mslipper Sep 4, 2024
1f0d8a8
fix: properly check all interfaces (#11734)
smartcontracts Sep 4, 2024
31f408b
feat: update interface validation script to check semver (#11740)
smartcontracts Sep 4, 2024
3410109
challenger: Introduce StateConverter to abstract loading VM states (#…
ajsutton Sep 4, 2024
f63cba6
fix: flake tests (#11742)
0xDiscotech Sep 4, 2024
2272a5d
repo: bump foundry (#11746)
tynes Sep 4, 2024
3f7a8ad
Revert "challenger: Introduce StateConverter to abstract loading VM s…
clabby Sep 4, 2024
c2d0911
cannon: Run expensive tests in parallel (#11739)
Inphi Sep 5, 2024
224c5fd
op-node: sequencer should clear inconsistent asyncGossip buffer on se…
protolambda Sep 5, 2024
df4d723
Reapply "challenger: Introduce StateConverter to abstract loading VM …
ajsutton Sep 5, 2024
ec06858
contracts-bedrock: Add OPSM file I/O for superchain deployments (#11750)
mslipper Sep 5, 2024
51150d8
maint: update solidity vscode extension (#11751)
smartcontracts Sep 5, 2024
91c7ed0
op-conductor: adds raft log snapshot configs (#11745)
zhwrd Sep 5, 2024
ffd9ed4
fix: initialization tests (#11674)
smartcontracts Sep 5, 2024
e7e5229
Update VERSIONING.md (#11761)
mds1 Sep 5, 2024
f85f189
Fix contracts-bedrock-docker-publish build (#11755)
mslipper Sep 5, 2024
ac19f2f
op-node: op-node interop block verification (devnet-1 scope) (#11611)
protolambda Sep 5, 2024
67ba188
cannon: Support binary serialisation for snapshots (#11718)
ajsutton Sep 6, 2024
31444eb
op-node: sanity-check the forkchoice updates (#11780)
protolambda Sep 6, 2024
247b399
Use local logger in data source (#11756)
joshklop Sep 6, 2024
85c79a5
fix: small typo fixes to DeploySuperchain.s.sol. (#11758)
blmalone Sep 6, 2024
873a4ea
cannon: Port audit fixes (#11697)
mbaxter Sep 6, 2024
ccf9d3e
ci: pull cached artifacts for contracts tests (#11771)
smartcontracts Sep 6, 2024
afcc51a
test: more blueprint tests (#11782)
mds1 Sep 6, 2024
49a4e9f
op-chain-ops: prep / utils for interop genesis work (#11790)
protolambda Sep 6, 2024
8733626
Add Maintenance Trigger for Cascading Updates (#11619)
axelKingsley Sep 6, 2024
4562b60
Update and cleanup CODEOWNERS with expert teams (#11786)
sebastianst Sep 6, 2024
75c7326
Catch 'header not found' string in L2BlockRefByLabel (#11759)
emhane Sep 6, 2024
f954cbb
ci: speed up CI by up to 50% (#11794)
smartcontracts Sep 6, 2024
1824499
dependabot(gomod): bump github.com/prometheus/client_golang (#11764)
dependabot[bot] Sep 6, 2024
52336b4
fix(challenger): `asterisc-kona` trace type (#11789)
clabby Sep 7, 2024
fb735d6
dependabot(gomod): bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#1…
dependabot[bot] Sep 7, 2024
747c9e7
Add Admin RPC for Adding New Chain Monitors (#11792)
axelKingsley Sep 7, 2024
4fbe14f
semgrep: try to fix CI timeout (#11798)
protolambda Sep 7, 2024
9170e93
maint: move existing interfaces to folders (#11749)
smartcontracts Sep 8, 2024
40750a5
op-challenger: Support binary and JSON snapshots (#11754)
ajsutton Sep 8, 2024
c27aead
Remove hardcoded entrypoint (#11801)
mslipper Sep 9, 2024
e0f8589
Allow cheatcodes on DeploySuperchain.s.sol (#11802)
mslipper Sep 9, 2024
c05f5ad
op-program: Add recent op-program versions to reproducibility check (…
ajsutton Sep 9, 2024
8404e91
ci: update contracts tests to split by file (#11797)
smartcontracts Sep 9, 2024
dc2490b
fix `ReadPreimage` (#11805)
zhiqiangxu Sep 9, 2024
f46bea7
op-program: Add a script to build cannon prestates for all tagged op-…
ajsutton Sep 9, 2024
4428d10
op-dispute-mon: Identify unclaimed credits based on the withdrawal re…
ajsutton Sep 9, 2024
a0d3195
cannon: Fix path used when verifying a downloaded state (#11813)
ajsutton Sep 9, 2024
f64d817
op-service: Make target destination when writing JSON/binary explicit…
ajsutton Sep 9, 2024
af78edd
maint: add interface for L2OutputOracle (#11817)
smartcontracts Sep 9, 2024
2116126
cannon: Autodetect VM type from state (#11803)
ajsutton Sep 10, 2024
dc5cf52
op-challenger: Release agent resources once game is complete (#11820)
ajsutton Sep 10, 2024
7e97b67
Fix race condition in sequencer stopping logic (#11769)
mdehoog Sep 10, 2024
7f3d6ef
feat: Add nested directory data format for op-program kvstore (#11795)
BrianBland Sep 10, 2024
e2356c3
Revert "op-program: Make directory preimage format the default." (#11…
ajsutton Sep 10, 2024
219ebe0
Add broadcast API to Go forge scripts (#11826)
mslipper Sep 10, 2024
91e306b
fix(op-batcher): initAltDA before initChannelConfig (#11816)
emilianobonassi Sep 10, 2024
53fa7b9
op-node: read DACommitmentType from scr in LoadOPStackRollupConfig (#…
bitwiseguy Sep 10, 2024
de31478
OPSM: Begin implementing OP Stack Manager code and it's deployment (#…
mds1 Sep 10, 2024
9d73864
op-chain-ops: fix Go forge script broadcast handling (#11832)
protolambda Sep 10, 2024
f93f9f4
fix: OptimismPortal fuzz flakes (#11818)
smartcontracts Sep 10, 2024
89c3d35
cannon: Fix jalr stack tracking (#11831)
Inphi Sep 10, 2024
3ac725a
ci: make semgrep-scan use a large docker image (#11834)
smartcontracts Sep 10, 2024
4ffc7cf
maint: clarify interface fixes are manual (#11835)
smartcontracts Sep 10, 2024
627f7af
feat: ban deposits interop (#11712)
skeletor-spaceman Sep 11, 2024
f84c92c
Improvements/bugfixes to Go forge scripts (#11838)
mslipper Sep 11, 2024
9a22240
OPSM: remove structs from `DeploySuperchain` (#11833)
mds1 Sep 11, 2024
de86922
maint: add more L1 interfaces (#11822)
smartcontracts Sep 11, 2024
707791b
ci: selectively build contracts (#11824)
smartcontracts Sep 11, 2024
84b1cde
Add entrypoint to deploy against existing Superchain (#11791)
mslipper Sep 11, 2024
144a775
test: fix test and variable naming conventions (#11845)
mds1 Sep 11, 2024
88b1a95
feat: concurrent alt-da requests (#11698)
samlaf Sep 11, 2024
9d8c342
feat: run extra fuzz rounds for new fuzz tests (#11748)
smartcontracts Sep 11, 2024
c21d0c5
Release op-contracts/v1.6.0 (#11760)
Inphi Sep 11, 2024
327e6e6
proofs Add a proofs-tools docker image (#11825)
ajsutton Sep 11, 2024
06a62ea
maint: add remaining L1 contract interfaces (#11848)
smartcontracts Sep 11, 2024
89c9fef
feat: Run `op-program` in `op-e2e` action tests (#11846)
clabby Sep 11, 2024
489d93c
fix: add IBeacon to interface check ignore (#11860)
smartcontracts Sep 12, 2024
d91f92a
proofs-tools: Fix circleci config to run hold job on proofs-tools rel…
ajsutton Sep 12, 2024
820636f
maint: add comment to OptimismPortal2 proof submitters mapping (#11853)
smartcontracts Sep 12, 2024
bd3955a
fix: add extra context to check interfaces script logs (#11861)
smartcontracts Sep 12, 2024
320e11d
feat: Helper for dumping `fp-tests` fixtures in `op-program` action t…
clabby Sep 12, 2024
5cdcfd4
proofs-tools: Update ci-docker-tag-op-stack-release.sh regex (#11862)
ajsutton Sep 12, 2024
4656d49
chore: export process frames (#11864)
ratankaliani Sep 12, 2024
77f7268
chore: Cleanup proofs actions (#11858)
clabby Sep 12, 2024
e9337db
proofs-tools: Include openssl and certs (#11865)
ajsutton Sep 12, 2024
7ff5e6e
cannon: Fix GC emulation of Go programs (#11704)
Inphi Sep 12, 2024
e374443
Fix the error usage in cannon (#11368)
wissyLeeei Sep 12, 2024
d887cfa
chore(op-program): Turn off `fsync` on pebble KV store (#11863)
clabby Sep 12, 2024
97aa08a
Add SendAsync to TxMgr (#11843)
mslipper Sep 12, 2024
232c54d
feat: introduce OptimismSuperchainERC20Factory (#11617)
agusduha Sep 12, 2024
0260adb
fix: do not delete test data directory (#11869)
smartcontracts Sep 12, 2024
849680b
codeowners: move go-reviewers team at the end (#11877)
sebastianst Sep 12, 2024
87af6f0
txmgr: improve code sharing between Send and SendAsync (#11876)
sebastianst Sep 12, 2024
fe4890f
Revert "txmgr: improve code sharing between Send and SendAsync (#1187…
mslipper Sep 12, 2024
e9b80ee
Add op-deployer proof-of-concept (#11804)
mslipper Sep 12, 2024
c3daaf4
fix(ci): skip files without modified functions (#11891)
smartcontracts Sep 12, 2024
ea665b5
fix(ci): tweak heavy fuzz run parameters (#11894)
smartcontracts Sep 12, 2024
e3cf320
discard candidate when ahead (#11874)
zhiqiangxu Sep 12, 2024
7d8ffa2
codeowners: own op-e2e/actions/proofs by proofs team (#11895)
sebastianst Sep 12, 2024
fb11507
maint: add interfaces for governance contracts (#11878)
smartcontracts Sep 12, 2024
935de9c
maint: rename Safe folder to safe (#11882)
smartcontracts Sep 12, 2024
ef1bf0a
opsm: remove remaining structs (#11854)
mds1 Sep 12, 2024
deb9bac
feat: Add channel timeout tests for `op-program` (#11885)
clabby Sep 13, 2024
e9ba6ac
feat: Add garbage frame tests for `op-program` (#11896)
clabby Sep 13, 2024
9e1f077
feat: mintable with permit (#11868)
tynes Sep 13, 2024
0e29474
add sequence window expiry test (#11897)
clabby Sep 13, 2024
3dbcee1
fix: incorrect import in ManageDrippie.s.sol (#11898)
smartcontracts Sep 13, 2024
d5957fa
op-e2e: Setup mt-cannon for tests (#11881)
Inphi Sep 13, 2024
0b20d8e
op-program: Inject prefetcher instead of setting code in config (#11902)
ajsutton Sep 13, 2024
8b61225
feat: `op-program` actor test API improvements (#11903)
clabby Sep 13, 2024
d432185
op-program: Record the kv format used. (#11900)
ajsutton Sep 13, 2024
3ba35fa
feat: Scaffolding for DeployAuthSystemInput (#11889)
maurelian Sep 13, 2024
3056348
interop: interopgen v2 using OPSM (#11702)
protolambda Sep 13, 2024
c8d6dbb
cannon: Handle preimage bounds checks consistently (#11911)
mbaxter Sep 13, 2024
f70248a
feat: Scaffolding for DeployAuthSystemInput (#11890)
maurelian Sep 13, 2024
5e14a61
Interop: SuperSystem for E2E Tests (#11850)
axelKingsley Sep 13, 2024
6cf35da
feat: Front OPSM with Proxy and Initialize (#11875)
blmalone Sep 14, 2024
8341f34
fix: Additional DeployImplementations.s.sol tests (#11914)
blmalone Sep 15, 2024
92ed64e
Use the deterministic deployer when broadcasting with CREATE2 (#11915)
mslipper Sep 15, 2024
ac443ef
op-e2e: Separate helpers for proofs action tests into a new package (…
ajsutton Sep 16, 2024
4af1fe6
cannon: Implement thread-safe ll and sc operations (#11906)
mbaxter Sep 16, 2024
db10999
Add integration test for apply (#11910)
mslipper Sep 16, 2024
7efa4e7
circleci: Enable mt-cannon in develop-fault-proofs (#11928)
Inphi Sep 16, 2024
9968aa3
feat: add SuperchainERC20 baseline (#11675)
agusduha Sep 16, 2024
7d92c98
feat(op-service): add SuperchainWETH and ETHLiquidity to predeploys/a…
tremarkley Sep 16, 2024
717330e
Port deployers, add end-to-end contract deployments (#11922)
mslipper Sep 16, 2024
95765df
cannon: Handle unaligned futex addresses (#11929)
mbaxter Sep 16, 2024
d4467a1
Add Logging ; Fix Broken Maintenance Context (#11931)
axelKingsley Sep 16, 2024
8dd6fb3
feat(op-e2e): Expose `L1Replica` + `L2Engine` + `BlobsStore` endpoint…
clabby Sep 16, 2024
21375b4
op-node: handle crit error events, lift event-system out of driver (#…
protolambda Sep 16, 2024
66bfe67
op-e2e: Fix compile error (#11933)
ajsutton Sep 16, 2024
994f634
op-e2e: Separate actions tests into different packages (#11921)
ajsutton Sep 17, 2024
4e2fdf3
feat(op-e2e): Kona FPP actions test adapter (#11936)
clabby Sep 17, 2024
c72a75e
op-e2e: Organize e2e system tests in subdirs (#11939)
protolambda Sep 17, 2024
45b4b1f
OPSM: miscellaneous fixes and improvements (#11935)
mds1 Sep 17, 2024
3b4fcc5
Disable go patches for cannon MT (#11937)
ajsutton Sep 17, 2024
4490fa8
feat: Scaffolding for DeployAuthSystem Script (#11908)
maurelian Sep 17, 2024
e7758b2
op-batcher: Add String methods to txRef (#11904)
sebastianst Sep 17, 2024
152c94d
feat: Rewrite FP contract distinctions as table (#11940)
maurelian Sep 17, 2024
1a4c020
op-e2e: fix fuzz cgo build (#11941)
protolambda Sep 17, 2024
418fb5e
maint: move WETH contract to correct folders (#11870)
smartcontracts Sep 17, 2024
f78ed7b
dependabot(gomod): bump github.com/prometheus/client_golang (#11946)
dependabot[bot] Sep 17, 2024
110a31d
Add L2 genesis generation support to `op-deployer` (#11938)
mslipper Sep 17, 2024
290dde2
OPSM: DeployOPChain assertions (#11943)
mds1 Sep 17, 2024
8312d61
feat: remove dgf impl from DeployOpChain and OPSM (#11942)
maurelian Sep 17, 2024
668c3fb
fix: Remove `--l2-chain-id` default (#11951)
clabby Sep 17, 2024
9179225
feat: Add ASR proxy to OPStackManager (#11952)
maurelian Sep 17, 2024
a7fac3b
ci: run slow Cannon test once per day (#11947)
smartcontracts Sep 17, 2024
e15f684
fix: move IERC20Solady into vendor folder (#11945)
smartcontracts Sep 17, 2024
518b050
ci: bump semgrep-scan to xlarge (#11948)
smartcontracts Sep 17, 2024
9de48fc
test: invariant tests for OptimismSuperchainERC20 (#11776)
0xteddybear Sep 18, 2024
c186b48
ci: job to check contracts build warnings (#11962)
smartcontracts Sep 18, 2024
86a74bc
ci: simplify contract build job inputs (#11965)
smartcontracts Sep 18, 2024
ab24015
ci: clean up golang job definitions (#11967)
smartcontracts Sep 18, 2024
b6e9a61
ci: fix config error in cannon tests (#11969)
smartcontracts Sep 18, 2024
c40dfed
op-node: lazy-dial the supervisor RPC (#11970)
protolambda Sep 18, 2024
7a10c31
ci: simplify contracts bedrock tests job (#11966)
smartcontracts Sep 18, 2024
d9fe07c
ci: misc cleanups and simplifications (#11968)
smartcontracts Sep 18, 2024
924896b
correct the comment (#11971)
rickck11 Sep 18, 2024
68b5239
update op-e2e setup (#11857)
hamdiallam Sep 18, 2024
ae37e02
fix: multiple fuzz flakes (#11981)
smartcontracts Sep 18, 2024
7db0f6a
maint: add interfaces for L2 bridge/messaging contracts (#11859)
smartcontracts Sep 18, 2024
c18ec26
chore(op-service): use `errors.New` to replace `fmt.Errorf` with no p…
yukionfire Sep 18, 2024
606e023
fix(ci): semgrep cli breaking change (#11985)
smartcontracts Sep 18, 2024
5fe7df2
ci: correct perms for tag-service.yml (#11961)
smartcontracts Sep 18, 2024
213f762
Add inspection commands, fix deployer bugs (#11964)
mslipper Sep 18, 2024
eba495d
refactor: Rename OPSM to OPSMProxy for clarity (#11972)
blmalone Sep 18, 2024
bd97c32
feat(op-e2e): Open channel closed after sequence window expiry test (…
clabby Sep 19, 2024
e2a19f4
feat(op-e2e): Channel timeout late submission test (#11995)
clabby Sep 19, 2024
c9a4a7c
ci: separate invariant runs from fuzz runs (#11982)
smartcontracts Sep 19, 2024
9ab6738
ci: Restore ci-builder docker release and remove invalid op-challenge…
ajsutton Sep 19, 2024
d4b1003
maint(ci): clean up release job (#11996)
smartcontracts Sep 19, 2024
a080bd2
maint(ci): clean up scheduled docker publish (#11999)
smartcontracts Sep 19, 2024
57f9fbf
OPSM: More assertions (#11994)
mds1 Sep 19, 2024
4b8d23e
op-challenger: Support MT-Cannon in run-trace (#11934)
Inphi Sep 19, 2024
2afa7a4
feat: add remaining L2 interfaces (#11984)
smartcontracts Sep 19, 2024
ff338bc
feat: clean up TODOs and add CI check (#12005)
smartcontracts Sep 19, 2024
4806d83
contracts: Add more MIPS2 tests (#12003)
Inphi Sep 19, 2024
29dd98b
cannon: Clean up fuzz test todos (#12009)
mbaxter Sep 19, 2024
08a4369
cannon: Clean up program patching (#11944)
mbaxter Sep 19, 2024
7105bad
feat(ci): check contract semver matches natspec (#11992)
smartcontracts Sep 19, 2024
a1f912a
maint(ct): link to external mermaid diagrams in specs (#12012)
smartcontracts Sep 19, 2024
54ae1e4
op-program: Reproducible MT-Cannon prestate (#12011)
Inphi Sep 19, 2024
cea1f94
cannon: Fix makefile phony target (#12014)
mbaxter Sep 19, 2024
45a266e
maint(ci): remove autogenerated invariant docs (#11988)
smartcontracts Sep 19, 2024
43ec97d
vm-runner: User-provided mt-cannon absolute prestate URL (#12016)
Inphi Sep 19, 2024
eaf4d3e
maint: fix dispute interfaces (#12010)
smartcontracts Sep 20, 2024
3c3a311
op-challenger: Use a wrapper to specify the vm type for metrics (#12020)
ajsutton Sep 20, 2024
2fcbe4b
SuperSystem: Add Emitter Contract - Basic Message Passing (#11956)
axelKingsley Sep 20, 2024
bdca797
Update kurtosis library. (#12025)
ajsutton Sep 20, 2024
4461d73
proof-tools: Bump op-challenger version (#12017)
Inphi Sep 20, 2024
fbf69c9
Pin kurtosis version in CI (#12026)
mslipper Sep 20, 2024
af357f1
refactor: Remove file I/O from deployment scripts (#12015)
blmalone Sep 20, 2024
bd50ac6
show block number when "L2 safe head ahead of L2 unsafe head" happens…
zhiqiangxu Sep 20, 2024
9936803
maint(ct): clean up justfile (#12024)
smartcontracts Sep 20, 2024
53d9522
feat(ct): add constructors to interfaces (#12028)
smartcontracts Sep 20, 2024
0543bf7
op-supervisor: store block-checkpoints per block, implement block ite…
protolambda Sep 20, 2024
c5007bb
Add builds for op-deployer, bugfixes, artifacts downloads (#12033)
mslipper Sep 21, 2024
dd7f5db
chore(op-e2e): assert that the channel actually timed out (#11998)
clabby Sep 21, 2024
53080c9
feat(op-e2e): Recover from bad transactions in batch test (#12039)
clabby Sep 22, 2024
4c6bc7e
docs: remove fault proof alpha from readme (#12036)
QianlongCry Sep 22, 2024
de7f8d9
Use TxManager interface in DriverSetup and BatcherService (#12040)
mdehoog Sep 22, 2024
6c98946
feat(op-e2e): L1 lookback action tests (#12043)
clabby Sep 23, 2024
d348c69
codeowners: Set proofs team as owners of faultproofs e2e tests (#12053)
ajsutton Sep 23, 2024
05c0421
cannon, op-program: Avoid logging errors during normal shutdown. (#12…
ajsutton Sep 23, 2024
7ee6dcc
op-challenger: Fix run-trace to only run mt-cannon in parallel with c…
ajsutton Sep 23, 2024
90700b9
contract-test: delete outdated structure explanation (#12054)
rickck11 Sep 23, 2024
6933bfe
Simplify ChannelOut initialization (#12045)
mdehoog Sep 23, 2024
2f2554a
Add AnchorStateRegistry Implementation to OPSM (#11955)
maurelian Sep 23, 2024
d204c1f
proofs-tools: Update op-challenger version in proofs-tools. (#12055)
ajsutton Sep 23, 2024
f86ccc8
fix(ci): do not check closed issues in main job (#12066)
smartcontracts Sep 23, 2024
9178d5f
feat: deploy utils cleanup (#12027)
smartcontracts Sep 23, 2024
9a12768
feat(L2ToL2CrossDomainMessenger): add successfulMessages and messageN…
tremarkley Sep 23, 2024
718b9b0
op-supervisor: encode full hashes (#12071)
protolambda Sep 23, 2024
0fee34b
op-service: add configurable client timeout (#12074)
bitwiseguy Sep 24, 2024
ec3f634
ci: Sanitize op-program for unsupported instructions (#12007)
Inphi Sep 24, 2024
308ce74
OPSM: Deploy Permissioned Game (#12064)
maurelian Sep 24, 2024
43224ed
op-service: remove test print statement (#12083)
bitwiseguy Sep 24, 2024
8b76931
feat: Implement release-based contract deployment (#12035)
blmalone Sep 24, 2024
1ee7ea1
fix: justfile clean command (#12092)
blmalone Sep 24, 2024
5b9b3b8
Add permissioned game output assertions (#12093)
maurelian Sep 24, 2024
712b760
cannon: Drop unnecessary wakeup field reset (#12095)
mbaxter Sep 24, 2024
9c02f54
chore: emit event on deploy (#12090)
mds1 Sep 24, 2024
22094b4
check deposit on validateMessage (#12088)
hamdiallam Sep 24, 2024
cbbb45e
op-node: Remove unused field in `ChannelBank` (#12001)
palango Sep 25, 2024
3072549
MTCannon: Add add/addi/addu/addiu opcodes tests (#12085)
GrapeBaBa Sep 25, 2024
56502dd
cannon: Multi VM executor (#12072)
Inphi Sep 25, 2024
decf451
cannon: Build the cannon docker image and publish on cannon release t…
ajsutton Sep 25, 2024
4f1e8a7
remove unused function (#12087)
zhiqiangxu Sep 25, 2024
106993f
op-batcher: Move decision about data availability type to channel sub…
geoknee Sep 25, 2024
b0e6d13
cannon: Support the --version argument for multicannon. (#12101)
ajsutton Sep 25, 2024
da9bc72
show log for `devnet` (#12102)
zhiqiangxu Sep 25, 2024
b55f4d7
rename: OPStackManafer -> OPContractsManager (#12091)
blmalone Sep 25, 2024
10a16aa
op-supervisor: logs-db empty-db edge-case fix (#12097)
protolambda Sep 25, 2024
616a078
op-batcher: prevent over-assessment of DA type (#12115)
geoknee Sep 25, 2024
36180d7
rename: proxyAdminOwner -> superchainProxyAdminOwner (#12106)
blmalone Sep 25, 2024
06f1406
Add support for pre-existing OPSM (#12099)
mslipper Sep 25, 2024
e81c50d
fix: OPCM additional safety checks (#12107)
blmalone Sep 25, 2024
3f9340c
feat: upgrade to optimism v1.9.1 and implement non-blocking batch sub…
Troublor Sep 2, 2024
6ab801a
optimize SystemConfigByL2Hash function by avoid getBlockByHash with f…
Troublor Sep 19, 2024
b94a820
op-node: parallel events executor (#4)
claymega Oct 28, 2024
21f41b8
fix compile error, modify altDA.MAxInputSize, add parallel executor
claymega Nov 1, 2024
c924bf7
reduce comment
claymega Nov 15, 2024
6516a10
Merge branch 'develop' into clay/feature/merge_optismism_v1.9.3
claymega Nov 15, 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
  •  
  •  
  •  
1,346 changes: 611 additions & 735 deletions .circleci/config.yml

Large diffs are not rendered by default.

64 changes: 29 additions & 35 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
# Packages
/packages/contracts-bedrock @ethereum-optimism/contract-reviewers
/packages/sdk @ethereum-optimism/devxpod
# Monorepo - default to go-reviewers
* @ethereum-optimism/go-reviewers

# OP Stack general
/bedrock-devnet @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-alt-da @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-batcher @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-chain-ops @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-e2e @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-node @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-proposer @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/op-wheel @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers
/ops-bedrock @ethereum-optimism/op-stack @ethereum-optimism/go-reviewers

# Expert areas
/op-node/rollup @ethereum-optimism/consensus @ethereum-optimism/go-reviewers

/op-supervisor @ethereum-optimism/interop @ethereum-optimism/go-reviewers

# Bedrock codebases
/bedrock-devnet @ethereum-optimism/go-reviewers
/cannon @ethereum-optimism/go-reviewers
/op-batcher @ethereum-optimism/go-reviewers
/op-bootnode @ethereum-optimism/go-reviewers
/op-chain-ops @ethereum-optimism/go-reviewers
/op-challenger @ethereum-optimism/go-reviewers
/op-dispute-mon @ethereum-optimism/go-reviewers
/op-e2e @ethereum-optimism/go-reviewers
/op-node @ethereum-optimism/go-reviewers
/op-node/rollup @protolambda @ajsutton
/op-alt-da @ethereum-optimism/go-reviewers
/op-preimage @ethereum-optimism/go-reviewers
/op-program @ethereum-optimism/go-reviewers
/op-proposer @ethereum-optimism/go-reviewers
/op-service @ethereum-optimism/go-reviewers
/op-supervisor @ethereum-optimism/go-reviewers
/op-wheel @ethereum-optimism/go-reviewers
/ops-bedrock @ethereum-optimism/go-reviewers
/op-conductor @0x00101010 @zhwrd @mslipper
/op-conductor @ethereum-optimism/op-conductor @ethereum-optimism/go-reviewers

/cannon @ethereum-optimism/proofs @ethereum-optimism/go-reviewers
/op-challenger @ethereum-optimism/proofs @ethereum-optimism/go-reviewers
/op-dispute-mon @ethereum-optimism/proofs @ethereum-optimism/go-reviewers
/op-preimage @ethereum-optimism/proofs @ethereum-optimism/go-reviewers
/op-program @ethereum-optimism/proofs @ethereum-optimism/go-reviewers
/op-e2e/actions/proofs @ethereum-optimism/proofs @ethereum-optimism/go-reviewers
/op-e2e/faultproofs @ethereum-optimism/proofs @ethereum-optimism/go-reviewers

# Ops
/.circleci @ethereum-optimism/monorepo-ops-reviewers
/.github @ethereum-optimism/monorepo-ops-reviewers
/ops @ethereum-optimism/monorepo-ops-reviewers
/docker-bake.hcl @ethereum-optimism/monorepo-ops-reviewers

# Misc
/proxyd @ethereum-optimism/infra-reviewers
/infra @ethereum-optimism/infra-reviewers
/specs @ethereum-optimism/contract-reviewers @ethereum-optimism/go-reviewers

# Don't add owners if only package.json is updated
/packages/*/package.json
/*/package.json

# JavaScript Releases
/packages/*/CHANGELOG.md @ethereum-optimism/release-managers
/*/CHANGELOG.md @ethereum-optimism/release-managers
# Contracts
/packages/contracts-bedrock @ethereum-optimism/contract-reviewers
3 changes: 3 additions & 0 deletions .github/workflows/tag-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ on:
type: boolean
default: false

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
Expand Down
4 changes: 0 additions & 4 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"editorconfig.editorconfig",
"juanblanco.solidity",
"nomicfoundation.hardhat-solidity",
"golang.go"
]
}
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,25 @@ reproducible-prestate: ## Builds reproducible-prestate binary
make -C ./op-program reproducible-prestate
.PHONY: reproducible-prestate

# Include any files required for the devnet to build and run. This appears to be the only one that's actually needed.
DEVNET_CANNON_PRESTATE_FILES := op-program/bin/prestate-proof.json op-program/bin/prestate.json
# Include any files required for the devnet to build and run.
DEVNET_CANNON_PRESTATE_FILES := op-program/bin/prestate-proof.json op-program/bin/prestate.json op-program/bin/prestate-proof-mt.json op-program/bin/prestate-mt.bin.gz


$(DEVNET_CANNON_PRESTATE_FILES):
make cannon-prestate
make cannon-prestate-mt

cannon-prestate: op-program cannon ## Generates prestate using cannon and op-program
./cannon/bin/cannon load-elf --path op-program/bin/op-program-client.elf --out op-program/bin/prestate.json --meta op-program/bin/meta.json
./cannon/bin/cannon run --proof-at '=0' --stop-at '=1' --input op-program/bin/prestate.json --meta op-program/bin/meta.json --proof-fmt 'op-program/bin/%d.json' --output ""
./cannon/bin/cannon load-elf --type singlethreaded --path op-program/bin/op-program-client.elf --out op-program/bin/prestate.json --meta op-program/bin/meta.json
./cannon/bin/cannon run --proof-at '=0' --stop-at '=1' --input op-program/bin/prestate.json --meta op-program/bin/meta.json --proof-fmt 'op-program/bin/%d.json' --output ""
mv op-program/bin/0.json op-program/bin/prestate-proof.json
.PHONY: cannon-prestate

cannon-prestate-mt: op-program cannon ## Generates prestate using cannon and op-program in the multithreaded cannon format
./cannon/bin/cannon load-elf --type mt --path op-program/bin/op-program-client.elf --out op-program/bin/prestate-mt.json --meta op-program/bin/meta-mt.json
./cannon/bin/cannon run --type mt --proof-at '=0' --stop-at '=1' --input op-program/bin/prestate-mt.json --meta op-program/bin/meta-mt.json --proof-fmt 'op-program/bin/%d-mt.json' --output ""
./cannon/bin/cannon load-elf --type multithreaded --path op-program/bin/op-program-client.elf --out op-program/bin/prestate-mt.bin.gz --meta op-program/bin/meta-mt.json
./cannon/bin/cannon run --proof-at '=0' --stop-at '=1' --input op-program/bin/prestate-mt.bin.gz --meta op-program/bin/meta-mt.json --proof-fmt 'op-program/bin/%d-mt.json' --output ""
mv op-program/bin/0-mt.json op-program/bin/prestate-proof-mt.json
.PHONY: cannon-prestate
.PHONY: cannon-prestate-mt

mod-tidy: ## Cleans up unused dependencies in Go modules
# Below GOPRIVATE line allows mod-tidy to be run immediately after
Expand Down
2 changes: 2 additions & 0 deletions bedrock-devnet/devnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from multiprocessing import Process, Queue
import concurrent.futures
from collections import namedtuple
# This import is necessary for devnet logs to be shown.
from . import log_setup


pjoin = os.path.join
Expand Down
1 change: 1 addition & 0 deletions cannon/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ state.json
*.pprof
*.out
bin
multicannon/embeds/cannon*
23 changes: 19 additions & 4 deletions cannon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,39 @@ VERSION ?= v0.0.0

LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT)
LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
LDFLAGSSTRING +=-X github.com/ethereum-optimism/optimism/op-program/version.Version=$(VERSION)
LDFLAGSSTRING +=-X github.com/ethereum-optimism/optimism/op-program/version.Meta=$(VERSION_META)
LDFLAGSSTRING +=-X github.com/ethereum-optimism/optimism/cannon/multicannon/version.Version=$(VERSION)
LDFLAGSSTRING +=-X github.com/ethereum-optimism/optimism/cannon/multicannon/version.Meta=$(VERSION_META)
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"

# Use the old Apple linker to workaround broken xcode - https://github.com/golang/go/issues/65169
ifeq ($(shell uname),Darwin)
FUZZLDFLAGS := -ldflags=-extldflags=-Wl,-ld_classic
endif

cannon:
env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/cannon .
cannon-impl:
env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/cannon-impl .

cannon-embeds: cannon-impl
@cp bin/cannon-impl ./multicannon/embeds/cannon-0
@cp bin/cannon-impl ./multicannon/embeds/cannon-1

cannon: cannon-embeds
env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/cannon ./multicannon/

clean:
rm -rf bin

elf:
make -C ./testdata/example elf

sanitize-program:
@if ! { mips-linux-gnu-objdump -d -j .text $$GUEST_PROGRAM | awk '{print $3}' | grep -Ew -m1 '(bgezal|bltzal)'; }; then \
echo "guest program is sanitized for unsupported instructions"; \
else \
echo "found unsupported instructions in the guest program"; \
exit 1; \
fi

contract:
cd ../packages/contracts-bedrock && forge build

Expand Down
2 changes: 1 addition & 1 deletion cannon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ make cannon

# Transform MIPS op-program client binary into first VM state.
# This outputs state.json (VM state) and meta.json (for debug symbols).
./bin/cannon load-elf --path=../op-program/bin/op-program-client.elf
./bin/cannon load-elf --type singlethreaded --path=../op-program/bin/op-program-client.elf

# Run cannon emulator (with example inputs)
# Note that the server-mode op-program command is passed into cannon (after the --),
Expand Down
125 changes: 71 additions & 54 deletions cannon/cmd/load_elf.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,34 @@ import (
"debug/elf"
"fmt"

"github.com/ethereum-optimism/optimism/cannon/mipsevm"
"github.com/ethereum-optimism/optimism/cannon/mipsevm/multithreaded"
"github.com/urfave/cli/v2"

"github.com/ethereum-optimism/optimism/cannon/mipsevm"
"github.com/ethereum-optimism/optimism/cannon/mipsevm/multithreaded"
"github.com/ethereum-optimism/optimism/cannon/mipsevm/program"
"github.com/ethereum-optimism/optimism/cannon/mipsevm/singlethreaded"
"github.com/ethereum-optimism/optimism/cannon/mipsevm/versions"
"github.com/ethereum-optimism/optimism/cannon/serialize"
openum "github.com/ethereum-optimism/optimism/op-service/enum"
"github.com/ethereum-optimism/optimism/op-service/ioutil"
"github.com/ethereum-optimism/optimism/op-service/jsonutil"
)

var (
LoadELFVMTypeFlag = &cli.StringFlag{
Name: "type",
Usage: "VM type to create state for. Valid options: " + openum.EnumString(stateVersions()),
Required: true,
}
LoadELFPathFlag = &cli.PathFlag{
Name: "path",
Usage: "Path to 32-bit big-endian MIPS ELF file",
TakesFile: true,
Required: true,
}
LoadELFPatchFlag = &cli.StringSliceFlag{
Name: "patch",
Usage: "Type of patching to do",
Value: cli.NewStringSlice("go", "stack"),
Required: false,
}
LoadELFOutFlag = &cli.PathFlag{
Name: "out",
Usage: "Output path to write JSON state to. State is dumped to stdout if set to -. Not written if empty.",
Usage: "Output path to write state to. State is dumped to stdout if set to '-'. Not written if empty. Use file extension '.bin', '.bin.gz', or '.json' for binary, compressed binary, or JSON formats.",
Value: "state.json",
Required: false,
}
Expand All @@ -40,74 +43,88 @@ var (
}
)

func stateVersions() []string {
vers := make([]string, len(versions.StateVersionTypes))
for i, v := range versions.StateVersionTypes {
vers[i] = v.String()
}
return vers
}

func LoadELF(ctx *cli.Context) error {
elfPath := ctx.Path(LoadELFPathFlag.Name)
elfProgram, err := elf.Open(elfPath)
if err != nil {
return fmt.Errorf("failed to open ELF file %q: %w", elfPath, err)
}
if elfProgram.Machine != elf.EM_MIPS {
return fmt.Errorf("ELF is not big-endian MIPS R3000, but got %q", elfProgram.Machine.String())
}

var createInitialState func(f *elf.File) (mipsevm.FPVMState, error)
var writeState func(path string, state mipsevm.FPVMState) error

if vmType, err := vmTypeFromString(ctx); err != nil {
var patcher = program.PatchStack
ver, err := versions.ParseStateVersion(ctx.String(LoadELFVMTypeFlag.Name))
if err != nil {
return err
} else if vmType == cannonVMType {
}
switch ver {
case versions.VersionSingleThreaded:
createInitialState = func(f *elf.File) (mipsevm.FPVMState, error) {
return program.LoadELF(f, singlethreaded.CreateInitialState)
}
writeState = func(path string, state mipsevm.FPVMState) error {
return jsonutil.WriteJSON[*singlethreaded.State](path, state.(*singlethreaded.State), OutFilePerm)
patcher = func(state mipsevm.FPVMState) error {
err := program.PatchGoGC(elfProgram, state)
if err != nil {
return err
}
return program.PatchStack(state)
}
} else if vmType == mtVMType {
case versions.VersionMultiThreaded:
createInitialState = func(f *elf.File) (mipsevm.FPVMState, error) {
return program.LoadELF(f, multithreaded.CreateInitialState)
}
writeState = func(path string, state mipsevm.FPVMState) error {
return jsonutil.WriteJSON[*multithreaded.State](path, state.(*multithreaded.State), OutFilePerm)
}
} else {
return fmt.Errorf("invalid VM type: %q", vmType)
}
elfPath := ctx.Path(LoadELFPathFlag.Name)
elfProgram, err := elf.Open(elfPath)
if err != nil {
return fmt.Errorf("failed to open ELF file %q: %w", elfPath, err)
}
if elfProgram.Machine != elf.EM_MIPS {
return fmt.Errorf("ELF is not big-endian MIPS R3000, but got %q", elfProgram.Machine.String())
default:
return fmt.Errorf("unsupported state version: %d (%s)", ver, ver.String())
}

state, err := createInitialState(elfProgram)
if err != nil {
return fmt.Errorf("failed to load ELF data into VM state: %w", err)
}
for _, typ := range ctx.StringSlice(LoadELFPatchFlag.Name) {
switch typ {
case "stack":
err = program.PatchStack(state)
case "go":
err = program.PatchGo(elfProgram, state)
default:
return fmt.Errorf("unrecognized form of patching: %q", typ)
}
if err != nil {
return fmt.Errorf("failed to apply patch %s: %w", typ, err)
}
err = patcher(state)
if err != nil {
return fmt.Errorf("failed to patch state: %w", err)
}
meta, err := program.MakeMetadata(elfProgram)
if err != nil {
return fmt.Errorf("failed to compute program metadata: %w", err)
}
if err := jsonutil.WriteJSON[*program.Metadata](ctx.Path(LoadELFMetaFlag.Name), meta, OutFilePerm); err != nil {
if err := jsonutil.WriteJSON[*program.Metadata](meta, ioutil.ToStdOutOrFileOrNoop(ctx.Path(LoadELFMetaFlag.Name), OutFilePerm)); err != nil {
return fmt.Errorf("failed to output metadata: %w", err)
}
return writeState(ctx.Path(LoadELFOutFlag.Name), state)

// Ensure the state is written with appropriate version information
versionedState, err := versions.NewFromState(state)
if err != nil {
return fmt.Errorf("failed to create versioned state: %w", err)
}
return serialize.Write(ctx.Path(LoadELFOutFlag.Name), versionedState, OutFilePerm)
}

var LoadELFCommand = &cli.Command{
Name: "load-elf",
Usage: "Load ELF file into Cannon JSON state",
Description: "Load ELF file into Cannon JSON state, optionally patch out functions",
Action: LoadELF,
Flags: []cli.Flag{
VMTypeFlag,
LoadELFPathFlag,
LoadELFPatchFlag,
LoadELFOutFlag,
LoadELFMetaFlag,
},
func CreateLoadELFCommand(action cli.ActionFunc) *cli.Command {
return &cli.Command{
Name: "load-elf",
Usage: "Load ELF file into Cannon state",
Description: "Load ELF file into Cannon state",
Action: action,
Flags: []cli.Flag{
LoadELFVMTypeFlag,
LoadELFPathFlag,
LoadELFOutFlag,
LoadELFMetaFlag,
},
}
}

var LoadELFCommand = CreateLoadELFCommand(LoadELF)
Loading