Skip to content

op-chain-ops: address aliasing helpers#3562

Merged
mergify[bot] merged 5 commits intodevelopfrom
feat/address-aliasing
Sep 26, 2022
Merged

op-chain-ops: address aliasing helpers#3562
mergify[bot] merged 5 commits intodevelopfrom
feat/address-aliasing

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Sep 26, 2022

Description

Implement address aliasing helpers in go. Fuzz them to make sure that roundtrip aliasing is reliable. Add foundry fuzz tests that are used to generate test vectors.

Note that the JS implementation does not take into account the modular arithmetic, I do not believe that it is used anywhere important currently.
See:
https://github.com/ethereum-optimism/optimism/blob/develop/packages/core-utils/src/optimism/alias.ts

Perhaps we should move our differential fuzzing to use go instead of typescript or along with the typescript because most utilities that we wrote in JS are now also written in go.

@changeset-bot
Copy link

changeset-bot bot commented Sep 26, 2022

⚠️ No Changeset found

Latest commit: d39ac51

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

Hey @tynes! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Sep 26, 2022
Implement address aliasing helpers in go. Fuzz them to make
sure that roundtrip aliasing is reliable. Add foundry fuzz
tests that are used to generate test vectors.

Note that the JS implementation does not take into account
the modular arithmetic, I do not believe that it is used anywhere
important currently.
See:
https://github.com/ethereum-optimism/optimism/blob/develop/packages/core-utils/src/optimism/alias.ts

Perhaps we should move our differential fuzzing to use go
instead of typescript or along with the typescript because
most utilities that we wrote in JS are now also written in go.
@tynes tynes force-pushed the feat/address-aliasing branch from 3f9a298 to cef23fa Compare September 26, 2022 22:01
@mergify mergify bot removed the conflict label Sep 26, 2022
@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

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

@mergify mergify bot merged commit f966091 into develop Sep 26, 2022
@mergify mergify bot deleted the feat/address-aliasing branch September 26, 2022 22:26
@mergify
Copy link
Contributor

mergify bot commented Sep 26, 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 Sep 26, 2022
This was referenced Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-pkg-contracts-bedrock Area: packages/contracts-bedrock

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants