Skip to content

Commit

Permalink
Merge branch 'ethereum-optimism:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kansas1295 authored Jun 7, 2024
2 parents f33b725 + 384e2dc commit 85bc442
Show file tree
Hide file tree
Showing 218 changed files with 6,779 additions and 12,838 deletions.
128 changes: 52 additions & 76 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ jobs:
FOUNDRY_PROFILE: ci
command: pnpm build
- run:
name: Generate FPAC allocs
command: DEVNET_FPAC="true" make devnet-allocs
name: Generate L2OO allocs
command: DEVNET_L2OO="true" make devnet-allocs
- run:
name: Copy FPAC allocs to .devnet-fpac
command: cp -r .devnet/ .devnet-fault-proofs/
name: Copy L2OO allocs to .devnet-l2oo
command: cp -r .devnet/ .devnet-l2oo/
- run:
name: Generate Plasma allocs
command: DEVNET_PLASMA="true" make devnet-allocs
Expand All @@ -231,7 +231,7 @@ jobs:
name: Copy Plasma allocs to .devnet-plasma
command: cp -r .devnet/ .devnet-plasma-generic/
- run:
name: Generate non-FPAC allocs
name: Generate default allocs
command: make devnet-allocs
- persist_to_workspace:
root: "."
Expand All @@ -247,11 +247,11 @@ jobs:
- ".devnet/allocs-l2-delta.json"
- ".devnet/allocs-l2-ecotone.json"
- ".devnet/addresses.json"
- ".devnet-fault-proofs/allocs-l1.json"
- ".devnet-fault-proofs/addresses.json"
- ".devnet-fault-proofs/allocs-l2.json"
- ".devnet-fault-proofs/allocs-l2-delta.json"
- ".devnet-fault-proofs/allocs-l2-ecotone.json"
- ".devnet-l2oo/allocs-l1.json"
- ".devnet-l2oo/addresses.json"
- ".devnet-l2oo/allocs-l2.json"
- ".devnet-l2oo/allocs-l2-delta.json"
- ".devnet-l2oo/allocs-l2-ecotone.json"
- ".devnet-plasma/allocs-l1.json"
- ".devnet-plasma/addresses.json"
- ".devnet-plasma/allocs-l2.json"
Expand Down Expand Up @@ -936,7 +936,7 @@ jobs:

go-e2e-test:
parameters:
fpac:
variant:
type: string
default: ''
module:
Expand All @@ -958,8 +958,8 @@ jobs:
type: string
default: ""
environment:
DEVNET_FPAC: 'false'
OP_E2E_USE_FPAC: 'false'
DEVNET_L2OO: 'false'
OP_E2E_USE_L2OO: 'false'
docker:
- image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge
Expand All @@ -968,17 +968,17 @@ jobs:
- checkout
- when:
condition:
equal: ['-fault-proofs', <<parameters.fpac>>]
equal: ['-l2oo', <<parameters.variant>>]
steps:
- run:
name: Set DEVNET_FPAC = true
command: echo 'export DEVNET_FPAC=true' >> $BASH_ENV
name: Set DEVNET_L2OO = true
command: echo 'export DEVNET_L2OO=true' >> $BASH_ENV
- run:
name: Set OP_E2E_USE_FPAC = true
command: echo 'export OP_E2E_USE_FPAC=true' >> $BASH_ENV
name: Set OP_E2E_USE_L2OO = true
command: echo 'export OP_E2E_USE_L2OO=true' >> $BASH_ENV
- when:
condition:
equal: ['-plasma', <<parameters.fpac>>]
equal: ['-plasma', <<parameters.variant>>]
steps:
- run:
name: Set OP_E2E_USE_PLASMA = true
Expand All @@ -1000,11 +1000,11 @@ jobs:
name: Load devnet-allocs
command: |
mkdir -p .devnet
cp /tmp/workspace/.devnet<<parameters.fpac>>/allocs-l2.json .devnet/allocs-l2.json
cp /tmp/workspace/.devnet<<parameters.fpac>>/allocs-l2-delta.json .devnet/allocs-l2-delta.json
cp /tmp/workspace/.devnet<<parameters.fpac>>/allocs-l2-ecotone.json .devnet/allocs-l2-ecotone.json
cp /tmp/workspace/.devnet<<parameters.fpac>>/allocs-l1.json .devnet/allocs-l1.json
cp /tmp/workspace/.devnet<<parameters.fpac>>/addresses.json .devnet/addresses.json
cp /tmp/workspace/.devnet<<parameters.variant>>/allocs-l2.json .devnet/allocs-l2.json
cp /tmp/workspace/.devnet<<parameters.variant>>/allocs-l2-delta.json .devnet/allocs-l2-delta.json
cp /tmp/workspace/.devnet<<parameters.variant>>/allocs-l2-ecotone.json .devnet/allocs-l2-ecotone.json
cp /tmp/workspace/.devnet<<parameters.variant>>/allocs-l1.json .devnet/allocs-l1.json
cp /tmp/workspace/.devnet<<parameters.variant>>/addresses.json .devnet/addresses.json
cp /tmp/workspace/packages/contracts-bedrock/deploy-config/devnetL1.json packages/contracts-bedrock/deploy-config/devnetL1.json
cp -r /tmp/workspace/packages/contracts-bedrock/deployments/devnetL1 packages/contracts-bedrock/deployments/devnetL1
- run:
Expand All @@ -1027,6 +1027,9 @@ jobs:
- store_artifacts:
path: /testlogs
when: always
- store_artifacts:
path: /tmp/test-results
when: always
- store_test_results:
path: /tmp/test-results
- when:
Expand Down Expand Up @@ -1084,12 +1087,12 @@ jobs:

indexer-tests:
parameters:
fpac:
variant:
type: string
default: ''
environment:
DEVNET_FPAC: 'false'
OP_E2E_USE_FPAC: 'false'
DEVNET_L2OO: 'false'
OP_E2E_USE_L2OO: 'false'
docker:
- image: <<pipeline.parameters.ci_builder_image>>
- image: cimg/postgres:14.1
Expand All @@ -1098,14 +1101,14 @@ jobs:
- checkout
- when:
condition:
equal: ['fault-proofs', <<parameters.fpac>>]
equal: ['l2oo', <<parameters.variant>>]
steps:
- run:
name: Set DEVNET_FPAC = true
command: echo 'export DEVNET_FPAC=true' >> $BASH_ENV
name: Set DEVNET_L2OO = true
command: echo 'export DEVNET_L2OO=true' >> $BASH_ENV
- run:
name: Set OP_E2E_USE_FPAC = true
command: echo 'export OP_E2E_USE_FPAC=true' >> $BASH_ENV
name: Set OP_E2E_USE_L2OO = true
command: echo 'export OP_E2E_USE_L2OO=true' >> $BASH_ENV
- check-changed:
patterns: indexer
- run:
Expand Down Expand Up @@ -1257,33 +1260,33 @@ jobs:
machine:
image: <<pipeline.parameters.base_image>>
parameters:
fpac:
variant:
type: string
environment:
DOCKER_BUILDKIT: 1
DEVNET_NO_BUILD: 'true'
# Default value; Can be overridden.
DEVNET_FPAC: 'false'
DEVNET_L2OO: 'false'
DEVNET_PLASMA: 'false'
steps:
- checkout
- when:
condition:
equal: ['fault-proofs', <<parameters.fpac>>]
equal: ['l2oo', <<parameters.variant>>]
steps:
- run:
name: Set DEVNET_FPAC = true
command: echo 'export DEVNET_FPAC=true' >> $BASH_ENV
name: Set DEVNET_L2OO = true
command: echo 'export DEVNET_L2OO=true' >> $BASH_ENV
- when:
condition:
equal: ['plasma', <<parameters.fpac>>]
equal: ['plasma', <<parameters.variant>>]
steps:
- run:
name: Set DEVNET_PLASMA = true
command: echo 'export DEVNET_PLASMA=true' >> $BASH_ENV
- when:
condition:
equal: ['plasma-generic', <<parameters.fpac>>]
equal: ['plasma-generic', <<parameters.variant>>]
steps:
- run:
name: Set DEVNET_PLASMA = true
Expand Down Expand Up @@ -1341,11 +1344,11 @@ jobs:
- when:
condition:
not:
equal: ['legacy', <<parameters.fpac>>]
equal: ['default', <<parameters.variant>>]
steps:
- run:
name: Use non-legacy devnet allocs
command: rm -r .devnet && mv .devnet-<<parameters.fpac>> .devnet
name: Use non-default devnet allocs
command: rm -r .devnet && mv .devnet-<<parameters.variant>> .devnet
- run:
name: Load and tag docker images
command: |
Expand Down Expand Up @@ -1700,10 +1703,10 @@ workflows:
binary_name: proxyd
working_directory: proxyd
- indexer-tests:
name: indexer-tests<< matrix.fpac >>
name: indexer-tests<< matrix.variant >>
matrix:
parameters:
fpac: ["", "-fault-proofs"]
variant: ["", "-l2oo"]
- semgrep-scan
- go-mod-download
- fuzz-golang:
Expand Down Expand Up @@ -1779,21 +1782,21 @@ workflows:
module: op-service
requires: ["go-mod-download"]
- go-e2e-test:
name: op-e2e-HTTP-tests<< matrix.fpac >>
name: op-e2e-HTTP-tests<< matrix.variant >>
matrix:
parameters:
fpac: ["", "-fault-proofs"]
variant: ["", "-l2oo"]
module: op-e2e
target: test-http
parallelism: 4
requires:
- go-mod-download
- pnpm-monorepo
- go-e2e-test:
name: op-e2e-action-tests<< matrix.fpac >>
name: op-e2e-action-tests<< matrix.variant >>
matrix:
parameters:
fpac: ["", "-fault-proofs", "-plasma"]
variant: ["", "-l2oo", "-plasma"]
module: op-e2e
target: test-actions
parallelism: 1
Expand Down Expand Up @@ -1888,7 +1891,7 @@ workflows:
- devnet:
matrix:
parameters:
fpac: ["legacy", "fault-proofs", "plasma", "plasma-generic"]
variant: ["default", "l2oo", "plasma", "plasma-generic"]
requires:
- pnpm-monorepo
- op-batcher-docker-build
Expand All @@ -1901,10 +1904,6 @@ workflows:
name: indexer-docker-build
docker_name: indexer
docker_tags: <<pipeline.git.revision>>,<<pipeline.git.branch>>
- docker-build:
name: ufm-metamask-docker-build
docker_name: ufm-metamask
docker_tags: <<pipeline.git.revision>>,<<pipeline.git.branch>>
- check-generated-mocks-op-node
- check-generated-mocks-op-service
- cannon-go-lint-and-test:
Expand Down Expand Up @@ -2183,21 +2182,6 @@ workflows:
- oplabs-gcr
requires:
- hold
- docker-build:
name: ufm-metamask-docker-release
filters:
tags:
only: /^ufm-metamask\/v.*/
branches:
ignore: /.*/
docker_name: ufm-metamask
docker_tags: <<pipeline.git.revision>>,latest
publish: true
release: true
context:
- oplabs-gcr
requires:
- hold

scheduled-todo-issues:
when:
Expand Down Expand Up @@ -2384,14 +2368,6 @@ workflows:
context:
- oplabs-gcr
- slack
- docker-build:
name: ufm-metamask-docker-publish
docker_name: ufm-metamask
docker_tags: <<pipeline.git.revision>>,<<pipeline.git.branch>>
publish: true
context:
- oplabs-gcr
- slack

scheduled-preimage-reproducibility:
when:
Expand Down
13 changes: 13 additions & 0 deletions .envrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ export GS_PROPOSER_PRIVATE_KEY=
export GS_SEQUENCER_ADDRESS=
export GS_SEQUENCER_PRIVATE_KEY=


##################################################
# Chain Information #
##################################################

# L1 chain information
export L1_CHAIN_ID=11155111
export L1_BLOCK_TIME=12

# L2 chain information
export L2_CHAIN_ID=42069
export L2_BLOCK_TIME=2

##################################################
# op-node Configuration #
##################################################
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tag-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ on:
- op-ufm
- da-server
- proxyd
- ufm-metamask
- op-contracts
- op-conductor
prerelease:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
[submodule "packages/contracts-bedrock/lib/lib-keccak"]
path = packages/contracts-bedrock/lib/lib-keccak
url = https://github.com/ethereum-optimism/lib-keccak
[submodule "packages/contracts-bedrock/lib/automate"]
path = packages/contracts-bedrock/lib/automate
url = https://github.com/gelatodigital/automate
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ The Optimism Immunefi program offers up to $2,000,042 for in-scope critical vuln
│ ├── <a href="./packages/sdk">sdk</a>: provides a set of tools for interacting with Optimism
├── <a href="./proxyd">proxyd</a>: Configurable RPC request router and proxy
├── <a href="./specs">specs</a>: Specs of the rollup starting at the Bedrock upgrade
└── <a href="./ufm-test-services">ufm-test-services</a>: Runs a set of tasks to generate metrics
</pre>

## Development and Release Process
Expand Down Expand Up @@ -127,7 +126,6 @@ The full set of components that have releases are:
- `op-proposer`
- `op-ufm`
- `proxyd`
- `ufm-metamask`

All other components and packages should be considered development components only and do not have releases.

Expand Down
Loading

0 comments on commit 85bc442

Please sign in to comment.