2024-08-18 00:39:26 +03:00

454 lines
8.3 KiB
JSON

{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"goerli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": 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"
}
},
"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"
}
]
}