{
  "contractName": "AddressUtils",
  "abi": [],
  "bytecode": "0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a7230582095dfa01de7922905bfe4b8f973eac243008f547d33e6bf53a4b2500794b9538b0029",
  "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a7230582095dfa01de7922905bfe4b8f973eac243008f547d33e6bf53a4b2500794b9538b0029",
  "sourceMap": "87:930:27:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24",
  "deployedSourceMap": "87:930:27:-;;;;;;;;",
  "source": "pragma solidity ^0.4.23;\n\n\n/**\n * Utility library of inline functions on addresses\n */\nlibrary AddressUtils {\n\n  /**\n   * Returns whether the target address is a contract\n   * @dev This function will return false if invoked during the constructor of a contract,\n   *  as the code is not actually created until after the constructor finishes.\n   * @param addr address to check\n   * @return whether the target address is a contract\n   */\n  function isContract(address addr) internal view returns (bool) {\n    uint256 size;\n    // XXX Currently there is no better way to check if there is a contract in an address\n    // than to check the size of the code at that address.\n    // See https://ethereum.stackexchange.com/a/14016/36603\n    // for more details about how this works.\n    // TODO Check this again before the Serenity release, because all addresses will be\n    // contracts then.\n    // solium-disable-next-line security/no-inline-assembly\n    assembly { size := extcodesize(addr) }\n    return size > 0;\n  }\n\n}\n",
  "sourcePath": "openzeppelin-solidity/contracts/AddressUtils.sol",
  "ast": {
    "absolutePath": "openzeppelin-solidity/contracts/AddressUtils.sol",
    "exportedSymbols": {
      "AddressUtils": [
        4127
      ]
    },
    "id": 4128,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4110,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".23"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:27"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": "Utility library of inline functions on addresses",
        "fullyImplemented": true,
        "id": 4127,
        "linearizedBaseContracts": [
          4127
        ],
        "name": "AddressUtils",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 4125,
              "nodeType": "Block",
              "src": "501:513:27",
              "statements": [
                {
                  "assignments": [],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4118,
                      "name": "size",
                      "nodeType": "VariableDeclaration",
                      "scope": 4126,
                      "src": "507:12:27",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 4117,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "507:7:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4119,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "507:12:27"
                },
                {
                  "externalReferences": [
                    {
                      "size": {
                        "declaration": 4118,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "962:4:27",
                        "valueSize": 1
                      }
                    },
                    {
                      "addr": {
                        "declaration": 4112,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "982:4:27",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 4120,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    size := extcodesize(addr)\n}",
                  "src": "951:49:27"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 4123,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 4121,
                      "name": "size",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4118,
                      "src": "1001:4:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": ">",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "30",
                      "id": 4122,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1008:1:27",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_0_by_1",
                        "typeString": "int_const 0"
                      },
                      "value": "0"
                    },
                    "src": "1001:8:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 4116,
                  "id": 4124,
                  "nodeType": "Return",
                  "src": "994:15:27"
                }
              ]
            },
            "documentation": "Returns whether the target address is a contract\n@dev This function will return false if invoked during the constructor of a contract,\n as the code is not actually created until after the constructor finishes.\n@param addr address to check\n@return whether the target address is a contract",
            "id": 4126,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "isContract",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4113,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4112,
                  "name": "addr",
                  "nodeType": "VariableDeclaration",
                  "scope": 4126,
                  "src": "458:12:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4111,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "458:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "457:14:27"
            },
            "payable": false,
            "returnParameters": {
              "id": 4116,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4115,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4126,
                  "src": "495:4:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 4114,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "495:4:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "494:6:27"
            },
            "scope": 4127,
            "src": "438:576:27",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 4128,
        "src": "87:930:27"
      }
    ],
    "src": "0:1018:27"
  },
  "legacyAST": {
    "absolutePath": "openzeppelin-solidity/contracts/AddressUtils.sol",
    "exportedSymbols": {
      "AddressUtils": [
        4127
      ]
    },
    "id": 4128,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4110,
        "literals": [
          "solidity",
          "^",
          "0.4",
          ".23"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:24:27"
      },
      {
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "library",
        "documentation": "Utility library of inline functions on addresses",
        "fullyImplemented": true,
        "id": 4127,
        "linearizedBaseContracts": [
          4127
        ],
        "name": "AddressUtils",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "body": {
              "id": 4125,
              "nodeType": "Block",
              "src": "501:513:27",
              "statements": [
                {
                  "assignments": [],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4118,
                      "name": "size",
                      "nodeType": "VariableDeclaration",
                      "scope": 4126,
                      "src": "507:12:27",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 4117,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "507:7:27",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4119,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "507:12:27"
                },
                {
                  "externalReferences": [
                    {
                      "size": {
                        "declaration": 4118,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "962:4:27",
                        "valueSize": 1
                      }
                    },
                    {
                      "addr": {
                        "declaration": 4112,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "982:4:27",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 4120,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    size := extcodesize(addr)\n}",
                  "src": "951:49:27"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 4123,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 4121,
                      "name": "size",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4118,
                      "src": "1001:4:27",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": ">",
                    "rightExpression": {
                      "argumentTypes": null,
                      "hexValue": "30",
                      "id": 4122,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "number",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "1008:1:27",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_rational_0_by_1",
                        "typeString": "int_const 0"
                      },
                      "value": "0"
                    },
                    "src": "1001:8:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "functionReturnParameters": 4116,
                  "id": 4124,
                  "nodeType": "Return",
                  "src": "994:15:27"
                }
              ]
            },
            "documentation": "Returns whether the target address is a contract\n@dev This function will return false if invoked during the constructor of a contract,\n as the code is not actually created until after the constructor finishes.\n@param addr address to check\n@return whether the target address is a contract",
            "id": 4126,
            "implemented": true,
            "isConstructor": false,
            "isDeclaredConst": true,
            "modifiers": [],
            "name": "isContract",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4113,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4112,
                  "name": "addr",
                  "nodeType": "VariableDeclaration",
                  "scope": 4126,
                  "src": "458:12:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4111,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "458:7:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "457:14:27"
            },
            "payable": false,
            "returnParameters": {
              "id": 4116,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4115,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4126,
                  "src": "495:4:27",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 4114,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "495:4:27",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "494:6:27"
            },
            "scope": 4127,
            "src": "438:576:27",
            "stateMutability": "view",
            "superFunction": null,
            "visibility": "internal"
          }
        ],
        "scope": 4128,
        "src": "87:930:27"
      }
    ],
    "src": "0:1018:27"
  },
  "compiler": {
    "name": "solc",
    "version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.0-beta.1",
  "updatedAt": "2018-11-01T18:10:50.810Z"
}