Skip to content

feat(sdk): use L2 chain ID as source of truth#2799

Merged
mergify[bot] merged 3 commits intodevelopfrom
sc/sdk-l2-as-truth
Jun 21, 2022
Merged

feat(sdk): use L2 chain ID as source of truth#2799
mergify[bot] merged 3 commits intodevelopfrom
sc/sdk-l2-as-truth

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

Description
Updates the SDK to use the L2 chain ID, instead of the L1 chain ID, as
the source of truth when loading chain-specific data. We're going to
need this now that we're planning to have multiple L2s attached to the
same L1 (goerli) during our Bedrock testing plan. Part of a series of
PRs meant to simplify the SDK and prepare it for Bedrock.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jun 16, 2022

🦋 Changeset detected

Latest commit: 28960c0

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

This PR includes changesets to release 6 packages
Name Type
@eth-optimism/sdk Minor
@eth-optimism/integration-tests Patch
@eth-optimism/contracts-governance Patch
@eth-optimism/fault-detector Patch
@eth-optimism/message-relayer Patch
@eth-optimism/drippie-mon 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-integration Area: integration tests A-pkg-sdk Area: packages/sdk labels Jun 16, 2022
@smartcontracts smartcontracts force-pushed the sc/sdk-l2-as-truth branch 2 times, most recently from e33379e to 45781a9 Compare June 16, 2022 15:48
Copy link
Copy Markdown
Contributor

@roninjin10 roninjin10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but I read the pr on a phone screen so will give it another look in 15 to 30 minutes

Updates the SDK to use the L2 chain ID, instead of the L1 chain ID, as
the source of truth when loading chain-specific data. We're going to
need this now that we're planning to have multiple L2s attached to the
same L1 (goerli) during our Bedrock testing plan. Part of a series of
PRs meant to simplify the SDK and prepare it for Bedrock.
@roninjin10 roninjin10 force-pushed the sc/sdk-l2-as-truth branch from 45781a9 to 3e31ba5 Compare June 16, 2022 16:49
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 21, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 21, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot removed the on-merge-train label Jun 21, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 21, 2022

Merge failed. Please see automated check logs for more details.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 21, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify mergify bot merged commit 977493b into develop Jun 21, 2022
@mergify mergify bot deleted the sc/sdk-l2-as-truth branch June 21, 2022 22:54
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jun 21, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot removed the on-merge-train label Jun 21, 2022
nitaliano pushed a commit that referenced this pull request May 20, 2024
Updates the SDK to use the L2 chain ID, instead of the L1 chain ID, as
the source of truth when loading chain-specific data. We're going to
need this now that we're planning to have multiple L2s attached to the
same L1 (goerli) during our Bedrock testing plan. Part of a series of
PRs meant to simplify the SDK and prepare it for Bedrock.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
theochap added a commit that referenced this pull request Dec 10, 2025
This PR contributes to issue #1040 to increase test coverage of the
`kona-proof-interop` crate. It adds unit tests for:
- `pre_state.rs`, reaching 77/78 lines covered (98.7%)
- `hint.rs`, reaching 46/46 lines covered (100%)

---------

Co-authored-by: theo <80177219+theochap@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-integration Area: integration tests A-pkg-sdk Area: packages/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants