Skip to content

feat: support relayer whitelisting and refactor helper queries into RelayerHelper#422

Merged
gjermundgaraba merged 46 commits intomainfrom
serdar/376-relayer-whitelist
Mar 19, 2025
Merged

feat: support relayer whitelisting and refactor helper queries into RelayerHelper#422
gjermundgaraba merged 46 commits intomainfrom
serdar/376-relayer-whitelist

Conversation

@srdtrk
Copy link
Member

@srdtrk srdtrk commented Mar 18, 2025

Description

closes: #376
closes: #425


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Wrote unit and integration tests.
  • Added relevant natspec and godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@codecov
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (7848646) to head (a35fb57).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #422   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files          14       15    +1     
  Lines         744      744           
=======================================
  Hits          743      743           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@srdtrk srdtrk marked this pull request as ready for review March 19, 2025 14:34
@srdtrk srdtrk requested a review from gjermundgaraba as a code owner March 19, 2025 14:34
@srdtrk srdtrk changed the title feat: support relayer whitelisting feat: support relayer whitelisting and refactor helpers queries into RelayerHelper Mar 19, 2025
Copy link
Contributor

@gjermundgaraba gjermundgaraba left a comment

Choose a reason for hiding this comment

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

It looks good to me, but I think we need some updates in the docs (security one, perhaps?), outlining this and how it works.

_grantRole(CLIENT_ID_CUSTOMIZER_ROLE, customizer);
}
}
function __ICS02Client_init_unchained() internal onlyInitializing { }
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not entirely obvious what unchained means here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unchained is commonly used in other init functions. Openzeppelin contracts have two init functions, the normal one and the unchained one. The unchained one doesn't call init on any of its dependent libraries, in this case, access control.

An integrator needs to manually review code to make sure they initialize every library exactly once (not zero times or multiple times). In solidity, constructors solve this in compile time but initializers don't so we need to have two versions.

Luckily, in this case, this technicality doesn't matter since access control's init function is actually a noop. You can learn more about unchained in:

Copy link
Contributor

Choose a reason for hiding this comment

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

Perfect, thanks :)

@srdtrk srdtrk changed the title feat: support relayer whitelisting and refactor helpers queries into RelayerHelper feat: support relayer whitelisting and refactor helper queries into RelayerHelper Mar 19, 2025
@gjermundgaraba gjermundgaraba merged commit de19ea5 into main Mar 19, 2025
66 checks passed
@gjermundgaraba gjermundgaraba deleted the serdar/376-relayer-whitelist branch March 19, 2025 15:58
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.

Move convinience queries to RelayerHelper Add support for whitelisting proof submitters

2 participants