Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
01dccf4
feat: add CTC and SCC contract bindings
cfromknecht Nov 22, 2021
c47bbb8
maintenance: remove event types from core utils
smartcontracts Nov 13, 2021
b4d9d53
Merge pull request #1765 from ethereum-optimism/sc/remove-events-from…
smartcontracts Nov 23, 2021
584cbc2
feat: clean up and comment aliasing utils
smartcontracts Nov 20, 2021
68cd04f
Merge pull request #1791 from ethereum-optimism/sc/alias-util-comments
smartcontracts Nov 23, 2021
ac71b98
fix: remove branch restrictions for some workflows
smartcontracts Nov 12, 2021
3f055d6
Merge pull request #1760 from ethereum-optimism/sc/workflow-all-branches
smartcontracts Nov 24, 2021
da6138f
ENG-1670 - improve proxyd metrics, support local rate limiter
mslipper Nov 18, 2021
24cc244
Merge pull request #1782 from mslipper/feat/eng-1670
mslipper Nov 24, 2021
5c159f9
ops: pin docker-compose version to 3.4
tynes Nov 29, 2021
e4067d4
gas-oracle: fix the gas price metric
tynes Nov 29, 2021
5546b1f
Merge pull request #1821 from ethereum-optimism/fix/gpo-metrics
tynes Nov 29, 2021
b6bdea0
Merge pull request #1800 from cfromknecht/bss-bindings
tynes Nov 29, 2021
6c7f483
go/proxyd: ENG-1704 add support for additional SSL certs
mslipper Nov 29, 2021
d141095
l2geth: allow for unprotected txs
tynes Nov 8, 2021
128e0f8
dtl: support unprotected txs
tynes Nov 8, 2021
2745279
tests: add replica tests
tynes Nov 8, 2021
ec1bcd4
fix: update rollup client for unprotected tx support
smartcontracts Nov 18, 2021
300683c
ci: collect l2geth and replica logs
tynes Nov 29, 2021
066ab89
Merge pull request #1818 from mslipper/feat/additional-certs
mslipper Nov 29, 2021
50feea3
ops: pass through replica and verifier urls
tynes Nov 29, 2021
4c35ece
Merge pull request #1820 from ethereum-optimism/ops/dc-v3.4
tynes Nov 29, 2021
6bd6768
integration-tests: skip replica tests on live network
tynes Nov 29, 2021
cc02fdf
Merge pull request #1720 from ethereum-optimism/feat/allow-unprotecte…
tynes Nov 30, 2021
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/flat-bags-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/gas-oracle': patch
---

Fix the gas oracle gas price prometheus metric
5 changes: 5 additions & 0 deletions .changeset/friendly-queens-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': patch
---

Add support for additional SSL certificates in Docker container
5 changes: 5 additions & 0 deletions .changeset/nice-steaks-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/data-transport-layer': patch
---

Handle unprotected transactions
6 changes: 6 additions & 0 deletions .changeset/old-moons-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@eth-optimism/integration-tests': patch
'@eth-optimism/l2geth': patch
---

Allow for unprotected transactions
5 changes: 5 additions & 0 deletions .changeset/poor-avocados-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/core-utils': patch
---

Clean up the L1 => L2 address aliasing utilities
5 changes: 5 additions & 0 deletions .changeset/swift-ways-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': minor
---

Updated metrics, support local rate limiter
9 changes: 2 additions & 7 deletions .github/workflows/batch-submitter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ on:
pull_request:
paths:
- 'go/batch-submitter/*'
branches:
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
workflow_dispatch:

defaults:
Expand All @@ -31,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.16.x

- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -40,4 +35,4 @@ jobs:
run: make

- name: Test
run: make test
run: make test
5 changes: 0 additions & 5 deletions .github/workflows/gas-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ on:
pull_request:
paths:
- 'go/gas-oracle/**'
branches:
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
workflow_dispatch:

defaults:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/geth.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: geth unit tests


on:
push:
paths:
Expand All @@ -13,11 +12,6 @@ on:
pull_request:
paths:
- 'l2geth/**'
branches:
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
workflow_dispatch:

defaults:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ on:
paths:
- 'go/gas-oracle/**'
- 'go/batch-submitter/**'
branches:
- 'master'
- 'develop'
- '*rc'
- 'regenesis/*'
jobs:
golangci:
name: lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
if: failure()
uses: jwalton/gh-docker-logs@v1
with:
images: 'ethereumoptimism/hardhat,ops_deployer,ops_dtl,ethereumoptimism/l2geth,ethereumoptimism/message-relayer,ops_batch_submitter,ethereumoptimism/l2geth,ops_integration_tests'
images: 'ethereumoptimism/hardhat,ops_deployer,ops_dtl,ops_l2geth,ethereumoptimism/message-relayer,ops_batch_submitter,ops_replica,ops_integration_tests'
dest: '/home/runner/logs'

- name: Tar logs
Expand Down
40 changes: 40 additions & 0 deletions go/batch-submitter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
LDFLAGSSTRING +=-X main.GitVersion=$(GITVERSION)
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"

CTC_ABI_ARTIFACT := ../../packages/contracts/artifacts/contracts/L1/rollup/CanonicalTransactionChain.sol/CanonicalTransactionChain.json
SCC_ABI_ARTIFACT := ../../packages/contracts/artifacts/contracts/L1/rollup/StateCommitmentChain.sol/StateCommitmentChain.json

batch-submitter:
env GO111MODULE=on go build -v $(LDFLAGS) ./cmd/batch-submitter

Expand All @@ -19,8 +22,45 @@ test:
lint:
golangci-lint run ./...

bindings: bindings-ctc bindings-scc

bindings-ctc:
$(eval temp := $(shell mktemp))

cat $(CTC_ABI_ARTIFACT) \
| jq -r .bytecode > $(temp)

cat $(CTC_ABI_ARTIFACT) \
| jq .abi \
| abigen --pkg ctc \
--abi - \
--out bindings/ctc/canonical_transaction_chain.go \
--type CanonicalTransactionChain \
--bin $(temp)

rm $(temp)

bindings-scc:
$(eval temp := $(shell mktemp))

cat $(SCC_ABI_ARTIFACT) \
| jq -r .bytecode > $(temp)

cat $(SCC_ABI_ARTIFACT) \
| jq .abi \
| abigen --pkg scc \
--abi - \
--out bindings/scc/state_commitment_chain.go \
--type StateCommitmentChain \
--bin $(temp)

rm $(temp)

.PHONY: \
batch-submitter \
bindings \
bindings-ctc \
bindings-scc \
clean \
test \
lint
1,522 changes: 1,522 additions & 0 deletions go/batch-submitter/bindings/ctc/canonical_transaction_chain.go

Large diffs are not rendered by default.

862 changes: 862 additions & 0 deletions go/batch-submitter/bindings/scc/state_commitment_chain.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions go/batch-submitter/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtE
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk=
github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
Expand Down
2 changes: 1 addition & 1 deletion go/gas-oracle/oracle/updater_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
var (
txSendCounter = metrics.NewRegisteredCounter("tx/send", ometrics.DefaultRegistry)
txNotSignificantCounter = metrics.NewRegisteredCounter("tx/not-significant", ometrics.DefaultRegistry)
gasPriceGauge = metrics.NewRegisteredGauge("gas-price", ometrics.DefaultRegistry)
gasPriceGauge = metrics.NewRegisteredGauge("gas_price", ometrics.DefaultRegistry)
txConfTimer = metrics.NewRegisteredTimer("tx/confirmed", ometrics.DefaultRegistry)
txSendTimer = metrics.NewRegisteredTimer("tx/send", ometrics.DefaultRegistry)
)
Expand Down
8 changes: 8 additions & 0 deletions go/proxyd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ RUN make proxyd

FROM alpine:3.14.2

COPY ./go/proxyd/entrypoint.sh /bin/entrypoint.sh

RUN apk update && \
apk add ca-certificates && \
chmod +x /bin/entrypoint.sh

EXPOSE 8080

VOLUME /etc/proxyd

COPY --from=builder /app/bin/proxyd /bin/proxyd

ENTRYPOINT ["/bin/entrypoint.sh"]
CMD ["/bin/proxyd", "/etc/proxyd/proxyd.toml"]
3 changes: 3 additions & 0 deletions go/proxyd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ See `metrics.go` for a list of all available metrics.

The metrics port is configurable via the `metrics.port` and `metrics.host` keys in the config.

## Adding Backend SSL Certificates in Docker

The Docker image runs on Alpine Linux. If you get SSL errors when connecting to a backend within Docker, you may need to add additional certificates to Alpine's certificate store. To do this, bind mount the certificate bundle into a file in `/usr/local/share/ca-certificates`. The `entrypoint.sh` script will then update the store with whatever is in the `ca-certificates` directory prior to starting `proxyd`.
Loading