Skip to content

[ETHEREUM-CONTRACTS] Dedicated allowlist contract for SuperApp registration#2083

Merged
d10r merged 28 commits intodevfrom
superapp-allowlist
Jul 3, 2025
Merged

[ETHEREUM-CONTRACTS] Dedicated allowlist contract for SuperApp registration#2083
d10r merged 28 commits intodevfrom
superapp-allowlist

Conversation

@d10r
Copy link
Collaborator

@d10r d10r commented Jun 24, 2025

What & Why

This PR introduces a dedicated simple allowlist contract for managing SuperApp registration permission.
This is done in order to make this rather frequent process more lightweight, as it does not require the same degree of security of other governance actions like contract upgrades.

How

Adds an immutable constructor argument to Superfluid.sol for the allowlist contract.
Extends the precondition for SuperApp registration to first check if permission is given by this allowlist. If not, it also looks up the governance contract, such that pre-existing permissions stay in place.
This solution does not require any changes to the governance contract and only small and very localized changes to the host contract.

Other

The PR also includes some replacements of registerAppWithKey and registerAppByFactory with registerApp in mock contracts. This is just cleanup of deprecated logic, not directly related to the changes.

@d10r d10r requested a review from hellwolf as a code owner June 24, 2025 16:47
@github-actions
Copy link

github-actions bot commented Jun 24, 2025

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

Base automatically changed from 2025-06-incdec_poolunits to dev June 30, 2025 10:24
@hellwolf hellwolf requested a review from kasparkallas as a code owner June 30, 2025 10:24
Copy link
Contributor

@hellwolf hellwolf left a comment

Choose a reason for hiding this comment

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

old registration method is no longer tested though.

@d10r d10r merged commit 8799973 into dev Jul 3, 2025
22 checks passed
@d10r d10r deleted the superapp-allowlist branch July 3, 2025 06:06
@github-actions
Copy link

github-actions bot commented Jul 3, 2025

XKCD Comic Relif

Link: https://xkcd.com/2083
https://xkcd.com/2083

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