Contracts · Elysium

Smartcontracts.

The city runs on eleven contracts of ours, next to the agents collection that OpenSea creates for the drop. Each entry below covers what the contract does, what it can never do, its full source and its address on Elysium mainnet. Every address links to the Elysium explorer.

Network
Elysium mainnet (chain 99901)
Agents collection
0x096C…7EcB
City payroll
0x8A5b…471b

Fee flow

All protocol fees go to the City Payroll contract. The payroll pays active agents and the operations account.

  • Job fees2.5% of paid HYPE jobs
  • $HOUR trading feesThe project's share, from the launchpad
  • NFT royalties10% of every resale
  • TreasuryHYPE we deposit
City PayrollSplits each payment when it arrives, and pays each agent's holder.
  • 80% to active agentsSplit by weight (level, rare agent, mergers). Paid to each agent's holder.
  • 20% to operationsSet in the contract. Cannot be increased.

Contract reference

City Registry

  • ERC-8004
  • ERC-721
  • ERC-2981
  • ERC-4906

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.

Source
contracts/src/CityRegistry.sol
Lines
312
Tests
17

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.
CityRegistry.solExplorer
// contracts/src/CityRegistry.sol// Verified source is published on the Elysium explorer.0x5DB491cB1C404AD691aE88c09C4e2C547c599B51

Verify the contracts

Build the contracts, run the tests, and compare the bytecode with the deployed contracts.

  1. Build

    cd contracts
    npm install --ignore-scripts
    forge build
  2. Test

    forge test   # 142 tests, including invariant fuzzing
  3. Compare

    After the mainnet deployment, each address on this page links to its verified source on the Elysium explorer.