{
  "contractName": "PushOracleBase",
  "abi": [
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "isResultSet",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "consumer",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "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": "_consumer",
          "type": "address"
        },
        {
          "name": "unusedParam",
          "type": "uint256"
        }
      ],
      "name": "initialize",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": "0x608060405234801561001057600080fd5b506105bc806100206000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806353bac2c914610067578063b4fd7296146100b0578063cd6dc68714610107578063d09cc57e14610154575b600080fd5b34801561007357600080fd5b5061009660048036038101908080356000191690602001909291905050506101fe565b604051808215151515815260200191505060405180910390f35b3480156100bc57600080fd5b506100c5610217565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561011357600080fd5b50610152600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061023d565b005b34801561016057600080fd5b5061018360048036038101908080356000191690602001909291905050506103b5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101c35780820151818401526020810190506101a8565b50505050905090810190601f1680156101f05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000603460009054906101000a900460ff169050919050565b603460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff168061025d575061025c61057f565b5b8061027457506000809054906101000a900460ff16155b151561030e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555082603460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548160ff021916908315150217905550505050565b60606000600102600019168260001916141515610460576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f54686973206f7261636c6520646f6573206e6f7420737570706f72742069647381526020017f2e0000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b610469826101fe565b15156104dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f54686520726573756c7420686173206e6f74206265656e207365742e0000000081525060200191505060405180910390fd5b60338054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105735780601f1061054857610100808354040283529160200191610573565b820191906000526020600020905b81548152906001019060200180831161055657829003601f168201915b50505050509050919050565b600080303b905060008114915050905600a165627a7a7230582000fbd15e6f3e1ecf2b4f230f7584e30116ca7ed028a0ca948794926687aa7dab0029",
  "deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806353bac2c914610067578063b4fd7296146100b0578063cd6dc68714610107578063d09cc57e14610154575b600080fd5b34801561007357600080fd5b5061009660048036038101908080356000191690602001909291905050506101fe565b604051808215151515815260200191505060405180910390f35b3480156100bc57600080fd5b506100c5610217565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561011357600080fd5b50610152600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061023d565b005b34801561016057600080fd5b5061018360048036038101908080356000191690602001909291905050506103b5565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101c35780820151818401526020810190506101a8565b50505050905090810190601f1680156101f05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000603460009054906101000a900460ff169050919050565b603460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff168061025d575061025c61057f565b5b8061027457506000809054906101000a900460ff16155b151561030e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001807f436f6e747261637420696e7374616e63652068617320616c726561647920626581526020017f656e20696e697469616c697a656400000000000000000000000000000000000081525060400191505060405180910390fd5b600060019054906101000a900460ff1690506001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff02191690831515021790555082603460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548160ff021916908315150217905550505050565b60606000600102600019168260001916141515610460576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001807f54686973206f7261636c6520646f6573206e6f7420737570706f72742069647381526020017f2e0000000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b610469826101fe565b15156104dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f54686520726573756c7420686173206e6f74206265656e207365742e0000000081525060200191505060405180910390fd5b60338054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105735780601f1061054857610100808354040283529160200191610573565b820191906000526020600020905b81548152906001019060200180831161055657829003601f168201915b50505050509050919050565b600080303b905060008114915050905600a165627a7a7230582000fbd15e6f3e1ecf2b4f230f7584e30116ca7ed028a0ca948794926687aa7dab0029",
  "sourceMap": "283:767:22:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;283:767:22;;;;;;;",
  "deployedSourceMap": "283:767:22:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;945:93:15;;8:9:-1;5:2;;;30:1;27;20:12;5:2;945:93:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;341:31:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;341:31:22;;;;;;;;;;;;;;;;;;;;;;;;;;;540:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;540:115:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;945:93;1003:4;1022:11;;;;;;;;;;;1015:18;;945:93;;;:::o;341:31:22:-;;;;;;;;;;;;;:::o;540:115::-;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;;;;;;;;;;;;;;;;;;641:9:22;630:8;;:20;;;;;;;;;;;;;;;;;;1235:15:29;1220:12;;:30;;;;;;;;;;;;;;;;;;540:115:22;;;:::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;1341:467:29:-;1388:4;1729:10;1774:7;1762:20;1756:26;;1802:1;1796:2;:7;1789:14;;1341:467;;:::o",
  "source": "pragma solidity ^0.4.24;\n\nimport \"./IOracleConsumer.sol\";\nimport \"../Oracles/OracleBase.sol\";\nimport \"zos-lib/contracts/Initializable.sol\";\n\n/**\n * @title PushOracleBase\n * @dev Extends OracleBase to be a push type oracle by calling an oracle consumer\n * when the result is set\n */ \ncontract PushOracleBase is Initializable, OracleBase {\n\n  IOracleConsumer public consumer;\n\n  /**\n   * @dev PushOracleBase constructor\n   * @param _consumer A contract that implements IOracleConsumer and is called when\n   * the result has been set.\n   */\n  function initialize(IOracleConsumer _consumer, uint unusedParam) initializer public {\n    consumer = _consumer;\n  }\n\n  /**\n   *  Internal functions\n   */\n\n  /**\n   * @dev Calls receiveResult(bytes32, bytes) on the oracle consumer when the \n   * result is set\n   * @dev Called by _setResult(bytes) in OracleBase\n   * @param _result The result being set in _setResult(bytes)\n   */\n  function _resultWasSet(bytes _result) internal {\n    super._resultWasSet(_result);\n    consumer.receiveResult(0, _result);\n  }\n\n}\n",
  "sourcePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/PushOracles/PushOracleBase.sol",
  "ast": {
    "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/PushOracles/PushOracleBase.sol",
    "exportedSymbols": {
      "PushOracleBase": [
        1113
      ]
    },
    "id": 1114,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1070,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:22"
      },
      {
        "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/PushOracles/IOracleConsumer.sol",
        "file": "./IOracleConsumer.sol",
        "id": 1071,
        "nodeType": "ImportDirective",
        "scope": 1114,
        "sourceUnit": 1069,
        "src": "26:31:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/OracleBase.sol",
        "file": "../Oracles/OracleBase.sol",
        "id": 1072,
        "nodeType": "ImportDirective",
        "scope": 1114,
        "sourceUnit": 735,
        "src": "58:35:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "zos-lib/contracts/Initializable.sol",
        "file": "zos-lib/contracts/Initializable.sol",
        "id": 1073,
        "nodeType": "ImportDirective",
        "scope": 1114,
        "sourceUnit": 3242,
        "src": "94:45:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 1074,
              "name": "Initializable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3241,
              "src": "310:13:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Initializable_$3241",
                "typeString": "contract Initializable"
              }
            },
            "id": 1075,
            "nodeType": "InheritanceSpecifier",
            "src": "310:13:22"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 1076,
              "name": "OracleBase",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 734,
              "src": "325:10:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_OracleBase_$734",
                "typeString": "contract OracleBase"
              }
            },
            "id": 1077,
            "nodeType": "InheritanceSpecifier",
            "src": "325:10:22"
          }
        ],
        "contractDependencies": [
          273,
          734,
          3241
        ],
        "contractKind": "contract",
        "documentation": "@title PushOracleBase\n@dev Extends OracleBase to be a push type oracle by calling an oracle consumer\nwhen the result is set",
        "fullyImplemented": true,
        "id": 1113,
        "linearizedBaseContracts": [
          1113,
          734,
          273,
          3241
        ],
        "name": "PushOracleBase",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 1079,
            "name": "consumer",
            "nodeType": "VariableDeclaration",
            "scope": 1113,
            "src": "341:31:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
              "typeString": "contract IOracleConsumer"
            },
            "typeName": {
              "contractScope": null,
              "id": 1078,
              "name": "IOracleConsumer",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 1068,
              "src": "341:15:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                "typeString": "contract IOracleConsumer"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1092,
              "nodeType": "Block",
              "src": "624:31:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 1090,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 1088,
                      "name": "consumer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1079,
                      "src": "630:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                        "typeString": "contract IOracleConsumer"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 1089,
                      "name": "_consumer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1081,
                      "src": "641:9:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                        "typeString": "contract IOracleConsumer"
                      }
                    },
                    "src": "630:20:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                      "typeString": "contract IOracleConsumer"
                    }
                  },
                  "id": 1091,
                  "nodeType": "ExpressionStatement",
                  "src": "630:20:22"
                }
              ]
            },
            "documentation": "@dev PushOracleBase constructor\n@param _consumer A contract that implements IOracleConsumer and is called when\nthe result has been set.",
            "id": 1093,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [
              {
                "arguments": null,
                "id": 1086,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 1085,
                  "name": "initializer",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 3222,
                  "src": "605:11:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "605:11:22"
              }
            ],
            "name": "initialize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1084,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1081,
                  "name": "_consumer",
                  "nodeType": "VariableDeclaration",
                  "scope": 1093,
                  "src": "560:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                    "typeString": "contract IOracleConsumer"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1080,
                    "name": "IOracleConsumer",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1068,
                    "src": "560:15:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                      "typeString": "contract IOracleConsumer"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1083,
                  "name": "unusedParam",
                  "nodeType": "VariableDeclaration",
                  "scope": 1093,
                  "src": "587:16:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1082,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "587:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "559:45:22"
            },
            "payable": false,
            "returnParameters": {
              "id": 1087,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "624:0:22"
            },
            "scope": 1113,
            "src": "540:115:22",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1111,
              "nodeType": "Block",
              "src": "968:79:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 1101,
                        "name": "_result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1095,
                        "src": "994:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 1098,
                        "name": "super",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3284,
                        "src": "974:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_super$_PushOracleBase_$1113",
                          "typeString": "contract super PushOracleBase"
                        }
                      },
                      "id": 1100,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "_resultWasSet",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 733,
                      "src": "974:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$__$",
                        "typeString": "function (bytes memory)"
                      }
                    },
                    "id": 1102,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "974:28:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1103,
                  "nodeType": "ExpressionStatement",
                  "src": "974:28:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 1107,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1031:1:22",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      {
                        "argumentTypes": null,
                        "id": 1108,
                        "name": "_result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1095,
                        "src": "1034:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 1104,
                        "name": "consumer",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1079,
                        "src": "1008:8:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                          "typeString": "contract IOracleConsumer"
                        }
                      },
                      "id": 1106,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "receiveResult",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1067,
                      "src": "1008:22:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$returns$__$",
                        "typeString": "function (bytes32,bytes memory) external"
                      }
                    },
                    "id": 1109,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1008:34:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1110,
                  "nodeType": "ExpressionStatement",
                  "src": "1008:34:22"
                }
              ]
            },
            "documentation": "@dev Calls receiveResult(bytes32, bytes) on the oracle consumer when the \nresult is set\n@dev Called by _setResult(bytes) in OracleBase\n@param _result The result being set in _setResult(bytes)",
            "id": 1112,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "_resultWasSet",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1096,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1095,
                  "name": "_result",
                  "nodeType": "VariableDeclaration",
                  "scope": 1112,
                  "src": "944:13:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1094,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "944:5:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "943:15:22"
            },
            "payable": false,
            "returnParameters": {
              "id": 1097,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "968:0:22"
            },
            "scope": 1113,
            "src": "921:126:22",
            "stateMutability": "nonpayable",
            "superFunction": 733,
            "visibility": "internal"
          }
        ],
        "scope": 1114,
        "src": "283:767:22"
      }
    ],
    "src": "0:1051:22"
  },
  "legacyAST": {
    "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/PushOracles/PushOracleBase.sol",
    "exportedSymbols": {
      "PushOracleBase": [
        1113
      ]
    },
    "id": 1114,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1070,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".24"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:22"
      },
      {
        "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/PushOracles/IOracleConsumer.sol",
        "file": "./IOracleConsumer.sol",
        "id": 1071,
        "nodeType": "ImportDirective",
        "scope": 1114,
        "sourceUnit": 1069,
        "src": "26:31:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/Users/mfcalvanese/dev/eth/tidbit-eth/contracts/Oracles/OracleBase.sol",
        "file": "../Oracles/OracleBase.sol",
        "id": 1072,
        "nodeType": "ImportDirective",
        "scope": 1114,
        "sourceUnit": 735,
        "src": "58:35:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "zos-lib/contracts/Initializable.sol",
        "file": "zos-lib/contracts/Initializable.sol",
        "id": 1073,
        "nodeType": "ImportDirective",
        "scope": 1114,
        "sourceUnit": 3242,
        "src": "94:45:22",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 1074,
              "name": "Initializable",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 3241,
              "src": "310:13:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Initializable_$3241",
                "typeString": "contract Initializable"
              }
            },
            "id": 1075,
            "nodeType": "InheritanceSpecifier",
            "src": "310:13:22"
          },
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 1076,
              "name": "OracleBase",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 734,
              "src": "325:10:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_OracleBase_$734",
                "typeString": "contract OracleBase"
              }
            },
            "id": 1077,
            "nodeType": "InheritanceSpecifier",
            "src": "325:10:22"
          }
        ],
        "contractDependencies": [
          273,
          734,
          3241
        ],
        "contractKind": "contract",
        "documentation": "@title PushOracleBase\n@dev Extends OracleBase to be a push type oracle by calling an oracle consumer\nwhen the result is set",
        "fullyImplemented": true,
        "id": 1113,
        "linearizedBaseContracts": [
          1113,
          734,
          273,
          3241
        ],
        "name": "PushOracleBase",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 1079,
            "name": "consumer",
            "nodeType": "VariableDeclaration",
            "scope": 1113,
            "src": "341:31:22",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
              "typeString": "contract IOracleConsumer"
            },
            "typeName": {
              "contractScope": null,
              "id": 1078,
              "name": "IOracleConsumer",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 1068,
              "src": "341:15:22",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                "typeString": "contract IOracleConsumer"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1092,
              "nodeType": "Block",
              "src": "624:31:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 1090,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 1088,
                      "name": "consumer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1079,
                      "src": "630:8:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                        "typeString": "contract IOracleConsumer"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 1089,
                      "name": "_consumer",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1081,
                      "src": "641:9:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                        "typeString": "contract IOracleConsumer"
                      }
                    },
                    "src": "630:20:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                      "typeString": "contract IOracleConsumer"
                    }
                  },
                  "id": 1091,
                  "nodeType": "ExpressionStatement",
                  "src": "630:20:22"
                }
              ]
            },
            "documentation": "@dev PushOracleBase constructor\n@param _consumer A contract that implements IOracleConsumer and is called when\nthe result has been set.",
            "id": 1093,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [
              {
                "arguments": null,
                "id": 1086,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 1085,
                  "name": "initializer",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 3222,
                  "src": "605:11:22",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$__$",
                    "typeString": "modifier ()"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "605:11:22"
              }
            ],
            "name": "initialize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1084,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1081,
                  "name": "_consumer",
                  "nodeType": "VariableDeclaration",
                  "scope": 1093,
                  "src": "560:25:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                    "typeString": "contract IOracleConsumer"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 1080,
                    "name": "IOracleConsumer",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 1068,
                    "src": "560:15:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                      "typeString": "contract IOracleConsumer"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1083,
                  "name": "unusedParam",
                  "nodeType": "VariableDeclaration",
                  "scope": 1093,
                  "src": "587:16:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1082,
                    "name": "uint",
                    "nodeType": "ElementaryTypeName",
                    "src": "587:4:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "559:45:22"
            },
            "payable": false,
            "returnParameters": {
              "id": 1087,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "624:0:22"
            },
            "scope": 1113,
            "src": "540:115:22",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 1111,
              "nodeType": "Block",
              "src": "968:79:22",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 1101,
                        "name": "_result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1095,
                        "src": "994:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 1098,
                        "name": "super",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3284,
                        "src": "974:5:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_super$_PushOracleBase_$1113",
                          "typeString": "contract super PushOracleBase"
                        }
                      },
                      "id": 1100,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "_resultWasSet",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 733,
                      "src": "974:19:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_bytes_memory_ptr_$returns$__$",
                        "typeString": "function (bytes memory)"
                      }
                    },
                    "id": 1102,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "974:28:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1103,
                  "nodeType": "ExpressionStatement",
                  "src": "974:28:22"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "hexValue": "30",
                        "id": 1107,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1031:1:22",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        "value": "0"
                      },
                      {
                        "argumentTypes": null,
                        "id": 1108,
                        "name": "_result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1095,
                        "src": "1034:7:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_rational_0_by_1",
                          "typeString": "int_const 0"
                        },
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 1104,
                        "name": "consumer",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1079,
                        "src": "1008:8:22",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IOracleConsumer_$1068",
                          "typeString": "contract IOracleConsumer"
                        }
                      },
                      "id": 1106,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "receiveResult",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 1067,
                      "src": "1008:22:22",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$returns$__$",
                        "typeString": "function (bytes32,bytes memory) external"
                      }
                    },
                    "id": 1109,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1008:34:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1110,
                  "nodeType": "ExpressionStatement",
                  "src": "1008:34:22"
                }
              ]
            },
            "documentation": "@dev Calls receiveResult(bytes32, bytes) on the oracle consumer when the \nresult is set\n@dev Called by _setResult(bytes) in OracleBase\n@param _result The result being set in _setResult(bytes)",
            "id": 1112,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": false,
            "modifiers": [],
            "name": "_resultWasSet",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1096,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1095,
                  "name": "_result",
                  "nodeType": "VariableDeclaration",
                  "scope": 1112,
                  "src": "944:13:22",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1094,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "944:5:22",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "943:15:22"
            },
            "payable": false,
            "returnParameters": {
              "id": 1097,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "968:0:22"
            },
            "scope": 1113,
            "src": "921:126:22",
            "stateMutability": "nonpayable",
            "superFunction": 733,
            "visibility": "internal"
          }
        ],
        "scope": 1114,
        "src": "283:767:22"
      }
    ],
    "src": "0:1051:22"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.24+commit.e67f0147.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "2.0.1",
  "updatedAt": "2018-10-31T13:24:20.728Z"
}