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

namespaced storage #22

Closed
wants to merge 1 commit into from

Conversation

DhairyaSethi
Copy link
Member

@DhairyaSethi DhairyaSethi commented Jan 1, 2025

erc7201 style storage layout

Copy link

height bot commented Jan 1, 2025

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@DhairyaSethi DhairyaSethi changed the title namespaced storag namespaced storage Jan 1, 2025
address internal s_rateLimitAdmin;

/// @custom:storage-location erc7201:aave-ccip.storage.UpgradeableTokenPool
struct UpgradeableTokenPoolStorage {

Choose a reason for hiding this comment

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

are not all of this part of TokenPool storage layout? so we don't need this

Copy link
Member Author

Choose a reason for hiding this comment

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

this is the storage for this contract tho, i'm not sure i follow
(we don't inherit from TokenPool in UpgradeableTokenPool, we copy paste and add modifications on top)

/// @custom:storage-location erc7201:aave-ccip.storage.UpgradeableLockReleaseTokenPool
struct UpgradeableLockReleaseTokenPoolStorage {
/// @notice The address of the rebalancer.
address s_rebalancer;

Choose a reason for hiding this comment

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

same here

@miguelmtzinf
Copy link

Closing, as we are leaning towards using an storage gap (included in #20)

@miguelmtzinf miguelmtzinf deleted the feat/namespace-storage branch January 2, 2025 12:48
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.

2 participants