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

2252 lines
71 KiB
JSON

{
"id": "5efcdc085c17cce808e8478f71ffac57",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/interfaces/IShares.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IShares {\n // Enum to represent the state of shares issuance\n enum ShareStatus { Issued, Transferred, Redeemed, Cancelled }\n\n\n struct ShareBasket {\n uint256 basketId;\n uint256[] propertyIds;\n uint256 totalShares;\n }\n\n function getBasketDetails(uint256 basketId) external view returns (ShareBasket memory);\n function issueShares(uint256 basketId, address to, uint256 amount) external;\n // Structure to define a shareholding\n\n struct Shareholding {\n uint256 shareId;\n address holder;\n uint256 propertyId;\n uint256 amount;\n ShareStatus status;\n uint256 issuedAt;\n uint256 lastUpdated;\n }\n\n // Events\n event SharesIssued(uint256 indexed shareId, address indexed holder, uint256 indexed propertyId, uint256 amount);\n event SharesTransferred(uint256 indexed shareId, address indexed from, address indexed to, uint256 amount);\n event SharesRedeemed(uint256 indexed shareId, address indexed holder, uint256 amount);\n event SharesCancelled(uint256 indexed shareId, address indexed holder, uint256 amount);\n\n // Function to issue shares for a property\n function issueShares(address holder, uint256 propertyId, uint256 amount) external returns (uint256);\n\n // Function to transfer shares from one holder to another\n function transferShares(uint256 shareId, address to, uint256 amount) external;\n\n // Function to redeem shares for a property\n function redeemShares(uint256 shareId, uint256 amount) external;\n\n // Function to cancel issued shares\n function cancelShares(uint256 shareId, uint256 amount) external;\n\n // Function to get details of a specific shareholding\n function getShareholding(uint256 shareId) external view returns (Shareholding memory);\n\n // Function to get the total number of shares issued for a specific property\n function getTotalShares(uint256 propertyId) external view returns (uint256);\n\n // Function to get the number of shares held by a specific holder\n function getHolderShares(address holder) external view returns (Shareholding[] memory);\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/IShares.sol": {
"IShares": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SharesCancelled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SharesIssued",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SharesRedeemed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SharesTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "cancelShares",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "basketId",
"type": "uint256"
}
],
"name": "getBasketDetails",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "basketId",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "propertyIds",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "totalShares",
"type": "uint256"
}
],
"internalType": "struct IShares.ShareBasket",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "holder",
"type": "address"
}
],
"name": "getHolderShares",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "enum IShares.ShareStatus",
"name": "status",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "issuedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lastUpdated",
"type": "uint256"
}
],
"internalType": "struct IShares.Shareholding[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
}
],
"name": "getShareholding",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "enum IShares.ShareStatus",
"name": "status",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "issuedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lastUpdated",
"type": "uint256"
}
],
"internalType": "struct IShares.Shareholding",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
}
],
"name": "getTotalShares",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "holder",
"type": "address"
},
{
"internalType": "uint256",
"name": "propertyId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "issueShares",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "basketId",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "issueShares",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "redeemShares",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shareId",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferShares",
"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": {
"cancelShares(uint256,uint256)": "c2f113ce",
"getBasketDetails(uint256)": "ff03e8c2",
"getHolderShares(address)": "5999fc55",
"getShareholding(uint256)": "d34b878c",
"getTotalShares(uint256)": "85fff858",
"issueShares(address,uint256,uint256)": "06b3b47b",
"issueShares(uint256,address,uint256)": "dd8aa6f6",
"redeemShares(uint256,uint256)": "1f6a1115",
"transferShares(uint256,address,uint256)": "84b9a6e6"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SharesCancelled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SharesIssued\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SharesRedeemed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SharesTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"cancelShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"basketId\",\"type\":\"uint256\"}],\"name\":\"getBasketDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"basketId\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"propertyIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"}],\"internalType\":\"struct IShares.ShareBasket\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"}],\"name\":\"getHolderShares\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"enum IShares.ShareStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"issuedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastUpdated\",\"type\":\"uint256\"}],\"internalType\":\"struct IShares.Shareholding[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"}],\"name\":\"getShareholding\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"enum IShares.ShareStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"issuedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastUpdated\",\"type\":\"uint256\"}],\"internalType\":\"struct IShares.Shareholding\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"}],\"name\":\"getTotalShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"holder\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"propertyId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"issueShares\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"basketId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"issueShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redeemShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"shareId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferShares\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IShares.sol\":\"IShares\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IShares.sol\":{\"keccak256\":\"0x97bc41b84e3ecfa14f3da413cc4dd529fbe7d79b879a1fd7c8e80bc1011bc105\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1b88754473f71dd679fdfc099bb57c6edfd6af4514fc560af42a6ee042caaa31\",\"dweb:/ipfs/QmUn8UFcocfGEGRSmnmGPpJX64w3GeHhwmHJu5UQCzaCKT\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/interfaces/IShares.sol": {
"ast": {
"absolutePath": "contracts/interfaces/IShares.sol",
"exportedSymbols": {
"IShares": [
142
]
},
"id": 143,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IShares",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 142,
"linearizedBaseContracts": [
142
],
"name": "IShares",
"nameLocation": "67:7:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "IShares.ShareStatus",
"id": 6,
"members": [
{
"id": 2,
"name": "Issued",
"nameLocation": "154:6:0",
"nodeType": "EnumValue",
"src": "154:6:0"
},
{
"id": 3,
"name": "Transferred",
"nameLocation": "162:11:0",
"nodeType": "EnumValue",
"src": "162:11:0"
},
{
"id": 4,
"name": "Redeemed",
"nameLocation": "175:8:0",
"nodeType": "EnumValue",
"src": "175:8:0"
},
{
"id": 5,
"name": "Cancelled",
"nameLocation": "185:9:0",
"nodeType": "EnumValue",
"src": "185:9:0"
}
],
"name": "ShareStatus",
"nameLocation": "140:11:0",
"nodeType": "EnumDefinition",
"src": "135:61:0"
},
{
"canonicalName": "IShares.ShareBasket",
"id": 14,
"members": [
{
"constant": false,
"id": 8,
"mutability": "mutable",
"name": "basketId",
"nameLocation": "240:8:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "232:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "232:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11,
"mutability": "mutable",
"name": "propertyIds",
"nameLocation": "268:11:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "258:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 9,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "258:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 10,
"nodeType": "ArrayTypeName",
"src": "258:9:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13,
"mutability": "mutable",
"name": "totalShares",
"nameLocation": "297:11:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "289:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 12,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "289:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "ShareBasket",
"nameLocation": "210:11:0",
"nodeType": "StructDefinition",
"scope": 142,
"src": "203:112:0",
"visibility": "public"
},
{
"functionSelector": "ff03e8c2",
"id": 22,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getBasketDetails",
"nameLocation": "330:16:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 17,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16,
"mutability": "mutable",
"name": "basketId",
"nameLocation": "355:8:0",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "347:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 15,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "347:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "346:18:0"
},
"returnParameters": {
"id": 21,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "388:18:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ShareBasket_$14_memory_ptr",
"typeString": "struct IShares.ShareBasket"
},
"typeName": {
"id": 19,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 18,
"name": "ShareBasket",
"nameLocations": [
"388:11:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 14,
"src": "388:11:0"
},
"referencedDeclaration": 14,
"src": "388:11:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ShareBasket_$14_storage_ptr",
"typeString": "struct IShares.ShareBasket"
}
},
"visibility": "internal"
}
],
"src": "387:20:0"
},
"scope": 142,
"src": "321:87:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dd8aa6f6",
"id": 31,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "issueShares",
"nameLocation": "422:11:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 29,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 24,
"mutability": "mutable",
"name": "basketId",
"nameLocation": "442:8:0",
"nodeType": "VariableDeclaration",
"scope": 31,
"src": "434:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "434:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 26,
"mutability": "mutable",
"name": "to",
"nameLocation": "460:2:0",
"nodeType": "VariableDeclaration",
"scope": 31,
"src": "452:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 25,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "452:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28,
"mutability": "mutable",
"name": "amount",
"nameLocation": "472:6:0",
"nodeType": "VariableDeclaration",
"scope": 31,
"src": "464:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 27,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "464:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "433:46:0"
},
"returnParameters": {
"id": 30,
"nodeType": "ParameterList",
"parameters": [],
"src": "488:0:0"
},
"scope": 142,
"src": "413:76:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"canonicalName": "IShares.Shareholding",
"id": 47,
"members": [
{
"constant": false,
"id": 33,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "575:7:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "567:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 32,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "567:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 35,
"mutability": "mutable",
"name": "holder",
"nameLocation": "600:6:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "592:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 34,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "592:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 37,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "624:10:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "616:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 36,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "616:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 39,
"mutability": "mutable",
"name": "amount",
"nameLocation": "652:6:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "644:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 38,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "644:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 42,
"mutability": "mutable",
"name": "status",
"nameLocation": "680:6:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "668:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ShareStatus_$6",
"typeString": "enum IShares.ShareStatus"
},
"typeName": {
"id": 41,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 40,
"name": "ShareStatus",
"nameLocations": [
"668:11:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 6,
"src": "668:11:0"
},
"referencedDeclaration": 6,
"src": "668:11:0",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ShareStatus_$6",
"typeString": "enum IShares.ShareStatus"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 44,
"mutability": "mutable",
"name": "issuedAt",
"nameLocation": "704:8:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "696:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 43,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "696:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 46,
"mutability": "mutable",
"name": "lastUpdated",
"nameLocation": "730:11:0",
"nodeType": "VariableDeclaration",
"scope": 47,
"src": "722:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 45,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "722:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "Shareholding",
"nameLocation": "544:12:0",
"nodeType": "StructDefinition",
"scope": 142,
"src": "537:211:0",
"visibility": "public"
},
{
"anonymous": false,
"eventSelector": "72532d724776bc35ffcf15a8e1129c2864e68b84374fa931a664a92a202e3b5c",
"id": 57,
"name": "SharesIssued",
"nameLocation": "774:12:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 56,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 49,
"indexed": true,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "803:7:0",
"nodeType": "VariableDeclaration",
"scope": 57,
"src": "787:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 48,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "787:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 51,
"indexed": true,
"mutability": "mutable",
"name": "holder",
"nameLocation": "828:6:0",
"nodeType": "VariableDeclaration",
"scope": 57,
"src": "812:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 50,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "812:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 53,
"indexed": true,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "852:10:0",
"nodeType": "VariableDeclaration",
"scope": 57,
"src": "836:26:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 52,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "836:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 55,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "872:6:0",
"nodeType": "VariableDeclaration",
"scope": 57,
"src": "864:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 54,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "864:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "786:93:0"
},
"src": "768:112:0"
},
{
"anonymous": false,
"eventSelector": "78dc4ab325d618a4100f0b44da2f25725cd94b780060f6b9e87065e9c0b12ebd",
"id": 67,
"name": "SharesTransferred",
"nameLocation": "891:17:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 66,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 59,
"indexed": true,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "925:7:0",
"nodeType": "VariableDeclaration",
"scope": 67,
"src": "909:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 58,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "909:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 61,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "950:4:0",
"nodeType": "VariableDeclaration",
"scope": 67,
"src": "934:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 60,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "934:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 63,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nameLocation": "972:2:0",
"nodeType": "VariableDeclaration",
"scope": 67,
"src": "956:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 62,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "956:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 65,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "984:6:0",
"nodeType": "VariableDeclaration",
"scope": 67,
"src": "976:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 64,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "976:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "908:83:0"
},
"src": "885:107:0"
},
{
"anonymous": false,
"eventSelector": "374ddac058d6545dd0b061fc8e54f7834b2459d35e96ce508588dd9ab07c701d",
"id": 75,
"name": "SharesRedeemed",
"nameLocation": "1003:14:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 74,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 69,
"indexed": true,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "1034:7:0",
"nodeType": "VariableDeclaration",
"scope": 75,
"src": "1018:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 68,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1018:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 71,
"indexed": true,
"mutability": "mutable",
"name": "holder",
"nameLocation": "1059:6:0",
"nodeType": "VariableDeclaration",
"scope": 75,
"src": "1043:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 70,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1043:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 73,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1075:6:0",
"nodeType": "VariableDeclaration",
"scope": 75,
"src": "1067:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 72,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1067:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1017:65:0"
},
"src": "997:86:0"
},
{
"anonymous": false,
"eventSelector": "d1936940bfae3ca3a667cdeaf20591e8a5db999b0609c6939af23724a3869871",
"id": 83,
"name": "SharesCancelled",
"nameLocation": "1094:15:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 82,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 77,
"indexed": true,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "1126:7:0",
"nodeType": "VariableDeclaration",
"scope": 83,
"src": "1110:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 76,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1110:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 79,
"indexed": true,
"mutability": "mutable",
"name": "holder",
"nameLocation": "1151:6:0",
"nodeType": "VariableDeclaration",
"scope": 83,
"src": "1135:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 78,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1135:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 81,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1167:6:0",
"nodeType": "VariableDeclaration",
"scope": 83,
"src": "1159:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 80,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1159:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1109:65:0"
},
"src": "1088:87:0"
},
{
"functionSelector": "06b3b47b",
"id": 94,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "issueShares",
"nameLocation": "1237:11:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 90,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 85,
"mutability": "mutable",
"name": "holder",
"nameLocation": "1257:6:0",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1249:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 84,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1249:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 87,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1273:10:0",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1265:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 86,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1265:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 89,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1293:6:0",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1285:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 88,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1285:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1248:52:0"
},
"returnParameters": {
"id": 93,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 92,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 94,
"src": "1319:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 91,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1319:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1318:9:0"
},
"scope": 142,
"src": "1228:100:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "84b9a6e6",
"id": 103,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferShares",
"nameLocation": "1405:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 101,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 96,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "1428:7:0",
"nodeType": "VariableDeclaration",
"scope": 103,
"src": "1420:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 95,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1420:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 98,
"mutability": "mutable",
"name": "to",
"nameLocation": "1445:2:0",
"nodeType": "VariableDeclaration",
"scope": 103,
"src": "1437:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 97,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1437:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 100,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1457:6:0",
"nodeType": "VariableDeclaration",
"scope": 103,
"src": "1449:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 99,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1449:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1419:45:0"
},
"returnParameters": {
"id": 102,
"nodeType": "ParameterList",
"parameters": [],
"src": "1473:0:0"
},
"scope": 142,
"src": "1396:78:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1f6a1115",
"id": 110,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "redeemShares",
"nameLocation": "1537:12:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 108,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 105,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "1558:7:0",
"nodeType": "VariableDeclaration",
"scope": 110,
"src": "1550:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 104,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1550:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 107,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1575:6:0",
"nodeType": "VariableDeclaration",
"scope": 110,
"src": "1567:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 106,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1567:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1549:33:0"
},
"returnParameters": {
"id": 109,
"nodeType": "ParameterList",
"parameters": [],
"src": "1591:0:0"
},
"scope": 142,
"src": "1528:64:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c2f113ce",
"id": 117,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelShares",
"nameLocation": "1647:12:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 115,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 112,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "1668:7:0",
"nodeType": "VariableDeclaration",
"scope": 117,
"src": "1660:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 111,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1660:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 114,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1685:6:0",
"nodeType": "VariableDeclaration",
"scope": 117,
"src": "1677:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 113,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1677:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1659:33:0"
},
"returnParameters": {
"id": 116,
"nodeType": "ParameterList",
"parameters": [],
"src": "1701:0:0"
},
"scope": 142,
"src": "1638:64:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d34b878c",
"id": 125,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getShareholding",
"nameLocation": "1775:15:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 120,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 119,
"mutability": "mutable",
"name": "shareId",
"nameLocation": "1799:7:0",
"nodeType": "VariableDeclaration",
"scope": 125,
"src": "1791:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 118,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1791:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1790:17:0"
},
"returnParameters": {
"id": 124,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 123,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 125,
"src": "1831:19:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Shareholding_$47_memory_ptr",
"typeString": "struct IShares.Shareholding"
},
"typeName": {
"id": 122,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 121,
"name": "Shareholding",
"nameLocations": [
"1831:12:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 47,
"src": "1831:12:0"
},
"referencedDeclaration": 47,
"src": "1831:12:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Shareholding_$47_storage_ptr",
"typeString": "struct IShares.Shareholding"
}
},
"visibility": "internal"
}
],
"src": "1830:21:0"
},
"scope": 142,
"src": "1766:86:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "85fff858",
"id": 132,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getTotalShares",
"nameLocation": "1948:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 128,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 127,
"mutability": "mutable",
"name": "propertyId",
"nameLocation": "1971:10:0",
"nodeType": "VariableDeclaration",
"scope": 132,
"src": "1963:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 126,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1963:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1962:20:0"
},
"returnParameters": {
"id": 131,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 130,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 132,
"src": "2006:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 129,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2006:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2005:9:0"
},
"scope": 142,
"src": "1939:76:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "5999fc55",
"id": 141,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getHolderShares",
"nameLocation": "2100:15:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 135,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 134,
"mutability": "mutable",
"name": "holder",
"nameLocation": "2124:6:0",
"nodeType": "VariableDeclaration",
"scope": 141,
"src": "2116:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 133,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2116:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2115:16:0"
},
"returnParameters": {
"id": 140,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 139,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 141,
"src": "2155:21:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_struct$_Shareholding_$47_memory_ptr_$dyn_memory_ptr",
"typeString": "struct IShares.Shareholding[]"
},
"typeName": {
"baseType": {
"id": 137,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 136,
"name": "Shareholding",
"nameLocations": [
"2155:12:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 47,
"src": "2155:12:0"
},
"referencedDeclaration": 47,
"src": "2155:12:0",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Shareholding_$47_storage_ptr",
"typeString": "struct IShares.Shareholding"
}
},
"id": 138,
"nodeType": "ArrayTypeName",
"src": "2155:14:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_struct$_Shareholding_$47_storage_$dyn_storage_ptr",
"typeString": "struct IShares.Shareholding[]"
}
},
"visibility": "internal"
}
],
"src": "2154:23:0"
},
"scope": 142,
"src": "2091:87:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 143,
"src": "57:2123:0",
"usedErrors": [],
"usedEvents": [
57,
67,
75,
83
]
}
],
"src": "32:2149:0"
},
"id": 0
}
}
}
}