Skip to content

Comments

feat[contracts]: Add storage slot parsing functions for chugsplash#716

Merged
smartcontracts merged 9 commits intov0.4.0-rcfrom
feat/chugsplash-slot-parser
May 4, 2021
Merged

feat[contracts]: Add storage slot parsing functions for chugsplash#716
smartcontracts merged 9 commits intov0.4.0-rcfrom
feat/chugsplash-slot-parser

Conversation

@smartcontracts
Copy link
Contributor

Description
Adds the storage slot parsing function that we'll need for chugsplash + tests. We mainly want to make sure that we have adequate test coverage + that we're able to encode all the various types that we want to encode.

Metadata

@changeset-bot
Copy link

changeset-bot bot commented Apr 30, 2021

⚠️ No Changeset found

Latest commit: d201098

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

@smartcontracts smartcontracts marked this pull request as draft April 30, 2021 23:04
@smartcontracts smartcontracts marked this pull request as ready for review April 30, 2021 23:20
@smartcontracts smartcontracts added A-contracts C-feature Category: features labels May 1, 2021
@karlfloersch
Copy link
Contributor

karlfloersch commented May 3, 2021

Oh also probably good to change this PR to be against v0.4.0-rc

@smartcontracts smartcontracts changed the base branch from master to v0.4.0-rc May 3, 2021 18:04
@smartcontracts smartcontracts requested a review from tynes as a code owner May 3, 2021 18:04
@smartcontracts smartcontracts force-pushed the feat/chugsplash-slot-parser branch from b7691d1 to 98f83f9 Compare May 3, 2021 21:29
Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

This is great! The two things that I'd suggest doing before a merge:

  1. Consider adding a version check to the storage slot parser (if possible)
  2. Add an issue to perform additional smoddit tests with whatever testing you think would be valuable to add in the future.

Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

Dope LGTM!

@smartcontracts smartcontracts merged commit 06fb4cb into v0.4.0-rc May 4, 2021
@smartcontracts smartcontracts deleted the feat/chugsplash-slot-parser branch May 4, 2021 18:12
ben-chain pushed a commit to ben-chain/optimism that referenced this pull request May 6, 2021
…thereum-optimism#716)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
smartcontracts added a commit that referenced this pull request May 17, 2021
)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
ben-chain pushed a commit to ben-chain/optimism that referenced this pull request May 18, 2021
…thereum-optimism#716)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
gakonst pushed a commit that referenced this pull request May 20, 2021
)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
gakonst pushed a commit that referenced this pull request May 21, 2021
)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
smartcontracts added a commit that referenced this pull request May 30, 2021
)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
ben-chain pushed a commit to ben-chain/optimism that referenced this pull request Jun 23, 2021
…thereum-optimism#716)

* wip: start storage slot parsing lib for chugsplash

* add support for packed storage slots and do bytesN correctly

* fix lint errors

* Simplify some repeated logic

* style: small improvements and comments

* Update testing for storage library

* test: Add some tests for unsupported types

* fix: use semver to block unsupported solidity versions
OptimismBot pushed a commit that referenced this pull request Dec 2, 2025
theochap pushed a commit that referenced this pull request Dec 10, 2025
* feat(executor): EIP-1559 configurability spec updates

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-feature Category: features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Production-ize" smoddit storage slot parser

3 participants