-
Couldn't load subscription status.
- Fork 260
[ETHEREUM-CONTRACTS] Migrate to OpenZeppelin v5 #2097
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
Merged
Merged
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
ba1b067
distinguish between unsettled and claimable balance in pools
d10r f76ce16
add assertions
d10r 62697d9
Merge branch 'dev' into 2025-06-fix-claimable
d10r ab01e42
Merge branch 'dev' into 2025-06-fix-claimable
d10r ea53653
merge dev
d10r 9c433c5
use new reader function
d10r b56c0f3
Merge branch 'dev' into 2025-06-fix-claimable
d10r d6687ab
small fix
d10r 5dad0c3
updated changelog
d10r 882f654
limit valid input size for _settle()
hellwolf e27cb41
remove some silly type convrersions
hellwolf 5a0fb64
chore: remove redundant words in comment (#2092)
pavedroad b856b8a
added GDA function which allows the pool admin to connect pools on be…
d10r cd864bd
add mechanism for opting out of autoconnect using SimpleACL
d10r 88e17f3
revert forge-std upgrade
d10r 8db285b
simplification
d10r 101bdfc
don't restrict autoconnect to pool admin, more testing
d10r 701ea33
fix stack too deep?
d10r 4dce3b7
fix flag
d10r 5a603b2
more shanghai
d10r 77e3f9d
Merge branch 'dev' into 2025-07-autoconnect
d10r d3bfd95
updated CHANGELOG
d10r d6c9135
undo disable test
d10r 2aa5ccd
added tryConnectPoolFor to SuperTokenV1Library
d10r b4e6342
CFASuperAppBase: disable autoconnect in constructor
d10r c195923
set admin roles in deploy script
d10r bd1d158
solidity semantic money to shanghai evm
hellwolf c76c167
added countUsedSlots to SlotsBitmapLibrary
hellwolf 64484ae
GDAv1: use SlotsBitmapLibrary
hellwolf d8ea0dc
added some asserts to SlotsBitmapLibraryPropertyTest._listData
hellwolf 79109ec
revert solidity semantic money to paris evm
hellwolf d578842
fix testTryConnectPoolFor
hellwolf dff96ab
fix testAutoConnectSlotLimit
hellwolf c855ecf
update flake inputs
hellwolf e0ca43f
solc: 0.8.26 -> 0.8.30
hellwolf 4ca4195
Merge branch 'update-solc' into 2025-07-autoconnect
hellwolf ae36ff0
ethereum-contracts: update CHANGELOG.md
hellwolf 365b087
update more solc_version to 0.8.30
hellwolf 5ec58cd
Merge branch 'update-solc' into 2025-07-autoconnect
hellwolf 7b2e30f
revert the wrong fix
hellwolf 7aef0ee
Merge branch 'dev' into 2025-07-autoconnect
hellwolf cdf0482
small code refactoring to _setPoolConnection
hellwolf 9b4da71
fix tests
d10r 283402a
fix flaky test
d10r c5fd4d5
fix scheduler test
d10r 088eba3
renamed to _setPoolConnectionFor
d10r 03b81ba
revert if trying to connect a pool for a pool
d10r 5652c9d
calldata storage location for PoolConfig
d10r 21da9df
squeeze out a few more bytes
d10r 5608475
more contract size margin for GDA
d10r 5a3639d
fix import
d10r 31bf0b3
no calldata magic
d10r eee4100
migrated ethereum-contracts to OZ5
d10r d4cebf3
switch to OZ5 in all packages
d10r b296937
add Initializable
d10r b012934
workaround to the Address issue
d10r 248f289
adjust tests to new (custom) errors
d10r 253ab3b
unbreak single-arg use
d10r e34e685
adjust automation contracts
d10r 9fde692
updated changelog
d10r aa88d2d
added openzeppelin-contracts submodule
d10r 33aac3e
hardhat config for lib in root
d10r 9bb6b92
install openzeppelin-contracts a submodule instead of npm package
d10r 116fe41
change path to openzeppelin-v5
d10r 6b53d00
adjust symlink path
d10r deef970
adjust workaround to new path
d10r db9cefe
more path adjustments
d10r bc35b72
merge dev
d10r 288b660
don't allow deployment of SimpleACL in upgrade path
d10r b3c6a8c
tryConnectPool: don't allow zero address for member argument
d10r a24ef82
fix deploy script
d10r 67415dd
back to shanghai (where ganache is stuck)
d10r 91f26a7
add comment
d10r dd78939
updated changelog
d10r 075a1c0
adjust foundry mappings
d10r a7686ff
more detailled changelog, specify OZ as peer dependency
d10r e6ffae8
Update README.md
Olexandr88 5093e4c
Merge branch 'dev' into 2025-08-oz5
hellwolf 15a121a
Merge branch 'dev' into 2025-08-oz5
d10r 528e345
added OZ related instructions to readme
d10r 34770a1
moved ERC1820Implementer to utils
d10r 801f636
piggy-back: add coingecko id for scroll
d10r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| [submodule "lib/forge-std"] | ||
| path = lib/forge-std | ||
| url = https://github.com/foundry-rs/forge-std | ||
| [submodule "lib/openzeppelin-contracts"] | ||
| path = lib/openzeppelin-contracts | ||
| url = https://github.com/OpenZeppelin/openzeppelin-contracts.git | ||
| branch = release-v5.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule openzeppelin-contracts
added at
c64a1e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,6 @@ import { IVestingSchedulerV2 } from "./../contracts/interface/IVestingSchedulerV | |
| import { VestingSchedulerV2 } from "./../contracts/VestingSchedulerV2.sol"; | ||
| import { FoundrySuperfluidTester } from "@superfluid-finance/ethereum-contracts/test/foundry/FoundrySuperfluidTester.t.sol"; | ||
| import { SuperTokenV1Library } from "@superfluid-finance/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol"; | ||
| import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; | ||
| import { SafeCast } from "@openzeppelin/contracts/utils/math/SafeCast.sol"; | ||
| import "forge-std/console.sol"; | ||
|
|
||
|
|
@@ -899,7 +898,7 @@ contract VestingSchedulerV2Tests is FoundrySuperfluidTester { | |
| ); | ||
|
|
||
| console.log("Revert with overflow."); | ||
| vm.expectRevert("SafeCast: value doesn't fit in 96 bits"); | ||
| vm.expectRevert(); // SafeCastOverflowedIntDowncast | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is no reference to it? |
||
| vestingScheduler.createVestingScheduleFromAmountAndDuration( | ||
| superToken, | ||
| bob, | ||
|
|
@@ -1961,7 +1960,7 @@ contract VestingSchedulerV2Tests is FoundrySuperfluidTester { | |
| ); | ||
|
|
||
| console.log("Revert with overflow."); | ||
| vm.expectRevert("SafeCast: value doesn't fit in 96 bits"); | ||
| vm.expectRevert(); // SafeCastOverflowedIntDowncast | ||
| vestingScheduler.createVestingScheduleFromAmountAndDuration( | ||
| superToken, | ||
| bob, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1105,7 +1105,7 @@ contract VestingSchedulerV3Tests is FoundrySuperfluidTester { | |
| ); | ||
|
|
||
| console.log("Revert with overflow."); | ||
| vm.expectRevert("SafeCast: value doesn't fit in 96 bits"); | ||
| vm.expectRevert(); // SafeCastOverflowedIntDowncast | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| vestingScheduler.createVestingScheduleFromAmountAndDuration( | ||
| superToken, | ||
| bob, | ||
|
|
@@ -2189,7 +2189,7 @@ contract VestingSchedulerV3Tests is FoundrySuperfluidTester { | |
| ); | ||
|
|
||
| console.log("Revert with overflow."); | ||
| vm.expectRevert("SafeCast: value doesn't fit in 96 bits"); | ||
| vm.expectRevert(); // SafeCastOverflowedIntDowncast | ||
| vestingScheduler.createVestingScheduleFromAmountAndDuration( | ||
| superToken, | ||
| bob, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ethereum-contracts/contracts/agreements/InstantDistributionAgreementV1.sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ethereum-contracts/contracts/agreements/gdav1/GDAv1StorageLayout.sol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.