Skip to content

Conversation

@GuidoDipietro
Copy link
Member

@GuidoDipietro GuidoDipietro commented Dec 17, 2025

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.

initialize

Initializes program global state, configuring the admin and cooldown period.

propose_admin

Proposes a new admin.

set_proposed_admin

Proposed admin can become admin, if cooldown period has elapsed.

set_entity_whitelist_status

Admin whitelists or blacklists an entity.

State

GlobalSettings

Holds global state of the program.

EntityRegistry

Serves 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.

@GuidoDipietro GuidoDipietro changed the base branch from main to solana/settler December 17, 2025 16:01
@GuidoDipietro GuidoDipietro self-assigned this Dec 17, 2025
@GuidoDipietro GuidoDipietro marked this pull request as ready for review December 18, 2025 15:49
@GuidoDipietro GuidoDipietro changed the title Add Whitelist program (1) Add Whitelist program Dec 18, 2025
Copy link
Member

@PedroAraoz PedroAraoz left a 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

@GuidoDipietro GuidoDipietro changed the title (1) Add Whitelist program (1) Add Controller program Jan 6, 2026
@GuidoDipietro GuidoDipietro merged commit d41cc50 into solana/settler Jan 6, 2026
4 checks passed
@GuidoDipietro GuidoDipietro deleted the solana/1-whitelist branch January 6, 2026 15:31
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants