UNPKG

kleros-interaction-2

Version:
467 lines 16 kB
{ "contractName": "GeneScienceInterface", "abi": [ { "constant": true, "inputs": [], "name": "isGeneScience", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "genes1", "type": "uint256" }, { "name": "genes2", "type": "uint256" } ], "name": "mixGenes", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "/**\n * @title GeneScienceInterface\n * @author dapperlabs (https://github.com/dapperlabs) \n * This code was taken from https://github.com/dapperlabs at\n * https://github.com/dapperlabs/cryptokitties-bounty and is NOT kleros code.\n */\npragma solidity ^0.4.18;\n\n\n/// @title defined the interface that will be referenced in main Kitty contract\ncontract GeneScienceInterface {\n /// @dev simply a boolean to indicate this is the contract we expect to be\n function isGeneScience() public pure returns (bool);\n\n /// @dev given genes of kitten 1 & 2, return a genetic combination - may have a random factor\n /// @param genes1 genes of mom\n /// @param genes2 genes of sire\n /// @return the genes that are supposed to be passed down the child\n function mixGenes(uint256 genes1, uint256 genes2) public returns (uint256);\n}\n", "sourcePath": "/private/tmp/kleros-interaction/contracts/standard/arbitration/CriptoKitties/ExternalInterfaces/GeneScienceInterface.sol", "ast": { "absolutePath": "/private/tmp/kleros-interaction/contracts/standard/arbitration/CriptoKitties/ExternalInterfaces/GeneScienceInterface.sol", "exportedSymbols": { "GeneScienceInterface": [ 6452 ] }, "id": 6453, "nodeType": "SourceUnit", "nodes": [ { "id": 6437, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "237:24:19" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title defined the interface that will be referenced in main Kitty contract", "fullyImplemented": false, "id": 6452, "linearizedBaseContracts": [ 6452 ], "name": "GeneScienceInterface", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@dev simply a boolean to indicate this is the contract we expect to be", "id": 6442, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isGeneScience", "nodeType": "FunctionDefinition", "parameters": { "id": 6438, "nodeType": "ParameterList", "parameters": [], "src": "481:2:19" }, "payable": false, "returnParameters": { "id": 6441, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6440, "name": "", "nodeType": "VariableDeclaration", "scope": 6442, "src": "505:4:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6439, "name": "bool", "nodeType": "ElementaryTypeName", "src": "505:4:19", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "504:6:19" }, "scope": 6452, "src": "459:52:19", "stateMutability": "pure", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": "@dev given genes of kitten 1 & 2, return a genetic combination - may have a random factor\n @param genes1 genes of mom\n @param genes2 genes of sire\n @return the genes that are supposed to be passed down the child", "id": 6451, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "mixGenes", "nodeType": "FunctionDefinition", "parameters": { "id": 6447, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6444, "name": "genes1", "nodeType": "VariableDeclaration", "scope": 6451, "src": "776:14:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6443, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "776:7:19", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6446, "name": "genes2", "nodeType": "VariableDeclaration", "scope": 6451, "src": "792:14:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6445, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "792:7:19", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "775:32:19" }, "payable": false, "returnParameters": { "id": 6450, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6449, "name": "", "nodeType": "VariableDeclaration", "scope": 6451, "src": "824:7:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6448, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "824:7:19", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "823:9:19" }, "scope": 6452, "src": "758:75:19", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6453, "src": "344:491:19" } ], "src": "237:599:19" }, "legacyAST": { "absolutePath": "/private/tmp/kleros-interaction/contracts/standard/arbitration/CriptoKitties/ExternalInterfaces/GeneScienceInterface.sol", "exportedSymbols": { "GeneScienceInterface": [ 6452 ] }, "id": 6453, "nodeType": "SourceUnit", "nodes": [ { "id": 6437, "literals": [ "solidity", "^", "0.4", ".18" ], "nodeType": "PragmaDirective", "src": "237:24:19" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@title defined the interface that will be referenced in main Kitty contract", "fullyImplemented": false, "id": 6452, "linearizedBaseContracts": [ 6452 ], "name": "GeneScienceInterface", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": "@dev simply a boolean to indicate this is the contract we expect to be", "id": 6442, "implemented": false, "isConstructor": false, "isDeclaredConst": true, "modifiers": [], "name": "isGeneScience", "nodeType": "FunctionDefinition", "parameters": { "id": 6438, "nodeType": "ParameterList", "parameters": [], "src": "481:2:19" }, "payable": false, "returnParameters": { "id": 6441, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6440, "name": "", "nodeType": "VariableDeclaration", "scope": 6442, "src": "505:4:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6439, "name": "bool", "nodeType": "ElementaryTypeName", "src": "505:4:19", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "504:6:19" }, "scope": 6452, "src": "459:52:19", "stateMutability": "pure", "superFunction": null, "visibility": "public" }, { "body": null, "documentation": "@dev given genes of kitten 1 & 2, return a genetic combination - may have a random factor\n @param genes1 genes of mom\n @param genes2 genes of sire\n @return the genes that are supposed to be passed down the child", "id": 6451, "implemented": false, "isConstructor": false, "isDeclaredConst": false, "modifiers": [], "name": "mixGenes", "nodeType": "FunctionDefinition", "parameters": { "id": 6447, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6444, "name": "genes1", "nodeType": "VariableDeclaration", "scope": 6451, "src": "776:14:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6443, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "776:7:19", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 6446, "name": "genes2", "nodeType": "VariableDeclaration", "scope": 6451, "src": "792:14:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6445, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "792:7:19", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "775:32:19" }, "payable": false, "returnParameters": { "id": 6450, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6449, "name": "", "nodeType": "VariableDeclaration", "scope": 6451, "src": "824:7:19", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 6448, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "824:7:19", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "823:9:19" }, "scope": 6452, "src": "758:75:19", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6453, "src": "344:491:19" } ], "src": "237:599:19" }, "compiler": { "name": "solc", "version": "0.4.24+commit.e67f0147.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2018-11-02T14:04:10.981Z" }