Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Stronger typing in L1 contracts #8841

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Sep 26, 2024

Bumps the solidity version and makes use of the user defined types such that we have Timestamp, Slot and Epoch to make it less likely mixing up these uint256 that have different "units".

Spurred from a timestamp issues, as a slotnumber was passed along and we should be able to make it scream earlier with this.

Note that as the types are mostly syntactic sugar and won't make their way all the way down into the abis the errors and selectors should stay the same.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @LHerskind and the rest of your teammates on Graphite Graphite

@LHerskind LHerskind changed the title chore: bumpt solidty version to 0.8.27 feat: Stronger typing in L1 contracts Sep 26, 2024
@LHerskind LHerskind marked this pull request as ready for review September 26, 2024 21:38
Copy link
Member

@Maddiaa0 Maddiaa0 left a comment

Choose a reason for hiding this comment

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

big fan, one q

@LHerskind LHerskind merged commit 0b5aaea into master Sep 26, 2024
88 of 89 checks passed
@LHerskind LHerskind deleted the lh/better-typing-sol branch September 26, 2024 23:07
Copy link

@KK68HK KK68HK left a comment

Choose a reason for hiding this comment

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

Om det är som jag tror så Tackar jag så mycket för all hjälp.Det brukar vara så att jag har fel när det bara står på engelska jag kan inte fråga någon annan för det är precis som att dom är rädda för allt som har med crypto och göra..🙏

@LHerskind
Copy link
Contributor Author

Om det är som jag tror så Tackar jag så mycket för all hjälp.Det brukar vara så att jag har fel när det bara står på engelska jag kan inte fråga någon annan för det är precis som att dom är rädda för allt som har med crypto och göra..🙏

Hej, jeg er ikke helt sikker på hvordan jeg har hjulpet, men glad for at det kunne hjælpe. Hvis du har nogle spørgsmål til koden så sig endelig til og så skal jeg se om jeg kan hjælpe dig.

Rumata888 pushed a commit that referenced this pull request Sep 27, 2024
Bumps the solidity version and makes use of the user defined types such
that we have `Timestamp`, `Slot` and `Epoch` to make it less likely
mixing up these `uint256` that have different "units".

Spurred from a timestamp issues, as a slotnumber was passed along and we
should be able to make it scream earlier with this.

Note that as the types are mostly syntactic sugar and won't make their
way all the way down into the abis the errors and selectors should stay
the same.
Rumata888 pushed a commit that referenced this pull request Sep 27, 2024
Bumps the solidity version and makes use of the user defined types such
that we have `Timestamp`, `Slot` and `Epoch` to make it less likely
mixing up these `uint256` that have different "units".

Spurred from a timestamp issues, as a slotnumber was passed along and we
should be able to make it scream earlier with this.

Note that as the types are mostly syntactic sugar and won't make their
way all the way down into the abis the errors and selectors should stay
the same.
Rumata888 pushed a commit that referenced this pull request Sep 27, 2024
Bumps the solidity version and makes use of the user defined types such
that we have `Timestamp`, `Slot` and `Epoch` to make it less likely
mixing up these `uint256` that have different "units".

Spurred from a timestamp issues, as a slotnumber was passed along and we
should be able to make it scream earlier with this.

Note that as the types are mostly syntactic sugar and won't make their
way all the way down into the abis the errors and selectors should stay
the same.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants