2388 lines
76 KiB
JSON
2388 lines
76 KiB
JSON
{
|
|
"id": "b42162191f98c82011bc37556c2747ca",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/interfaces/IMarketplace.sol": {
|
|
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IMarketplace {\n // Enum to represent the current state of the property listing\n enum ListingStatus { Active, Inactive, Sold, Removed }\n\n // Structure for property details\n struct PropertyDetails {\n uint256 id;\n address owner;\n string location;\n string description;\n uint256 price;\n ListingStatus status;\n uint256 createdAt;\n uint256 updatedAt;\n }\n\n // Structure for property share details\n struct ShareDetails {\n uint256 propertyId;\n address owner;\n uint256 sharesOwned;\n }\n\n // Events\n event PropertyListed(uint256 indexed propertyId, address indexed owner, uint256 price);\n event PropertyUpdated(uint256 indexed propertyId, uint256 price, ListingStatus status);\n event PropertySold(uint256 indexed propertyId, address indexed newOwner, uint256 price);\n event SharesIssued(uint256 indexed propertyId, address indexed shareholder, uint256 sharesAmount);\n event SharesTransferred(uint256 indexed propertyId, address indexed from, address indexed to, uint256 sharesAmount);\n event PropertyRemoved(uint256 indexed propertyId, address indexed owner);\n\n // Function to list a new property\n function listProperty(string calldata location, string calldata description, uint256 price) external returns (uint256);\n\n // Function to update property details\n function updateProperty(uint256 propertyId, uint256 newPrice, ListingStatus newStatus) external;\n\n // Function to buy a property\n function buyProperty(uint256 propertyId) external payable;\n\n // Function to remove a property listing\n function removeProperty(uint256 propertyId) external;\n\n // Function to issue shares for a property\n function issueShares(uint256 propertyId, address shareholder, uint256 sharesAmount) external;\n\n // Function to transfer shares between shareholders\n function transferShares(uint256 propertyId, address to, uint256 sharesAmount) external;\n\n // Function to get details of a property\n function getPropertyDetails(uint256 propertyId) external view returns (PropertyDetails memory);\n\n // Function to get share details of a property\n function getShareDetails(uint256 propertyId, address shareholder) external view returns (ShareDetails memory);\n\n // Function to get the total number of properties listed\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/IMarketplace.sol": {
|
|
"IMarketplace": {
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "price",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "PropertyListed",
|
|
"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": true,
|
|
"internalType": "address",
|
|
"name": "newOwner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "price",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "PropertySold",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "price",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "enum IMarketplace.ListingStatus",
|
|
"name": "status",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"name": "PropertyUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "shareholder",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "sharesAmount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "SharesIssued",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "from",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "sharesAmount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "SharesTransferred",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "buyProperty",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"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 IMarketplace.ListingStatus",
|
|
"name": "status",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "createdAt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "updatedAt",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct IMarketplace.PropertyDetails",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "shareholder",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getShareDetails",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "owner",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "sharesOwned",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"internalType": "struct IMarketplace.ShareDetails",
|
|
"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"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "shareholder",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "sharesAmount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "issueShares",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "location",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "string",
|
|
"name": "description",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "price",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "listProperty",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"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": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "sharesAmount",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "transferShares",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "propertyId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "newPrice",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "enum IMarketplace.ListingStatus",
|
|
"name": "newStatus",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"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": {
|
|
"buyProperty(uint256)": "6fa830a6",
|
|
"getPropertyDetails(uint256)": "126dbe43",
|
|
"getShareDetails(uint256,address)": "5522bdc1",
|
|
"getTotalProperties()": "17aaf5ed",
|
|
"issueShares(uint256,address,uint256)": "dd8aa6f6",
|
|
"listProperty(string,string,uint256)": "4cd378bc",
|
|
"removeProperty(uint256)": "bc43d06f",
|
|
"transferShares(uint256,address,uint256)": "84b9a6e6",
|
|
"updateProperty(uint256,uint256,uint8)": "3f4fe844"
|
|
}
|
|
},
|
|
"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\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"PropertyListed\",\"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\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"PropertySold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum IMarketplace.ListingStatus\",\"name\":\"status\",\"type\":\"uint8\"}],\"name\":\"PropertyUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"shareholder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sharesAmount\",\"type\":\"uint256\"}],\"name\":\"SharesIssued\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sharesAmount\",\"type\":\"uint256\"}],\"name\":\"SharesTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"}],\"name\":\"buyProperty\",\"outputs\":[],\"stateMutability\":\"payable\",\"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 IMarketplace.ListingStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"}],\"internalType\":\"struct IMarketplace.PropertyDetails\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"shareholder\",\"type\":\"address\"}],\"name\":\"getShareDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sharesOwned\",\"type\":\"uint256\"}],\"internalType\":\"struct IMarketplace.ShareDetails\",\"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\"},{\"internalType\":\"address\",\"name\":\"shareholder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sharesAmount\",\"type\":\"uint256\"}],\"name\":\"issueShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"location\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"listProperty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"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\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sharesAmount\",\"type\":\"uint256\"}],\"name\":\"transferShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newPrice\",\"type\":\"uint256\"},{\"internalType\":\"enum IMarketplace.ListingStatus\",\"name\":\"newStatus\",\"type\":\"uint8\"}],\"name\":\"updateProperty\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IMarketplace.sol\":\"IMarketplace\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IMarketplace.sol\":{\"keccak256\":\"0x276af58f9c8f21bcf5535b6f21e34c59a5cb0e386f5a873b48592ab355ab9c54\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9327b6355f8c016aae2c881cc5216ddf8b3c1d7c00f64236a7f79a9b67c9de51\",\"dweb:/ipfs/QmPs61J2Qa5L6c6jqNNH5rin3c4YfUS7nRntFuVwQ5KfCw\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/interfaces/IMarketplace.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/interfaces/IMarketplace.sol",
|
|
"exportedSymbols": {
|
|
"IMarketplace": [
|
|
153
|
|
]
|
|
},
|
|
"id": 154,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "32:23:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IMarketplace",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 153,
|
|
"linearizedBaseContracts": [
|
|
153
|
|
],
|
|
"name": "IMarketplace",
|
|
"nameLocation": "67:12:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"canonicalName": "IMarketplace.ListingStatus",
|
|
"id": 6,
|
|
"members": [
|
|
{
|
|
"id": 2,
|
|
"name": "Active",
|
|
"nameLocation": "174:6:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "174:6:0"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "Inactive",
|
|
"nameLocation": "182:8:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "182:8:0"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "Sold",
|
|
"nameLocation": "192:4:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "192:4:0"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "Removed",
|
|
"nameLocation": "198:7:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "198:7:0"
|
|
}
|
|
],
|
|
"name": "ListingStatus",
|
|
"nameLocation": "158:13:0",
|
|
"nodeType": "EnumDefinition",
|
|
"src": "153:54:0"
|
|
},
|
|
{
|
|
"canonicalName": "IMarketplace.PropertyDetails",
|
|
"id": 24,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 8,
|
|
"mutability": "mutable",
|
|
"name": "id",
|
|
"nameLocation": "292:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "284:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 7,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "284:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 10,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "312:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "304:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 9,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "304:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 12,
|
|
"mutability": "mutable",
|
|
"name": "location",
|
|
"nameLocation": "334:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "327:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 11,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "327:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 14,
|
|
"mutability": "mutable",
|
|
"name": "description",
|
|
"nameLocation": "359:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "352:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 13,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "352:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 16,
|
|
"mutability": "mutable",
|
|
"name": "price",
|
|
"nameLocation": "388:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "380:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 15,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "380:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 19,
|
|
"mutability": "mutable",
|
|
"name": "status",
|
|
"nameLocation": "417:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "403:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_ListingStatus_$6",
|
|
"typeString": "enum IMarketplace.ListingStatus"
|
|
},
|
|
"typeName": {
|
|
"id": 18,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 17,
|
|
"name": "ListingStatus",
|
|
"nameLocations": [
|
|
"403:13:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 6,
|
|
"src": "403:13:0"
|
|
},
|
|
"referencedDeclaration": 6,
|
|
"src": "403:13:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_ListingStatus_$6",
|
|
"typeString": "enum IMarketplace.ListingStatus"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 21,
|
|
"mutability": "mutable",
|
|
"name": "createdAt",
|
|
"nameLocation": "441:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "433:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 20,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "433:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 23,
|
|
"mutability": "mutable",
|
|
"name": "updatedAt",
|
|
"nameLocation": "468:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "460:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 22,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "460:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "PropertyDetails",
|
|
"nameLocation": "258:15:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 153,
|
|
"src": "251:233:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"canonicalName": "IMarketplace.ShareDetails",
|
|
"id": 31,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 26,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "572:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "564:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 25,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "564:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 28,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "600:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "592:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 27,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "592:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 30,
|
|
"mutability": "mutable",
|
|
"name": "sharesOwned",
|
|
"nameLocation": "623:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 31,
|
|
"src": "615:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 29,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "615:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "ShareDetails",
|
|
"nameLocation": "541:12:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 153,
|
|
"src": "534:107:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "23fb658c1698b92f5fe511a079c17ecf7965cbc3f1b873328c67e2c3c0820f1f",
|
|
"id": 39,
|
|
"name": "PropertyListed",
|
|
"nameLocation": "667:14:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 38,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 33,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "698:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "682:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 32,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "682:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 35,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "726:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "710:21:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 34,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "710:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 37,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "price",
|
|
"nameLocation": "741:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 39,
|
|
"src": "733:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 36,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "733:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "681:66:0"
|
|
},
|
|
"src": "661:87:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "2029ff33a5cefa752541f9dd453384df0d463d7c42b66cf937f5112f76d4f545",
|
|
"id": 48,
|
|
"name": "PropertyUpdated",
|
|
"nameLocation": "759:15:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 47,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 41,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "791:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 48,
|
|
"src": "775:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 40,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "775:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 43,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "price",
|
|
"nameLocation": "811:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 48,
|
|
"src": "803:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 42,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "803:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 46,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "status",
|
|
"nameLocation": "832:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 48,
|
|
"src": "818:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_ListingStatus_$6",
|
|
"typeString": "enum IMarketplace.ListingStatus"
|
|
},
|
|
"typeName": {
|
|
"id": 45,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 44,
|
|
"name": "ListingStatus",
|
|
"nameLocations": [
|
|
"818:13:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 6,
|
|
"src": "818:13:0"
|
|
},
|
|
"referencedDeclaration": 6,
|
|
"src": "818:13:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_ListingStatus_$6",
|
|
"typeString": "enum IMarketplace.ListingStatus"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "774:65:0"
|
|
},
|
|
"src": "753:87:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "f17a6666765db393a6218bb324c4de5cc60c9ee3b981bd102ba416effc13b895",
|
|
"id": 56,
|
|
"name": "PropertySold",
|
|
"nameLocation": "851:12:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 55,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 50,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "880:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 56,
|
|
"src": "864:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 49,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "864:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 52,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "newOwner",
|
|
"nameLocation": "908:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 56,
|
|
"src": "892:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 51,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "892:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 54,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "price",
|
|
"nameLocation": "926:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 56,
|
|
"src": "918:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 53,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "918:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "863:69:0"
|
|
},
|
|
"src": "845:88:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "0d04a49b56b2de651670a9bae041e977e478f3d0f517e2b5b7a0374b6c49e62d",
|
|
"id": 64,
|
|
"name": "SharesIssued",
|
|
"nameLocation": "944:12:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 63,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 58,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "973:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "957:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 57,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "957:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 60,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "shareholder",
|
|
"nameLocation": "1001:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "985:27:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 59,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "985:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 62,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "sharesAmount",
|
|
"nameLocation": "1022:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "1014:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 61,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1014:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "956:79:0"
|
|
},
|
|
"src": "938:98:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "78dc4ab325d618a4100f0b44da2f25725cd94b780060f6b9e87065e9c0b12ebd",
|
|
"id": 74,
|
|
"name": "SharesTransferred",
|
|
"nameLocation": "1047:17:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 73,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 66,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1081:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 74,
|
|
"src": "1065:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 65,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1065:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 68,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "from",
|
|
"nameLocation": "1109:4:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 74,
|
|
"src": "1093:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 67,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1093:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 70,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "1131:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 74,
|
|
"src": "1115:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 69,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1115:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 72,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "sharesAmount",
|
|
"nameLocation": "1143:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 74,
|
|
"src": "1135:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 71,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1135:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1064:92:0"
|
|
},
|
|
"src": "1041:116:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"eventSelector": "3b11f341dfbadfb1b92ff5b9bf7c88094058c008e6b67c47ae29f690a30beb69",
|
|
"id": 80,
|
|
"name": "PropertyRemoved",
|
|
"nameLocation": "1168:15:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 79,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 76,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1200:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 80,
|
|
"src": "1184:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 75,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1184:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 78,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "owner",
|
|
"nameLocation": "1228:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 80,
|
|
"src": "1212:21:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 77,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1212:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1183:51:0"
|
|
},
|
|
"src": "1162:73:0"
|
|
},
|
|
{
|
|
"functionSelector": "4cd378bc",
|
|
"id": 91,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "listProperty",
|
|
"nameLocation": "1289:12:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 87,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 82,
|
|
"mutability": "mutable",
|
|
"name": "location",
|
|
"nameLocation": "1318:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 91,
|
|
"src": "1302:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_calldata_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 81,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1302:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 84,
|
|
"mutability": "mutable",
|
|
"name": "description",
|
|
"nameLocation": "1344:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 91,
|
|
"src": "1328:27:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_calldata_ptr",
|
|
"typeString": "string"
|
|
},
|
|
"typeName": {
|
|
"id": 83,
|
|
"name": "string",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1328:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_string_storage_ptr",
|
|
"typeString": "string"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 86,
|
|
"mutability": "mutable",
|
|
"name": "price",
|
|
"nameLocation": "1365:5:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 91,
|
|
"src": "1357:13:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 85,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1357:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1301:70:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 90,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 89,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 91,
|
|
"src": "1390:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 88,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1390:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1389:9:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "1280:119:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "3f4fe844",
|
|
"id": 101,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "updateProperty",
|
|
"nameLocation": "1457:14:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 99,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 93,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1480:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 101,
|
|
"src": "1472:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 92,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1472:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 95,
|
|
"mutability": "mutable",
|
|
"name": "newPrice",
|
|
"nameLocation": "1500:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 101,
|
|
"src": "1492:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 94,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1492:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 98,
|
|
"mutability": "mutable",
|
|
"name": "newStatus",
|
|
"nameLocation": "1524:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 101,
|
|
"src": "1510:23:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_ListingStatus_$6",
|
|
"typeString": "enum IMarketplace.ListingStatus"
|
|
},
|
|
"typeName": {
|
|
"id": 97,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 96,
|
|
"name": "ListingStatus",
|
|
"nameLocations": [
|
|
"1510:13:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 6,
|
|
"src": "1510:13:0"
|
|
},
|
|
"referencedDeclaration": 6,
|
|
"src": "1510:13:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_ListingStatus_$6",
|
|
"typeString": "enum IMarketplace.ListingStatus"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1471:63:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 100,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1543:0:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "1448:96:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "6fa830a6",
|
|
"id": 106,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "buyProperty",
|
|
"nameLocation": "1593:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 104,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 103,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1613:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 106,
|
|
"src": "1605:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 102,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1605:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1604:20:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 105,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1641:0:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "1584:58:0",
|
|
"stateMutability": "payable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "bc43d06f",
|
|
"id": 111,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "removeProperty",
|
|
"nameLocation": "1702:14:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 109,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 108,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1725:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 111,
|
|
"src": "1717:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 107,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1717:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1716:20:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 110,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1745:0:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "1693:53:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "dd8aa6f6",
|
|
"id": 120,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "issueShares",
|
|
"nameLocation": "1808:11:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 118,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 113,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1828:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 120,
|
|
"src": "1820:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 112,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1820:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 115,
|
|
"mutability": "mutable",
|
|
"name": "shareholder",
|
|
"nameLocation": "1848:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 120,
|
|
"src": "1840:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 114,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1840:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 117,
|
|
"mutability": "mutable",
|
|
"name": "sharesAmount",
|
|
"nameLocation": "1869:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 120,
|
|
"src": "1861:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 116,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1861:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1819:63:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 119,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1891:0:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "1799:93:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "84b9a6e6",
|
|
"id": 129,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "transferShares",
|
|
"nameLocation": "1963:14:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 127,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 122,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "1986:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "1978:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 121,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1978:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 124,
|
|
"mutability": "mutable",
|
|
"name": "to",
|
|
"nameLocation": "2006:2:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "1998:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 123,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1998:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 126,
|
|
"mutability": "mutable",
|
|
"name": "sharesAmount",
|
|
"nameLocation": "2018:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 129,
|
|
"src": "2010:20:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 125,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2010:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1977:54:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 128,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2040:0:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "1954:87:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "126dbe43",
|
|
"id": 137,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getPropertyDetails",
|
|
"nameLocation": "2101:18:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 132,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 131,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "2128:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 137,
|
|
"src": "2120:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 130,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2120:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2119:20:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 136,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 135,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 137,
|
|
"src": "2163:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_PropertyDetails_$24_memory_ptr",
|
|
"typeString": "struct IMarketplace.PropertyDetails"
|
|
},
|
|
"typeName": {
|
|
"id": 134,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 133,
|
|
"name": "PropertyDetails",
|
|
"nameLocations": [
|
|
"2163:15:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 24,
|
|
"src": "2163:15:0"
|
|
},
|
|
"referencedDeclaration": 24,
|
|
"src": "2163:15:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_PropertyDetails_$24_storage_ptr",
|
|
"typeString": "struct IMarketplace.PropertyDetails"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2162:24:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "2092:95:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "5522bdc1",
|
|
"id": 147,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getShareDetails",
|
|
"nameLocation": "2253:15:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 142,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 139,
|
|
"mutability": "mutable",
|
|
"name": "propertyId",
|
|
"nameLocation": "2277:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 147,
|
|
"src": "2269:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 138,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2269:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 141,
|
|
"mutability": "mutable",
|
|
"name": "shareholder",
|
|
"nameLocation": "2297:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 147,
|
|
"src": "2289:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 140,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2289:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2268:41:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 146,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 145,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 147,
|
|
"src": "2333:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ShareDetails_$31_memory_ptr",
|
|
"typeString": "struct IMarketplace.ShareDetails"
|
|
},
|
|
"typeName": {
|
|
"id": 144,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 143,
|
|
"name": "ShareDetails",
|
|
"nameLocations": [
|
|
"2333:12:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 31,
|
|
"src": "2333:12:0"
|
|
},
|
|
"referencedDeclaration": 31,
|
|
"src": "2333:12:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_ShareDetails_$31_storage_ptr",
|
|
"typeString": "struct IMarketplace.ShareDetails"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2332:21:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "2244:110:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "17aaf5ed",
|
|
"id": 152,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getTotalProperties",
|
|
"nameLocation": "2430:18:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 148,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2448:2:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 151,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 150,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 152,
|
|
"src": "2474:7:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 149,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2474:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2473:9:0"
|
|
},
|
|
"scope": 153,
|
|
"src": "2421:62:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 154,
|
|
"src": "57:2428:0",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
39,
|
|
48,
|
|
56,
|
|
64,
|
|
74,
|
|
80
|
|
]
|
|
}
|
|
],
|
|
"src": "32:2454:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |