Commit b4fa4c75 authored by Ethen Pociask's avatar Ethen Pociask

Merge branch 'develop' of https://github.com/epociask/optimism into...

Merge branch 'develop' of https://github.com/epociask/optimism into indexer.withdrawal_type_supplies
parents 0cb0810b 98874a3f
version: 2.1 version: 2.1
parameters:
ci_builder_image:
type: string
default: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
orbs: orbs:
go: circleci/go@1.8.0 go: circleci/go@1.8.0
gcp-cli: circleci/gcp-cli@3.0.1 gcp-cli: circleci/gcp-cli@3.0.1
...@@ -74,7 +79,7 @@ commands: ...@@ -74,7 +79,7 @@ commands:
jobs: jobs:
cannon-go-lint-and-test: cannon-go-lint-and-test:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: medium
steps: steps:
- checkout - checkout
...@@ -105,7 +110,7 @@ jobs: ...@@ -105,7 +110,7 @@ jobs:
path: /tmp/test-results path: /tmp/test-results
cannon-build-test-vectors: cannon-build-test-vectors:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: medium
steps: steps:
- checkout - checkout
...@@ -118,7 +123,7 @@ jobs: ...@@ -118,7 +123,7 @@ jobs:
pnpm-monorepo: pnpm-monorepo:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -308,7 +313,7 @@ jobs: ...@@ -308,7 +313,7 @@ jobs:
contracts-bedrock-coverage: contracts-bedrock-coverage:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -333,7 +338,7 @@ jobs: ...@@ -333,7 +338,7 @@ jobs:
contracts-bedrock-tests: contracts-bedrock-tests:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -353,7 +358,7 @@ jobs: ...@@ -353,7 +358,7 @@ jobs:
contracts-bedrock-checks: contracts-bedrock-checks:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -440,7 +445,7 @@ jobs: ...@@ -440,7 +445,7 @@ jobs:
contracts-bedrock-slither: contracts-bedrock-slither:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -453,7 +458,7 @@ jobs: ...@@ -453,7 +458,7 @@ jobs:
contracts-bedrock-validate-spaces: contracts-bedrock-validate-spaces:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: medium
steps: steps:
- checkout - checkout
...@@ -474,7 +479,7 @@ jobs: ...@@ -474,7 +479,7 @@ jobs:
op-bindings-build: op-bindings-build:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -496,8 +501,8 @@ jobs: ...@@ -496,8 +501,8 @@ jobs:
description: Coverage flag name description: Coverage flag name
type: string type: string
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: large
steps: steps:
- checkout - checkout
- attach_workspace: { at: "." } - attach_workspace: { at: "." }
...@@ -525,7 +530,7 @@ jobs: ...@@ -525,7 +530,7 @@ jobs:
contracts-ts-tests: contracts-ts-tests:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: medium
steps: steps:
- checkout - checkout
...@@ -547,7 +552,7 @@ jobs: ...@@ -547,7 +552,7 @@ jobs:
sdk-next-tests: sdk-next-tests:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: medium
steps: steps:
- checkout - checkout
...@@ -666,7 +671,7 @@ jobs: ...@@ -666,7 +671,7 @@ jobs:
description: changed pattern to fire fuzzer on description: changed pattern to fire fuzzer on
type: string type: string
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- check-changed: - check-changed:
...@@ -688,7 +693,7 @@ jobs: ...@@ -688,7 +693,7 @@ jobs:
depcheck: depcheck:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- attach_workspace: { at: "." } - attach_workspace: { at: "." }
...@@ -713,7 +718,7 @@ jobs: ...@@ -713,7 +718,7 @@ jobs:
l1-geth-version-check: l1-geth-version-check:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- run: - run:
...@@ -722,7 +727,7 @@ jobs: ...@@ -722,7 +727,7 @@ jobs:
go-lint: go-lint:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
...@@ -754,7 +759,7 @@ jobs: ...@@ -754,7 +759,7 @@ jobs:
description: Go Module Name description: Go Module Name
type: string type: string
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest # only used to enable codecov. - image: <<pipeline.parameters.ci_builder_image>> # only used to enable codecov.
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -798,7 +803,7 @@ jobs: ...@@ -798,7 +803,7 @@ jobs:
default: true default: true
type: boolean type: boolean
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
# Note: Tests are split between runs manually. # Note: Tests are split between runs manually.
# Tests default to run on the first executor but can be moved to the second with: # Tests default to run on the first executor but can be moved to the second with:
...@@ -854,7 +859,7 @@ jobs: ...@@ -854,7 +859,7 @@ jobs:
type: string type: string
default: this-package-does-not-exist default: this-package-does-not-exist
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- check-changed: - check-changed:
...@@ -882,7 +887,7 @@ jobs: ...@@ -882,7 +887,7 @@ jobs:
indexer-tests: indexer-tests:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
- image: cimg/postgres:14.1 - image: cimg/postgres:14.1
resource_class: xlarge resource_class: xlarge
steps: steps:
...@@ -929,7 +934,7 @@ jobs: ...@@ -929,7 +934,7 @@ jobs:
cannon-prestate: cannon-prestate:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
...@@ -959,7 +964,7 @@ jobs: ...@@ -959,7 +964,7 @@ jobs:
devnet-allocs: devnet-allocs:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -1151,7 +1156,7 @@ jobs: ...@@ -1151,7 +1156,7 @@ jobs:
go-mod-download: go-mod-download:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
parameters: parameters:
file: file:
default: go.sum default: go.sum
...@@ -1180,7 +1185,7 @@ jobs: ...@@ -1180,7 +1185,7 @@ jobs:
go-mod-tidy: go-mod-tidy:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
...@@ -1192,7 +1197,7 @@ jobs: ...@@ -1192,7 +1197,7 @@ jobs:
bedrock-go-tests: # just a helper, that depends on all the actual test jobs bedrock-go-tests: # just a helper, that depends on all the actual test jobs
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
resource_class: medium resource_class: medium
steps: steps:
- run: echo Done - run: echo Done
...@@ -1211,7 +1216,7 @@ jobs: ...@@ -1211,7 +1216,7 @@ jobs:
op-program-compat: op-program-compat:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
...@@ -1227,7 +1232,7 @@ jobs: ...@@ -1227,7 +1232,7 @@ jobs:
check-generated-mocks-op-node: check-generated-mocks-op-node:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- check-changed: - check-changed:
...@@ -1238,7 +1243,7 @@ jobs: ...@@ -1238,7 +1243,7 @@ jobs:
check-generated-mocks-op-service: check-generated-mocks-op-service:
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- check-changed: - check-changed:
...@@ -1262,7 +1267,7 @@ jobs: ...@@ -1262,7 +1267,7 @@ jobs:
type: string type: string
default: "" default: ""
docker: docker:
- image: us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest - image: <<pipeline.parameters.ci_builder_image>>
steps: steps:
- checkout - checkout
- run: - run:
......
...@@ -40,11 +40,7 @@ golang-docker: ...@@ -40,11 +40,7 @@ golang-docker:
.PHONY: golang-docker .PHONY: golang-docker
submodules: submodules:
# CI will checkout submodules on its own (and fails on these commands) git submodule update --init --recursive
if [ -z "$$GITHUB_ENV" ]; then \
git submodule init; \
git submodule update --recursive; \
fi
.PHONY: submodules .PHONY: submodules
op-bindings: op-bindings:
......
...@@ -63,6 +63,6 @@ done ...@@ -63,6 +63,6 @@ done
# Alphabet game claim construction: keccak256(abi.encode(trace_index, trace[trace_index])) # Alphabet game claim construction: keccak256(abi.encode(trace_index, trace[trace_index]))
ROOT_CLAIM=$(cast keccak $(cast abi-encode "f(uint256,uint256)" 15 122)) ROOT_CLAIM=$(cast keccak $(cast abi-encode "f(uint256,uint256)" 15 122))
# Replace the first byte of the claim with the invalid vm status indicator # Replace the first byte of the claim with the invalid vm status indicator
ROOT_CLAIM="0x01${ROOT_CLAIM:4:60}" ROOT_CLAIM="0x01${ROOT_CLAIM:4}"
GAME_TYPE=255 ${SOURCE_DIR}/../create_game.sh http://localhost:8545 "${DISPUTE_GAME_FACTORY}" "${ROOT_CLAIM}" --private-key "${DEVNET_SPONSOR}" GAME_TYPE=255 ${SOURCE_DIR}/../create_game.sh http://localhost:8545 "${DISPUTE_GAME_FACTORY}" "${ROOT_CLAIM}" --private-key "${DEVNET_SPONSOR}"
...@@ -27,7 +27,7 @@ BLOCK_ORACLE_ADDR=$(cast call --rpc-url "${RPC}" "${GAME_IMPL_ADDR}" 'BLOCK_ORAC ...@@ -27,7 +27,7 @@ BLOCK_ORACLE_ADDR=$(cast call --rpc-url "${RPC}" "${GAME_IMPL_ADDR}" 'BLOCK_ORAC
echo "Block Oracle: ${BLOCK_ORACLE_ADDR}" echo "Block Oracle: ${BLOCK_ORACLE_ADDR}"
# Get the L2 block number of the latest output proposal. This is the proposal that will be disputed by the created game. # Get the L2 block number of the latest output proposal. This is the proposal that will be disputed by the created game.
L2_BLOCK_NUM=$(cast call --rpc-url "${RPC}" "${L2OO_ADDR}" 'latestBlockNumber() public view returns (uint256)') L2_BLOCK_NUM=$(cast call --rpc-url "${RPC}" "${L2OO_ADDR}" 'latestBlockNumber() returns(uint256)')
echo "L2 Block Number: ${L2_BLOCK_NUM}" echo "L2 Block Number: ${L2_BLOCK_NUM}"
# Create a checkpoint in the block oracle to commit to the current L1 head. # Create a checkpoint in the block oracle to commit to the current L1 head.
......
...@@ -21,9 +21,10 @@ with additional rules. These are: ...@@ -21,9 +21,10 @@ with additional rules. These are:
We also have the following custom tags: We also have the following custom tags:
- `@custom:proxied`: Add to a contract whenever it's meant to live behind a proxy. - `@custom:proxied`: Add to a contract whenever it's meant to live behind a proxy.
- `@custom:upgradeable`: Add to a contract whenever it's meant to be used in an upgradeable contract. - `@custom:upgradeable`: Add to a contract whenever it's meant to be inherited by an upgradeable contract.
- `@custom:semver`: Add to a constructor to indicate the version of a contract. - `@custom:semver`: Add to `version` variable which indicate the contracts semver.
- `@custom:legacy`: Add to an event or function when it only exists for legacy support. - `@custom:legacy`: Add to an event or function when it only exists for legacy support.
- `@custom:network-specific`: Add to state variables which vary between OP Chains.
#### Errors #### Errors
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"lint": "pnpm lint:fix && pnpm lint:check" "lint": "pnpm lint:fix && pnpm lint:check"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.9.1", "@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.9.1", "@typescript-eslint/parser": "^6.9.1",
"tsx": "^3.14.0", "tsx": "^3.14.0",
"typescript": "^5.2.2" "typescript": "^5.2.2"
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"node-fetch": "^2.6.7" "node-fetch": "^2.6.7"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.8.9", "@types/node": "^20.9.0",
"mocha": "^10.2.0" "mocha": "^10.2.0"
} }
} }
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"@types/chai": "^4.3.8", "@types/chai": "^4.3.8",
"@types/chai-as-promised": "^7.1.5", "@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^10.0.4", "@types/mocha": "^10.0.4",
"@types/node": "^20.8.9", "@types/node": "^20.9.0",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"ethereum-waffle": "^4.0.10", "ethereum-waffle": "^4.0.10",
"ethers": "^5.7.2", "ethers": "^5.7.2",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment