Summary
When a creator launches on AccessLayer their keys go on sale to everyone instantly. Creators with an existing community want to give loyal followers a head start before the price rises. A whitelist window lets a creator register a set of approved addresses that can buy during an exclusive period after registration, before the general public can trade.
Scope
- Add optional
whitelist_window: Option<WhitelistConfig> to register_creator
WhitelistConfig { addresses: Vec<Address>, window_ledgers: u32 }
- During the first
window_ledgers ledgers after registration, only addresses in the whitelist can buy
- After the window expires, anyone can buy as normal
- Buy function checks: if current ledger is within the window and the buyer is not on the whitelist, revert with
WhitelistOnly
- Add
get_whitelist_status(creator_id) -> WhitelistStatus view returning { active: bool, expires_at_ledger: u32, remaining_ledgers: u32 }
- Whitelist config is immutable after registration
None means no whitelist — public from registration (current behavior)
- Maximum whitelist size: 500 addresses
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
When a creator launches on AccessLayer their keys go on sale to everyone instantly. Creators with an existing community want to give loyal followers a head start before the price rises. A whitelist window lets a creator register a set of approved addresses that can buy during an exclusive period after registration, before the general public can trade.
Scope
whitelist_window: Option<WhitelistConfig>toregister_creatorWhitelistConfig { addresses: Vec<Address>, window_ledgers: u32 }window_ledgersledgers after registration, only addresses in the whitelist can buyWhitelistOnlyget_whitelist_status(creator_id) -> WhitelistStatusview returning{ active: bool, expires_at_ledger: u32, remaining_ledgers: u32 }Nonemeans no whitelist — public from registration (current behavior)Acceptance Criteria
get_whitelist_statusreturns correct active/expired stateNonewhitelist allows public buy immediately after registrationETA: 24 hours
Coordinate on Telegram