{
  "$schema": "https://eips.ethereum.org/EIPS/eip-8004",
  "name": "Daemon",
  "description": "DMN is a mined ERC-20 token whose contract is also its own Uniswap V4 swap hook. One bytecode, one address. The token, the hook, and the PoW miner are the same contract. No owner, no upgrade path, no admin keys. DMN is autonomous: it accepts genesis purchases, seeds its own V4 liquidity pool when ready, locks the LP forever via hook reverts on liquidity modifications, takes a 1% swap fee on all trades, and pays mining rewards in PoW-bound nonces. Everything is verifiable on-chain.",
  "version": "1.0.0",
  "type": "token-agent",
  "endpoints": {
    "contract": "ethereum://DMN_MAINNET_ADDRESS",
    "frontend": "https://daemonerc8004.com",
    "whitepaper": "https://daemonerc8004.com/whitepaper.pdf",
    "source": "https://github.com/wayne97dev/mineeth"
  },
  "capabilities": [
    {
      "id": "mintGenesis",
      "description": "Buy raw DMN at fixed 0.01 ETH per 1,000 DMN during the genesis phase. Max 5 units per tx. Available until genesisComplete = true.",
      "abi": "mintGenesis(uint256 units)",
      "payable": true
    },
    {
      "id": "refundGenesis",
      "description": "Burn genesis-minted DMN back to the contract in exchange for the original ETH price, after a 3-day grace period from deploy, if the pool has not been seeded.",
      "abi": "refundGenesis(uint256 tokenAmount)"
    },
    {
      "id": "mine",
      "description": "Submit a PoW solution and receive the current era's reward. Challenge is bound to msg.sender and the current epoch (~20 minute window). Solutions are unstealable from the mempool.",
      "abi": "mine(uint256 nonce)"
    },
    {
      "id": "swap",
      "description": "Trade DMN against ETH through the locked Uniswap V4 pool. The 1% fee is taken on the ETH side and accrues to the contract balance, claimable by the controller via claimFees().",
      "via": "uniswap-v4-pool",
      "poolKey": {
        "currency0": "0x0000000000000000000000000000000000000000",
        "currency1": "DMN_MAINNET_ADDRESS",
        "fee": 0,
        "tickSpacing": 200,
        "hooks": "DMN_MAINNET_ADDRESS"
      }
    },
    {
      "id": "claimFees",
      "description": "Controller-only withdrawal of accumulated ETH swap fees from the contract balance.",
      "abi": "claimFees()",
      "access": "controller-only"
    },
    {
      "id": "seedPool",
      "description": "Initialize the V4 DMN/ETH pool when genesis is fully sold out. Permissionless.",
      "abi": "seedPool()"
    },
    {
      "id": "partialSeed",
      "description": "Controller-only seed of the pool with whatever genesis raised so far, callable after 30 minutes from deploy. Unsold genesis DMN is never minted.",
      "abi": "partialSeed()",
      "access": "controller-only"
    }
  ],
  "validation": {
    "verified_source": "etherscan",
    "license": "MIT",
    "immutable": true,
    "no_proxy": true,
    "no_owner_admin_keys": true,
    "audits": [],
    "fork_of": "0xAC7b5d06fa1e77D08aea40d46cB7C5923A87A0cc"
  },
  "tokenomics": {
    "totalSupply": "21000000000000000000000000",
    "miningSupply": "18900000000000000000000000",
    "genesisCap": "1050000000000000000000000",
    "lpAllocation": "1050000000000000000000000",
    "baseReward": "100000000000000000000",
    "halvingEvery": 100000,
    "retargetEvery": 2016,
    "epochBlocks": 100,
    "maxMintsPerBlock": 10
  },
  "extensions": {
    "minerAgent": {
      "description": "Soulbound ERC-721 collection where DMN participants can claim a per-address NFT identity (one per wallet). Metadata and image are generated on-chain from live DMN holdings. Tier scales with DMN held: Initiate < 100, Bronze 100-999, Silver 1000-9999, Gold 10000+.",
      "address": "MINERAGENT_MAINNET_ADDRESS_TBD"
    }
  }
}
