Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
d7f8d89
op-node: testutils RPC error faker util (#3599)
protolambda Sep 29, 2022
aeb8125
op-node: testlog now uses interface, to swap testing backend easily (…
protolambda Sep 29, 2022
9f736b2
op-chain-ops: alias functions without pointers, and geth uint256 type…
protolambda Sep 29, 2022
b7d59f7
ci: Don't nag on t.sol files
maurelian Sep 29, 2022
0d673e5
cpt: nft bridge deploy script bugfix (#3616)
tynes Sep 29, 2022
d72c907
Merge branch 'develop' into ci/no-test-nag
tynes Sep 29, 2022
a3242d4
contracts-periphery: erc721 factory fixes (#3615)
tynes Sep 29, 2022
5dadba5
op-node: ParseWithdrawalInitiated improvements (#3605)
mslipper Sep 29, 2022
baaf620
op-node: move derivation test metrics to test utils package (#3610)
protolambda Sep 29, 2022
91c18ed
chore: Upgrade op-chain-ops dependencies
mslipper Sep 29, 2022
aa9f647
chore: Upgrade op-node dependencies
mslipper Sep 29, 2022
e7b63f7
chore: Upgrade op-proposer dependencies
mslipper Sep 29, 2022
e2c931b
chore: Upgrade op-batcher dependencies
mslipper Sep 29, 2022
07c6d07
chore: Upgrade op-e2e dependencies
mslipper Sep 29, 2022
c16d9ab
Merge branch 'develop' into ci/no-test-nag
maurelian Sep 29, 2022
6713581
Merge pull request #3614 from ethereum-optimism/ci/no-test-nag
maurelian Sep 29, 2022
a5ddb5a
ci: Add flag names to codecov.yml (#3619)
maurelian Sep 29, 2022
4cfcd89
op-e2e: Action testing L1 replica + miner code (combined by mergify) …
protolambda Sep 29, 2022
80993f5
e2eutils: collect addresses from test setup for easy fuzzing/test usa…
protolambda Sep 29, 2022
e81a6ff
contracts-periphery: deploy erc721 bridge (#3621)
tynes Sep 30, 2022
f917b00
op-e2e: action tests: L2 engine actor
protolambda Sep 29, 2022
14c0229
op-e2e: action testing L2 engine block building
protolambda Sep 29, 2022
ae31d12
Initial refactor of L1StdBridge test suite (#3611)
maurelian Sep 30, 2022
4340bf3
Merge branch 'develop' into action-l2-engine
mergify[bot] Sep 30, 2022
2039f67
Merge pull request #3612 from ethereum-optimism/action-l2-engine
mslipper Sep 30, 2022
947b637
Merge branch 'develop' into action-l2-engine-building
mslipper Sep 30, 2022
14591ed
Merge pull request #3613 from ethereum-optimism/action-l2-engine-buil…
mslipper Sep 30, 2022
48aa3d1
ENG-2835 websocket monitoring daemon (endpoint-monitor) (#3581)
Oct 1, 2022
028edbe
op-e2e: action tests - l2 verifier (#3634)
protolambda Oct 3, 2022
a10c2b4
ENG-2835 adds release configs for endpoint-monitor
Oct 3, 2022
bead5e1
ci: Parallelize op-e2e (#3635)
mslipper Oct 3, 2022
775d9ff
op-node: Add wrapper to support EthSubscribe in HTTP clients (#3629)
mslipper Oct 3, 2022
3ae11e8
op-node: Integrate PollingClient with op-node (#3630)
mslipper Oct 3, 2022
1bcd11e
op-node: Return error on big chain id (#3620)
maurelian Oct 4, 2022
0eaae3b
op-node: Remove BlockIDRange (#3640)
trianglesphere Oct 4, 2022
b0b8b4c
op-node: split start of payload building and confirmation of payload …
protolambda Oct 4, 2022
f39853e
sdk: add hh task for finalizing withdrawal (#3638)
tynes Oct 4, 2022
2859af1
Merge branch 'develop' into zhwrd/endpoint-monitor-ci
mslipper Oct 4, 2022
46202cd
op-node: Fully remove the progress API (#3623)
trianglesphere Oct 4, 2022
89f1abf
add rpc.evmtimeout flag to l2geth (#3579)
jhawk28 Oct 4, 2022
ec8fa36
op-chain-ops: better error message (#3645)
tynes Oct 4, 2022
d931620
op-chain-ops: default `L2Addresses` (#3644)
tynes Oct 4, 2022
bccd8ae
op-chain-ops: defensive storage config (#3643)
tynes Oct 4, 2022
5723583
op-chain-ops: add geth test key to dev L2 genesis alloc (#3642)
tynes Oct 4, 2022
b979d86
install slither from commit (#3651)
maurelian Oct 4, 2022
f7a591c
op-e2e: Adopt op-chain-ops (#3649)
mslipper Oct 4, 2022
3c91593
ctb: Fix codecov flag args to match config
maurelian Oct 4, 2022
d47369f
contracts-bedrock: cleanup imports, fix storage layout (#3590)
tynes Oct 5, 2022
59cd1c2
Revert "install slither from commit (#3651)"
maurelian Oct 5, 2022
e81c5c9
op-node: split driver state/model into L1 state, L1 origin selector, …
protolambda Oct 5, 2022
a5e715c
ctb: Rename event in the L2ToL1MessagePasser (#3652)
maurelian Oct 5, 2022
ffa5297
ctp: mainnet nft bridge deployments (#3654)
tynes Oct 5, 2022
c3afadb
op-node: Simplify Receipts Fetching API (#3639)
trianglesphere Oct 5, 2022
b40913b
feat(sdk): add Bedrock Alpha Testnet contracts
smartcontracts Sep 29, 2022
3db2436
indexer: Test preparation (#3657)
mslipper Oct 5, 2022
73287f9
chore: Upgrade op-chain-ops dependencies
mslipper Oct 5, 2022
de3bd5c
chore: Upgrade op-node dependencies
mslipper Oct 5, 2022
fde81f3
chore: Upgrade op-proposer dependencies
mslipper Oct 5, 2022
8377f1d
chore: Upgrade op-batcher dependencies
mslipper Oct 5, 2022
7adfece
chore: Upgrade op-e2e dependencies
mslipper Oct 5, 2022
d04d81e
ci: Have Mergify use a merge commit (#3636)
mslipper Oct 5, 2022
3f48562
ci: hardcode slither version to 0.9.0
maurelian Oct 5, 2022
1d0516c
indexer: Restore some bindings
mslipper Oct 5, 2022
35a7bb5
feat: return uint64 from XDM's baseGas
maurelian Aug 30, 2022
90740d1
chore: Bindings
maurelian Sep 23, 2022
51075f3
Merge pull request #3542 from ethereum-optimism/ctb/uint64-gaslimit
mergify[bot] Oct 6, 2022
d3698f6
Merge branch 'develop' into zhwrd/endpoint-monitor-ci
mergify[bot] Oct 6, 2022
b660cfb
Merge pull request #3637 from ethereum-optimism/zhwrd/endpoint-monito…
mergify[bot] Oct 6, 2022
4005ebb
op-e2e: action testing L2 sequencer, use L1State in verifier
protolambda Oct 5, 2022
01de084
Merge branch 'develop' into 10-05-indexer_Restore_some_bindings
mergify[bot] Oct 6, 2022
1518a4f
Merge pull request #3658 from ethereum-optimism/10-05-indexer_Restore…
mergify[bot] Oct 6, 2022
ffc9062
fix: update goerli scc address
annieke Oct 6, 2022
01ed565
ctb: Format forge tests with prettier
maurelian Oct 6, 2022
7dcf8c4
Merge branch 'develop' into sc/sdk-alpha-bedrock
mergify[bot] Oct 6, 2022
1e51b79
Merge pull request #3618 from ethereum-optimism/sc/sdk-alpha-bedrock
mergify[bot] Oct 6, 2022
8ee8fb5
Merge branch 'develop' into slither-9.0
mergify[bot] Oct 6, 2022
faad8b6
Merge pull request #3656 from ethereum-optimism/slither-9.0
mergify[bot] Oct 6, 2022
fdb1ee1
Merge branch 'develop' into fix/codecov
mergify[bot] Oct 6, 2022
0fbfe82
Merge pull request #3653 from ethereum-optimism/fix/codecov
mergify[bot] Oct 6, 2022
81250fb
Merge branch 'develop' into action-l2-sequencer
mergify[bot] Oct 6, 2022
0a6166f
Merge pull request #3655 from ethereum-optimism/action-l2-sequencer
mergify[bot] Oct 6, 2022
7e0450b
indexer: Update DB package (#3659)
mslipper Oct 6, 2022
f95d123
Merge branch 'develop' into annie/fix-goerli-scc
mergify[bot] Oct 6, 2022
15b73f1
Merge pull request #3662 from ethereum-optimism/annie/fix-goerli-scc
mergify[bot] Oct 6, 2022
2d34f16
Merge branch 'develop' into ctb/prettier-tests
maurelian Oct 6, 2022
9e0151d
Merge pull request #3663 from ethereum-optimism/ctb/prettier-tests
mergify[bot] Oct 6, 2022
e962893
op-node: make rollup node RPC testable in op-e2e
protolambda Oct 7, 2022
edb10c7
contracts-governance: mint manager deploy
tynes Sep 25, 2022
b9cdba2
contracts-governance: fix build
tynes Sep 26, 2022
fd0709b
contracts-governance: better messaging
tynes Sep 30, 2022
8228543
contracts-governance: fix sleep in deploy
tynes Oct 7, 2022
0f5260d
Merge pull request #3671 from ethereum-optimism/action-rpcs
mergify[bot] Oct 7, 2022
7fc76e5
Merge branch 'develop' into feat/mint-manager-deploy
mergify[bot] Oct 7, 2022
57b7e70
Merge pull request #3561 from ethereum-optimism/feat/mint-manager-deploy
mergify[bot] Oct 7, 2022
856a02b
contracts-governance: allow deploy by ledger
tynes Oct 7, 2022
15999ac
Merge pull request #3673 from ethereum-optimism/ctg/deploy-ledger
mergify[bot] Oct 7, 2022
af72fd0
op-node: Fillbytes size check in l1 block info
maurelian Oct 4, 2022
28d6921
op-node: FillBytes size check in deposit marshalling
maurelian Oct 7, 2022
18bff58
op-service: Provide balance metrics utility
trianglesphere Oct 7, 2022
6eeb25f
op-batcher: Enable balance check metric
trianglesphere Oct 6, 2022
e456eb8
op-proposer: Enable the balance check metric
trianglesphere Oct 6, 2022
6c63d91
ops-bedrock: Enable metrics on propose & batcher
trianglesphere Oct 6, 2022
8c8adcf
Merge pull request #3664 from ethereum-optimism/jg/balance_metrics
mergify[bot] Oct 7, 2022
e074acb
Merge branch 'develop' into fix/opb-02
mslipper Oct 7, 2022
3dcf11b
Merge pull request #3674 from ethereum-optimism/fix/opb-02
mergify[bot] Oct 8, 2022
d18b8aa
fix(ctb): remove unnecessary L2OO init param
smartcontracts Oct 8, 2022
4ad2f72
op-bindings: regenerate
tynes Oct 8, 2022
01c947c
ctb: regenerate snapshot
tynes Oct 8, 2022
b9c1ce0
indexer: Perform Bedrock DB upgrade (#3666)
mslipper Oct 9, 2022
dc6d4ca
indexer: Add new indexing functions (#3665)
mslipper Oct 9, 2022
475b2bf
indexer: Upgrade L1 services (#3667)
mslipper Oct 9, 2022
5a9928c
indexer: Upgrade L2 services (#3668)
mslipper Oct 9, 2022
19e581d
indexer: Upgrade everything else, add itests (#3669)
mslipper Oct 9, 2022
1636250
Merge branch 'develop' into sc/ctb-oo-fix-init
mergify[bot] Oct 10, 2022
f951f65
Merge pull request #3675 from ethereum-optimism/sc/ctb-oo-fix-init
mergify[bot] Oct 10, 2022
b3c5eee
fix(proxyd): Fix compliance with JSON-RPC 2.0 spec by adding optional…
chriswessels Oct 11, 2022
c2b8efa
proxyd: Custom rate limiter implementation
mslipper Oct 9, 2022
01ae662
proxyd: Integrate custom rate limiter
mslipper Oct 9, 2022
f27283f
op-node: Fix log level handler (#3689)
mslipper Oct 11, 2022
20b85a3
op-node: Fix log message when bq does not match safe head (#3687)
mslipper Oct 11, 2022
cdc1fa9
deployment: new mint manager deployment (#3684)
tynes Oct 11, 2022
ce03351
Merge pull request #3679 from ethereum-optimism/10-09-proxyd_Custom_r…
mslipper Oct 12, 2022
1471911
Merge pull request #3681 from ethereum-optimism/10-09-proxyd_Integrat…
mslipper Oct 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-wombats-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': minor
---

Fixed JSON-RPC 2.0 specification compliance by adding the optional data field on an RPCError
5 changes: 5 additions & 0 deletions .changeset/chatty-impalas-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts-bedrock': patch
---

Use uint64 for arithmetic in XDM's baseGas
5 changes: 5 additions & 0 deletions .changeset/chilly-cups-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/sdk': patch
---

Adds contract addresses for the Bedrock Alpha testnet
6 changes: 6 additions & 0 deletions .changeset/five-grapes-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@eth-optimism/contracts-bedrock': patch
'@eth-optimism/sdk': patch
---

Rename the event emitted in the L2ToL1MessagePasser
5 changes: 5 additions & 0 deletions .changeset/green-doors-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts-periphery': patch
---

Goerli nft bridge deployment
5 changes: 5 additions & 0 deletions .changeset/khaki-bottles-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

add --rpc.evmtimeout flag to configure timeout for eth_call
6 changes: 6 additions & 0 deletions .changeset/lazy-drinks-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@eth-optimism/integration-tests': patch
'@eth-optimism/contracts-periphery': patch
---

Fix erc721 factory to match erc21 factory
5 changes: 5 additions & 0 deletions .changeset/lemon-files-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/indexer': minor
---

Bedrock support
5 changes: 5 additions & 0 deletions .changeset/loud-pigs-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': minor
---

Adds new Redis rate limiter
5 changes: 5 additions & 0 deletions .changeset/mighty-planets-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eth-optimism/contracts-periphery": patch
---

mainnet nft bridge deployments
5 changes: 5 additions & 0 deletions .changeset/poor-singers-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts-bedrock': patch
---

Removes an unnecessary initializer parameter in the L200
5 changes: 5 additions & 0 deletions .changeset/red-trains-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/endpoint-monitor': major
---

Initial release of endpoint monitor
5 changes: 5 additions & 0 deletions .changeset/serious-pianos-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/ci-builder': patch
---

Pin slither version to 0.9.0
32 changes: 25 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
working_directory: packages/contracts-bedrock
- run:
name: upload coverage
command: codecov --verbose --clean --flag contracts-bedrock-forge
command: codecov --verbose --clean --flag contracts-bedrock-tests
environment:
FOUNDRY_PROFILE: ci
- run:
Expand Down Expand Up @@ -190,6 +190,9 @@ jobs:
description: Regex matching dependent packages
type: string
default: this-package-does-not-exist
coverage_flag:
description: Coverage flag name
type: string
docker:
- image: ethereumoptimism/ci-builder:latest
resource_class: large
Expand All @@ -214,9 +217,7 @@ jobs:
working_directory: packages/<<parameters.package_name>>
- run:
name: Upload coverage
command: |
echo <<parameters.package_name>> # TEMP for debugging
codecov --verbose --clean --flag <<parameters.package_name>>
command: codecov --verbose --clean --flag <<parameters.coverage_flag>>

bedrock-go-tests:
docker:
Expand Down Expand Up @@ -286,9 +287,14 @@ jobs:
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
name: test op-e2e (WS)
command: |
gotestsum --format standard-verbose --junitfile /test-results/op-e2e.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
working_directory: op-e2e
- run:
name: test op-e2e (HTTP)
command: |
gotestsum --junitfile /test-results/op-e2e.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
OP_E2E_USE_HTTP=true gotestsum --junitfile /test-results/op-e2e.xml -- -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out -covermode=atomic ./...
working_directory: op-e2e
- run:
name: test op-service
Expand Down Expand Up @@ -426,7 +432,7 @@ jobs:
name: Test
command: |
mkdir -p /test-results
gotestsum --junitfile /test-results/tests.xml
DB_USER=postgres gotestsum --junitfile /test-results/tests.xml
working_directory: <<parameters.working_directory>>
- when:
condition:
Expand Down Expand Up @@ -632,17 +638,20 @@ workflows:
- yarn-monorepo
- js-lint-test:
name: common-ts-tests
coverage_flag: common-ts-tests
package_name: common-ts
requires:
- yarn-monorepo
- js-lint-test:
name: contracts-tests
coverage_flag: contracts-tests
package_name: contracts
dependencies: hardhat-deploy-config
requires:
- yarn-monorepo
- js-lint-test:
name: core-utils-tests
coverage_flag: core-utils-tests
package_name: core-utils
requires:
- yarn-monorepo
Expand All @@ -654,54 +663,63 @@ workflows:
- yarn-monorepo
- js-lint-test:
name: actor-tests-tests
coverage_flag: actor-tests-tests
package_name: actor-tests
dependencies: "(core-utils|sdk)"
requires:
- yarn-monorepo
- js-lint-test:
name: contracts-governance-tests
coverage_flag: contracts-governance-tests
package_name: contracts-governance
dependencies: "(core-utils|sdk)"
requires:
- yarn-monorepo
- js-lint-test:
name: contracts-periphery-tests
coverage_flag: contracts-periphery-tests
package_name: contracts-periphery
dependencies: "(contracts|contracts-bedrock|core-utils|hardhat-deploy-config)"
requires:
- yarn-monorepo
- js-lint-test:
name: dtl-tests
coverage_flag: dtl-tests
package_name: data-transport-layer
dependencies: "(common-ts|contracts|core-utils)"
requires:
- yarn-monorepo
- js-lint-test:
name: drippie-mon-tests
coverage_flag: drippie-mon-tests
package_name: drippie-mon
dependencies: "(common-ts|contracts-periphery|core-utils|sdk)"
requires:
- yarn-monorepo
- js-lint-test:
name: fault-detector-tests
coverage_flag: fault-detector-tests
package_name: fault-detector
dependencies: "(common-ts|contracts|core-utils|sdk)"
requires:
- yarn-monorepo
- js-lint-test:
name: message-relayer-tests
coverage_flag: message-relayer-tests
package_name: message-relayer
dependencies: "(common-ts|core-utils|sdk)"
requires:
- yarn-monorepo
- js-lint-test:
name: replica-healthcheck-tests
coverage_flag: replica-healthcheck-tests
package_name: replica-healthcheck
dependencies: "(common-ts|core-utils)"
requires:
- yarn-monorepo
- js-lint-test:
name: sdk-tests
coverage_flag: sdk-tests
package_name: sdk
dependencies: "(contracts|core-utils)"
requires:
Expand Down
4 changes: 2 additions & 2 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pull_request_rules:
actions:
queue:
name: default
method: squash
method: merge
- name: Add merge train label
conditions:
- "queue-position >= 0"
Expand Down Expand Up @@ -99,7 +99,7 @@ pull_request_rules:
- name: Nag changesets
conditions:
- and:
- 'files~=\.((?<!\.spec\.)ts|go|js|mod|sum)$'
- 'files~=\.((?<!\.spec\.)ts|(?<!\.t\.)sol|go|js|mod|sum)$'
- '-files~=^\.changeset/(.*)\.md'
actions:
comment:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
batch-submitter-service: ${{ steps.packages.outputs.batch-submitter-service }}
indexer: ${{ steps.packages.outputs.indexer }}
teleportr: ${{ steps.packages.outputs.teleportr }}
endpoint-monitor: ${{ steps.packages.outputs.l2geth-exporter }}

steps:
- name: Check out source code
Expand Down Expand Up @@ -603,3 +604,41 @@ jobs:
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}

endpoint-monitor:
name: Publish endpoint-monitor Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs: canary-publish
if: needs.canary-publish.outputs.endpoint-monitor != ''
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: Set build args
id: build_args
run: |
echo ::set-output name=GITDATE::"$(date +%d-%m-%Y)"
echo ::set-output name=GITVERSION::$(jq -r .version ./endpoint-monitor/package.json)
echo ::set-output name=GITCOMMIT::"$GITHUB_SHA"

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./endpoint-monitor/Dockerfile
push: true
tags: ethereumoptimism/endpoint-monitor:${{ needs.canary-publish.outputs.endpoint-monitor }}
build-args: |
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
teleportr: ${{ steps.packages.outputs.teleportr }}
ci-builder: ${{ steps.packages.outputs.ci-builder }}
foundry: ${{ steps.packages.outputs.foundry }}
endpoint-monitor: ${{ steps.packages.outputs.endpoint-monitor }}

steps:
- name: Checkout Repo
Expand Down Expand Up @@ -635,3 +636,40 @@ jobs:
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}

endpoint-monitor:
name: Publish endpoint-monitor Version ${{ needs.release.outputs.endpoint-monitor}}
needs: release
if: needs.release.outputs.endpoint-monitor != ''
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: Set build args
id: build_args
run: |
echo ::set-output name=GITDATE::"$(date +%d-%m-%Y)"
echo ::set-output name=GITVERSION::$(jq -r .version ./endpoint-monitor/package.json)
echo ::set-output name=GITCOMMIT::"$GITHUB_SHA"

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./endpoint-monitor/Dockerfile
push: true
tags: ethereumoptimism/endpoint-monitor:${{ needs.release.outputs.endpoint-monitor }},ethereumoptimism/endpoint-monitor:latest
build-args: |
GITDATE=${{ steps.build_args.outputs.GITDATE }}
GITCOMMIT=${{ steps.build_args.outputs.GITCOMMIT }}
GITVERSION=${{ steps.build_args.outputs.GITVERSION }}
18 changes: 18 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,21 @@ ignore:
- "l2geth"
- "**/*.t.sol"
- "op-bindings/bindings/*.go"
flag_management:
# Note: flags should have the same name as the circleci job in which they
# are uploaded.
individual_flags:
- name: bedrock-go-tests
- name: contracts-bedrock-tests
- name: common-ts-tests
- name: contracts-tests
- name: core-utils-tests
- name: actor-tests-tests
- name: contracts-governance-tests
- name: contracts-periphery-tests
- name: dtl-tests
- name: drippie-mon-tests
- name: fault-detector-tests
- name: message-relayer-tests
- name: replica-healthcheck-tests
- name: sdk-tests
4 changes: 4 additions & 0 deletions endpoint-monitor/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export ENDPOINT_MONITOR_LOG_LEVEL=debug
export ENDPOINT_MONITOR_PROVIDERS=goerli,mainnet
export ENDPOINT_MONITOR_GOERLI_URL=wss://ws-goerli.optimism.io
export ENDPOINT_MONITOR_MAINNET_URL=wss://ws-mainnet.optimism.io
1 change: 1 addition & 0 deletions endpoint-monitor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
1 change: 1 addition & 0 deletions endpoint-monitor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @eth-optimism/endpoint-monitor
18 changes: 18 additions & 0 deletions endpoint-monitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.18.0-alpine3.15 as builder

COPY ./endpoint-monitor /app

WORKDIR /app
RUN apk --no-cache add make jq bash git alpine-sdk
RUN make build

FROM alpine:3.15
RUN apk --no-cache add ca-certificates

RUN addgroup -S app && adduser -S app -G app
USER app
WORKDIR /app

COPY --from=builder /app/bin/endpoint-monitor /app

ENTRYPOINT ["/app/endpoint-monitor"]
Loading