-
Notifications
You must be signed in to change notification settings - Fork 0
(1) Add Controller program #45
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
Conversation
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
PedroAraoz
requested changes
Dec 22, 2025
Member
PedroAraoz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The program should be renamed to match it's EVM counterpart
packages/svm/programs/whitelist/src/instructions/propose_admin.rs
Outdated
Show resolved
Hide resolved
packages/svm/programs/whitelist/src/instructions/set_proposed_admin.rs
Outdated
Show resolved
Hide resolved
packages/svm/programs/whitelist/src/instructions/set_entity_whitelist_status.rs
Outdated
Show resolved
Hide resolved
packages/svm/programs/whitelist/src/instructions/set_entity_whitelist_status.rs
Outdated
Show resolved
Hide resolved
PedroAraoz
requested changes
Jan 2, 2026
PedroAraoz
approved these changes
Jan 6, 2026
GuidoDipietro
added a commit
that referenced
this pull request
Jan 6, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds Whitelist program, analogous to the
Controller.sol.Naming could change to align with EVM contracts.
Rust program and Typescript SDK were added, along with Typescript tests.
Instructions
This program manages entity permission, being able to whitelist and blacklist Validators, Solvers, and Axia addresses.
It is governed by an admin that can be changed with a cooldown period.
initializeInitializes program global state, configuring the admin and cooldown period.
propose_adminProposes a new admin.
set_proposed_adminProposed admin can become admin, if cooldown period has elapsed.
set_entity_whitelist_statusAdmin whitelists or blacklists an entity.
State
GlobalSettingsHolds global state of the program.
EntityRegistryServes as on-chain proof that a given address is whitelisted or blacklisted as a given entity type.
This proof is used on the Settler program (or any other program) to model permissions.
NOTE: Some files might have content from future PRs given this series of PRs come from a larger PR that was split (#41). I have tried to keep this to a minimum but bear this in mind.