Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8f85a10
test: enable auto start of docker-compose services in integration tests
snario Apr 29, 2021
5a1cd41
ci: remove unnecessary step in integration workflow
snario Apr 30, 2021
f5c29dd
refactor: use mocha globals for integration test docker setup
snario Apr 30, 2021
7e6f393
build: add --fail and --show-error to usage of curl for awaing servic…
snario Apr 30, 2021
7e38638
feat: add node_env to batch submitter (#678)
annieke Apr 30, 2021
f6df843
chore: use primary ovm-solc (#723)
ben-chain May 1, 2021
cc4b096
fix: ensure hardhat does not fail if no input sources provided (#688)
snario May 2, 2021
9bbe8be
build: make erc20 example private (#729)
snario May 3, 2021
b2724d3
build: add set -e to various bash scripts that we want to error loudl…
snario May 3, 2021
5622660
Dockerize Integration Tests (#670)
gakonst May 3, 2021
d32d915
fix(hh-ovm): defaults to 0 gasPrice if none provided (#734)
gakonst May 3, 2021
20df745
l2geth: docall protect nil block (#736)
tynes May 3, 2021
56f7397
ci: use correct service name when building integration tests (#737)
gakonst May 4, 2021
9f1529c
l2geth: more flexible start script (#743)
tynes May 4, 2021
47e40a2
fix: dtl config parsing (#744)
tynes May 4, 2021
ae1ac05
fix(contracts): restrict visibilities to external
maurelian May 4, 2021
12dbd81
feat[batch-submitter]: add metrics (#722)
annieke May 4, 2021
ea4f01c
chore(contracts): generate test coverage in CI
maurelian Mar 24, 2021
90cd0b2
fix: remove hardcoded gasLimit (#754)
platocrat May 5, 2021
daf975f
fix(hh-ovm): Working builds for M1 macs (#751)
ben-chain May 5, 2021
7bb1672
fix(hardhat): linter errors
maurelian May 4, 2021
f4b69d4
chore: run lint:check in CI
maurelian May 4, 2021
67380c1
fix: remove hardcoded gasPrice and gasLimit (#753)
platocrat May 5, 2021
066f6c8
Run codechecks in CI for gas cost benchmarking (#672)
May 5, 2021
79df44e
feat: add skipped deposit auto heal (#760)
karlfloersch May 5, 2021
34ab776
dtl: error logging with message, stack and code (#758)
tynes May 5, 2021
c7d17ca
docs: fix bad return value comment (#756)
transmissions11 May 5, 2021
b90cfb9
temp: remove codechecks (#768)
tynes May 5, 2021
d2091d4
fix[contracts]: Remove verifyExclusionProof (#772)
smartcontracts May 5, 2021
a0a0052
fix: backport value fixes (#766)
tynes May 5, 2021
ed2ff66
Version Packages (#681)
github-actions[bot] May 5, 2021
8168765
Reinstate codechecks (#784)
May 6, 2021
575bcf6
feat[dtl]: add node env (#735)
annieke May 6, 2021
ce7fa52
fix: tx enums (#781)
tynes May 6, 2021
6dc1877
fix[contracts]: Reduce npm package size (#780)
smartcontracts May 6, 2021
1d40586
chore: Remove various unused dependencies (#782)
smartcontracts May 6, 2021
408e063
chore: Explicitly add tslint and plugins to deps of every package (#794)
smartcontracts May 6, 2021
5c5ccda
fix: various linting related errors (#796)
smartcontracts May 6, 2021
d12e4ee
build(deps): bump mixme from 0.5.0 to 0.5.1 (#788)
dependabot[bot] May 6, 2021
e4a8698
docs(contracts): Add codecov badge
maurelian May 6, 2021
536e02b
Version Packages (#789)
github-actions[bot] May 7, 2021
67e153e
Make ts-packages action always run on PRs and master (#804)
May 7, 2021
5f3b2cf
tests[contracts]: Improve Lib_MerkleTrie test coverage (#783)
smartcontracts May 7, 2021
467e275
Remove unnecessary tsconfig arguments (#798)
snario May 7, 2021
f3f0469
Docker-compose metric collection (#763)
optimisticben May 7, 2021
9599b69
fix[contracts]: Fix a bug in contracts package json that removed arti…
smartcontracts May 7, 2021
027d625
Version Packages (#812)
github-actions[bot] May 7, 2021
33fcd84
message-relayer: add in address check for better error alerting (#811)
tynes May 7, 2021
9b7dd4b
l2geth: start script ws (#806)
tynes May 7, 2021
60a470c
build: add types (#791)
snario May 8, 2021
751e2be
feat: add proposer & sequencer signers to BS (#817)
karlfloersch May 8, 2021
6dc453f
Add PR labeler to Github action (#826)
optimisticben May 10, 2021
520c47b
Removes previous deployment artifacts (#827)
gigamesh May 10, 2021
596746a
chore: update deployments readme (#829)
gakonst May 10, 2021
6132e7a
maintenance[contracts]: move various deps to dev deps (#818)
smartcontracts May 10, 2021
20747fd
feat[contracts]: have hardhat-deploy register L1MultiMessageRelayer o…
smartcontracts May 10, 2021
b799caa
feat: v0.3.0 release candidate (#603)
karlfloersch May 10, 2021
7554d80
Version Packages (#815)
github-actions[bot] May 10, 2021
d723b2a
relayer: logging cleanup (#807)
tynes May 10, 2021
aedf931
config: message relayer (#809)
tynes May 10, 2021
2479b4a
Version Packages (#833)
github-actions[bot] May 11, 2021
9231063
fix: geth miner timestamp bug (#836)
tynes May 11, 2021
aa4f462
Version Packages (#837)
github-actions[bot] May 11, 2021
c949803
style: require curly braces for if statements (#835)
smartcontracts May 11, 2021
52d9e6b
test[integration-tests]: l2geth call and creation OOG (#839)
ben-chain May 11, 2021
8d67991
fix: have workflows run on develop (#845)
smartcontracts May 12, 2021
a30817e
docs: add truffle example + ci (#666)
platocrat May 12, 2021
fa4898a
fix: logging error messages and stack (#843)
tynes May 12, 2021
e88e85d
example: get revert msgs for hardhat (#841)
platocrat May 12, 2021
63f2cdd
feat: update mainnet deployment (#838)
karlfloersch May 12, 2021
4390321
Contracts: Removes '-v3' from kovan and goerli contracts folders (#844)
gigamesh May 12, 2021
5ccf42e
chore: update READMEs with new env vars (#842)
annieke May 12, 2021
de5e3dc
l2 geth: start script mainnetv3 (#852)
tynes May 12, 2021
7d8d294
Update Github Actions for the develop branch (#856)
optimisticben May 12, 2021
20242af
fix: get last confirmed enqueue (#846)
tynes May 12, 2021
96a586e
batch-submitter: updated config (#847)
tynes May 13, 2021
0d1ed67
maintenance: standardize license usage (#861)
smartcontracts May 13, 2021
e1cc989
Link to new contributing guide (#867)
gigamesh May 13, 2021
c79dc8b
feat: add config for impersonating accounts to BS (#864)
karlfloersch May 13, 2021
775118a
Contracts: connectToL1Contracts & connectToL2Contracts (part 1) (#858)
gigamesh May 13, 2021
b448867
optimism: bump gaslimit to 10million
tynes May 13, 2021
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
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/big-moose-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

Fixes a bug in L2geth that causes it to skip the first deposit if there have been no deposits batch-submitted yet
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "master",
"baseBranch": "develop",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 0 additions & 5 deletions .changeset/famous-dragons-eat.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/lovely-plants-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@eth-optimism/core-utils': patch
'@eth-optimism/data-transport-layer': patch
'@eth-optimism/message-relayer': patch
---

Migrate bcfg interface to core-utils
5 changes: 5 additions & 0 deletions .changeset/odd-feet-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/batch-submitter': patch
---

Add impersonate account debug config.
5 changes: 5 additions & 0 deletions .changeset/real-pugs-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts': patch
---

Updated package json with a missing dependency
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
'@eth-optimism/common-ts': minor
'@eth-optimism/core-utils': minor
'@eth-optimism/batch-submitter': patch
'@eth-optimism/data-transport-layer': patch
'@eth-optimism/message-relayer': patch
---

move metrics, logger, and base-service to new common-ts package
Explicitly log error messages so that they do not show as empty objects
5 changes: 5 additions & 0 deletions .changeset/soft-squids-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/batch-submitter': patch
---

Updates the configuration to use bcfg in a backwards compatible way
5 changes: 5 additions & 0 deletions .changeset/thin-rockets-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

Updates `scripts/start.sh` with the mainnet config by default
5 changes: 5 additions & 0 deletions .changeset/twenty-garlics-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/batch-submitter': patch
---

Make BLOCK_OFFSET configurable.
5 changes: 0 additions & 5 deletions .changeset/wild-cycles-care.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-jokes-help.md

This file was deleted.

37 changes: 37 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
A-ci:
- any: ['.github/**/*']

A-contracts:
- any: ['packages/contracts/**/*']

A-geth:
- any: ['l2geth/**/*']

A-integration-tests:
- any: ['integration-tests/**/*']

A-ts-packages:
- any: ['packages/**/*']
all: ['!packages/contracts/**/*']

M-batch-submitter:
- any: ['packages/batch-submitter/**/*']

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

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

M-dtl:
- any: ['packages/data-transport-layer/**/*']

M-hardhat-ovm:
- any: ['packages/hardhat-ovm/**/*']

M-ops:
- any: ['ops/**/*']

M-smock:
- any: ['packages/smock/**/*']
12 changes: 8 additions & 4 deletions .github/workflows/geth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ name: geth unit tests
on:
push:
paths:
- 'l2geth/**'
- 'l2geth/**'
branches:
- master
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
pull_request:
paths:
- 'l2geth/**'
- 'l2geth/**'
branches:
- master
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
workflow_dispatch:

defaults:
Expand Down
36 changes: 22 additions & 14 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: integration
on:
push:
branches:
- master
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -34,22 +36,13 @@ jobs:
working-directory: ./ops
run: ./scripts/build-ci.sh

- name: Bring the stack up and wait for the sequencer to be ready
- name: Bring the stack up
working-directory: ./ops
run: docker-compose up -d && ./scripts/wait-for-sequencer.sh
run: docker-compose up -d

- name: Run the integration tests
working-directory: ./integration-tests
run: |
yarn build:contracts
yarn build:contracts:ovm
yarn test:integration
env:
FORCE_COLOR: 1
ENABLE_GAS_REPORT: 1

- name: Print gas report
run: cat integration-tests/gas-report.txt
working-directory: ./ops
run: docker-compose run integration_tests

# Examples Tests
- name: Test & deploy hardhat-example on hardhat (regression)
Expand All @@ -69,8 +62,23 @@ jobs:
run: |
yarn compile
yarn test:integration

- name: Test & deploy waffle-example on Optimism
working-directory: ./examples/waffle
run: |
yarn compile:ovm
yarn test:integration:ovm

- name: Test & deploy truffle-example on truffle (regression)
working-directory: ./examples/truffle
run: |
yarn compile
yarn test:integration
yarn deploy

- name: Test & deploy truffle-example on Optimism
working-directory: ./examples/truffle
run: |
yarn compile:ovm
yarn test:integration:ovm
yarn deploy:ovm
13 changes: 13 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Release
on:
push:
branches:
- develop
- master

jobs:
Expand Down Expand Up @@ -104,6 +105,7 @@ jobs:
message-relayer: ${{ needs.release.outputs.message-relayer }}
data-transport-layer: ${{ needs.release.outputs.data-transport-layer }}
contracts: ${{ needs.release.outputs.contracts }}
integration-tests: ${{ needs.release.outputs.integration-tests }}

steps:
- name: Checkout
Expand Down Expand Up @@ -228,3 +230,29 @@ jobs:
file: ./ops/docker/Dockerfile.deployer
push: true
tags: ethereumoptimism/deployer:${{ needs.builder.outputs.contracts }}

integration_tests:
name: Publish Integration tests ${{ needs.builder.outputs.integration-tests }}
needs: builder
if: needs.builder.outputs.integration-tests != ''
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./ops/docker/Dockerfile.integration-tests
push: true
tags: ethereumoptimism/integration-tests:${{ needs.builder.outputs.integration-tests }}
67 changes: 56 additions & 11 deletions .github/workflows/ts-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ name: typescript / contracts
on:
push:
branches:
- master
- 'master'
- 'develop'
- '*rc'
paths:
- 'packages/**/*.sol'
- 'packages/**/*.ts'
- 'regenesis/*'
pull_request:
branches:
- master
- '*rc'
paths:
- 'packages/**/*.sol'
- 'packages/**/*.ts'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -60,6 +53,58 @@ jobs:
ENABLE_GAS_REPORT: 1
- name: Print gas report
run: cat packages/contracts/gas-report.txt

- name: Run codechecks
working-directory: ./packages/contracts
run: yarn codechecks
env:
CC_SECRET: ${{ secrets.CC_SECRET }}

test-coverage:
name: Generate test coverage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Fetch history
run: git fetch

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Dependencies
# only install dependencies if there was a change in the deps
# if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install

- name: Build
run: yarn build

- name: Test Coverage
run: yarn test:coverage
# Tests are quite brittle when instrumented by Solidity Coverage.
# If tests pass in the Test job above, tests failing during coverage shouldn't break CI.
continue-on-error: true
- uses: codecov/codecov-action@v1
with:
files: ./packages/contracts/coverage.json
fail_ci_if_error: false
verbose: true
lint:
name: Linting
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,4 +134,4 @@ jobs:
run: yarn install

- name: Lint
run: yarn lint
run: yarn lint:check
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
node_modules
results
temp
Expand All @@ -12,6 +13,7 @@ cache-ovm

l2geth/build/bin
packages/contracts/deployments/custom
packages/contracts/coverage*

packages/data-transport-layer/db

Expand Down
Loading