-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.json
1 lines (1 loc) · 692 KB
/
test.json
1
{"admin":[{"id":0,"address":"0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","contract_address":0,"device_name":"admin0","device_type":"admin","values":{"consumption":[],"production":[],"price":[],"wallet":[]}}],"grid":[{"id":0,"address":"0xe208d1dd66f7f3da8d2247f2baa3c592fa85dd11","picture":"images/grid.png","contract_address":"0x0496d7796e85517fc69492f1589478b156418c4b","device_name":"grid0","device_type":"grid","values":{"consumption":[],"production":[],"price":[["20",true],["20",true],["20",true],["20",true]],"wallet":["0","0","0","180"]},"contract":{"constructor":{"contractName":"Grid","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"vol","type":"uint256"}],"name":"goExcess","outputs":[{"name":"takeVol","type":"uint256"},{"name":"prs","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"vol","type":"uint256"}],"name":"goExtra","outputs":[{"name":"takeVol","type":"uint256"},{"name":"prs","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"prs","type":"uint256"},{"name":"updatedOrNot","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"prs","type":"uint256"},{"name":"prsF","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"bytecode":"0x606060405260038054600160a060020a031990811690915560048054909116905561012c60075560646009819055600a55341561003b57600080fd5b6040516020806108278339810160405280805160018054600160a060020a03928316600160a060020a0319918216179091556000805433909316929091169190911790555050610797806100906000396000f3006060604052600436106100ab5763ffffffff60e060020a600035041663074b7c8081146100b05780630830cfae146100d557806313299604146100f6578063235a4a4f1461010957806335f7f5e21461011c5780636e2855441461014a57806370ed8f241461016057806382076a711461018f5780638d646b11146101a257806398d5fdca146101c1578063bfd11903146101ee578063f7d9757714610210578063ff1b636d14610229575b600080fd5b34156100bb57600080fd5b6100c361023c565b60405190815260200160405180910390f35b34156100e057600080fd5b6100f4600160a060020a03600435166102a6565b005b341561010157600080fd5b6100c36102e9565b341561011457600080fd5b6100c36102ef565b341561012757600080fd5b610132600435610339565b60405191825260208201526040908101905180910390f35b341561015557600080fd5b610132600435610474565b341561016b57600080fd5b6101736105b6565b604051600160a060020a03909116815260200160405180910390f35b341561019a57600080fd5b6100c36105c5565b34156101ad57600080fd5b6100f4600160a060020a036004351661060f565b34156101cc57600080fd5b6101d4610653565b604051918252151560208201526040908101905180910390f35b34156101f957600080fd5b6100f4600435600160a060020a0360243516610678565b341561021b57600080fd5b6100f46004356024356106e3565b341561023457600080fd5b61017361071f565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028657600080fd5b6102c65a03f1151561029757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ab576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60055490565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028657600080fd5b60008060056103466102ef565b8114156100ab57600c5491508373__TransactLib___________________________63bc2e368c9091600a5460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b15156103b457600080fd5b6102c65a03f415156103c557600080fd5b505050604051805190509250600a5473__TransactLib___________________________639e5fd0a99091853060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051600a555060058054848402900390555b50915091565b60008060056104816102ef565b8114156100ab57600b5491508373__TransactLib___________________________63bc2e368c909160095460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b15156104ef57600080fd5b6102c65a03f4151561050057600080fd5b505050604051805160098054829003905560055490945073__TransactLib___________________________915063e2992d2990848602333060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b151561059457600080fd5b6102c65a03f415156105a557600080fd5b50505060405180516005555061046e565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028657600080fd5b60005433600160a060020a03908116911614156100ab576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556102e6565b600b54600754600854600091429101101561067057506000610674565b5060015b9091565b60005433600160a060020a03908116911614156100ab5760008281526006602052604090208054600181016106ad838261072e565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555050565b60016106ed6102ef565b8114156100ab5760015433600160a060020a03908116911614156100ab57600b839055600c829055426008555b505050565b600054600160a060020a031681565b81548183558181151161071a5760008381526020902061071a9181019083016102a391905b808211156107675760008155600101610753565b50905600a165627a7a723058201a6d40622205c81b4e40c85094d57f289429c1a48241d3ede305106d7a5f16a70029","deployedBytecode":"0x6060604052600436106100ab5763ffffffff60e060020a600035041663074b7c8081146100b05780630830cfae146100d557806313299604146100f6578063235a4a4f1461010957806335f7f5e21461011c5780636e2855441461014a57806370ed8f241461016057806382076a711461018f5780638d646b11146101a257806398d5fdca146101c1578063bfd11903146101ee578063f7d9757714610210578063ff1b636d14610229575b600080fd5b34156100bb57600080fd5b6100c361023c565b60405190815260200160405180910390f35b34156100e057600080fd5b6100f4600160a060020a03600435166102a6565b005b341561010157600080fd5b6100c36102e9565b341561011457600080fd5b6100c36102ef565b341561012757600080fd5b610132600435610339565b60405191825260208201526040908101905180910390f35b341561015557600080fd5b610132600435610474565b341561016b57600080fd5b6101736105b6565b604051600160a060020a03909116815260200160405180910390f35b341561019a57600080fd5b6100c36105c5565b34156101ad57600080fd5b6100f4600160a060020a036004351661060f565b34156101cc57600080fd5b6101d4610653565b604051918252151560208201526040908101905180910390f35b34156101f957600080fd5b6100f4600435600160a060020a0360243516610678565b341561021b57600080fd5b6100f46004356024356106e3565b341561023457600080fd5b61017361071f565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028657600080fd5b6102c65a03f1151561029757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ab576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60055490565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028657600080fd5b60008060056103466102ef565b8114156100ab57600c5491508373__TransactLib___________________________63bc2e368c9091600a5460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b15156103b457600080fd5b6102c65a03f415156103c557600080fd5b505050604051805190509250600a5473__TransactLib___________________________639e5fd0a99091853060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051600a555060058054848402900390555b50915091565b60008060056104816102ef565b8114156100ab57600b5491508373__TransactLib___________________________63bc2e368c909160095460006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b15156104ef57600080fd5b6102c65a03f4151561050057600080fd5b505050604051805160098054829003905560055490945073__TransactLib___________________________915063e2992d2990848602333060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b151561059457600080fd5b6102c65a03f415156105a557600080fd5b50505060405180516005555061046e565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028657600080fd5b60005433600160a060020a03908116911614156100ab576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556102e6565b600b54600754600854600091429101101561067057506000610674565b5060015b9091565b60005433600160a060020a03908116911614156100ab5760008281526006602052604090208054600181016106ad838261072e565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555050565b60016106ed6102ef565b8114156100ab5760015433600160a060020a03908116911614156100ab57600b839055600c829055426008555b505050565b600054600160a060020a031681565b81548183558181151161071a5760008381526020902061071a9181019083016102a391905b808211156107675760008155600101610753565b50905600a165627a7a723058201a6d40622205c81b4e40c85094d57f289429c1a48241d3ede305106d7a5f16a70029","sourceMap":"131:1878:5:-;;;594:18:3;;;-1:-1:-1;;;;;;594:18:3;;;;;;616:25;;;;;;;;116:9:7;93:32;;223:3;203:23;;;;306;;247:49:5;;;;;;;;;;;;;;;;;;;;;;1657:5:3;:11;;-1:-1:-1;;;;;1657:11:3;;;-1:-1:-1;;;;;;1657:11:3;;;;;;;:5;1674:18;;1682:10;1674:18;;;;;;;;;;;;;-1:-1:-1;;131:1878:5;;;;;;","deployedSourceMap":"131:1878:5:-;;;;;;;;-1:-1:-1;;;131:1878:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2113:90:3;;;;;;;;;;;;;;;;;;;;;;;;;;;1769:72;;;;;;;;;;;;-1:-1:-1;;;;;1769:72:3;;;;;2316:59;;;;;;;;;;;;2017:92;;;;;;;;;;;;1466:239:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1709:298;;;;;;;;;;;;;;2389:74:3;;;;;;;;;;;;;;;-1:-1:-1;;;;;2389:74:3;;;;;;;;;;;;;;;2207:105;;;;;;;;;;;;1701:64;;;;;;;;;;;;-1:-1:-1;;;;;1701:64:3;;;433:260:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1845:98:3;;;;;;;;;;;;;;-1:-1:-1;;;;;1845:98:3;;;300:129:5;;;;;;;;;;;;;;;;202:20:3;;;;;;;;;;;;2113:90;2173:11;;2147:4;;-1:-1:-1;;;;;2173:11:3;2166:30;2147:4;2166:32;;;;;;;-1:-1:-1;;;2166:32:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2113:90:3;;:::o;1769:72::-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1819:11;:17;;-1:-1:-1;;1819:17:3;-1:-1:-1;;;;;1819:17:3;;;;;866:70;1769:72;:::o;2316:59::-;2364:6;;2316:59;:::o;2017:92::-;2078:11;;2052:4;;-1:-1:-1;;;;;2078:11:3;2071:31;2052:4;2071:33;;;;;;;-1:-1:-1;;;2071:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;1466:239:5;1512:12;1526:8;1500:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1548:11:5;;1542:17;;1575:3;:11;;;;1587:9;;1575:22;;;;;;;;;;;-1:-1:-1;;;1575:22:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1565:32;;1615:9;;:29;;;;1645:7;1662:4;1615:53;;;;;;;;;;;-1:-1:-1;;;1615:53:5;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1615:53:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1603:9;:65;-1:-1:-1;1674:6:5;:26;;1688:11;;;1674:26;;;;1524:82:3;1466:239:5;;;;:::o;1709:298::-;1754:12;1768:8;1742:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1854:5:5;;1848:11;;1875:3;:11;;;;1887:9;;1875:22;;;;;;;;;;;-1:-1:-1;;;1875:22:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1903:9;:20;;;;;;;1938:6;;1875:22;;-1:-1:-1;1938:25:5;;-1:-1:-1;1938:25:5;;1964:11;;;1976:10;1996:4;1903:9;1938:64;;;;;;;;;;-1:-1:-1;;;1938:64:5;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1938:64:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1929:6;:73;-1:-1:-1;1524:82:3;;2389:74;2447:11;;-1:-1:-1;;;;;2447:11:3;;2389:74::o;2207:105::-;2273:11;;2247:4;;-1:-1:-1;;;;;2273:11:3;2266:39;2247:4;2266:41;;;;;;;-1:-1:-1;;;2266:41:3;;;;;;;;;;;;;;;;;;;;;;;;;;1701:64;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1750:4;:10;;-1:-1:-1;;1750:10:3;-1:-1:-1;;;;;1750:10:3;;;;;866:70;;433:260:5;515:5;;575:12;;559:13;;474:8;;590:3;559:28;;:34;555:115;;;-1:-1:-1;618:5:5;555:115;;;-1:-1:-1;659:4:5;555:115;433:260;;:::o;1845:98:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1910:18;;;;:15;:18;;;;;:28;;;;;;:18;:28;;:::i;:::-;-1:-1:-1;1910:28:3;;;;;;;;;;;-1:-1:-1;;;;;;1910:28:3;-1:-1:-1;;;;;1910:28:3;;;;;1845:98;;:::o;300:129:5:-;345:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;987:5;;973:10;-1:-1:-1;;;;;973:19:3;;;987:5;;973:19;969:70;;;364:5:5;:11;;;381;:18;;;421:3;405:13;:19;969:70:3;300:129:5;;;:::o;202:20:3:-;;;-1:-1:-1;;;;;202:20:3;;:::o;131:1878:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","source":"pragma solidity ^0.4.4;\n\nimport \"./IGrid.sol\";\nimport \"./IBattery.sol\";\nimport \"./TransactLib.sol\";\nimport \"./GeneralDevice.sol\";\n\ncontract Grid is GeneralDevice, IGrid {\n\n using TransactLib for *;\n\n uint price;\n uint priceFeedIn;\n\n \n\n function Grid(address adr) GeneralDevice(adr) { }\n\n function setPrice(uint prs, uint prsF) timed(1) ownerOnly {\n price = prs;\n priceFeedIn = prsF;\n priceStatusAt = now;\n }\n\n function getPrice() public view returns (uint prs, bool updatedOrNot) {\n prs = price;\n //prsAt = priceStatusAt;\n if (priceStatusAt + priceTimeOut < now) {\n updatedOrNot = false;\n } else {\n updatedOrNot = true;\n }\n //adr = owner;\n }\n // Does not need to be implemented if the clockLib works\n /*function needTBCharged() {\n //Grid ask if battery is actively buying energy from grid?\n uint consum;\n uint rank;\n uint tot;\n bool updated;\n uint whatDeviceAccept;\n uint receivedMoney;\n address adr;\n for (uint i = 0; i < connectedDevice[2].length; i++) {\n (consum,rank,tot,updated) = IBattery(connectedDevice[2][i]).getSortedPrice();\n if (updated && consum != 0) {\n // transaction\n adr = connectedDevice[2][i];\n whatDeviceAccept = IBattery(adr).goNoGo(posBackup);\n posBackup -= whatDeviceAccept;\n receivedMoney = whatDeviceAccept*price;\n wallet = wallet.clearMoneyTransfer(receivedMoney,adr, address(this));\n }\n }\n }*/\n\n function goExcess(uint vol) timed(5) returns (uint takeVol, uint prs) {\n prs = priceFeedIn;\n takeVol = vol.findMin(negBackup);\n negBackup = negBackup.clearEnergyTransfer(takeVol, address(this));\n wallet -= int(takeVol*prs);\n }\n\n function goExtra(uint vol) timed(5) returns (uint takeVol, uint prs) { // when houses have not sufficient energy supply from microgrid\n prs = price;\n takeVol = vol.findMin(posBackup);\n posBackup -= takeVol;\n wallet = wallet.clearMoneyTransfer(takeVol*prs,msg.sender, address(this));\n }\n}\n","sourcePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/Grid.sol","ast":{"attributes":{"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/Grid.sol","exportedSymbols":{"Grid":[1122]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".4"]},"id":961,"name":"PragmaDirective","src":"0:23:5"},{"attributes":{"SourceUnit":1228,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IGrid.sol","file":"./IGrid.sol","scope":1123,"symbolAliases":[null],"unitAlias":""},"id":962,"name":"ImportDirective","src":"25:21:5"},{"attributes":{"SourceUnit":1180,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IBattery.sol","file":"./IBattery.sol","scope":1123,"symbolAliases":[null],"unitAlias":""},"id":963,"name":"ImportDirective","src":"47:24:5"},{"attributes":{"SourceUnit":4165,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/TransactLib.sol","file":"./TransactLib.sol","scope":1123,"symbolAliases":[null],"unitAlias":""},"id":964,"name":"ImportDirective","src":"72:27:5"},{"attributes":{"SourceUnit":773,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/GeneralDevice.sol","file":"./GeneralDevice.sol","scope":1123,"symbolAliases":[null],"unitAlias":""},"id":965,"name":"ImportDirective","src":"100:29:5"},{"attributes":{"contractDependencies":[772,1227],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[1122,1227,772],"name":"Grid","scope":1123},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"GeneralDevice","referencedDeclaration":772,"type":"contract GeneralDevice"},"id":966,"name":"UserDefinedTypeName","src":"148:13:5"}],"id":967,"name":"InheritanceSpecifier","src":"148:13:5"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"IGrid","referencedDeclaration":1227,"type":"contract IGrid"},"id":968,"name":"UserDefinedTypeName","src":"163:5:5"}],"id":969,"name":"InheritanceSpecifier","src":"163:5:5"},{"attributes":{"typeName":null},"children":[{"attributes":{"contractScope":null,"name":"TransactLib","referencedDeclaration":4164,"type":"library TransactLib"},"id":970,"name":"UserDefinedTypeName","src":"180:11:5"}],"id":971,"name":"UsingForDirective","src":"174:24:5"},{"attributes":{"constant":false,"name":"price","scope":1122,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":972,"name":"ElementaryTypeName","src":"202:4:5"}],"id":973,"name":"VariableDeclaration","src":"202:13:5"},{"attributes":{"constant":false,"name":"priceFeedIn","scope":1122,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":974,"name":"ElementaryTypeName","src":"219:4:5"}],"id":975,"name":"VariableDeclaration","src":"219:19:5"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"name":"Grid","payable":false,"scope":1122,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"adr","scope":984,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":976,"name":"ElementaryTypeName","src":"261:7:5"}],"id":977,"name":"VariableDeclaration","src":"261:11:5"}],"id":978,"name":"ParameterList","src":"260:13:5"},{"attributes":{"parameters":[null]},"children":[],"id":982,"name":"ParameterList","src":"293:0:5"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":772,"type":"type(contract GeneralDevice)","value":"GeneralDevice"},"id":979,"name":"Identifier","src":"274:13:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":977,"type":"address","value":"adr"},"id":980,"name":"Identifier","src":"288:3:5"}],"id":981,"name":"ModifierInvocation","src":"274:18:5"},{"attributes":{"statements":[null]},"children":[],"id":983,"name":"Block","src":"293:3:5"}],"id":984,"name":"FunctionDefinition","src":"247:49:5"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setPrice","payable":false,"scope":1122,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"prs","scope":1009,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":985,"name":"ElementaryTypeName","src":"318:4:5"}],"id":986,"name":"VariableDeclaration","src":"318:8:5"},{"attributes":{"constant":false,"name":"prsF","scope":1009,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":987,"name":"ElementaryTypeName","src":"328:4:5"}],"id":988,"name":"VariableDeclaration","src":"328:9:5"}],"id":989,"name":"ParameterList","src":"317:21:5"},{"attributes":{"parameters":[null]},"children":[],"id":995,"name":"ParameterList","src":"358:0:5"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":990,"name":"Identifier","src":"339:5:5"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":991,"name":"Literal","src":"345:1:5"}],"id":992,"name":"ModifierInvocation","src":"339:8:5"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"modifier ()","value":"ownerOnly"},"id":993,"name":"Identifier","src":"348:9:5"}],"id":994,"name":"ModifierInvocation","src":"348:9:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":973,"type":"uint256","value":"price"},"id":996,"name":"Identifier","src":"364:5:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":986,"type":"uint256","value":"prs"},"id":997,"name":"Identifier","src":"372:3:5"}],"id":998,"name":"Assignment","src":"364:11:5"}],"id":999,"name":"ExpressionStatement","src":"364:11:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":975,"type":"uint256","value":"priceFeedIn"},"id":1000,"name":"Identifier","src":"381:11:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":988,"type":"uint256","value":"prsF"},"id":1001,"name":"Identifier","src":"395:4:5"}],"id":1002,"name":"Assignment","src":"381:18:5"}],"id":1003,"name":"ExpressionStatement","src":"381:18:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1189,"type":"uint256","value":"priceStatusAt"},"id":1004,"name":"Identifier","src":"405:13:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":1005,"name":"Identifier","src":"421:3:5"}],"id":1006,"name":"Assignment","src":"405:19:5"}],"id":1007,"name":"ExpressionStatement","src":"405:19:5"}],"id":1008,"name":"Block","src":"358:71:5"}],"id":1009,"name":"FunctionDefinition","src":"300:129:5"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getPrice","payable":false,"scope":1122,"stateMutability":"view","superFunction":1202,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":1010,"name":"ParameterList","src":"450:2:5"},{"children":[{"attributes":{"constant":false,"name":"prs","scope":1037,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1011,"name":"ElementaryTypeName","src":"474:4:5"}],"id":1012,"name":"VariableDeclaration","src":"474:8:5"},{"attributes":{"constant":false,"name":"updatedOrNot","scope":1037,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1013,"name":"ElementaryTypeName","src":"484:4:5"}],"id":1014,"name":"VariableDeclaration","src":"484:17:5"}],"id":1015,"name":"ParameterList","src":"473:29:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1012,"type":"uint256","value":"prs"},"id":1016,"name":"Identifier","src":"509:3:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":973,"type":"uint256","value":"price"},"id":1017,"name":"Identifier","src":"515:5:5"}],"id":1018,"name":"Assignment","src":"509:11:5"}],"id":1019,"name":"ExpressionStatement","src":"509:11:5"},{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1189,"type":"uint256","value":"priceStatusAt"},"id":1020,"name":"Identifier","src":"559:13:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1187,"type":"uint256","value":"priceTimeOut"},"id":1021,"name":"Identifier","src":"575:12:5"}],"id":1022,"name":"BinaryOperation","src":"559:28:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":1023,"name":"Identifier","src":"590:3:5"}],"id":1024,"name":"BinaryOperation","src":"559:34:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1014,"type":"bool","value":"updatedOrNot"},"id":1025,"name":"Identifier","src":"603:12:5"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":1026,"name":"Literal","src":"618:5:5"}],"id":1027,"name":"Assignment","src":"603:20:5"}],"id":1028,"name":"ExpressionStatement","src":"603:20:5"}],"id":1029,"name":"Block","src":"595:35:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1014,"type":"bool","value":"updatedOrNot"},"id":1030,"name":"Identifier","src":"644:12:5"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1031,"name":"Literal","src":"659:4:5"}],"id":1032,"name":"Assignment","src":"644:19:5"}],"id":1033,"name":"ExpressionStatement","src":"644:19:5"}],"id":1034,"name":"Block","src":"636:34:5"}],"id":1035,"name":"IfStatement","src":"555:115:5"}],"id":1036,"name":"Block","src":"503:190:5"}],"id":1037,"name":"FunctionDefinition","src":"433:260:5"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"goExcess","payable":false,"scope":1122,"stateMutability":"nonpayable","superFunction":1214,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"vol","scope":1079,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1038,"name":"ElementaryTypeName","src":"1484:4:5"}],"id":1039,"name":"VariableDeclaration","src":"1484:8:5"}],"id":1040,"name":"ParameterList","src":"1483:10:5"},{"children":[{"attributes":{"constant":false,"name":"takeVol","scope":1079,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1044,"name":"ElementaryTypeName","src":"1512:4:5"}],"id":1045,"name":"VariableDeclaration","src":"1512:12:5"},{"attributes":{"constant":false,"name":"prs","scope":1079,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1046,"name":"ElementaryTypeName","src":"1526:4:5"}],"id":1047,"name":"VariableDeclaration","src":"1526:8:5"}],"id":1048,"name":"ParameterList","src":"1511:24:5"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":1041,"name":"Identifier","src":"1494:5:5"},{"attributes":{"argumentTypes":null,"hexvalue":"35","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 5","value":"5"},"id":1042,"name":"Literal","src":"1500:1:5"}],"id":1043,"name":"ModifierInvocation","src":"1494:8:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1047,"type":"uint256","value":"prs"},"id":1049,"name":"Identifier","src":"1542:3:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":975,"type":"uint256","value":"priceFeedIn"},"id":1050,"name":"Identifier","src":"1548:11:5"}],"id":1051,"name":"Assignment","src":"1542:17:5"}],"id":1052,"name":"ExpressionStatement","src":"1542:17:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1045,"type":"uint256","value":"takeVol"},"id":1053,"name":"Identifier","src":"1565:7:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"findMin","referencedDeclaration":4048,"type":"function (uint256,uint256) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1039,"type":"uint256","value":"vol"},"id":1054,"name":"Identifier","src":"1575:3:5"}],"id":1055,"name":"MemberAccess","src":"1575:11:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1195,"type":"uint256","value":"negBackup"},"id":1056,"name":"Identifier","src":"1587:9:5"}],"id":1057,"name":"FunctionCall","src":"1575:22:5"}],"id":1058,"name":"Assignment","src":"1565:32:5"}],"id":1059,"name":"ExpressionStatement","src":"1565:32:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1195,"type":"uint256","value":"negBackup"},"id":1060,"name":"Identifier","src":"1603:9:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1195,"type":"uint256","value":"negBackup"},"id":1061,"name":"Identifier","src":"1615:9:5"}],"id":1062,"name":"MemberAccess","src":"1615:29:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1045,"type":"uint256","value":"takeVol"},"id":1063,"name":"Identifier","src":"1645:7:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_Grid_$1122","typeString":"contract Grid"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":1064,"name":"ElementaryTypeNameExpression","src":"1654:7:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4215,"type":"contract Grid","value":"this"},"id":1065,"name":"Identifier","src":"1662:4:5"}],"id":1066,"name":"FunctionCall","src":"1654:13:5"}],"id":1067,"name":"FunctionCall","src":"1615:53:5"}],"id":1068,"name":"Assignment","src":"1603:65:5"}],"id":1069,"name":"ExpressionStatement","src":"1603:65:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":1070,"name":"Identifier","src":"1674:6:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":1071,"name":"ElementaryTypeNameExpression","src":"1684:3:5"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1045,"type":"uint256","value":"takeVol"},"id":1072,"name":"Identifier","src":"1688:7:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1047,"type":"uint256","value":"prs"},"id":1073,"name":"Identifier","src":"1696:3:5"}],"id":1074,"name":"BinaryOperation","src":"1688:11:5"}],"id":1075,"name":"FunctionCall","src":"1684:16:5"}],"id":1076,"name":"Assignment","src":"1674:26:5"}],"id":1077,"name":"ExpressionStatement","src":"1674:26:5"}],"id":1078,"name":"Block","src":"1536:169:5"}],"id":1079,"name":"FunctionDefinition","src":"1466:239:5"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"goExtra","payable":false,"scope":1122,"stateMutability":"nonpayable","superFunction":1226,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"vol","scope":1121,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1080,"name":"ElementaryTypeName","src":"1726:4:5"}],"id":1081,"name":"VariableDeclaration","src":"1726:8:5"}],"id":1082,"name":"ParameterList","src":"1725:10:5"},{"children":[{"attributes":{"constant":false,"name":"takeVol","scope":1121,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1086,"name":"ElementaryTypeName","src":"1754:4:5"}],"id":1087,"name":"VariableDeclaration","src":"1754:12:5"},{"attributes":{"constant":false,"name":"prs","scope":1121,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1088,"name":"ElementaryTypeName","src":"1768:4:5"}],"id":1089,"name":"VariableDeclaration","src":"1768:8:5"}],"id":1090,"name":"ParameterList","src":"1753:24:5"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":1083,"name":"Identifier","src":"1736:5:5"},{"attributes":{"argumentTypes":null,"hexvalue":"35","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 5","value":"5"},"id":1084,"name":"Literal","src":"1742:1:5"}],"id":1085,"name":"ModifierInvocation","src":"1736:8:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1089,"type":"uint256","value":"prs"},"id":1091,"name":"Identifier","src":"1848:3:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":973,"type":"uint256","value":"price"},"id":1092,"name":"Identifier","src":"1854:5:5"}],"id":1093,"name":"Assignment","src":"1848:11:5"}],"id":1094,"name":"ExpressionStatement","src":"1848:11:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1087,"type":"uint256","value":"takeVol"},"id":1095,"name":"Identifier","src":"1865:7:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"findMin","referencedDeclaration":4048,"type":"function (uint256,uint256) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1081,"type":"uint256","value":"vol"},"id":1096,"name":"Identifier","src":"1875:3:5"}],"id":1097,"name":"MemberAccess","src":"1875:11:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1192,"type":"uint256","value":"posBackup"},"id":1098,"name":"Identifier","src":"1887:9:5"}],"id":1099,"name":"FunctionCall","src":"1875:22:5"}],"id":1100,"name":"Assignment","src":"1865:32:5"}],"id":1101,"name":"ExpressionStatement","src":"1865:32:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1192,"type":"uint256","value":"posBackup"},"id":1102,"name":"Identifier","src":"1903:9:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1087,"type":"uint256","value":"takeVol"},"id":1103,"name":"Identifier","src":"1916:7:5"}],"id":1104,"name":"Assignment","src":"1903:20:5"}],"id":1105,"name":"ExpressionStatement","src":"1903:20:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":1106,"name":"Identifier","src":"1929:6:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearMoneyTransfer","referencedDeclaration":4107,"type":"function (int256,uint256,address,address) returns (int256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":1107,"name":"Identifier","src":"1938:6:5"}],"id":1108,"name":"MemberAccess","src":"1938:25:5"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1087,"type":"uint256","value":"takeVol"},"id":1109,"name":"Identifier","src":"1964:7:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1089,"type":"uint256","value":"prs"},"id":1110,"name":"Identifier","src":"1972:3:5"}],"id":1111,"name":"BinaryOperation","src":"1964:11:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":1112,"name":"Identifier","src":"1976:3:5"}],"id":1113,"name":"MemberAccess","src":"1976:10:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_Grid_$1122","typeString":"contract Grid"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":1114,"name":"ElementaryTypeNameExpression","src":"1988:7:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4215,"type":"contract Grid","value":"this"},"id":1115,"name":"Identifier","src":"1996:4:5"}],"id":1116,"name":"FunctionCall","src":"1988:13:5"}],"id":1117,"name":"FunctionCall","src":"1938:64:5"}],"id":1118,"name":"Assignment","src":"1929:73:5"}],"id":1119,"name":"ExpressionStatement","src":"1929:73:5"}],"id":1120,"name":"Block","src":"1778:229:5"}],"id":1121,"name":"FunctionDefinition","src":"1709:298:5"}],"id":1122,"name":"ContractDefinition","src":"131:1878:5"}],"id":1123,"name":"SourceUnit","src":"0:2010:5"},"compiler":{"name":"solc","version":"0.4.18+commit.9cf6e910.Emscripten.clang"},"networks":{"1513694582674":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x9d362366891ab58651569d81913d4b816088130d"},"address":"0x7631405989e4c3535cfc199d91e7a385cfbaa48d"},"1513697632729":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xc8a86b5903ab611bec4fc6fdf237a1d206e15acf"},"address":"0x74a8225dbdcdc469650dbc9ad55fdc1e9339a111"},"1513763710755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x27773684e75ae51c682f089b2a3b86ef707970ee"},"address":"0xb1bea5e612d8e5fc26d309a4e8b0840d655e95db"},"1513771446044":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x98b427e11e15bb546e7ed96758a8eff0ee6e027d"},"address":"0x10f27f9978ebce8ff8fa2b7ab995912b0685595a"},"1513771818067":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x07e3d14562988d3896f468f5806fab6e092b78c6"},"address":"0x5f09863d65fbd983dd87c2262926734f66f1d541"},"1513772129137":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xb6d612907ee10abd3647fd327b135b722e48fdff"},"address":"0x252cf1595751b0ef71e8772e07dfb06c32377146"},"1513772799886":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x20419e3e4cc09b5ca9d23ceec64f359f30861a05"},"address":"0xfe1369e1229ed0cbd3808c6a1c5bb69516f5f973"},"1513773239755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x0f0686d00c98181866cfd27b71da96c1aa7dc6b0"},"address":"0x8c4b72d0e5d19667f9b769c6e18ae34d6ab85854"},"1513773645333":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xfd9d43eaae27ccb48004fedd4d2d586b9ea5749b"},"address":"0xcee4e1f8aae9cd0a0150f37f61ef3a37fa52999a"},"1513777045350":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xbf436b9323f8461b019b42007535e33b08e54bf0"},"address":"0xd2e0533dc48509906a759e961f5a01dd28006ce3"},"1513778825921":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xd0faef622cf49398cdea9d0007f85ecf6968a321"},"address":"0x5f72725f7a039b4f90d430822cd81efd95e08aef"},"1513778906317":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xd505c556b8e7d261d56bd2a887ea75bb8fe9e660"},"address":"0xde043c94f9b453e44b0c1c6a099de7ada8bb977d"},"1513779036442":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x055974c9295369da64b3461b5239d4295e307b36"},"address":"0x1f70fcfb5dc60eca60378e4e0694de5e9d20a233"},"1513781372031":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x15e0bea40333f9251ad1c2e990d63c6c15007dbe"},"address":"0x5320b2ea44e90ac899ee9754442a51f52bdf128a"},"1513781520103":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x3685bad9e0dd801b34b5a592be1678e1a984e3ad"},"address":"0x21af240a4585bd16b56087d04c887227e046898d"},"1513781725934":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xe7ffb66a9f459043a51773d63441b6abe90d2335"},"address":"0x64e9d2085f8c5ff9d1a298b93cc2fa8a68b27dce"},"1513781878089":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x308aac19f2f85404332e1ba26a307d300c9de27c"},"address":"0xaeeee736921490395bd2a6d464c032902453e036"},"1513782049907":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x9565d721bad77b973057ff5ec68ad9e99aafd2d1"},"address":"0xab664f478e4a25e742cba3651e300d596ef35379"},"1513782106845":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x2fda037b1fd7c3318b51c493320865b6a70f5cc6"},"address":"0x7044474f436d9918157ea38c19debc01083938c2"},"1513782148189":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x58b466514d9200cee966b2b75df662f87fa096eb"},"address":"0xa07a447e884d53927e943aa1dc0f99cca67b5e0d"},"1513782179458":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x98aea1f7cf8395148413a3156d0f57a29795526f"},"address":"0x76ca8fa31279b77dfa5b6f74565e5b1efb6ac00e"},"1513782236877":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x943cfa4a8165e79a3d2970f85cca95314532bc69"},"address":"0xcd4564c06200d521299a91323726223a9b359b91"},"1513782526210":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x7dc09671ee66eb667dac2052183190ff10e4c8c3"},"address":"0x0ab67ec41eb300aca966c7c5fb5b51ebb291ddb6"},"1513782951368":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0xf3c53ed6062b1e7503fbf3d635f7c9e04068402d"},"address":"0xdab50e191e104d9dfa458d4c3eb94fa5639cd6fc"},"1513783449271":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x7ff701216ff981fb4f430a051fa6455f30abb1de"},"address":"0x64503a82dab82dbb7710c5fd28900881d773a087"},"1513783569288":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x9e4073955f99708d893e8a97787f1303744af560"},"address":"0xa113100b6e1dace3c4b3418d662a2a200490685b"},"1513783657231":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"TransactLib":"0x90ef429afd389a5f495882995c2da74b3b29f84d"},"address":"0x6b5bc5ea7ba2d6e5b3a3733da40ccc8827b49354"}},"schemaVersion":"1.0.1","updatedAt":"2017-12-20T15:27:45.562Z"},"abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"vol","type":"uint256"}],"name":"goExcess","outputs":[{"name":"takeVol","type":"uint256"},{"name":"prs","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"vol","type":"uint256"}],"name":"goExtra","outputs":[{"name":"takeVol","type":"uint256"},{"name":"prs","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"prs","type":"uint256"},{"name":"updatedOrNot","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"prs","type":"uint256"},{"name":"prsF","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}],"contract":{"_eth":{"_requestManager":{"provider":{"provider":{"host":"http://localhost:8545","timeout":0,"_alreadyWrapped":true}},"polls":{},"timeout":null},"compile":{},"coinbase":"0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","mining":true,"hashrate":0,"syncing":false,"gasPrice":"20000000000","accounts":["0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","0xe208d1dd66f7f3da8d2247f2baa3c592fa85dd11","0x473ded0842ff40ffeafe1fa376b959c9b23c89ce","0x0e514e7d670f5ad315767e9b13774d654b92b792","0x72133c776d4e59a04a879744315c72400e72523e","0x8aab4c99ff957be2c2b312c3a290333110107862","0xe4e42e5f6c7d581b9e46e6a34c47a700c932ea7c","0x508e6d0c3e398d127916c0c3d45a3105047e1b79","0x20845b8f15ea0569f5017e411c8536a6bd1bf6a5","0x8fd36fedfd713fdf28f2082732bd1eb3592bb1a3"],"blockNumber":45,"protocolVersion":"63"},"transactionHash":null,"address":"0x0496d7796e85517fc69492f1589478b156418c4b","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"vol","type":"uint256"}],"name":"goExcess","outputs":[{"name":"takeVol","type":"uint256"},{"name":"prs","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"vol","type":"uint256"}],"name":"goExtra","outputs":[{"name":"takeVol","type":"uint256"},{"name":"prs","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"prs","type":"uint256"},{"name":"updatedOrNot","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"prs","type":"uint256"},{"name":"prsF","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]},"address":"0x0496d7796e85517fc69492f1589478b156418c4b","transactionHash":null}}],"house":[{"id":0,"picture":"images/house.png","address":"0x473ded0842ff40ffeafe1fa376b959c9b23c89ce","contract_address":"0xa4d64be6ab002176ab14f55d693a49fe14f664e5","device_name":"house0","device_type":"house","values":{"consumption":[["3","1513783666"],["3","1513783666"],["0","1513783666"],["0","1513783666"]],"production":[],"price":[],"wallet":["0","0","-60","-60"]},"contract":{"constructor":{"contractName":"SingleHouse","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}],"bytecode":"0x606060405260038054600160a060020a0319908116909155600480549091169055341561002b57600080fd5b6040516020806110d98339810160405280805160018054600160a060020a03928316600160a060020a0319918216179091556000805433909316929091169190911790555050611059806100806000396000f3006060604052600436106100ed5763ffffffff60e060020a600035041663074b7c8081146100f25780630830cfae146101175780630ff3728214610138578063132996041461014e5780631b45f0e014610161578063235a4a4f146101a05780633acca96d146101b3578063557ed1ba146101c65780635a500ecc146101d957806370ed8f24146101ef57806382076a711461021e5780638a5cb1b6146102315780638d646b111461025c5780639888c3c21461027b578063aac12b4b1461028e578063bbe4fd50146102a1578063bfd11903146102b4578063c9746029146102d6578063ff1b636d146102e9575b600080fd5b34156100fd57600080fd5b6101056102fc565b60405190815260200160405180910390f35b341561012257600080fd5b610136600160a060020a0360043516610366565b005b341561014357600080fd5b6101056004356103a9565b341561015957600080fd5b61010561064e565b341561016c57600080fd5b610174610654565b604051938452602084019290925260408084019190915290151560608301526080909101905180910390f35b34156101ab57600080fd5b6101056106f9565b34156101be57600080fd5b610136610743565b34156101d157600080fd5b61010561089e565b34156101e457600080fd5b6101366004356108ad565b34156101fa57600080fd5b61020261094d565b604051600160a060020a03909116815260200160405180910390f35b341561022957600080fd5b61010561095c565b341561023c57600080fd5b6102446109a6565b60405191825260208201526040908101905180910390f35b341561026757600080fd5b610136600160a060020a03600435166109b0565b341561028657600080fd5b6101056109f4565b341561029957600080fd5b6101366109fe565b34156102ac57600080fd5b610105610b91565b34156102bf57600080fd5b610136600435600160a060020a0360243516610b95565b34156102e157600080fd5b610136610c01565b34156102f457600080fd5b610202610fa1565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ed576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600080600060046103b86106f9565b8114156100ed5760026000908152600660205233935073__AdrLib________________________________90632c2fc20e9060008051602061100e8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051905080610505575060016000908152600660205273__AdrLib________________________________90632c2fc20e90600080516020610fee8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b15156104e957600080fd5b6102c65a03f415156104fa57600080fd5b505050604051805190505b151561051057600080fd5b60075473__TransactLib___________________________63bc2e368c90918760006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561057257600080fd5b6102c65a03f4151561058357600080fd5b50505060405180519050915060075473__TransactLib___________________________639e5fd0a99091843060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561060357600080fd5b6102c65a03f4151561061457600080fd5b50505060405180516007555050600160a060020a03919091166000908152600a602052604090205460058054918302909103905592915050565b60055490565b600754600080803373__SortPLib______________________________63c6742457600a83856040516060015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160606040518083038186803b15156106c357600080fd5b6102c65a03f415156106d457600080fd5b5050506040518051906020018051906020018051979892979196509094509092505050565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b600080600060056107526106f9565b8114156100ed57600354600160a060020a0316151561077057600080fd5b6000600754111561089857600354600754600160a060020a0390911690636e2855449060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b15156107d157600080fd5b6102c65a03f115156107e257600080fd5b5050506040518051906020018051600754929650935073__TransactLib___________________________91639e5fd0a99150863060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561086a57600080fd5b6102c65a03f4151561087b57600080fd5b505050604051805160075550600580548584029081900390915592505b50505050565b60006108a86106f9565b905090565b60016108b76106f9565b8114156100ed5760015433600160a060020a03908116911614156100ed5760078290554260088190556001547f93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad0651692691600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6007546008549091565b60005433600160a060020a03908116911614156100ed576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103a6565b60006108a861095c565b6000806002610a0b6106f9565b8114156100ed5773__SortPLib______________________________6332a76998600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610a6257600080fd5b6102c65a03f41515610a7357600080fd5b5050600354600160a060020a0316159050610b8c5760035460009350839250600160a060020a03166398d5fdca83604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ad557600080fd5b6102c65a03f11515610ae657600080fd5b5050506040518051906020018051600354929550935073__SortPLib______________________________9163c3af64529150600a90600160a060020a0316868660405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610b7757600080fd5b6102c65a03f41515610b8857600080fd5b5050505b505050565b4290565b60005433600160a060020a03908116911614156100ed576000828152600660205260409020805460018101610bca8382610fb0565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610949565b60008060006002610c106106f9565b8114156100ed576000935083925073__SortPLib______________________________63e61f7934600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610c6e57600080fd5b6102c65a03f41515610c7f57600080fd5b505050600091505b6002600052600660205260008051602061100e83398151915254821015610e0d576002600052600660205260008051602061100e833981519152805483908110610ccd57fe5b6000918252602082200154600160a060020a031690632fbc0bf190604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610d1c57600080fd5b6102c65a03f11515610d2d57600080fd5b50505060405180519060200180516002600052600660205260008051602061100e833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610d8757fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610dee57600080fd5b6102c65a03f41515610dff57600080fd5b505060019092019150610c87565b600091505b60016000526006602052600080516020610fee83398151915254821015610f985760016000526006602052600080516020610fee833981519152805483908110610e5857fe5b6000918252602082200154600160a060020a0316906398d5fdca90604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ea757600080fd5b6102c65a03f11515610eb857600080fd5b505050604051805190602001805160016000526006602052600080516020610fee833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610f1257fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610f7957600080fd5b6102c65a03f41515610f8a57600080fd5b505060019092019150610e12565b42600955610898565b600054600160a060020a031681565b815481835581811511610b8c57600083815260209020610b8c91810190830161036391905b80821115610fe95760008155600101610fd5565b509056003e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a318819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820c6eed5ade0a5b754f5c5f186d740af4468adfb1dd022bd7214c5ecb1037c9f190029","deployedBytecode":"0x6060604052600436106100ed5763ffffffff60e060020a600035041663074b7c8081146100f25780630830cfae146101175780630ff3728214610138578063132996041461014e5780631b45f0e014610161578063235a4a4f146101a05780633acca96d146101b3578063557ed1ba146101c65780635a500ecc146101d957806370ed8f24146101ef57806382076a711461021e5780638a5cb1b6146102315780638d646b111461025c5780639888c3c21461027b578063aac12b4b1461028e578063bbe4fd50146102a1578063bfd11903146102b4578063c9746029146102d6578063ff1b636d146102e9575b600080fd5b34156100fd57600080fd5b6101056102fc565b60405190815260200160405180910390f35b341561012257600080fd5b610136600160a060020a0360043516610366565b005b341561014357600080fd5b6101056004356103a9565b341561015957600080fd5b61010561064e565b341561016c57600080fd5b610174610654565b604051938452602084019290925260408084019190915290151560608301526080909101905180910390f35b34156101ab57600080fd5b6101056106f9565b34156101be57600080fd5b610136610743565b34156101d157600080fd5b61010561089e565b34156101e457600080fd5b6101366004356108ad565b34156101fa57600080fd5b61020261094d565b604051600160a060020a03909116815260200160405180910390f35b341561022957600080fd5b61010561095c565b341561023c57600080fd5b6102446109a6565b60405191825260208201526040908101905180910390f35b341561026757600080fd5b610136600160a060020a03600435166109b0565b341561028657600080fd5b6101056109f4565b341561029957600080fd5b6101366109fe565b34156102ac57600080fd5b610105610b91565b34156102bf57600080fd5b610136600435600160a060020a0360243516610b95565b34156102e157600080fd5b610136610c01565b34156102f457600080fd5b610202610fa1565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ed576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600080600060046103b86106f9565b8114156100ed5760026000908152600660205233935073__AdrLib________________________________90632c2fc20e9060008051602061100e8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051905080610505575060016000908152600660205273__AdrLib________________________________90632c2fc20e90600080516020610fee8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b15156104e957600080fd5b6102c65a03f415156104fa57600080fd5b505050604051805190505b151561051057600080fd5b60075473__TransactLib___________________________63bc2e368c90918760006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561057257600080fd5b6102c65a03f4151561058357600080fd5b50505060405180519050915060075473__TransactLib___________________________639e5fd0a99091843060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561060357600080fd5b6102c65a03f4151561061457600080fd5b50505060405180516007555050600160a060020a03919091166000908152600a602052604090205460058054918302909103905592915050565b60055490565b600754600080803373__SortPLib______________________________63c6742457600a83856040516060015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160606040518083038186803b15156106c357600080fd5b6102c65a03f415156106d457600080fd5b5050506040518051906020018051906020018051979892979196509094509092505050565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b600080600060056107526106f9565b8114156100ed57600354600160a060020a0316151561077057600080fd5b6000600754111561089857600354600754600160a060020a0390911690636e2855449060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b15156107d157600080fd5b6102c65a03f115156107e257600080fd5b5050506040518051906020018051600754929650935073__TransactLib___________________________91639e5fd0a99150863060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561086a57600080fd5b6102c65a03f4151561087b57600080fd5b505050604051805160075550600580548584029081900390915592505b50505050565b60006108a86106f9565b905090565b60016108b76106f9565b8114156100ed5760015433600160a060020a03908116911614156100ed5760078290554260088190556001547f93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad0651692691600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6007546008549091565b60005433600160a060020a03908116911614156100ed576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103a6565b60006108a861095c565b6000806002610a0b6106f9565b8114156100ed5773__SortPLib______________________________6332a76998600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610a6257600080fd5b6102c65a03f41515610a7357600080fd5b5050600354600160a060020a0316159050610b8c5760035460009350839250600160a060020a03166398d5fdca83604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ad557600080fd5b6102c65a03f11515610ae657600080fd5b5050506040518051906020018051600354929550935073__SortPLib______________________________9163c3af64529150600a90600160a060020a0316868660405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610b7757600080fd5b6102c65a03f41515610b8857600080fd5b5050505b505050565b4290565b60005433600160a060020a03908116911614156100ed576000828152600660205260409020805460018101610bca8382610fb0565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610949565b60008060006002610c106106f9565b8114156100ed576000935083925073__SortPLib______________________________63e61f7934600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610c6e57600080fd5b6102c65a03f41515610c7f57600080fd5b505050600091505b6002600052600660205260008051602061100e83398151915254821015610e0d576002600052600660205260008051602061100e833981519152805483908110610ccd57fe5b6000918252602082200154600160a060020a031690632fbc0bf190604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610d1c57600080fd5b6102c65a03f11515610d2d57600080fd5b50505060405180519060200180516002600052600660205260008051602061100e833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610d8757fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610dee57600080fd5b6102c65a03f41515610dff57600080fd5b505060019092019150610c87565b600091505b60016000526006602052600080516020610fee83398151915254821015610f985760016000526006602052600080516020610fee833981519152805483908110610e5857fe5b6000918252602082200154600160a060020a0316906398d5fdca90604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ea757600080fd5b6102c65a03f11515610eb857600080fd5b505050604051805190602001805160016000526006602052600080516020610fee833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610f1257fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610f7957600080fd5b6102c65a03f41515610f8a57600080fd5b505060019092019150610e12565b42600955610898565b600054600160a060020a031681565b815481835581811511610b8c57600083815260209020610b8c91810190830161036391905b80821115610fe95760008155600101610fd5565b509056003e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a318819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820c6eed5ade0a5b754f5c5f186d740af4468adfb1dd022bd7214c5ecb1037c9f190029","sourceMap":"222:3762:13:-;;;594:18:3;;;-1:-1:-1;;;;;;594:18:3;;;;;;616:25;;;;;;;;840:57:13;;;;;;;;;;;;;;;;;;;;;;1657:5:3;:11;;-1:-1:-1;;;;;1657:11:3;;;-1:-1:-1;;;;;;1657:11:3;;;;;;;:5;1674:18;;1682:10;1674:18;;;;;;;;;;;;;-1:-1:-1;;222:3762:13;;;;;;","deployedSourceMap":"222:3762:13:-;;;;;;;;-1:-1:-1;;;222:3762:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2113:90:3;;;;;;;;;;;;;;;;;;;;;;;;;;;1769:72;;;;;;;;;;;;-1:-1:-1;;;;;1769:72:3;;;;;2565:620:13;;;;;;;;;;;;;;2316:59:3;;;;;;;;;;;;2284:209:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2017:92:3;;;;;;;;;;;;3260:447:13;;;;;;;;;;;;3773:68;;;;;;;;;;;;971:179;;;;;;;;;;;;;;2389:74:3;;;;;;;;;;;;;;;-1:-1:-1;;;;;2389:74:3;;;;;;;;;;;;;;;2207:105;;;;;;;;;;;;1154:140:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1701:64:3;;;;;;;;;;;;-1:-1:-1;;;;;1701:64:3;;;3845:79:13;;;;;;;;;;;;1960:320;;;;;;;;;;;;3928:54;;;;;;;;;;;;1845:98:3;;;;;;;;;;;;;;-1:-1:-1;;;;;1845:98:3;;;1387:509:13;;;;;;;;;;;;202:20:3;;;;;;;;;;;;2113:90;2173:11;;2147:4;;-1:-1:-1;;;;;2173:11:3;2166:30;2147:4;2166:32;;;;;;;-1:-1:-1;;;2166:32:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2113:90:3;;:::o;1769:72::-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1819:11;:17;;-1:-1:-1;;1819:17:3;-1:-1:-1;;;;;1819:17:3;;;;;866:70;1769:72;:::o;2565:620:13:-;2616:4;2628:17;2664:15;2604:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;2709:1:13;2693:18;;;;:15;:18;;2648:10;;-1:-1:-1;2693:31:13;;;;-1:-1:-1;;;;;;;;;;;2693:18:13;2648:10;;2693:18;:42;;;;;;;;;-1:-1:-1;;;2693:42:13;;;;;;;;;;-1:-1:-1;;;;;2693:42:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:88;;;-1:-1:-1;2755:1:13;2739:18;;;;:15;:18;;:31;;;;-1:-1:-1;;;;;;;;;;;2739:18:13;2771:9;;2739:18;:42;;;;;;;;;-1:-1:-1;;;2739:42:13;;;;;;;;;;-1:-1:-1;;;;;2739:42:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2693:88;2685:97;;;;;;;;2801:11;;:19;;;;2821:10;2801:31;;;;;;;;;;;-1:-1:-1;;;2801:31:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2788:44;;2852:11;;:31;;;;2884:10;2904:4;2852:58;;;;;;;;;;;-1:-1:-1;;;2852:58:13;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2852:58:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2838:11;:72;-1:-1:-1;;;;;;;3117:33:13;;;;:22;:33;;;:13;:33;;;;;:37;3092:6;:63;;3106:48;;;3092:63;;;;;3117:33;3106:48;-1:-1:-1;;2565:620:13:o;2316:59:3:-;2364:6;;2316:59;:::o;2284:209:13:-;2420:11;;2327;;;2395:10;2458:25;;:13;2395:10;2327:11;2458:30;;;;;;;;;;-1:-1:-1;;;2458:30:13;;;;;;;;;;-1:-1:-1;;;;;2458:30:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2284:209;;2437:51;;;;-1:-1:-1;2458:30:13;;-1:-1:-1;2284:209:13;;-1:-1:-1;;;2284:209:13:o;2017:92:3:-;2078:11;;2052:4;;-1:-1:-1;;;;;2078:11:3;2071:31;2052:4;2071:33;;;;;;;-1:-1:-1;;;2071:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;3260:447:13;3340:21;3367:18;3391:12;3286:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;3417:4:13;;-1:-1:-1;;;;;3417:4:13;:11;;3409:20;;;;;;3453:1;3439:11;;:15;3435:268;;;3500:4;;3514:11;;-1:-1:-1;;;;;3500:4:13;;;;3494:19;;3500:4;3494:32;;;;;;;;;;-1:-1:-1;;;3494:32:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3548:11;;3464:62;;-1:-1:-1;3494:32:13;-1:-1:-1;3548:31:13;;;;-1:-1:-1;3464:62:13;3606:4;3548:64;;;;;;;;;;;-1:-1:-1;;;3548:64:13;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3548:64:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3534:11;:78;-1:-1:-1;3668:6:13;:28;;3636:24;;;3668:28;;;;;;;3636:24;-1:-1:-1;3435:268:13;3260:447;;;;:::o;3773:68::-;3801:4;3820:16;:14;:16::i;:::-;3813:23;;3773:68;:::o;971:179::-;1021:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;987:5;;973:10;-1:-1:-1;;;;;973:19:3;;;987:5;;973:19;969:70;;;1043:11:13;:20;;;1086:3;1069:14;:20;;;1110:5;;1095:50;;-1:-1:-1;;;;;1110:5:13;;;;1043:20;;1095:50;;-1:-1:-1;;;;;1095:50:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;969:70:3;971:179:13;;:::o;2389:74:3:-;2447:11;;-1:-1:-1;;;;;2447:11:3;;2389:74::o;2207:105::-;2273:11;;2247:4;;-1:-1:-1;;;;;2273:11:3;2266:39;2247:4;2266:41;;;;;;;-1:-1:-1;;;2266:41:3;;;;;;;;;;;;;;;;;;;;;;;;;;1154:140:13;1247:11;;1275:14;;1247:11;;1154:140::o;1701:64:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1750:4;:10;;-1:-1:-1;;1750:10:3;-1:-1:-1;;;;;1750:10:3;;;;;866:70;;3845:79:13;3879:4;3898:21;:19;:21::i;1960:320::-;2148:7;2167;1987:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1996:26:13;;:13;:28;;;;;-1:-1:-1;;;1996:28:13;;;;;;;;;;;;-1:-1:-1;1996:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2127:4:13;;-1:-1:-1;;;;;2127:4:13;:11;;-1:-1:-1;2123:153:13;;2206:4;;2158:1;;-1:-1:-1;2158:1:13;;-1:-1:-1;;;;;;2206:4:13;2200:20;2158:1;2200:22;;;;;;;-1:-1:-1;;;2200:22:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2258:4;;2190:32;;-1:-1:-1;2200:22:13;-1:-1:-1;2230:27:13;;;;-1:-1:-1;2230:13:13;;-1:-1:-1;;;;;2258:4:13;2190:32;2200:22;2230:39;;;;;-1:-1:-1;;;2230:39:13;;;;;;;;;;-1:-1:-1;;;;;2230:39:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2230:39:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2123:153;1960:320;;;:::o;3928:54::-;3974:3;3928:54;:::o;1845:98:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1910:18;;;;:15;:18;;;;;:28;;;;;;:18;:28;;:::i;:::-;-1:-1:-1;1910:28:3;;;;;;;;;;;-1:-1:-1;;1910:28:3;-1:-1:-1;;;;;1910:28:3;;;;;866:70;;1387:509:13;1425:7;1442;1690:6;1416:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1435:1:13;;-1:-1:-1;1435:1:13;;-1:-1:-1;1463:26:13;;:13;:28;;;;;-1:-1:-1;;;1463:28:13;;;;;;;;;;;;-1:-1:-1;1463:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1506:1;1502:5;;1497:183;1529:1;1513:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1513:25:13;1509:29;;1497:183;;;1588:1;1572:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1572:21:13;;1591:1;;1572:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;1572:21:13;;1563:44;;:46;;;;;;;-1:-1:-1;;;1563:46:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1661:1;1645:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1645:21:13;;1553:56;;-1:-1:-1;1563:46:13;;-1:-1:-1;1617:27:13;;;;-1:-1:-1;1617:13:13;;1645:18;1664:1;;1645:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1645:21:13;1667:2;1670;1617:56;;;;;-1:-1:-1;;;1617:56:13;;;;;;;;;;-1:-1:-1;;;;;1617:56:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1617:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1540:3:13;;;;;-1:-1:-1;1497:183:13;;;1699:1;1690:10;;1685:179;1722:1;1706:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1706:25:13;1702:29;;1685:179;;;1776:1;1760:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1760:21:13;;1779:1;;1760:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;1760:21:13;;1756:35;;:37;;;;;;;-1:-1:-1;;;1756:37:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1845:1;1829:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1829:21:13;;1746:47;;-1:-1:-1;1756:37:13;;-1:-1:-1;1801:27:13;;;;-1:-1:-1;1801:13:13;;1829:18;1848:1;;1829:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1829:21:13;1851:2;1854;1801:56;;;;;-1:-1:-1;;;1801:56:13;;;;;;;;;;-1:-1:-1;;;;;1801:56:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1801:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1733:3:13;;;;;-1:-1:-1;1685:179:13;;;1888:3;1869:16;:22;1524:82:3;;202:20;;;-1:-1:-1;;;;;202:20:3;;:::o;222:3762:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","source":"pragma solidity ^0.4.4;\n\nimport \"./SortPLib.sol\";\nimport \"./AdrLib.sol\";\nimport \"./TransactLib.sol\";\nimport \"./IPV.sol\";\nimport \"./IGrid.sol\";\nimport \"./IBattery.sol\";\nimport \"./IHouse.sol\";\nimport \"./GeneralDevice.sol\";\n\ncontract SingleHouse is GeneralDevice, IHouse {\n // one contract is associated to one particular House in the network.\n\n using AdrLib for address[];\n using TransactLib for uint;\n using SortPLib for *;\n\n SortPLib.PriceMap draftPriceMap;\n\n// ======= Modifiers =======\n\n\n// ======= Event Logs =======\n\n event ConsumptionLog(address adr, uint consum, uint consumAt);\n //event ConfigurationLog(string confMod, uint statusAt);\n event EnergyTransferLog(address adrFrom, address adrTo, uint eVol, uint transferAt);\n\n// ======= Basic Functionalities =======\n\n // --- 0. Upon contract creation and configuration ---\n\n function SingleHouse (address adr) GeneralDevice(adr) { }\n\n // --- 1. set and get house consumption every 15 min (or less) ---\n\n function setConsumption(uint consum) public timed(1) ownerOnly { //\n consumption = consum;\n consumStatusAt = now;\n ConsumptionLog(owner, consumption, consumStatusAt);\n }\n\n function getConsumption() external view returns (uint consum, uint consumAt) {\n consum = consumption;\n consumAt = consumStatusAt;\n }\n\n // --- 2. ask for connected PV / batteries / grid for price of electricity supply ---\n\n function askForPrice() timed(2) {\n uint tP = 0;\n bool tF = false;\n draftPriceMap.initPrsTable();\n for (i = 0; i < connectedDevice[2].length; i++) {\n (tP,tF) = IBattery(connectedDevice[2][i]).getSalePrice();\n draftPriceMap.addToPrsTable(connectedDevice[2][i],tP,tF);\n }\n for (uint i = 0; i < connectedDevice[1].length; i++) {\n (tP,tF) = IPV(connectedDevice[1][i]).getPrice();\n draftPriceMap.addToPrsTable(connectedDevice[1][i],tP,tF);\n }\n lastPriceQueryAt = now;\n }\n\n // --- 3. House sorts all the information internally ---\n\n function sortPrice() timed(2) {\n draftPriceMap.sortPrsTable();\n // if the grid is connected -> add the price from the grid to the end of the sorted list\n if (grid != 0x0) {\n uint tP = 0;\n bool tF = false;\n (tP,tF) = IGrid(grid).getPrice();\n draftPriceMap.addToPrsTable(grid,tP,tF);\n }\n }\n\n function getSortedPrice() external returns(uint consum, uint rank, uint tot, bool updated) {\n address adr = msg.sender;\n consum = consumption;\n (rank,tot,updated) = draftPriceMap.getPrsTable(adr);\n }\n\n // --- 4. PV/Battery ask House to confirm energy transaction ---\n\n function goNoGo(uint giveoutvol) timed(4) returns (uint) {\n address adrDevice = msg.sender;\n uint takeoutvol;\n require(connectedDevice[2].assertInside(adrDevice) || connectedDevice[1].assertInside(adrDevice));\n takeoutvol = consumption.findMin(giveoutvol);\n consumption = consumption.clearEnergyTransfer(takeoutvol, address(this));\n //EnergyTransferLog(adrDevice,address(this), takeoutvol, consumption);\n //wallet = wallet.clearMoneyTransfer(-int(takeoutvol*priceQueryInfo[adrDevice].prs), adrDevice);\n wallet -= int(takeoutvol*draftPriceMap.prsTable[adrDevice].prs);\n return (takeoutvol);\n }\n\n // --- 5. If house still has energy demand, ask grid for energy ---\n\n function buyExtra() timed(5) {\n // when houses still have extra needs...\n uint whatDeviceAccept;\n uint receivedMoney;\n uint unitPrs;\n require(grid != 0x0);\n if (consumption > 0) {\n (whatDeviceAccept, unitPrs) = IGrid(grid).goExtra(consumption);\n consumption = consumption.clearEnergyTransfer(whatDeviceAccept, address(this));\n receivedMoney = whatDeviceAccept*unitPrs;\n wallet -= int(receivedMoney);\n }\n }\n\n\n // ------------Functions used in testing------------------\n function getTime() returns (uint) {\n return getTimerStatus();\n }\n\n function getTimeToNext() returns (uint) {\n return getTimeToNextStatus();\n }\n\n function getNow() returns (uint) {\n return now;\n }\n}\n","sourcePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SingleHouse.sol","ast":{"attributes":{"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SingleHouse.sol","exportedSymbols":{"SingleHouse":[2578]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".4"]},"id":2153,"name":"PragmaDirective","src":"0:23:13"},{"attributes":{"SourceUnit":3630,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SortPLib.sol","file":"./SortPLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2154,"name":"ImportDirective","src":"25:24:13"},{"attributes":{"SourceUnit":38,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/AdrLib.sol","file":"./AdrLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2155,"name":"ImportDirective","src":"50:22:13"},{"attributes":{"SourceUnit":4165,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/TransactLib.sol","file":"./TransactLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2156,"name":"ImportDirective","src":"73:27:13"},{"attributes":{"SourceUnit":1286,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IPV.sol","file":"./IPV.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2157,"name":"ImportDirective","src":"101:19:13"},{"attributes":{"SourceUnit":1228,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IGrid.sol","file":"./IGrid.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2158,"name":"ImportDirective","src":"121:21:13"},{"attributes":{"SourceUnit":1180,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IBattery.sol","file":"./IBattery.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2159,"name":"ImportDirective","src":"143:24:13"},{"attributes":{"SourceUnit":1261,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IHouse.sol","file":"./IHouse.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2160,"name":"ImportDirective","src":"168:22:13"},{"attributes":{"SourceUnit":773,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/GeneralDevice.sol","file":"./GeneralDevice.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2161,"name":"ImportDirective","src":"191:29:13"},{"attributes":{"contractDependencies":[772,1260],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[2578,1260,772],"name":"SingleHouse","scope":2579},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"GeneralDevice","referencedDeclaration":772,"type":"contract GeneralDevice"},"id":2162,"name":"UserDefinedTypeName","src":"246:13:13"}],"id":2163,"name":"InheritanceSpecifier","src":"246:13:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"IHouse","referencedDeclaration":1260,"type":"contract IHouse"},"id":2164,"name":"UserDefinedTypeName","src":"261:6:13"}],"id":2165,"name":"InheritanceSpecifier","src":"261:6:13"},{"children":[{"attributes":{"contractScope":null,"name":"AdrLib","referencedDeclaration":37,"type":"library AdrLib"},"id":2166,"name":"UserDefinedTypeName","src":"351:6:13"},{"attributes":{"length":null,"type":"address[] storage pointer"},"children":[{"attributes":{"name":"address","type":"address"},"id":2167,"name":"ElementaryTypeName","src":"362:7:13"}],"id":2168,"name":"ArrayTypeName","src":"362:9:13"}],"id":2169,"name":"UsingForDirective","src":"345:27:13"},{"children":[{"attributes":{"contractScope":null,"name":"TransactLib","referencedDeclaration":4164,"type":"library TransactLib"},"id":2170,"name":"UserDefinedTypeName","src":"381:11:13"},{"attributes":{"name":"uint","type":"uint256"},"id":2171,"name":"ElementaryTypeName","src":"397:4:13"}],"id":2172,"name":"UsingForDirective","src":"375:27:13"},{"attributes":{"typeName":null},"children":[{"attributes":{"contractScope":null,"name":"SortPLib","referencedDeclaration":3629,"type":"library SortPLib"},"id":2173,"name":"UserDefinedTypeName","src":"411:8:13"}],"id":2174,"name":"UsingForDirective","src":"405:21:13"},{"attributes":{"constant":false,"name":"draftPriceMap","scope":2578,"stateVariable":true,"storageLocation":"default","type":"struct SortPLib.PriceMap storage ref","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"SortPLib.PriceMap","referencedDeclaration":3279,"type":"struct SortPLib.PriceMap storage pointer"},"id":2175,"name":"UserDefinedTypeName","src":"430:17:13"}],"id":2176,"name":"VariableDeclaration","src":"430:31:13"},{"attributes":{"anonymous":false,"name":"ConsumptionLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adr","scope":2184,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2177,"name":"ElementaryTypeName","src":"549:7:13"}],"id":2178,"name":"VariableDeclaration","src":"549:11:13"},{"attributes":{"constant":false,"indexed":false,"name":"consum","scope":2184,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2179,"name":"ElementaryTypeName","src":"562:4:13"}],"id":2180,"name":"VariableDeclaration","src":"562:11:13"},{"attributes":{"constant":false,"indexed":false,"name":"consumAt","scope":2184,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2181,"name":"ElementaryTypeName","src":"575:4:13"}],"id":2182,"name":"VariableDeclaration","src":"575:13:13"}],"id":2183,"name":"ParameterList","src":"548:41:13"}],"id":2184,"name":"EventDefinition","src":"528:62:13"},{"attributes":{"anonymous":false,"name":"EnergyTransferLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adrFrom","scope":2194,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2185,"name":"ElementaryTypeName","src":"676:7:13"}],"id":2186,"name":"VariableDeclaration","src":"676:15:13"},{"attributes":{"constant":false,"indexed":false,"name":"adrTo","scope":2194,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2187,"name":"ElementaryTypeName","src":"693:7:13"}],"id":2188,"name":"VariableDeclaration","src":"693:13:13"},{"attributes":{"constant":false,"indexed":false,"name":"eVol","scope":2194,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2189,"name":"ElementaryTypeName","src":"708:4:13"}],"id":2190,"name":"VariableDeclaration","src":"708:9:13"},{"attributes":{"constant":false,"indexed":false,"name":"transferAt","scope":2194,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2191,"name":"ElementaryTypeName","src":"719:4:13"}],"id":2192,"name":"VariableDeclaration","src":"719:15:13"}],"id":2193,"name":"ParameterList","src":"675:60:13"}],"id":2194,"name":"EventDefinition","src":"652:84:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"name":"SingleHouse","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"adr","scope":2203,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2195,"name":"ElementaryTypeName","src":"862:7:13"}],"id":2196,"name":"VariableDeclaration","src":"862:11:13"}],"id":2197,"name":"ParameterList","src":"861:13:13"},{"attributes":{"parameters":[null]},"children":[],"id":2201,"name":"ParameterList","src":"894:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":772,"type":"type(contract GeneralDevice)","value":"GeneralDevice"},"id":2198,"name":"Identifier","src":"875:13:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2196,"type":"address","value":"adr"},"id":2199,"name":"Identifier","src":"889:3:13"}],"id":2200,"name":"ModifierInvocation","src":"875:18:13"},{"attributes":{"statements":[null]},"children":[],"id":2202,"name":"Block","src":"894:3:13"}],"id":2203,"name":"FunctionDefinition","src":"840:57:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setConsumption","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"consum","scope":2228,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2204,"name":"ElementaryTypeName","src":"995:4:13"}],"id":2205,"name":"VariableDeclaration","src":"995:11:13"}],"id":2206,"name":"ParameterList","src":"994:13:13"},{"attributes":{"parameters":[null]},"children":[],"id":2212,"name":"ParameterList","src":"1034:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2207,"name":"Identifier","src":"1015:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2208,"name":"Literal","src":"1021:1:13"}],"id":2209,"name":"ModifierInvocation","src":"1015:8:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"modifier ()","value":"ownerOnly"},"id":2210,"name":"Identifier","src":"1024:9:13"}],"id":2211,"name":"ModifierInvocation","src":"1024:9:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2213,"name":"Identifier","src":"1043:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2205,"type":"uint256","value":"consum"},"id":2214,"name":"Identifier","src":"1057:6:13"}],"id":2215,"name":"Assignment","src":"1043:20:13"}],"id":2216,"name":"ExpressionStatement","src":"1043:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2217,"name":"Identifier","src":"1069:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2218,"name":"Identifier","src":"1086:3:13"}],"id":2219,"name":"Assignment","src":"1069:20:13"}],"id":2220,"name":"ExpressionStatement","src":"1069:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2184,"type":"function (address,uint256,uint256)","value":"ConsumptionLog"},"id":2221,"name":"Identifier","src":"1095:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":548,"type":"address","value":"owner"},"id":2222,"name":"Identifier","src":"1110:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2223,"name":"Identifier","src":"1117:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2224,"name":"Identifier","src":"1130:14:13"}],"id":2225,"name":"FunctionCall","src":"1095:50:13"}],"id":2226,"name":"ExpressionStatement","src":"1095:50:13"}],"id":2227,"name":"Block","src":"1034:116:13"}],"id":2228,"name":"FunctionDefinition","src":"971:179:13"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getConsumption","payable":false,"scope":2578,"stateMutability":"view","superFunction":null,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2229,"name":"ParameterList","src":"1177:2:13"},{"children":[{"attributes":{"constant":false,"name":"consum","scope":2244,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2230,"name":"ElementaryTypeName","src":"1204:4:13"}],"id":2231,"name":"VariableDeclaration","src":"1204:11:13"},{"attributes":{"constant":false,"name":"consumAt","scope":2244,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2232,"name":"ElementaryTypeName","src":"1217:4:13"}],"id":2233,"name":"VariableDeclaration","src":"1217:13:13"}],"id":2234,"name":"ParameterList","src":"1203:28:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2231,"type":"uint256","value":"consum"},"id":2235,"name":"Identifier","src":"1238:6:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2236,"name":"Identifier","src":"1247:11:13"}],"id":2237,"name":"Assignment","src":"1238:20:13"}],"id":2238,"name":"ExpressionStatement","src":"1238:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2233,"type":"uint256","value":"consumAt"},"id":2239,"name":"Identifier","src":"1264:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2240,"name":"Identifier","src":"1275:14:13"}],"id":2241,"name":"Assignment","src":"1264:25:13"}],"id":2242,"name":"ExpressionStatement","src":"1264:25:13"}],"id":2243,"name":"Block","src":"1232:62:13"}],"id":2244,"name":"FunctionDefinition","src":"1154:140:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"askForPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2245,"name":"ParameterList","src":"1407:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2249,"name":"ParameterList","src":"1419:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2246,"name":"Identifier","src":"1410:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2247,"name":"Literal","src":"1416:1:13"}],"id":2248,"name":"ModifierInvocation","src":"1410:8:13"},{"children":[{"attributes":{"assignments":[2251]},"children":[{"attributes":{"constant":false,"name":"tP","scope":2350,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2250,"name":"ElementaryTypeName","src":"1425:4:13"}],"id":2251,"name":"VariableDeclaration","src":"1425:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2252,"name":"Literal","src":"1435:1:13"}],"id":2253,"name":"VariableDeclarationStatement","src":"1425:11:13"},{"attributes":{"assignments":[2255]},"children":[{"attributes":{"constant":false,"name":"tF","scope":2350,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2254,"name":"ElementaryTypeName","src":"1442:4:13"}],"id":2255,"name":"VariableDeclaration","src":"1442:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2256,"name":"Literal","src":"1452:5:13"}],"id":2257,"name":"VariableDeclarationStatement","src":"1442:15:13"},{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"initPrsTable","referencedDeclaration":3297,"type":"function (struct SortPLib.PriceMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2258,"name":"Identifier","src":"1463:13:13"}],"id":2260,"name":"MemberAccess","src":"1463:26:13"}],"id":2261,"name":"FunctionCall","src":"1463:28:13"}],"id":2262,"name":"ExpressionStatement","src":"1463:28:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2263,"name":"Identifier","src":"1502:1:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2264,"name":"Literal","src":"1506:1:13"}],"id":2265,"name":"Assignment","src":"1502:5:13"}],"id":2266,"name":"ExpressionStatement","src":"1502:5:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2267,"name":"Identifier","src":"1509:1:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2268,"name":"Identifier","src":"1513:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2269,"name":"Literal","src":"1529:1:13"}],"id":2270,"name":"IndexAccess","src":"1513:18:13"}],"id":2271,"name":"MemberAccess","src":"1513:25:13"}],"id":2272,"name":"BinaryOperation","src":"1509:29:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2273,"name":"Identifier","src":"1540:1:13"}],"id":2274,"name":"UnaryOperation","src":"1540:3:13"}],"id":2275,"name":"ExpressionStatement","src":"1540:3:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2276,"name":"Identifier","src":"1554:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2277,"name":"Identifier","src":"1557:2:13"}],"id":2278,"name":"TupleExpression","src":"1553:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getSalePrice","referencedDeclaration":1145,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IBattery","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1179,"type":"type(contract IBattery)","value":"IBattery"},"id":2279,"name":"Identifier","src":"1563:8:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2280,"name":"Identifier","src":"1572:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2281,"name":"Literal","src":"1588:1:13"}],"id":2282,"name":"IndexAccess","src":"1572:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2283,"name":"Identifier","src":"1591:1:13"}],"id":2284,"name":"IndexAccess","src":"1572:21:13"}],"id":2285,"name":"FunctionCall","src":"1563:31:13"}],"id":2286,"name":"MemberAccess","src":"1563:44:13"}],"id":2287,"name":"FunctionCall","src":"1563:46:13"}],"id":2288,"name":"Assignment","src":"1553:56:13"}],"id":2289,"name":"ExpressionStatement","src":"1553:56:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2290,"name":"Identifier","src":"1617:13:13"}],"id":2292,"name":"MemberAccess","src":"1617:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2293,"name":"Identifier","src":"1645:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2294,"name":"Literal","src":"1661:1:13"}],"id":2295,"name":"IndexAccess","src":"1645:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2296,"name":"Identifier","src":"1664:1:13"}],"id":2297,"name":"IndexAccess","src":"1645:21:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2298,"name":"Identifier","src":"1667:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2299,"name":"Identifier","src":"1670:2:13"}],"id":2300,"name":"FunctionCall","src":"1617:56:13"}],"id":2301,"name":"ExpressionStatement","src":"1617:56:13"}],"id":2302,"name":"Block","src":"1545:135:13"}],"id":2303,"name":"ForStatement","src":"1497:183:13"},{"children":[{"attributes":{"assignments":[2305]},"children":[{"attributes":{"constant":false,"name":"i","scope":2350,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2304,"name":"ElementaryTypeName","src":"1690:4:13"}],"id":2305,"name":"VariableDeclaration","src":"1690:6:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2306,"name":"Literal","src":"1699:1:13"}],"id":2307,"name":"VariableDeclarationStatement","src":"1690:10:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2308,"name":"Identifier","src":"1702:1:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2309,"name":"Identifier","src":"1706:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2310,"name":"Literal","src":"1722:1:13"}],"id":2311,"name":"IndexAccess","src":"1706:18:13"}],"id":2312,"name":"MemberAccess","src":"1706:25:13"}],"id":2313,"name":"BinaryOperation","src":"1702:29:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2314,"name":"Identifier","src":"1733:1:13"}],"id":2315,"name":"UnaryOperation","src":"1733:3:13"}],"id":2316,"name":"ExpressionStatement","src":"1733:3:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2317,"name":"Identifier","src":"1747:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2318,"name":"Identifier","src":"1750:2:13"}],"id":2319,"name":"TupleExpression","src":"1746:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getPrice","referencedDeclaration":1284,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IPV","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1285,"type":"type(contract IPV)","value":"IPV"},"id":2320,"name":"Identifier","src":"1756:3:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2321,"name":"Identifier","src":"1760:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2322,"name":"Literal","src":"1776:1:13"}],"id":2323,"name":"IndexAccess","src":"1760:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2324,"name":"Identifier","src":"1779:1:13"}],"id":2325,"name":"IndexAccess","src":"1760:21:13"}],"id":2326,"name":"FunctionCall","src":"1756:26:13"}],"id":2327,"name":"MemberAccess","src":"1756:35:13"}],"id":2328,"name":"FunctionCall","src":"1756:37:13"}],"id":2329,"name":"Assignment","src":"1746:47:13"}],"id":2330,"name":"ExpressionStatement","src":"1746:47:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2331,"name":"Identifier","src":"1801:13:13"}],"id":2333,"name":"MemberAccess","src":"1801:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2334,"name":"Identifier","src":"1829:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2335,"name":"Literal","src":"1845:1:13"}],"id":2336,"name":"IndexAccess","src":"1829:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2337,"name":"Identifier","src":"1848:1:13"}],"id":2338,"name":"IndexAccess","src":"1829:21:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2339,"name":"Identifier","src":"1851:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2340,"name":"Identifier","src":"1854:2:13"}],"id":2341,"name":"FunctionCall","src":"1801:56:13"}],"id":2342,"name":"ExpressionStatement","src":"1801:56:13"}],"id":2343,"name":"Block","src":"1738:126:13"}],"id":2344,"name":"ForStatement","src":"1685:179:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1238,"type":"uint256","value":"lastPriceQueryAt"},"id":2345,"name":"Identifier","src":"1869:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2346,"name":"Identifier","src":"1888:3:13"}],"id":2347,"name":"Assignment","src":"1869:22:13"}],"id":2348,"name":"ExpressionStatement","src":"1869:22:13"}],"id":2349,"name":"Block","src":"1419:477:13"}],"id":2350,"name":"FunctionDefinition","src":"1387:509:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"sortPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2351,"name":"ParameterList","src":"1978:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2355,"name":"ParameterList","src":"1990:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2352,"name":"Identifier","src":"1981:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2353,"name":"Literal","src":"1987:1:13"}],"id":2354,"name":"ModifierInvocation","src":"1981:8:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"sortPrsTable","referencedDeclaration":3489,"type":"function (struct SortPLib.PriceMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2356,"name":"Identifier","src":"1996:13:13"}],"id":2358,"name":"MemberAccess","src":"1996:26:13"}],"id":2359,"name":"FunctionCall","src":"1996:28:13"}],"id":2360,"name":"ExpressionStatement","src":"1996:28:13"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2361,"name":"Identifier","src":"2127:4:13"},{"attributes":{"argumentTypes":null,"hexvalue":"307830","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0x0"},"id":2362,"name":"Literal","src":"2135:3:13"}],"id":2363,"name":"BinaryOperation","src":"2127:11:13"},{"children":[{"attributes":{"assignments":[2365]},"children":[{"attributes":{"constant":false,"name":"tP","scope":2393,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2364,"name":"ElementaryTypeName","src":"2148:4:13"}],"id":2365,"name":"VariableDeclaration","src":"2148:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2366,"name":"Literal","src":"2158:1:13"}],"id":2367,"name":"VariableDeclarationStatement","src":"2148:11:13"},{"attributes":{"assignments":[2369]},"children":[{"attributes":{"constant":false,"name":"tF","scope":2393,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2368,"name":"ElementaryTypeName","src":"2167:4:13"}],"id":2369,"name":"VariableDeclaration","src":"2167:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2370,"name":"Literal","src":"2177:5:13"}],"id":2371,"name":"VariableDeclarationStatement","src":"2167:15:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2365,"type":"uint256","value":"tP"},"id":2372,"name":"Identifier","src":"2191:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2369,"type":"bool","value":"tF"},"id":2373,"name":"Identifier","src":"2194:2:13"}],"id":2374,"name":"TupleExpression","src":"2190:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getPrice","referencedDeclaration":1202,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":2375,"name":"Identifier","src":"2200:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2376,"name":"Identifier","src":"2206:4:13"}],"id":2377,"name":"FunctionCall","src":"2200:11:13"}],"id":2378,"name":"MemberAccess","src":"2200:20:13"}],"id":2379,"name":"FunctionCall","src":"2200:22:13"}],"id":2380,"name":"Assignment","src":"2190:32:13"}],"id":2381,"name":"ExpressionStatement","src":"2190:32:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2382,"name":"Identifier","src":"2230:13:13"}],"id":2384,"name":"MemberAccess","src":"2230:27:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2385,"name":"Identifier","src":"2258:4:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2365,"type":"uint256","value":"tP"},"id":2386,"name":"Identifier","src":"2263:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2369,"type":"bool","value":"tF"},"id":2387,"name":"Identifier","src":"2266:2:13"}],"id":2388,"name":"FunctionCall","src":"2230:39:13"}],"id":2389,"name":"ExpressionStatement","src":"2230:39:13"}],"id":2390,"name":"Block","src":"2140:136:13"}],"id":2391,"name":"IfStatement","src":"2123:153:13"}],"id":2392,"name":"Block","src":"1990:290:13"}],"id":2393,"name":"FunctionDefinition","src":"1960:320:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getSortedPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":1249,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2394,"name":"ParameterList","src":"2307:2:13"},{"children":[{"attributes":{"constant":false,"name":"consum","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2395,"name":"ElementaryTypeName","src":"2327:4:13"}],"id":2396,"name":"VariableDeclaration","src":"2327:11:13"},{"attributes":{"constant":false,"name":"rank","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2397,"name":"ElementaryTypeName","src":"2340:4:13"}],"id":2398,"name":"VariableDeclaration","src":"2340:9:13"},{"attributes":{"constant":false,"name":"tot","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2399,"name":"ElementaryTypeName","src":"2351:4:13"}],"id":2400,"name":"VariableDeclaration","src":"2351:8:13"},{"attributes":{"constant":false,"name":"updated","scope":2424,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2401,"name":"ElementaryTypeName","src":"2361:4:13"}],"id":2402,"name":"VariableDeclaration","src":"2361:12:13"}],"id":2403,"name":"ParameterList","src":"2326:48:13"},{"children":[{"attributes":{"assignments":[2405]},"children":[{"attributes":{"constant":false,"name":"adr","scope":2424,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2404,"name":"ElementaryTypeName","src":"2381:7:13"}],"id":2405,"name":"VariableDeclaration","src":"2381:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":2406,"name":"Identifier","src":"2395:3:13"}],"id":2407,"name":"MemberAccess","src":"2395:10:13"}],"id":2408,"name":"VariableDeclarationStatement","src":"2381:24:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2396,"type":"uint256","value":"consum"},"id":2409,"name":"Identifier","src":"2411:6:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2410,"name":"Identifier","src":"2420:11:13"}],"id":2411,"name":"Assignment","src":"2411:20:13"}],"id":2412,"name":"ExpressionStatement","src":"2411:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2398,"type":"uint256","value":"rank"},"id":2413,"name":"Identifier","src":"2438:4:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2400,"type":"uint256","value":"tot"},"id":2414,"name":"Identifier","src":"2443:3:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2402,"type":"bool","value":"updated"},"id":2415,"name":"Identifier","src":"2447:7:13"}],"id":2416,"name":"TupleExpression","src":"2437:18:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"getPrsTable","referencedDeclaration":3585,"type":"function (struct SortPLib.PriceMap storage pointer,address) returns (uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2417,"name":"Identifier","src":"2458:13:13"}],"id":2418,"name":"MemberAccess","src":"2458:25:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2405,"type":"address","value":"adr"},"id":2419,"name":"Identifier","src":"2484:3:13"}],"id":2420,"name":"FunctionCall","src":"2458:30:13"}],"id":2421,"name":"Assignment","src":"2437:51:13"}],"id":2422,"name":"ExpressionStatement","src":"2437:51:13"}],"id":2423,"name":"Block","src":"2375:118:13"}],"id":2424,"name":"FunctionDefinition","src":"2284:209:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"goNoGo","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":1259,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"giveoutvol","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2425,"name":"ElementaryTypeName","src":"2581:4:13"}],"id":2426,"name":"VariableDeclaration","src":"2581:15:13"}],"id":2427,"name":"ParameterList","src":"2580:17:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2431,"name":"ElementaryTypeName","src":"2616:4:13"}],"id":2432,"name":"VariableDeclaration","src":"2616:4:13"}],"id":2433,"name":"ParameterList","src":"2615:6:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2428,"name":"Identifier","src":"2598:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"34","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 4","value":"4"},"id":2429,"name":"Literal","src":"2604:1:13"}],"id":2430,"name":"ModifierInvocation","src":"2598:8:13"},{"children":[{"attributes":{"assignments":[2435]},"children":[{"attributes":{"constant":false,"name":"adrDevice","scope":2491,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2434,"name":"ElementaryTypeName","src":"2628:7:13"}],"id":2435,"name":"VariableDeclaration","src":"2628:17:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":2436,"name":"Identifier","src":"2648:3:13"}],"id":2437,"name":"MemberAccess","src":"2648:10:13"}],"id":2438,"name":"VariableDeclarationStatement","src":"2628:30:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"takeoutvol","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2439,"name":"ElementaryTypeName","src":"2664:4:13"}],"id":2440,"name":"VariableDeclaration","src":"2664:15:13"}],"id":2441,"name":"VariableDeclarationStatement","src":"2664:15:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":4179,"type":"function (bool) pure","value":"require"},"id":2442,"name":"Identifier","src":"2685:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2443,"name":"Identifier","src":"2693:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2444,"name":"Literal","src":"2709:1:13"}],"id":2445,"name":"IndexAccess","src":"2693:18:13"}],"id":2446,"name":"MemberAccess","src":"2693:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2447,"name":"Identifier","src":"2725:9:13"}],"id":2448,"name":"FunctionCall","src":"2693:42:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2449,"name":"Identifier","src":"2739:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2450,"name":"Literal","src":"2755:1:13"}],"id":2451,"name":"IndexAccess","src":"2739:18:13"}],"id":2452,"name":"MemberAccess","src":"2739:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2453,"name":"Identifier","src":"2771:9:13"}],"id":2454,"name":"FunctionCall","src":"2739:42:13"}],"id":2455,"name":"BinaryOperation","src":"2693:88:13"}],"id":2456,"name":"FunctionCall","src":"2685:97:13"}],"id":2457,"name":"ExpressionStatement","src":"2685:97:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2458,"name":"Identifier","src":"2788:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"findMin","referencedDeclaration":4048,"type":"function (uint256,uint256) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2459,"name":"Identifier","src":"2801:11:13"}],"id":2460,"name":"MemberAccess","src":"2801:19:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2426,"type":"uint256","value":"giveoutvol"},"id":2461,"name":"Identifier","src":"2821:10:13"}],"id":2462,"name":"FunctionCall","src":"2801:31:13"}],"id":2463,"name":"Assignment","src":"2788:44:13"}],"id":2464,"name":"ExpressionStatement","src":"2788:44:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2465,"name":"Identifier","src":"2838:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2466,"name":"Identifier","src":"2852:11:13"}],"id":2467,"name":"MemberAccess","src":"2852:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2468,"name":"Identifier","src":"2884:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SingleHouse_$2578","typeString":"contract SingleHouse"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2469,"name":"ElementaryTypeNameExpression","src":"2896:7:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4207,"type":"contract SingleHouse","value":"this"},"id":2470,"name":"Identifier","src":"2904:4:13"}],"id":2471,"name":"FunctionCall","src":"2896:13:13"}],"id":2472,"name":"FunctionCall","src":"2852:58:13"}],"id":2473,"name":"Assignment","src":"2838:72:13"}],"id":2474,"name":"ExpressionStatement","src":"2838:72:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":2475,"name":"Identifier","src":"3092:6:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":2476,"name":"ElementaryTypeNameExpression","src":"3102:3:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2477,"name":"Identifier","src":"3106:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"prs","referencedDeclaration":3263,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct SortPLib.PriceTF storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"prsTable","referencedDeclaration":3270,"type":"mapping(address => struct SortPLib.PriceTF storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2478,"name":"Identifier","src":"3117:13:13"}],"id":2479,"name":"MemberAccess","src":"3117:22:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2480,"name":"Identifier","src":"3140:9:13"}],"id":2481,"name":"IndexAccess","src":"3117:33:13"}],"id":2482,"name":"MemberAccess","src":"3117:37:13"}],"id":2483,"name":"BinaryOperation","src":"3106:48:13"}],"id":2484,"name":"FunctionCall","src":"3102:53:13"}],"id":2485,"name":"Assignment","src":"3092:63:13"}],"id":2486,"name":"ExpressionStatement","src":"3092:63:13"},{"attributes":{"functionReturnParameters":2433},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2487,"name":"Identifier","src":"3169:10:13"}],"id":2488,"name":"TupleExpression","src":"3168:12:13"}],"id":2489,"name":"Return","src":"3161:19:13"}],"id":2490,"name":"Block","src":"2622:563:13"}],"id":2491,"name":"FunctionDefinition","src":"2565:620:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"buyExtra","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2492,"name":"ParameterList","src":"3277:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2496,"name":"ParameterList","src":"3289:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2493,"name":"Identifier","src":"3280:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"35","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 5","value":"5"},"id":2494,"name":"Literal","src":"3286:1:13"}],"id":2495,"name":"ModifierInvocation","src":"3280:8:13"},{"children":[{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"whatDeviceAccept","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2497,"name":"ElementaryTypeName","src":"3340:4:13"}],"id":2498,"name":"VariableDeclaration","src":"3340:21:13"}],"id":2499,"name":"VariableDeclarationStatement","src":"3340:21:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"receivedMoney","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2500,"name":"ElementaryTypeName","src":"3367:4:13"}],"id":2501,"name":"VariableDeclaration","src":"3367:18:13"}],"id":2502,"name":"VariableDeclarationStatement","src":"3367:18:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"unitPrs","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2503,"name":"ElementaryTypeName","src":"3391:4:13"}],"id":2504,"name":"VariableDeclaration","src":"3391:12:13"}],"id":2505,"name":"VariableDeclarationStatement","src":"3391:12:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":4179,"type":"function (bool) pure","value":"require"},"id":2506,"name":"Identifier","src":"3409:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2507,"name":"Identifier","src":"3417:4:13"},{"attributes":{"argumentTypes":null,"hexvalue":"307830","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0x0"},"id":2508,"name":"Literal","src":"3425:3:13"}],"id":2509,"name":"BinaryOperation","src":"3417:11:13"}],"id":2510,"name":"FunctionCall","src":"3409:20:13"}],"id":2511,"name":"ExpressionStatement","src":"3409:20:13"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2512,"name":"Identifier","src":"3439:11:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2513,"name":"Literal","src":"3453:1:13"}],"id":2514,"name":"BinaryOperation","src":"3439:15:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2515,"name":"Identifier","src":"3465:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2504,"type":"uint256","value":"unitPrs"},"id":2516,"name":"Identifier","src":"3483:7:13"}],"id":2517,"name":"TupleExpression","src":"3464:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goExtra","referencedDeclaration":1226,"type":"function (uint256) external returns (uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":2518,"name":"Identifier","src":"3494:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2519,"name":"Identifier","src":"3500:4:13"}],"id":2520,"name":"FunctionCall","src":"3494:11:13"}],"id":2521,"name":"MemberAccess","src":"3494:19:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2522,"name":"Identifier","src":"3514:11:13"}],"id":2523,"name":"FunctionCall","src":"3494:32:13"}],"id":2524,"name":"Assignment","src":"3464:62:13"}],"id":2525,"name":"ExpressionStatement","src":"3464:62:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2526,"name":"Identifier","src":"3534:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2527,"name":"Identifier","src":"3548:11:13"}],"id":2528,"name":"MemberAccess","src":"3548:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2529,"name":"Identifier","src":"3580:16:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SingleHouse_$2578","typeString":"contract SingleHouse"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2530,"name":"ElementaryTypeNameExpression","src":"3598:7:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4207,"type":"contract SingleHouse","value":"this"},"id":2531,"name":"Identifier","src":"3606:4:13"}],"id":2532,"name":"FunctionCall","src":"3598:13:13"}],"id":2533,"name":"FunctionCall","src":"3548:64:13"}],"id":2534,"name":"Assignment","src":"3534:78:13"}],"id":2535,"name":"ExpressionStatement","src":"3534:78:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2501,"type":"uint256","value":"receivedMoney"},"id":2536,"name":"Identifier","src":"3620:13:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2537,"name":"Identifier","src":"3636:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2504,"type":"uint256","value":"unitPrs"},"id":2538,"name":"Identifier","src":"3653:7:13"}],"id":2539,"name":"BinaryOperation","src":"3636:24:13"}],"id":2540,"name":"Assignment","src":"3620:40:13"}],"id":2541,"name":"ExpressionStatement","src":"3620:40:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":2542,"name":"Identifier","src":"3668:6:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":2543,"name":"ElementaryTypeNameExpression","src":"3678:3:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2501,"type":"uint256","value":"receivedMoney"},"id":2544,"name":"Identifier","src":"3682:13:13"}],"id":2545,"name":"FunctionCall","src":"3678:18:13"}],"id":2546,"name":"Assignment","src":"3668:28:13"}],"id":2547,"name":"ExpressionStatement","src":"3668:28:13"}],"id":2548,"name":"Block","src":"3456:247:13"}],"id":2549,"name":"IfStatement","src":"3435:268:13"}],"id":2550,"name":"Block","src":"3289:418:13"}],"id":2551,"name":"FunctionDefinition","src":"3260:447:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTime","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2552,"name":"ParameterList","src":"3789:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2560,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2553,"name":"ElementaryTypeName","src":"3801:4:13"}],"id":2554,"name":"VariableDeclaration","src":"3801:4:13"}],"id":2555,"name":"ParameterList","src":"3800:6:13"},{"children":[{"attributes":{"functionReturnParameters":2555},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":731,"type":"function () returns (uint256)","value":"getTimerStatus"},"id":2556,"name":"Identifier","src":"3820:14:13"}],"id":2557,"name":"FunctionCall","src":"3820:16:13"}],"id":2558,"name":"Return","src":"3813:23:13"}],"id":2559,"name":"Block","src":"3807:34:13"}],"id":2560,"name":"FunctionDefinition","src":"3773:68:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTimeToNext","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2561,"name":"ParameterList","src":"3867:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2569,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2562,"name":"ElementaryTypeName","src":"3879:4:13"}],"id":2563,"name":"VariableDeclaration","src":"3879:4:13"}],"id":2564,"name":"ParameterList","src":"3878:6:13"},{"children":[{"attributes":{"functionReturnParameters":2564},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":755,"type":"function () returns (uint256)","value":"getTimeToNextStatus"},"id":2565,"name":"Identifier","src":"3898:19:13"}],"id":2566,"name":"FunctionCall","src":"3898:21:13"}],"id":2567,"name":"Return","src":"3891:28:13"}],"id":2568,"name":"Block","src":"3885:39:13"}],"id":2569,"name":"FunctionDefinition","src":"3845:79:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getNow","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2570,"name":"ParameterList","src":"3943:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2577,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2571,"name":"ElementaryTypeName","src":"3955:4:13"}],"id":2572,"name":"VariableDeclaration","src":"3955:4:13"}],"id":2573,"name":"ParameterList","src":"3954:6:13"},{"children":[{"attributes":{"functionReturnParameters":2573},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2574,"name":"Identifier","src":"3974:3:13"}],"id":2575,"name":"Return","src":"3967:10:13"}],"id":2576,"name":"Block","src":"3961:21:13"}],"id":2577,"name":"FunctionDefinition","src":"3928:54:13"}],"id":2578,"name":"ContractDefinition","src":"222:3762:13"}],"id":2579,"name":"SourceUnit","src":"0:3985:13"},"compiler":{"name":"solc","version":"0.4.18+commit.9cf6e910.Emscripten.clang"},"networks":{"1513694582674":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x7a5fbc6f31ebaa197a0a8b294b6cb4f1ff4cbaf0","AdrLib":"0x2a29be3b1c490814e26339c307c6d072efa1e3e7","TransactLib":"0x9d362366891ab58651569d81913d4b816088130d"},"address":"0x16a8a037ff7a2210e59754d46ad4c3e0a87ca714"},"1513697632729":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xa4113d97a4e2dc10d1b5fc54cf736d2854a7c01f","AdrLib":"0x90fb0b5ffa9d3914f9385334dcfdc6b02600399a","TransactLib":"0xc8a86b5903ab611bec4fc6fdf237a1d206e15acf"},"address":"0xbd7538578c4ae60d80f7304d6ee7b9569914be86"},"1513763710755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x78c2bb7f3a36d4d707059ea3f4849b678ee3bfda","AdrLib":"0xc58dcc188e655d4ddf557ecbc4c56ac6ebc11c67","TransactLib":"0x27773684e75ae51c682f089b2a3b86ef707970ee"},"address":"0xb0d00ca29d7a9c2136b5ef51f764e070ecfa0159"},"1513771446044":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x114601f4c855252b5004780915fed22240be89ff","AdrLib":"0x1482ae1a53728c856a810f0cba23d49ca89d4ccb","TransactLib":"0x98b427e11e15bb546e7ed96758a8eff0ee6e027d"},"address":"0x2a2633a2318087d61419dbe21b7cfb2046062bab"},"1513771818067":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x30c85717c7a56a9495a0c11854c0a0e612ae2332","AdrLib":"0x75d35a38dc3830fcff5cec2af8499c3530900ab5","TransactLib":"0x07e3d14562988d3896f468f5806fab6e092b78c6"},"address":"0xa6512803ec61d5094faf1e130b4b4657befda709"},"1513772129137":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8da5150535fe5fe0eb3cb55c241a7e60e4517a61","AdrLib":"0x116217ea23e706df44e85fdcd5cf009299e517a4","TransactLib":"0xb6d612907ee10abd3647fd327b135b722e48fdff"},"address":"0x407507f2a85b4869562d9f7776a7ae5d7031da70"},"1513772799886":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8963d9463d816a42efbafec52d2e6a325861198a","AdrLib":"0x28b271c9201a17d5ba98ad19ba55023f3da26e37","TransactLib":"0x20419e3e4cc09b5ca9d23ceec64f359f30861a05"},"address":"0xb2e9dfaa843c04f9a94ac9582ed30691c7249ec6"},"1513773239755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x72d170de1571f74044936fa79bee437c2555887c","AdrLib":"0x0a09d977a155f62a5d6ff7e70e8a99fc87d65092","TransactLib":"0x0f0686d00c98181866cfd27b71da96c1aa7dc6b0"},"address":"0xa2a81c26f9d8f7176915f1986c1c6bdd03bd308f"},"1513773645333":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xc500838313f86a63899357e95215ad39ebceedae","AdrLib":"0x40a6706e762ee60442e03d455672b9181e312ed5","TransactLib":"0xfd9d43eaae27ccb48004fedd4d2d586b9ea5749b"},"address":"0x729c4395574af9c4375fb23b655b7495e96bbc8d"},"1513777045350":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x408610b34699899c403f9da8cd60946275564e12","AdrLib":"0xdc753f08b6a50b3ff6963fedd0c1c674b4bb75bc","TransactLib":"0xbf436b9323f8461b019b42007535e33b08e54bf0"},"address":"0x6ac1a1cddb1445271813ce849efcf4a37de0579b"},"1513778825921":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xb00cd9bcbc26d9925f3e3944819c664f7f699d71","AdrLib":"0xc4e06c049113fefed98c1bcf26395b82d216385d","TransactLib":"0xd0faef622cf49398cdea9d0007f85ecf6968a321"},"address":"0x9178369784a6046d59b560c44875caa4d75bef04"},"1513778906317":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe546f6b67e5177f495f61c962432a7f57e03a8b1","AdrLib":"0x78520ba51f90157416ebb30d7a1bb647cd181ddd","TransactLib":"0xd505c556b8e7d261d56bd2a887ea75bb8fe9e660"},"address":"0x9c5a5f60f9309f147498a338ffe294e2051de81d"},"1513779036442":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe756f473247f7d54a736a35962d22eb276d3ee27","AdrLib":"0x8f5c4c22b5d61e32dd6b09becd59f3f5de60a01c","TransactLib":"0x055974c9295369da64b3461b5239d4295e307b36"},"address":"0x07b0cbe27eabc0abdca603d0a6fc7e461285c6bf"},"1513781372031":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x74dd2ce27fd18405728a7e67b9c1a7e34981c3c7","AdrLib":"0x1cc1ce568c1311dbd6f3728f5f6d9feb685597e6","TransactLib":"0x15e0bea40333f9251ad1c2e990d63c6c15007dbe"},"address":"0xece91fb862235d281bf9316d3a4dd31ed246391c"},"1513781520103":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x4d7c461085396cfcc8e593cfb069043372d3c144","AdrLib":"0x49dfec9fed5d843fab55d59427a2fc50122f0e9c","TransactLib":"0x3685bad9e0dd801b34b5a592be1678e1a984e3ad"},"address":"0xd4d8fe7f6fad8fcb04af6b32148b2b3e3807efb7"},"1513781725934":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x0bfd5035c246c5c1807b3fde18ede0187389709c","AdrLib":"0x05bf1bfbee660b843480d1683da373343dc3ea8d","TransactLib":"0xe7ffb66a9f459043a51773d63441b6abe90d2335"},"address":"0x055725ef62b66bffc78bb9ad3ef535406777fe58"},"1513781878089":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x9039f2ed833c7840d69619968e0cecbf6bfa917b","AdrLib":"0xdd4c1bbd9a3b3b19d3a84795e715feca7524b05d","TransactLib":"0x308aac19f2f85404332e1ba26a307d300c9de27c"},"address":"0xea6ab0a03a6be3ce96b847d496eb8560af45a162"},"1513782049907":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x30171bbc67947faa678548a7a7da624d6fe7f2da","AdrLib":"0x5254b7104bc7aa5d220bc0adfe5c48aba63e573c","TransactLib":"0x9565d721bad77b973057ff5ec68ad9e99aafd2d1"},"address":"0x7596fe02a80fef46b452cb2eef56ea142b9312ae"},"1513782106845":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe4a8d0fc6e46db86e38f6edf8e267b6ff5eb2fa5","AdrLib":"0x02bf606e33ab4ff08a27fda5dc11e565d208b850","TransactLib":"0x2fda037b1fd7c3318b51c493320865b6a70f5cc6"},"address":"0x8a21ff0a78d36fafe4e8fc2d7fd831587103539d"},"1513782148189":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x83d3206588240b7e672b71ca11f3a4e208793112","AdrLib":"0x32e6fc892d10705762a67bd91f3c5dd4dc548c8d","TransactLib":"0x58b466514d9200cee966b2b75df662f87fa096eb"},"address":"0x342dae449a93a8b7b44beb99aed500b410d26486"},"1513782179458":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe4ed6c927c026587fc9decd5be1e61bcf2998ada","AdrLib":"0x0d18ca0763e277ac10b1f54e83e5fdd738c86fb4","TransactLib":"0x98aea1f7cf8395148413a3156d0f57a29795526f"},"address":"0x626332c94a10b24bf878605efbb43ad28813c709"},"1513782236877":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xb7470a1fd1f156579491cd7322eb0879ef6aebd4","AdrLib":"0xc3d857131f73789b252c9468a90d5b6604805336","TransactLib":"0x943cfa4a8165e79a3d2970f85cca95314532bc69"},"address":"0x5b3fd83c2d3e8905749e8cf3c207a17d0e79024d"},"1513782526210":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x3764ab26d328c96e00a5a6ffe531c6988b9e37ae","AdrLib":"0x6e4d4910b580a925c0687315fb2c355a0abdc3f9","TransactLib":"0x7dc09671ee66eb667dac2052183190ff10e4c8c3"},"address":"0x7d8dfb33cd0bc94d12d5676ab808d2371bf3d197"},"1513782951368":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8eaa1c17f6d8360e65699da143dd6f8581601038","AdrLib":"0x960970dc4e2d0f7d5071e1adce541d6280a74c9a","TransactLib":"0xf3c53ed6062b1e7503fbf3d635f7c9e04068402d"},"address":"0xbb3450528ee026a2924dd5bb4cd96f87e390c469"},"1513783449271":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xa060e14806a9ac7bbe05615893b8fa3a4d6d079a","AdrLib":"0xed10b60bae1c1cd99414d5320ffb76a69dfd6d1b","TransactLib":"0x7ff701216ff981fb4f430a051fa6455f30abb1de"},"address":"0xb5c3f1536d24b9e27dba82a9ee30dcba733883bf"},"1513783569288":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xaddece91117629d34e9c50baabc4040fc265f2ef","AdrLib":"0xd63d2a0ae6913212018dc716e8869c6d97a7bf2b","TransactLib":"0x9e4073955f99708d893e8a97787f1303744af560"},"address":"0x35ac8dce8284cd96fda9b6cd1087c9883553cdba"},"1513783657231":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"},"0x93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad06516926":{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"}},"links":{"SortPLib":"0xd62185ff454e68f86018077cbcbc1d631ee7c63a","AdrLib":"0xc0716270b05d3089a151d73809e2c659154a732a","TransactLib":"0x90ef429afd389a5f495882995c2da74b3b29f84d"},"address":"0xe51045608d6493527509a10bd2e8d2e8c46506e8"}},"schemaVersion":"1.0.1","updatedAt":"2017-12-20T15:27:45.591Z"},"abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}],"contract":{"_eth":{"_requestManager":{"provider":{"provider":{"host":"http://localhost:8545","timeout":0,"_alreadyWrapped":true}},"polls":{},"timeout":null},"compile":{},"coinbase":"0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","mining":true,"hashrate":0,"syncing":false,"gasPrice":"20000000000","accounts":["0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","0xe208d1dd66f7f3da8d2247f2baa3c592fa85dd11","0x473ded0842ff40ffeafe1fa376b959c9b23c89ce","0x0e514e7d670f5ad315767e9b13774d654b92b792","0x72133c776d4e59a04a879744315c72400e72523e","0x8aab4c99ff957be2c2b312c3a290333110107862","0xe4e42e5f6c7d581b9e46e6a34c47a700c932ea7c","0x508e6d0c3e398d127916c0c3d45a3105047e1b79","0x20845b8f15ea0569f5017e411c8536a6bd1bf6a5","0x8fd36fedfd713fdf28f2082732bd1eb3592bb1a3"],"blockNumber":45,"protocolVersion":"63"},"transactionHash":null,"address":"0xa4d64be6ab002176ab14f55d693a49fe14f664e5","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}]},"address":"0xa4d64be6ab002176ab14f55d693a49fe14f664e5","transactionHash":null}},{"id":1,"picture":"images/house.png","address":"0x0e514e7d670f5ad315767e9b13774d654b92b792","contract_address":"0x8f26d735463cd7a135bbc351df9cca129e1f0fd3","device_name":"house1","device_type":"house","values":{"consumption":[["3","1513783666"],["3","1513783666"],["1","1513783666"],["0","1513783666"]],"production":[],"price":[],"wallet":["0","0","-40","-60"]},"contract":{"constructor":{"contractName":"SingleHouse","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}],"bytecode":"0x606060405260038054600160a060020a0319908116909155600480549091169055341561002b57600080fd5b6040516020806110d98339810160405280805160018054600160a060020a03928316600160a060020a0319918216179091556000805433909316929091169190911790555050611059806100806000396000f3006060604052600436106100ed5763ffffffff60e060020a600035041663074b7c8081146100f25780630830cfae146101175780630ff3728214610138578063132996041461014e5780631b45f0e014610161578063235a4a4f146101a05780633acca96d146101b3578063557ed1ba146101c65780635a500ecc146101d957806370ed8f24146101ef57806382076a711461021e5780638a5cb1b6146102315780638d646b111461025c5780639888c3c21461027b578063aac12b4b1461028e578063bbe4fd50146102a1578063bfd11903146102b4578063c9746029146102d6578063ff1b636d146102e9575b600080fd5b34156100fd57600080fd5b6101056102fc565b60405190815260200160405180910390f35b341561012257600080fd5b610136600160a060020a0360043516610366565b005b341561014357600080fd5b6101056004356103a9565b341561015957600080fd5b61010561064e565b341561016c57600080fd5b610174610654565b604051938452602084019290925260408084019190915290151560608301526080909101905180910390f35b34156101ab57600080fd5b6101056106f9565b34156101be57600080fd5b610136610743565b34156101d157600080fd5b61010561089e565b34156101e457600080fd5b6101366004356108ad565b34156101fa57600080fd5b61020261094d565b604051600160a060020a03909116815260200160405180910390f35b341561022957600080fd5b61010561095c565b341561023c57600080fd5b6102446109a6565b60405191825260208201526040908101905180910390f35b341561026757600080fd5b610136600160a060020a03600435166109b0565b341561028657600080fd5b6101056109f4565b341561029957600080fd5b6101366109fe565b34156102ac57600080fd5b610105610b91565b34156102bf57600080fd5b610136600435600160a060020a0360243516610b95565b34156102e157600080fd5b610136610c01565b34156102f457600080fd5b610202610fa1565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ed576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600080600060046103b86106f9565b8114156100ed5760026000908152600660205233935073__AdrLib________________________________90632c2fc20e9060008051602061100e8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051905080610505575060016000908152600660205273__AdrLib________________________________90632c2fc20e90600080516020610fee8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b15156104e957600080fd5b6102c65a03f415156104fa57600080fd5b505050604051805190505b151561051057600080fd5b60075473__TransactLib___________________________63bc2e368c90918760006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561057257600080fd5b6102c65a03f4151561058357600080fd5b50505060405180519050915060075473__TransactLib___________________________639e5fd0a99091843060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561060357600080fd5b6102c65a03f4151561061457600080fd5b50505060405180516007555050600160a060020a03919091166000908152600a602052604090205460058054918302909103905592915050565b60055490565b600754600080803373__SortPLib______________________________63c6742457600a83856040516060015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160606040518083038186803b15156106c357600080fd5b6102c65a03f415156106d457600080fd5b5050506040518051906020018051906020018051979892979196509094509092505050565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b600080600060056107526106f9565b8114156100ed57600354600160a060020a0316151561077057600080fd5b6000600754111561089857600354600754600160a060020a0390911690636e2855449060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b15156107d157600080fd5b6102c65a03f115156107e257600080fd5b5050506040518051906020018051600754929650935073__TransactLib___________________________91639e5fd0a99150863060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561086a57600080fd5b6102c65a03f4151561087b57600080fd5b505050604051805160075550600580548584029081900390915592505b50505050565b60006108a86106f9565b905090565b60016108b76106f9565b8114156100ed5760015433600160a060020a03908116911614156100ed5760078290554260088190556001547f93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad0651692691600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6007546008549091565b60005433600160a060020a03908116911614156100ed576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103a6565b60006108a861095c565b6000806002610a0b6106f9565b8114156100ed5773__SortPLib______________________________6332a76998600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610a6257600080fd5b6102c65a03f41515610a7357600080fd5b5050600354600160a060020a0316159050610b8c5760035460009350839250600160a060020a03166398d5fdca83604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ad557600080fd5b6102c65a03f11515610ae657600080fd5b5050506040518051906020018051600354929550935073__SortPLib______________________________9163c3af64529150600a90600160a060020a0316868660405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610b7757600080fd5b6102c65a03f41515610b8857600080fd5b5050505b505050565b4290565b60005433600160a060020a03908116911614156100ed576000828152600660205260409020805460018101610bca8382610fb0565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610949565b60008060006002610c106106f9565b8114156100ed576000935083925073__SortPLib______________________________63e61f7934600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610c6e57600080fd5b6102c65a03f41515610c7f57600080fd5b505050600091505b6002600052600660205260008051602061100e83398151915254821015610e0d576002600052600660205260008051602061100e833981519152805483908110610ccd57fe5b6000918252602082200154600160a060020a031690632fbc0bf190604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610d1c57600080fd5b6102c65a03f11515610d2d57600080fd5b50505060405180519060200180516002600052600660205260008051602061100e833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610d8757fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610dee57600080fd5b6102c65a03f41515610dff57600080fd5b505060019092019150610c87565b600091505b60016000526006602052600080516020610fee83398151915254821015610f985760016000526006602052600080516020610fee833981519152805483908110610e5857fe5b6000918252602082200154600160a060020a0316906398d5fdca90604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ea757600080fd5b6102c65a03f11515610eb857600080fd5b505050604051805190602001805160016000526006602052600080516020610fee833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610f1257fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610f7957600080fd5b6102c65a03f41515610f8a57600080fd5b505060019092019150610e12565b42600955610898565b600054600160a060020a031681565b815481835581811511610b8c57600083815260209020610b8c91810190830161036391905b80821115610fe95760008155600101610fd5565b509056003e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a318819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820c6eed5ade0a5b754f5c5f186d740af4468adfb1dd022bd7214c5ecb1037c9f190029","deployedBytecode":"0x6060604052600436106100ed5763ffffffff60e060020a600035041663074b7c8081146100f25780630830cfae146101175780630ff3728214610138578063132996041461014e5780631b45f0e014610161578063235a4a4f146101a05780633acca96d146101b3578063557ed1ba146101c65780635a500ecc146101d957806370ed8f24146101ef57806382076a711461021e5780638a5cb1b6146102315780638d646b111461025c5780639888c3c21461027b578063aac12b4b1461028e578063bbe4fd50146102a1578063bfd11903146102b4578063c9746029146102d6578063ff1b636d146102e9575b600080fd5b34156100fd57600080fd5b6101056102fc565b60405190815260200160405180910390f35b341561012257600080fd5b610136600160a060020a0360043516610366565b005b341561014357600080fd5b6101056004356103a9565b341561015957600080fd5b61010561064e565b341561016c57600080fd5b610174610654565b604051938452602084019290925260408084019190915290151560608301526080909101905180910390f35b34156101ab57600080fd5b6101056106f9565b34156101be57600080fd5b610136610743565b34156101d157600080fd5b61010561089e565b34156101e457600080fd5b6101366004356108ad565b34156101fa57600080fd5b61020261094d565b604051600160a060020a03909116815260200160405180910390f35b341561022957600080fd5b61010561095c565b341561023c57600080fd5b6102446109a6565b60405191825260208201526040908101905180910390f35b341561026757600080fd5b610136600160a060020a03600435166109b0565b341561028657600080fd5b6101056109f4565b341561029957600080fd5b6101366109fe565b34156102ac57600080fd5b610105610b91565b34156102bf57600080fd5b610136600435600160a060020a0360243516610b95565b34156102e157600080fd5b610136610c01565b34156102f457600080fd5b610202610fa1565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ed576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600080600060046103b86106f9565b8114156100ed5760026000908152600660205233935073__AdrLib________________________________90632c2fc20e9060008051602061100e8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051905080610505575060016000908152600660205273__AdrLib________________________________90632c2fc20e90600080516020610fee8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b15156104e957600080fd5b6102c65a03f415156104fa57600080fd5b505050604051805190505b151561051057600080fd5b60075473__TransactLib___________________________63bc2e368c90918760006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561057257600080fd5b6102c65a03f4151561058357600080fd5b50505060405180519050915060075473__TransactLib___________________________639e5fd0a99091843060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561060357600080fd5b6102c65a03f4151561061457600080fd5b50505060405180516007555050600160a060020a03919091166000908152600a602052604090205460058054918302909103905592915050565b60055490565b600754600080803373__SortPLib______________________________63c6742457600a83856040516060015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160606040518083038186803b15156106c357600080fd5b6102c65a03f415156106d457600080fd5b5050506040518051906020018051906020018051979892979196509094509092505050565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b600080600060056107526106f9565b8114156100ed57600354600160a060020a0316151561077057600080fd5b6000600754111561089857600354600754600160a060020a0390911690636e2855449060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b15156107d157600080fd5b6102c65a03f115156107e257600080fd5b5050506040518051906020018051600754929650935073__TransactLib___________________________91639e5fd0a99150863060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561086a57600080fd5b6102c65a03f4151561087b57600080fd5b505050604051805160075550600580548584029081900390915592505b50505050565b60006108a86106f9565b905090565b60016108b76106f9565b8114156100ed5760015433600160a060020a03908116911614156100ed5760078290554260088190556001547f93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad0651692691600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6007546008549091565b60005433600160a060020a03908116911614156100ed576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103a6565b60006108a861095c565b6000806002610a0b6106f9565b8114156100ed5773__SortPLib______________________________6332a76998600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610a6257600080fd5b6102c65a03f41515610a7357600080fd5b5050600354600160a060020a0316159050610b8c5760035460009350839250600160a060020a03166398d5fdca83604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ad557600080fd5b6102c65a03f11515610ae657600080fd5b5050506040518051906020018051600354929550935073__SortPLib______________________________9163c3af64529150600a90600160a060020a0316868660405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610b7757600080fd5b6102c65a03f41515610b8857600080fd5b5050505b505050565b4290565b60005433600160a060020a03908116911614156100ed576000828152600660205260409020805460018101610bca8382610fb0565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610949565b60008060006002610c106106f9565b8114156100ed576000935083925073__SortPLib______________________________63e61f7934600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610c6e57600080fd5b6102c65a03f41515610c7f57600080fd5b505050600091505b6002600052600660205260008051602061100e83398151915254821015610e0d576002600052600660205260008051602061100e833981519152805483908110610ccd57fe5b6000918252602082200154600160a060020a031690632fbc0bf190604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610d1c57600080fd5b6102c65a03f11515610d2d57600080fd5b50505060405180519060200180516002600052600660205260008051602061100e833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610d8757fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610dee57600080fd5b6102c65a03f41515610dff57600080fd5b505060019092019150610c87565b600091505b60016000526006602052600080516020610fee83398151915254821015610f985760016000526006602052600080516020610fee833981519152805483908110610e5857fe5b6000918252602082200154600160a060020a0316906398d5fdca90604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ea757600080fd5b6102c65a03f11515610eb857600080fd5b505050604051805190602001805160016000526006602052600080516020610fee833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610f1257fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610f7957600080fd5b6102c65a03f41515610f8a57600080fd5b505060019092019150610e12565b42600955610898565b600054600160a060020a031681565b815481835581811511610b8c57600083815260209020610b8c91810190830161036391905b80821115610fe95760008155600101610fd5565b509056003e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a318819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820c6eed5ade0a5b754f5c5f186d740af4468adfb1dd022bd7214c5ecb1037c9f190029","sourceMap":"222:3762:13:-;;;594:18:3;;;-1:-1:-1;;;;;;594:18:3;;;;;;616:25;;;;;;;;840:57:13;;;;;;;;;;;;;;;;;;;;;;1657:5:3;:11;;-1:-1:-1;;;;;1657:11:3;;;-1:-1:-1;;;;;;1657:11:3;;;;;;;:5;1674:18;;1682:10;1674:18;;;;;;;;;;;;;-1:-1:-1;;222:3762:13;;;;;;","deployedSourceMap":"222:3762:13:-;;;;;;;;-1:-1:-1;;;222:3762:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2113:90:3;;;;;;;;;;;;;;;;;;;;;;;;;;;1769:72;;;;;;;;;;;;-1:-1:-1;;;;;1769:72:3;;;;;2565:620:13;;;;;;;;;;;;;;2316:59:3;;;;;;;;;;;;2284:209:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2017:92:3;;;;;;;;;;;;3260:447:13;;;;;;;;;;;;3773:68;;;;;;;;;;;;971:179;;;;;;;;;;;;;;2389:74:3;;;;;;;;;;;;;;;-1:-1:-1;;;;;2389:74:3;;;;;;;;;;;;;;;2207:105;;;;;;;;;;;;1154:140:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1701:64:3;;;;;;;;;;;;-1:-1:-1;;;;;1701:64:3;;;3845:79:13;;;;;;;;;;;;1960:320;;;;;;;;;;;;3928:54;;;;;;;;;;;;1845:98:3;;;;;;;;;;;;;;-1:-1:-1;;;;;1845:98:3;;;1387:509:13;;;;;;;;;;;;202:20:3;;;;;;;;;;;;2113:90;2173:11;;2147:4;;-1:-1:-1;;;;;2173:11:3;2166:30;2147:4;2166:32;;;;;;;-1:-1:-1;;;2166:32:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2113:90:3;;:::o;1769:72::-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1819:11;:17;;-1:-1:-1;;1819:17:3;-1:-1:-1;;;;;1819:17:3;;;;;866:70;1769:72;:::o;2565:620:13:-;2616:4;2628:17;2664:15;2604:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;2709:1:13;2693:18;;;;:15;:18;;2648:10;;-1:-1:-1;2693:31:13;;;;-1:-1:-1;;;;;;;;;;;2693:18:13;2648:10;;2693:18;:42;;;;;;;;;-1:-1:-1;;;2693:42:13;;;;;;;;;;-1:-1:-1;;;;;2693:42:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:88;;;-1:-1:-1;2755:1:13;2739:18;;;;:15;:18;;:31;;;;-1:-1:-1;;;;;;;;;;;2739:18:13;2771:9;;2739:18;:42;;;;;;;;;-1:-1:-1;;;2739:42:13;;;;;;;;;;-1:-1:-1;;;;;2739:42:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2693:88;2685:97;;;;;;;;2801:11;;:19;;;;2821:10;2801:31;;;;;;;;;;;-1:-1:-1;;;2801:31:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2788:44;;2852:11;;:31;;;;2884:10;2904:4;2852:58;;;;;;;;;;;-1:-1:-1;;;2852:58:13;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2852:58:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2838:11;:72;-1:-1:-1;;;;;;;3117:33:13;;;;:22;:33;;;:13;:33;;;;;:37;3092:6;:63;;3106:48;;;3092:63;;;;;3117:33;3106:48;-1:-1:-1;;2565:620:13:o;2316:59:3:-;2364:6;;2316:59;:::o;2284:209:13:-;2420:11;;2327;;;2395:10;2458:25;;:13;2395:10;2327:11;2458:30;;;;;;;;;;-1:-1:-1;;;2458:30:13;;;;;;;;;;-1:-1:-1;;;;;2458:30:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2284:209;;2437:51;;;;-1:-1:-1;2458:30:13;;-1:-1:-1;2284:209:13;;-1:-1:-1;;;2284:209:13:o;2017:92:3:-;2078:11;;2052:4;;-1:-1:-1;;;;;2078:11:3;2071:31;2052:4;2071:33;;;;;;;-1:-1:-1;;;2071:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;3260:447:13;3340:21;3367:18;3391:12;3286:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;3417:4:13;;-1:-1:-1;;;;;3417:4:13;:11;;3409:20;;;;;;3453:1;3439:11;;:15;3435:268;;;3500:4;;3514:11;;-1:-1:-1;;;;;3500:4:13;;;;3494:19;;3500:4;3494:32;;;;;;;;;;-1:-1:-1;;;3494:32:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3548:11;;3464:62;;-1:-1:-1;3494:32:13;-1:-1:-1;3548:31:13;;;;-1:-1:-1;3464:62:13;3606:4;3548:64;;;;;;;;;;;-1:-1:-1;;;3548:64:13;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3548:64:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3534:11;:78;-1:-1:-1;3668:6:13;:28;;3636:24;;;3668:28;;;;;;;3636:24;-1:-1:-1;3435:268:13;3260:447;;;;:::o;3773:68::-;3801:4;3820:16;:14;:16::i;:::-;3813:23;;3773:68;:::o;971:179::-;1021:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;987:5;;973:10;-1:-1:-1;;;;;973:19:3;;;987:5;;973:19;969:70;;;1043:11:13;:20;;;1086:3;1069:14;:20;;;1110:5;;1095:50;;-1:-1:-1;;;;;1110:5:13;;;;1043:20;;1095:50;;-1:-1:-1;;;;;1095:50:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;969:70:3;971:179:13;;:::o;2389:74:3:-;2447:11;;-1:-1:-1;;;;;2447:11:3;;2389:74::o;2207:105::-;2273:11;;2247:4;;-1:-1:-1;;;;;2273:11:3;2266:39;2247:4;2266:41;;;;;;;-1:-1:-1;;;2266:41:3;;;;;;;;;;;;;;;;;;;;;;;;;;1154:140:13;1247:11;;1275:14;;1247:11;;1154:140::o;1701:64:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1750:4;:10;;-1:-1:-1;;1750:10:3;-1:-1:-1;;;;;1750:10:3;;;;;866:70;;3845:79:13;3879:4;3898:21;:19;:21::i;1960:320::-;2148:7;2167;1987:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1996:26:13;;:13;:28;;;;;-1:-1:-1;;;1996:28:13;;;;;;;;;;;;-1:-1:-1;1996:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2127:4:13;;-1:-1:-1;;;;;2127:4:13;:11;;-1:-1:-1;2123:153:13;;2206:4;;2158:1;;-1:-1:-1;2158:1:13;;-1:-1:-1;;;;;;2206:4:13;2200:20;2158:1;2200:22;;;;;;;-1:-1:-1;;;2200:22:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2258:4;;2190:32;;-1:-1:-1;2200:22:13;-1:-1:-1;2230:27:13;;;;-1:-1:-1;2230:13:13;;-1:-1:-1;;;;;2258:4:13;2190:32;2200:22;2230:39;;;;;-1:-1:-1;;;2230:39:13;;;;;;;;;;-1:-1:-1;;;;;2230:39:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2230:39:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2123:153;1960:320;;;:::o;3928:54::-;3974:3;3928:54;:::o;1845:98:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1910:18;;;;:15;:18;;;;;:28;;;;;;:18;:28;;:::i;:::-;-1:-1:-1;1910:28:3;;;;;;;;;;;-1:-1:-1;;1910:28:3;-1:-1:-1;;;;;1910:28:3;;;;;866:70;;1387:509:13;1425:7;1442;1690:6;1416:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1435:1:13;;-1:-1:-1;1435:1:13;;-1:-1:-1;1463:26:13;;:13;:28;;;;;-1:-1:-1;;;1463:28:13;;;;;;;;;;;;-1:-1:-1;1463:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1506:1;1502:5;;1497:183;1529:1;1513:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1513:25:13;1509:29;;1497:183;;;1588:1;1572:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1572:21:13;;1591:1;;1572:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;1572:21:13;;1563:44;;:46;;;;;;;-1:-1:-1;;;1563:46:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1661:1;1645:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1645:21:13;;1553:56;;-1:-1:-1;1563:46:13;;-1:-1:-1;1617:27:13;;;;-1:-1:-1;1617:13:13;;1645:18;1664:1;;1645:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1645:21:13;1667:2;1670;1617:56;;;;;-1:-1:-1;;;1617:56:13;;;;;;;;;;-1:-1:-1;;;;;1617:56:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1617:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1540:3:13;;;;;-1:-1:-1;1497:183:13;;;1699:1;1690:10;;1685:179;1722:1;1706:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1706:25:13;1702:29;;1685:179;;;1776:1;1760:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1760:21:13;;1779:1;;1760:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;1760:21:13;;1756:35;;:37;;;;;;;-1:-1:-1;;;1756:37:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1845:1;1829:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1829:21:13;;1746:47;;-1:-1:-1;1756:37:13;;-1:-1:-1;1801:27:13;;;;-1:-1:-1;1801:13:13;;1829:18;1848:1;;1829:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1829:21:13;1851:2;1854;1801:56;;;;;-1:-1:-1;;;1801:56:13;;;;;;;;;;-1:-1:-1;;;;;1801:56:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1801:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1733:3:13;;;;;-1:-1:-1;1685:179:13;;;1888:3;1869:16;:22;1524:82:3;;202:20;;;-1:-1:-1;;;;;202:20:3;;:::o;222:3762:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","source":"pragma solidity ^0.4.4;\n\nimport \"./SortPLib.sol\";\nimport \"./AdrLib.sol\";\nimport \"./TransactLib.sol\";\nimport \"./IPV.sol\";\nimport \"./IGrid.sol\";\nimport \"./IBattery.sol\";\nimport \"./IHouse.sol\";\nimport \"./GeneralDevice.sol\";\n\ncontract SingleHouse is GeneralDevice, IHouse {\n // one contract is associated to one particular House in the network.\n\n using AdrLib for address[];\n using TransactLib for uint;\n using SortPLib for *;\n\n SortPLib.PriceMap draftPriceMap;\n\n// ======= Modifiers =======\n\n\n// ======= Event Logs =======\n\n event ConsumptionLog(address adr, uint consum, uint consumAt);\n //event ConfigurationLog(string confMod, uint statusAt);\n event EnergyTransferLog(address adrFrom, address adrTo, uint eVol, uint transferAt);\n\n// ======= Basic Functionalities =======\n\n // --- 0. Upon contract creation and configuration ---\n\n function SingleHouse (address adr) GeneralDevice(adr) { }\n\n // --- 1. set and get house consumption every 15 min (or less) ---\n\n function setConsumption(uint consum) public timed(1) ownerOnly { //\n consumption = consum;\n consumStatusAt = now;\n ConsumptionLog(owner, consumption, consumStatusAt);\n }\n\n function getConsumption() external view returns (uint consum, uint consumAt) {\n consum = consumption;\n consumAt = consumStatusAt;\n }\n\n // --- 2. ask for connected PV / batteries / grid for price of electricity supply ---\n\n function askForPrice() timed(2) {\n uint tP = 0;\n bool tF = false;\n draftPriceMap.initPrsTable();\n for (i = 0; i < connectedDevice[2].length; i++) {\n (tP,tF) = IBattery(connectedDevice[2][i]).getSalePrice();\n draftPriceMap.addToPrsTable(connectedDevice[2][i],tP,tF);\n }\n for (uint i = 0; i < connectedDevice[1].length; i++) {\n (tP,tF) = IPV(connectedDevice[1][i]).getPrice();\n draftPriceMap.addToPrsTable(connectedDevice[1][i],tP,tF);\n }\n lastPriceQueryAt = now;\n }\n\n // --- 3. House sorts all the information internally ---\n\n function sortPrice() timed(2) {\n draftPriceMap.sortPrsTable();\n // if the grid is connected -> add the price from the grid to the end of the sorted list\n if (grid != 0x0) {\n uint tP = 0;\n bool tF = false;\n (tP,tF) = IGrid(grid).getPrice();\n draftPriceMap.addToPrsTable(grid,tP,tF);\n }\n }\n\n function getSortedPrice() external returns(uint consum, uint rank, uint tot, bool updated) {\n address adr = msg.sender;\n consum = consumption;\n (rank,tot,updated) = draftPriceMap.getPrsTable(adr);\n }\n\n // --- 4. PV/Battery ask House to confirm energy transaction ---\n\n function goNoGo(uint giveoutvol) timed(4) returns (uint) {\n address adrDevice = msg.sender;\n uint takeoutvol;\n require(connectedDevice[2].assertInside(adrDevice) || connectedDevice[1].assertInside(adrDevice));\n takeoutvol = consumption.findMin(giveoutvol);\n consumption = consumption.clearEnergyTransfer(takeoutvol, address(this));\n //EnergyTransferLog(adrDevice,address(this), takeoutvol, consumption);\n //wallet = wallet.clearMoneyTransfer(-int(takeoutvol*priceQueryInfo[adrDevice].prs), adrDevice);\n wallet -= int(takeoutvol*draftPriceMap.prsTable[adrDevice].prs);\n return (takeoutvol);\n }\n\n // --- 5. If house still has energy demand, ask grid for energy ---\n\n function buyExtra() timed(5) {\n // when houses still have extra needs...\n uint whatDeviceAccept;\n uint receivedMoney;\n uint unitPrs;\n require(grid != 0x0);\n if (consumption > 0) {\n (whatDeviceAccept, unitPrs) = IGrid(grid).goExtra(consumption);\n consumption = consumption.clearEnergyTransfer(whatDeviceAccept, address(this));\n receivedMoney = whatDeviceAccept*unitPrs;\n wallet -= int(receivedMoney);\n }\n }\n\n\n // ------------Functions used in testing------------------\n function getTime() returns (uint) {\n return getTimerStatus();\n }\n\n function getTimeToNext() returns (uint) {\n return getTimeToNextStatus();\n }\n\n function getNow() returns (uint) {\n return now;\n }\n}\n","sourcePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SingleHouse.sol","ast":{"attributes":{"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SingleHouse.sol","exportedSymbols":{"SingleHouse":[2578]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".4"]},"id":2153,"name":"PragmaDirective","src":"0:23:13"},{"attributes":{"SourceUnit":3630,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SortPLib.sol","file":"./SortPLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2154,"name":"ImportDirective","src":"25:24:13"},{"attributes":{"SourceUnit":38,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/AdrLib.sol","file":"./AdrLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2155,"name":"ImportDirective","src":"50:22:13"},{"attributes":{"SourceUnit":4165,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/TransactLib.sol","file":"./TransactLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2156,"name":"ImportDirective","src":"73:27:13"},{"attributes":{"SourceUnit":1286,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IPV.sol","file":"./IPV.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2157,"name":"ImportDirective","src":"101:19:13"},{"attributes":{"SourceUnit":1228,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IGrid.sol","file":"./IGrid.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2158,"name":"ImportDirective","src":"121:21:13"},{"attributes":{"SourceUnit":1180,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IBattery.sol","file":"./IBattery.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2159,"name":"ImportDirective","src":"143:24:13"},{"attributes":{"SourceUnit":1261,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IHouse.sol","file":"./IHouse.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2160,"name":"ImportDirective","src":"168:22:13"},{"attributes":{"SourceUnit":773,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/GeneralDevice.sol","file":"./GeneralDevice.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2161,"name":"ImportDirective","src":"191:29:13"},{"attributes":{"contractDependencies":[772,1260],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[2578,1260,772],"name":"SingleHouse","scope":2579},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"GeneralDevice","referencedDeclaration":772,"type":"contract GeneralDevice"},"id":2162,"name":"UserDefinedTypeName","src":"246:13:13"}],"id":2163,"name":"InheritanceSpecifier","src":"246:13:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"IHouse","referencedDeclaration":1260,"type":"contract IHouse"},"id":2164,"name":"UserDefinedTypeName","src":"261:6:13"}],"id":2165,"name":"InheritanceSpecifier","src":"261:6:13"},{"children":[{"attributes":{"contractScope":null,"name":"AdrLib","referencedDeclaration":37,"type":"library AdrLib"},"id":2166,"name":"UserDefinedTypeName","src":"351:6:13"},{"attributes":{"length":null,"type":"address[] storage pointer"},"children":[{"attributes":{"name":"address","type":"address"},"id":2167,"name":"ElementaryTypeName","src":"362:7:13"}],"id":2168,"name":"ArrayTypeName","src":"362:9:13"}],"id":2169,"name":"UsingForDirective","src":"345:27:13"},{"children":[{"attributes":{"contractScope":null,"name":"TransactLib","referencedDeclaration":4164,"type":"library TransactLib"},"id":2170,"name":"UserDefinedTypeName","src":"381:11:13"},{"attributes":{"name":"uint","type":"uint256"},"id":2171,"name":"ElementaryTypeName","src":"397:4:13"}],"id":2172,"name":"UsingForDirective","src":"375:27:13"},{"attributes":{"typeName":null},"children":[{"attributes":{"contractScope":null,"name":"SortPLib","referencedDeclaration":3629,"type":"library SortPLib"},"id":2173,"name":"UserDefinedTypeName","src":"411:8:13"}],"id":2174,"name":"UsingForDirective","src":"405:21:13"},{"attributes":{"constant":false,"name":"draftPriceMap","scope":2578,"stateVariable":true,"storageLocation":"default","type":"struct SortPLib.PriceMap storage ref","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"SortPLib.PriceMap","referencedDeclaration":3279,"type":"struct SortPLib.PriceMap storage pointer"},"id":2175,"name":"UserDefinedTypeName","src":"430:17:13"}],"id":2176,"name":"VariableDeclaration","src":"430:31:13"},{"attributes":{"anonymous":false,"name":"ConsumptionLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adr","scope":2184,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2177,"name":"ElementaryTypeName","src":"549:7:13"}],"id":2178,"name":"VariableDeclaration","src":"549:11:13"},{"attributes":{"constant":false,"indexed":false,"name":"consum","scope":2184,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2179,"name":"ElementaryTypeName","src":"562:4:13"}],"id":2180,"name":"VariableDeclaration","src":"562:11:13"},{"attributes":{"constant":false,"indexed":false,"name":"consumAt","scope":2184,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2181,"name":"ElementaryTypeName","src":"575:4:13"}],"id":2182,"name":"VariableDeclaration","src":"575:13:13"}],"id":2183,"name":"ParameterList","src":"548:41:13"}],"id":2184,"name":"EventDefinition","src":"528:62:13"},{"attributes":{"anonymous":false,"name":"EnergyTransferLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adrFrom","scope":2194,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2185,"name":"ElementaryTypeName","src":"676:7:13"}],"id":2186,"name":"VariableDeclaration","src":"676:15:13"},{"attributes":{"constant":false,"indexed":false,"name":"adrTo","scope":2194,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2187,"name":"ElementaryTypeName","src":"693:7:13"}],"id":2188,"name":"VariableDeclaration","src":"693:13:13"},{"attributes":{"constant":false,"indexed":false,"name":"eVol","scope":2194,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2189,"name":"ElementaryTypeName","src":"708:4:13"}],"id":2190,"name":"VariableDeclaration","src":"708:9:13"},{"attributes":{"constant":false,"indexed":false,"name":"transferAt","scope":2194,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2191,"name":"ElementaryTypeName","src":"719:4:13"}],"id":2192,"name":"VariableDeclaration","src":"719:15:13"}],"id":2193,"name":"ParameterList","src":"675:60:13"}],"id":2194,"name":"EventDefinition","src":"652:84:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"name":"SingleHouse","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"adr","scope":2203,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2195,"name":"ElementaryTypeName","src":"862:7:13"}],"id":2196,"name":"VariableDeclaration","src":"862:11:13"}],"id":2197,"name":"ParameterList","src":"861:13:13"},{"attributes":{"parameters":[null]},"children":[],"id":2201,"name":"ParameterList","src":"894:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":772,"type":"type(contract GeneralDevice)","value":"GeneralDevice"},"id":2198,"name":"Identifier","src":"875:13:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2196,"type":"address","value":"adr"},"id":2199,"name":"Identifier","src":"889:3:13"}],"id":2200,"name":"ModifierInvocation","src":"875:18:13"},{"attributes":{"statements":[null]},"children":[],"id":2202,"name":"Block","src":"894:3:13"}],"id":2203,"name":"FunctionDefinition","src":"840:57:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setConsumption","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"consum","scope":2228,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2204,"name":"ElementaryTypeName","src":"995:4:13"}],"id":2205,"name":"VariableDeclaration","src":"995:11:13"}],"id":2206,"name":"ParameterList","src":"994:13:13"},{"attributes":{"parameters":[null]},"children":[],"id":2212,"name":"ParameterList","src":"1034:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2207,"name":"Identifier","src":"1015:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2208,"name":"Literal","src":"1021:1:13"}],"id":2209,"name":"ModifierInvocation","src":"1015:8:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"modifier ()","value":"ownerOnly"},"id":2210,"name":"Identifier","src":"1024:9:13"}],"id":2211,"name":"ModifierInvocation","src":"1024:9:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2213,"name":"Identifier","src":"1043:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2205,"type":"uint256","value":"consum"},"id":2214,"name":"Identifier","src":"1057:6:13"}],"id":2215,"name":"Assignment","src":"1043:20:13"}],"id":2216,"name":"ExpressionStatement","src":"1043:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2217,"name":"Identifier","src":"1069:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2218,"name":"Identifier","src":"1086:3:13"}],"id":2219,"name":"Assignment","src":"1069:20:13"}],"id":2220,"name":"ExpressionStatement","src":"1069:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2184,"type":"function (address,uint256,uint256)","value":"ConsumptionLog"},"id":2221,"name":"Identifier","src":"1095:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":548,"type":"address","value":"owner"},"id":2222,"name":"Identifier","src":"1110:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2223,"name":"Identifier","src":"1117:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2224,"name":"Identifier","src":"1130:14:13"}],"id":2225,"name":"FunctionCall","src":"1095:50:13"}],"id":2226,"name":"ExpressionStatement","src":"1095:50:13"}],"id":2227,"name":"Block","src":"1034:116:13"}],"id":2228,"name":"FunctionDefinition","src":"971:179:13"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getConsumption","payable":false,"scope":2578,"stateMutability":"view","superFunction":null,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2229,"name":"ParameterList","src":"1177:2:13"},{"children":[{"attributes":{"constant":false,"name":"consum","scope":2244,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2230,"name":"ElementaryTypeName","src":"1204:4:13"}],"id":2231,"name":"VariableDeclaration","src":"1204:11:13"},{"attributes":{"constant":false,"name":"consumAt","scope":2244,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2232,"name":"ElementaryTypeName","src":"1217:4:13"}],"id":2233,"name":"VariableDeclaration","src":"1217:13:13"}],"id":2234,"name":"ParameterList","src":"1203:28:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2231,"type":"uint256","value":"consum"},"id":2235,"name":"Identifier","src":"1238:6:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2236,"name":"Identifier","src":"1247:11:13"}],"id":2237,"name":"Assignment","src":"1238:20:13"}],"id":2238,"name":"ExpressionStatement","src":"1238:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2233,"type":"uint256","value":"consumAt"},"id":2239,"name":"Identifier","src":"1264:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2240,"name":"Identifier","src":"1275:14:13"}],"id":2241,"name":"Assignment","src":"1264:25:13"}],"id":2242,"name":"ExpressionStatement","src":"1264:25:13"}],"id":2243,"name":"Block","src":"1232:62:13"}],"id":2244,"name":"FunctionDefinition","src":"1154:140:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"askForPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2245,"name":"ParameterList","src":"1407:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2249,"name":"ParameterList","src":"1419:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2246,"name":"Identifier","src":"1410:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2247,"name":"Literal","src":"1416:1:13"}],"id":2248,"name":"ModifierInvocation","src":"1410:8:13"},{"children":[{"attributes":{"assignments":[2251]},"children":[{"attributes":{"constant":false,"name":"tP","scope":2350,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2250,"name":"ElementaryTypeName","src":"1425:4:13"}],"id":2251,"name":"VariableDeclaration","src":"1425:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2252,"name":"Literal","src":"1435:1:13"}],"id":2253,"name":"VariableDeclarationStatement","src":"1425:11:13"},{"attributes":{"assignments":[2255]},"children":[{"attributes":{"constant":false,"name":"tF","scope":2350,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2254,"name":"ElementaryTypeName","src":"1442:4:13"}],"id":2255,"name":"VariableDeclaration","src":"1442:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2256,"name":"Literal","src":"1452:5:13"}],"id":2257,"name":"VariableDeclarationStatement","src":"1442:15:13"},{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"initPrsTable","referencedDeclaration":3297,"type":"function (struct SortPLib.PriceMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2258,"name":"Identifier","src":"1463:13:13"}],"id":2260,"name":"MemberAccess","src":"1463:26:13"}],"id":2261,"name":"FunctionCall","src":"1463:28:13"}],"id":2262,"name":"ExpressionStatement","src":"1463:28:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2263,"name":"Identifier","src":"1502:1:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2264,"name":"Literal","src":"1506:1:13"}],"id":2265,"name":"Assignment","src":"1502:5:13"}],"id":2266,"name":"ExpressionStatement","src":"1502:5:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2267,"name":"Identifier","src":"1509:1:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2268,"name":"Identifier","src":"1513:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2269,"name":"Literal","src":"1529:1:13"}],"id":2270,"name":"IndexAccess","src":"1513:18:13"}],"id":2271,"name":"MemberAccess","src":"1513:25:13"}],"id":2272,"name":"BinaryOperation","src":"1509:29:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2273,"name":"Identifier","src":"1540:1:13"}],"id":2274,"name":"UnaryOperation","src":"1540:3:13"}],"id":2275,"name":"ExpressionStatement","src":"1540:3:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2276,"name":"Identifier","src":"1554:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2277,"name":"Identifier","src":"1557:2:13"}],"id":2278,"name":"TupleExpression","src":"1553:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getSalePrice","referencedDeclaration":1145,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IBattery","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1179,"type":"type(contract IBattery)","value":"IBattery"},"id":2279,"name":"Identifier","src":"1563:8:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2280,"name":"Identifier","src":"1572:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2281,"name":"Literal","src":"1588:1:13"}],"id":2282,"name":"IndexAccess","src":"1572:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2283,"name":"Identifier","src":"1591:1:13"}],"id":2284,"name":"IndexAccess","src":"1572:21:13"}],"id":2285,"name":"FunctionCall","src":"1563:31:13"}],"id":2286,"name":"MemberAccess","src":"1563:44:13"}],"id":2287,"name":"FunctionCall","src":"1563:46:13"}],"id":2288,"name":"Assignment","src":"1553:56:13"}],"id":2289,"name":"ExpressionStatement","src":"1553:56:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2290,"name":"Identifier","src":"1617:13:13"}],"id":2292,"name":"MemberAccess","src":"1617:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2293,"name":"Identifier","src":"1645:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2294,"name":"Literal","src":"1661:1:13"}],"id":2295,"name":"IndexAccess","src":"1645:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2296,"name":"Identifier","src":"1664:1:13"}],"id":2297,"name":"IndexAccess","src":"1645:21:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2298,"name":"Identifier","src":"1667:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2299,"name":"Identifier","src":"1670:2:13"}],"id":2300,"name":"FunctionCall","src":"1617:56:13"}],"id":2301,"name":"ExpressionStatement","src":"1617:56:13"}],"id":2302,"name":"Block","src":"1545:135:13"}],"id":2303,"name":"ForStatement","src":"1497:183:13"},{"children":[{"attributes":{"assignments":[2305]},"children":[{"attributes":{"constant":false,"name":"i","scope":2350,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2304,"name":"ElementaryTypeName","src":"1690:4:13"}],"id":2305,"name":"VariableDeclaration","src":"1690:6:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2306,"name":"Literal","src":"1699:1:13"}],"id":2307,"name":"VariableDeclarationStatement","src":"1690:10:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2308,"name":"Identifier","src":"1702:1:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2309,"name":"Identifier","src":"1706:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2310,"name":"Literal","src":"1722:1:13"}],"id":2311,"name":"IndexAccess","src":"1706:18:13"}],"id":2312,"name":"MemberAccess","src":"1706:25:13"}],"id":2313,"name":"BinaryOperation","src":"1702:29:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2314,"name":"Identifier","src":"1733:1:13"}],"id":2315,"name":"UnaryOperation","src":"1733:3:13"}],"id":2316,"name":"ExpressionStatement","src":"1733:3:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2317,"name":"Identifier","src":"1747:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2318,"name":"Identifier","src":"1750:2:13"}],"id":2319,"name":"TupleExpression","src":"1746:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getPrice","referencedDeclaration":1284,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IPV","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1285,"type":"type(contract IPV)","value":"IPV"},"id":2320,"name":"Identifier","src":"1756:3:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2321,"name":"Identifier","src":"1760:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2322,"name":"Literal","src":"1776:1:13"}],"id":2323,"name":"IndexAccess","src":"1760:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2324,"name":"Identifier","src":"1779:1:13"}],"id":2325,"name":"IndexAccess","src":"1760:21:13"}],"id":2326,"name":"FunctionCall","src":"1756:26:13"}],"id":2327,"name":"MemberAccess","src":"1756:35:13"}],"id":2328,"name":"FunctionCall","src":"1756:37:13"}],"id":2329,"name":"Assignment","src":"1746:47:13"}],"id":2330,"name":"ExpressionStatement","src":"1746:47:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2331,"name":"Identifier","src":"1801:13:13"}],"id":2333,"name":"MemberAccess","src":"1801:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2334,"name":"Identifier","src":"1829:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2335,"name":"Literal","src":"1845:1:13"}],"id":2336,"name":"IndexAccess","src":"1829:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2337,"name":"Identifier","src":"1848:1:13"}],"id":2338,"name":"IndexAccess","src":"1829:21:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2339,"name":"Identifier","src":"1851:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2340,"name":"Identifier","src":"1854:2:13"}],"id":2341,"name":"FunctionCall","src":"1801:56:13"}],"id":2342,"name":"ExpressionStatement","src":"1801:56:13"}],"id":2343,"name":"Block","src":"1738:126:13"}],"id":2344,"name":"ForStatement","src":"1685:179:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1238,"type":"uint256","value":"lastPriceQueryAt"},"id":2345,"name":"Identifier","src":"1869:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2346,"name":"Identifier","src":"1888:3:13"}],"id":2347,"name":"Assignment","src":"1869:22:13"}],"id":2348,"name":"ExpressionStatement","src":"1869:22:13"}],"id":2349,"name":"Block","src":"1419:477:13"}],"id":2350,"name":"FunctionDefinition","src":"1387:509:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"sortPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2351,"name":"ParameterList","src":"1978:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2355,"name":"ParameterList","src":"1990:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2352,"name":"Identifier","src":"1981:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2353,"name":"Literal","src":"1987:1:13"}],"id":2354,"name":"ModifierInvocation","src":"1981:8:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"sortPrsTable","referencedDeclaration":3489,"type":"function (struct SortPLib.PriceMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2356,"name":"Identifier","src":"1996:13:13"}],"id":2358,"name":"MemberAccess","src":"1996:26:13"}],"id":2359,"name":"FunctionCall","src":"1996:28:13"}],"id":2360,"name":"ExpressionStatement","src":"1996:28:13"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2361,"name":"Identifier","src":"2127:4:13"},{"attributes":{"argumentTypes":null,"hexvalue":"307830","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0x0"},"id":2362,"name":"Literal","src":"2135:3:13"}],"id":2363,"name":"BinaryOperation","src":"2127:11:13"},{"children":[{"attributes":{"assignments":[2365]},"children":[{"attributes":{"constant":false,"name":"tP","scope":2393,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2364,"name":"ElementaryTypeName","src":"2148:4:13"}],"id":2365,"name":"VariableDeclaration","src":"2148:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2366,"name":"Literal","src":"2158:1:13"}],"id":2367,"name":"VariableDeclarationStatement","src":"2148:11:13"},{"attributes":{"assignments":[2369]},"children":[{"attributes":{"constant":false,"name":"tF","scope":2393,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2368,"name":"ElementaryTypeName","src":"2167:4:13"}],"id":2369,"name":"VariableDeclaration","src":"2167:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2370,"name":"Literal","src":"2177:5:13"}],"id":2371,"name":"VariableDeclarationStatement","src":"2167:15:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2365,"type":"uint256","value":"tP"},"id":2372,"name":"Identifier","src":"2191:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2369,"type":"bool","value":"tF"},"id":2373,"name":"Identifier","src":"2194:2:13"}],"id":2374,"name":"TupleExpression","src":"2190:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getPrice","referencedDeclaration":1202,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":2375,"name":"Identifier","src":"2200:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2376,"name":"Identifier","src":"2206:4:13"}],"id":2377,"name":"FunctionCall","src":"2200:11:13"}],"id":2378,"name":"MemberAccess","src":"2200:20:13"}],"id":2379,"name":"FunctionCall","src":"2200:22:13"}],"id":2380,"name":"Assignment","src":"2190:32:13"}],"id":2381,"name":"ExpressionStatement","src":"2190:32:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2382,"name":"Identifier","src":"2230:13:13"}],"id":2384,"name":"MemberAccess","src":"2230:27:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2385,"name":"Identifier","src":"2258:4:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2365,"type":"uint256","value":"tP"},"id":2386,"name":"Identifier","src":"2263:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2369,"type":"bool","value":"tF"},"id":2387,"name":"Identifier","src":"2266:2:13"}],"id":2388,"name":"FunctionCall","src":"2230:39:13"}],"id":2389,"name":"ExpressionStatement","src":"2230:39:13"}],"id":2390,"name":"Block","src":"2140:136:13"}],"id":2391,"name":"IfStatement","src":"2123:153:13"}],"id":2392,"name":"Block","src":"1990:290:13"}],"id":2393,"name":"FunctionDefinition","src":"1960:320:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getSortedPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":1249,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2394,"name":"ParameterList","src":"2307:2:13"},{"children":[{"attributes":{"constant":false,"name":"consum","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2395,"name":"ElementaryTypeName","src":"2327:4:13"}],"id":2396,"name":"VariableDeclaration","src":"2327:11:13"},{"attributes":{"constant":false,"name":"rank","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2397,"name":"ElementaryTypeName","src":"2340:4:13"}],"id":2398,"name":"VariableDeclaration","src":"2340:9:13"},{"attributes":{"constant":false,"name":"tot","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2399,"name":"ElementaryTypeName","src":"2351:4:13"}],"id":2400,"name":"VariableDeclaration","src":"2351:8:13"},{"attributes":{"constant":false,"name":"updated","scope":2424,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2401,"name":"ElementaryTypeName","src":"2361:4:13"}],"id":2402,"name":"VariableDeclaration","src":"2361:12:13"}],"id":2403,"name":"ParameterList","src":"2326:48:13"},{"children":[{"attributes":{"assignments":[2405]},"children":[{"attributes":{"constant":false,"name":"adr","scope":2424,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2404,"name":"ElementaryTypeName","src":"2381:7:13"}],"id":2405,"name":"VariableDeclaration","src":"2381:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":2406,"name":"Identifier","src":"2395:3:13"}],"id":2407,"name":"MemberAccess","src":"2395:10:13"}],"id":2408,"name":"VariableDeclarationStatement","src":"2381:24:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2396,"type":"uint256","value":"consum"},"id":2409,"name":"Identifier","src":"2411:6:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2410,"name":"Identifier","src":"2420:11:13"}],"id":2411,"name":"Assignment","src":"2411:20:13"}],"id":2412,"name":"ExpressionStatement","src":"2411:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2398,"type":"uint256","value":"rank"},"id":2413,"name":"Identifier","src":"2438:4:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2400,"type":"uint256","value":"tot"},"id":2414,"name":"Identifier","src":"2443:3:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2402,"type":"bool","value":"updated"},"id":2415,"name":"Identifier","src":"2447:7:13"}],"id":2416,"name":"TupleExpression","src":"2437:18:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"getPrsTable","referencedDeclaration":3585,"type":"function (struct SortPLib.PriceMap storage pointer,address) returns (uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2417,"name":"Identifier","src":"2458:13:13"}],"id":2418,"name":"MemberAccess","src":"2458:25:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2405,"type":"address","value":"adr"},"id":2419,"name":"Identifier","src":"2484:3:13"}],"id":2420,"name":"FunctionCall","src":"2458:30:13"}],"id":2421,"name":"Assignment","src":"2437:51:13"}],"id":2422,"name":"ExpressionStatement","src":"2437:51:13"}],"id":2423,"name":"Block","src":"2375:118:13"}],"id":2424,"name":"FunctionDefinition","src":"2284:209:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"goNoGo","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":1259,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"giveoutvol","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2425,"name":"ElementaryTypeName","src":"2581:4:13"}],"id":2426,"name":"VariableDeclaration","src":"2581:15:13"}],"id":2427,"name":"ParameterList","src":"2580:17:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2431,"name":"ElementaryTypeName","src":"2616:4:13"}],"id":2432,"name":"VariableDeclaration","src":"2616:4:13"}],"id":2433,"name":"ParameterList","src":"2615:6:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2428,"name":"Identifier","src":"2598:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"34","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 4","value":"4"},"id":2429,"name":"Literal","src":"2604:1:13"}],"id":2430,"name":"ModifierInvocation","src":"2598:8:13"},{"children":[{"attributes":{"assignments":[2435]},"children":[{"attributes":{"constant":false,"name":"adrDevice","scope":2491,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2434,"name":"ElementaryTypeName","src":"2628:7:13"}],"id":2435,"name":"VariableDeclaration","src":"2628:17:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":2436,"name":"Identifier","src":"2648:3:13"}],"id":2437,"name":"MemberAccess","src":"2648:10:13"}],"id":2438,"name":"VariableDeclarationStatement","src":"2628:30:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"takeoutvol","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2439,"name":"ElementaryTypeName","src":"2664:4:13"}],"id":2440,"name":"VariableDeclaration","src":"2664:15:13"}],"id":2441,"name":"VariableDeclarationStatement","src":"2664:15:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":4179,"type":"function (bool) pure","value":"require"},"id":2442,"name":"Identifier","src":"2685:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2443,"name":"Identifier","src":"2693:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2444,"name":"Literal","src":"2709:1:13"}],"id":2445,"name":"IndexAccess","src":"2693:18:13"}],"id":2446,"name":"MemberAccess","src":"2693:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2447,"name":"Identifier","src":"2725:9:13"}],"id":2448,"name":"FunctionCall","src":"2693:42:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2449,"name":"Identifier","src":"2739:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2450,"name":"Literal","src":"2755:1:13"}],"id":2451,"name":"IndexAccess","src":"2739:18:13"}],"id":2452,"name":"MemberAccess","src":"2739:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2453,"name":"Identifier","src":"2771:9:13"}],"id":2454,"name":"FunctionCall","src":"2739:42:13"}],"id":2455,"name":"BinaryOperation","src":"2693:88:13"}],"id":2456,"name":"FunctionCall","src":"2685:97:13"}],"id":2457,"name":"ExpressionStatement","src":"2685:97:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2458,"name":"Identifier","src":"2788:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"findMin","referencedDeclaration":4048,"type":"function (uint256,uint256) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2459,"name":"Identifier","src":"2801:11:13"}],"id":2460,"name":"MemberAccess","src":"2801:19:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2426,"type":"uint256","value":"giveoutvol"},"id":2461,"name":"Identifier","src":"2821:10:13"}],"id":2462,"name":"FunctionCall","src":"2801:31:13"}],"id":2463,"name":"Assignment","src":"2788:44:13"}],"id":2464,"name":"ExpressionStatement","src":"2788:44:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2465,"name":"Identifier","src":"2838:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2466,"name":"Identifier","src":"2852:11:13"}],"id":2467,"name":"MemberAccess","src":"2852:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2468,"name":"Identifier","src":"2884:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SingleHouse_$2578","typeString":"contract SingleHouse"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2469,"name":"ElementaryTypeNameExpression","src":"2896:7:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4207,"type":"contract SingleHouse","value":"this"},"id":2470,"name":"Identifier","src":"2904:4:13"}],"id":2471,"name":"FunctionCall","src":"2896:13:13"}],"id":2472,"name":"FunctionCall","src":"2852:58:13"}],"id":2473,"name":"Assignment","src":"2838:72:13"}],"id":2474,"name":"ExpressionStatement","src":"2838:72:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":2475,"name":"Identifier","src":"3092:6:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":2476,"name":"ElementaryTypeNameExpression","src":"3102:3:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2477,"name":"Identifier","src":"3106:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"prs","referencedDeclaration":3263,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct SortPLib.PriceTF storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"prsTable","referencedDeclaration":3270,"type":"mapping(address => struct SortPLib.PriceTF storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2478,"name":"Identifier","src":"3117:13:13"}],"id":2479,"name":"MemberAccess","src":"3117:22:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2480,"name":"Identifier","src":"3140:9:13"}],"id":2481,"name":"IndexAccess","src":"3117:33:13"}],"id":2482,"name":"MemberAccess","src":"3117:37:13"}],"id":2483,"name":"BinaryOperation","src":"3106:48:13"}],"id":2484,"name":"FunctionCall","src":"3102:53:13"}],"id":2485,"name":"Assignment","src":"3092:63:13"}],"id":2486,"name":"ExpressionStatement","src":"3092:63:13"},{"attributes":{"functionReturnParameters":2433},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2487,"name":"Identifier","src":"3169:10:13"}],"id":2488,"name":"TupleExpression","src":"3168:12:13"}],"id":2489,"name":"Return","src":"3161:19:13"}],"id":2490,"name":"Block","src":"2622:563:13"}],"id":2491,"name":"FunctionDefinition","src":"2565:620:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"buyExtra","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2492,"name":"ParameterList","src":"3277:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2496,"name":"ParameterList","src":"3289:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2493,"name":"Identifier","src":"3280:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"35","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 5","value":"5"},"id":2494,"name":"Literal","src":"3286:1:13"}],"id":2495,"name":"ModifierInvocation","src":"3280:8:13"},{"children":[{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"whatDeviceAccept","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2497,"name":"ElementaryTypeName","src":"3340:4:13"}],"id":2498,"name":"VariableDeclaration","src":"3340:21:13"}],"id":2499,"name":"VariableDeclarationStatement","src":"3340:21:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"receivedMoney","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2500,"name":"ElementaryTypeName","src":"3367:4:13"}],"id":2501,"name":"VariableDeclaration","src":"3367:18:13"}],"id":2502,"name":"VariableDeclarationStatement","src":"3367:18:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"unitPrs","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2503,"name":"ElementaryTypeName","src":"3391:4:13"}],"id":2504,"name":"VariableDeclaration","src":"3391:12:13"}],"id":2505,"name":"VariableDeclarationStatement","src":"3391:12:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":4179,"type":"function (bool) pure","value":"require"},"id":2506,"name":"Identifier","src":"3409:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2507,"name":"Identifier","src":"3417:4:13"},{"attributes":{"argumentTypes":null,"hexvalue":"307830","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0x0"},"id":2508,"name":"Literal","src":"3425:3:13"}],"id":2509,"name":"BinaryOperation","src":"3417:11:13"}],"id":2510,"name":"FunctionCall","src":"3409:20:13"}],"id":2511,"name":"ExpressionStatement","src":"3409:20:13"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2512,"name":"Identifier","src":"3439:11:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2513,"name":"Literal","src":"3453:1:13"}],"id":2514,"name":"BinaryOperation","src":"3439:15:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2515,"name":"Identifier","src":"3465:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2504,"type":"uint256","value":"unitPrs"},"id":2516,"name":"Identifier","src":"3483:7:13"}],"id":2517,"name":"TupleExpression","src":"3464:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goExtra","referencedDeclaration":1226,"type":"function (uint256) external returns (uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":2518,"name":"Identifier","src":"3494:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2519,"name":"Identifier","src":"3500:4:13"}],"id":2520,"name":"FunctionCall","src":"3494:11:13"}],"id":2521,"name":"MemberAccess","src":"3494:19:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2522,"name":"Identifier","src":"3514:11:13"}],"id":2523,"name":"FunctionCall","src":"3494:32:13"}],"id":2524,"name":"Assignment","src":"3464:62:13"}],"id":2525,"name":"ExpressionStatement","src":"3464:62:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2526,"name":"Identifier","src":"3534:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2527,"name":"Identifier","src":"3548:11:13"}],"id":2528,"name":"MemberAccess","src":"3548:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2529,"name":"Identifier","src":"3580:16:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SingleHouse_$2578","typeString":"contract SingleHouse"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2530,"name":"ElementaryTypeNameExpression","src":"3598:7:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4207,"type":"contract SingleHouse","value":"this"},"id":2531,"name":"Identifier","src":"3606:4:13"}],"id":2532,"name":"FunctionCall","src":"3598:13:13"}],"id":2533,"name":"FunctionCall","src":"3548:64:13"}],"id":2534,"name":"Assignment","src":"3534:78:13"}],"id":2535,"name":"ExpressionStatement","src":"3534:78:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2501,"type":"uint256","value":"receivedMoney"},"id":2536,"name":"Identifier","src":"3620:13:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2537,"name":"Identifier","src":"3636:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2504,"type":"uint256","value":"unitPrs"},"id":2538,"name":"Identifier","src":"3653:7:13"}],"id":2539,"name":"BinaryOperation","src":"3636:24:13"}],"id":2540,"name":"Assignment","src":"3620:40:13"}],"id":2541,"name":"ExpressionStatement","src":"3620:40:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":2542,"name":"Identifier","src":"3668:6:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":2543,"name":"ElementaryTypeNameExpression","src":"3678:3:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2501,"type":"uint256","value":"receivedMoney"},"id":2544,"name":"Identifier","src":"3682:13:13"}],"id":2545,"name":"FunctionCall","src":"3678:18:13"}],"id":2546,"name":"Assignment","src":"3668:28:13"}],"id":2547,"name":"ExpressionStatement","src":"3668:28:13"}],"id":2548,"name":"Block","src":"3456:247:13"}],"id":2549,"name":"IfStatement","src":"3435:268:13"}],"id":2550,"name":"Block","src":"3289:418:13"}],"id":2551,"name":"FunctionDefinition","src":"3260:447:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTime","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2552,"name":"ParameterList","src":"3789:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2560,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2553,"name":"ElementaryTypeName","src":"3801:4:13"}],"id":2554,"name":"VariableDeclaration","src":"3801:4:13"}],"id":2555,"name":"ParameterList","src":"3800:6:13"},{"children":[{"attributes":{"functionReturnParameters":2555},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":731,"type":"function () returns (uint256)","value":"getTimerStatus"},"id":2556,"name":"Identifier","src":"3820:14:13"}],"id":2557,"name":"FunctionCall","src":"3820:16:13"}],"id":2558,"name":"Return","src":"3813:23:13"}],"id":2559,"name":"Block","src":"3807:34:13"}],"id":2560,"name":"FunctionDefinition","src":"3773:68:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTimeToNext","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2561,"name":"ParameterList","src":"3867:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2569,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2562,"name":"ElementaryTypeName","src":"3879:4:13"}],"id":2563,"name":"VariableDeclaration","src":"3879:4:13"}],"id":2564,"name":"ParameterList","src":"3878:6:13"},{"children":[{"attributes":{"functionReturnParameters":2564},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":755,"type":"function () returns (uint256)","value":"getTimeToNextStatus"},"id":2565,"name":"Identifier","src":"3898:19:13"}],"id":2566,"name":"FunctionCall","src":"3898:21:13"}],"id":2567,"name":"Return","src":"3891:28:13"}],"id":2568,"name":"Block","src":"3885:39:13"}],"id":2569,"name":"FunctionDefinition","src":"3845:79:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getNow","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2570,"name":"ParameterList","src":"3943:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2577,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2571,"name":"ElementaryTypeName","src":"3955:4:13"}],"id":2572,"name":"VariableDeclaration","src":"3955:4:13"}],"id":2573,"name":"ParameterList","src":"3954:6:13"},{"children":[{"attributes":{"functionReturnParameters":2573},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2574,"name":"Identifier","src":"3974:3:13"}],"id":2575,"name":"Return","src":"3967:10:13"}],"id":2576,"name":"Block","src":"3961:21:13"}],"id":2577,"name":"FunctionDefinition","src":"3928:54:13"}],"id":2578,"name":"ContractDefinition","src":"222:3762:13"}],"id":2579,"name":"SourceUnit","src":"0:3985:13"},"compiler":{"name":"solc","version":"0.4.18+commit.9cf6e910.Emscripten.clang"},"networks":{"1513694582674":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x7a5fbc6f31ebaa197a0a8b294b6cb4f1ff4cbaf0","AdrLib":"0x2a29be3b1c490814e26339c307c6d072efa1e3e7","TransactLib":"0x9d362366891ab58651569d81913d4b816088130d"},"address":"0x16a8a037ff7a2210e59754d46ad4c3e0a87ca714"},"1513697632729":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xa4113d97a4e2dc10d1b5fc54cf736d2854a7c01f","AdrLib":"0x90fb0b5ffa9d3914f9385334dcfdc6b02600399a","TransactLib":"0xc8a86b5903ab611bec4fc6fdf237a1d206e15acf"},"address":"0xbd7538578c4ae60d80f7304d6ee7b9569914be86"},"1513763710755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x78c2bb7f3a36d4d707059ea3f4849b678ee3bfda","AdrLib":"0xc58dcc188e655d4ddf557ecbc4c56ac6ebc11c67","TransactLib":"0x27773684e75ae51c682f089b2a3b86ef707970ee"},"address":"0xb0d00ca29d7a9c2136b5ef51f764e070ecfa0159"},"1513771446044":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x114601f4c855252b5004780915fed22240be89ff","AdrLib":"0x1482ae1a53728c856a810f0cba23d49ca89d4ccb","TransactLib":"0x98b427e11e15bb546e7ed96758a8eff0ee6e027d"},"address":"0x2a2633a2318087d61419dbe21b7cfb2046062bab"},"1513771818067":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x30c85717c7a56a9495a0c11854c0a0e612ae2332","AdrLib":"0x75d35a38dc3830fcff5cec2af8499c3530900ab5","TransactLib":"0x07e3d14562988d3896f468f5806fab6e092b78c6"},"address":"0xa6512803ec61d5094faf1e130b4b4657befda709"},"1513772129137":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8da5150535fe5fe0eb3cb55c241a7e60e4517a61","AdrLib":"0x116217ea23e706df44e85fdcd5cf009299e517a4","TransactLib":"0xb6d612907ee10abd3647fd327b135b722e48fdff"},"address":"0x407507f2a85b4869562d9f7776a7ae5d7031da70"},"1513772799886":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8963d9463d816a42efbafec52d2e6a325861198a","AdrLib":"0x28b271c9201a17d5ba98ad19ba55023f3da26e37","TransactLib":"0x20419e3e4cc09b5ca9d23ceec64f359f30861a05"},"address":"0xb2e9dfaa843c04f9a94ac9582ed30691c7249ec6"},"1513773239755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x72d170de1571f74044936fa79bee437c2555887c","AdrLib":"0x0a09d977a155f62a5d6ff7e70e8a99fc87d65092","TransactLib":"0x0f0686d00c98181866cfd27b71da96c1aa7dc6b0"},"address":"0xa2a81c26f9d8f7176915f1986c1c6bdd03bd308f"},"1513773645333":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xc500838313f86a63899357e95215ad39ebceedae","AdrLib":"0x40a6706e762ee60442e03d455672b9181e312ed5","TransactLib":"0xfd9d43eaae27ccb48004fedd4d2d586b9ea5749b"},"address":"0x729c4395574af9c4375fb23b655b7495e96bbc8d"},"1513777045350":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x408610b34699899c403f9da8cd60946275564e12","AdrLib":"0xdc753f08b6a50b3ff6963fedd0c1c674b4bb75bc","TransactLib":"0xbf436b9323f8461b019b42007535e33b08e54bf0"},"address":"0x6ac1a1cddb1445271813ce849efcf4a37de0579b"},"1513778825921":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xb00cd9bcbc26d9925f3e3944819c664f7f699d71","AdrLib":"0xc4e06c049113fefed98c1bcf26395b82d216385d","TransactLib":"0xd0faef622cf49398cdea9d0007f85ecf6968a321"},"address":"0x9178369784a6046d59b560c44875caa4d75bef04"},"1513778906317":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe546f6b67e5177f495f61c962432a7f57e03a8b1","AdrLib":"0x78520ba51f90157416ebb30d7a1bb647cd181ddd","TransactLib":"0xd505c556b8e7d261d56bd2a887ea75bb8fe9e660"},"address":"0x9c5a5f60f9309f147498a338ffe294e2051de81d"},"1513779036442":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe756f473247f7d54a736a35962d22eb276d3ee27","AdrLib":"0x8f5c4c22b5d61e32dd6b09becd59f3f5de60a01c","TransactLib":"0x055974c9295369da64b3461b5239d4295e307b36"},"address":"0x07b0cbe27eabc0abdca603d0a6fc7e461285c6bf"},"1513781372031":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x74dd2ce27fd18405728a7e67b9c1a7e34981c3c7","AdrLib":"0x1cc1ce568c1311dbd6f3728f5f6d9feb685597e6","TransactLib":"0x15e0bea40333f9251ad1c2e990d63c6c15007dbe"},"address":"0xece91fb862235d281bf9316d3a4dd31ed246391c"},"1513781520103":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x4d7c461085396cfcc8e593cfb069043372d3c144","AdrLib":"0x49dfec9fed5d843fab55d59427a2fc50122f0e9c","TransactLib":"0x3685bad9e0dd801b34b5a592be1678e1a984e3ad"},"address":"0xd4d8fe7f6fad8fcb04af6b32148b2b3e3807efb7"},"1513781725934":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x0bfd5035c246c5c1807b3fde18ede0187389709c","AdrLib":"0x05bf1bfbee660b843480d1683da373343dc3ea8d","TransactLib":"0xe7ffb66a9f459043a51773d63441b6abe90d2335"},"address":"0x055725ef62b66bffc78bb9ad3ef535406777fe58"},"1513781878089":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x9039f2ed833c7840d69619968e0cecbf6bfa917b","AdrLib":"0xdd4c1bbd9a3b3b19d3a84795e715feca7524b05d","TransactLib":"0x308aac19f2f85404332e1ba26a307d300c9de27c"},"address":"0xea6ab0a03a6be3ce96b847d496eb8560af45a162"},"1513782049907":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x30171bbc67947faa678548a7a7da624d6fe7f2da","AdrLib":"0x5254b7104bc7aa5d220bc0adfe5c48aba63e573c","TransactLib":"0x9565d721bad77b973057ff5ec68ad9e99aafd2d1"},"address":"0x7596fe02a80fef46b452cb2eef56ea142b9312ae"},"1513782106845":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe4a8d0fc6e46db86e38f6edf8e267b6ff5eb2fa5","AdrLib":"0x02bf606e33ab4ff08a27fda5dc11e565d208b850","TransactLib":"0x2fda037b1fd7c3318b51c493320865b6a70f5cc6"},"address":"0x8a21ff0a78d36fafe4e8fc2d7fd831587103539d"},"1513782148189":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x83d3206588240b7e672b71ca11f3a4e208793112","AdrLib":"0x32e6fc892d10705762a67bd91f3c5dd4dc548c8d","TransactLib":"0x58b466514d9200cee966b2b75df662f87fa096eb"},"address":"0x342dae449a93a8b7b44beb99aed500b410d26486"},"1513782179458":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe4ed6c927c026587fc9decd5be1e61bcf2998ada","AdrLib":"0x0d18ca0763e277ac10b1f54e83e5fdd738c86fb4","TransactLib":"0x98aea1f7cf8395148413a3156d0f57a29795526f"},"address":"0x626332c94a10b24bf878605efbb43ad28813c709"},"1513782236877":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xb7470a1fd1f156579491cd7322eb0879ef6aebd4","AdrLib":"0xc3d857131f73789b252c9468a90d5b6604805336","TransactLib":"0x943cfa4a8165e79a3d2970f85cca95314532bc69"},"address":"0x5b3fd83c2d3e8905749e8cf3c207a17d0e79024d"},"1513782526210":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x3764ab26d328c96e00a5a6ffe531c6988b9e37ae","AdrLib":"0x6e4d4910b580a925c0687315fb2c355a0abdc3f9","TransactLib":"0x7dc09671ee66eb667dac2052183190ff10e4c8c3"},"address":"0x7d8dfb33cd0bc94d12d5676ab808d2371bf3d197"},"1513782951368":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8eaa1c17f6d8360e65699da143dd6f8581601038","AdrLib":"0x960970dc4e2d0f7d5071e1adce541d6280a74c9a","TransactLib":"0xf3c53ed6062b1e7503fbf3d635f7c9e04068402d"},"address":"0xbb3450528ee026a2924dd5bb4cd96f87e390c469"},"1513783449271":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xa060e14806a9ac7bbe05615893b8fa3a4d6d079a","AdrLib":"0xed10b60bae1c1cd99414d5320ffb76a69dfd6d1b","TransactLib":"0x7ff701216ff981fb4f430a051fa6455f30abb1de"},"address":"0xb5c3f1536d24b9e27dba82a9ee30dcba733883bf"},"1513783569288":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xaddece91117629d34e9c50baabc4040fc265f2ef","AdrLib":"0xd63d2a0ae6913212018dc716e8869c6d97a7bf2b","TransactLib":"0x9e4073955f99708d893e8a97787f1303744af560"},"address":"0x35ac8dce8284cd96fda9b6cd1087c9883553cdba"},"1513783657231":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"},"0x93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad06516926":{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"}},"links":{"SortPLib":"0xd62185ff454e68f86018077cbcbc1d631ee7c63a","AdrLib":"0xc0716270b05d3089a151d73809e2c659154a732a","TransactLib":"0x90ef429afd389a5f495882995c2da74b3b29f84d"},"address":"0xe51045608d6493527509a10bd2e8d2e8c46506e8"}},"schemaVersion":"1.0.1","updatedAt":"2017-12-20T15:27:45.591Z"},"abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}],"contract":{"_eth":{"_requestManager":{"provider":{"provider":{"host":"http://localhost:8545","timeout":0,"_alreadyWrapped":true}},"polls":{},"timeout":null},"compile":{},"coinbase":"0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","mining":true,"hashrate":0,"syncing":false,"gasPrice":"20000000000","accounts":["0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","0xe208d1dd66f7f3da8d2247f2baa3c592fa85dd11","0x473ded0842ff40ffeafe1fa376b959c9b23c89ce","0x0e514e7d670f5ad315767e9b13774d654b92b792","0x72133c776d4e59a04a879744315c72400e72523e","0x8aab4c99ff957be2c2b312c3a290333110107862","0xe4e42e5f6c7d581b9e46e6a34c47a700c932ea7c","0x508e6d0c3e398d127916c0c3d45a3105047e1b79","0x20845b8f15ea0569f5017e411c8536a6bd1bf6a5","0x8fd36fedfd713fdf28f2082732bd1eb3592bb1a3"],"blockNumber":45,"protocolVersion":"63"},"transactionHash":null,"address":"0x8f26d735463cd7a135bbc351df9cca129e1f0fd3","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}]},"address":"0x8f26d735463cd7a135bbc351df9cca129e1f0fd3","transactionHash":null}},{"id":2,"picture":"images/house.png","address":"0x72133c776d4e59a04a879744315c72400e72523e","contract_address":"0xee1c6e9833fae82c3ae2ce9ddf2c0e5ca48c5653","device_name":"house2","device_type":"house","values":{"consumption":[["8","1513783666"],["8","1513783666"],["8","1513783666"],["0","1513783666"]],"production":[],"price":[],"wallet":["0","0","0","-160"]},"contract":{"constructor":{"contractName":"SingleHouse","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}],"bytecode":"0x606060405260038054600160a060020a0319908116909155600480549091169055341561002b57600080fd5b6040516020806110d98339810160405280805160018054600160a060020a03928316600160a060020a0319918216179091556000805433909316929091169190911790555050611059806100806000396000f3006060604052600436106100ed5763ffffffff60e060020a600035041663074b7c8081146100f25780630830cfae146101175780630ff3728214610138578063132996041461014e5780631b45f0e014610161578063235a4a4f146101a05780633acca96d146101b3578063557ed1ba146101c65780635a500ecc146101d957806370ed8f24146101ef57806382076a711461021e5780638a5cb1b6146102315780638d646b111461025c5780639888c3c21461027b578063aac12b4b1461028e578063bbe4fd50146102a1578063bfd11903146102b4578063c9746029146102d6578063ff1b636d146102e9575b600080fd5b34156100fd57600080fd5b6101056102fc565b60405190815260200160405180910390f35b341561012257600080fd5b610136600160a060020a0360043516610366565b005b341561014357600080fd5b6101056004356103a9565b341561015957600080fd5b61010561064e565b341561016c57600080fd5b610174610654565b604051938452602084019290925260408084019190915290151560608301526080909101905180910390f35b34156101ab57600080fd5b6101056106f9565b34156101be57600080fd5b610136610743565b34156101d157600080fd5b61010561089e565b34156101e457600080fd5b6101366004356108ad565b34156101fa57600080fd5b61020261094d565b604051600160a060020a03909116815260200160405180910390f35b341561022957600080fd5b61010561095c565b341561023c57600080fd5b6102446109a6565b60405191825260208201526040908101905180910390f35b341561026757600080fd5b610136600160a060020a03600435166109b0565b341561028657600080fd5b6101056109f4565b341561029957600080fd5b6101366109fe565b34156102ac57600080fd5b610105610b91565b34156102bf57600080fd5b610136600435600160a060020a0360243516610b95565b34156102e157600080fd5b610136610c01565b34156102f457600080fd5b610202610fa1565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ed576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600080600060046103b86106f9565b8114156100ed5760026000908152600660205233935073__AdrLib________________________________90632c2fc20e9060008051602061100e8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051905080610505575060016000908152600660205273__AdrLib________________________________90632c2fc20e90600080516020610fee8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b15156104e957600080fd5b6102c65a03f415156104fa57600080fd5b505050604051805190505b151561051057600080fd5b60075473__TransactLib___________________________63bc2e368c90918760006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561057257600080fd5b6102c65a03f4151561058357600080fd5b50505060405180519050915060075473__TransactLib___________________________639e5fd0a99091843060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561060357600080fd5b6102c65a03f4151561061457600080fd5b50505060405180516007555050600160a060020a03919091166000908152600a602052604090205460058054918302909103905592915050565b60055490565b600754600080803373__SortPLib______________________________63c6742457600a83856040516060015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160606040518083038186803b15156106c357600080fd5b6102c65a03f415156106d457600080fd5b5050506040518051906020018051906020018051979892979196509094509092505050565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b600080600060056107526106f9565b8114156100ed57600354600160a060020a0316151561077057600080fd5b6000600754111561089857600354600754600160a060020a0390911690636e2855449060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b15156107d157600080fd5b6102c65a03f115156107e257600080fd5b5050506040518051906020018051600754929650935073__TransactLib___________________________91639e5fd0a99150863060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561086a57600080fd5b6102c65a03f4151561087b57600080fd5b505050604051805160075550600580548584029081900390915592505b50505050565b60006108a86106f9565b905090565b60016108b76106f9565b8114156100ed5760015433600160a060020a03908116911614156100ed5760078290554260088190556001547f93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad0651692691600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6007546008549091565b60005433600160a060020a03908116911614156100ed576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103a6565b60006108a861095c565b6000806002610a0b6106f9565b8114156100ed5773__SortPLib______________________________6332a76998600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610a6257600080fd5b6102c65a03f41515610a7357600080fd5b5050600354600160a060020a0316159050610b8c5760035460009350839250600160a060020a03166398d5fdca83604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ad557600080fd5b6102c65a03f11515610ae657600080fd5b5050506040518051906020018051600354929550935073__SortPLib______________________________9163c3af64529150600a90600160a060020a0316868660405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610b7757600080fd5b6102c65a03f41515610b8857600080fd5b5050505b505050565b4290565b60005433600160a060020a03908116911614156100ed576000828152600660205260409020805460018101610bca8382610fb0565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610949565b60008060006002610c106106f9565b8114156100ed576000935083925073__SortPLib______________________________63e61f7934600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610c6e57600080fd5b6102c65a03f41515610c7f57600080fd5b505050600091505b6002600052600660205260008051602061100e83398151915254821015610e0d576002600052600660205260008051602061100e833981519152805483908110610ccd57fe5b6000918252602082200154600160a060020a031690632fbc0bf190604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610d1c57600080fd5b6102c65a03f11515610d2d57600080fd5b50505060405180519060200180516002600052600660205260008051602061100e833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610d8757fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610dee57600080fd5b6102c65a03f41515610dff57600080fd5b505060019092019150610c87565b600091505b60016000526006602052600080516020610fee83398151915254821015610f985760016000526006602052600080516020610fee833981519152805483908110610e5857fe5b6000918252602082200154600160a060020a0316906398d5fdca90604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ea757600080fd5b6102c65a03f11515610eb857600080fd5b505050604051805190602001805160016000526006602052600080516020610fee833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610f1257fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610f7957600080fd5b6102c65a03f41515610f8a57600080fd5b505060019092019150610e12565b42600955610898565b600054600160a060020a031681565b815481835581811511610b8c57600083815260209020610b8c91810190830161036391905b80821115610fe95760008155600101610fd5565b509056003e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a318819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820c6eed5ade0a5b754f5c5f186d740af4468adfb1dd022bd7214c5ecb1037c9f190029","deployedBytecode":"0x6060604052600436106100ed5763ffffffff60e060020a600035041663074b7c8081146100f25780630830cfae146101175780630ff3728214610138578063132996041461014e5780631b45f0e014610161578063235a4a4f146101a05780633acca96d146101b3578063557ed1ba146101c65780635a500ecc146101d957806370ed8f24146101ef57806382076a711461021e5780638a5cb1b6146102315780638d646b111461025c5780639888c3c21461027b578063aac12b4b1461028e578063bbe4fd50146102a1578063bfd11903146102b4578063c9746029146102d6578063ff1b636d146102e9575b600080fd5b34156100fd57600080fd5b6101056102fc565b60405190815260200160405180910390f35b341561012257600080fd5b610136600160a060020a0360043516610366565b005b341561014357600080fd5b6101056004356103a9565b341561015957600080fd5b61010561064e565b341561016c57600080fd5b610174610654565b604051938452602084019290925260408084019190915290151560608301526080909101905180910390f35b34156101ab57600080fd5b6101056106f9565b34156101be57600080fd5b610136610743565b34156101d157600080fd5b61010561089e565b34156101e457600080fd5b6101366004356108ad565b34156101fa57600080fd5b61020261094d565b604051600160a060020a03909116815260200160405180910390f35b341561022957600080fd5b61010561095c565b341561023c57600080fd5b6102446109a6565b60405191825260208201526040908101905180910390f35b341561026757600080fd5b610136600160a060020a03600435166109b0565b341561028657600080fd5b6101056109f4565b341561029957600080fd5b6101366109fe565b34156102ac57600080fd5b610105610b91565b34156102bf57600080fd5b610136600435600160a060020a0360243516610b95565b34156102e157600080fd5b610136610c01565b34156102f457600080fd5b610202610fa1565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100ed576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600080600060046103b86106f9565b8114156100ed5760026000908152600660205233935073__AdrLib________________________________90632c2fc20e9060008051602061100e8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b151561044557600080fd5b6102c65a03f4151561045657600080fd5b5050506040518051905080610505575060016000908152600660205273__AdrLib________________________________90632c2fc20e90600080516020610fee8339815191529086906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b15156104e957600080fd5b6102c65a03f415156104fa57600080fd5b505050604051805190505b151561051057600080fd5b60075473__TransactLib___________________________63bc2e368c90918760006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b151561057257600080fd5b6102c65a03f4151561058357600080fd5b50505060405180519050915060075473__TransactLib___________________________639e5fd0a99091843060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561060357600080fd5b6102c65a03f4151561061457600080fd5b50505060405180516007555050600160a060020a03919091166000908152600a602052604090205460058054918302909103905592915050565b60055490565b600754600080803373__SortPLib______________________________63c6742457600a83856040516060015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160606040518083038186803b15156106c357600080fd5b6102c65a03f415156106d457600080fd5b5050506040518051906020018051906020018051979892979196509094509092505050565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b600080600060056107526106f9565b8114156100ed57600354600160a060020a0316151561077057600080fd5b6000600754111561089857600354600754600160a060020a0390911690636e2855449060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b15156107d157600080fd5b6102c65a03f115156107e257600080fd5b5050506040518051906020018051600754929650935073__TransactLib___________________________91639e5fd0a99150863060006040516020015260405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a0316604482015260640160206040518083038186803b151561086a57600080fd5b6102c65a03f4151561087b57600080fd5b505050604051805160075550600580548584029081900390915592505b50505050565b60006108a86106f9565b905090565b60016108b76106f9565b8114156100ed5760015433600160a060020a03908116911614156100ed5760078290554260088190556001547f93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad0651692691600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561034657600080fd5b6007546008549091565b60005433600160a060020a03908116911614156100ed576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103a6565b60006108a861095c565b6000806002610a0b6106f9565b8114156100ed5773__SortPLib______________________________6332a76998600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610a6257600080fd5b6102c65a03f41515610a7357600080fd5b5050600354600160a060020a0316159050610b8c5760035460009350839250600160a060020a03166398d5fdca83604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ad557600080fd5b6102c65a03f11515610ae657600080fd5b5050506040518051906020018051600354929550935073__SortPLib______________________________9163c3af64529150600a90600160a060020a0316868660405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610b7757600080fd5b6102c65a03f41515610b8857600080fd5b5050505b505050565b4290565b60005433600160a060020a03908116911614156100ed576000828152600660205260409020805460018101610bca8382610fb0565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610949565b60008060006002610c106106f9565b8114156100ed576000935083925073__SortPLib______________________________63e61f7934600a60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b1515610c6e57600080fd5b6102c65a03f41515610c7f57600080fd5b505050600091505b6002600052600660205260008051602061100e83398151915254821015610e0d576002600052600660205260008051602061100e833981519152805483908110610ccd57fe5b6000918252602082200154600160a060020a031690632fbc0bf190604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610d1c57600080fd5b6102c65a03f11515610d2d57600080fd5b50505060405180519060200180516002600052600660205260008051602061100e833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610d8757fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610dee57600080fd5b6102c65a03f41515610dff57600080fd5b505060019092019150610c87565b600091505b60016000526006602052600080516020610fee83398151915254821015610f985760016000526006602052600080516020610fee833981519152805483908110610e5857fe5b6000918252602082200154600160a060020a0316906398d5fdca90604051604001526040518163ffffffff1660e060020a0281526004016040805180830381600087803b1515610ea757600080fd5b6102c65a03f11515610eb857600080fd5b505050604051805190602001805160016000526006602052600080516020610fee833981519152805493975090955073__SortPLib______________________________9263c3af64529250600a919086908110610f1257fe5b600091825260209091200154600160a060020a0316878760405160e060020a63ffffffff87160281526004810194909452600160a060020a03909216602484015260448301521515606482015260840160006040518083038186803b1515610f7957600080fd5b6102c65a03f41515610f8a57600080fd5b505060019092019150610e12565b42600955610898565b600054600160a060020a031681565b815481835581811511610b8c57600083815260209020610b8c91810190830161036391905b80821115610fe95760008155600101610fd5565b509056003e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a318819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820c6eed5ade0a5b754f5c5f186d740af4468adfb1dd022bd7214c5ecb1037c9f190029","sourceMap":"222:3762:13:-;;;594:18:3;;;-1:-1:-1;;;;;;594:18:3;;;;;;616:25;;;;;;;;840:57:13;;;;;;;;;;;;;;;;;;;;;;1657:5:3;:11;;-1:-1:-1;;;;;1657:11:3;;;-1:-1:-1;;;;;;1657:11:3;;;;;;;:5;1674:18;;1682:10;1674:18;;;;;;;;;;;;;-1:-1:-1;;222:3762:13;;;;;;","deployedSourceMap":"222:3762:13:-;;;;;;;;-1:-1:-1;;;222:3762:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2113:90:3;;;;;;;;;;;;;;;;;;;;;;;;;;;1769:72;;;;;;;;;;;;-1:-1:-1;;;;;1769:72:3;;;;;2565:620:13;;;;;;;;;;;;;;2316:59:3;;;;;;;;;;;;2284:209:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2017:92:3;;;;;;;;;;;;3260:447:13;;;;;;;;;;;;3773:68;;;;;;;;;;;;971:179;;;;;;;;;;;;;;2389:74:3;;;;;;;;;;;;;;;-1:-1:-1;;;;;2389:74:3;;;;;;;;;;;;;;;2207:105;;;;;;;;;;;;1154:140:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1701:64:3;;;;;;;;;;;;-1:-1:-1;;;;;1701:64:3;;;3845:79:13;;;;;;;;;;;;1960:320;;;;;;;;;;;;3928:54;;;;;;;;;;;;1845:98:3;;;;;;;;;;;;;;-1:-1:-1;;;;;1845:98:3;;;1387:509:13;;;;;;;;;;;;202:20:3;;;;;;;;;;;;2113:90;2173:11;;2147:4;;-1:-1:-1;;;;;2173:11:3;2166:30;2147:4;2166:32;;;;;;;-1:-1:-1;;;2166:32:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2113:90:3;;:::o;1769:72::-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1819:11;:17;;-1:-1:-1;;1819:17:3;-1:-1:-1;;;;;1819:17:3;;;;;866:70;1769:72;:::o;2565:620:13:-;2616:4;2628:17;2664:15;2604:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;2709:1:13;2693:18;;;;:15;:18;;2648:10;;-1:-1:-1;2693:31:13;;;;-1:-1:-1;;;;;;;;;;;2693:18:13;2648:10;;2693:18;:42;;;;;;;;;-1:-1:-1;;;2693:42:13;;;;;;;;;;-1:-1:-1;;;;;2693:42:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:88;;;-1:-1:-1;2755:1:13;2739:18;;;;:15;:18;;:31;;;;-1:-1:-1;;;;;;;;;;;2739:18:13;2771:9;;2739:18;:42;;;;;;;;;-1:-1:-1;;;2739:42:13;;;;;;;;;;-1:-1:-1;;;;;2739:42:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2693:88;2685:97;;;;;;;;2801:11;;:19;;;;2821:10;2801:31;;;;;;;;;;;-1:-1:-1;;;2801:31:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2788:44;;2852:11;;:31;;;;2884:10;2904:4;2852:58;;;;;;;;;;;-1:-1:-1;;;2852:58:13;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2852:58:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2838:11;:72;-1:-1:-1;;;;;;;3117:33:13;;;;:22;:33;;;:13;:33;;;;;:37;3092:6;:63;;3106:48;;;3092:63;;;;;3117:33;3106:48;-1:-1:-1;;2565:620:13:o;2316:59:3:-;2364:6;;2316:59;:::o;2284:209:13:-;2420:11;;2327;;;2395:10;2458:25;;:13;2395:10;2327:11;2458:30;;;;;;;;;;-1:-1:-1;;;2458:30:13;;;;;;;;;;-1:-1:-1;;;;;2458:30:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2284:209;;2437:51;;;;-1:-1:-1;2458:30:13;;-1:-1:-1;2284:209:13;;-1:-1:-1;;;2284:209:13:o;2017:92:3:-;2078:11;;2052:4;;-1:-1:-1;;;;;2078:11:3;2071:31;2052:4;2071:33;;;;;;;-1:-1:-1;;;2071:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;3260:447:13;3340:21;3367:18;3391:12;3286:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;3417:4:13;;-1:-1:-1;;;;;3417:4:13;:11;;3409:20;;;;;;3453:1;3439:11;;:15;3435:268;;;3500:4;;3514:11;;-1:-1:-1;;;;;3500:4:13;;;;3494:19;;3500:4;3494:32;;;;;;;;;;-1:-1:-1;;;3494:32:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3548:11;;3464:62;;-1:-1:-1;3494:32:13;-1:-1:-1;3548:31:13;;;;-1:-1:-1;3464:62:13;3606:4;3548:64;;;;;;;;;;;-1:-1:-1;;;3548:64:13;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3548:64:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3534:11;:78;-1:-1:-1;3668:6:13;:28;;3636:24;;;3668:28;;;;;;;3636:24;-1:-1:-1;3435:268:13;3260:447;;;;:::o;3773:68::-;3801:4;3820:16;:14;:16::i;:::-;3813:23;;3773:68;:::o;971:179::-;1021:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;987:5;;973:10;-1:-1:-1;;;;;973:19:3;;;987:5;;973:19;969:70;;;1043:11:13;:20;;;1086:3;1069:14;:20;;;1110:5;;1095:50;;-1:-1:-1;;;;;1110:5:13;;;;1043:20;;1095:50;;-1:-1:-1;;;;;1095:50:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;969:70:3;971:179:13;;:::o;2389:74:3:-;2447:11;;-1:-1:-1;;;;;2447:11:3;;2389:74::o;2207:105::-;2273:11;;2247:4;;-1:-1:-1;;;;;2273:11:3;2266:39;2247:4;2266:41;;;;;;;-1:-1:-1;;;2266:41:3;;;;;;;;;;;;;;;;;;;;;;;;;;1154:140:13;1247:11;;1275:14;;1247:11;;1154:140::o;1701:64:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1750:4;:10;;-1:-1:-1;;1750:10:3;-1:-1:-1;;;;;1750:10:3;;;;;866:70;;3845:79:13;3879:4;3898:21;:19;:21::i;1960:320::-;2148:7;2167;1987:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1996:26:13;;:13;:28;;;;;-1:-1:-1;;;1996:28:13;;;;;;;;;;;;-1:-1:-1;1996:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2127:4:13;;-1:-1:-1;;;;;2127:4:13;:11;;-1:-1:-1;2123:153:13;;2206:4;;2158:1;;-1:-1:-1;2158:1:13;;-1:-1:-1;;;;;;2206:4:13;2200:20;2158:1;2200:22;;;;;;;-1:-1:-1;;;2200:22:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2258:4;;2190:32;;-1:-1:-1;2200:22:13;-1:-1:-1;2230:27:13;;;;-1:-1:-1;2230:13:13;;-1:-1:-1;;;;;2258:4:13;2190:32;2200:22;2230:39;;;;;-1:-1:-1;;;2230:39:13;;;;;;;;;;-1:-1:-1;;;;;2230:39:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2230:39:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2123:153;1960:320;;;:::o;3928:54::-;3974:3;3928:54;:::o;1845:98:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1910:18;;;;:15;:18;;;;;:28;;;;;;:18;:28;;:::i;:::-;-1:-1:-1;1910:28:3;;;;;;;;;;;-1:-1:-1;;1910:28:3;-1:-1:-1;;;;;1910:28:3;;;;;866:70;;1387:509:13;1425:7;1442;1690:6;1416:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;1435:1:13;;-1:-1:-1;1435:1:13;;-1:-1:-1;1463:26:13;;:13;:28;;;;;-1:-1:-1;;;1463:28:13;;;;;;;;;;;;-1:-1:-1;1463:28:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1506:1;1502:5;;1497:183;1529:1;1513:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1513:25:13;1509:29;;1497:183;;;1588:1;1572:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1572:21:13;;1591:1;;1572:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;1572:21:13;;1563:44;;:46;;;;;;;-1:-1:-1;;;1563:46:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1661:1;1645:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1645:21:13;;1553:56;;-1:-1:-1;1563:46:13;;-1:-1:-1;1617:27:13;;;;-1:-1:-1;1617:13:13;;1645:18;1664:1;;1645:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1645:21:13;1667:2;1670;1617:56;;;;;-1:-1:-1;;;1617:56:13;;;;;;;;;;-1:-1:-1;;;;;1617:56:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1617:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1540:3:13;;;;;-1:-1:-1;1497:183:13;;;1699:1;1690:10;;1685:179;1722:1;1706:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1706:25:13;1702:29;;1685:179;;;1776:1;1760:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1760:21:13;;1779:1;;1760:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;1760:21:13;;1756:35;;:37;;;;;;;-1:-1:-1;;;1756:37:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1845:1;1829:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;1829:21:13;;1746:47;;-1:-1:-1;1756:37:13;;-1:-1:-1;1801:27:13;;;;-1:-1:-1;1801:13:13;;1829:18;1848:1;;1829:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1829:21:13;1851:2;1854;1801:56;;;;;-1:-1:-1;;;1801:56:13;;;;;;;;;;-1:-1:-1;;;;;1801:56:13;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1801:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1733:3:13;;;;;-1:-1:-1;1685:179:13;;;1888:3;1869:16;:22;1524:82:3;;202:20;;;-1:-1:-1;;;;;202:20:3;;:::o;222:3762:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","source":"pragma solidity ^0.4.4;\n\nimport \"./SortPLib.sol\";\nimport \"./AdrLib.sol\";\nimport \"./TransactLib.sol\";\nimport \"./IPV.sol\";\nimport \"./IGrid.sol\";\nimport \"./IBattery.sol\";\nimport \"./IHouse.sol\";\nimport \"./GeneralDevice.sol\";\n\ncontract SingleHouse is GeneralDevice, IHouse {\n // one contract is associated to one particular House in the network.\n\n using AdrLib for address[];\n using TransactLib for uint;\n using SortPLib for *;\n\n SortPLib.PriceMap draftPriceMap;\n\n// ======= Modifiers =======\n\n\n// ======= Event Logs =======\n\n event ConsumptionLog(address adr, uint consum, uint consumAt);\n //event ConfigurationLog(string confMod, uint statusAt);\n event EnergyTransferLog(address adrFrom, address adrTo, uint eVol, uint transferAt);\n\n// ======= Basic Functionalities =======\n\n // --- 0. Upon contract creation and configuration ---\n\n function SingleHouse (address adr) GeneralDevice(adr) { }\n\n // --- 1. set and get house consumption every 15 min (or less) ---\n\n function setConsumption(uint consum) public timed(1) ownerOnly { //\n consumption = consum;\n consumStatusAt = now;\n ConsumptionLog(owner, consumption, consumStatusAt);\n }\n\n function getConsumption() external view returns (uint consum, uint consumAt) {\n consum = consumption;\n consumAt = consumStatusAt;\n }\n\n // --- 2. ask for connected PV / batteries / grid for price of electricity supply ---\n\n function askForPrice() timed(2) {\n uint tP = 0;\n bool tF = false;\n draftPriceMap.initPrsTable();\n for (i = 0; i < connectedDevice[2].length; i++) {\n (tP,tF) = IBattery(connectedDevice[2][i]).getSalePrice();\n draftPriceMap.addToPrsTable(connectedDevice[2][i],tP,tF);\n }\n for (uint i = 0; i < connectedDevice[1].length; i++) {\n (tP,tF) = IPV(connectedDevice[1][i]).getPrice();\n draftPriceMap.addToPrsTable(connectedDevice[1][i],tP,tF);\n }\n lastPriceQueryAt = now;\n }\n\n // --- 3. House sorts all the information internally ---\n\n function sortPrice() timed(2) {\n draftPriceMap.sortPrsTable();\n // if the grid is connected -> add the price from the grid to the end of the sorted list\n if (grid != 0x0) {\n uint tP = 0;\n bool tF = false;\n (tP,tF) = IGrid(grid).getPrice();\n draftPriceMap.addToPrsTable(grid,tP,tF);\n }\n }\n\n function getSortedPrice() external returns(uint consum, uint rank, uint tot, bool updated) {\n address adr = msg.sender;\n consum = consumption;\n (rank,tot,updated) = draftPriceMap.getPrsTable(adr);\n }\n\n // --- 4. PV/Battery ask House to confirm energy transaction ---\n\n function goNoGo(uint giveoutvol) timed(4) returns (uint) {\n address adrDevice = msg.sender;\n uint takeoutvol;\n require(connectedDevice[2].assertInside(adrDevice) || connectedDevice[1].assertInside(adrDevice));\n takeoutvol = consumption.findMin(giveoutvol);\n consumption = consumption.clearEnergyTransfer(takeoutvol, address(this));\n //EnergyTransferLog(adrDevice,address(this), takeoutvol, consumption);\n //wallet = wallet.clearMoneyTransfer(-int(takeoutvol*priceQueryInfo[adrDevice].prs), adrDevice);\n wallet -= int(takeoutvol*draftPriceMap.prsTable[adrDevice].prs);\n return (takeoutvol);\n }\n\n // --- 5. If house still has energy demand, ask grid for energy ---\n\n function buyExtra() timed(5) {\n // when houses still have extra needs...\n uint whatDeviceAccept;\n uint receivedMoney;\n uint unitPrs;\n require(grid != 0x0);\n if (consumption > 0) {\n (whatDeviceAccept, unitPrs) = IGrid(grid).goExtra(consumption);\n consumption = consumption.clearEnergyTransfer(whatDeviceAccept, address(this));\n receivedMoney = whatDeviceAccept*unitPrs;\n wallet -= int(receivedMoney);\n }\n }\n\n\n // ------------Functions used in testing------------------\n function getTime() returns (uint) {\n return getTimerStatus();\n }\n\n function getTimeToNext() returns (uint) {\n return getTimeToNextStatus();\n }\n\n function getNow() returns (uint) {\n return now;\n }\n}\n","sourcePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SingleHouse.sol","ast":{"attributes":{"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SingleHouse.sol","exportedSymbols":{"SingleHouse":[2578]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".4"]},"id":2153,"name":"PragmaDirective","src":"0:23:13"},{"attributes":{"SourceUnit":3630,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SortPLib.sol","file":"./SortPLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2154,"name":"ImportDirective","src":"25:24:13"},{"attributes":{"SourceUnit":38,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/AdrLib.sol","file":"./AdrLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2155,"name":"ImportDirective","src":"50:22:13"},{"attributes":{"SourceUnit":4165,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/TransactLib.sol","file":"./TransactLib.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2156,"name":"ImportDirective","src":"73:27:13"},{"attributes":{"SourceUnit":1286,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IPV.sol","file":"./IPV.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2157,"name":"ImportDirective","src":"101:19:13"},{"attributes":{"SourceUnit":1228,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IGrid.sol","file":"./IGrid.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2158,"name":"ImportDirective","src":"121:21:13"},{"attributes":{"SourceUnit":1180,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IBattery.sol","file":"./IBattery.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2159,"name":"ImportDirective","src":"143:24:13"},{"attributes":{"SourceUnit":1261,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IHouse.sol","file":"./IHouse.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2160,"name":"ImportDirective","src":"168:22:13"},{"attributes":{"SourceUnit":773,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/GeneralDevice.sol","file":"./GeneralDevice.sol","scope":2579,"symbolAliases":[null],"unitAlias":""},"id":2161,"name":"ImportDirective","src":"191:29:13"},{"attributes":{"contractDependencies":[772,1260],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[2578,1260,772],"name":"SingleHouse","scope":2579},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"GeneralDevice","referencedDeclaration":772,"type":"contract GeneralDevice"},"id":2162,"name":"UserDefinedTypeName","src":"246:13:13"}],"id":2163,"name":"InheritanceSpecifier","src":"246:13:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"IHouse","referencedDeclaration":1260,"type":"contract IHouse"},"id":2164,"name":"UserDefinedTypeName","src":"261:6:13"}],"id":2165,"name":"InheritanceSpecifier","src":"261:6:13"},{"children":[{"attributes":{"contractScope":null,"name":"AdrLib","referencedDeclaration":37,"type":"library AdrLib"},"id":2166,"name":"UserDefinedTypeName","src":"351:6:13"},{"attributes":{"length":null,"type":"address[] storage pointer"},"children":[{"attributes":{"name":"address","type":"address"},"id":2167,"name":"ElementaryTypeName","src":"362:7:13"}],"id":2168,"name":"ArrayTypeName","src":"362:9:13"}],"id":2169,"name":"UsingForDirective","src":"345:27:13"},{"children":[{"attributes":{"contractScope":null,"name":"TransactLib","referencedDeclaration":4164,"type":"library TransactLib"},"id":2170,"name":"UserDefinedTypeName","src":"381:11:13"},{"attributes":{"name":"uint","type":"uint256"},"id":2171,"name":"ElementaryTypeName","src":"397:4:13"}],"id":2172,"name":"UsingForDirective","src":"375:27:13"},{"attributes":{"typeName":null},"children":[{"attributes":{"contractScope":null,"name":"SortPLib","referencedDeclaration":3629,"type":"library SortPLib"},"id":2173,"name":"UserDefinedTypeName","src":"411:8:13"}],"id":2174,"name":"UsingForDirective","src":"405:21:13"},{"attributes":{"constant":false,"name":"draftPriceMap","scope":2578,"stateVariable":true,"storageLocation":"default","type":"struct SortPLib.PriceMap storage ref","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"SortPLib.PriceMap","referencedDeclaration":3279,"type":"struct SortPLib.PriceMap storage pointer"},"id":2175,"name":"UserDefinedTypeName","src":"430:17:13"}],"id":2176,"name":"VariableDeclaration","src":"430:31:13"},{"attributes":{"anonymous":false,"name":"ConsumptionLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adr","scope":2184,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2177,"name":"ElementaryTypeName","src":"549:7:13"}],"id":2178,"name":"VariableDeclaration","src":"549:11:13"},{"attributes":{"constant":false,"indexed":false,"name":"consum","scope":2184,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2179,"name":"ElementaryTypeName","src":"562:4:13"}],"id":2180,"name":"VariableDeclaration","src":"562:11:13"},{"attributes":{"constant":false,"indexed":false,"name":"consumAt","scope":2184,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2181,"name":"ElementaryTypeName","src":"575:4:13"}],"id":2182,"name":"VariableDeclaration","src":"575:13:13"}],"id":2183,"name":"ParameterList","src":"548:41:13"}],"id":2184,"name":"EventDefinition","src":"528:62:13"},{"attributes":{"anonymous":false,"name":"EnergyTransferLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adrFrom","scope":2194,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2185,"name":"ElementaryTypeName","src":"676:7:13"}],"id":2186,"name":"VariableDeclaration","src":"676:15:13"},{"attributes":{"constant":false,"indexed":false,"name":"adrTo","scope":2194,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2187,"name":"ElementaryTypeName","src":"693:7:13"}],"id":2188,"name":"VariableDeclaration","src":"693:13:13"},{"attributes":{"constant":false,"indexed":false,"name":"eVol","scope":2194,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2189,"name":"ElementaryTypeName","src":"708:4:13"}],"id":2190,"name":"VariableDeclaration","src":"708:9:13"},{"attributes":{"constant":false,"indexed":false,"name":"transferAt","scope":2194,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2191,"name":"ElementaryTypeName","src":"719:4:13"}],"id":2192,"name":"VariableDeclaration","src":"719:15:13"}],"id":2193,"name":"ParameterList","src":"675:60:13"}],"id":2194,"name":"EventDefinition","src":"652:84:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"name":"SingleHouse","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"adr","scope":2203,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2195,"name":"ElementaryTypeName","src":"862:7:13"}],"id":2196,"name":"VariableDeclaration","src":"862:11:13"}],"id":2197,"name":"ParameterList","src":"861:13:13"},{"attributes":{"parameters":[null]},"children":[],"id":2201,"name":"ParameterList","src":"894:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":772,"type":"type(contract GeneralDevice)","value":"GeneralDevice"},"id":2198,"name":"Identifier","src":"875:13:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2196,"type":"address","value":"adr"},"id":2199,"name":"Identifier","src":"889:3:13"}],"id":2200,"name":"ModifierInvocation","src":"875:18:13"},{"attributes":{"statements":[null]},"children":[],"id":2202,"name":"Block","src":"894:3:13"}],"id":2203,"name":"FunctionDefinition","src":"840:57:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setConsumption","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"consum","scope":2228,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2204,"name":"ElementaryTypeName","src":"995:4:13"}],"id":2205,"name":"VariableDeclaration","src":"995:11:13"}],"id":2206,"name":"ParameterList","src":"994:13:13"},{"attributes":{"parameters":[null]},"children":[],"id":2212,"name":"ParameterList","src":"1034:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2207,"name":"Identifier","src":"1015:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2208,"name":"Literal","src":"1021:1:13"}],"id":2209,"name":"ModifierInvocation","src":"1015:8:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"modifier ()","value":"ownerOnly"},"id":2210,"name":"Identifier","src":"1024:9:13"}],"id":2211,"name":"ModifierInvocation","src":"1024:9:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2213,"name":"Identifier","src":"1043:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2205,"type":"uint256","value":"consum"},"id":2214,"name":"Identifier","src":"1057:6:13"}],"id":2215,"name":"Assignment","src":"1043:20:13"}],"id":2216,"name":"ExpressionStatement","src":"1043:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2217,"name":"Identifier","src":"1069:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2218,"name":"Identifier","src":"1086:3:13"}],"id":2219,"name":"Assignment","src":"1069:20:13"}],"id":2220,"name":"ExpressionStatement","src":"1069:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2184,"type":"function (address,uint256,uint256)","value":"ConsumptionLog"},"id":2221,"name":"Identifier","src":"1095:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":548,"type":"address","value":"owner"},"id":2222,"name":"Identifier","src":"1110:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2223,"name":"Identifier","src":"1117:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2224,"name":"Identifier","src":"1130:14:13"}],"id":2225,"name":"FunctionCall","src":"1095:50:13"}],"id":2226,"name":"ExpressionStatement","src":"1095:50:13"}],"id":2227,"name":"Block","src":"1034:116:13"}],"id":2228,"name":"FunctionDefinition","src":"971:179:13"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getConsumption","payable":false,"scope":2578,"stateMutability":"view","superFunction":null,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2229,"name":"ParameterList","src":"1177:2:13"},{"children":[{"attributes":{"constant":false,"name":"consum","scope":2244,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2230,"name":"ElementaryTypeName","src":"1204:4:13"}],"id":2231,"name":"VariableDeclaration","src":"1204:11:13"},{"attributes":{"constant":false,"name":"consumAt","scope":2244,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2232,"name":"ElementaryTypeName","src":"1217:4:13"}],"id":2233,"name":"VariableDeclaration","src":"1217:13:13"}],"id":2234,"name":"ParameterList","src":"1203:28:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2231,"type":"uint256","value":"consum"},"id":2235,"name":"Identifier","src":"1238:6:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2236,"name":"Identifier","src":"1247:11:13"}],"id":2237,"name":"Assignment","src":"1238:20:13"}],"id":2238,"name":"ExpressionStatement","src":"1238:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2233,"type":"uint256","value":"consumAt"},"id":2239,"name":"Identifier","src":"1264:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1236,"type":"uint256","value":"consumStatusAt"},"id":2240,"name":"Identifier","src":"1275:14:13"}],"id":2241,"name":"Assignment","src":"1264:25:13"}],"id":2242,"name":"ExpressionStatement","src":"1264:25:13"}],"id":2243,"name":"Block","src":"1232:62:13"}],"id":2244,"name":"FunctionDefinition","src":"1154:140:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"askForPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2245,"name":"ParameterList","src":"1407:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2249,"name":"ParameterList","src":"1419:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2246,"name":"Identifier","src":"1410:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2247,"name":"Literal","src":"1416:1:13"}],"id":2248,"name":"ModifierInvocation","src":"1410:8:13"},{"children":[{"attributes":{"assignments":[2251]},"children":[{"attributes":{"constant":false,"name":"tP","scope":2350,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2250,"name":"ElementaryTypeName","src":"1425:4:13"}],"id":2251,"name":"VariableDeclaration","src":"1425:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2252,"name":"Literal","src":"1435:1:13"}],"id":2253,"name":"VariableDeclarationStatement","src":"1425:11:13"},{"attributes":{"assignments":[2255]},"children":[{"attributes":{"constant":false,"name":"tF","scope":2350,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2254,"name":"ElementaryTypeName","src":"1442:4:13"}],"id":2255,"name":"VariableDeclaration","src":"1442:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2256,"name":"Literal","src":"1452:5:13"}],"id":2257,"name":"VariableDeclarationStatement","src":"1442:15:13"},{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"initPrsTable","referencedDeclaration":3297,"type":"function (struct SortPLib.PriceMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2258,"name":"Identifier","src":"1463:13:13"}],"id":2260,"name":"MemberAccess","src":"1463:26:13"}],"id":2261,"name":"FunctionCall","src":"1463:28:13"}],"id":2262,"name":"ExpressionStatement","src":"1463:28:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2263,"name":"Identifier","src":"1502:1:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2264,"name":"Literal","src":"1506:1:13"}],"id":2265,"name":"Assignment","src":"1502:5:13"}],"id":2266,"name":"ExpressionStatement","src":"1502:5:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2267,"name":"Identifier","src":"1509:1:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2268,"name":"Identifier","src":"1513:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2269,"name":"Literal","src":"1529:1:13"}],"id":2270,"name":"IndexAccess","src":"1513:18:13"}],"id":2271,"name":"MemberAccess","src":"1513:25:13"}],"id":2272,"name":"BinaryOperation","src":"1509:29:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2273,"name":"Identifier","src":"1540:1:13"}],"id":2274,"name":"UnaryOperation","src":"1540:3:13"}],"id":2275,"name":"ExpressionStatement","src":"1540:3:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2276,"name":"Identifier","src":"1554:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2277,"name":"Identifier","src":"1557:2:13"}],"id":2278,"name":"TupleExpression","src":"1553:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getSalePrice","referencedDeclaration":1145,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IBattery","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1179,"type":"type(contract IBattery)","value":"IBattery"},"id":2279,"name":"Identifier","src":"1563:8:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2280,"name":"Identifier","src":"1572:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2281,"name":"Literal","src":"1588:1:13"}],"id":2282,"name":"IndexAccess","src":"1572:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2283,"name":"Identifier","src":"1591:1:13"}],"id":2284,"name":"IndexAccess","src":"1572:21:13"}],"id":2285,"name":"FunctionCall","src":"1563:31:13"}],"id":2286,"name":"MemberAccess","src":"1563:44:13"}],"id":2287,"name":"FunctionCall","src":"1563:46:13"}],"id":2288,"name":"Assignment","src":"1553:56:13"}],"id":2289,"name":"ExpressionStatement","src":"1553:56:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2290,"name":"Identifier","src":"1617:13:13"}],"id":2292,"name":"MemberAccess","src":"1617:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2293,"name":"Identifier","src":"1645:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2294,"name":"Literal","src":"1661:1:13"}],"id":2295,"name":"IndexAccess","src":"1645:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2296,"name":"Identifier","src":"1664:1:13"}],"id":2297,"name":"IndexAccess","src":"1645:21:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2298,"name":"Identifier","src":"1667:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2299,"name":"Identifier","src":"1670:2:13"}],"id":2300,"name":"FunctionCall","src":"1617:56:13"}],"id":2301,"name":"ExpressionStatement","src":"1617:56:13"}],"id":2302,"name":"Block","src":"1545:135:13"}],"id":2303,"name":"ForStatement","src":"1497:183:13"},{"children":[{"attributes":{"assignments":[2305]},"children":[{"attributes":{"constant":false,"name":"i","scope":2350,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2304,"name":"ElementaryTypeName","src":"1690:4:13"}],"id":2305,"name":"VariableDeclaration","src":"1690:6:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2306,"name":"Literal","src":"1699:1:13"}],"id":2307,"name":"VariableDeclarationStatement","src":"1690:10:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2308,"name":"Identifier","src":"1702:1:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2309,"name":"Identifier","src":"1706:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2310,"name":"Literal","src":"1722:1:13"}],"id":2311,"name":"IndexAccess","src":"1706:18:13"}],"id":2312,"name":"MemberAccess","src":"1706:25:13"}],"id":2313,"name":"BinaryOperation","src":"1702:29:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2314,"name":"Identifier","src":"1733:1:13"}],"id":2315,"name":"UnaryOperation","src":"1733:3:13"}],"id":2316,"name":"ExpressionStatement","src":"1733:3:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2317,"name":"Identifier","src":"1747:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2318,"name":"Identifier","src":"1750:2:13"}],"id":2319,"name":"TupleExpression","src":"1746:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getPrice","referencedDeclaration":1284,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IPV","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1285,"type":"type(contract IPV)","value":"IPV"},"id":2320,"name":"Identifier","src":"1756:3:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2321,"name":"Identifier","src":"1760:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2322,"name":"Literal","src":"1776:1:13"}],"id":2323,"name":"IndexAccess","src":"1760:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2324,"name":"Identifier","src":"1779:1:13"}],"id":2325,"name":"IndexAccess","src":"1760:21:13"}],"id":2326,"name":"FunctionCall","src":"1756:26:13"}],"id":2327,"name":"MemberAccess","src":"1756:35:13"}],"id":2328,"name":"FunctionCall","src":"1756:37:13"}],"id":2329,"name":"Assignment","src":"1746:47:13"}],"id":2330,"name":"ExpressionStatement","src":"1746:47:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2331,"name":"Identifier","src":"1801:13:13"}],"id":2333,"name":"MemberAccess","src":"1801:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2334,"name":"Identifier","src":"1829:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2335,"name":"Literal","src":"1845:1:13"}],"id":2336,"name":"IndexAccess","src":"1829:18:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2305,"type":"uint256","value":"i"},"id":2337,"name":"Identifier","src":"1848:1:13"}],"id":2338,"name":"IndexAccess","src":"1829:21:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2251,"type":"uint256","value":"tP"},"id":2339,"name":"Identifier","src":"1851:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2255,"type":"bool","value":"tF"},"id":2340,"name":"Identifier","src":"1854:2:13"}],"id":2341,"name":"FunctionCall","src":"1801:56:13"}],"id":2342,"name":"ExpressionStatement","src":"1801:56:13"}],"id":2343,"name":"Block","src":"1738:126:13"}],"id":2344,"name":"ForStatement","src":"1685:179:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1238,"type":"uint256","value":"lastPriceQueryAt"},"id":2345,"name":"Identifier","src":"1869:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2346,"name":"Identifier","src":"1888:3:13"}],"id":2347,"name":"Assignment","src":"1869:22:13"}],"id":2348,"name":"ExpressionStatement","src":"1869:22:13"}],"id":2349,"name":"Block","src":"1419:477:13"}],"id":2350,"name":"FunctionDefinition","src":"1387:509:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"sortPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2351,"name":"ParameterList","src":"1978:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2355,"name":"ParameterList","src":"1990:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2352,"name":"Identifier","src":"1981:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2353,"name":"Literal","src":"1987:1:13"}],"id":2354,"name":"ModifierInvocation","src":"1981:8:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"sortPrsTable","referencedDeclaration":3489,"type":"function (struct SortPLib.PriceMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2356,"name":"Identifier","src":"1996:13:13"}],"id":2358,"name":"MemberAccess","src":"1996:26:13"}],"id":2359,"name":"FunctionCall","src":"1996:28:13"}],"id":2360,"name":"ExpressionStatement","src":"1996:28:13"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2361,"name":"Identifier","src":"2127:4:13"},{"attributes":{"argumentTypes":null,"hexvalue":"307830","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0x0"},"id":2362,"name":"Literal","src":"2135:3:13"}],"id":2363,"name":"BinaryOperation","src":"2127:11:13"},{"children":[{"attributes":{"assignments":[2365]},"children":[{"attributes":{"constant":false,"name":"tP","scope":2393,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2364,"name":"ElementaryTypeName","src":"2148:4:13"}],"id":2365,"name":"VariableDeclaration","src":"2148:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2366,"name":"Literal","src":"2158:1:13"}],"id":2367,"name":"VariableDeclarationStatement","src":"2148:11:13"},{"attributes":{"assignments":[2369]},"children":[{"attributes":{"constant":false,"name":"tF","scope":2393,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2368,"name":"ElementaryTypeName","src":"2167:4:13"}],"id":2369,"name":"VariableDeclaration","src":"2167:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2370,"name":"Literal","src":"2177:5:13"}],"id":2371,"name":"VariableDeclarationStatement","src":"2167:15:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2365,"type":"uint256","value":"tP"},"id":2372,"name":"Identifier","src":"2191:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2369,"type":"bool","value":"tF"},"id":2373,"name":"Identifier","src":"2194:2:13"}],"id":2374,"name":"TupleExpression","src":"2190:7:13"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getPrice","referencedDeclaration":1202,"type":"function () view external returns (uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":2375,"name":"Identifier","src":"2200:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2376,"name":"Identifier","src":"2206:4:13"}],"id":2377,"name":"FunctionCall","src":"2200:11:13"}],"id":2378,"name":"MemberAccess","src":"2200:20:13"}],"id":2379,"name":"FunctionCall","src":"2200:22:13"}],"id":2380,"name":"Assignment","src":"2190:32:13"}],"id":2381,"name":"ExpressionStatement","src":"2190:32:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToPrsTable","referencedDeclaration":3344,"type":"function (struct SortPLib.PriceMap storage pointer,address,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2382,"name":"Identifier","src":"2230:13:13"}],"id":2384,"name":"MemberAccess","src":"2230:27:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2385,"name":"Identifier","src":"2258:4:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2365,"type":"uint256","value":"tP"},"id":2386,"name":"Identifier","src":"2263:2:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2369,"type":"bool","value":"tF"},"id":2387,"name":"Identifier","src":"2266:2:13"}],"id":2388,"name":"FunctionCall","src":"2230:39:13"}],"id":2389,"name":"ExpressionStatement","src":"2230:39:13"}],"id":2390,"name":"Block","src":"2140:136:13"}],"id":2391,"name":"IfStatement","src":"2123:153:13"}],"id":2392,"name":"Block","src":"1990:290:13"}],"id":2393,"name":"FunctionDefinition","src":"1960:320:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getSortedPrice","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":1249,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2394,"name":"ParameterList","src":"2307:2:13"},{"children":[{"attributes":{"constant":false,"name":"consum","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2395,"name":"ElementaryTypeName","src":"2327:4:13"}],"id":2396,"name":"VariableDeclaration","src":"2327:11:13"},{"attributes":{"constant":false,"name":"rank","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2397,"name":"ElementaryTypeName","src":"2340:4:13"}],"id":2398,"name":"VariableDeclaration","src":"2340:9:13"},{"attributes":{"constant":false,"name":"tot","scope":2424,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2399,"name":"ElementaryTypeName","src":"2351:4:13"}],"id":2400,"name":"VariableDeclaration","src":"2351:8:13"},{"attributes":{"constant":false,"name":"updated","scope":2424,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2401,"name":"ElementaryTypeName","src":"2361:4:13"}],"id":2402,"name":"VariableDeclaration","src":"2361:12:13"}],"id":2403,"name":"ParameterList","src":"2326:48:13"},{"children":[{"attributes":{"assignments":[2405]},"children":[{"attributes":{"constant":false,"name":"adr","scope":2424,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2404,"name":"ElementaryTypeName","src":"2381:7:13"}],"id":2405,"name":"VariableDeclaration","src":"2381:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":2406,"name":"Identifier","src":"2395:3:13"}],"id":2407,"name":"MemberAccess","src":"2395:10:13"}],"id":2408,"name":"VariableDeclarationStatement","src":"2381:24:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2396,"type":"uint256","value":"consum"},"id":2409,"name":"Identifier","src":"2411:6:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2410,"name":"Identifier","src":"2420:11:13"}],"id":2411,"name":"Assignment","src":"2411:20:13"}],"id":2412,"name":"ExpressionStatement","src":"2411:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2398,"type":"uint256","value":"rank"},"id":2413,"name":"Identifier","src":"2438:4:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2400,"type":"uint256","value":"tot"},"id":2414,"name":"Identifier","src":"2443:3:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2402,"type":"bool","value":"updated"},"id":2415,"name":"Identifier","src":"2447:7:13"}],"id":2416,"name":"TupleExpression","src":"2437:18:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"getPrsTable","referencedDeclaration":3585,"type":"function (struct SortPLib.PriceMap storage pointer,address) returns (uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2417,"name":"Identifier","src":"2458:13:13"}],"id":2418,"name":"MemberAccess","src":"2458:25:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2405,"type":"address","value":"adr"},"id":2419,"name":"Identifier","src":"2484:3:13"}],"id":2420,"name":"FunctionCall","src":"2458:30:13"}],"id":2421,"name":"Assignment","src":"2437:51:13"}],"id":2422,"name":"ExpressionStatement","src":"2437:51:13"}],"id":2423,"name":"Block","src":"2375:118:13"}],"id":2424,"name":"FunctionDefinition","src":"2284:209:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"goNoGo","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":1259,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"giveoutvol","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2425,"name":"ElementaryTypeName","src":"2581:4:13"}],"id":2426,"name":"VariableDeclaration","src":"2581:15:13"}],"id":2427,"name":"ParameterList","src":"2580:17:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2431,"name":"ElementaryTypeName","src":"2616:4:13"}],"id":2432,"name":"VariableDeclaration","src":"2616:4:13"}],"id":2433,"name":"ParameterList","src":"2615:6:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2428,"name":"Identifier","src":"2598:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"34","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 4","value":"4"},"id":2429,"name":"Literal","src":"2604:1:13"}],"id":2430,"name":"ModifierInvocation","src":"2598:8:13"},{"children":[{"attributes":{"assignments":[2435]},"children":[{"attributes":{"constant":false,"name":"adrDevice","scope":2491,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2434,"name":"ElementaryTypeName","src":"2628:7:13"}],"id":2435,"name":"VariableDeclaration","src":"2628:17:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4176,"type":"msg","value":"msg"},"id":2436,"name":"Identifier","src":"2648:3:13"}],"id":2437,"name":"MemberAccess","src":"2648:10:13"}],"id":2438,"name":"VariableDeclarationStatement","src":"2628:30:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"takeoutvol","scope":2491,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2439,"name":"ElementaryTypeName","src":"2664:4:13"}],"id":2440,"name":"VariableDeclaration","src":"2664:15:13"}],"id":2441,"name":"VariableDeclarationStatement","src":"2664:15:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":4179,"type":"function (bool) pure","value":"require"},"id":2442,"name":"Identifier","src":"2685:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2443,"name":"Identifier","src":"2693:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2444,"name":"Literal","src":"2709:1:13"}],"id":2445,"name":"IndexAccess","src":"2693:18:13"}],"id":2446,"name":"MemberAccess","src":"2693:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2447,"name":"Identifier","src":"2725:9:13"}],"id":2448,"name":"FunctionCall","src":"2693:42:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2449,"name":"Identifier","src":"2739:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2450,"name":"Literal","src":"2755:1:13"}],"id":2451,"name":"IndexAccess","src":"2739:18:13"}],"id":2452,"name":"MemberAccess","src":"2739:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2453,"name":"Identifier","src":"2771:9:13"}],"id":2454,"name":"FunctionCall","src":"2739:42:13"}],"id":2455,"name":"BinaryOperation","src":"2693:88:13"}],"id":2456,"name":"FunctionCall","src":"2685:97:13"}],"id":2457,"name":"ExpressionStatement","src":"2685:97:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2458,"name":"Identifier","src":"2788:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"findMin","referencedDeclaration":4048,"type":"function (uint256,uint256) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2459,"name":"Identifier","src":"2801:11:13"}],"id":2460,"name":"MemberAccess","src":"2801:19:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2426,"type":"uint256","value":"giveoutvol"},"id":2461,"name":"Identifier","src":"2821:10:13"}],"id":2462,"name":"FunctionCall","src":"2801:31:13"}],"id":2463,"name":"Assignment","src":"2788:44:13"}],"id":2464,"name":"ExpressionStatement","src":"2788:44:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2465,"name":"Identifier","src":"2838:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2466,"name":"Identifier","src":"2852:11:13"}],"id":2467,"name":"MemberAccess","src":"2852:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2468,"name":"Identifier","src":"2884:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SingleHouse_$2578","typeString":"contract SingleHouse"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2469,"name":"ElementaryTypeNameExpression","src":"2896:7:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4207,"type":"contract SingleHouse","value":"this"},"id":2470,"name":"Identifier","src":"2904:4:13"}],"id":2471,"name":"FunctionCall","src":"2896:13:13"}],"id":2472,"name":"FunctionCall","src":"2852:58:13"}],"id":2473,"name":"Assignment","src":"2838:72:13"}],"id":2474,"name":"ExpressionStatement","src":"2838:72:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":2475,"name":"Identifier","src":"3092:6:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":2476,"name":"ElementaryTypeNameExpression","src":"3102:3:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2477,"name":"Identifier","src":"3106:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"prs","referencedDeclaration":3263,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct SortPLib.PriceTF storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"prsTable","referencedDeclaration":3270,"type":"mapping(address => struct SortPLib.PriceTF storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2176,"type":"struct SortPLib.PriceMap storage ref","value":"draftPriceMap"},"id":2478,"name":"Identifier","src":"3117:13:13"}],"id":2479,"name":"MemberAccess","src":"3117:22:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2435,"type":"address","value":"adrDevice"},"id":2480,"name":"Identifier","src":"3140:9:13"}],"id":2481,"name":"IndexAccess","src":"3117:33:13"}],"id":2482,"name":"MemberAccess","src":"3117:37:13"}],"id":2483,"name":"BinaryOperation","src":"3106:48:13"}],"id":2484,"name":"FunctionCall","src":"3102:53:13"}],"id":2485,"name":"Assignment","src":"3092:63:13"}],"id":2486,"name":"ExpressionStatement","src":"3092:63:13"},{"attributes":{"functionReturnParameters":2433},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2440,"type":"uint256","value":"takeoutvol"},"id":2487,"name":"Identifier","src":"3169:10:13"}],"id":2488,"name":"TupleExpression","src":"3168:12:13"}],"id":2489,"name":"Return","src":"3161:19:13"}],"id":2490,"name":"Block","src":"2622:563:13"}],"id":2491,"name":"FunctionDefinition","src":"2565:620:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"buyExtra","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2492,"name":"ParameterList","src":"3277:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2496,"name":"ParameterList","src":"3289:0:13"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2493,"name":"Identifier","src":"3280:5:13"},{"attributes":{"argumentTypes":null,"hexvalue":"35","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 5","value":"5"},"id":2494,"name":"Literal","src":"3286:1:13"}],"id":2495,"name":"ModifierInvocation","src":"3280:8:13"},{"children":[{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"whatDeviceAccept","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2497,"name":"ElementaryTypeName","src":"3340:4:13"}],"id":2498,"name":"VariableDeclaration","src":"3340:21:13"}],"id":2499,"name":"VariableDeclarationStatement","src":"3340:21:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"receivedMoney","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2500,"name":"ElementaryTypeName","src":"3367:4:13"}],"id":2501,"name":"VariableDeclaration","src":"3367:18:13"}],"id":2502,"name":"VariableDeclarationStatement","src":"3367:18:13"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"unitPrs","scope":2551,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2503,"name":"ElementaryTypeName","src":"3391:4:13"}],"id":2504,"name":"VariableDeclaration","src":"3391:12:13"}],"id":2505,"name":"VariableDeclarationStatement","src":"3391:12:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":4179,"type":"function (bool) pure","value":"require"},"id":2506,"name":"Identifier","src":"3409:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2507,"name":"Identifier","src":"3417:4:13"},{"attributes":{"argumentTypes":null,"hexvalue":"307830","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0x0"},"id":2508,"name":"Literal","src":"3425:3:13"}],"id":2509,"name":"BinaryOperation","src":"3417:11:13"}],"id":2510,"name":"FunctionCall","src":"3409:20:13"}],"id":2511,"name":"ExpressionStatement","src":"3409:20:13"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2512,"name":"Identifier","src":"3439:11:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2513,"name":"Literal","src":"3453:1:13"}],"id":2514,"name":"BinaryOperation","src":"3439:15:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2515,"name":"Identifier","src":"3465:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2504,"type":"uint256","value":"unitPrs"},"id":2516,"name":"Identifier","src":"3483:7:13"}],"id":2517,"name":"TupleExpression","src":"3464:27:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goExtra","referencedDeclaration":1226,"type":"function (uint256) external returns (uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":2518,"name":"Identifier","src":"3494:5:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":2519,"name":"Identifier","src":"3500:4:13"}],"id":2520,"name":"FunctionCall","src":"3494:11:13"}],"id":2521,"name":"MemberAccess","src":"3494:19:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2522,"name":"Identifier","src":"3514:11:13"}],"id":2523,"name":"FunctionCall","src":"3494:32:13"}],"id":2524,"name":"Assignment","src":"3464:62:13"}],"id":2525,"name":"ExpressionStatement","src":"3464:62:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2526,"name":"Identifier","src":"3534:11:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearEnergyTransfer","referencedDeclaration":4076,"type":"function (uint256,uint256,address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"uint256","value":"consumption"},"id":2527,"name":"Identifier","src":"3548:11:13"}],"id":2528,"name":"MemberAccess","src":"3548:31:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2529,"name":"Identifier","src":"3580:16:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SingleHouse_$2578","typeString":"contract SingleHouse"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2530,"name":"ElementaryTypeNameExpression","src":"3598:7:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4207,"type":"contract SingleHouse","value":"this"},"id":2531,"name":"Identifier","src":"3606:4:13"}],"id":2532,"name":"FunctionCall","src":"3598:13:13"}],"id":2533,"name":"FunctionCall","src":"3548:64:13"}],"id":2534,"name":"Assignment","src":"3534:78:13"}],"id":2535,"name":"ExpressionStatement","src":"3534:78:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2501,"type":"uint256","value":"receivedMoney"},"id":2536,"name":"Identifier","src":"3620:13:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2498,"type":"uint256","value":"whatDeviceAccept"},"id":2537,"name":"Identifier","src":"3636:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2504,"type":"uint256","value":"unitPrs"},"id":2538,"name":"Identifier","src":"3653:7:13"}],"id":2539,"name":"BinaryOperation","src":"3636:24:13"}],"id":2540,"name":"Assignment","src":"3620:40:13"}],"id":2541,"name":"ExpressionStatement","src":"3620:40:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":2542,"name":"Identifier","src":"3668:6:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(int256)","value":"int"},"id":2543,"name":"ElementaryTypeNameExpression","src":"3678:3:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2501,"type":"uint256","value":"receivedMoney"},"id":2544,"name":"Identifier","src":"3682:13:13"}],"id":2545,"name":"FunctionCall","src":"3678:18:13"}],"id":2546,"name":"Assignment","src":"3668:28:13"}],"id":2547,"name":"ExpressionStatement","src":"3668:28:13"}],"id":2548,"name":"Block","src":"3456:247:13"}],"id":2549,"name":"IfStatement","src":"3435:268:13"}],"id":2550,"name":"Block","src":"3289:418:13"}],"id":2551,"name":"FunctionDefinition","src":"3260:447:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTime","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2552,"name":"ParameterList","src":"3789:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2560,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2553,"name":"ElementaryTypeName","src":"3801:4:13"}],"id":2554,"name":"VariableDeclaration","src":"3801:4:13"}],"id":2555,"name":"ParameterList","src":"3800:6:13"},{"children":[{"attributes":{"functionReturnParameters":2555},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":731,"type":"function () returns (uint256)","value":"getTimerStatus"},"id":2556,"name":"Identifier","src":"3820:14:13"}],"id":2557,"name":"FunctionCall","src":"3820:16:13"}],"id":2558,"name":"Return","src":"3813:23:13"}],"id":2559,"name":"Block","src":"3807:34:13"}],"id":2560,"name":"FunctionDefinition","src":"3773:68:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTimeToNext","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2561,"name":"ParameterList","src":"3867:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2569,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2562,"name":"ElementaryTypeName","src":"3879:4:13"}],"id":2563,"name":"VariableDeclaration","src":"3879:4:13"}],"id":2564,"name":"ParameterList","src":"3878:6:13"},{"children":[{"attributes":{"functionReturnParameters":2564},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":755,"type":"function () returns (uint256)","value":"getTimeToNextStatus"},"id":2565,"name":"Identifier","src":"3898:19:13"}],"id":2566,"name":"FunctionCall","src":"3898:21:13"}],"id":2567,"name":"Return","src":"3891:28:13"}],"id":2568,"name":"Block","src":"3885:39:13"}],"id":2569,"name":"FunctionDefinition","src":"3845:79:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getNow","payable":false,"scope":2578,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2570,"name":"ParameterList","src":"3943:2:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2577,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2571,"name":"ElementaryTypeName","src":"3955:4:13"}],"id":2572,"name":"VariableDeclaration","src":"3955:4:13"}],"id":2573,"name":"ParameterList","src":"3954:6:13"},{"children":[{"attributes":{"functionReturnParameters":2573},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2574,"name":"Identifier","src":"3974:3:13"}],"id":2575,"name":"Return","src":"3967:10:13"}],"id":2576,"name":"Block","src":"3961:21:13"}],"id":2577,"name":"FunctionDefinition","src":"3928:54:13"}],"id":2578,"name":"ContractDefinition","src":"222:3762:13"}],"id":2579,"name":"SourceUnit","src":"0:3985:13"},"compiler":{"name":"solc","version":"0.4.18+commit.9cf6e910.Emscripten.clang"},"networks":{"1513694582674":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x7a5fbc6f31ebaa197a0a8b294b6cb4f1ff4cbaf0","AdrLib":"0x2a29be3b1c490814e26339c307c6d072efa1e3e7","TransactLib":"0x9d362366891ab58651569d81913d4b816088130d"},"address":"0x16a8a037ff7a2210e59754d46ad4c3e0a87ca714"},"1513697632729":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xa4113d97a4e2dc10d1b5fc54cf736d2854a7c01f","AdrLib":"0x90fb0b5ffa9d3914f9385334dcfdc6b02600399a","TransactLib":"0xc8a86b5903ab611bec4fc6fdf237a1d206e15acf"},"address":"0xbd7538578c4ae60d80f7304d6ee7b9569914be86"},"1513763710755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x78c2bb7f3a36d4d707059ea3f4849b678ee3bfda","AdrLib":"0xc58dcc188e655d4ddf557ecbc4c56ac6ebc11c67","TransactLib":"0x27773684e75ae51c682f089b2a3b86ef707970ee"},"address":"0xb0d00ca29d7a9c2136b5ef51f764e070ecfa0159"},"1513771446044":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x114601f4c855252b5004780915fed22240be89ff","AdrLib":"0x1482ae1a53728c856a810f0cba23d49ca89d4ccb","TransactLib":"0x98b427e11e15bb546e7ed96758a8eff0ee6e027d"},"address":"0x2a2633a2318087d61419dbe21b7cfb2046062bab"},"1513771818067":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x30c85717c7a56a9495a0c11854c0a0e612ae2332","AdrLib":"0x75d35a38dc3830fcff5cec2af8499c3530900ab5","TransactLib":"0x07e3d14562988d3896f468f5806fab6e092b78c6"},"address":"0xa6512803ec61d5094faf1e130b4b4657befda709"},"1513772129137":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8da5150535fe5fe0eb3cb55c241a7e60e4517a61","AdrLib":"0x116217ea23e706df44e85fdcd5cf009299e517a4","TransactLib":"0xb6d612907ee10abd3647fd327b135b722e48fdff"},"address":"0x407507f2a85b4869562d9f7776a7ae5d7031da70"},"1513772799886":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8963d9463d816a42efbafec52d2e6a325861198a","AdrLib":"0x28b271c9201a17d5ba98ad19ba55023f3da26e37","TransactLib":"0x20419e3e4cc09b5ca9d23ceec64f359f30861a05"},"address":"0xb2e9dfaa843c04f9a94ac9582ed30691c7249ec6"},"1513773239755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x72d170de1571f74044936fa79bee437c2555887c","AdrLib":"0x0a09d977a155f62a5d6ff7e70e8a99fc87d65092","TransactLib":"0x0f0686d00c98181866cfd27b71da96c1aa7dc6b0"},"address":"0xa2a81c26f9d8f7176915f1986c1c6bdd03bd308f"},"1513773645333":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xc500838313f86a63899357e95215ad39ebceedae","AdrLib":"0x40a6706e762ee60442e03d455672b9181e312ed5","TransactLib":"0xfd9d43eaae27ccb48004fedd4d2d586b9ea5749b"},"address":"0x729c4395574af9c4375fb23b655b7495e96bbc8d"},"1513777045350":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x408610b34699899c403f9da8cd60946275564e12","AdrLib":"0xdc753f08b6a50b3ff6963fedd0c1c674b4bb75bc","TransactLib":"0xbf436b9323f8461b019b42007535e33b08e54bf0"},"address":"0x6ac1a1cddb1445271813ce849efcf4a37de0579b"},"1513778825921":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xb00cd9bcbc26d9925f3e3944819c664f7f699d71","AdrLib":"0xc4e06c049113fefed98c1bcf26395b82d216385d","TransactLib":"0xd0faef622cf49398cdea9d0007f85ecf6968a321"},"address":"0x9178369784a6046d59b560c44875caa4d75bef04"},"1513778906317":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe546f6b67e5177f495f61c962432a7f57e03a8b1","AdrLib":"0x78520ba51f90157416ebb30d7a1bb647cd181ddd","TransactLib":"0xd505c556b8e7d261d56bd2a887ea75bb8fe9e660"},"address":"0x9c5a5f60f9309f147498a338ffe294e2051de81d"},"1513779036442":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe756f473247f7d54a736a35962d22eb276d3ee27","AdrLib":"0x8f5c4c22b5d61e32dd6b09becd59f3f5de60a01c","TransactLib":"0x055974c9295369da64b3461b5239d4295e307b36"},"address":"0x07b0cbe27eabc0abdca603d0a6fc7e461285c6bf"},"1513781372031":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x74dd2ce27fd18405728a7e67b9c1a7e34981c3c7","AdrLib":"0x1cc1ce568c1311dbd6f3728f5f6d9feb685597e6","TransactLib":"0x15e0bea40333f9251ad1c2e990d63c6c15007dbe"},"address":"0xece91fb862235d281bf9316d3a4dd31ed246391c"},"1513781520103":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x4d7c461085396cfcc8e593cfb069043372d3c144","AdrLib":"0x49dfec9fed5d843fab55d59427a2fc50122f0e9c","TransactLib":"0x3685bad9e0dd801b34b5a592be1678e1a984e3ad"},"address":"0xd4d8fe7f6fad8fcb04af6b32148b2b3e3807efb7"},"1513781725934":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x0bfd5035c246c5c1807b3fde18ede0187389709c","AdrLib":"0x05bf1bfbee660b843480d1683da373343dc3ea8d","TransactLib":"0xe7ffb66a9f459043a51773d63441b6abe90d2335"},"address":"0x055725ef62b66bffc78bb9ad3ef535406777fe58"},"1513781878089":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x9039f2ed833c7840d69619968e0cecbf6bfa917b","AdrLib":"0xdd4c1bbd9a3b3b19d3a84795e715feca7524b05d","TransactLib":"0x308aac19f2f85404332e1ba26a307d300c9de27c"},"address":"0xea6ab0a03a6be3ce96b847d496eb8560af45a162"},"1513782049907":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x30171bbc67947faa678548a7a7da624d6fe7f2da","AdrLib":"0x5254b7104bc7aa5d220bc0adfe5c48aba63e573c","TransactLib":"0x9565d721bad77b973057ff5ec68ad9e99aafd2d1"},"address":"0x7596fe02a80fef46b452cb2eef56ea142b9312ae"},"1513782106845":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe4a8d0fc6e46db86e38f6edf8e267b6ff5eb2fa5","AdrLib":"0x02bf606e33ab4ff08a27fda5dc11e565d208b850","TransactLib":"0x2fda037b1fd7c3318b51c493320865b6a70f5cc6"},"address":"0x8a21ff0a78d36fafe4e8fc2d7fd831587103539d"},"1513782148189":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x83d3206588240b7e672b71ca11f3a4e208793112","AdrLib":"0x32e6fc892d10705762a67bd91f3c5dd4dc548c8d","TransactLib":"0x58b466514d9200cee966b2b75df662f87fa096eb"},"address":"0x342dae449a93a8b7b44beb99aed500b410d26486"},"1513782179458":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xe4ed6c927c026587fc9decd5be1e61bcf2998ada","AdrLib":"0x0d18ca0763e277ac10b1f54e83e5fdd738c86fb4","TransactLib":"0x98aea1f7cf8395148413a3156d0f57a29795526f"},"address":"0x626332c94a10b24bf878605efbb43ad28813c709"},"1513782236877":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xb7470a1fd1f156579491cd7322eb0879ef6aebd4","AdrLib":"0xc3d857131f73789b252c9468a90d5b6604805336","TransactLib":"0x943cfa4a8165e79a3d2970f85cca95314532bc69"},"address":"0x5b3fd83c2d3e8905749e8cf3c207a17d0e79024d"},"1513782526210":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x3764ab26d328c96e00a5a6ffe531c6988b9e37ae","AdrLib":"0x6e4d4910b580a925c0687315fb2c355a0abdc3f9","TransactLib":"0x7dc09671ee66eb667dac2052183190ff10e4c8c3"},"address":"0x7d8dfb33cd0bc94d12d5676ab808d2371bf3d197"},"1513782951368":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0x8eaa1c17f6d8360e65699da143dd6f8581601038","AdrLib":"0x960970dc4e2d0f7d5071e1adce541d6280a74c9a","TransactLib":"0xf3c53ed6062b1e7503fbf3d635f7c9e04068402d"},"address":"0xbb3450528ee026a2924dd5bb4cd96f87e390c469"},"1513783449271":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xa060e14806a9ac7bbe05615893b8fa3a4d6d079a","AdrLib":"0xed10b60bae1c1cd99414d5320ffb76a69dfd6d1b","TransactLib":"0x7ff701216ff981fb4f430a051fa6455f30abb1de"},"address":"0xb5c3f1536d24b9e27dba82a9ee30dcba733883bf"},"1513783569288":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortPLib":"0xaddece91117629d34e9c50baabc4040fc265f2ef","AdrLib":"0xd63d2a0ae6913212018dc716e8869c6d97a7bf2b","TransactLib":"0x9e4073955f99708d893e8a97787f1303744af560"},"address":"0x35ac8dce8284cd96fda9b6cd1087c9883553cdba"},"1513783657231":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"},"0x93e0cabaa551645c58979b9f1e87af3e09f708241c9bdd6468e581ad06516926":{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"}},"links":{"SortPLib":"0xd62185ff454e68f86018077cbcbc1d631ee7c63a","AdrLib":"0xc0716270b05d3089a151d73809e2c659154a732a","TransactLib":"0x90ef429afd389a5f495882995c2da74b3b29f84d"},"address":"0xe51045608d6493527509a10bd2e8d2e8c46506e8"}},"schemaVersion":"1.0.1","updatedAt":"2017-12-20T15:27:45.591Z"},"abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}],"contract":{"_eth":{"_requestManager":{"provider":{"provider":{"host":"http://localhost:8545","timeout":0,"_alreadyWrapped":true}},"polls":{},"timeout":null},"compile":{},"coinbase":"0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","mining":true,"hashrate":0,"syncing":false,"gasPrice":"20000000000","accounts":["0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","0xe208d1dd66f7f3da8d2247f2baa3c592fa85dd11","0x473ded0842ff40ffeafe1fa376b959c9b23c89ce","0x0e514e7d670f5ad315767e9b13774d654b92b792","0x72133c776d4e59a04a879744315c72400e72523e","0x8aab4c99ff957be2c2b312c3a290333110107862","0xe4e42e5f6c7d581b9e46e6a34c47a700c932ea7c","0x508e6d0c3e398d127916c0c3d45a3105047e1b79","0x20845b8f15ea0569f5017e411c8536a6bd1bf6a5","0x8fd36fedfd713fdf28f2082732bd1eb3592bb1a3"],"blockNumber":45,"protocolVersion":"63"},"transactionHash":null,"address":"0xee1c6e9833fae82c3ae2ce9ddf2c0e5ca48c5653","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"giveoutvol","type":"uint256"}],"name":"goNoGo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getSortedPrice","outputs":[{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"},{"name":"updated","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"buyExtra","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"consum","type":"uint256"}],"name":"setConsumption","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getConsumption","outputs":[{"name":"consum","type":"uint256"},{"name":"consumAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getNow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"consum","type":"uint256"},{"indexed":false,"name":"consumAt","type":"uint256"}],"name":"ConsumptionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"}]},"address":"0xee1c6e9833fae82c3ae2ce9ddf2c0e5ca48c5653","transactionHash":null}}],"pv":[{"id":0,"picture":"images/pv.png","address":"0x8aab4c99ff957be2c2b312c3a290333110107862","contract_address":"0x68d8b75eb29a52a350158505f60a62414d9961c9","device_name":"pv0","device_type":"pv","values":{"consumption":[],"production":[["5","1513783666"],["5","1513783666"],["0","1513783666"],["0","1513783666"]],"price":[["20",true],["20",true],["20",true],["20",true]],"wallet":["0","0","100","100"]},"contract":{"constructor":{"contractName":"SinglePV","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellEnergy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForRank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortRank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"initiateTransaction","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"produc","type":"uint256"}],"name":"setProduction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellExcess","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"getSortedRank","outputs":[{"name":"adr","type":"address"},{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getProduction","outputs":[{"name":"prod","type":"uint256"},{"name":"prodAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"prs","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"prs","type":"uint256"},{"name":"updatedOrNot","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"produc","type":"uint256"},{"indexed":false,"name":"prodAt","type":"uint256"}],"name":"ProductionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"updateAt","type":"uint256"}],"name":"PriceUpdate","type":"event"}],"bytecode":"0x606060405260038054600160a060020a031990811690915560048054909116905561012c6007819055600855341561003657600080fd5b60405160208061142c8339810160405280805160018054600160a060020a03928316600160a060020a03199182161790915560008054339093169290911691909117905550506113a18061008b6000396000f3006060604052600436106100f85763ffffffff60e060020a600035041663074b7c8081146100fd5780630830cfae146101225780631329960414610143578063235a4a4f146101565780632c2735dd146101695780633d7224dc1461017c5780633d8595071461018f5780633fd2007d146101a2578063567cc2b6146101d057806367a2829d146101e65780636b608223146101f957806370ed8f241461024c57806382076a711461027b5780638d646b111461028e5780638e4dfebb146102ad57806391b7f5ed146102c05780639888c3c2146102d657806398d5fdca146102e9578063bfd1190314610316578063ff1b636d14610338575b600080fd5b341561010857600080fd5b61011061034b565b60405190815260200160405180910390f35b341561012d57600080fd5b610141600160a060020a03600435166103b5565b005b341561014e57600080fd5b6101106103f8565b341561016157600080fd5b6101106103fe565b341561017457600080fd5b610141610448565b341561018757600080fd5b610141610522565b341561019a57600080fd5b6101416108ff565b34156101ad57600080fd5b6101b8600435610979565b60405191825260208201526040908101905180910390f35b34156101db57600080fd5b610141600435610ced565b34156101f157600080fd5b610141610d8d565b341561020457600080fd5b61020f60043561108e565b6040518085600160a060020a0316600160a060020a0316815260200184815260200183815260200182815260200194505050505060405180910390f35b341561025757600080fd5b61025f61112d565b604051600160a060020a03909116815260200160405180910390f35b341561028657600080fd5b61011061113c565b341561029957600080fd5b610141600160a060020a0360043516611186565b34156102b857600080fd5b6101b86111ca565b34156102cb57600080fd5b6101416004356111d4565b34156102e157600080fd5b61011061123f565b34156102f457600080fd5b6102fc61124e565b604051918252151560208201526040908101905180910390f35b341561032157600080fd5b610141600435600160a060020a0360243516611273565b341561034357600080fd5b61025f6112df565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039557600080fd5b6102c65a03f115156103a657600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100f8576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60055490565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039557600080fd5b600080600080600080600080600080600060046104636103fe565b8114156100f85760105460009c509a5060019950600e19420192505b89156105145742600184011161050f5761049761034b565b98508b91505b8a8210156104ff576104ae8c61108e565b929a5090985096509450888614156104d6576104c98c610979565b50506001909b019a6104f4565b888610156104e9576001909b019a6104f4565b8893504292506104ff565b60019091019061049d565b8a8c1061050f5760009950610514565b61047f565b505050505050505050505050565b600080600080600060036105346103fe565b8114156100f85773__SortRLib______________________________63e6f37de9600e60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b151561058b57600080fd5b6102c65a03f4151561059c57600080fd5b505050600091505b60008052600660205260008051602061133683398151915254821015610747576000805260066020526000805160206113368339815191528054839081106105e857fe5b6000918252602082200154600160a060020a031690631b45f0e090604051608001526040518163ffffffff1660e060020a028152600401608060405180830381600087803b151561063857600080fd5b6102c65a03f1151561064957600080fd5b5050506040518051906020018051906020018051906020018051939950919750955090935050821561073c57600080526006602052600080516020611336833981519152805473__SortRLib______________________________9163ef61a13991600e9190869081106106b957fe5b600091825260209091200154600160a060020a031689898960405160e060020a63ffffffff88160281526004810195909552600160a060020a03909316602485015260448401919091526064830152608482015260a40160006040518083038186803b151561072757600080fd5b6102c65a03f4151561073857600080fd5b5050505b6001909101906105a4565b600091505b60026000526006602052600080516020611356833981519152548210156108f2576002600052600660205260008051602061135683398151915280548390811061079257fe5b6000918252602082200154600160a060020a031690631b45f0e090604051608001526040518163ffffffff1660e060020a028152600401608060405180830381600087803b15156107e257600080fd5b6102c65a03f115156107f357600080fd5b505050604051805190602001805190602001805190602001805193995091975095509093505082156108e75760026000526006602052600080516020611356833981519152805473__SortRLib______________________________9163ef61a13991600e91908690811061086457fe5b600091825260209091200154600160a060020a031689898960405160e060020a63ffffffff88160281526004810195909552600160a060020a03909316602485015260448401919091526064830152608482015260a40160006040518083038186803b15156108d257600080fd5b6102c65a03f415156108e357600080fd5b5050505b60019091019061074c565b42600b555b505050505050565b60036109096103fe565b8114156100f85773__SortRLib______________________________63534e1918600e60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b151561096057600080fd5b6102c65a03f4151561097157600080fd5b5050506103f5565b600080600080600080600080600060046109916103fe565b8114156100f8576109a18b61108e565b600c54939a509198509650945073__TransactLib___________________________9063bc2e368c908860006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515610a0d57600080fd5b6102c65a03f41515610a1e57600080fd5b505050604051805160026000908152600660205290995073__AdrLib________________________________9150632c2fc20e90600080516020611356833981519152908a906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b1515610aad57600080fd5b6102c65a03f41515610abe57600080fd5b5050506040518051905015610be85786600160a060020a0316630ff372828960006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610b1c57600080fd5b6102c65a03f11515610b2d57600080fd5b5050506040518051600c80548290039055600d546005549195508502935073__TransactLib___________________________915063e2992d2990848a3060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b1515610bc657600080fd5b6102c65a03f41515610bd757600080fd5b505050604051805160055550610cdd565b6000808052600660205273__AdrLib________________________________90632c2fc20e90600080516020611336833981519152908a906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b1515610c6957600080fd5b6102c65a03f41515610c7a57600080fd5b5050506040518051905015610cd85786600160a060020a0316630ff372828960006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610b1c57600080fd5b600092505b5095999098509650505050505050565b6001610cf76103fe565b8114156100f85760015433600160a060020a03908116911614156100f857600c82905542600a8190556001547fdf963fee409850630585bd095a505a9a956ef373cd706eb6eddec02d0a36731991600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b60008060008060006005610d9f6103fe565b8114156100f8576000600c54111561108957600260005260066020526000805160206113568339815191525415610f5857600091505b6002600052600660205260008051602061135683398151915254821015610f535760026000526006602052600080516020611356833981519152805483908110610e1b57fe5b6000918252602082200154600c54600160a060020a03909116945084916335f7f5e291906040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b1515610e7b57600080fd5b6102c65a03f11515610e8c57600080fd5b5050506040518051906020018051600c805484900390556005549298508881029750955073__TransactLib___________________________9163e2992d29915087863060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b1515610f2b57600080fd5b6102c65a03f41515610f3c57600080fd5b505050604051805160055550600190910190610dd5565b611089565b600354600c54600160a060020a03909116906335f7f5e29060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b1515610fae57600080fd5b6102c65a03f11515610fbf57600080fd5b5050506040518051906020018051600c80548490039055600554600354939950898202985090965073__TransactLib___________________________9263e2992d2992508890600160a060020a03163060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b151561106b57600080fd5b6102c65a03f4151561107c57600080fd5b5050506040518051600555505b6108f7565b600080808073__SortRLib______________________________6391871092600e87846040516080015260405160e060020a63ffffffff85160281526004810192909252602482015260440160806040518083038186803b15156110f157600080fd5b6102c65a03f4151561110257600080fd5b5050506040518051906020018051906020018051906020018051905093509350935093509193509193565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039557600080fd5b60005433600160a060020a03908116911614156100f8576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103f5565b600c54600a549091565b60016111de6103fe565b8114156100f85760015433600160a060020a03908116911614156100f857600d8290554260098190557fae46785019700e30375a5d7b4f91e32f8060ef085111f896ebf889450aa2ab5a9060405190815260200160405180910390a1610d89565b600061124961113c565b905090565b600d54600854600954600091429101101561126b5750600061126f565b5060015b9091565b60005433600160a060020a03908116911614156100f85760008281526006602052604090208054600181016112a883826112ee565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610d89565b600054600160a060020a031681565b81548183558181151161131257600083815260209020611312918101908301611317565b505050565b6103b291905b80821115611331576000815560010161131d565b5090560054cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f88819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820f752bc434dbbe29b364f99321378917087b64d37bb9e3d4ae8e09d0b334442570029","deployedBytecode":"0x6060604052600436106100f85763ffffffff60e060020a600035041663074b7c8081146100fd5780630830cfae146101225780631329960414610143578063235a4a4f146101565780632c2735dd146101695780633d7224dc1461017c5780633d8595071461018f5780633fd2007d146101a2578063567cc2b6146101d057806367a2829d146101e65780636b608223146101f957806370ed8f241461024c57806382076a711461027b5780638d646b111461028e5780638e4dfebb146102ad57806391b7f5ed146102c05780639888c3c2146102d657806398d5fdca146102e9578063bfd1190314610316578063ff1b636d14610338575b600080fd5b341561010857600080fd5b61011061034b565b60405190815260200160405180910390f35b341561012d57600080fd5b610141600160a060020a03600435166103b5565b005b341561014e57600080fd5b6101106103f8565b341561016157600080fd5b6101106103fe565b341561017457600080fd5b610141610448565b341561018757600080fd5b610141610522565b341561019a57600080fd5b6101416108ff565b34156101ad57600080fd5b6101b8600435610979565b60405191825260208201526040908101905180910390f35b34156101db57600080fd5b610141600435610ced565b34156101f157600080fd5b610141610d8d565b341561020457600080fd5b61020f60043561108e565b6040518085600160a060020a0316600160a060020a0316815260200184815260200183815260200182815260200194505050505060405180910390f35b341561025757600080fd5b61025f61112d565b604051600160a060020a03909116815260200160405180910390f35b341561028657600080fd5b61011061113c565b341561029957600080fd5b610141600160a060020a0360043516611186565b34156102b857600080fd5b6101b86111ca565b34156102cb57600080fd5b6101416004356111d4565b34156102e157600080fd5b61011061123f565b34156102f457600080fd5b6102fc61124e565b604051918252151560208201526040908101905180910390f35b341561032157600080fd5b610141600435600160a060020a0360243516611273565b341561034357600080fd5b61025f6112df565b600454600090600160a060020a031663bdef9d9282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039557600080fd5b6102c65a03f115156103a657600080fd5b50505060405180519150505b90565b60005433600160a060020a03908116911614156100f8576004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60055490565b600454600090600160a060020a0316633b7104f282604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039557600080fd5b600080600080600080600080600080600060046104636103fe565b8114156100f85760105460009c509a5060019950600e19420192505b89156105145742600184011161050f5761049761034b565b98508b91505b8a8210156104ff576104ae8c61108e565b929a5090985096509450888614156104d6576104c98c610979565b50506001909b019a6104f4565b888610156104e9576001909b019a6104f4565b8893504292506104ff565b60019091019061049d565b8a8c1061050f5760009950610514565b61047f565b505050505050505050505050565b600080600080600060036105346103fe565b8114156100f85773__SortRLib______________________________63e6f37de9600e60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b151561058b57600080fd5b6102c65a03f4151561059c57600080fd5b505050600091505b60008052600660205260008051602061133683398151915254821015610747576000805260066020526000805160206113368339815191528054839081106105e857fe5b6000918252602082200154600160a060020a031690631b45f0e090604051608001526040518163ffffffff1660e060020a028152600401608060405180830381600087803b151561063857600080fd5b6102c65a03f1151561064957600080fd5b5050506040518051906020018051906020018051906020018051939950919750955090935050821561073c57600080526006602052600080516020611336833981519152805473__SortRLib______________________________9163ef61a13991600e9190869081106106b957fe5b600091825260209091200154600160a060020a031689898960405160e060020a63ffffffff88160281526004810195909552600160a060020a03909316602485015260448401919091526064830152608482015260a40160006040518083038186803b151561072757600080fd5b6102c65a03f4151561073857600080fd5b5050505b6001909101906105a4565b600091505b60026000526006602052600080516020611356833981519152548210156108f2576002600052600660205260008051602061135683398151915280548390811061079257fe5b6000918252602082200154600160a060020a031690631b45f0e090604051608001526040518163ffffffff1660e060020a028152600401608060405180830381600087803b15156107e257600080fd5b6102c65a03f115156107f357600080fd5b505050604051805190602001805190602001805190602001805193995091975095509093505082156108e75760026000526006602052600080516020611356833981519152805473__SortRLib______________________________9163ef61a13991600e91908690811061086457fe5b600091825260209091200154600160a060020a031689898960405160e060020a63ffffffff88160281526004810195909552600160a060020a03909316602485015260448401919091526064830152608482015260a40160006040518083038186803b15156108d257600080fd5b6102c65a03f415156108e357600080fd5b5050505b60019091019061074c565b42600b555b505050505050565b60036109096103fe565b8114156100f85773__SortRLib______________________________63534e1918600e60405160e060020a63ffffffff8416028152600481019190915260240160006040518083038186803b151561096057600080fd5b6102c65a03f4151561097157600080fd5b5050506103f5565b600080600080600080600080600060046109916103fe565b8114156100f8576109a18b61108e565b600c54939a509198509650945073__TransactLib___________________________9063bc2e368c908860006040516020015260405160e060020a63ffffffff85160281526004810192909252602482015260440160206040518083038186803b1515610a0d57600080fd5b6102c65a03f41515610a1e57600080fd5b505050604051805160026000908152600660205290995073__AdrLib________________________________9150632c2fc20e90600080516020611356833981519152908a906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b1515610aad57600080fd5b6102c65a03f41515610abe57600080fd5b5050506040518051905015610be85786600160a060020a0316630ff372828960006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610b1c57600080fd5b6102c65a03f11515610b2d57600080fd5b5050506040518051600c80548290039055600d546005549195508502935073__TransactLib___________________________915063e2992d2990848a3060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b1515610bc657600080fd5b6102c65a03f41515610bd757600080fd5b505050604051805160055550610cdd565b6000808052600660205273__AdrLib________________________________90632c2fc20e90600080516020611336833981519152908a906040516020015260405160e060020a63ffffffff85160281526004810192909252600160a060020a0316602482015260440160206040518083038186803b1515610c6957600080fd5b6102c65a03f41515610c7a57600080fd5b5050506040518051905015610cd85786600160a060020a0316630ff372828960006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610b1c57600080fd5b600092505b5095999098509650505050505050565b6001610cf76103fe565b8114156100f85760015433600160a060020a03908116911614156100f857600c82905542600a8190556001547fdf963fee409850630585bd095a505a9a956ef373cd706eb6eddec02d0a36731991600160a060020a039091169084906040518084600160a060020a0316600160a060020a03168152602001838152602001828152602001935050505060405180910390a15b5050565b60008060008060006005610d9f6103fe565b8114156100f8576000600c54111561108957600260005260066020526000805160206113568339815191525415610f5857600091505b6002600052600660205260008051602061135683398151915254821015610f535760026000526006602052600080516020611356833981519152805483908110610e1b57fe5b6000918252602082200154600c54600160a060020a03909116945084916335f7f5e291906040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b1515610e7b57600080fd5b6102c65a03f11515610e8c57600080fd5b5050506040518051906020018051600c805484900390556005549298508881029750955073__TransactLib___________________________9163e2992d29915087863060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b1515610f2b57600080fd5b6102c65a03f41515610f3c57600080fd5b505050604051805160055550600190910190610dd5565b611089565b600354600c54600160a060020a03909116906335f7f5e29060006040516040015260405160e060020a63ffffffff841602815260048101919091526024016040805180830381600087803b1515610fae57600080fd5b6102c65a03f11515610fbf57600080fd5b5050506040518051906020018051600c80548490039055600554600354939950898202985090965073__TransactLib___________________________9263e2992d2992508890600160a060020a03163060006040516020015260405160e060020a63ffffffff871602815260048101949094526024840192909252600160a060020a03908116604484015216606482015260840160206040518083038186803b151561106b57600080fd5b6102c65a03f4151561107c57600080fd5b5050506040518051600555505b6108f7565b600080808073__SortRLib______________________________6391871092600e87846040516080015260405160e060020a63ffffffff85160281526004810192909252602482015260440160806040518083038186803b15156110f157600080fd5b6102c65a03f4151561110257600080fd5b5050506040518051906020018051906020018051906020018051905093509350935093509193509193565b600454600160a060020a031690565b600454600090600160a060020a03166382076a7182604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561039557600080fd5b60005433600160a060020a03908116911614156100f8576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790556103f5565b600c54600a549091565b60016111de6103fe565b8114156100f85760015433600160a060020a03908116911614156100f857600d8290554260098190557fae46785019700e30375a5d7b4f91e32f8060ef085111f896ebf889450aa2ab5a9060405190815260200160405180910390a1610d89565b600061124961113c565b905090565b600d54600854600954600091429101101561126b5750600061126f565b5060015b9091565b60005433600160a060020a03908116911614156100f85760008281526006602052604090208054600181016112a883826112ee565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316179055610d89565b600054600160a060020a031681565b81548183558181151161131257600083815260209020611312918101908301611317565b505050565b6103b291905b80821115611331576000815560010161131d565b5090560054cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f88819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29a165627a7a72305820f752bc434dbbe29b364f99321378917087b64d37bb9e3d4ae8e09d0b334442570029","sourceMap":"222:6464:14:-;;;594:18:3;;;-1:-1:-1;;;;;;594:18:3;;;;;;616:25;;;;;;;;153:9:9;131:31;;;;166:32;;979:53:14;;;;;;;;;;;;;;;;;;;;;;1657:5:3;:11;;-1:-1:-1;;;;;1657:11:3;;;-1:-1:-1;;;;;;1657:11:3;;;;;;;:5;1674:18;;1682:10;1674:18;;;;;;;;;;;;;-1:-1:-1;;222:6464:14;;;;;;","deployedSourceMap":"222:6464:14:-;;;;;;;;-1:-1:-1;;;222:6464:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2113:90:3;;;;;;;;;;;;;;;;;;;;;;;;;;;1769:72;;;;;;;;;;;;-1:-1:-1;;;;;1769:72:3;;;;;2316:59;;;;;;;;;;;;2017:92;;;;;;;;;;;;3472:1090:14;;;;;;;;;;;;1954:664;;;;;;;;;;;;2622:665;;;;;;;;;;;;4566:1000;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1110:168;;;;;;;;;;;;;;5611:989;;;;;;;;;;;;3291:137;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3291:137:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2389:74:3;;;;;;;;;;;;;;;-1:-1:-1;;;;;2389:74:3;;;;;;;;;;;;;;;2207:105;;;;;;;;;;;;1701:64;;;;;;;;;;;;-1:-1:-1;;;;;1701:64:3;;;1409:157:14;;;;;;;;;;;;1282:123;;;;;;;;;;;;;;6604:79;;;;;;;;;;;;1570:290;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1845:98:3;;;;;;;;;;;;;;-1:-1:-1;;;;;1845:98:3;;;202:20;;;;;;;;;;;;2113:90;2173:11;;2147:4;;-1:-1:-1;;;;;2173:11:3;2166:30;2147:4;2166:32;;;;;;;-1:-1:-1;;;2166:32:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2113:90:3;;:::o;1769:72::-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1819:11;:17;;-1:-1:-1;;1819:17:3;-1:-1:-1;;;;;1819:17:3;;;;;866:70;1769:72;:::o;2316:59::-;2364:6;;2316:59;:::o;2017:92::-;2078:11;;2052:4;;-1:-1:-1;;;;;2078:11:3;2071:31;2052:4;2071:33;;;;;;;-1:-1:-1;;;2071:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;3472:1090:14;3509:12;3531:7;3571:12;3596:6;3609:11;3626;3643:9;3658:8;3673:14;3693;3831:6;3500:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;3541:24:14;;3524:1;;-1:-1:-1;3541:24:14;-1:-1:-1;3586:4:14;;-1:-1:-1;3710:3:14;-1:-1:-1;;3710:16:14;;-1:-1:-1;3733:825:14;3740:7;3733:825;;;3786:3;3773:9;3761:21;;:28;3757:795;;3803:15;:13;:15::i;:::-;3799:19;;3840:7;3831:16;;3826:642;3853:2;3849:1;:6;3826:642;;;3896:22;3910:7;3896:13;:22::i;:::-;3872:46;;-1:-1:-1;3872:46:14;;-1:-1:-1;3872:46:14;-1:-1:-1;3872:46:14;-1:-1:-1;3932:9:14;;;3928:532;;;3993:28;4013:7;3993:19;:28::i;:::-;-1:-1:-1;;4033:9:14;;;;;3928:532;;;4070:1;4063:4;:8;4059:401;;;4207:9;;;;;4059:401;;;4298:1;4286:13;;4382:3;4370:15;;4444:5;;4059:401;3857:3;;;;;3826:642;;;4479:13;;;4475:68;;4514:5;4504:15;;4529:5;;4475:68;3733:825;;;3472:1090;;;;;;;;;;;;:::o;1954:664::-;1991:11;2008:9;2023:8;2037:12;2093:6;1982:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;2055:25:14;;:12;:27;;;;;-1:-1:-1;;;2055:27:14;;;;;;;;;;;;-1:-1:-1;2055:27:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2102:1;2093:10;;2088:251;2109:18;;;:15;:18;;-1:-1:-1;;;;;;;;;;;2109:25:14;2105:29;;2088:251;;;2187:18;;;:15;:18;;-1:-1:-1;;;;;;;;;;;2187:21:14;;2206:1;;2187:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;2187:21:14;;2180:44;;:46;;;;;;;-1:-1:-1;;;2180:46:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2149:77;;-1:-1:-1;2149:77:14;;-1:-1:-1;2149:77:14;-1:-1:-1;2180:46:14;;-1:-1:-1;;2234:99:14;;;;2284:18;;;:15;:18;;-1:-1:-1;;;;;;;;;;;2284:21:14;;2257:26;;;;:12;;2284:18;2303:1;;2284:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2284:21:14;2306:6;2314:4;2320:3;2257:67;;;;;-1:-1:-1;;;2257:67:14;;;;;;;;;;-1:-1:-1;;;;;2257:67:14;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2257:67:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2234:99;2136:3;;;;;2088:251;;;2353:1;2349:5;;2344:245;2376:1;2360:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;2360:25:14;2356:29;;2344:245;;;2453:1;2437:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;2437:21:14;;2456:1;;2437:21;;;;;;;;;;;;;;;-1:-1:-1;;;;;2437:21:14;;2428:46;;:48;;;;;;;-1:-1:-1;;;2428:48:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2400:76;;-1:-1:-1;2400:76:14;;-1:-1:-1;2400:76:14;-1:-1:-1;2428:48:14;;-1:-1:-1;;2484:99:14;;;;2550:1;2534:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;2534:21:14;;2507:26;;;;:12;;2534:18;2553:1;;2534:21;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2534:21:14;2556:6;2564:4;2570:3;2507:67;;;;;-1:-1:-1;;;2507:67:14;;;;;;;;;;-1:-1:-1;;;;;2507:67:14;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2507:67:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2484:99;2387:3;;;;;2344:245;;;2610:3;2594:13;:19;1524:82:3;1954:664:14;;;;;;:::o;2622:665::-;2648:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;2657:25:14;;:12;:27;;;;;-1:-1:-1;;;2657:27:14;;;;;;;;;;;;-1:-1:-1;2657:27:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1524:82:3;;4566:1000:14;4623:4;4629;4641:15;4662:11;4679;4696:9;4711:8;4725:21;4752:18;4611:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;4840:18:14;4854:3;4840:13;:18::i;:::-;4879:10;;4816:42;;-1:-1:-1;4816:42:14;;-1:-1:-1;4816:42:14;-1:-1:-1;4816:42:14;-1:-1:-1;4879:18:14;;;;4816:42;4879:26;;;;;;;;;;;-1:-1:-1;;;4879:26:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4933:1;4917:18;;;;:15;:18;;4879:26;;-1:-1:-1;4917:31:14;;-1:-1:-1;4917:31:14;;-1:-1:-1;;;;;;;;;;;4917:18:14;4949:3;;4917:18;:36;;;;;;;;;-1:-1:-1;;;4917:36:14;;;;;;;;;;-1:-1:-1;;;;;4917:36:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4913:605;;;-1:-1:-1;;;;;4984:20:14;;;5005:10;4984:32;;;;;;;;;;;-1:-1:-1;;;4984:32:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5026:10;:30;;;;;;;5099:5;;5123:6;;4984:32;;-1:-1:-1;5082:22:14;;;-1:-1:-1;5123:25:14;;-1:-1:-1;5123:25:14;;5082:22;5163:3;5176:4;5026:10;5123:59;;;;;;;;;;-1:-1:-1;;;5123:59:14;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5123:59:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5114:6;:68;-1:-1:-1;4913:605:14;;;5201:18;;;;:15;:18;;:31;;;;-1:-1:-1;;;;;;;;;;;5201:18:14;5233:3;;5201:18;:36;;;;;;;;;-1:-1:-1;;;5201:36:14;;;;;;;;;;-1:-1:-1;;;;;5201:36:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5197:321;;;-1:-1:-1;;;;;5268:18:14;;;5287:10;5268:30;;;;;;;;;;;-1:-1:-1;;;5268:30:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5197:321;5508:1;5489:20;;5197:321;-1:-1:-1;5532:10:14;;5544:16;;-1:-1:-1;4566:1000:14;-1:-1:-1;;;;;;;4566:1000:14:o;1110:168::-;1159:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;987:5;;973:10;-1:-1:-1;;;;;973:19:3;;;987:5;;973:19;969:70;;;1178:10:14;:19;;;1218:3;1203:12;:18;;;1241:5;;1227:46;;-1:-1:-1;;;;;1241:5:14;;;;1178:19;;1227:46;;-1:-1:-1;;;;;1227:46:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;969:70:3;1110:168:14;;:::o;5611:989::-;5741:21;5768:18;5792:12;5810:11;5924:6;5639:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;5844:1:14;5831:10;;:14;5827:769;;;5893:1;5877:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;5877:25:14;:30;5873:717;;5933:1;5924:10;;5919:353;5956:1;5940:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;5940:25:14;5936:29;;5919:353;;;6006:1;5990:18;;:15;:18;;-1:-1:-1;;;;;;;;;;;5990:21:14;;6009:1;;5990:21;;;;;;;;;;;;;;;6076:10;;-1:-1:-1;;;;;5990:21:14;;;;-1:-1:-1;5990:21:14;;6053:22;;6076:10;6053:34;;;;;;;;;;-1:-1:-1;;;6053:34:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6099:10;:30;;;;;;;6202:6;;6023:64;;-1:-1:-1;6157:24:14;;;;-1:-1:-1;6053:34:14;-1:-1:-1;6202:25:14;;;;-1:-1:-1;6157:24:14;6242:3;6255:4;6099:10;6202:59;;;;;;;;;;-1:-1:-1;;;6202:59:14;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6202:59:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6193:6;:68;-1:-1:-1;5967:3:14;;;;;5919:353;;;5873:717;;;6386:4;;6401:10;;-1:-1:-1;;;;;6386:4:14;;;;6380:20;;6386:4;6380:32;;;;;;;;;;-1:-1:-1;;;6380:32:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6422:10;:30;;;;;;;6521:6;;6561:4;;6422:30;;-1:-1:-1;6478:24:14;;;;-1:-1:-1;6478:24:14;;-1:-1:-1;6521:25:14;;;;-1:-1:-1;6478:24:14;;-1:-1:-1;;;;;6561:4:14;6575;-1:-1:-1;6521:60:14;;;;;;;;;;-1:-1:-1;;;6521:60:14;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6521:60:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6512:6;:69;-1:-1:-1;5873:717:14;1524:82:3;;3291:137:14;3332:11;;;;3392:26;;:12;3419:3;3332:11;3392:31;;;;;;;;;;-1:-1:-1;;;3392:31:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3385:38;;;;;;;;3291:137;;;;;:::o;2389:74:3:-;2447:11;;-1:-1:-1;;;;;2447:11:3;;2389:74::o;2207:105::-;2273:11;;2247:4;;-1:-1:-1;;;;;2273:11:3;2266:39;2247:4;2266:41;;;;;;;-1:-1:-1;;;2266:41:3;;;;;;;;;;;;;;;;;;;;;;;;;;1701:64;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1750:4;:10;;-1:-1:-1;;1750:10:3;-1:-1:-1;;;;;1750:10:3;;;;;866:70;;1409:157:14;1524:10;;1549:12;;1524:10;;1409:157::o;1282:123::-;1323:1;1543:16:3;:14;:16::i;:::-;1527:12;:32;1524:82;;;987:5;;973:10;-1:-1:-1;;;;;973:19:3;;;987:5;;973:19;969:70;;;1342:5:14;:11;;;1375:3;1359:13;:19;;;1384:16;;;;;;;;;;;;;;;;969:70:3;;6604:79:14;6638:4;6657:21;:19;:21::i;:::-;6650:28;;6604:79;:::o;1570:290::-;1682:5;;1742:12;;1726:13;;1611:8;;1757:3;1726:28;;:34;1722:115;;;-1:-1:-1;1785:5:14;1722:115;;;-1:-1:-1;1826:4:14;1722:115;1570:290;;:::o;1845:98:3:-;884:5;;870:10;-1:-1:-1;;;;;870:19:3;;;884:5;;870:19;866:70;;;1910:18;;;;:15;:18;;;;;:28;;;;;;:18;:28;;:::i;:::-;-1:-1:-1;1910:28:3;;;;;;;;;;;-1:-1:-1;;1910:28:3;-1:-1:-1;;;;;1910:28:3;;;;;866:70;;202:20;;;-1:-1:-1;;;;;202:20:3;;:::o;222:6464:14:-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;","source":"pragma solidity ^0.4.4;\n\nimport \"./IPV.sol\";\nimport \"./IHouse.sol\";\nimport \"./IBattery.sol\";\nimport \"./IGrid.sol\";\nimport \"./SortRLib.sol\";\nimport \"./AdrLib.sol\";\nimport \"./TransactLib.sol\";\nimport \"./GeneralDevice.sol\";\n\ncontract SinglePV is GeneralDevice, IPV {\n\n using AdrLib for address[];\n using TransactLib for *;\n using SortRLib for *;\n\n // one contract is associated to one particular PV panel in the network.\n // later we need to modify the parent contract that creates each PV contract - configuration.sol\n\n uint production; // Production of electricity (supply: negative)\n uint price;\n\n SortRLib.RankMap draftRankMap;\n\n// ======= Modifiers =======\n\n// ======= Event Logs =======\n\n event ProductionLog(address adr, uint produc, uint prodAt);\n //event ConfigurationLog(string confMod, uint statusAt);\n event PriceUpdate(uint updateAt);\n\n// ======= Basic Functionalities =======\n\n // --- 0. Upon contract creation and configuration ---\n\n function SinglePV(address adr) GeneralDevice(adr) { }\n\n // --- 1. set and get PV price & production every 15 min (or less) ---\n\n function setProduction(uint produc) public timed(1) ownerOnly {\n production = produc;\n prodStatusAt = now;\n ProductionLog(owner, production, prodStatusAt);\n }\n\n function setPrice(uint prs) public timed(1) ownerOnly {\n price = prs;\n priceStatusAt = now;\n PriceUpdate(now);\n }\n\n function getProduction() external view returns (uint prod, uint prodAt) {//timed(queryTime,prodTimeOut)\n prod = production;\n prodAt = prodStatusAt;\n }\n\n function getPrice() public view returns (uint prs, bool updatedOrNot) { //connectedHouseOnly external\n prs = price;\n //prsAt = priceStatusAt;\n if (priceStatusAt + priceTimeOut < now) {\n updatedOrNot = false;\n } else {\n updatedOrNot = true;\n }\n //adr = owner;\n }\n\n // --- 3. PV can provide energy to houses. ---\n // --- Sort the list of ranks. ---\n\n function askForRank() timed(3) {\n uint consum;\n uint rank;\n uint tot;\n bool updated;\n draftRankMap.initRnkTable();\n for (uint i = 0; i < connectedDevice[0].length; i++) {\n (consum, rank, tot, updated) = IHouse(connectedDevice[0][i]).getSortedPrice();\n if (updated) {\n draftRankMap.addToRnkTable(connectedDevice[0][i],consum, rank, tot);\n }\n }\n for (i = 0; i < connectedDevice[2].length; i++) {\n (consum,rank,tot,updated) = IBattery(connectedDevice[2][i]).getSortedPrice();\n if (updated) {\n draftRankMap.addToRnkTable(connectedDevice[2][i],consum, rank, tot);\n }\n }\n lastRankingAt = now;\n }\n\n function sortRank() timed(3) {\n draftRankMap.sortRnkTable();\n /*\n // In case there is still excess, need to ask connectedBattery to buy for the extra...as much as possible\n if (connectedBattery.length != 0) {\n for (i=0; i<connectedBattery.length; i++) {\n uint prs = 0;\n uint cap = 0;\n (prs, cap) = IBattery(grid).getExcess();\n\n }\n }\n // if the grid is connected -> add the price from the grid to the end of the sorted list\n if (grid != 0x0) {\n uint tP = 0;\n bool tF = false;\n (tP,tF) = IGrid(grid).getPrice();\n setPriceQueryInfo(grid,tP,tF);\n sortedPriceQueryInfo[num] = grid;\n }*/\n }\n\n function getSortedRank(uint _id) returns(address adr, uint consum, uint rank, uint tot) {\n return draftRankMap.getSortedList(_id);\n }\n\n // --- 4. Initiate e transaction ---\n\n function sellEnergy() timed(4) {\n uint counter = 0;\n uint tL = draftRankMap.totalLength;\n bool waiting = true;\n uint i;\n\n address adr;\n uint consum;\n uint rank;\n uint tot;\n\n uint lastIndex;\n uint lastITime = now - 15 seconds;\n\n while (waiting) {\n if (lastITime + 1 seconds <= now) {\n i = getTimerIndex();\n for (uint j = counter; j < tL; j++) {\n (adr,consum,rank,tot) = getSortedRank(counter);\n if (rank == i) {\n // time to make transaction\n initiateTransaction(counter);\n counter++;\n } else if (rank < i) {\n // the transaction of this ranking has been done globally. No more transaction should be made for this ranking.\n counter++;\n } else {\n // when rank > i, need to wait\n lastIndex = i; // note down the index that has been requested last time.\n lastITime = now; // The next query should be ideally in 15s...\n break;\n }\n }\n if (counter >= tL) {\n waiting = false;\n break;\n }\n\n }\n }\n }\n\n function initiateTransaction(uint _id) timed(4) returns (uint, uint) {\n uint giveoutVol;\n address adr;\n uint consum;\n uint rank;\n uint tot;\n uint whatDeviceAccept;\n uint receivedMoney;\n //adr = sortedRankingInfo[_id];\n (adr,consum,rank,tot) = getSortedRank(_id);\n giveoutVol = production.findMin(consum);\n if (connectedDevice[2].assertInside(adr)) {\n whatDeviceAccept = IBattery(adr).goNoGo(giveoutVol);\n production -= whatDeviceAccept;\n receivedMoney = whatDeviceAccept*price;\n wallet = wallet.clearMoneyTransfer(receivedMoney,adr, address(this));\n } else if (connectedDevice[0].assertInside(adr)) {\n whatDeviceAccept = IHouse(adr).goNoGo(giveoutVol);\n production -= whatDeviceAccept;\n receivedMoney = whatDeviceAccept*price;\n wallet = wallet.clearMoneyTransfer(receivedMoney,adr, address(this));\n } else {\n whatDeviceAccept = 0;\n }\n return(giveoutVol, whatDeviceAccept);\n }\n\n // --- 5. Deal with excess energy ---\n\n function sellExcess() timed(5) {\n // after all, if there's still excess and the connected Battery still have the capacity.\n uint whatDeviceAccept;\n uint receivedMoney;\n uint unitPrs;\n address adr;\n if (production > 0) {\n //ToBattery\n if (connectedDevice[2].length != 0) {\n for (uint i = 0; i < connectedDevice[2].length; i++) {\n adr = connectedDevice[2][i];\n (whatDeviceAccept, unitPrs) = IBattery(adr).goExcess(production);\n production -= whatDeviceAccept;\n receivedMoney = whatDeviceAccept*unitPrs;\n wallet = wallet.clearMoneyTransfer(receivedMoney,adr, address(this));\n }\n } else {\n //ToGrid (by default, it's connected to grid)\n (whatDeviceAccept, unitPrs) = IGrid(grid).goExcess(production);\n production -= whatDeviceAccept;\n receivedMoney = whatDeviceAccept*unitPrs;\n wallet = wallet.clearMoneyTransfer(receivedMoney,grid, address(this));\n }\n }\n }\n\n function getTimeToNext() returns (uint) {\n return getTimeToNextStatus();\n }\n\n}\n","sourcePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SinglePV.sol","ast":{"attributes":{"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SinglePV.sol","exportedSymbols":{"SinglePV":[3259]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".4"]},"id":2580,"name":"PragmaDirective","src":"0:23:14"},{"attributes":{"SourceUnit":1286,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IPV.sol","file":"./IPV.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2581,"name":"ImportDirective","src":"25:19:14"},{"attributes":{"SourceUnit":1261,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IHouse.sol","file":"./IHouse.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2582,"name":"ImportDirective","src":"45:22:14"},{"attributes":{"SourceUnit":1180,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IBattery.sol","file":"./IBattery.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2583,"name":"ImportDirective","src":"68:24:14"},{"attributes":{"SourceUnit":1228,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/IGrid.sol","file":"./IGrid.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2584,"name":"ImportDirective","src":"93:21:14"},{"attributes":{"SourceUnit":4003,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/SortRLib.sol","file":"./SortRLib.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2585,"name":"ImportDirective","src":"115:24:14"},{"attributes":{"SourceUnit":38,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/AdrLib.sol","file":"./AdrLib.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2586,"name":"ImportDirective","src":"140:22:14"},{"attributes":{"SourceUnit":4165,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/TransactLib.sol","file":"./TransactLib.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2587,"name":"ImportDirective","src":"163:27:14"},{"attributes":{"SourceUnit":773,"absolutePath":"/Users/arne/Development/smart_contract/SimpleMonitor/contracts/GeneralDevice.sol","file":"./GeneralDevice.sol","scope":3260,"symbolAliases":[null],"unitAlias":""},"id":2588,"name":"ImportDirective","src":"191:29:14"},{"attributes":{"contractDependencies":[772,1285],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[3259,1285,772],"name":"SinglePV","scope":3260},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"GeneralDevice","referencedDeclaration":772,"type":"contract GeneralDevice"},"id":2589,"name":"UserDefinedTypeName","src":"243:13:14"}],"id":2590,"name":"InheritanceSpecifier","src":"243:13:14"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"IPV","referencedDeclaration":1285,"type":"contract IPV"},"id":2591,"name":"UserDefinedTypeName","src":"258:3:14"}],"id":2592,"name":"InheritanceSpecifier","src":"258:3:14"},{"children":[{"attributes":{"contractScope":null,"name":"AdrLib","referencedDeclaration":37,"type":"library AdrLib"},"id":2593,"name":"UserDefinedTypeName","src":"273:6:14"},{"attributes":{"length":null,"type":"address[] storage pointer"},"children":[{"attributes":{"name":"address","type":"address"},"id":2594,"name":"ElementaryTypeName","src":"284:7:14"}],"id":2595,"name":"ArrayTypeName","src":"284:9:14"}],"id":2596,"name":"UsingForDirective","src":"267:27:14"},{"attributes":{"typeName":null},"children":[{"attributes":{"contractScope":null,"name":"TransactLib","referencedDeclaration":4164,"type":"library TransactLib"},"id":2597,"name":"UserDefinedTypeName","src":"303:11:14"}],"id":2598,"name":"UsingForDirective","src":"297:24:14"},{"attributes":{"typeName":null},"children":[{"attributes":{"contractScope":null,"name":"SortRLib","referencedDeclaration":4002,"type":"library SortRLib"},"id":2599,"name":"UserDefinedTypeName","src":"330:8:14"}],"id":2600,"name":"UsingForDirective","src":"324:21:14"},{"attributes":{"constant":false,"name":"production","scope":3259,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2601,"name":"ElementaryTypeName","src":"524:4:14"}],"id":2602,"name":"VariableDeclaration","src":"524:18:14"},{"attributes":{"constant":false,"name":"price","scope":3259,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2603,"name":"ElementaryTypeName","src":"608:4:14"}],"id":2604,"name":"VariableDeclaration","src":"608:13:14"},{"attributes":{"constant":false,"name":"draftRankMap","scope":3259,"stateVariable":true,"storageLocation":"default","type":"struct SortRLib.RankMap storage ref","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"SortRLib.RankMap","referencedDeclaration":3649,"type":"struct SortRLib.RankMap storage pointer"},"id":2605,"name":"UserDefinedTypeName","src":"626:16:14"}],"id":2606,"name":"VariableDeclaration","src":"626:29:14"},{"attributes":{"anonymous":false,"name":"ProductionLog"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"adr","scope":2614,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2607,"name":"ElementaryTypeName","src":"741:7:14"}],"id":2608,"name":"VariableDeclaration","src":"741:11:14"},{"attributes":{"constant":false,"indexed":false,"name":"produc","scope":2614,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2609,"name":"ElementaryTypeName","src":"754:4:14"}],"id":2610,"name":"VariableDeclaration","src":"754:11:14"},{"attributes":{"constant":false,"indexed":false,"name":"prodAt","scope":2614,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2611,"name":"ElementaryTypeName","src":"767:4:14"}],"id":2612,"name":"VariableDeclaration","src":"767:11:14"}],"id":2613,"name":"ParameterList","src":"740:39:14"}],"id":2614,"name":"EventDefinition","src":"721:59:14"},{"attributes":{"anonymous":false,"name":"PriceUpdate"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"updateAt","scope":2618,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2615,"name":"ElementaryTypeName","src":"860:4:14"}],"id":2616,"name":"VariableDeclaration","src":"860:13:14"}],"id":2617,"name":"ParameterList","src":"859:15:14"}],"id":2618,"name":"EventDefinition","src":"842:33:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"name":"SinglePV","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"adr","scope":2627,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2619,"name":"ElementaryTypeName","src":"997:7:14"}],"id":2620,"name":"VariableDeclaration","src":"997:11:14"}],"id":2621,"name":"ParameterList","src":"996:13:14"},{"attributes":{"parameters":[null]},"children":[],"id":2625,"name":"ParameterList","src":"1029:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":772,"type":"type(contract GeneralDevice)","value":"GeneralDevice"},"id":2622,"name":"Identifier","src":"1010:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2620,"type":"address","value":"adr"},"id":2623,"name":"Identifier","src":"1024:3:14"}],"id":2624,"name":"ModifierInvocation","src":"1010:18:14"},{"attributes":{"statements":[null]},"children":[],"id":2626,"name":"Block","src":"1029:3:14"}],"id":2627,"name":"FunctionDefinition","src":"979:53:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setProduction","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"produc","scope":2652,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2628,"name":"ElementaryTypeName","src":"1133:4:14"}],"id":2629,"name":"VariableDeclaration","src":"1133:11:14"}],"id":2630,"name":"ParameterList","src":"1132:13:14"},{"attributes":{"parameters":[null]},"children":[],"id":2636,"name":"ParameterList","src":"1172:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2631,"name":"Identifier","src":"1153:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2632,"name":"Literal","src":"1159:1:14"}],"id":2633,"name":"ModifierInvocation","src":"1153:8:14"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"modifier ()","value":"ownerOnly"},"id":2634,"name":"Identifier","src":"1162:9:14"}],"id":2635,"name":"ModifierInvocation","src":"1162:9:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":2637,"name":"Identifier","src":"1178:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2629,"type":"uint256","value":"produc"},"id":2638,"name":"Identifier","src":"1191:6:14"}],"id":2639,"name":"Assignment","src":"1178:19:14"}],"id":2640,"name":"ExpressionStatement","src":"1178:19:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1275,"type":"uint256","value":"prodStatusAt"},"id":2641,"name":"Identifier","src":"1203:12:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2642,"name":"Identifier","src":"1218:3:14"}],"id":2643,"name":"Assignment","src":"1203:18:14"}],"id":2644,"name":"ExpressionStatement","src":"1203:18:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2614,"type":"function (address,uint256,uint256)","value":"ProductionLog"},"id":2645,"name":"Identifier","src":"1227:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":548,"type":"address","value":"owner"},"id":2646,"name":"Identifier","src":"1241:5:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":2647,"name":"Identifier","src":"1248:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1275,"type":"uint256","value":"prodStatusAt"},"id":2648,"name":"Identifier","src":"1260:12:14"}],"id":2649,"name":"FunctionCall","src":"1227:46:14"}],"id":2650,"name":"ExpressionStatement","src":"1227:46:14"}],"id":2651,"name":"Block","src":"1172:106:14"}],"id":2652,"name":"FunctionDefinition","src":"1110:168:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setPrice","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"prs","scope":2675,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2653,"name":"ElementaryTypeName","src":"1300:4:14"}],"id":2654,"name":"VariableDeclaration","src":"1300:8:14"}],"id":2655,"name":"ParameterList","src":"1299:10:14"},{"attributes":{"parameters":[null]},"children":[],"id":2661,"name":"ParameterList","src":"1336:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2656,"name":"Identifier","src":"1317:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":2657,"name":"Literal","src":"1323:1:14"}],"id":2658,"name":"ModifierInvocation","src":"1317:8:14"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"modifier ()","value":"ownerOnly"},"id":2659,"name":"Identifier","src":"1326:9:14"}],"id":2660,"name":"ModifierInvocation","src":"1326:9:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2604,"type":"uint256","value":"price"},"id":2662,"name":"Identifier","src":"1342:5:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2654,"type":"uint256","value":"prs"},"id":2663,"name":"Identifier","src":"1350:3:14"}],"id":2664,"name":"Assignment","src":"1342:11:14"}],"id":2665,"name":"ExpressionStatement","src":"1342:11:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"uint256","value":"priceStatusAt"},"id":2666,"name":"Identifier","src":"1359:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2667,"name":"Identifier","src":"1375:3:14"}],"id":2668,"name":"Assignment","src":"1359:19:14"}],"id":2669,"name":"ExpressionStatement","src":"1359:19:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2618,"type":"function (uint256)","value":"PriceUpdate"},"id":2670,"name":"Identifier","src":"1384:11:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2671,"name":"Identifier","src":"1396:3:14"}],"id":2672,"name":"FunctionCall","src":"1384:16:14"}],"id":2673,"name":"ExpressionStatement","src":"1384:16:14"}],"id":2674,"name":"Block","src":"1336:69:14"}],"id":2675,"name":"FunctionDefinition","src":"1282:123:14"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getProduction","payable":false,"scope":3259,"stateMutability":"view","superFunction":null,"visibility":"external"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2676,"name":"ParameterList","src":"1431:2:14"},{"children":[{"attributes":{"constant":false,"name":"prod","scope":2691,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2677,"name":"ElementaryTypeName","src":"1457:4:14"}],"id":2678,"name":"VariableDeclaration","src":"1457:9:14"},{"attributes":{"constant":false,"name":"prodAt","scope":2691,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2679,"name":"ElementaryTypeName","src":"1468:4:14"}],"id":2680,"name":"VariableDeclaration","src":"1468:11:14"}],"id":2681,"name":"ParameterList","src":"1456:24:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2678,"type":"uint256","value":"prod"},"id":2682,"name":"Identifier","src":"1517:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":2683,"name":"Identifier","src":"1524:10:14"}],"id":2684,"name":"Assignment","src":"1517:17:14"}],"id":2685,"name":"ExpressionStatement","src":"1517:17:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2680,"type":"uint256","value":"prodAt"},"id":2686,"name":"Identifier","src":"1540:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1275,"type":"uint256","value":"prodStatusAt"},"id":2687,"name":"Identifier","src":"1549:12:14"}],"id":2688,"name":"Assignment","src":"1540:21:14"}],"id":2689,"name":"ExpressionStatement","src":"1540:21:14"}],"id":2690,"name":"Block","src":"1481:85:14"}],"id":2691,"name":"FunctionDefinition","src":"1409:157:14"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getPrice","payable":false,"scope":3259,"stateMutability":"view","superFunction":1284,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2692,"name":"ParameterList","src":"1587:2:14"},{"children":[{"attributes":{"constant":false,"name":"prs","scope":2719,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2693,"name":"ElementaryTypeName","src":"1611:4:14"}],"id":2694,"name":"VariableDeclaration","src":"1611:8:14"},{"attributes":{"constant":false,"name":"updatedOrNot","scope":2719,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2695,"name":"ElementaryTypeName","src":"1621:4:14"}],"id":2696,"name":"VariableDeclaration","src":"1621:17:14"}],"id":2697,"name":"ParameterList","src":"1610:29:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2694,"type":"uint256","value":"prs"},"id":2698,"name":"Identifier","src":"1676:3:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2604,"type":"uint256","value":"price"},"id":2699,"name":"Identifier","src":"1682:5:14"}],"id":2700,"name":"Assignment","src":"1676:11:14"}],"id":2701,"name":"ExpressionStatement","src":"1676:11:14"},{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"uint256","value":"priceStatusAt"},"id":2702,"name":"Identifier","src":"1726:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1271,"type":"uint256","value":"priceTimeOut"},"id":2703,"name":"Identifier","src":"1742:12:14"}],"id":2704,"name":"BinaryOperation","src":"1726:28:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2705,"name":"Identifier","src":"1757:3:14"}],"id":2706,"name":"BinaryOperation","src":"1726:34:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2696,"type":"bool","value":"updatedOrNot"},"id":2707,"name":"Identifier","src":"1770:12:14"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2708,"name":"Literal","src":"1785:5:14"}],"id":2709,"name":"Assignment","src":"1770:20:14"}],"id":2710,"name":"ExpressionStatement","src":"1770:20:14"}],"id":2711,"name":"Block","src":"1762:35:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2696,"type":"bool","value":"updatedOrNot"},"id":2712,"name":"Identifier","src":"1811:12:14"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":2713,"name":"Literal","src":"1826:4:14"}],"id":2714,"name":"Assignment","src":"1811:19:14"}],"id":2715,"name":"ExpressionStatement","src":"1811:19:14"}],"id":2716,"name":"Block","src":"1803:34:14"}],"id":2717,"name":"IfStatement","src":"1722:115:14"}],"id":2718,"name":"Block","src":"1640:220:14"}],"id":2719,"name":"FunctionDefinition","src":"1570:290:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"askForRank","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2720,"name":"ParameterList","src":"1973:2:14"},{"attributes":{"parameters":[null]},"children":[],"id":2724,"name":"ParameterList","src":"1985:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2721,"name":"Identifier","src":"1976:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"33","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 3","value":"3"},"id":2722,"name":"Literal","src":"1982:1:14"}],"id":2723,"name":"ModifierInvocation","src":"1976:8:14"},{"children":[{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"consum","scope":2841,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2725,"name":"ElementaryTypeName","src":"1991:4:14"}],"id":2726,"name":"VariableDeclaration","src":"1991:11:14"}],"id":2727,"name":"VariableDeclarationStatement","src":"1991:11:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"rank","scope":2841,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2728,"name":"ElementaryTypeName","src":"2008:4:14"}],"id":2729,"name":"VariableDeclaration","src":"2008:9:14"}],"id":2730,"name":"VariableDeclarationStatement","src":"2008:9:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"tot","scope":2841,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2731,"name":"ElementaryTypeName","src":"2023:4:14"}],"id":2732,"name":"VariableDeclaration","src":"2023:8:14"}],"id":2733,"name":"VariableDeclarationStatement","src":"2023:8:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"updated","scope":2841,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2734,"name":"ElementaryTypeName","src":"2037:4:14"}],"id":2735,"name":"VariableDeclaration","src":"2037:12:14"}],"id":2736,"name":"VariableDeclarationStatement","src":"2037:12:14"},{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"initRnkTable","referencedDeclaration":3661,"type":"function (struct SortRLib.RankMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2606,"type":"struct SortRLib.RankMap storage ref","value":"draftRankMap"},"id":2737,"name":"Identifier","src":"2055:12:14"}],"id":2739,"name":"MemberAccess","src":"2055:25:14"}],"id":2740,"name":"FunctionCall","src":"2055:27:14"}],"id":2741,"name":"ExpressionStatement","src":"2055:27:14"},{"children":[{"attributes":{"assignments":[2743]},"children":[{"attributes":{"constant":false,"name":"i","scope":2841,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2742,"name":"ElementaryTypeName","src":"2093:4:14"}],"id":2743,"name":"VariableDeclaration","src":"2093:6:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2744,"name":"Literal","src":"2102:1:14"}],"id":2745,"name":"VariableDeclarationStatement","src":"2093:10:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2746,"name":"Identifier","src":"2105:1:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2747,"name":"Identifier","src":"2109:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2748,"name":"Literal","src":"2125:1:14"}],"id":2749,"name":"IndexAccess","src":"2109:18:14"}],"id":2750,"name":"MemberAccess","src":"2109:25:14"}],"id":2751,"name":"BinaryOperation","src":"2105:29:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2752,"name":"Identifier","src":"2136:1:14"}],"id":2753,"name":"UnaryOperation","src":"2136:3:14"}],"id":2754,"name":"ExpressionStatement","src":"2136:3:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2726,"type":"uint256","value":"consum"},"id":2755,"name":"Identifier","src":"2150:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2729,"type":"uint256","value":"rank"},"id":2756,"name":"Identifier","src":"2158:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2732,"type":"uint256","value":"tot"},"id":2757,"name":"Identifier","src":"2164:3:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2735,"type":"bool","value":"updated"},"id":2758,"name":"Identifier","src":"2169:7:14"}],"id":2759,"name":"TupleExpression","src":"2149:28:14"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256,uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getSortedPrice","referencedDeclaration":1249,"type":"function () external returns (uint256,uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IHouse","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1260,"type":"type(contract IHouse)","value":"IHouse"},"id":2760,"name":"Identifier","src":"2180:6:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2761,"name":"Identifier","src":"2187:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2762,"name":"Literal","src":"2203:1:14"}],"id":2763,"name":"IndexAccess","src":"2187:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2764,"name":"Identifier","src":"2206:1:14"}],"id":2765,"name":"IndexAccess","src":"2187:21:14"}],"id":2766,"name":"FunctionCall","src":"2180:29:14"}],"id":2767,"name":"MemberAccess","src":"2180:44:14"}],"id":2768,"name":"FunctionCall","src":"2180:46:14"}],"id":2769,"name":"Assignment","src":"2149:77:14"}],"id":2770,"name":"ExpressionStatement","src":"2149:77:14"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2735,"type":"bool","value":"updated"},"id":2771,"name":"Identifier","src":"2238:7:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToRnkTable","referencedDeclaration":3701,"type":"function (struct SortRLib.RankMap storage pointer,address,uint256,uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2606,"type":"struct SortRLib.RankMap storage ref","value":"draftRankMap"},"id":2772,"name":"Identifier","src":"2257:12:14"}],"id":2774,"name":"MemberAccess","src":"2257:26:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2775,"name":"Identifier","src":"2284:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2776,"name":"Literal","src":"2300:1:14"}],"id":2777,"name":"IndexAccess","src":"2284:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2778,"name":"Identifier","src":"2303:1:14"}],"id":2779,"name":"IndexAccess","src":"2284:21:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2726,"type":"uint256","value":"consum"},"id":2780,"name":"Identifier","src":"2306:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2729,"type":"uint256","value":"rank"},"id":2781,"name":"Identifier","src":"2314:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2732,"type":"uint256","value":"tot"},"id":2782,"name":"Identifier","src":"2320:3:14"}],"id":2783,"name":"FunctionCall","src":"2257:67:14"}],"id":2784,"name":"ExpressionStatement","src":"2257:67:14"}],"id":2785,"name":"Block","src":"2247:86:14"}],"id":2786,"name":"IfStatement","src":"2234:99:14"}],"id":2787,"name":"Block","src":"2141:198:14"}],"id":2788,"name":"ForStatement","src":"2088:251:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2789,"name":"Identifier","src":"2349:1:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2790,"name":"Literal","src":"2353:1:14"}],"id":2791,"name":"Assignment","src":"2349:5:14"}],"id":2792,"name":"ExpressionStatement","src":"2349:5:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2793,"name":"Identifier","src":"2356:1:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2794,"name":"Identifier","src":"2360:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2795,"name":"Literal","src":"2376:1:14"}],"id":2796,"name":"IndexAccess","src":"2360:18:14"}],"id":2797,"name":"MemberAccess","src":"2360:25:14"}],"id":2798,"name":"BinaryOperation","src":"2356:29:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2799,"name":"Identifier","src":"2387:1:14"}],"id":2800,"name":"UnaryOperation","src":"2387:3:14"}],"id":2801,"name":"ExpressionStatement","src":"2387:3:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2726,"type":"uint256","value":"consum"},"id":2802,"name":"Identifier","src":"2401:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2729,"type":"uint256","value":"rank"},"id":2803,"name":"Identifier","src":"2408:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2732,"type":"uint256","value":"tot"},"id":2804,"name":"Identifier","src":"2413:3:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2735,"type":"bool","value":"updated"},"id":2805,"name":"Identifier","src":"2417:7:14"}],"id":2806,"name":"TupleExpression","src":"2400:25:14"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256,uint256,bool)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getSortedPrice","referencedDeclaration":1156,"type":"function () view external returns (uint256,uint256,uint256,bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IBattery","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1179,"type":"type(contract IBattery)","value":"IBattery"},"id":2807,"name":"Identifier","src":"2428:8:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2808,"name":"Identifier","src":"2437:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2809,"name":"Literal","src":"2453:1:14"}],"id":2810,"name":"IndexAccess","src":"2437:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2811,"name":"Identifier","src":"2456:1:14"}],"id":2812,"name":"IndexAccess","src":"2437:21:14"}],"id":2813,"name":"FunctionCall","src":"2428:31:14"}],"id":2814,"name":"MemberAccess","src":"2428:46:14"}],"id":2815,"name":"FunctionCall","src":"2428:48:14"}],"id":2816,"name":"Assignment","src":"2400:76:14"}],"id":2817,"name":"ExpressionStatement","src":"2400:76:14"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2735,"type":"bool","value":"updated"},"id":2818,"name":"Identifier","src":"2488:7:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"addToRnkTable","referencedDeclaration":3701,"type":"function (struct SortRLib.RankMap storage pointer,address,uint256,uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2606,"type":"struct SortRLib.RankMap storage ref","value":"draftRankMap"},"id":2819,"name":"Identifier","src":"2507:12:14"}],"id":2821,"name":"MemberAccess","src":"2507:26:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":2822,"name":"Identifier","src":"2534:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":2823,"name":"Literal","src":"2550:1:14"}],"id":2824,"name":"IndexAccess","src":"2534:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2743,"type":"uint256","value":"i"},"id":2825,"name":"Identifier","src":"2553:1:14"}],"id":2826,"name":"IndexAccess","src":"2534:21:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2726,"type":"uint256","value":"consum"},"id":2827,"name":"Identifier","src":"2556:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2729,"type":"uint256","value":"rank"},"id":2828,"name":"Identifier","src":"2564:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2732,"type":"uint256","value":"tot"},"id":2829,"name":"Identifier","src":"2570:3:14"}],"id":2830,"name":"FunctionCall","src":"2507:67:14"}],"id":2831,"name":"ExpressionStatement","src":"2507:67:14"}],"id":2832,"name":"Block","src":"2497:86:14"}],"id":2833,"name":"IfStatement","src":"2484:99:14"}],"id":2834,"name":"Block","src":"2392:197:14"}],"id":2835,"name":"ForStatement","src":"2344:245:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1277,"type":"uint256","value":"lastRankingAt"},"id":2836,"name":"Identifier","src":"2594:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2837,"name":"Identifier","src":"2610:3:14"}],"id":2838,"name":"Assignment","src":"2594:19:14"}],"id":2839,"name":"ExpressionStatement","src":"2594:19:14"}],"id":2840,"name":"Block","src":"1985:633:14"}],"id":2841,"name":"FunctionDefinition","src":"1954:664:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"sortRank","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2842,"name":"ParameterList","src":"2639:2:14"},{"attributes":{"parameters":[null]},"children":[],"id":2846,"name":"ParameterList","src":"2651:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2843,"name":"Identifier","src":"2642:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"33","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 3","value":"3"},"id":2844,"name":"Literal","src":"2648:1:14"}],"id":2845,"name":"ModifierInvocation","src":"2642:8:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"sortRnkTable","referencedDeclaration":3901,"type":"function (struct SortRLib.RankMap storage pointer)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2606,"type":"struct SortRLib.RankMap storage ref","value":"draftRankMap"},"id":2847,"name":"Identifier","src":"2657:12:14"}],"id":2849,"name":"MemberAccess","src":"2657:25:14"}],"id":2850,"name":"FunctionCall","src":"2657:27:14"}],"id":2851,"name":"ExpressionStatement","src":"2657:27:14"}],"id":2852,"name":"Block","src":"2651:636:14"}],"id":2853,"name":"FunctionDefinition","src":"2622:665:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getSortedRank","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_id","scope":2872,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2854,"name":"ElementaryTypeName","src":"3314:4:14"}],"id":2855,"name":"VariableDeclaration","src":"3314:8:14"}],"id":2856,"name":"ParameterList","src":"3313:10:14"},{"children":[{"attributes":{"constant":false,"name":"adr","scope":2872,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2857,"name":"ElementaryTypeName","src":"3332:7:14"}],"id":2858,"name":"VariableDeclaration","src":"3332:11:14"},{"attributes":{"constant":false,"name":"consum","scope":2872,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2859,"name":"ElementaryTypeName","src":"3345:4:14"}],"id":2860,"name":"VariableDeclaration","src":"3345:11:14"},{"attributes":{"constant":false,"name":"rank","scope":2872,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2861,"name":"ElementaryTypeName","src":"3358:4:14"}],"id":2862,"name":"VariableDeclaration","src":"3358:9:14"},{"attributes":{"constant":false,"name":"tot","scope":2872,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2863,"name":"ElementaryTypeName","src":"3369:4:14"}],"id":2864,"name":"VariableDeclaration","src":"3369:8:14"}],"id":2865,"name":"ParameterList","src":"3331:47:14"},{"children":[{"attributes":{"functionReturnParameters":2865},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(address,uint256,uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"getSortedList","referencedDeclaration":4001,"type":"function (struct SortRLib.RankMap storage pointer,uint256) returns (address,uint256,uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2606,"type":"struct SortRLib.RankMap storage ref","value":"draftRankMap"},"id":2866,"name":"Identifier","src":"3392:12:14"}],"id":2867,"name":"MemberAccess","src":"3392:26:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2855,"type":"uint256","value":"_id"},"id":2868,"name":"Identifier","src":"3419:3:14"}],"id":2869,"name":"FunctionCall","src":"3392:31:14"}],"id":2870,"name":"Return","src":"3385:38:14"}],"id":2871,"name":"Block","src":"3379:49:14"}],"id":2872,"name":"FunctionDefinition","src":"3291:137:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"sellEnergy","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2873,"name":"ParameterList","src":"3491:2:14"},{"attributes":{"parameters":[null]},"children":[],"id":2877,"name":"ParameterList","src":"3503:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2874,"name":"Identifier","src":"3494:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"34","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 4","value":"4"},"id":2875,"name":"Literal","src":"3500:1:14"}],"id":2876,"name":"ModifierInvocation","src":"3494:8:14"},{"children":[{"attributes":{"assignments":[2879]},"children":[{"attributes":{"constant":false,"name":"counter","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2878,"name":"ElementaryTypeName","src":"3509:4:14"}],"id":2879,"name":"VariableDeclaration","src":"3509:12:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2880,"name":"Literal","src":"3524:1:14"}],"id":2881,"name":"VariableDeclarationStatement","src":"3509:16:14"},{"attributes":{"assignments":[2883]},"children":[{"attributes":{"constant":false,"name":"tL","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2882,"name":"ElementaryTypeName","src":"3531:4:14"}],"id":2883,"name":"VariableDeclaration","src":"3531:7:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"totalLength","referencedDeclaration":3648,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2606,"type":"struct SortRLib.RankMap storage ref","value":"draftRankMap"},"id":2884,"name":"Identifier","src":"3541:12:14"}],"id":2885,"name":"MemberAccess","src":"3541:24:14"}],"id":2886,"name":"VariableDeclarationStatement","src":"3531:34:14"},{"attributes":{"assignments":[2888]},"children":[{"attributes":{"constant":false,"name":"waiting","scope":2993,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2887,"name":"ElementaryTypeName","src":"3571:4:14"}],"id":2888,"name":"VariableDeclaration","src":"3571:12:14"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":2889,"name":"Literal","src":"3586:4:14"}],"id":2890,"name":"VariableDeclarationStatement","src":"3571:19:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"i","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2891,"name":"ElementaryTypeName","src":"3596:4:14"}],"id":2892,"name":"VariableDeclaration","src":"3596:6:14"}],"id":2893,"name":"VariableDeclarationStatement","src":"3596:6:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"adr","scope":2993,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2894,"name":"ElementaryTypeName","src":"3609:7:14"}],"id":2895,"name":"VariableDeclaration","src":"3609:11:14"}],"id":2896,"name":"VariableDeclarationStatement","src":"3609:11:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"consum","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2897,"name":"ElementaryTypeName","src":"3626:4:14"}],"id":2898,"name":"VariableDeclaration","src":"3626:11:14"}],"id":2899,"name":"VariableDeclarationStatement","src":"3626:11:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"rank","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2900,"name":"ElementaryTypeName","src":"3643:4:14"}],"id":2901,"name":"VariableDeclaration","src":"3643:9:14"}],"id":2902,"name":"VariableDeclarationStatement","src":"3643:9:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"tot","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2903,"name":"ElementaryTypeName","src":"3658:4:14"}],"id":2904,"name":"VariableDeclaration","src":"3658:8:14"}],"id":2905,"name":"VariableDeclarationStatement","src":"3658:8:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"lastIndex","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2906,"name":"ElementaryTypeName","src":"3673:4:14"}],"id":2907,"name":"VariableDeclaration","src":"3673:14:14"}],"id":2908,"name":"VariableDeclarationStatement","src":"3673:14:14"},{"attributes":{"assignments":[2910]},"children":[{"attributes":{"constant":false,"name":"lastITime","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2909,"name":"ElementaryTypeName","src":"3693:4:14"}],"id":2910,"name":"VariableDeclaration","src":"3693:14:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2911,"name":"Identifier","src":"3710:3:14"},{"attributes":{"argumentTypes":null,"hexvalue":"3135","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":"seconds","token":"number","type":"int_const 15","value":"15"},"id":2912,"name":"Literal","src":"3716:10:14"}],"id":2913,"name":"BinaryOperation","src":"3710:16:14"}],"id":2914,"name":"VariableDeclarationStatement","src":"3693:33:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2888,"type":"bool","value":"waiting"},"id":2915,"name":"Identifier","src":"3740:7:14"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2910,"type":"uint256","value":"lastITime"},"id":2916,"name":"Identifier","src":"3761:9:14"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":"seconds","token":"number","type":"int_const 1","value":"1"},"id":2917,"name":"Literal","src":"3773:9:14"}],"id":2918,"name":"BinaryOperation","src":"3761:21:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2919,"name":"Identifier","src":"3786:3:14"}],"id":2920,"name":"BinaryOperation","src":"3761:28:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2892,"type":"uint256","value":"i"},"id":2921,"name":"Identifier","src":"3799:1:14"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":743,"type":"function () returns (uint256)","value":"getTimerIndex"},"id":2922,"name":"Identifier","src":"3803:13:14"}],"id":2923,"name":"FunctionCall","src":"3803:15:14"}],"id":2924,"name":"Assignment","src":"3799:19:14"}],"id":2925,"name":"ExpressionStatement","src":"3799:19:14"},{"children":[{"attributes":{"assignments":[2927]},"children":[{"attributes":{"constant":false,"name":"j","scope":2993,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2926,"name":"ElementaryTypeName","src":"3831:4:14"}],"id":2927,"name":"VariableDeclaration","src":"3831:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2879,"type":"uint256","value":"counter"},"id":2928,"name":"Identifier","src":"3840:7:14"}],"id":2929,"name":"VariableDeclarationStatement","src":"3831:16:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2927,"type":"uint256","value":"j"},"id":2930,"name":"Identifier","src":"3849:1:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2883,"type":"uint256","value":"tL"},"id":2931,"name":"Identifier","src":"3853:2:14"}],"id":2932,"name":"BinaryOperation","src":"3849:6:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2927,"type":"uint256","value":"j"},"id":2933,"name":"Identifier","src":"3857:1:14"}],"id":2934,"name":"UnaryOperation","src":"3857:3:14"}],"id":2935,"name":"ExpressionStatement","src":"3857:3:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(address,uint256,uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2895,"type":"address","value":"adr"},"id":2936,"name":"Identifier","src":"3873:3:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2898,"type":"uint256","value":"consum"},"id":2937,"name":"Identifier","src":"3877:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2901,"type":"uint256","value":"rank"},"id":2938,"name":"Identifier","src":"3884:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2904,"type":"uint256","value":"tot"},"id":2939,"name":"Identifier","src":"3889:3:14"}],"id":2940,"name":"TupleExpression","src":"3872:21:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(address,uint256,uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2872,"type":"function (uint256) returns (address,uint256,uint256,uint256)","value":"getSortedRank"},"id":2941,"name":"Identifier","src":"3896:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2879,"type":"uint256","value":"counter"},"id":2942,"name":"Identifier","src":"3910:7:14"}],"id":2943,"name":"FunctionCall","src":"3896:22:14"}],"id":2944,"name":"Assignment","src":"3872:46:14"}],"id":2945,"name":"ExpressionStatement","src":"3872:46:14"},{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2901,"type":"uint256","value":"rank"},"id":2946,"name":"Identifier","src":"3932:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2892,"type":"uint256","value":"i"},"id":2947,"name":"Identifier","src":"3940:1:14"}],"id":2948,"name":"BinaryOperation","src":"3932:9:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":3129,"type":"function (uint256) returns (uint256,uint256)","value":"initiateTransaction"},"id":2949,"name":"Identifier","src":"3993:19:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2879,"type":"uint256","value":"counter"},"id":2950,"name":"Identifier","src":"4013:7:14"}],"id":2951,"name":"FunctionCall","src":"3993:28:14"}],"id":2952,"name":"ExpressionStatement","src":"3993:28:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2879,"type":"uint256","value":"counter"},"id":2953,"name":"Identifier","src":"4033:7:14"}],"id":2954,"name":"UnaryOperation","src":"4033:9:14"}],"id":2955,"name":"ExpressionStatement","src":"4033:9:14"}],"id":2956,"name":"Block","src":"3943:110:14"},{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2901,"type":"uint256","value":"rank"},"id":2957,"name":"Identifier","src":"4063:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2892,"type":"uint256","value":"i"},"id":2958,"name":"Identifier","src":"4070:1:14"}],"id":2959,"name":"BinaryOperation","src":"4063:8:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2879,"type":"uint256","value":"counter"},"id":2960,"name":"Identifier","src":"4207:7:14"}],"id":2961,"name":"UnaryOperation","src":"4207:9:14"}],"id":2962,"name":"ExpressionStatement","src":"4207:9:14"}],"id":2963,"name":"Block","src":"4073:154:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2907,"type":"uint256","value":"lastIndex"},"id":2964,"name":"Identifier","src":"4286:9:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2892,"type":"uint256","value":"i"},"id":2965,"name":"Identifier","src":"4298:1:14"}],"id":2966,"name":"Assignment","src":"4286:13:14"}],"id":2967,"name":"ExpressionStatement","src":"4286:13:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2910,"type":"uint256","value":"lastITime"},"id":2968,"name":"Identifier","src":"4370:9:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4178,"type":"uint256","value":"now"},"id":2969,"name":"Identifier","src":"4382:3:14"}],"id":2970,"name":"Assignment","src":"4370:15:14"}],"id":2971,"name":"ExpressionStatement","src":"4370:15:14"},{"id":2972,"name":"Break","src":"4444:5:14"}],"id":2973,"name":"Block","src":"4233:227:14"}],"id":2974,"name":"IfStatement","src":"4059:401:14"}],"id":2975,"name":"IfStatement","src":"3928:532:14"}],"id":2976,"name":"Block","src":"3862:606:14"}],"id":2977,"name":"ForStatement","src":"3826:642:14"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2879,"type":"uint256","value":"counter"},"id":2978,"name":"Identifier","src":"4479:7:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2883,"type":"uint256","value":"tL"},"id":2979,"name":"Identifier","src":"4490:2:14"}],"id":2980,"name":"BinaryOperation","src":"4479:13:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2888,"type":"bool","value":"waiting"},"id":2981,"name":"Identifier","src":"4504:7:14"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":2982,"name":"Literal","src":"4514:5:14"}],"id":2983,"name":"Assignment","src":"4504:15:14"}],"id":2984,"name":"ExpressionStatement","src":"4504:15:14"},{"id":2985,"name":"Break","src":"4529:5:14"}],"id":2986,"name":"Block","src":"4494:49:14"}],"id":2987,"name":"IfStatement","src":"4475:68:14"}],"id":2988,"name":"Block","src":"3791:761:14"}],"id":2989,"name":"IfStatement","src":"3757:795:14"}],"id":2990,"name":"Block","src":"3749:809:14"}],"id":2991,"name":"WhileStatement","src":"3733:825:14"}],"id":2992,"name":"Block","src":"3503:1059:14"}],"id":2993,"name":"FunctionDefinition","src":"3472:1090:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"initiateTransaction","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_id","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2994,"name":"ElementaryTypeName","src":"4595:4:14"}],"id":2995,"name":"VariableDeclaration","src":"4595:8:14"}],"id":2996,"name":"ParameterList","src":"4594:10:14"},{"children":[{"attributes":{"constant":false,"name":"","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3000,"name":"ElementaryTypeName","src":"4623:4:14"}],"id":3001,"name":"VariableDeclaration","src":"4623:4:14"},{"attributes":{"constant":false,"name":"","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3002,"name":"ElementaryTypeName","src":"4629:4:14"}],"id":3003,"name":"VariableDeclaration","src":"4629:4:14"}],"id":3004,"name":"ParameterList","src":"4622:12:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":2997,"name":"Identifier","src":"4605:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"34","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 4","value":"4"},"id":2998,"name":"Literal","src":"4611:1:14"}],"id":2999,"name":"ModifierInvocation","src":"4605:8:14"},{"children":[{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"giveoutVol","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3005,"name":"ElementaryTypeName","src":"4641:4:14"}],"id":3006,"name":"VariableDeclaration","src":"4641:15:14"}],"id":3007,"name":"VariableDeclarationStatement","src":"4641:15:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"adr","scope":3129,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":3008,"name":"ElementaryTypeName","src":"4662:7:14"}],"id":3009,"name":"VariableDeclaration","src":"4662:11:14"}],"id":3010,"name":"VariableDeclarationStatement","src":"4662:11:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"consum","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3011,"name":"ElementaryTypeName","src":"4679:4:14"}],"id":3012,"name":"VariableDeclaration","src":"4679:11:14"}],"id":3013,"name":"VariableDeclarationStatement","src":"4679:11:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"rank","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3014,"name":"ElementaryTypeName","src":"4696:4:14"}],"id":3015,"name":"VariableDeclaration","src":"4696:9:14"}],"id":3016,"name":"VariableDeclarationStatement","src":"4696:9:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"tot","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3017,"name":"ElementaryTypeName","src":"4711:4:14"}],"id":3018,"name":"VariableDeclaration","src":"4711:8:14"}],"id":3019,"name":"VariableDeclarationStatement","src":"4711:8:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"whatDeviceAccept","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3020,"name":"ElementaryTypeName","src":"4725:4:14"}],"id":3021,"name":"VariableDeclaration","src":"4725:21:14"}],"id":3022,"name":"VariableDeclarationStatement","src":"4725:21:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"receivedMoney","scope":3129,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3023,"name":"ElementaryTypeName","src":"4752:4:14"}],"id":3024,"name":"VariableDeclaration","src":"4752:18:14"}],"id":3025,"name":"VariableDeclarationStatement","src":"4752:18:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(address,uint256,uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3026,"name":"Identifier","src":"4817:3:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3012,"type":"uint256","value":"consum"},"id":3027,"name":"Identifier","src":"4821:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3015,"type":"uint256","value":"rank"},"id":3028,"name":"Identifier","src":"4828:4:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3018,"type":"uint256","value":"tot"},"id":3029,"name":"Identifier","src":"4833:3:14"}],"id":3030,"name":"TupleExpression","src":"4816:21:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(address,uint256,uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2872,"type":"function (uint256) returns (address,uint256,uint256,uint256)","value":"getSortedRank"},"id":3031,"name":"Identifier","src":"4840:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2995,"type":"uint256","value":"_id"},"id":3032,"name":"Identifier","src":"4854:3:14"}],"id":3033,"name":"FunctionCall","src":"4840:18:14"}],"id":3034,"name":"Assignment","src":"4816:42:14"}],"id":3035,"name":"ExpressionStatement","src":"4816:42:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3006,"type":"uint256","value":"giveoutVol"},"id":3036,"name":"Identifier","src":"4866:10:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"findMin","referencedDeclaration":4048,"type":"function (uint256,uint256) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3037,"name":"Identifier","src":"4879:10:14"}],"id":3038,"name":"MemberAccess","src":"4879:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3012,"type":"uint256","value":"consum"},"id":3039,"name":"Identifier","src":"4898:6:14"}],"id":3040,"name":"FunctionCall","src":"4879:26:14"}],"id":3041,"name":"Assignment","src":"4866:39:14"}],"id":3042,"name":"ExpressionStatement","src":"4866:39:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":3043,"name":"Identifier","src":"4917:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":3044,"name":"Literal","src":"4933:1:14"}],"id":3045,"name":"IndexAccess","src":"4917:18:14"}],"id":3046,"name":"MemberAccess","src":"4917:31:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3047,"name":"Identifier","src":"4949:3:14"}],"id":3048,"name":"FunctionCall","src":"4917:36:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3049,"name":"Identifier","src":"4965:16:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goNoGo","referencedDeclaration":1166,"type":"function (uint256) external returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IBattery","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1179,"type":"type(contract IBattery)","value":"IBattery"},"id":3050,"name":"Identifier","src":"4984:8:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3051,"name":"Identifier","src":"4993:3:14"}],"id":3052,"name":"FunctionCall","src":"4984:13:14"}],"id":3053,"name":"MemberAccess","src":"4984:20:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3006,"type":"uint256","value":"giveoutVol"},"id":3054,"name":"Identifier","src":"5005:10:14"}],"id":3055,"name":"FunctionCall","src":"4984:32:14"}],"id":3056,"name":"Assignment","src":"4965:51:14"}],"id":3057,"name":"ExpressionStatement","src":"4965:51:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3058,"name":"Identifier","src":"5026:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3059,"name":"Identifier","src":"5040:16:14"}],"id":3060,"name":"Assignment","src":"5026:30:14"}],"id":3061,"name":"ExpressionStatement","src":"5026:30:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3024,"type":"uint256","value":"receivedMoney"},"id":3062,"name":"Identifier","src":"5066:13:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3063,"name":"Identifier","src":"5082:16:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2604,"type":"uint256","value":"price"},"id":3064,"name":"Identifier","src":"5099:5:14"}],"id":3065,"name":"BinaryOperation","src":"5082:22:14"}],"id":3066,"name":"Assignment","src":"5066:38:14"}],"id":3067,"name":"ExpressionStatement","src":"5066:38:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3068,"name":"Identifier","src":"5114:6:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearMoneyTransfer","referencedDeclaration":4107,"type":"function (int256,uint256,address,address) returns (int256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3069,"name":"Identifier","src":"5123:6:14"}],"id":3070,"name":"MemberAccess","src":"5123:25:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3024,"type":"uint256","value":"receivedMoney"},"id":3071,"name":"Identifier","src":"5149:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3072,"name":"Identifier","src":"5163:3:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SinglePV_$3259","typeString":"contract SinglePV"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":3073,"name":"ElementaryTypeNameExpression","src":"5168:7:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4211,"type":"contract SinglePV","value":"this"},"id":3074,"name":"Identifier","src":"5176:4:14"}],"id":3075,"name":"FunctionCall","src":"5168:13:14"}],"id":3076,"name":"FunctionCall","src":"5123:59:14"}],"id":3077,"name":"Assignment","src":"5114:68:14"}],"id":3078,"name":"ExpressionStatement","src":"5114:68:14"}],"id":3079,"name":"Block","src":"4955:236:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"assertInside","referencedDeclaration":36,"type":"function (address[] storage pointer,address) view returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":3080,"name":"Identifier","src":"5201:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":3081,"name":"Literal","src":"5217:1:14"}],"id":3082,"name":"IndexAccess","src":"5201:18:14"}],"id":3083,"name":"MemberAccess","src":"5201:31:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3084,"name":"Identifier","src":"5233:3:14"}],"id":3085,"name":"FunctionCall","src":"5201:36:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3086,"name":"Identifier","src":"5249:16:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goNoGo","referencedDeclaration":1259,"type":"function (uint256) external returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IHouse","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1260,"type":"type(contract IHouse)","value":"IHouse"},"id":3087,"name":"Identifier","src":"5268:6:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3088,"name":"Identifier","src":"5275:3:14"}],"id":3089,"name":"FunctionCall","src":"5268:11:14"}],"id":3090,"name":"MemberAccess","src":"5268:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3006,"type":"uint256","value":"giveoutVol"},"id":3091,"name":"Identifier","src":"5287:10:14"}],"id":3092,"name":"FunctionCall","src":"5268:30:14"}],"id":3093,"name":"Assignment","src":"5249:49:14"}],"id":3094,"name":"ExpressionStatement","src":"5249:49:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3095,"name":"Identifier","src":"5308:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3096,"name":"Identifier","src":"5322:16:14"}],"id":3097,"name":"Assignment","src":"5308:30:14"}],"id":3098,"name":"ExpressionStatement","src":"5308:30:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3024,"type":"uint256","value":"receivedMoney"},"id":3099,"name":"Identifier","src":"5348:13:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3100,"name":"Identifier","src":"5364:16:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2604,"type":"uint256","value":"price"},"id":3101,"name":"Identifier","src":"5381:5:14"}],"id":3102,"name":"BinaryOperation","src":"5364:22:14"}],"id":3103,"name":"Assignment","src":"5348:38:14"}],"id":3104,"name":"ExpressionStatement","src":"5348:38:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3105,"name":"Identifier","src":"5396:6:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearMoneyTransfer","referencedDeclaration":4107,"type":"function (int256,uint256,address,address) returns (int256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3106,"name":"Identifier","src":"5405:6:14"}],"id":3107,"name":"MemberAccess","src":"5405:25:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3024,"type":"uint256","value":"receivedMoney"},"id":3108,"name":"Identifier","src":"5431:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3009,"type":"address","value":"adr"},"id":3109,"name":"Identifier","src":"5445:3:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SinglePV_$3259","typeString":"contract SinglePV"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":3110,"name":"ElementaryTypeNameExpression","src":"5450:7:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4211,"type":"contract SinglePV","value":"this"},"id":3111,"name":"Identifier","src":"5458:4:14"}],"id":3112,"name":"FunctionCall","src":"5450:13:14"}],"id":3113,"name":"FunctionCall","src":"5405:59:14"}],"id":3114,"name":"Assignment","src":"5396:68:14"}],"id":3115,"name":"ExpressionStatement","src":"5396:68:14"}],"id":3116,"name":"Block","src":"5239:234:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3117,"name":"Identifier","src":"5489:16:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":3118,"name":"Literal","src":"5508:1:14"}],"id":3119,"name":"Assignment","src":"5489:20:14"}],"id":3120,"name":"ExpressionStatement","src":"5489:20:14"}],"id":3121,"name":"Block","src":"5479:39:14"}],"id":3122,"name":"IfStatement","src":"5197:321:14"}],"id":3123,"name":"IfStatement","src":"4913:605:14"},{"attributes":{"functionReturnParameters":3004},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"tuple(uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3006,"type":"uint256","value":"giveoutVol"},"id":3124,"name":"Identifier","src":"5532:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3021,"type":"uint256","value":"whatDeviceAccept"},"id":3125,"name":"Identifier","src":"5544:16:14"}],"id":3126,"name":"TupleExpression","src":"5531:30:14"}],"id":3127,"name":"Return","src":"5525:36:14"}],"id":3128,"name":"Block","src":"4635:931:14"}],"id":3129,"name":"FunctionDefinition","src":"4566:1000:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"sellExcess","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":3130,"name":"ParameterList","src":"5630:2:14"},{"attributes":{"parameters":[null]},"children":[],"id":3134,"name":"ParameterList","src":"5642:0:14"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":663,"type":"modifier (uint256)","value":"timed"},"id":3131,"name":"Identifier","src":"5633:5:14"},{"attributes":{"argumentTypes":null,"hexvalue":"35","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 5","value":"5"},"id":3132,"name":"Literal","src":"5639:1:14"}],"id":3133,"name":"ModifierInvocation","src":"5633:8:14"},{"children":[{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"whatDeviceAccept","scope":3249,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3135,"name":"ElementaryTypeName","src":"5741:4:14"}],"id":3136,"name":"VariableDeclaration","src":"5741:21:14"}],"id":3137,"name":"VariableDeclarationStatement","src":"5741:21:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"receivedMoney","scope":3249,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3138,"name":"ElementaryTypeName","src":"5768:4:14"}],"id":3139,"name":"VariableDeclaration","src":"5768:18:14"}],"id":3140,"name":"VariableDeclarationStatement","src":"5768:18:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"unitPrs","scope":3249,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3141,"name":"ElementaryTypeName","src":"5792:4:14"}],"id":3142,"name":"VariableDeclaration","src":"5792:12:14"}],"id":3143,"name":"VariableDeclarationStatement","src":"5792:12:14"},{"attributes":{"assignments":[null],"initialValue":null},"children":[{"attributes":{"constant":false,"name":"adr","scope":3249,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":3144,"name":"ElementaryTypeName","src":"5810:7:14"}],"id":3145,"name":"VariableDeclaration","src":"5810:11:14"}],"id":3146,"name":"VariableDeclarationStatement","src":"5810:11:14"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3147,"name":"Identifier","src":"5831:10:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":3148,"name":"Literal","src":"5844:1:14"}],"id":3149,"name":"BinaryOperation","src":"5831:14:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":3150,"name":"Identifier","src":"5877:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":3151,"name":"Literal","src":"5893:1:14"}],"id":3152,"name":"IndexAccess","src":"5877:18:14"}],"id":3153,"name":"MemberAccess","src":"5877:25:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":3154,"name":"Literal","src":"5906:1:14"}],"id":3155,"name":"BinaryOperation","src":"5877:30:14"},{"children":[{"children":[{"attributes":{"assignments":[3157]},"children":[{"attributes":{"constant":false,"name":"i","scope":3249,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3156,"name":"ElementaryTypeName","src":"5924:4:14"}],"id":3157,"name":"VariableDeclaration","src":"5924:6:14"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":3158,"name":"Literal","src":"5933:1:14"}],"id":3159,"name":"VariableDeclarationStatement","src":"5924:10:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3157,"type":"uint256","value":"i"},"id":3160,"name":"Identifier","src":"5936:1:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":3161,"name":"Identifier","src":"5940:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":3162,"name":"Literal","src":"5956:1:14"}],"id":3163,"name":"IndexAccess","src":"5940:18:14"}],"id":3164,"name":"MemberAccess","src":"5940:25:14"}],"id":3165,"name":"BinaryOperation","src":"5936:29:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3157,"type":"uint256","value":"i"},"id":3166,"name":"Identifier","src":"5967:1:14"}],"id":3167,"name":"UnaryOperation","src":"5967:3:14"}],"id":3168,"name":"ExpressionStatement","src":"5967:3:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3145,"type":"address","value":"adr"},"id":3169,"name":"Identifier","src":"5984:3:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address[] storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":563,"type":"mapping(uint256 => address[] storage ref)","value":"connectedDevice"},"id":3170,"name":"Identifier","src":"5990:15:14"},{"attributes":{"argumentTypes":null,"hexvalue":"32","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 2","value":"2"},"id":3171,"name":"Literal","src":"6006:1:14"}],"id":3172,"name":"IndexAccess","src":"5990:18:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3157,"type":"uint256","value":"i"},"id":3173,"name":"Identifier","src":"6009:1:14"}],"id":3174,"name":"IndexAccess","src":"5990:21:14"}],"id":3175,"name":"Assignment","src":"5984:27:14"}],"id":3176,"name":"ExpressionStatement","src":"5984:27:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3136,"type":"uint256","value":"whatDeviceAccept"},"id":3177,"name":"Identifier","src":"6024:16:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3142,"type":"uint256","value":"unitPrs"},"id":3178,"name":"Identifier","src":"6042:7:14"}],"id":3179,"name":"TupleExpression","src":"6023:27:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goExcess","referencedDeclaration":1178,"type":"function (uint256) external returns (uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IBattery","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1179,"type":"type(contract IBattery)","value":"IBattery"},"id":3180,"name":"Identifier","src":"6053:8:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3145,"type":"address","value":"adr"},"id":3181,"name":"Identifier","src":"6062:3:14"}],"id":3182,"name":"FunctionCall","src":"6053:13:14"}],"id":3183,"name":"MemberAccess","src":"6053:22:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3184,"name":"Identifier","src":"6076:10:14"}],"id":3185,"name":"FunctionCall","src":"6053:34:14"}],"id":3186,"name":"Assignment","src":"6023:64:14"}],"id":3187,"name":"ExpressionStatement","src":"6023:64:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3188,"name":"Identifier","src":"6099:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3136,"type":"uint256","value":"whatDeviceAccept"},"id":3189,"name":"Identifier","src":"6113:16:14"}],"id":3190,"name":"Assignment","src":"6099:30:14"}],"id":3191,"name":"ExpressionStatement","src":"6099:30:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3139,"type":"uint256","value":"receivedMoney"},"id":3192,"name":"Identifier","src":"6141:13:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3136,"type":"uint256","value":"whatDeviceAccept"},"id":3193,"name":"Identifier","src":"6157:16:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3142,"type":"uint256","value":"unitPrs"},"id":3194,"name":"Identifier","src":"6174:7:14"}],"id":3195,"name":"BinaryOperation","src":"6157:24:14"}],"id":3196,"name":"Assignment","src":"6141:40:14"}],"id":3197,"name":"ExpressionStatement","src":"6141:40:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3198,"name":"Identifier","src":"6193:6:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearMoneyTransfer","referencedDeclaration":4107,"type":"function (int256,uint256,address,address) returns (int256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3199,"name":"Identifier","src":"6202:6:14"}],"id":3200,"name":"MemberAccess","src":"6202:25:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3139,"type":"uint256","value":"receivedMoney"},"id":3201,"name":"Identifier","src":"6228:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3145,"type":"address","value":"adr"},"id":3202,"name":"Identifier","src":"6242:3:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SinglePV_$3259","typeString":"contract SinglePV"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":3203,"name":"ElementaryTypeNameExpression","src":"6247:7:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4211,"type":"contract SinglePV","value":"this"},"id":3204,"name":"Identifier","src":"6255:4:14"}],"id":3205,"name":"FunctionCall","src":"6247:13:14"}],"id":3206,"name":"FunctionCall","src":"6202:59:14"}],"id":3207,"name":"Assignment","src":"6193:68:14"}],"id":3208,"name":"ExpressionStatement","src":"6193:68:14"}],"id":3209,"name":"Block","src":"5972:300:14"}],"id":3210,"name":"ForStatement","src":"5919:353:14"}],"id":3211,"name":"Block","src":"5909:371:14"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"tuple(uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3136,"type":"uint256","value":"whatDeviceAccept"},"id":3212,"name":"Identifier","src":"6351:16:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3142,"type":"uint256","value":"unitPrs"},"id":3213,"name":"Identifier","src":"6369:7:14"}],"id":3214,"name":"TupleExpression","src":"6350:27:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(uint256,uint256)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"goExcess","referencedDeclaration":1214,"type":"function (uint256) external returns (uint256,uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract IGrid","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1227,"type":"type(contract IGrid)","value":"IGrid"},"id":3215,"name":"Identifier","src":"6380:5:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":3216,"name":"Identifier","src":"6386:4:14"}],"id":3217,"name":"FunctionCall","src":"6380:11:14"}],"id":3218,"name":"MemberAccess","src":"6380:20:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3219,"name":"Identifier","src":"6401:10:14"}],"id":3220,"name":"FunctionCall","src":"6380:32:14"}],"id":3221,"name":"Assignment","src":"6350:62:14"}],"id":3222,"name":"ExpressionStatement","src":"6350:62:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2602,"type":"uint256","value":"production"},"id":3223,"name":"Identifier","src":"6422:10:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3136,"type":"uint256","value":"whatDeviceAccept"},"id":3224,"name":"Identifier","src":"6436:16:14"}],"id":3225,"name":"Assignment","src":"6422:30:14"}],"id":3226,"name":"ExpressionStatement","src":"6422:30:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3139,"type":"uint256","value":"receivedMoney"},"id":3227,"name":"Identifier","src":"6462:13:14"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3136,"type":"uint256","value":"whatDeviceAccept"},"id":3228,"name":"Identifier","src":"6478:16:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3142,"type":"uint256","value":"unitPrs"},"id":3229,"name":"Identifier","src":"6495:7:14"}],"id":3230,"name":"BinaryOperation","src":"6478:24:14"}],"id":3231,"name":"Assignment","src":"6462:40:14"}],"id":3232,"name":"ExpressionStatement","src":"6462:40:14"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"int256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3233,"name":"Identifier","src":"6512:6:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"int256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"clearMoneyTransfer","referencedDeclaration":4107,"type":"function (int256,uint256,address,address) returns (int256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"int256","value":"wallet"},"id":3234,"name":"Identifier","src":"6521:6:14"}],"id":3235,"name":"MemberAccess","src":"6521:25:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3139,"type":"uint256","value":"receivedMoney"},"id":3236,"name":"Identifier","src":"6547:13:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":553,"type":"address","value":"grid"},"id":3237,"name":"Identifier","src":"6561:4:14"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_SinglePV_$3259","typeString":"contract SinglePV"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":3238,"name":"ElementaryTypeNameExpression","src":"6567:7:14"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":4211,"type":"contract SinglePV","value":"this"},"id":3239,"name":"Identifier","src":"6575:4:14"}],"id":3240,"name":"FunctionCall","src":"6567:13:14"}],"id":3241,"name":"FunctionCall","src":"6521:60:14"}],"id":3242,"name":"Assignment","src":"6512:69:14"}],"id":3243,"name":"ExpressionStatement","src":"6512:69:14"}],"id":3244,"name":"Block","src":"6286:304:14"}],"id":3245,"name":"IfStatement","src":"5873:717:14"}],"id":3246,"name":"Block","src":"5847:749:14"}],"id":3247,"name":"IfStatement","src":"5827:769:14"}],"id":3248,"name":"Block","src":"5642:958:14"}],"id":3249,"name":"FunctionDefinition","src":"5611:989:14"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getTimeToNext","payable":false,"scope":3259,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":3250,"name":"ParameterList","src":"6626:2:14"},{"children":[{"attributes":{"constant":false,"name":"","scope":3258,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":3251,"name":"ElementaryTypeName","src":"6638:4:14"}],"id":3252,"name":"VariableDeclaration","src":"6638:4:14"}],"id":3253,"name":"ParameterList","src":"6637:6:14"},{"children":[{"attributes":{"functionReturnParameters":3253},"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":755,"type":"function () returns (uint256)","value":"getTimeToNextStatus"},"id":3254,"name":"Identifier","src":"6657:19:14"}],"id":3255,"name":"FunctionCall","src":"6657:21:14"}],"id":3256,"name":"Return","src":"6650:28:14"}],"id":3257,"name":"Block","src":"6644:39:14"}],"id":3258,"name":"FunctionDefinition","src":"6604:79:14"}],"id":3259,"name":"ContractDefinition","src":"222:6464:14"}],"id":3260,"name":"SourceUnit","src":"0:6687:14"},"compiler":{"name":"solc","version":"0.4.18+commit.9cf6e910.Emscripten.clang"},"networks":{"1513694582674":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x5aa22edd06e2df677ee8e6a81d26a6c241ec7e86","AdrLib":"0x2a29be3b1c490814e26339c307c6d072efa1e3e7","TransactLib":"0x9d362366891ab58651569d81913d4b816088130d"},"address":"0x7368d52832ecb7e6afa1e9b011439e569f0a771c"},"1513697632729":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xff418ba8bd05b48131e8bd51bad7d6e8652a7b72","AdrLib":"0x90fb0b5ffa9d3914f9385334dcfdc6b02600399a","TransactLib":"0xc8a86b5903ab611bec4fc6fdf237a1d206e15acf"},"address":"0xc5907f46bffb57561d2e6329cf78d0ca8c9ec54b"},"1513763710755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x71814b4790e2c51e515b4fa9776f4bfa0f199e2b","AdrLib":"0xc58dcc188e655d4ddf557ecbc4c56ac6ebc11c67","TransactLib":"0x27773684e75ae51c682f089b2a3b86ef707970ee"},"address":"0x6780e992ff47656e4bdfe2f548d1ee81174aa2dc"},"1513771446044":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x8abd2ea15bdabd365fd7745071de5daff1c9fd9d","AdrLib":"0x1482ae1a53728c856a810f0cba23d49ca89d4ccb","TransactLib":"0x98b427e11e15bb546e7ed96758a8eff0ee6e027d"},"address":"0x42ec3f97b356befe93c49cebdadfd65d56fac31f"},"1513771818067":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x80c84c11c7157b7aa6f07294fa9ff39506af9c42","AdrLib":"0x75d35a38dc3830fcff5cec2af8499c3530900ab5","TransactLib":"0x07e3d14562988d3896f468f5806fab6e092b78c6"},"address":"0x69b51b278ffba88924dfd6b5d958e460ceb25d2b"},"1513772129137":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xdd49545bef8ee5629e42572763de953ee6917ece","AdrLib":"0x116217ea23e706df44e85fdcd5cf009299e517a4","TransactLib":"0xb6d612907ee10abd3647fd327b135b722e48fdff"},"address":"0xf1525d8d89eef160cc8b263e03705e1ba7faa89e"},"1513772799886":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x43a6ddac37cfa953108f2a96e7ae822306bbb567","AdrLib":"0x28b271c9201a17d5ba98ad19ba55023f3da26e37","TransactLib":"0x20419e3e4cc09b5ca9d23ceec64f359f30861a05"},"address":"0x4d6bfdf1230a247b870ceab49ff192e7217e4c14"},"1513773239755":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x2023747068a57cd7c17050993b1a982338bef004","AdrLib":"0x0a09d977a155f62a5d6ff7e70e8a99fc87d65092","TransactLib":"0x0f0686d00c98181866cfd27b71da96c1aa7dc6b0"},"address":"0xe1dd42d28c8d31c61d209e4fb415db1669a80291"},"1513773645333":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x3793dfd1fefc238aefc11b61121fcc14847948dc","AdrLib":"0x40a6706e762ee60442e03d455672b9181e312ed5","TransactLib":"0xfd9d43eaae27ccb48004fedd4d2d586b9ea5749b"},"address":"0x0f5ae7a6f8732acfb6fc38db02507117b642a7fc"},"1513777045350":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xe55d36a411089292f462799e091acd32cfca72b3","AdrLib":"0xdc753f08b6a50b3ff6963fedd0c1c674b4bb75bc","TransactLib":"0xbf436b9323f8461b019b42007535e33b08e54bf0"},"address":"0xebaf5e2c7c077923d675bdafa2eeed272a8c94df"},"1513778825921":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x0764fbfde30a91aa2fa82075edfef978d3f232a6","AdrLib":"0xc4e06c049113fefed98c1bcf26395b82d216385d","TransactLib":"0xd0faef622cf49398cdea9d0007f85ecf6968a321"},"address":"0x42f95f7a0fd6d0d5096488d6dc875063a81dd074"},"1513778906317":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xb5a7ab1d1add1b5b5f40b8752ed8adc96f5b57e1","AdrLib":"0x78520ba51f90157416ebb30d7a1bb647cd181ddd","TransactLib":"0xd505c556b8e7d261d56bd2a887ea75bb8fe9e660"},"address":"0x5eedb5bd07edb25f55df359657a256959f15c9df"},"1513779036442":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xdcfebb5e701f2b6a63507e3deff59e53629e91df","AdrLib":"0x8f5c4c22b5d61e32dd6b09becd59f3f5de60a01c","TransactLib":"0x055974c9295369da64b3461b5239d4295e307b36"},"address":"0x3784d4eec7ece325d1a2cac0d1a1e47df6bc1364"},"1513781372031":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xbc2a5769628bf76f0c6a1312fecdb9c05d1f430c","AdrLib":"0x1cc1ce568c1311dbd6f3728f5f6d9feb685597e6","TransactLib":"0x15e0bea40333f9251ad1c2e990d63c6c15007dbe"},"address":"0x102af9d1447ba37e7b8189eef6906f47b75b6a8b"},"1513781520103":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x5fd6a075534e2d269bbbe9821a4d45ecaabe3587","AdrLib":"0x49dfec9fed5d843fab55d59427a2fc50122f0e9c","TransactLib":"0x3685bad9e0dd801b34b5a592be1678e1a984e3ad"},"address":"0x753370bf88ccfcaf0dc00c3970649176eaa3ede3"},"1513781725934":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x5582ef6a0ccec117ef2000faa73236732cdf1418","AdrLib":"0x05bf1bfbee660b843480d1683da373343dc3ea8d","TransactLib":"0xe7ffb66a9f459043a51773d63441b6abe90d2335"},"address":"0xeb663071e914fb38793f2bab278245869f1fcf1c"},"1513781878089":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x827745b9af8bdb6e18929fa8d79744395832f180","AdrLib":"0xdd4c1bbd9a3b3b19d3a84795e715feca7524b05d","TransactLib":"0x308aac19f2f85404332e1ba26a307d300c9de27c"},"address":"0x85a1741f2e65f1ed30d173cbe781b92c87b3f638"},"1513782049907":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x130c2dd58697698c8f7c23bda28c60b3ebfaffb7","AdrLib":"0x5254b7104bc7aa5d220bc0adfe5c48aba63e573c","TransactLib":"0x9565d721bad77b973057ff5ec68ad9e99aafd2d1"},"address":"0x1e8bbaed39809416abe84c217c8ac2a583f3d6b6"},"1513782106845":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xb11c3212d55cefb6b01814518a17293fc8505dc1","AdrLib":"0x02bf606e33ab4ff08a27fda5dc11e565d208b850","TransactLib":"0x2fda037b1fd7c3318b51c493320865b6a70f5cc6"},"address":"0x75c841b9e7facc060edfd1236945e4389bacb2dd"},"1513782148189":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x891d3a26df32592d19dd2ed58a87f7e6234991c4","AdrLib":"0x32e6fc892d10705762a67bd91f3c5dd4dc548c8d","TransactLib":"0x58b466514d9200cee966b2b75df662f87fa096eb"},"address":"0xfc7a540c72b68a61493bbd7cb6273bf92ad2a7fe"},"1513782179458":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x249854de2ff3774766f429d7ea7e55258f0a3027","AdrLib":"0x0d18ca0763e277ac10b1f54e83e5fdd738c86fb4","TransactLib":"0x98aea1f7cf8395148413a3156d0f57a29795526f"},"address":"0xad926f5383c4e14d2a601f048b33fd9fae109029"},"1513782236877":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x2196d037be0e3e20b529b3d87fc0642ea8f9b668","AdrLib":"0xc3d857131f73789b252c9468a90d5b6604805336","TransactLib":"0x943cfa4a8165e79a3d2970f85cca95314532bc69"},"address":"0xb018793c626d501d36ad5992fd2551d25914a00c"},"1513782526210":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xa898f97a66103e3286e27c8a8326581cb5daa44c","AdrLib":"0x6e4d4910b580a925c0687315fb2c355a0abdc3f9","TransactLib":"0x7dc09671ee66eb667dac2052183190ff10e4c8c3"},"address":"0x4097357393e60332c66b30fa5918d8e65d8bef90"},"1513782951368":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x5137ac068223beab1924ea56ddcb3280a0acf456","AdrLib":"0x960970dc4e2d0f7d5071e1adce541d6280a74c9a","TransactLib":"0xf3c53ed6062b1e7503fbf3d635f7c9e04068402d"},"address":"0x278b1c144222e58e2b3a50bf24020732b48e8296"},"1513783449271":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0xa651ad8959d344b157b682d9de18d89e94e95e6e","AdrLib":"0xed10b60bae1c1cd99414d5320ffb76a69dfd6d1b","TransactLib":"0x7ff701216ff981fb4f430a051fa6455f30abb1de"},"address":"0xaaf4c1de4298330fd7e4835f8a490e6b6659a496"},"1513783569288":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"}},"links":{"SortRLib":"0x9cd302bb1415b22538a846089e31da45b0e37f3c","AdrLib":"0xd63d2a0ae6913212018dc716e8869c6d97a7bf2b","TransactLib":"0x9e4073955f99708d893e8a97787f1303744af560"},"address":"0xf22fb3e4cf068629b092c76904a706747ac43b59"},"1513783657231":{"events":{"0x27b1bcc11372879417f88a085a6db201c82c35d4bd475b4ca7668c6e317cc4f3":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"eVol","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"EnergyTransferLog","type":"event"},"0x2febb11723e42e6e6baece42674c453571a7e6be6ca86ce884d1414b36b17bb7":{"anonymous":false,"inputs":[{"indexed":false,"name":"adrFrom","type":"address"},{"indexed":false,"name":"adrTo","type":"address"},{"indexed":false,"name":"mAmount","type":"uint256"},{"indexed":false,"name":"transferAt","type":"uint256"}],"name":"MoneyTransferLog","type":"event"},"0xdf963fee409850630585bd095a505a9a956ef373cd706eb6eddec02d0a367319":{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"produc","type":"uint256"},{"indexed":false,"name":"prodAt","type":"uint256"}],"name":"ProductionLog","type":"event"},"0xae46785019700e30375a5d7b4f91e32f8060ef085111f896ebf889450aa2ab5a":{"anonymous":false,"inputs":[{"indexed":false,"name":"updateAt","type":"uint256"}],"name":"PriceUpdate","type":"event"}},"links":{"SortRLib":"0x4acd77ff012fda3ef087b0ccb11c0b8894f98fa2","AdrLib":"0xc0716270b05d3089a151d73809e2c659154a732a","TransactLib":"0x90ef429afd389a5f495882995c2da74b3b29f84d"},"address":"0x98a3901435da27a9944cc630a88525539bae02af"}},"schemaVersion":"1.0.1","updatedAt":"2017-12-20T15:27:45.578Z"},"abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellEnergy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForRank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortRank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"initiateTransaction","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"produc","type":"uint256"}],"name":"setProduction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellExcess","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"getSortedRank","outputs":[{"name":"adr","type":"address"},{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getProduction","outputs":[{"name":"prod","type":"uint256"},{"name":"prodAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"prs","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"prs","type":"uint256"},{"name":"updatedOrNot","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"produc","type":"uint256"},{"indexed":false,"name":"prodAt","type":"uint256"}],"name":"ProductionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"updateAt","type":"uint256"}],"name":"PriceUpdate","type":"event"}],"contract":{"_eth":{"_requestManager":{"provider":{"provider":{"host":"http://localhost:8545","timeout":0,"_alreadyWrapped":true}},"polls":{},"timeout":null},"compile":{},"coinbase":"0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","mining":true,"hashrate":0,"syncing":false,"gasPrice":"20000000000","accounts":["0xe65834cc3143a0d60ffaa35affd52376bbabd6c6","0xe208d1dd66f7f3da8d2247f2baa3c592fa85dd11","0x473ded0842ff40ffeafe1fa376b959c9b23c89ce","0x0e514e7d670f5ad315767e9b13774d654b92b792","0x72133c776d4e59a04a879744315c72400e72523e","0x8aab4c99ff957be2c2b312c3a290333110107862","0xe4e42e5f6c7d581b9e46e6a34c47a700c932ea7c","0x508e6d0c3e398d127916c0c3d45a3105047e1b79","0x20845b8f15ea0569f5017e411c8536a6bd1bf6a5","0x8fd36fedfd713fdf28f2082732bd1eb3592bb1a3"],"blockNumber":45,"protocolVersion":"63"},"transactionHash":null,"address":"0x68d8b75eb29a52a350158505f60a62414d9961c9","abi":[{"constant":false,"inputs":[],"name":"getTimerIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setTimerAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getWallet","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellEnergy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"askForRank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sortRank","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"initiateTransaction","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"produc","type":"uint256"}],"name":"setProduction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"sellExcess","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"getSortedRank","outputs":[{"name":"adr","type":"address"},{"name":"consum","type":"uint256"},{"name":"rank","type":"uint256"},{"name":"tot","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNextStatus","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"adr","type":"address"}],"name":"setGridAdr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getProduction","outputs":[{"name":"prod","type":"uint256"},{"name":"prodAt","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"prs","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTimeToNext","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"prs","type":"uint256"},{"name":"updatedOrNot","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"adr","type":"address"}],"name":"addConnectedDevice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"adr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"adr","type":"address"},{"indexed":false,"name":"produc","type":"uint256"},{"indexed":false,"name":"prodAt","type":"uint256"}],"name":"ProductionLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"updateAt","type":"uint256"}],"name":"PriceUpdate","type":"event"}]},"address":"0x68d8b75eb29a52a350158505f60a62414d9961c9","transactionHash":null}}],"battery":[]}