{
  "contractName": "BasicOracle",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "dataSource",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "isResultSet",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "id",
          "type": "bytes32"
        }
      ],
      "name": "resultFor",
      "outputs": [
        {
          "name": "",
          "type": "bytes"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "name": "_result",
          "type": "bytes"
        },
        {
          "indexed": false,
          "name": "_sender",
          "type": "address"
        }
      ],
      "name": "ResultSet",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_dataSource",
          "type": "address"
        }
      ],
      "name": "initialize",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_result",
          "type": "bytes"
        }
      ],
      "name": "setResult",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": "0x608060405234801561001057600080fd5b50610957806100206000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b076edc1461007257806353bac2c9146100c9578063944dc9fe14610112578063c4d66de81461017b578063d09cc57e146101be575b600080fd5b34801561007e57600080fd5b50610087610268565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100d557600080fd5b506100f8600480360381019080803560001916906020019092919050505061028e565b604051808215151515815260200191505060405180910390f35b34801561011e57600080fd5b50610179600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506102a7565b005b34801561018757600080fd5b506101bc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061039e565b005b3480156101ca57600080fd5b506101ed6004803603810190808035600019169060200190929190505050610515565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561022d578082015181840152602081019050610212565b50505050905090810190601f16801561025a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b603460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603460009054906101000a900460ff169050919050565b603460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610392576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001807f5468652063616c6c6572206973206e6f7420746865206461746120736f75726381526020017f652e00000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b61039b816106df565b50565b60008060019054906101000a900460ff16806103be57506103bd610872565b5b806103d557506000809054906101000a900460ff16155b151561046f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555081603460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548160ff0219169083151502179055505050565b606060006001026000191682600019161415156105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f54686973206f7261636c6520646f6573206e6f7420737570706f72742069647381526020017f2e0000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b6105c98261028e565b151561063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f54686520726573756c7420686173206e6f74206265656e207365742e0000000081525060200191505060405180910390fd5b60338054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106d35780601f106106a8576101008083540402835291602001916106d3565b820191906000526020600020905b8154815290600101906020018083116106b657829003601f168201915b50505050509050919050565b603460009054906101000a900460ff16151515610764576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f526573756c742068617320616c7265616479206265656e207365742e0000000081525060200191505060405180910390fd5b806033908051906020019061077a929190610886565b506001603460006101000a81548160ff0219169083151502179055507fec9117e779c7185025120058429df00dfe012336e6dfe5ad326b4973db23c2d2813360405180806020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019080838360005b8381101561082b578082015181840152602081019050610810565b50505050905090810190601f1680156108585780820380516001836020036101000a031916815260200191505b50935050505060405180910390a161086f81610883565b50565b600080303b90506000811491505090565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106108c757805160ff19168380011785556108f5565b828001600101855582156108f5579182015b828111156108f45782518255916020019190600101906108d9565b5b5090506109029190610906565b5090565b61092891905b8082111561092457600081600090555060010161090c565b5090565b905600a165627a7a72305820f4024ffb831faa3a737eddfea3090dabe68fad32e191209554e6cc96828670f40029",
  "deployedBytecode": "0x60806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631b076edc1461007257806353bac2c9146100c9578063944dc9fe14610112578063c4d66de81461017b578063d09cc57e146101be575b600080fd5b34801561007e57600080fd5b50610087610268565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100d557600080fd5b506100f8600480360381019080803560001916906020019092919050505061028e565b604051808215151515815260200191505060405180910390f35b34801561011e57600080fd5b50610179600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506102a7565b005b34801561018757600080fd5b506101bc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061039e565b005b3480156101ca57600080fd5b506101ed6004803603810190808035600019169060200190929190505050610515565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561022d578082015181840152602081019050610212565b50505050905090810190601f16801561025a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b603460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603460009054906101000a900460ff169050919050565b603460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610392576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001807f5468652063616c6c6572206973206e6f7420746865206461746120736f75726381526020017f652e00000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b61039b816106df565b50565b60008060019054906101000a900460ff16806103be57506103bd610872565b5b806103d557506000809054906101000a900460ff16155b151561046f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555081603460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548160ff0219169083151502179055505050565b606060006001026000191682600019161415156105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f54686973206f7261636c6520646f6573206e6f7420737570706f72742069647381526020017f2e0000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b6105c98261028e565b151561063d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f54686520726573756c7420686173206e6f74206265656e207365742e0000000081525060200191505060405180910390fd5b60338054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106d35780601f106106a8576101008083540402835291602001916106d3565b820191906000526020600020905b8154815290600101906020018083116106b657829003601f168201915b50505050509050919050565b603460009054906101000a900460ff16151515610764576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f526573756c742068617320616c7265616479206265656e207365742e0000000081525060200191505060405180910390fd5b806033908051906020019061077a929190610886565b506001603460006101000a81548160ff0219169083151502179055507fec9117e779c7185025120058429df00dfe012336e6dfe5ad326b4973db23c2d2813360405180806020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019080838360005b8381101561082b578082015181840152602081019050610810565b50505050905090810190601f1680156108585780820380516001836020036101000a031916815260200191505b50935050505060405180910390a161086f81610883565b50565b600080303b90506000811491505090565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106108c757805160ff19168380011785556108f5565b828001600101855582156108f5579182015b828111156108f45782518255916020019190600101906108d9565b5b5090506109029190610906565b5090565b61092891905b8082111561092457600081600090555060010161090c565b5090565b905600a165627a7a72305820f4024ffb831faa3a737eddfea3090dabe68fad32e191209554e6cc96828670f40029",
  "sourceMap": "211:591:11:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;211:591:11;;;;;;;",
  "deployedSourceMap": "211:591:11:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;314:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;314:25:11;;;;;;;;;;;;;;;;;;;;;;;;;;;945:93:15;;8:9:-1;5:2;;;30:1;27;20:12;5:2;945:93:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;651:148:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;651:148:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;459:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;459:95:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;625:215:15;;8:9:-1;5:2;;;30:1;27;20:12;5:2;625:215:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;625:215:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;314:25:11;;;;;;;;;;;;;:::o;945:93:15:-;1003:4;1022:11;;;;;;;;;;;1015:18;;945:93;;;:::o;651:148:11:-;720:10;;;;;;;;;;;706:24;;:10;:24;;;698:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;775:19;786:7;775:10;:19::i;:::-;651:148;:::o;459:95::-;1121:20:29;1016:12;;;;;;;;;;;:31;;;;1032:15;:13;:15::i;:::-;1016:31;:47;;;;1052:11;;;;;;;;;;;1051:12;1016:47;1008:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1144:12;;;;;;;;;;;1121:35;;1177:4;1162:12;;:19;;;;;;;;;;;;;;;;;;1201:4;1187:11;;:18;;;;;;;;;;;;;;;;;;538:11:11;525:10;;:24;;;;;;;;;;;;;;;;;;1235:15:29;1220:12;;:30;;;;;;;;;;;;;;;;;;459:95:11;;:::o;625:215:15:-;679:5;714:1;706:10;;700:16;;;:2;:16;;;;692:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;768:15;780:2;768:11;:15::i;:::-;760:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;829:6;822:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;625:215;;;:::o;1259:223::-;1318:11;;;;;;;;;;;1317:12;1309:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1377:7;1368:6;:16;;;;;;;;;;;;:::i;:::-;;1404:4;1390:11;;:18;;;;;;;;;;;;;;;;;;1419:30;1429:7;1438:10;1419:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1419:30:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1455:22;1469:7;1455:13;:22::i;:::-;1259:223;:::o;1341:467:29:-;1388:4;1729:10;1774:7;1762:20;1756:26;;1802:1;1796:2;:7;1789:14;;1341:467;;:::o;1559:81:15:-;;:::o;211:591:11:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o",
  "source": "pragma solidity ^0.4.24;\n\nimport \"./OracleBase.sol\";\nimport \"zos-lib/contracts/Initializable.sol\";\n\n/**\n * @title BasicOracle\n * @dev Extends OracleBase to allow the result to be set by a single data source\n */\ncontract BasicOracle is Initializable, OracleBase {\n\n  // The address that is able to set the result\n  address public dataSource;\n\n  /**\n   *  @dev BasicOracle constructor\n   *  @param _dataSource The address that is able to set the result\n   */\n  function initialize(address _dataSource) initializer public {\n    dataSource = _dataSource;\n  }\n\n  /**\n   * @dev Sets the result of the oracle\n   * @param _result The result being set\n   */\n  function setResult(bytes _result) public {\n    require(msg.sender == dataSource, \"The caller is not the data source.\");\n    _setResult(_result);\n  }\n\n}\n",
  "sourcePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/BasicOracle.sol",
  "ast": {
    "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/BasicOracle.sol",
    "exportedSymbols": {
      "BasicOracle": [
        256
      ]
    },
    "id": 257,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 217,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:11"
      },
      {
        "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/OracleBase.sol",
        "file": "./OracleBase.sol",
        "id": 218,
        "nodeType": "ImportDirective",
        "scope": 257,
        "sourceUnit": 735,
        "src": "26:26:11",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "zos-lib/contracts/Initializable.sol",
        "file": "zos-lib/contracts/Initializable.sol",
        "id": 219,
        "nodeType": "ImportDirective",
        "scope": 257,
        "sourceUnit": 3242,
        "src": "53:45:11",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 220,
              "name": "Initializable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3241,
              "src": "235:13:11",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Initializable_$3241",
                "typeString": "contract Initializable"
              }
            },
            "id": 221,
            "nodeType": "InheritanceSpecifier",
            "src": "235:13:11"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 222,
              "name": "OracleBase",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 734,
              "src": "250:10:11",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_OracleBase_$734",
                "typeString": "contract OracleBase"
              }
            },
            "id": 223,
            "nodeType": "InheritanceSpecifier",
            "src": "250:10:11"
          }
        ],
        "contractDependencies": [
          273,
          734,
          3241
        ],
        "contractKind": "contract",
        "documentation": "@title BasicOracle\n@dev Extends OracleBase to allow the result to be set by a single data source",
        "fullyImplemented": true,
        "id": 256,
        "linearizedBaseContracts": [
          256,
          734,
          273,
          3241
        ],
        "name": "BasicOracle",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 225,
            "name": "dataSource",
            "nodeType": "VariableDeclaration",
            "scope": 256,
            "src": "314:25:11",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 224,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "314:7:11",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 236,
              "nodeType": "Block",
              "src": "519:35:11",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 234,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 232,
                      "name": "dataSource",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 225,
                      "src": "525:10:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 233,
                      "name": "_dataSource",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 227,
                      "src": "538:11:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "525:24:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 235,
                  "nodeType": "ExpressionStatement",
                  "src": "525:24:11"
                }
              ]
            },
            "documentation": " @dev BasicOracle constructor\n @param _dataSource The address that is able to set the result",
            "id": 237,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [
              {
                "arguments": null,
                "id": 230,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 229,
                  "name": "initializer",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 3222,
                  "src": "500:11:11",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "500:11:11"
              }
            ],
            "name": "initialize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 228,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 227,
                  "name": "_dataSource",
                  "nodeType": "VariableDeclaration",
                  "scope": 237,
                  "src": "479:19:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 226,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "479:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "478:21:11"
            },
            "payable": false,
            "returnParameters": {
              "id": 231,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "519:0:11"
            },
            "scope": 256,
            "src": "459:95:11",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 254,
              "nodeType": "Block",
              "src": "692:107:11",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 246,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 243,
                            "name": "msg",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 3256,
                            "src": "706:3:11",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_message",
                              "typeString": "msg"
                            }
                          },
                          "id": 244,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "sender",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "706:10:11",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 245,
                          "name": "dataSource",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 225,
                          "src": "720:10:11",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "706:24:11",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "5468652063616c6c6572206973206e6f7420746865206461746120736f757263652e",
                        "id": 247,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "732:36:11",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_ee275928c1e5b2aa851a82b732533e3c0c17c63c445c51da812066f67316e759",
                          "typeString": "literal_string \"The caller is not the data source.\""
                        },
                        "value": "The caller is not the data source."
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_ee275928c1e5b2aa851a82b732533e3c0c17c63c445c51da812066f67316e759",
                          "typeString": "literal_string \"The caller is not the data source.\""
                        }
                      ],
                      "id": 242,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        3259,
                        3260
                      ],
                      "referencedDeclaration": 3260,
                      "src": "698:7:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 248,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "698:71:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 249,
                  "nodeType": "ExpressionStatement",
                  "src": "698:71:11"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 251,
                        "name": "_result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 239,
                        "src": "786:7:11",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 250,
                      "name": "_setResult",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 727,
                      "src": "775:10:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$__$",
                        "typeString": "function (bytes memory)"
                      }
                    },
                    "id": 252,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "775:19:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 253,
                  "nodeType": "ExpressionStatement",
                  "src": "775:19:11"
                }
              ]
            },
            "documentation": "@dev Sets the result of the oracle\n@param _result The result being set",
            "id": 255,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "setResult",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 240,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 239,
                  "name": "_result",
                  "nodeType": "VariableDeclaration",
                  "scope": 255,
                  "src": "670:13:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 238,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "670:5:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "669:15:11"
            },
            "payable": false,
            "returnParameters": {
              "id": 241,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "692:0:11"
            },
            "scope": 256,
            "src": "651:148:11",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 257,
        "src": "211:591:11"
      }
    ],
    "src": "0:803:11"
  },
  "legacyAST": {
    "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/BasicOracle.sol",
    "exportedSymbols": {
      "BasicOracle": [
        256
      ]
    },
    "id": 257,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 217,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:11"
      },
      {
        "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/OracleBase.sol",
        "file": "./OracleBase.sol",
        "id": 218,
        "nodeType": "ImportDirective",
        "scope": 257,
        "sourceUnit": 735,
        "src": "26:26:11",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "zos-lib/contracts/Initializable.sol",
        "file": "zos-lib/contracts/Initializable.sol",
        "id": 219,
        "nodeType": "ImportDirective",
        "scope": 257,
        "sourceUnit": 3242,
        "src": "53:45:11",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 220,
              "name": "Initializable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3241,
              "src": "235:13:11",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Initializable_$3241",
                "typeString": "contract Initializable"
              }
            },
            "id": 221,
            "nodeType": "InheritanceSpecifier",
            "src": "235:13:11"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 222,
              "name": "OracleBase",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 734,
              "src": "250:10:11",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_OracleBase_$734",
                "typeString": "contract OracleBase"
              }
            },
            "id": 223,
            "nodeType": "InheritanceSpecifier",
            "src": "250:10:11"
          }
        ],
        "contractDependencies": [
          273,
          734,
          3241
        ],
        "contractKind": "contract",
        "documentation": "@title BasicOracle\n@dev Extends OracleBase to allow the result to be set by a single data source",
        "fullyImplemented": true,
        "id": 256,
        "linearizedBaseContracts": [
          256,
          734,
          273,
          3241
        ],
        "name": "BasicOracle",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 225,
            "name": "dataSource",
            "nodeType": "VariableDeclaration",
            "scope": 256,
            "src": "314:25:11",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 224,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "314:7:11",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 236,
              "nodeType": "Block",
              "src": "519:35:11",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 234,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 232,
                      "name": "dataSource",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 225,
                      "src": "525:10:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 233,
                      "name": "_dataSource",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 227,
                      "src": "538:11:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "525:24:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 235,
                  "nodeType": "ExpressionStatement",
                  "src": "525:24:11"
                }
              ]
            },
            "documentation": " @dev BasicOracle constructor\n @param _dataSource The address that is able to set the result",
            "id": 237,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [
              {
                "arguments": null,
                "id": 230,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 229,
                  "name": "initializer",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 3222,
                  "src": "500:11:11",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "500:11:11"
              }
            ],
            "name": "initialize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 228,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 227,
                  "name": "_dataSource",
                  "nodeType": "VariableDeclaration",
                  "scope": 237,
                  "src": "479:19:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 226,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "479:7:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "478:21:11"
            },
            "payable": false,
            "returnParameters": {
              "id": 231,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "519:0:11"
            },
            "scope": 256,
            "src": "459:95:11",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 254,
              "nodeType": "Block",
              "src": "692:107:11",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 246,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "expression": {
                            "argumentTypes": null,
                            "id": 243,
                            "name": "msg",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 3256,
                            "src": "706:3:11",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_message",
                              "typeString": "msg"
                            }
                          },
                          "id": 244,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "memberName": "sender",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "706:10:11",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 245,
                          "name": "dataSource",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 225,
                          "src": "720:10:11",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "706:24:11",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "5468652063616c6c6572206973206e6f7420746865206461746120736f757263652e",
                        "id": 247,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "732:36:11",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_ee275928c1e5b2aa851a82b732533e3c0c17c63c445c51da812066f67316e759",
                          "typeString": "literal_string \"The caller is not the data source.\""
                        },
                        "value": "The caller is not the data source."
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_ee275928c1e5b2aa851a82b732533e3c0c17c63c445c51da812066f67316e759",
                          "typeString": "literal_string \"The caller is not the data source.\""
                        }
                      ],
                      "id": 242,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        3259,
                        3260
                      ],
                      "referencedDeclaration": 3260,
                      "src": "698:7:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 248,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "698:71:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 249,
                  "nodeType": "ExpressionStatement",
                  "src": "698:71:11"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 251,
                        "name": "_result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 239,
                        "src": "786:7:11",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "id": 250,
                      "name": "_setResult",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 727,
                      "src": "775:10:11",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$__$",
                        "typeString": "function (bytes memory)"
                      }
                    },
                    "id": 252,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "775:19:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 253,
                  "nodeType": "ExpressionStatement",
                  "src": "775:19:11"
                }
              ]
            },
            "documentation": "@dev Sets the result of the oracle\n@param _result The result being set",
            "id": 255,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "setResult",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 240,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 239,
                  "name": "_result",
                  "nodeType": "VariableDeclaration",
                  "scope": 255,
                  "src": "670:13:11",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 238,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "670:5:11",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "669:15:11"
            },
            "payable": false,
            "returnParameters": {
              "id": 241,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "692:0:11"
            },
            "scope": 256,
            "src": "651:148:11",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 257,
        "src": "211:591:11"
      }
    ],
    "src": "0:803:11"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2018-10-31T13:24:20.718Z"
}