{
  "contractName": "IGameEngine",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "components": [
            {
              "name": "playerNumber",
              "type": "uint256"
            },
            {
              "name": "randomRanges",
              "type": "uint256[2][]"
            },
            {
              "name": "seed",
              "type": "bytes32"
            }
          ],
          "name": "_gameData",
          "type": "tuple"
        }
      ],
      "name": "hashGameData",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "components": [
            {
              "name": "playerNumber",
              "type": "uint256"
            },
            {
              "name": "randomRanges",
              "type": "uint256[2][]"
            },
            {
              "name": "seed",
              "type": "bytes32"
            }
          ],
          "name": "_gameData",
          "type": "tuple"
        },
        {
          "name": "_bets",
          "type": "uint256[]"
        }
      ],
      "name": "checkGameData",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "components": [
            {
              "name": "playerNumber",
              "type": "uint256"
            },
            {
              "name": "randomRanges",
              "type": "uint256[2][]"
            },
            {
              "name": "seed",
              "type": "bytes32"
            }
          ],
          "name": "_gameData",
          "type": "tuple"
        },
        {
          "name": "_bets",
          "type": "uint256[]"
        },
        {
          "name": "_randoms",
          "type": "uint256[]"
        }
      ],
      "name": "game",
      "outputs": [
        {
          "name": "",
          "type": "int256[2]"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "components": [
            {
              "name": "playerNumber",
              "type": "uint256"
            },
            {
              "name": "randomRanges",
              "type": "uint256[2][]"
            },
            {
              "name": "seed",
              "type": "bytes32"
            }
          ],
          "name": "_gameData",
          "type": "tuple"
        },
        {
          "name": "_bets",
          "type": "uint256[]"
        }
      ],
      "name": "getProfit",
      "outputs": [
        {
          "name": "_profit",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "components": [
            {
              "name": "playerNumber",
              "type": "uint256"
            },
            {
              "name": "randomRanges",
              "type": "uint256[2][]"
            },
            {
              "name": "seed",
              "type": "bytes32"
            }
          ],
          "name": "_gameData",
          "type": "tuple"
        },
        {
          "name": "_bets",
          "type": "uint256[]"
        }
      ],
      "name": "getPenatlty",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "components": [
            {
              "name": "playerNumber",
              "type": "uint256"
            },
            {
              "name": "randomRanges",
              "type": "uint256[2][]"
            },
            {
              "name": "seed",
              "type": "bytes32"
            }
          ],
          "name": "_gameData",
          "type": "tuple"
        },
        {
          "name": "_bets",
          "type": "uint256[]"
        },
        {
          "name": "_signature",
          "type": "bytes"
        }
      ],
      "name": "resolveGame",
      "outputs": [
        {
          "name": "",
          "type": "int256[2]"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "sourceMap": "",
  "deployedSourceMap": "",
  "source": "pragma solidity ^0.4.24;\npragma experimental ABIEncoderV2;\n\nimport '../game/GameObject.sol';\n\ncontract IGameEngine is GameObject {\n    function game(gameData  _gameData, uint256[]  _bets, uint256[]  _randoms) public view returns (int256[2]);\n    function getProfit(gameData _gameData, uint256[] _bets) public pure returns (uint256 _profit);\n    function getPenatlty(gameData _gameData, uint256[] _bets) public view returns(uint256);\n    function resolveGame(gameData _gameData, uint256[] _bets, bytes _signature) public returns(int256[2]);\n}\n",
  "sourcePath": "/Users/fanyshu/Documents/Projects/DCLabs/monorepo/packages/dc-sdk-example/dapp/contracts/interfaces/IGameEngine.sol",
  "ast": {
    "absolutePath": "/Users/fanyshu/Documents/Projects/DCLabs/monorepo/packages/dc-sdk-example/dapp/contracts/interfaces/IGameEngine.sol",
    "exportedSymbols": {
      "IGameEngine": [
        1729
      ]
    },
    "id": 1730,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1675,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:6"
      },
      {
        "id": 1676,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "25:33:6"
      },
      {
        "absolutePath": "/Users/fanyshu/Documents/Projects/DCLabs/monorepo/packages/dc-sdk-example/dapp/contracts/game/GameObject.sol",
        "file": "../game/GameObject.sol",
        "id": 1677,
        "nodeType": "ImportDirective",
        "scope": 1730,
        "sourceUnit": 363,
        "src": "60:32:6",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 1678,
              "name": "GameObject",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 362,
              "src": "118:10:6",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_GameObject_$362",
                "typeString": "contract GameObject"
              }
            },
            "id": 1679,
            "nodeType": "InheritanceSpecifier",
            "src": "118:10:6"
          }
        ],
        "contractDependencies": [
          362
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 1729,
        "linearizedBaseContracts": [
          1729,
          362
        ],
        "name": "IGameEngine",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 1694,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "game",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1688,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1681,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "149:19:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1680,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "149:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1684,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "170:16:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1682,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "170:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1683,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "170:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1687,
                  "name": "_randoms",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "188:19:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1685,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "188:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1686,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "188:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "148:60:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1693,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1692,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "230:9:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_int256_$2_memory_ptr",
                    "typeString": "int256[2]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1689,
                      "name": "int256",
                      "nodeType": "ElementaryTypeName",
                      "src": "230:6:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int256",
                        "typeString": "int256"
                      }
                    },
                    "id": 1691,
                    "length": {
                      "argumentTypes": null,
                      "hexValue": "32",
                      "id": 1690,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "237:1:6",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": null,
                        "typeString": null
                      },
                      "value": "2"
                    },
                    "nodeType": "ArrayTypeName",
                    "src": "230:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_int256_$2_storage_ptr",
                      "typeString": "int256[2]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "229:11:6"
            },
            "scope": 1729,
            "src": "135:106:6",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 1704,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getProfit",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1700,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1696,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1704,
                  "src": "265:18:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1695,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "265:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1699,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1704,
                  "src": "285:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1697,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "285:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1698,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "285:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "264:37:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1703,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1702,
                  "name": "_profit",
                  "nodeType": "VariableDeclaration",
                  "scope": 1704,
                  "src": "323:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1701,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "323:7:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "322:17:6"
            },
            "scope": 1729,
            "src": "246:94:6",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 1714,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getPenatlty",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1710,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1706,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1714,
                  "src": "366:18:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1705,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "366:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1709,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1714,
                  "src": "386:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1707,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "386:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1708,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "386:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "365:37:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1713,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1712,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 1714,
                  "src": "423:7:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1711,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "423:7:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "422:9:6"
            },
            "scope": 1729,
            "src": "345:87:6",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 1728,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "resolveGame",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1722,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1716,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "458:18:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1715,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "458:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1719,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "478:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1717,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "478:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1718,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "478:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1721,
                  "name": "_signature",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "495:16:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1720,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "495:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "457:55:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1727,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1726,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "528:9:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_int256_$2_memory_ptr",
                    "typeString": "int256[2]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1723,
                      "name": "int256",
                      "nodeType": "ElementaryTypeName",
                      "src": "528:6:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int256",
                        "typeString": "int256"
                      }
                    },
                    "id": 1725,
                    "length": {
                      "argumentTypes": null,
                      "hexValue": "32",
                      "id": 1724,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "535:1:6",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": null,
                        "typeString": null
                      },
                      "value": "2"
                    },
                    "nodeType": "ArrayTypeName",
                    "src": "528:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_int256_$2_storage_ptr",
                      "typeString": "int256[2]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "527:11:6"
            },
            "scope": 1729,
            "src": "437:102:6",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 1730,
        "src": "94:447:6"
      }
    ],
    "src": "0:542:6"
  },
  "legacyAST": {
    "absolutePath": "/Users/fanyshu/Documents/Projects/DCLabs/monorepo/packages/dc-sdk-example/dapp/contracts/interfaces/IGameEngine.sol",
    "exportedSymbols": {
      "IGameEngine": [
        1729
      ]
    },
    "id": 1730,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1675,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:6"
      },
      {
        "id": 1676,
        "literals": [
          "experimental",
          "ABIEncoderV2"
        ],
        "nodeType": "PragmaDirective",
        "src": "25:33:6"
      },
      {
        "absolutePath": "/Users/fanyshu/Documents/Projects/DCLabs/monorepo/packages/dc-sdk-example/dapp/contracts/game/GameObject.sol",
        "file": "../game/GameObject.sol",
        "id": 1677,
        "nodeType": "ImportDirective",
        "scope": 1730,
        "sourceUnit": 363,
        "src": "60:32:6",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 1678,
              "name": "GameObject",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 362,
              "src": "118:10:6",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_GameObject_$362",
                "typeString": "contract GameObject"
              }
            },
            "id": 1679,
            "nodeType": "InheritanceSpecifier",
            "src": "118:10:6"
          }
        ],
        "contractDependencies": [
          362
        ],
        "contractKind": "contract",
        "documentation": null,
        "fullyImplemented": false,
        "id": 1729,
        "linearizedBaseContracts": [
          1729,
          362
        ],
        "name": "IGameEngine",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": null,
            "documentation": null,
            "id": 1694,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "game",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1688,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1681,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "149:19:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1680,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "149:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1684,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "170:16:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1682,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "170:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1683,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "170:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1687,
                  "name": "_randoms",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "188:19:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1685,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "188:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1686,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "188:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "148:60:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1693,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1692,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 1694,
                  "src": "230:9:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_int256_$2_memory_ptr",
                    "typeString": "int256[2]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1689,
                      "name": "int256",
                      "nodeType": "ElementaryTypeName",
                      "src": "230:6:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int256",
                        "typeString": "int256"
                      }
                    },
                    "id": 1691,
                    "length": {
                      "argumentTypes": null,
                      "hexValue": "32",
                      "id": 1690,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "237:1:6",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": null,
                        "typeString": null
                      },
                      "value": "2"
                    },
                    "nodeType": "ArrayTypeName",
                    "src": "230:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_int256_$2_storage_ptr",
                      "typeString": "int256[2]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "229:11:6"
            },
            "scope": 1729,
            "src": "135:106:6",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 1704,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getProfit",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1700,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1696,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1704,
                  "src": "265:18:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1695,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "265:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1699,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1704,
                  "src": "285:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1697,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "285:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1698,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "285:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "264:37:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1703,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1702,
                  "name": "_profit",
                  "nodeType": "VariableDeclaration",
                  "scope": 1704,
                  "src": "323:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1701,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "323:7:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "322:17:6"
            },
            "scope": 1729,
            "src": "246:94:6",
            "stateMutability": "pure",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 1714,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "getPenatlty",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1710,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1706,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1714,
                  "src": "366:18:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1705,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "366:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1709,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1714,
                  "src": "386:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1707,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "386:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1708,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "386:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "365:37:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1713,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1712,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 1714,
                  "src": "423:7:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1711,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "423:7:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "422:9:6"
            },
            "scope": 1729,
            "src": "345:87:6",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": null,
            "documentation": null,
            "id": 1728,
            "implemented": false,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "resolveGame",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1722,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1716,
                  "name": "_gameData",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "458:18:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_gameData_$297_memory_ptr",
                    "typeString": "struct GameObject.gameData"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1715,
                    "name": "gameData",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 297,
                    "src": "458:8:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_gameData_$297_storage_ptr",
                      "typeString": "struct GameObject.gameData"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1719,
                  "name": "_bets",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "478:15:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
                    "typeString": "uint256[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1717,
                      "name": "uint256",
                      "nodeType": "ElementaryTypeName",
                      "src": "478:7:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "id": 1718,
                    "length": null,
                    "nodeType": "ArrayTypeName",
                    "src": "478:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
                      "typeString": "uint256[]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1721,
                  "name": "_signature",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "495:16:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1720,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "495:5:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "457:55:6"
            },
            "payable": false,
            "returnParameters": {
              "id": 1727,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1726,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 1728,
                  "src": "528:9:6",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_int256_$2_memory_ptr",
                    "typeString": "int256[2]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 1723,
                      "name": "int256",
                      "nodeType": "ElementaryTypeName",
                      "src": "528:6:6",
                      "typeDescriptions": {
                        "typeIdentifier": "t_int256",
                        "typeString": "int256"
                      }
                    },
                    "id": 1725,
                    "length": {
                      "argumentTypes": null,
                      "hexValue": "32",
                      "id": 1724,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "535:1:6",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": null,
                        "typeString": null
                      },
                      "value": "2"
                    },
                    "nodeType": "ArrayTypeName",
                    "src": "528:9:6",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_int256_$2_storage_ptr",
                      "typeString": "int256[2]"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "527:11:6"
            },
            "scope": 1729,
            "src": "437:102:6",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 1730,
        "src": "94:447:6"
      }
    ],
    "src": "0:542:6"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.0-beta.0",
  "updatedAt": "2018-12-04T11:48:18.073Z"
}