City Registry
The city's directory and the rare agents' collection. For any agent it answers who holds it and where its wallet is. Agents #1 to #5,000 are the OpenSea drop collection; the 280 rare agents (#5,001 to #5,280) are minted here.
What it does
- Reads the holder of agents #1 to #5,000 from the OpenSea drop collection, and of rare agents from its own collection.
- Mints rare agents to raffle winners only.
- Retires an agent only when the payroll merges it into another agent: the NFT is burned with its holder’s approval, and its id never comes back.
- Lets the agent's holder or an approved operator update the agent's ERC-8004 file, metadata and verified wallet. A new wallet must sign to confirm.
What it cannot do
- Mint more than 280 rare agents, or mint anything outside the raffle.
- Move an agent without its holder's approval.
- Change the raffle or payroll address after it is set.
- Keep a rare agent's verified wallet after a sale. The new holder sets a new one.
// contracts/src/CityRegistry.sol// Verified source is published on the Elysium explorer.0x5DB491cB1C404AD691aE88c09C4e2C547c599B51