[
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "platformFeeBps",
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      }
    ],
    "name": "getContestPool",
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      }
    ],
    "name": "getMerkleRoot",
    "outputs": [
      {
        "type": "bytes32"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      },
      {
        "name": "entryFee",
        "type": "uint256"
      }
    ],
    "name": "createContest",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      }
    ],
    "name": "finalizeContest",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      },
      {
        "name": "merkleRoot",
        "type": "bytes32"
      },
      {
        "name": "rewardPool",
        "type": "uint256"
      }
    ],
    "name": "publishMerkleRoot",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      },
      {
        "name": "sideId",
        "type": "uint256"
      }
    ],
    "name": "deposit",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      },
      {
        "name": "sideId",
        "type": "uint256"
      },
      {
        "name": "user",
        "type": "address"
      }
    ],
    "name": "refund",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      }
    ],
    "name": "sweepUnclaimed",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "contestId",
        "type": "uint256"
      },
      {
        "name": "sideId",
        "type": "uint256"
      },
      {
        "name": "proof",
        "type": "bytes32[]"
      }
    ],
    "name": "claim",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      },
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "name": "contestExists",
    "outputs": [
      {
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "name": "contestId",
        "type": "uint256"
      },
      {
        "indexed": true,
        "name": "sideId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "name": "depositor",
        "type": "address"
      },
      {
        "indexed": false,
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "DepositReceived",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "name": "contestId",
        "type": "uint256"
      },
      {
        "indexed": true,
        "name": "sideId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "name": "claimer",
        "type": "address"
      },
      {
        "indexed": false,
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Claimed",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "name": "contestId",
        "type": "uint256"
      }
    ],
    "name": "ContestFinalized",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "name": "contestId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "name": "root",
        "type": "bytes32"
      },
      {
        "indexed": false,
        "name": "rewardPool",
        "type": "uint256"
      }
    ],
    "name": "MerkleRootPublished",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "name": "contestId",
        "type": "uint256"
      },
      {
        "indexed": false,
        "name": "entryFee",
        "type": "uint256"
      }
    ],
    "name": "ContestCreated",
    "type": "event"
  }
]