Skip to content
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b0a5450
maint(ct): simplify test helpers (#2523)
smartcontracts May 13, 2022
f9c5e52
chore(deps): bump cross-fetch from 2.2.5 to 2.2.6 (#2539)
dependabot[bot] May 16, 2022
1b7e41f
Bedrock -> Develop (#2563)
mslipper May 16, 2022
f7d964d
feat: add new contracts-periphery package (#2536)
smartcontracts May 16, 2022
ad6b5de
contracts: fix `L2CrossDomainMessenger` api (#2567)
tynes May 16, 2022
a655fea
op-bindings: bedrock go bindings (#2571)
protolambda May 17, 2022
5b402fb
mirror p2p-discover specs work (#2570)
protolambda May 17, 2022
10e0775
ci: Add abigen to builders (#2572)
mslipper May 17, 2022
6c08776
contracts: Add setL1BlockValues gas test (#2576)
trianglesphere May 18, 2022
f688a63
integration-tests: Override the default bridge adapters (#2574)
Inphi May 18, 2022
888a0f4
contracts: add `GasPriceOracle` contract (#2566)
tynes May 18, 2022
8c7baa1
go: Update contract bindings (#2579)
trianglesphere May 18, 2022
6b7ff0b
feat: bedrock predeploys (#2580)
tynes May 18, 2022
8f29406
bedrock: op node testnet fixes (#2587)
protolambda May 18, 2022
405f59d
feat(op-node/p2p): resolve advertised hostname to ip for convenience …
protolambda May 19, 2022
f65d508
chore(bedrock): update bedrock ref geth version across all modules (#…
protolambda May 19, 2022
3bfd76f
doc: fix OP logo on README.md (#2592)
snario May 19, 2022
dd29c40
Fix specs title typo (#2586)
protolambda May 19, 2022
2d3216c
feat(ops-bedrock): fix devnet setup (#2584)
protolambda May 19, 2022
ce3503a
bedrock-contracts: fix hardhat build
tynes May 21, 2022
262b0db
Fix: make build for Apple Silicon (#2550)
DanieleSalatti May 23, 2022
d518bb5
Merge branch 'develop' into fix/hardhat-build
mergify[bot] May 23, 2022
edb8002
Merge pull request #2595 from ethereum-optimism/fix/hardhat-build
tynes May 23, 2022
f7fe194
bindings: Notify users if builds deps are not found (#2599)
trianglesphere May 23, 2022
a2701cf
batcher,proposer: Add gitignore (#2600)
trianglesphere May 24, 2022
1c269e8
Update go.work.sum (#2602)
trianglesphere May 24, 2022
81cfd3d
make: Add go mod tidy command (#2603)
trianglesphere May 24, 2022
d18ae13
fix: update ethers deps
smartcontracts May 25, 2022
df03ef3
Merge pull request #2616 from ethereum-optimism/sc/update-ethers
smartcontracts May 26, 2022
36cbfbf
Use net.JoinHostPort instead of fmt.Sprintf (#2622)
trianglesphere May 26, 2022
f16383f
fix(cmn): legacy metrics binds to 0.0.0.0 (#2620)
smartcontracts May 26, 2022
7105807
Use ticker instead of time.After in select loop (#2621)
trianglesphere May 26, 2022
baf1046
chore(deps): bump github.com/ethereum/go-ethereum in /l2geth-exporter…
dependabot[bot] May 26, 2022
7d49ef0
chore(deps): bump github.com/ethereum/go-ethereum in /indexer (#2611)
dependabot[bot] May 26, 2022
5617716
chore(deps): bump github.com/ethereum/go-ethereum in /gas-oracle (#2608)
dependabot[bot] May 26, 2022
622644f
chore(deps): bump github.com/ethereum/go-ethereum in /proxyd (#2607)
dependabot[bot] May 26, 2022
d116453
chore(deps): bump github.com/ethereum/go-ethereum in /bss-core (#2609)
dependabot[bot] May 26, 2022
6f45860
deps: bump go-ethereum to 1.10.17
tynes May 27, 2022
7317e2b
docker: bump go/js builder images (#2625)
tynes May 27, 2022
ef7758a
fix(itb): bump internal deps (#2623)
smartcontracts May 27, 2022
0c1c4fb
chore(deps): bump github.com/ethereum/go-ethereum in /teleportr (#2612)
dependabot[bot] May 27, 2022
dfab86f
Merge pull request #2626 from ethereum-optimism/deps/geth-bump
tynes May 27, 2022
2171f58
fix: op-exporter build
tynes May 31, 2022
cd15c40
teleportr: Limit to 10 confirmed deposits (#2637)
mslipper May 31, 2022
50d2b10
op-node: Adjust L1 Info Transaction Gas Parameters (#2582)
trianglesphere May 31, 2022
553180e
dtl: fix race condition (#2646)
tynes Jun 1, 2022
359bc60
fix(l2geth): L1 sync error recovery logic (#2647)
smartcontracts Jun 1, 2022
e00fe3e
ci: fix batch-submitter docker build (#2634)
tynes Jun 1, 2022
3e5d784
fix: l2geth-exporter docker build (#2633)
tynes Jun 1, 2022
ce88e33
Create flat-vans-brush.md
tynes Jun 1, 2022
3c7f3be
Merge pull request #2632 from ethereum-optimism/fix/op-exporter
tynes Jun 1, 2022
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
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .changeset/curvy-bottles-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@eth-optimism/go-builder': patch
'@eth-optimism/js-builder': patch
---

Bump versions
5 changes: 5 additions & 0 deletions .changeset/cyan-ravens-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/common-ts': patch
---

Have legacy BaseService metrics bind to 0.0.0.0 by default
5 changes: 5 additions & 0 deletions .changeset/empty-clouds-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/integration-tests-bedrock': patch
---

Bump integration test dependencies to latest for changesets
5 changes: 5 additions & 0 deletions .changeset/few-cameras-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts-periphery': minor
---

Releases the first version of the contracts-periphery package
5 changes: 5 additions & 0 deletions .changeset/five-pets-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/js-builder': patch
---

Add abigen
10 changes: 10 additions & 0 deletions .changeset/gentle-mugs-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@eth-optimism/batch-submitter-service': patch
'@eth-optimism/gas-oracle': patch
'@eth-optimism/indexer': patch
'@eth-optimism/l2geth-exporter': patch
'@eth-optimism/proxyd': patch
'@eth-optimism/teleportr': patch
---

Bump go-ethereum to 1.10.17
5 changes: 5 additions & 0 deletions .changeset/giant-eels-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/integration-tests': patch
---

integration-tests: Override default bridge adapters
5 changes: 5 additions & 0 deletions .changeset/itchy-walls-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/go-builder': patch
---

Add abigen and gotestsum to go-builder
15 changes: 15 additions & 0 deletions .changeset/quick-ties-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@eth-optimism/integration-tests': patch
'@eth-optimism/common-ts': patch
'@eth-optimism/contracts': patch
'@eth-optimism/contracts-periphery': patch
'@eth-optimism/core-utils': patch
'@eth-optimism/data-transport-layer': patch
'@eth-optimism/fault-detector': patch
'@eth-optimism/integration-tests-bedrock': patch
'@eth-optimism/message-relayer': patch
'@eth-optimism/replica-healthcheck': patch
'@eth-optimism/sdk': patch
---

Updates all ethers versions in response to BN.js bug
187 changes: 187 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: 2.1

orbs:
node: circleci/node@5.0.2

executors:
go-builder:
docker:
Expand Down Expand Up @@ -84,6 +87,7 @@ jobs:
- node_modules
- packages/common-ts/node_modules
- packages/contracts/node_modules
- packages/contracts-periphery/node_modules
- packages/core-utils/node_modules
- packages/data-transport-layer/node_modules
- packages/fault-detector/node_modules
Expand Down Expand Up @@ -138,6 +142,24 @@ jobs:
command: yarn test:coverage
working_directory: packages/contracts

contracts-periphery-tests:
docker:
- image: ethereumoptimism/js-builder:latest
resource_class: xlarge
steps:
- restore_cache:
keys:
- v2-cache-yarn-build-{{ .Revision }}
- checkout
- run:
name: Lint
command: yarn lint:check
working_directory: packages/contracts-periphery
- run:
name: Test
command: yarn test:coverage
working_directory: packages/contracts-periphery

dtl-tests:
docker:
- image: ethereumoptimism/js-builder:latest
Expand Down Expand Up @@ -175,6 +197,10 @@ jobs:
name: Check contracts
command: npx depcheck
working_directory: packages/contracts
- run:
name: Check contracts-periphery
command: npx depcheck
working_directory: packages/contracts-periphery
- run:
name: Check core-utils
command: npx depcheck
Expand Down Expand Up @@ -307,10 +333,168 @@ jobs:
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push <<parameters.docker_tags>>

bedrock-markdown:
machine:
image: ubuntu-2004:202111-02
steps:
- checkout
- run:
name: markdown lint
command: |
docker run -v `pwd`:/workdir davidanson/markdownlint-cli2:0.4.0 "op-node/README.md" "./specs/**/*.md" "#**/node_modules"
- run:
name: link lint
command: |
docker run --init -it -v `pwd`:/input lycheeverse/lychee --verbose --no-progress --exclude-loopback --exclude twitter.com --exclude-mail /input/README.md "/input/specs/**/*.md" "/input/meta/**/*.md" "/input/op-node/**/*.md" || exit 0

bedrock-solidity:
docker:
- image: ethereumoptimism/js-builder:0.0.4
steps:
- checkout
- run:
name: init submodules
command: |
git submodule sync --recursive
git submodule update --recursive --init
- run:
name: install
command: yarn install
working_directory: contracts-bedrock
- run:
name: lint
command: |
# remove prettierrc in root of repo since it doesn't work with non-Lerna packages
mv ../.eslintrc.js ../.eslintrc.bak
yarn lint:check
mv ../.eslintrc.bak ../.eslintrc.js
working_directory: contracts-bedrock
- run:
name: slither
command: yarn slither || exit 0
working_directory: contracts-bedrock
- run:
name: build forge
command: yarn build:forge
working_directory: contracts-bedrock
- run:
name: test forge
command: yarn test:forge
working_directory: contracts-bedrock
- run:
name: gas snapshot
command: forge snapshot
working_directory: contracts-bedrock
- run:
name: check go bindings
command: |
make && git diff --exit-code
working_directory: op-bindings

bedrock-go-tests:
docker:
- image: ethereumoptimism/go-builder:latest
steps:
- checkout
- run:
name: lint op-bindings
command: |
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell ./...
working_directory: op-bindings
- run:
name: lint op-node
command: |
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell ./...
working_directory: op-node
- run:
name: lint op-proposer
command: |
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell ./...
working_directory: op-proposer
- run:
name: lint op-batcher
command: |
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell ./...
working_directory: op-batcher
- run:
name: lint op-e2e
command: |
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell ./...
working_directory: op-e2e
- run:
name: prep results dir
command: mkdir -p /test-results
- run:
name: test op-node
command: |
gotestsum --junitfile /test-results/op-node.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
working_directory: op-node
- run:
name: test op-proposer
command: |
gotestsum --junitfile /test-results/op-proposer.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
working_directory: op-proposer
- run:
name: test op-batcher
command: |
gotestsum --junitfile /test-results/op-batcher.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
working_directory: op-batcher
- run:
name: test op-e2e
command: |
gotestsum --junitfile /test-results/op-e2e.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
working_directory: op-e2e
- store_test_results:
path: /test-results

fuzz-op-node:
docker:
- image: ethereumoptimism/go-builder:latest
steps:
- checkout
- run:
name: Fuzz
command: make fuzz
working_directory: op-node

bedrock-integration-tests:
machine:
image: ubuntu-2004:202111-02
docker_layer_caching: true
steps:
- checkout
- run:
name: init submodules
command: |
git submodule sync --recursive
git submodule update --recursive --init
- node/install:
install-yarn: true
node-version: '16.13'
- run:
name: install Foundry
command: |
curl -L https://foundry.paradigm.xyz | bash
source /home/circleci/.bashrc
foundryup
- run:
name: build typescript
command: make build-ts
- run:
name: start devnet
command: make devnet-up
- run:
name: run itests
command: make test-integration

workflows:
main:
jobs:
- yarn-monorepo
- bedrock-go-tests
- bedrock-solidity
- bedrock-markdown
- fuzz-op-node
- go-lint-test-build:
name: batch-submitter-tests
binary_name: batch-submitter
Expand All @@ -337,6 +521,9 @@ workflows:
- contracts-tests:
requires:
- yarn-monorepo
- contracts-periphery-tests:
requires:
- yarn-monorepo
- js-lint-test:
name: dtl-tests
package_name: data-transport-layer
Expand Down
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- 'ops/**/*'
- 'packages/batch-submitter/**/*'
- 'packages/contracts/**/*'
- 'packages/contracts-periphery/**/*'
- 'packages/data-transport-layer/**/*'
- 'packages/message-relayer/**/*'
- 'packages/fault-detector/**/*'
Expand All @@ -25,6 +26,9 @@ M-batch-submitter:
M-contracts:
- any: ['packages/contracts/**/*']

M-contracts-periphery:
- any: ['packages/contracts-periphery/**/*']

M-core-utils:
- any: ['packages/core-utils/**/*']

Expand Down
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ temp
coverage.json
*.tsbuildinfo

yarn-error.log

dist
artifacts
cache
Expand All @@ -16,13 +18,29 @@ packages/contracts/coverage*
packages/contracts/@ens*
packages/contracts/@openzeppelin*
packages/contracts/hardhat*
packages/contracts-periphery/coverage*
packages/contracts-periphery/@openzeppelin*
packages/contracts-periphery/hardhat*

packages/data-transport-layer/db

packages/integration-tests-bedrock/cache
packages/integration-tests-bedrock/artifacts

# vim
*.sw*

.env
.env*
!.env.example
*.log

.devnet

# Ignore local fuzzing results
**/testdata/fuzz/

coverage.out

# Ignore bedrock go bindings local output files
op-bindings/bin
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[submodule "tests"]
path = l2geth/tests/testdata
url = https://github.com/ethereum/tests
[submodule "packages/contracts-bedrock/lib/forge-std"]
path = contracts-bedrock/lib/forge-std
url = https://github.com/foundry-rs/forge-std.git
[submodule "packages/contracts-bedrock/lib/solmate"]
path = contracts-bedrock/lib/solmate
url = https://github.com/rari-capital/solmate.git
[submodule "packages/contracts-bedrock/lib/ds-test"]
path = contracts-bedrock/lib/ds-test
url = https://github.com/dapphub/ds-test.git
12 changes: 12 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"line_length": {
"line_length": 120,
"strict": false,
"stern": true,
"code_blocks": false,
"tables": false,
},
"no-blanks-blockquote": false,
"single-title": false,
"no-emphasis-as-heading": false,
}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
{"directory": "packages/core-utils", "changeProcessCWD": true },
{"directory": "packages/common-ts", "changeProcessCWD": true },
{"directory": "packages/contracts", "changeProcessCWD": true },
{"directory": "packages/contracts-periphery", "changeProcessCWD": true },
{"directory": "packages/data-transport-layer", "changeProcessCWD": true },
{"directory": "packages/batch-submitter", "changeProcessCWD": true },
{"directory": "packages/message-relayer", "changeProcessCWD": true },
Expand Down
Loading