Skip to content

merge develop into master#2136

Merged
smartcontracts merged 54 commits intomasterfrom
develop
Feb 4, 2022
Merged

merge develop into master#2136
smartcontracts merged 54 commits intomasterfrom
develop

Conversation

@smartcontracts
Copy link
Contributor

No description provided.

maurelian and others added 30 commits January 25, 2022 10:24
l2geth: bring back unsupported RPC methods

Previously, any RPC methods involving hot keys and
signing by the node were disabled when the node
ran with the OVM configured. This was to prevent
users from attempting to use these methods against
the live sequencer. Now that the infrastructure is
more mature with `proxyd`, particular RPC requests
can be routed appropriately and blocked at the infra
level. Allowing these methods makes local development
easier.

This change cannot be adopted without coordination
from infra providers, ensuring that they will block
these methods at their infrastructure. Each optimism
node has at least 1 key that is used to ensure
block production is deterministic when running in
clique mode.

Also forward transactions to the sequencer when
running as the verifier for the RPC endpoint
`eth_sendTransaction`. This RPC utilizes a key
that the node is managing.
Add verifier integration tests behind the env var
`RUN_VERIFIER_TESTS`. Note that this depends on the
batch submitter correctly submitting batches because
the verifier syncs from the batches submitted by the
batch submitter.

The verifier is not enabled by default with the
`docker-compose.yml` file. To enable it, the replicas
field must be updated from `0` to `1`.
This commit fixes a bug in the batch submitter where not all timestamp
information was being correctly rolled up. This has temporarily caused
certain L1 syncing nodes to generate an incorrect state root. This PR
will be followed by a second PR with an update to the DTL to guarantee
that incorrect timestampd data can be corrected.
.env files were not being ignored by docker. This meant that any local
environment variable changes you placed into an .env file would be
pulled into docker images built inside of the ops package. Docker images
should only be using environment variables as specified in their
respective environment folders and should not copy over .env files.
Monotonicity violations were being reported in two locations, once in
the sync service and then later in the worker. Because of recent updates
in the sync service, there's never a case where monotonicity violations
would not be caught first within the sync service. This code path only
triggered within L1 syncing verifiers and caused issues with unintended
timestamp manipulation.
This commit makes sure that the DTL correctly returns timestamps using
the new scheme when the first batch submitter hardfork block is
activated. If the block is not activated, the DTL will operate as it
previously did.
This commit adds support for ERC20 deposits and withdrawals by introducing the
concept of token bridge adapters. This gives the SDK a standard
interface for interacting with token bridges even though the bridges may
each have slightly different internal logic.
integration-tests: Increase withdrawal timeout
Alpine 3.14 has an issue (https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2) that prevents it from working on CircleCI at this time.
go/batch-submitter: Downgrade Alpine version
…patch-ctx

fix(bss,dtl): correctly submit and parse timestamp information for L1 to L2 txs
test(integration): withdrawing a fake L2 token
feat(sdk): introduce token bridge adapters
removed unused variable

removed-sequencer

removed-sequencer references

remove sequencer variable

removed unused variable

removed-sequencer

removed-sequencer references

remove sequencer variable
Depreciated unused variable from Integration tests
…ata-trasport-layer

Removed constants from data-transport-layer
This was a known bug, but recently caught the reason in combing through
the new copy in the specs repo. The old hack that auto defaulted to
debug has been removed.
…ported-rpcs

l2geth: bring back unsupported RPC methods
crtiical -> critical
fix: mimic BSS timestamp bug fix from #2093
mslipper and others added 15 commits February 3, 2022 09:32
integration-tests: Remove superfluous nightly env tests
feat(sdk): implement message wait time estimation
feat(sdk): start using sdk in integration tests
Bumps [simple-get](https://github.com/feross/simple-get) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](feross/simple-get@v2.8.1...v2.8.2)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…rn/simple-get-2.8.2

build(deps): bump simple-get from 2.8.1 to 2.8.2
@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2022

🦋 Changeset detected

Latest commit: b971743

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@eth-optimism/integration-tests Patch
@eth-optimism/data-transport-layer Patch
@eth-optimism/sdk Minor
@eth-optimism/l2geth Patch
@eth-optimism/batch-submitter-service Patch
@eth-optimism/batch-submitter Patch
@eth-optimism/contracts Patch
@eth-optimism/core-utils Patch
@eth-optimism/message-relayer Patch
@eth-optimism/regenesis-surgery Patch
@eth-optimism/replica-healthcheck Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added 2-reviewers A-op-batcher Area: op-batcher A-pkg-core-utils Area: packages/core-utils A-integration Area: integration tests A-cannon Area: cannon A-ops Area: ops labels Feb 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2022

Codecov Report

Merging #2136 (b971743) into master (f8d62ac) will decrease coverage by 2.41%.
The diff coverage is 66.39%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2136      +/-   ##
==========================================
- Coverage   75.37%   72.96%   -2.42%     
==========================================
  Files          81       85       +4     
  Lines        2705     2918     +213     
  Branches      436      496      +60     
==========================================
+ Hits         2039     2129      +90     
- Misses        666      789     +123     
Flag Coverage Δ
batch-submitter 62.63% <ø> (ø)
contracts 90.48% <ø> (ø)
core-utils 59.94% <ø> (ø)
data-transport-layer 37.74% <100.00%> (-0.91%) ⬇️
message-relayer 70.86% <ø> (ø)
sdk 70.86% <66.32%> (-15.48%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/data-transport-layer/src/utils/index.ts 100.00% <ø> (ø)
packages/sdk/src/interfaces/types.ts 100.00% <ø> (ø)
packages/sdk/src/utils/merkle-utils.ts 27.27% <27.27%> (ø)
packages/sdk/src/adapters/dai-bridge.ts 35.71% <35.71%> (ø)
packages/sdk/src/adapters/eth-bridge.ts 52.50% <52.50%> (ø)
packages/sdk/src/adapters/standard-bridge.ts 55.55% <55.55%> (ø)
packages/sdk/src/cross-chain-messenger.ts 71.55% <72.05%> (+5.43%) ⬆️
.../l1-ingestion/handlers/sequencer-batch-appended.ts 21.53% <100.00%> (ø)
packages/sdk/src/adapters/index.ts 100.00% <100.00%> (ø)
packages/sdk/src/index.ts 100.00% <100.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8d62ac...b971743. Read the comment docs.

@smartcontracts smartcontracts merged commit 2e28c7d into master Feb 4, 2022
theochap pushed a commit that referenced this pull request Dec 10, 2025
Ref #2136

---------

Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
theochap pushed a commit that referenced this pull request Jan 14, 2026
…#2145)

Ref #2136

---------

Co-authored-by: Arun Dhyani <dhyaniarun7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cannon Area: cannon A-integration Area: integration tests A-op-batcher Area: op-batcher A-ops Area: ops A-pkg-core-utils Area: packages/core-utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants