real-estate-marketplace/contracts/interfaces/artifacts/build-info/c0a4c2d1b731d7e7063926cb2aa022ab.json
2024-08-18 00:39:26 +03:00

1743 lines
55 KiB
JSON

{
"id": "c0a4c2d1b731d7e7063926cb2aa022ab",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/interfaces/IProperty.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IProperty {\n // Enum to represent the state of the property\n enum PropertyStatus { Active, Inactive, Sold, Removed }\n\n // Structure to define the details of a property\n struct PropertyDetails {\n uint256 id;\n address owner;\n string location;\n string description;\n uint256 price;\n PropertyStatus status;\n uint256 createdAt;\n uint256 updatedAt;\n }\n\n // Events\n event PropertyCreated(uint256 indexed propertyId, address indexed owner, string location, string description, uint256 price);\n event PropertyUpdated(uint256 indexed propertyId, uint256 newPrice, PropertyStatus newStatus);\n event PropertyOwnershipTransferred(uint256 indexed propertyId, address indexed newOwner, uint256 price);\n event PropertyStatusChanged(uint256 indexed propertyId, PropertyStatus newStatus);\n event PropertyRemoved(uint256 indexed propertyId, address indexed owner);\n\n // Function to get property details\n function getPropertyDetails(uint256 propertyId) external view returns (PropertyDetails memory);\n\n // Function to update property details\n function updateProperty(uint256 propertyId, string calldata location, string calldata description, uint256 price) external;\n\n // Function to transfer ownership of the property\n function transferOwnership(uint256 propertyId, address newOwner) external payable;\n\n // Function to change the status of the property\n function changePropertyStatus(uint256 propertyId, PropertyStatus newStatus) external;\n\n // Function to remove the property from the system\n function removeProperty(uint256 propertyId) external;\n\n // Function to get the total number of properties managed by the contract\n function getTotalProperties() external view returns (uint256);\n}\n"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
},
"remappings": []
}
},
"output": {
"contracts": {
"contracts/interfaces/IProperty.sol": {
"IProperty": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "location",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "description",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "PropertyCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "PropertyOwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "PropertyRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "enum IProperty.PropertyStatus",
"name": "newStatus",
"type": "uint8"
}
],
"name": "PropertyStatusChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "enum IProperty.PropertyStatus",
"name": "newStatus",
"type": "uint8"
}
],
"name": "PropertyUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"internalType": "enum IProperty.PropertyStatus",
"name": "newStatus",
"type": "uint8"
}
],
"name": "changePropertyStatus",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
}
],
"name": "getPropertyDetails",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "string",
"name": "location",
"type": "string"
},
{
"internalType": "string",
"name": "description",
"type": "string"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "enum IProperty.PropertyStatus",
"name": "status",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "updatedAt",
"type": "uint256"
}
],
"internalType": "struct IProperty.PropertyDetails",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalProperties",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
}
],
"name": "removeProperty",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"internalType": "string",
"name": "location",
"type": "string"
},
{
"internalType": "string",
"name": "description",
"type": "string"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "updateProperty",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"changePropertyStatus(uint256,uint8)": "39d46750",
"getPropertyDetails(uint256)": "126dbe43",
"getTotalProperties()": "17aaf5ed",
"removeProperty(uint256)": "bc43d06f",
"transferOwnership(uint256,address)": "29507f73",
"updateProperty(uint256,string,string,uint256)": "14cfa7b3"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"PropertyCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"PropertyOwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PropertyRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum IProperty.PropertyStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"PropertyStatusChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum IProperty.PropertyStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"PropertyUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"enum IProperty.PropertyStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"changePropertyStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"}],\"name\":\"getPropertyDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"enum IProperty.PropertyStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"}],\"internalType\":\"struct IProperty.PropertyDetails\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalProperties\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"}],\"name\":\"removeProperty\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"updateProperty\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IProperty.sol\":\"IProperty\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IProperty.sol\":{\"keccak256\":\"0x34d6b32a5e0a79769a18e0938d01143b26e67fca01b028c8e48beac2e2a074f1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://75ad81a137665a49a78985e0d4d9a24112a80e2e14f6862739b582264d0305cb\",\"dweb:/ipfs/QmbYpWpfi6yYAss5GM8FaFJSg8kSNz7ogv6ATyky1Y71ZM\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/interfaces/IProperty.sol": {
"ast": {
"absolutePath": "contracts/interfaces/IProperty.sol",
"exportedSymbols": {
"IProperty": [
111
]
},
"id": 112,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IProperty",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 111,
"linearizedBaseContracts": [
111
],
"name": "IProperty",
"nameLocation": "67:9:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "IProperty.PropertyStatus",
"id": 6,
"members": [
{
"id": 2,
"name": "Active",
"nameLocation": "156:6:0",
"nodeType": "EnumValue",
"src": "156:6:0"
},
{
"id": 3,
"name": "Inactive",
"nameLocation": "164:8:0",
"nodeType": "EnumValue",
"src": "164:8:0"
},
{
"id": 4,
"name": "Sold",
"nameLocation": "174:4:0",
"nodeType": "EnumValue",
"src": "174:4:0"
},
{
"id": 5,
"name": "Removed",
"nameLocation": "180:7:0",
"nodeType": "EnumValue",
"src": "180:7:0"
}
],
"name": "PropertyStatus",
"nameLocation": "139:14:0",
"nodeType": "EnumDefinition",
"src": "134:55:0"
},
{
"canonicalName": "IProperty.PropertyDetails",
"id": 24,
"members": [
{
"constant": false,
"id": 8,
"mutability": "mutable",
"name": "id",
"nameLocation": "289:2:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "281:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "281:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "owner",
"nameLocation": "309:5:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "301:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "301:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12,
"mutability": "mutable",
"name": "location",
"nameLocation": "331:8:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "324:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 11,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "324:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 14,
"mutability": "mutable",
"name": "description",
"nameLocation": "356:11:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "349:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
},
"typeName": {
"id": 13,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "349:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 16,
"mutability": "mutable",
"name": "price",
"nameLocation": "385:5:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "377:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 15,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "377:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 19,
"mutability": "mutable",
"name": "status",
"nameLocation": "415:6:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "400:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
},
"typeName": {
"id": 18,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 17,
"name": "PropertyStatus",
"nameLocations": [
"400:14:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 6,
"src": "400:14:0"
},
"referencedDeclaration": 6,
"src": "400:14:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 21,
"mutability": "mutable",
"name": "createdAt",
"nameLocation": "439:9:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "431:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "431:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 23,
"mutability": "mutable",
"name": "updatedAt",
"nameLocation": "466:9:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "458:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "458:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "PropertyDetails",
"nameLocation": "255:15:0",
"nodeType": "StructDefinition",
"scope": 111,
"src": "248:234:0",
"visibility": "public"
},
{
"anonymous": false,
"eventSelector": "fadcd2df57180880cb849fe9e25716757c4c56c45ceae975b374e6cf9a9db55c",
"id": 36,
"name": "PropertyCreated",
"nameLocation": "508:15:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 35,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 26,
"indexed": true,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "540:10:0",
"nodeType": "VariableDeclaration",
"scope": 36,
"src": "524:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "524:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28,
"indexed": true,
"mutability": "mutable",
"name": "owner",
"nameLocation": "568:5:0",
"nodeType": "VariableDeclaration",
"scope": 36,
"src": "552:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 27,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "552:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 30,
"indexed": false,
"mutability": "mutable",
"name": "location",
"nameLocation": "582:8:0",
"nodeType": "VariableDeclaration",
"scope": 36,
"src": "575:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 29,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "575:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 32,
"indexed": false,
"mutability": "mutable",
"name": "description",
"nameLocation": "599:11:0",
"nodeType": "VariableDeclaration",
"scope": 36,
"src": "592:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 31,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "592:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 34,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "620:5:0",
"nodeType": "VariableDeclaration",
"scope": 36,
"src": "612:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 33,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "612:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "523:103:0"
},
"src": "502:125:0"
},
{
"anonymous": false,
"eventSelector": "2029ff33a5cefa752541f9dd453384df0d463d7c42b66cf937f5112f76d4f545",
"id": 45,
"name": "PropertyUpdated",
"nameLocation": "638:15:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 44,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 38,
"indexed": true,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "670:10:0",
"nodeType": "VariableDeclaration",
"scope": 45,
"src": "654:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 37,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "654:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 40,
"indexed": false,
"mutability": "mutable",
"name": "newPrice",
"nameLocation": "690:8:0",
"nodeType": "VariableDeclaration",
"scope": 45,
"src": "682:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 39,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "682:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 43,
"indexed": false,
"mutability": "mutable",
"name": "newStatus",
"nameLocation": "715:9:0",
"nodeType": "VariableDeclaration",
"scope": 45,
"src": "700:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
},
"typeName": {
"id": 42,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 41,
"name": "PropertyStatus",
"nameLocations": [
"700:14:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 6,
"src": "700:14:0"
},
"referencedDeclaration": 6,
"src": "700:14:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
}
},
"visibility": "internal"
}
],
"src": "653:72:0"
},
"src": "632:94:0"
},
{
"anonymous": false,
"eventSelector": "c1ab6fcec0363d0be7032d375ba30469b01e2298aad6c14472384d08696e5787",
"id": 53,
"name": "PropertyOwnershipTransferred",
"nameLocation": "737:28:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 52,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 47,
"indexed": true,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "782:10:0",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "766:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 46,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "766:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 49,
"indexed": true,
"mutability": "mutable",
"name": "newOwner",
"nameLocation": "810:8:0",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "794:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 48,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "794:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 51,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "828:5:0",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "820:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 50,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "820:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "765:69:0"
},
"src": "731:104:0"
},
{
"anonymous": false,
"eventSelector": "c9ad6f316a0c29919c9b20c406f1baca1b93c196df6515c9e236a803e8a50c13",
"id": 60,
"name": "PropertyStatusChanged",
"nameLocation": "846:21:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 59,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 55,
"indexed": true,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "884:10:0",
"nodeType": "VariableDeclaration",
"scope": 60,
"src": "868:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 54,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "868:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 58,
"indexed": false,
"mutability": "mutable",
"name": "newStatus",
"nameLocation": "911:9:0",
"nodeType": "VariableDeclaration",
"scope": 60,
"src": "896:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
},
"typeName": {
"id": 57,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 56,
"name": "PropertyStatus",
"nameLocations": [
"896:14:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 6,
"src": "896:14:0"
},
"referencedDeclaration": 6,
"src": "896:14:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
}
},
"visibility": "internal"
}
],
"src": "867:54:0"
},
"src": "840:82:0"
},
{
"anonymous": false,
"eventSelector": "3b11f341dfbadfb1b92ff5b9bf7c88094058c008e6b67c47ae29f690a30beb69",
"id": 66,
"name": "PropertyRemoved",
"nameLocation": "933:15:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 65,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 62,
"indexed": true,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "965:10:0",
"nodeType": "VariableDeclaration",
"scope": 66,
"src": "949:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 61,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "949:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 64,
"indexed": true,
"mutability": "mutable",
"name": "owner",
"nameLocation": "993:5:0",
"nodeType": "VariableDeclaration",
"scope": 66,
"src": "977:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 63,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "977:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "948:51:0"
},
"src": "927:73:0"
},
{
"functionSelector": "126dbe43",
"id": 74,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPropertyDetails",
"nameLocation": "1055:18:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 69,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 68,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1082:10:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "1074:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 67,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1074:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1073:20:0"
},
"returnParameters": {
"id": 73,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 72,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "1117:22:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PropertyDetails_$24_memory_ptr",
"typeString": "struct IProperty.PropertyDetails"
},
"typeName": {
"id": 71,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 70,
"name": "PropertyDetails",
"nameLocations": [
"1117:15:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 24,
"src": "1117:15:0"
},
"referencedDeclaration": 24,
"src": "1117:15:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_PropertyDetails_$24_storage_ptr",
"typeString": "struct IProperty.PropertyDetails"
}
},
"visibility": "internal"
}
],
"src": "1116:24:0"
},
"scope": 111,
"src": "1046:95:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "14cfa7b3",
"id": 85,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "updateProperty",
"nameLocation": "1199:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 83,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 76,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1222:10:0",
"nodeType": "VariableDeclaration",
"scope": 85,
"src": "1214:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 75,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1214:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 78,
"mutability": "mutable",
"name": "location",
"nameLocation": "1250:8:0",
"nodeType": "VariableDeclaration",
"scope": 85,
"src": "1234:24:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 77,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1234:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 80,
"mutability": "mutable",
"name": "description",
"nameLocation": "1276:11:0",
"nodeType": "VariableDeclaration",
"scope": 85,
"src": "1260:27:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_string_calldata_ptr",
"typeString": "string"
},
"typeName": {
"id": 79,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1260:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 82,
"mutability": "mutable",
"name": "price",
"nameLocation": "1297:5:0",
"nodeType": "VariableDeclaration",
"scope": 85,
"src": "1289:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 81,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1289:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1213:90:0"
},
"returnParameters": {
"id": 84,
"nodeType": "ParameterList",
"parameters": [],
"src": "1312:0:0"
},
"scope": 111,
"src": "1190:123:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "29507f73",
"id": 92,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferOwnership",
"nameLocation": "1382:17:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 90,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 87,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1408:10:0",
"nodeType": "VariableDeclaration",
"scope": 92,
"src": "1400:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 86,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1400:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 89,
"mutability": "mutable",
"name": "newOwner",
"nameLocation": "1428:8:0",
"nodeType": "VariableDeclaration",
"scope": 92,
"src": "1420:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 88,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1420:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1399:38:0"
},
"returnParameters": {
"id": 91,
"nodeType": "ParameterList",
"parameters": [],
"src": "1454:0:0"
},
"scope": 111,
"src": "1373:82:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "39d46750",
"id": 100,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "changePropertyStatus",
"nameLocation": "1523:20:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 98,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 94,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1552:10:0",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "1544:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 93,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1544:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 97,
"mutability": "mutable",
"name": "newStatus",
"nameLocation": "1579:9:0",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "1564:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
},
"typeName": {
"id": 96,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 95,
"name": "PropertyStatus",
"nameLocations": [
"1564:14:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 6,
"src": "1564:14:0"
},
"referencedDeclaration": 6,
"src": "1564:14:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_PropertyStatus_$6",
"typeString": "enum IProperty.PropertyStatus"
}
},
"visibility": "internal"
}
],
"src": "1543:46:0"
},
"returnParameters": {
"id": 99,
"nodeType": "ParameterList",
"parameters": [],
"src": "1598:0:0"
},
"scope": 111,
"src": "1514:85:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "bc43d06f",
"id": 105,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "removeProperty",
"nameLocation": "1669:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 103,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 102,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1692:10:0",
"nodeType": "VariableDeclaration",
"scope": 105,
"src": "1684:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 101,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1684:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1683:20:0"
},
"returnParameters": {
"id": 104,
"nodeType": "ParameterList",
"parameters": [],
"src": "1712:0:0"
},
"scope": 111,
"src": "1660:53:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "17aaf5ed",
"id": 110,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getTotalProperties",
"nameLocation": "1806:18:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 106,
"nodeType": "ParameterList",
"parameters": [],
"src": "1824:2:0"
},
"returnParameters": {
"id": 109,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 108,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 110,
"src": "1850:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 107,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1850:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1849:9:0"
},
"scope": 111,
"src": "1797:62:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 112,
"src": "57:1804:0",
"usedErrors": [],
"usedEvents": [
36,
45,
53,
60,
66
]
}
],
"src": "32:1830:0"
},
"id": 0
}
}
}
}