[
  {
    "inputs": [],
    "stateMutability": "nonpayable",
    "type": "constructor"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "_gameType",
        "type": "uint32"
      },
      {
        "internalType": "Claim",
        "name": "_rootClaim",
        "type": "bytes32"
      },
      {
        "internalType": "bytes",
        "name": "_extraData",
        "type": "bytes"
      }
    ],
    "name": "create",
    "outputs": [
      {
        "internalType": "contract IDisputeGame",
        "name": "proxy_",
        "type": "address"
      }
    ],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "_gameType",
        "type": "uint32"
      },
      {
        "internalType": "uint256",
        "name": "_start",
        "type": "uint256"
      },
      {
        "internalType": "uint256",
        "name": "_n",
        "type": "uint256"
      }
    ],
    "name": "findLatestGames",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint256",
            "name": "index",
            "type": "uint256"
          },
          {
            "internalType": "GameId",
            "name": "metadata",
            "type": "bytes32"
          },
          {
            "internalType": "Timestamp",
            "name": "timestamp",
            "type": "uint64"
          },
          {
            "internalType": "Claim",
            "name": "rootClaim",
            "type": "bytes32"
          },
          {
            "internalType": "bytes",
            "name": "extraData",
            "type": "bytes"
          }
        ],
        "internalType": "struct IDisputeGameFactory.GameSearchResult[]",
        "name": "games_",
        "type": "tuple[]"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_index",
        "type": "uint256"
      }
    ],
    "name": "gameAtIndex",
    "outputs": [
      {
        "internalType": "GameType",
        "name": "gameType_",
        "type": "uint32"
      },
      {
        "internalType": "Timestamp",
        "name": "timestamp_",
        "type": "uint64"
      },
      {
        "internalType": "contract IDisputeGame",
        "name": "proxy_",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "gameCount",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "gameCount_",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "",
        "type": "uint32"
      }
    ],
    "name": "gameImpls",
    "outputs": [
      {
        "internalType": "contract IDisputeGame",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "_gameType",
        "type": "uint32"
      },
      {
        "internalType": "Claim",
        "name": "_rootClaim",
        "type": "bytes32"
      },
      {
        "internalType": "bytes",
        "name": "_extraData",
        "type": "bytes"
      }
    ],
    "name": "games",
    "outputs": [
      {
        "internalType": "contract IDisputeGame",
        "name": "proxy_",
        "type": "address"
      },
      {
        "internalType": "Timestamp",
        "name": "timestamp_",
        "type": "uint64"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "_gameType",
        "type": "uint32"
      },
      {
        "internalType": "Claim",
        "name": "_rootClaim",
        "type": "bytes32"
      },
      {
        "internalType": "bytes",
        "name": "_extraData",
        "type": "bytes"
      }
    ],
    "name": "getGameUUID",
    "outputs": [
      {
        "internalType": "Hash",
        "name": "uuid_",
        "type": "bytes32"
      }
    ],
    "stateMutability": "pure",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "",
        "type": "uint32"
      }
    ],
    "name": "initBonds",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_owner",
        "type": "address"
      }
    ],
    "name": "initialize",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "_gameType",
        "type": "uint32"
      },
      {
        "internalType": "contract IDisputeGame",
        "name": "_impl",
        "type": "address"
      }
    ],
    "name": "setImplementation",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "_gameType",
        "type": "uint32"
      },
      {
        "internalType": "uint256",
        "name": "_initBond",
        "type": "uint256"
      }
    ],
    "name": "setInitBond",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "version",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "disputeProxy",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "GameType",
        "name": "gameType",
        "type": "uint32"
      },
      {
        "indexed": true,
        "internalType": "Claim",
        "name": "rootClaim",
        "type": "bytes32"
      }
    ],
    "name": "DisputeGameCreated",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "impl",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "GameType",
        "name": "gameType",
        "type": "uint32"
      }
    ],
    "name": "ImplementationSet",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "GameType",
        "name": "gameType",
        "type": "uint32"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "newBond",
        "type": "uint256"
      }
    ],
    "name": "InitBondUpdated",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": false,
        "internalType": "uint8",
        "name": "version",
        "type": "uint8"
      }
    ],
    "name": "Initialized",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "Hash",
        "name": "uuid",
        "type": "bytes32"
      }
    ],
    "name": "GameAlreadyExists",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "IncorrectBondAmount",
    "type": "error"
  },
  {
    "inputs": [
      {
        "internalType": "GameType",
        "name": "gameType",
        "type": "uint32"
      }
    ],
    "name": "NoImplementation",
    "type": "error"
  }
]