@digix/cdap
Advanced tools
Comparing version 0.0.9 to 0.1.0
{ | ||
"contract_name": "DirectoryService", | ||
"contractName": "DirectoryService", | ||
"abi": [], | ||
"unlinked_binary": "0x60606040523415600e57600080fd5b5b603680601c6000396000f30060606040525b600080fd00a165627a7a72305820383aaae83a9033a64471e98d49db830da14b249a02e864a93ed26af66ede63670029", | ||
"bytecode": "0x60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a723058204018a62207f3c89c5abb220d2fd8fb4e54b03740d7d87b3a591f3094946e47700029", | ||
"deployedBytecode": "0x6060604052600080fd00a165627a7a723058204018a62207f3c89c5abb220d2fd8fb4e54b03740d7d87b3a591f3094946e47700029", | ||
"sourceMap": "78:491:8:-;;;;;;;;;;;;;;;;;", | ||
"deployedSourceMap": "78:491:8:-;;;;;", | ||
"source": "pragma solidity ^0.4.19;\n\n/**\n@title Directory Service\n@author DigixGlobal\n*/\ncontract DirectoryService {\n\n /**\n @notice Returns the user's role id\n @param _read_role_id_function Function that returns a role id of a user\n @param _user Id of the user\n @return {\"_role_id\": \"Role id of the user\"}\n */\n function internal_get_user_role_id(function (address) external constant returns (uint256) _read_role_id_function, address _user)\n internal\n constant\n returns (uint256 _role_id)\n {\n _role_id = _read_role_id_function(_user);\n }\n}\n", | ||
"sourcePath": "/home/rohit/Develop/cdap/contracts/service/DirectoryService.sol", | ||
"ast": { | ||
"attributes": { | ||
"absolutePath": "/home/rohit/Develop/cdap/contracts/service/DirectoryService.sol", | ||
"exportedSymbols": { | ||
"DirectoryService": [ | ||
1723 | ||
] | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".19" | ||
] | ||
}, | ||
"id": 1700, | ||
"name": "PragmaDirective", | ||
"src": "0:24:8" | ||
}, | ||
{ | ||
"attributes": { | ||
"baseContracts": [ | ||
null | ||
], | ||
"contractDependencies": [ | ||
null | ||
], | ||
"contractKind": "contract", | ||
"documentation": "@title Directory Service\n@author DigixGlobal", | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
1723 | ||
], | ||
"name": "DirectoryService", | ||
"scope": 1724 | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "internal_get_user_role_id", | ||
"payable": false, | ||
"scope": 1723, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_read_role_id_function", | ||
"scope": 1722, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "function (address) view external returns (uint256)", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function (address) view external returns (uint256)", | ||
"visibility": "external" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 1722, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 1701, | ||
"name": "ElementaryTypeName", | ||
"src": "352:7:8" | ||
} | ||
], | ||
"id": 1702, | ||
"name": "VariableDeclaration", | ||
"src": "352:7:8" | ||
} | ||
], | ||
"id": 1703, | ||
"name": "ParameterList", | ||
"src": "351:9:8" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 1722, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 1704, | ||
"name": "ElementaryTypeName", | ||
"src": "388:7:8" | ||
} | ||
], | ||
"id": 1705, | ||
"name": "VariableDeclaration", | ||
"src": "388:7:8" | ||
} | ||
], | ||
"id": 1706, | ||
"name": "ParameterList", | ||
"src": "387:9:8" | ||
} | ||
], | ||
"id": 1707, | ||
"name": "FunctionTypeName", | ||
"src": "342:77:8" | ||
} | ||
], | ||
"id": 1708, | ||
"name": "VariableDeclaration", | ||
"src": "342:77:8" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_user", | ||
"scope": 1722, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 1709, | ||
"name": "ElementaryTypeName", | ||
"src": "421:7:8" | ||
} | ||
], | ||
"id": 1710, | ||
"name": "VariableDeclaration", | ||
"src": "421:13:8" | ||
} | ||
], | ||
"id": 1711, | ||
"name": "ParameterList", | ||
"src": "341:94:8" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_role_id", | ||
"scope": 1722, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 1712, | ||
"name": "ElementaryTypeName", | ||
"src": "496:7:8" | ||
} | ||
], | ||
"id": 1713, | ||
"name": "VariableDeclaration", | ||
"src": "496:16:8" | ||
} | ||
], | ||
"id": 1714, | ||
"name": "ParameterList", | ||
"src": "495:18:8" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1713, | ||
"type": "uint256", | ||
"value": "_role_id" | ||
}, | ||
"id": 1715, | ||
"name": "Identifier", | ||
"src": "522:8:8" | ||
}, | ||
{ | ||
"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_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1708, | ||
"type": "function (address) view external returns (uint256)", | ||
"value": "_read_role_id_function" | ||
}, | ||
"id": 1716, | ||
"name": "Identifier", | ||
"src": "533:22:8" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1710, | ||
"type": "address", | ||
"value": "_user" | ||
}, | ||
"id": 1717, | ||
"name": "Identifier", | ||
"src": "556:5:8" | ||
} | ||
], | ||
"id": 1718, | ||
"name": "FunctionCall", | ||
"src": "533:29:8" | ||
} | ||
], | ||
"id": 1719, | ||
"name": "Assignment", | ||
"src": "522:40:8" | ||
} | ||
], | ||
"id": 1720, | ||
"name": "ExpressionStatement", | ||
"src": "522:40:8" | ||
} | ||
], | ||
"id": 1721, | ||
"name": "Block", | ||
"src": "516:51:8" | ||
} | ||
], | ||
"id": 1722, | ||
"name": "FunctionDefinition", | ||
"src": "307:260:8" | ||
} | ||
], | ||
"id": 1723, | ||
"name": "ContractDefinition", | ||
"src": "78:491:8" | ||
} | ||
], | ||
"id": 1724, | ||
"name": "SourceUnit", | ||
"src": "0:570:8" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.19+commit.c4cbbb05.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schema_version": "0.0.5", | ||
"updated_at": 1508405768505 | ||
"schemaVersion": "1.0.1", | ||
"updatedAt": "2018-03-07T06:04:58.398Z" | ||
} |
{ | ||
"contract_name": "ExampleDirectoryService", | ||
"contractName": "ExampleDirectoryService", | ||
"abi": [ | ||
@@ -19,2 +19,13 @@ { | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "_directory_storage", | ||
"type": "address" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"constant": true, | ||
@@ -37,19 +48,526 @@ "inputs": [ | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "_directory_storage", | ||
"type": "address" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
} | ||
], | ||
"unlinked_binary": "0x6060604052341561000f57600080fd5b604051602080610224833981016040528080519150505b60008054600160a060020a031916600160a060020a0383161790555b505b6101d1806100536000396000f300606060405263ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663250e29458114610048578063b9f09ef814610084575b600080fd5b341561005357600080fd5b61005b6100c2565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b341561008f57600080fd5b6100b073ffffffffffffffffffffffffffffffffffffffff600435166100de565b60405190815260200160405180910390f35b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600080546101079073ffffffffffffffffffffffffffffffffffffffff1663c31d02b28461010f565b90505b919050565b60008383836000604051602001526040517c010000000000000000000000000000000000000000000000000000000063ffffffff841602815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401602060405180830381600087803b151561018157600080fd5b6102c65a03f1151561019257600080fd5b50505060405180519150505b93925050505600a165627a7a72305820d9126f2d792c62ca3a1aa7baf066a9ae442d413535f022dfa4fa55e9b78de2ee0029", | ||
"bytecode": "0x6060604052341561000f57600080fd5b6040516020806102bd83398101604052808051906020019091905050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506102428061007b6000396000f30060606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063250e294514610051578063b9f09ef8146100a6575b600080fd5b341561005c57600080fd5b6100646100f3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610118565b6040518082815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006101606000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c31d02b284610167565b9050919050565b60008383836000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15156101f257600080fd5b6102c65a03f1151561020357600080fd5b50505060405180519050905093925050505600a165627a7a7230582008c1fe481f4d0ede52db7b2742f1a9e22e7530272a9ef3901544afb376ecb26d0029", | ||
"deployedBytecode": "0x60606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063250e294514610051578063b9f09ef8146100a6575b600080fd5b341561005c57600080fd5b6100646100f3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610118565b6040518082815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006101606000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c31d02b284610167565b9050919050565b60008383836000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15156101f257600080fd5b6102c65a03f1151561020357600080fd5b50505060405180519050905093925050505600a165627a7a7230582008c1fe481f4d0ede52db7b2742f1a9e22e7530272a9ef3901544afb376ecb26d0029", | ||
"sourceMap": "169:747:4:-;;;412:130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;519:18;499:17;;:38;;;;;;;;;;;;;;;;;;412:130;169:747;;;;;;", | ||
"deployedSourceMap": "169:747:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;357:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;678:235;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;357:32;;;;;;;;;;;;;:::o;678:235::-;777:16;814:94;864:17;;;;;;;;;;;840:60;;;902:5;814:25;:94::i;:::-;803:105;;678:235;;;:::o;307:260:8:-;496:16;533:22;;556:5;533:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;522:40;;307:260;;;;;:::o", | ||
"source": "pragma solidity ^0.4.19;\n\nimport \"../service/DirectoryService.sol\";\nimport \"./ExampleDirectoryStorage.sol\";\n\n/**\n@title Example Directory Service\n@author DigixGlobal\n*/\ncontract ExampleDirectoryService is DirectoryService {\n\n /// @notice The address of directory storage of this Contract\n /// @dev Set to the given directory storage address on creation\n address public directory_storage;\n\n /// Constructor\n function ExampleDirectoryService(address _directory_storage)\n public\n {\n directory_storage = _directory_storage;\n }\n\n /**\n @notice Returns the role id of a user\n @param _user Address of the user\n @return {\"_role_id\": \"Role id of the user\"}\n */\n function get_user_role_id(address _user)\n public\n constant\n returns (uint256 _role_id)\n {\n _role_id = internal_get_user_role_id(ExampleDirectoryStorage(directory_storage).read_user_role_id, _user);\n }\n\n}\n", | ||
"sourcePath": "/home/rohit/Develop/cdap/contracts/examples/ExampleDirectoryService.sol", | ||
"ast": { | ||
"attributes": { | ||
"absolutePath": "/home/rohit/Develop/cdap/contracts/examples/ExampleDirectoryService.sol", | ||
"exportedSymbols": { | ||
"ExampleDirectoryService": [ | ||
1045 | ||
] | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".19" | ||
] | ||
}, | ||
"id": 1010, | ||
"name": "PragmaDirective", | ||
"src": "0:24:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"SourceUnit": 1724, | ||
"absolutePath": "/home/rohit/Develop/cdap/contracts/service/DirectoryService.sol", | ||
"file": "../service/DirectoryService.sol", | ||
"scope": 1046, | ||
"symbolAliases": [ | ||
null | ||
], | ||
"unitAlias": "" | ||
}, | ||
"id": 1011, | ||
"name": "ImportDirective", | ||
"src": "26:41:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"SourceUnit": 1136, | ||
"absolutePath": "/home/rohit/Develop/cdap/contracts/examples/ExampleDirectoryStorage.sol", | ||
"file": "./ExampleDirectoryStorage.sol", | ||
"scope": 1046, | ||
"symbolAliases": [ | ||
null | ||
], | ||
"unitAlias": "" | ||
}, | ||
"id": 1012, | ||
"name": "ImportDirective", | ||
"src": "68:39:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"contractDependencies": [ | ||
1723 | ||
], | ||
"contractKind": "contract", | ||
"documentation": "@title Example Directory Service\n@author DigixGlobal", | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
1045, | ||
1723 | ||
], | ||
"name": "ExampleDirectoryService", | ||
"scope": 1046 | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"arguments": [ | ||
null | ||
] | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DirectoryService", | ||
"referencedDeclaration": 1723, | ||
"type": "contract DirectoryService" | ||
}, | ||
"id": 1013, | ||
"name": "UserDefinedTypeName", | ||
"src": "205:16:4" | ||
} | ||
], | ||
"id": 1014, | ||
"name": "InheritanceSpecifier", | ||
"src": "205:16:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "directory_storage", | ||
"scope": 1045, | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 1015, | ||
"name": "ElementaryTypeName", | ||
"src": "357:7:4" | ||
} | ||
], | ||
"id": 1016, | ||
"name": "VariableDeclaration", | ||
"src": "357:32:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"implemented": true, | ||
"isConstructor": true, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "ExampleDirectoryService", | ||
"payable": false, | ||
"scope": 1045, | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_directory_storage", | ||
"scope": 1026, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 1017, | ||
"name": "ElementaryTypeName", | ||
"src": "445:7:4" | ||
} | ||
], | ||
"id": 1018, | ||
"name": "VariableDeclaration", | ||
"src": "445:26:4" | ||
} | ||
], | ||
"id": 1019, | ||
"name": "ParameterList", | ||
"src": "444:28:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 1020, | ||
"name": "ParameterList", | ||
"src": "493:0:4" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1016, | ||
"type": "address", | ||
"value": "directory_storage" | ||
}, | ||
"id": 1021, | ||
"name": "Identifier", | ||
"src": "499:17:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1018, | ||
"type": "address", | ||
"value": "_directory_storage" | ||
}, | ||
"id": 1022, | ||
"name": "Identifier", | ||
"src": "519:18:4" | ||
} | ||
], | ||
"id": 1023, | ||
"name": "Assignment", | ||
"src": "499:38:4" | ||
} | ||
], | ||
"id": 1024, | ||
"name": "ExpressionStatement", | ||
"src": "499:38:4" | ||
} | ||
], | ||
"id": 1025, | ||
"name": "Block", | ||
"src": "493:49:4" | ||
} | ||
], | ||
"id": 1026, | ||
"name": "FunctionDefinition", | ||
"src": "412:130:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "get_user_role_id", | ||
"payable": false, | ||
"scope": 1045, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_user", | ||
"scope": 1044, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 1027, | ||
"name": "ElementaryTypeName", | ||
"src": "704:7:4" | ||
} | ||
], | ||
"id": 1028, | ||
"name": "VariableDeclaration", | ||
"src": "704:13:4" | ||
} | ||
], | ||
"id": 1029, | ||
"name": "ParameterList", | ||
"src": "703:15:4" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_role_id", | ||
"scope": 1044, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 1030, | ||
"name": "ElementaryTypeName", | ||
"src": "777:7:4" | ||
} | ||
], | ||
"id": 1031, | ||
"name": "VariableDeclaration", | ||
"src": "777:16:4" | ||
} | ||
], | ||
"id": 1032, | ||
"name": "ParameterList", | ||
"src": "776:18:4" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1031, | ||
"type": "uint256", | ||
"value": "_role_id" | ||
}, | ||
"id": 1033, | ||
"name": "Identifier", | ||
"src": "803:8:4" | ||
}, | ||
{ | ||
"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_function_external_view$_t_address_$returns$_t_uint256_$", | ||
"typeString": "function (address) view external returns (uint256)" | ||
}, | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1722, | ||
"type": "function (function (address) view external returns (uint256),address) view returns (uint256)", | ||
"value": "internal_get_user_role_id" | ||
}, | ||
"id": 1034, | ||
"name": "Identifier", | ||
"src": "814:25:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "read_user_role_id", | ||
"referencedDeclaration": 2210, | ||
"type": "function (address) view external returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"type": "contract ExampleDirectoryStorage", | ||
"type_conversion": true | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1135, | ||
"type": "type(contract ExampleDirectoryStorage)", | ||
"value": "ExampleDirectoryStorage" | ||
}, | ||
"id": 1035, | ||
"name": "Identifier", | ||
"src": "840:23:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1016, | ||
"type": "address", | ||
"value": "directory_storage" | ||
}, | ||
"id": 1036, | ||
"name": "Identifier", | ||
"src": "864:17:4" | ||
} | ||
], | ||
"id": 1037, | ||
"name": "FunctionCall", | ||
"src": "840:42:4" | ||
} | ||
], | ||
"id": 1038, | ||
"name": "MemberAccess", | ||
"src": "840:60:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 1028, | ||
"type": "address", | ||
"value": "_user" | ||
}, | ||
"id": 1039, | ||
"name": "Identifier", | ||
"src": "902:5:4" | ||
} | ||
], | ||
"id": 1040, | ||
"name": "FunctionCall", | ||
"src": "814:94:4" | ||
} | ||
], | ||
"id": 1041, | ||
"name": "Assignment", | ||
"src": "803:105:4" | ||
} | ||
], | ||
"id": 1042, | ||
"name": "ExpressionStatement", | ||
"src": "803:105:4" | ||
} | ||
], | ||
"id": 1043, | ||
"name": "Block", | ||
"src": "797:116:4" | ||
} | ||
], | ||
"id": 1044, | ||
"name": "FunctionDefinition", | ||
"src": "678:235:4" | ||
} | ||
], | ||
"id": 1045, | ||
"name": "ContractDefinition", | ||
"src": "169:747:4" | ||
} | ||
], | ||
"id": 1046, | ||
"name": "SourceUnit", | ||
"src": "0:917:4" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.19+commit.c4cbbb05.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schema_version": "0.0.5", | ||
"updated_at": 1508405768504 | ||
"schemaVersion": "1.0.1", | ||
"updatedAt": "2018-03-07T06:04:58.396Z" | ||
} |
{ | ||
"contract_name": "IndexedAddressIteratorStorage", | ||
"contractName": "IndexedAddressIteratorStorage", | ||
"abi": [], | ||
"unlinked_binary": "0x60606040523415600e57600080fd5b5b603680601c6000396000f30060606040525b600080fd00a165627a7a723058200fcf665f7548be96d7c3aab69bb4eab1571a8109043defdf62da442d98901a910029", | ||
"bytecode": "0x60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a72305820a400c0d4eb33aab35da36084182873c629a4a9e8b6005c56788ad97e4ab69bf90029", | ||
"deployedBytecode": "0x6060604052600080fd00a165627a7a72305820a400c0d4eb33aab35da36084182873c629a4a9e8b6005c56788ad97e4ab69bf90029", | ||
"sourceMap": "217:2835:12:-;;;;;;;;;;;;;;;;;", | ||
"deployedSourceMap": "217:2835:12:-;;;;;", | ||
"source": "pragma solidity ^0.4.19;\n\nimport \"../lib/DoublyLinkedList.sol\";\n\n/**\n @title Indexed Address IteratorStorage\n @author DigixGlobal Pte Ltd\n @notice This contract utilizes: [Doubly Linked List](/DoublyLinkedList)\n*/\ncontract IndexedAddressIteratorStorage {\n\n using DoublyLinkedList for DoublyLinkedList.IndexedAddress;\n /**\n @notice Reads the first item from an Indexed Address Doubly Linked List\n @param _list The source list\n @param _collection_index Index of the Collection to evaluate\n @return {\"_item\" : \"First item on the list\"}\n */\n function read_first_from_indexed_addresses(DoublyLinkedList.IndexedAddress storage _list, bytes32 _collection_index)\n internal\n constant\n returns (address _item)\n {\n _item = _list.start_item(_collection_index);\n }\n\n /**\n @notice Reads the last item from an Indexed Address Doubly Linked list\n @param _list The source list\n @param _collection_index Index of the Collection to evaluate\n @return {\"_item\" : \"First item on the list\"}\n */\n function read_last_from_indexed_addresses(DoublyLinkedList.IndexedAddress storage _list, bytes32 _collection_index)\n internal\n constant\n returns (address _item)\n {\n _item = _list.end_item(_collection_index);\n }\n\n /**\n @notice Reads the next item from an Indexed Address Doubly Linked List based on the specified `_current_item`\n @param _list The source list\n @param _collection_index Index of the Collection to evaluate\n @param _current_item The current item to use as base line\n @return {\"_item\": \"The next item on the list\"}\n */\n function read_next_from_indexed_addresses(DoublyLinkedList.IndexedAddress storage _list, bytes32 _collection_index, address _current_item)\n internal\n constant\n returns (address _item)\n {\n _item = _list.next_item(_collection_index, _current_item);\n }\n\n /**\n @notice Reads the previous item from an Index Address Doubly Linked List based on the specified `_current_item`\n @param _list The source list\n @param _collection_index Index of the Collection to evaluate\n @param _current_item The current item to use as base line\n @return {\"_item\" : \"The previous item on the list\"}\n */\n function read_previous_from_indexed_addresses(DoublyLinkedList.IndexedAddress storage _list, bytes32 _collection_index, address _current_item)\n internal\n constant\n returns (address _item)\n {\n _item = _list.previous_item(_collection_index, _current_item);\n }\n\n\n /**\n @notice Reads the total number of items in an Indexed Address Doubly Linked List\n @param _list The source list\n @param _collection_index Index of the Collection to evaluate\n @return {\"_count\": \"Length of the Doubly Linked list\"}\n */\n function read_total_indexed_addresses(DoublyLinkedList.IndexedAddress storage _list, bytes32 _collection_index)\n internal\n constant\n returns (uint256 _count)\n {\n _count = _list.total(_collection_index);\n }\n\n}\n", | ||
"sourcePath": "@digix/solidity-collections/contracts/abstract/IndexedAddressIteratorStorage.sol", | ||
"ast": { | ||
"attributes": { | ||
"absolutePath": "@digix/solidity-collections/contracts/abstract/IndexedAddressIteratorStorage.sol", | ||
"exportedSymbols": { | ||
"IndexedAddressIteratorStorage": [ | ||
2965 | ||
] | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".19" | ||
] | ||
}, | ||
"id": 2869, | ||
"name": "PragmaDirective", | ||
"src": "0:24:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"SourceUnit": 6001, | ||
"absolutePath": "@digix/solidity-collections/contracts/lib/DoublyLinkedList.sol", | ||
"file": "../lib/DoublyLinkedList.sol", | ||
"scope": 2966, | ||
"symbolAliases": [ | ||
null | ||
], | ||
"unitAlias": "" | ||
}, | ||
"id": 2870, | ||
"name": "ImportDirective", | ||
"src": "26:37:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"baseContracts": [ | ||
null | ||
], | ||
"contractDependencies": [ | ||
null | ||
], | ||
"contractKind": "contract", | ||
"documentation": "@title Indexed Address IteratorStorage\n@author DigixGlobal Pte Ltd\n@notice This contract utilizes: [Doubly Linked List](/DoublyLinkedList)", | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
2965 | ||
], | ||
"name": "IndexedAddressIteratorStorage", | ||
"scope": 2966 | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList", | ||
"referencedDeclaration": 6000, | ||
"type": "library DoublyLinkedList" | ||
}, | ||
"id": 2871, | ||
"name": "UserDefinedTypeName", | ||
"src": "267:16:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.IndexedAddress", | ||
"referencedDeclaration": 3479, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer" | ||
}, | ||
"id": 2872, | ||
"name": "UserDefinedTypeName", | ||
"src": "288:31:12" | ||
} | ||
], | ||
"id": 2873, | ||
"name": "UsingForDirective", | ||
"src": "261:59:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_first_from_indexed_addresses", | ||
"payable": false, | ||
"scope": 2965, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 2890, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.IndexedAddress", | ||
"referencedDeclaration": 3479, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer" | ||
}, | ||
"id": 2874, | ||
"name": "UserDefinedTypeName", | ||
"src": "600:31:12" | ||
} | ||
], | ||
"id": 2875, | ||
"name": "VariableDeclaration", | ||
"src": "600:45:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_collection_index", | ||
"scope": 2890, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "bytes32", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "bytes32", | ||
"type": "bytes32" | ||
}, | ||
"id": 2876, | ||
"name": "ElementaryTypeName", | ||
"src": "647:7:12" | ||
} | ||
], | ||
"id": 2877, | ||
"name": "VariableDeclaration", | ||
"src": "647:25:12" | ||
} | ||
], | ||
"id": 2878, | ||
"name": "ParameterList", | ||
"src": "599:74:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 2890, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2879, | ||
"name": "ElementaryTypeName", | ||
"src": "734:7:12" | ||
} | ||
], | ||
"id": 2880, | ||
"name": "VariableDeclaration", | ||
"src": "734:13:12" | ||
} | ||
], | ||
"id": 2881, | ||
"name": "ParameterList", | ||
"src": "733:15:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2880, | ||
"type": "address", | ||
"value": "_item" | ||
}, | ||
"id": 2882, | ||
"name": "Identifier", | ||
"src": "757:5:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"type": "address", | ||
"type_conversion": false | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "start_item", | ||
"referencedDeclaration": 5233, | ||
"type": "function (struct DoublyLinkedList.IndexedAddress storage pointer,bytes32) view returns (address)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2875, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 2883, | ||
"name": "Identifier", | ||
"src": "765:5:12" | ||
} | ||
], | ||
"id": 2884, | ||
"name": "MemberAccess", | ||
"src": "765:16:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2877, | ||
"type": "bytes32", | ||
"value": "_collection_index" | ||
}, | ||
"id": 2885, | ||
"name": "Identifier", | ||
"src": "782:17:12" | ||
} | ||
], | ||
"id": 2886, | ||
"name": "FunctionCall", | ||
"src": "765:35:12" | ||
} | ||
], | ||
"id": 2887, | ||
"name": "Assignment", | ||
"src": "757:43:12" | ||
} | ||
], | ||
"id": 2888, | ||
"name": "ExpressionStatement", | ||
"src": "757:43:12" | ||
} | ||
], | ||
"id": 2889, | ||
"name": "Block", | ||
"src": "751:54:12" | ||
} | ||
], | ||
"id": 2890, | ||
"name": "FunctionDefinition", | ||
"src": "557:248:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_last_from_indexed_addresses", | ||
"payable": false, | ||
"scope": 2965, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 2907, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.IndexedAddress", | ||
"referencedDeclaration": 3479, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer" | ||
}, | ||
"id": 2891, | ||
"name": "UserDefinedTypeName", | ||
"src": "1084:31:12" | ||
} | ||
], | ||
"id": 2892, | ||
"name": "VariableDeclaration", | ||
"src": "1084:45:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_collection_index", | ||
"scope": 2907, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "bytes32", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "bytes32", | ||
"type": "bytes32" | ||
}, | ||
"id": 2893, | ||
"name": "ElementaryTypeName", | ||
"src": "1131:7:12" | ||
} | ||
], | ||
"id": 2894, | ||
"name": "VariableDeclaration", | ||
"src": "1131:25:12" | ||
} | ||
], | ||
"id": 2895, | ||
"name": "ParameterList", | ||
"src": "1083:74:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 2907, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2896, | ||
"name": "ElementaryTypeName", | ||
"src": "1218:7:12" | ||
} | ||
], | ||
"id": 2897, | ||
"name": "VariableDeclaration", | ||
"src": "1218:13:12" | ||
} | ||
], | ||
"id": 2898, | ||
"name": "ParameterList", | ||
"src": "1217:15:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2897, | ||
"type": "address", | ||
"value": "_item" | ||
}, | ||
"id": 2899, | ||
"name": "Identifier", | ||
"src": "1241:5:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"type": "address", | ||
"type_conversion": false | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "end_item", | ||
"referencedDeclaration": 5273, | ||
"type": "function (struct DoublyLinkedList.IndexedAddress storage pointer,bytes32) view returns (address)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2892, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 2900, | ||
"name": "Identifier", | ||
"src": "1249:5:12" | ||
} | ||
], | ||
"id": 2901, | ||
"name": "MemberAccess", | ||
"src": "1249:14:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2894, | ||
"type": "bytes32", | ||
"value": "_collection_index" | ||
}, | ||
"id": 2902, | ||
"name": "Identifier", | ||
"src": "1264:17:12" | ||
} | ||
], | ||
"id": 2903, | ||
"name": "FunctionCall", | ||
"src": "1249:33:12" | ||
} | ||
], | ||
"id": 2904, | ||
"name": "Assignment", | ||
"src": "1241:41:12" | ||
} | ||
], | ||
"id": 2905, | ||
"name": "ExpressionStatement", | ||
"src": "1241:41:12" | ||
} | ||
], | ||
"id": 2906, | ||
"name": "Block", | ||
"src": "1235:52:12" | ||
} | ||
], | ||
"id": 2907, | ||
"name": "FunctionDefinition", | ||
"src": "1042:245:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_next_from_indexed_addresses", | ||
"payable": false, | ||
"scope": 2965, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 2927, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.IndexedAddress", | ||
"referencedDeclaration": 3479, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer" | ||
}, | ||
"id": 2908, | ||
"name": "UserDefinedTypeName", | ||
"src": "1669:31:12" | ||
} | ||
], | ||
"id": 2909, | ||
"name": "VariableDeclaration", | ||
"src": "1669:45:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_collection_index", | ||
"scope": 2927, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "bytes32", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "bytes32", | ||
"type": "bytes32" | ||
}, | ||
"id": 2910, | ||
"name": "ElementaryTypeName", | ||
"src": "1716:7:12" | ||
} | ||
], | ||
"id": 2911, | ||
"name": "VariableDeclaration", | ||
"src": "1716:25:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_current_item", | ||
"scope": 2927, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2912, | ||
"name": "ElementaryTypeName", | ||
"src": "1743:7:12" | ||
} | ||
], | ||
"id": 2913, | ||
"name": "VariableDeclaration", | ||
"src": "1743:21:12" | ||
} | ||
], | ||
"id": 2914, | ||
"name": "ParameterList", | ||
"src": "1668:97:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 2927, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2915, | ||
"name": "ElementaryTypeName", | ||
"src": "1826:7:12" | ||
} | ||
], | ||
"id": 2916, | ||
"name": "VariableDeclaration", | ||
"src": "1826:13:12" | ||
} | ||
], | ||
"id": 2917, | ||
"name": "ParameterList", | ||
"src": "1825:15:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2916, | ||
"type": "address", | ||
"value": "_item" | ||
}, | ||
"id": 2918, | ||
"name": "Identifier", | ||
"src": "1849:5:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"type": "address", | ||
"type_conversion": false | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
}, | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "next_item", | ||
"referencedDeclaration": 5415, | ||
"type": "function (struct DoublyLinkedList.IndexedAddress storage pointer,bytes32,address) view returns (address)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2909, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 2919, | ||
"name": "Identifier", | ||
"src": "1857:5:12" | ||
} | ||
], | ||
"id": 2920, | ||
"name": "MemberAccess", | ||
"src": "1857:15:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2911, | ||
"type": "bytes32", | ||
"value": "_collection_index" | ||
}, | ||
"id": 2921, | ||
"name": "Identifier", | ||
"src": "1873:17:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2913, | ||
"type": "address", | ||
"value": "_current_item" | ||
}, | ||
"id": 2922, | ||
"name": "Identifier", | ||
"src": "1892:13:12" | ||
} | ||
], | ||
"id": 2923, | ||
"name": "FunctionCall", | ||
"src": "1857:49:12" | ||
} | ||
], | ||
"id": 2924, | ||
"name": "Assignment", | ||
"src": "1849:57:12" | ||
} | ||
], | ||
"id": 2925, | ||
"name": "ExpressionStatement", | ||
"src": "1849:57:12" | ||
} | ||
], | ||
"id": 2926, | ||
"name": "Block", | ||
"src": "1843:68:12" | ||
} | ||
], | ||
"id": 2927, | ||
"name": "FunctionDefinition", | ||
"src": "1627:284:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_previous_from_indexed_addresses", | ||
"payable": false, | ||
"scope": 2965, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 2947, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.IndexedAddress", | ||
"referencedDeclaration": 3479, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer" | ||
}, | ||
"id": 2928, | ||
"name": "UserDefinedTypeName", | ||
"src": "2304:31:12" | ||
} | ||
], | ||
"id": 2929, | ||
"name": "VariableDeclaration", | ||
"src": "2304:45:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_collection_index", | ||
"scope": 2947, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "bytes32", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "bytes32", | ||
"type": "bytes32" | ||
}, | ||
"id": 2930, | ||
"name": "ElementaryTypeName", | ||
"src": "2351:7:12" | ||
} | ||
], | ||
"id": 2931, | ||
"name": "VariableDeclaration", | ||
"src": "2351:25:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_current_item", | ||
"scope": 2947, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2932, | ||
"name": "ElementaryTypeName", | ||
"src": "2378:7:12" | ||
} | ||
], | ||
"id": 2933, | ||
"name": "VariableDeclaration", | ||
"src": "2378:21:12" | ||
} | ||
], | ||
"id": 2934, | ||
"name": "ParameterList", | ||
"src": "2303:97:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 2947, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2935, | ||
"name": "ElementaryTypeName", | ||
"src": "2461:7:12" | ||
} | ||
], | ||
"id": 2936, | ||
"name": "VariableDeclaration", | ||
"src": "2461:13:12" | ||
} | ||
], | ||
"id": 2937, | ||
"name": "ParameterList", | ||
"src": "2460:15:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2936, | ||
"type": "address", | ||
"value": "_item" | ||
}, | ||
"id": 2938, | ||
"name": "Identifier", | ||
"src": "2484:5:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"type": "address", | ||
"type_conversion": false | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
}, | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "previous_item", | ||
"referencedDeclaration": 5367, | ||
"type": "function (struct DoublyLinkedList.IndexedAddress storage pointer,bytes32,address) view returns (address)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2929, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 2939, | ||
"name": "Identifier", | ||
"src": "2492:5:12" | ||
} | ||
], | ||
"id": 2940, | ||
"name": "MemberAccess", | ||
"src": "2492:19:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2931, | ||
"type": "bytes32", | ||
"value": "_collection_index" | ||
}, | ||
"id": 2941, | ||
"name": "Identifier", | ||
"src": "2512:17:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2933, | ||
"type": "address", | ||
"value": "_current_item" | ||
}, | ||
"id": 2942, | ||
"name": "Identifier", | ||
"src": "2531:13:12" | ||
} | ||
], | ||
"id": 2943, | ||
"name": "FunctionCall", | ||
"src": "2492:53:12" | ||
} | ||
], | ||
"id": 2944, | ||
"name": "Assignment", | ||
"src": "2484:61:12" | ||
} | ||
], | ||
"id": 2945, | ||
"name": "ExpressionStatement", | ||
"src": "2484:61:12" | ||
} | ||
], | ||
"id": 2946, | ||
"name": "Block", | ||
"src": "2478:72:12" | ||
} | ||
], | ||
"id": 2947, | ||
"name": "FunctionDefinition", | ||
"src": "2258:292:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_total_indexed_addresses", | ||
"payable": false, | ||
"scope": 2965, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 2964, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.IndexedAddress", | ||
"referencedDeclaration": 3479, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer" | ||
}, | ||
"id": 2948, | ||
"name": "UserDefinedTypeName", | ||
"src": "2847:31:12" | ||
} | ||
], | ||
"id": 2949, | ||
"name": "VariableDeclaration", | ||
"src": "2847:45:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_collection_index", | ||
"scope": 2964, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "bytes32", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "bytes32", | ||
"type": "bytes32" | ||
}, | ||
"id": 2950, | ||
"name": "ElementaryTypeName", | ||
"src": "2894:7:12" | ||
} | ||
], | ||
"id": 2951, | ||
"name": "VariableDeclaration", | ||
"src": "2894:25:12" | ||
} | ||
], | ||
"id": 2952, | ||
"name": "ParameterList", | ||
"src": "2846:74:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_count", | ||
"scope": 2964, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 2953, | ||
"name": "ElementaryTypeName", | ||
"src": "2981:7:12" | ||
} | ||
], | ||
"id": 2954, | ||
"name": "VariableDeclaration", | ||
"src": "2981:14:12" | ||
} | ||
], | ||
"id": 2955, | ||
"name": "ParameterList", | ||
"src": "2980:16:12" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2954, | ||
"type": "uint256", | ||
"value": "_count" | ||
}, | ||
"id": 2956, | ||
"name": "Identifier", | ||
"src": "3005:6:12" | ||
}, | ||
{ | ||
"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_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "total", | ||
"referencedDeclaration": 5193, | ||
"type": "function (struct DoublyLinkedList.IndexedAddress storage pointer,bytes32) view returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2949, | ||
"type": "struct DoublyLinkedList.IndexedAddress storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 2957, | ||
"name": "Identifier", | ||
"src": "3014:5:12" | ||
} | ||
], | ||
"id": 2958, | ||
"name": "MemberAccess", | ||
"src": "3014:11:12" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2951, | ||
"type": "bytes32", | ||
"value": "_collection_index" | ||
}, | ||
"id": 2959, | ||
"name": "Identifier", | ||
"src": "3026:17:12" | ||
} | ||
], | ||
"id": 2960, | ||
"name": "FunctionCall", | ||
"src": "3014:30:12" | ||
} | ||
], | ||
"id": 2961, | ||
"name": "Assignment", | ||
"src": "3005:39:12" | ||
} | ||
], | ||
"id": 2962, | ||
"name": "ExpressionStatement", | ||
"src": "3005:39:12" | ||
} | ||
], | ||
"id": 2963, | ||
"name": "Block", | ||
"src": "2999:50:12" | ||
} | ||
], | ||
"id": 2964, | ||
"name": "FunctionDefinition", | ||
"src": "2809:240:12" | ||
} | ||
], | ||
"id": 2965, | ||
"name": "ContractDefinition", | ||
"src": "217:2835:12" | ||
} | ||
], | ||
"id": 2966, | ||
"name": "SourceUnit", | ||
"src": "0:3053:12" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.19+commit.c4cbbb05.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schema_version": "0.0.5", | ||
"updated_at": 1508405768505 | ||
"schemaVersion": "1.0.1", | ||
"updatedAt": "2018-03-07T06:04:58.401Z" | ||
} |
{ | ||
"contract_name": "Migrations", | ||
"contractName": "Migrations", | ||
"abi": [ | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "new_address", | ||
"type": "address" | ||
} | ||
], | ||
"name": "upgrade", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
@@ -47,2 +33,8 @@ "inputs": [], | ||
{ | ||
"inputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"constant": false, | ||
@@ -62,12 +54,770 @@ "inputs": [ | ||
{ | ||
"inputs": [], | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "new_address", | ||
"type": "address" | ||
} | ||
], | ||
"name": "upgrade", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
"type": "function" | ||
} | ||
], | ||
"unlinked_binary": "0x6060604052341561000f57600080fd5b5b60008054600160a060020a03191633600160a060020a03161790555b5b6101e58061003c6000396000f300606060405263ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f010811461005e578063445df0ac1461007f5780638da5cb5b146100a4578063fdacd576146100d3575b600080fd5b341561006957600080fd5b61007d600160a060020a03600435166100eb565b005b341561008a57600080fd5b610092610182565b60405190815260200160405180910390f35b34156100af57600080fd5b6100b7610188565b604051600160a060020a03909116815260200160405180910390f35b34156100de57600080fd5b61007d600435610197565b005b6000805433600160a060020a039081169116141561017c5781905080600160a060020a031663fdacd5766001546040517c010000000000000000000000000000000000000000000000000000000063ffffffff84160281526004810191909152602401600060405180830381600087803b151561016757600080fd5b6102c65a03f1151561017857600080fd5b5050505b5b5b5050565b60015481565b600054600160a060020a031681565b60005433600160a060020a03908116911614156101b45760018190555b5b5b505600a165627a7a72305820cc828970602f5505b202a8ae530f6c9a90834350516874eaea8a68aa840f65c50029", | ||
"bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102db8061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a7230582075048f7359c5214f47d37ba87445857a7790c9513faa3bd42e552f3688b9005e0029", | ||
"deployedBytecode": "0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a7230582075048f7359c5214f47d37ba87445857a7790c9513faa3bd42e552f3688b9005e0029", | ||
"sourceMap": "100:779:0:-;;;337:58;;;;;;;;380:10;372:5;;:18;;;;;;;;;;;;;;;;;;100:779;;;;;;", | ||
"deployedSourceMap": "100:779:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;712:165;;;;;;;;;;;;;;;;;;;;;;;;;;;;233:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;208:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;503:103;;;;;;;;;;;;;;;;;;;;;;;;;;712:165;774:19;320:5;;;;;;;;;;;306:19;;:10;:19;;;302:26;;;807:11;774:45;;825:8;:21;;;847:24;;825:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;302:26;712:165;;:::o;233:36::-;;;;:::o;208:20::-;;;;;;;;;;;;;:::o;503:103::-;320:5;;;;;;;;;;;306:19;;:10;:19;;;302:26;;;592:9;565:24;:36;;;;302:26;503:103;:::o", | ||
"source": "pragma solidity ^0.4.19;\n\n/**\n@title Truffle Migrations Contract\n@author Consensys / Tim Coulter\n*/\ncontract Migrations {\n /// @notice The owner of this Contract\n /// @dev Set to `msg.sender` on creation\n address public owner;\n\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations() public {\n owner = msg.sender;\n }\n\n /// @notice Set the latest completed migration step for project\n /// @param completed Completed step\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n /// @notice Upgrades to a new Migrations contract\n /// @param new_address Address of the new owner\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", | ||
"sourcePath": "/home/rohit/Develop/cdap/contracts/Migrations.sol", | ||
"ast": { | ||
"attributes": { | ||
"absolutePath": "/home/rohit/Develop/cdap/contracts/Migrations.sol", | ||
"exportedSymbols": { | ||
"Migrations": [ | ||
56 | ||
] | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".19" | ||
] | ||
}, | ||
"id": 1, | ||
"name": "PragmaDirective", | ||
"src": "0:24:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"baseContracts": [ | ||
null | ||
], | ||
"contractDependencies": [ | ||
null | ||
], | ||
"contractKind": "contract", | ||
"documentation": "@title Truffle Migrations Contract\n@author Consensys / Tim Coulter", | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
56 | ||
], | ||
"name": "Migrations", | ||
"scope": 57 | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "owner", | ||
"scope": 56, | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 2, | ||
"name": "ElementaryTypeName", | ||
"src": "208:7:0" | ||
} | ||
], | ||
"id": 3, | ||
"name": "VariableDeclaration", | ||
"src": "208:20:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "last_completed_migration", | ||
"scope": 56, | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint", | ||
"type": "uint256" | ||
}, | ||
"id": 4, | ||
"name": "ElementaryTypeName", | ||
"src": "233:4:0" | ||
} | ||
], | ||
"id": 5, | ||
"name": "VariableDeclaration", | ||
"src": "233:36:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"name": "restricted", | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 6, | ||
"name": "ParameterList", | ||
"src": "293:2:0" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"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, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "sender", | ||
"referencedDeclaration": null, | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 6012, | ||
"type": "msg", | ||
"value": "msg" | ||
}, | ||
"id": 7, | ||
"name": "Identifier", | ||
"src": "306:3:0" | ||
} | ||
], | ||
"id": 8, | ||
"name": "MemberAccess", | ||
"src": "306:10:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3, | ||
"type": "address", | ||
"value": "owner" | ||
}, | ||
"id": 9, | ||
"name": "Identifier", | ||
"src": "320:5:0" | ||
} | ||
], | ||
"id": 10, | ||
"name": "BinaryOperation", | ||
"src": "306:19:0" | ||
}, | ||
{ | ||
"id": 11, | ||
"name": "PlaceholderStatement", | ||
"src": "327:1:0" | ||
} | ||
], | ||
"id": 12, | ||
"name": "IfStatement", | ||
"src": "302:26:0" | ||
} | ||
], | ||
"id": 13, | ||
"name": "Block", | ||
"src": "296:37:0" | ||
} | ||
], | ||
"id": 14, | ||
"name": "ModifierDefinition", | ||
"src": "274:59:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"implemented": true, | ||
"isConstructor": true, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "Migrations", | ||
"payable": false, | ||
"scope": 56, | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 15, | ||
"name": "ParameterList", | ||
"src": "356:2:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 16, | ||
"name": "ParameterList", | ||
"src": "366:0:0" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3, | ||
"type": "address", | ||
"value": "owner" | ||
}, | ||
"id": 17, | ||
"name": "Identifier", | ||
"src": "372:5:0" | ||
}, | ||
{ | ||
"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": 6012, | ||
"type": "msg", | ||
"value": "msg" | ||
}, | ||
"id": 18, | ||
"name": "Identifier", | ||
"src": "380:3:0" | ||
} | ||
], | ||
"id": 19, | ||
"name": "MemberAccess", | ||
"src": "380:10:0" | ||
} | ||
], | ||
"id": 20, | ||
"name": "Assignment", | ||
"src": "372:18:0" | ||
} | ||
], | ||
"id": 21, | ||
"name": "ExpressionStatement", | ||
"src": "372:18:0" | ||
} | ||
], | ||
"id": 22, | ||
"name": "Block", | ||
"src": "366:29:0" | ||
} | ||
], | ||
"id": 23, | ||
"name": "FunctionDefinition", | ||
"src": "337:58:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"name": "setCompleted", | ||
"payable": false, | ||
"scope": 56, | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "completed", | ||
"scope": 35, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint", | ||
"type": "uint256" | ||
}, | ||
"id": 24, | ||
"name": "ElementaryTypeName", | ||
"src": "525:4:0" | ||
} | ||
], | ||
"id": 25, | ||
"name": "VariableDeclaration", | ||
"src": "525:14:0" | ||
} | ||
], | ||
"id": 26, | ||
"name": "ParameterList", | ||
"src": "524:16:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 29, | ||
"name": "ParameterList", | ||
"src": "559:0:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"arguments": [ | ||
null | ||
] | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 14, | ||
"type": "modifier ()", | ||
"value": "restricted" | ||
}, | ||
"id": 27, | ||
"name": "Identifier", | ||
"src": "548:10:0" | ||
} | ||
], | ||
"id": 28, | ||
"name": "ModifierInvocation", | ||
"src": "548:10:0" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 5, | ||
"type": "uint256", | ||
"value": "last_completed_migration" | ||
}, | ||
"id": 30, | ||
"name": "Identifier", | ||
"src": "565:24:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 25, | ||
"type": "uint256", | ||
"value": "completed" | ||
}, | ||
"id": 31, | ||
"name": "Identifier", | ||
"src": "592:9:0" | ||
} | ||
], | ||
"id": 32, | ||
"name": "Assignment", | ||
"src": "565:36:0" | ||
} | ||
], | ||
"id": 33, | ||
"name": "ExpressionStatement", | ||
"src": "565:36:0" | ||
} | ||
], | ||
"id": 34, | ||
"name": "Block", | ||
"src": "559:47:0" | ||
} | ||
], | ||
"id": 35, | ||
"name": "FunctionDefinition", | ||
"src": "503:103:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"name": "upgrade", | ||
"payable": false, | ||
"scope": 56, | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "new_address", | ||
"scope": 55, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"type": "address" | ||
}, | ||
"id": 36, | ||
"name": "ElementaryTypeName", | ||
"src": "729:7:0" | ||
} | ||
], | ||
"id": 37, | ||
"name": "VariableDeclaration", | ||
"src": "729:19:0" | ||
} | ||
], | ||
"id": 38, | ||
"name": "ParameterList", | ||
"src": "728:21:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 41, | ||
"name": "ParameterList", | ||
"src": "768:0:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"arguments": [ | ||
null | ||
] | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 14, | ||
"type": "modifier ()", | ||
"value": "restricted" | ||
}, | ||
"id": 39, | ||
"name": "Identifier", | ||
"src": "757:10:0" | ||
} | ||
], | ||
"id": 40, | ||
"name": "ModifierInvocation", | ||
"src": "757:10:0" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"assignments": [ | ||
43 | ||
] | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "upgraded", | ||
"scope": 55, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "contract Migrations", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "Migrations", | ||
"referencedDeclaration": 56, | ||
"type": "contract Migrations" | ||
}, | ||
"id": 42, | ||
"name": "UserDefinedTypeName", | ||
"src": "774:10:0" | ||
} | ||
], | ||
"id": 43, | ||
"name": "VariableDeclaration", | ||
"src": "774:19:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"type": "contract Migrations", | ||
"type_conversion": true | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 56, | ||
"type": "type(contract Migrations)", | ||
"value": "Migrations" | ||
}, | ||
"id": 44, | ||
"name": "Identifier", | ||
"src": "796:10:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 37, | ||
"type": "address", | ||
"value": "new_address" | ||
}, | ||
"id": 45, | ||
"name": "Identifier", | ||
"src": "807:11:0" | ||
} | ||
], | ||
"id": 46, | ||
"name": "FunctionCall", | ||
"src": "796:23:0" | ||
} | ||
], | ||
"id": 47, | ||
"name": "VariableDeclarationStatement", | ||
"src": "774:45:0" | ||
}, | ||
{ | ||
"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" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "setCompleted", | ||
"referencedDeclaration": 35, | ||
"type": "function (uint256) external" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 43, | ||
"type": "contract Migrations", | ||
"value": "upgraded" | ||
}, | ||
"id": 48, | ||
"name": "Identifier", | ||
"src": "825:8:0" | ||
} | ||
], | ||
"id": 50, | ||
"name": "MemberAccess", | ||
"src": "825:21:0" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 5, | ||
"type": "uint256", | ||
"value": "last_completed_migration" | ||
}, | ||
"id": 51, | ||
"name": "Identifier", | ||
"src": "847:24:0" | ||
} | ||
], | ||
"id": 52, | ||
"name": "FunctionCall", | ||
"src": "825:47:0" | ||
} | ||
], | ||
"id": 53, | ||
"name": "ExpressionStatement", | ||
"src": "825:47:0" | ||
} | ||
], | ||
"id": 54, | ||
"name": "Block", | ||
"src": "768:109:0" | ||
} | ||
], | ||
"id": 55, | ||
"name": "FunctionDefinition", | ||
"src": "712:165:0" | ||
} | ||
], | ||
"id": 56, | ||
"name": "ContractDefinition", | ||
"src": "100:779:0" | ||
} | ||
], | ||
"id": 57, | ||
"name": "SourceUnit", | ||
"src": "0:880:0" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.19+commit.c4cbbb05.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schema_version": "0.0.5", | ||
"updated_at": 1508405768504 | ||
"schemaVersion": "1.0.1", | ||
"updatedAt": "2018-03-07T06:04:58.392Z" | ||
} |
{ | ||
"contract_name": "UintIteratorController", | ||
"contractName": "UintIteratorController", | ||
"abi": [], | ||
"unlinked_binary": "0x60606040523415600e57600080fd5b5b603680601c6000396000f30060606040525b600080fd00a165627a7a723058200e5cecb5e48e937a42ba672d823137596f0d7714d79598561c562417407eee5d0029", | ||
"bytecode": "0x60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a7230582073655e1023e680f5ded8cb8a87df82b7a3583a2d3b2388b397d64a9578151a750029", | ||
"deployedBytecode": "0x6060604052600080fd00a165627a7a7230582073655e1023e680f5ded8cb8a87df82b7a3583a2d3b2388b397d64a9578151a750029", | ||
"sourceMap": "135:2103:13:-;;;;;;;;;;;;;;;;;", | ||
"deployedSourceMap": "135:2103:13:-;;;;;", | ||
"source": "pragma solidity ^0.4.19;\n\n/**\n @title Uint Iterator Interactive\n @author DigixGlobal Pte Ltd\n*/\nimport \"./UintIteratorStorage.sol\";\n\ncontract UintIteratorController {\n\n /**\n @notice Returns the first item from the list\n @param _function Function that returns the first item\n @return {\"_item\": \"The first item\"}\n */\n function get_first_from_uints(function () constant external returns (uint256) _function)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _function();\n }\n\n /**\n @notice Returns the last item from the list\n @param _function Function that returns the last item\n @return {\"_item\": \"The last item\"}\n */\n function get_last_from_uints(function () constant external returns (uint256) _function)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _function();\n }\n\n /**\n @notice Returns the next item from the list based on the `_current_item`\n @param _function Function that returns the next item\n @param _current_item The current item\n @return {\"_item\": \"The next item\"}\n */\n function get_next_from_uints(function (uint256) constant external returns (uint256) _function, uint256 _current_item)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _function(_current_item);\n }\n\n /**\n @notice Returns the previous item from the list based on the `_current_item`\n @param _function Function that returns the previous item\n @param _current_item The current item\n @return {\"_item\": \"The next item\"}\n */\n function get_previous_from_uints(function (uint256) constant external returns (uint256) _function, uint256 _current_item)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _function(_current_item);\n }\n\n /**\n @notice Returns the total number of items from the list\n @param _function Function that returns the total number of items\n @return {\"_total_count\": \"The total number of items\"}\n */\n function get_total_uints(function () constant external returns (uint256) _function)\n internal\n constant\n returns (uint256 _total_count)\n {\n _total_count = _function();\n }\n\n}\n", | ||
"sourcePath": "@digix/solidity-collections/contracts/abstract/UintIteratorController.sol", | ||
"ast": { | ||
"attributes": { | ||
"absolutePath": "@digix/solidity-collections/contracts/abstract/UintIteratorController.sol", | ||
"exportedSymbols": { | ||
"UintIteratorController": [ | ||
3064 | ||
] | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".19" | ||
] | ||
}, | ||
"id": 2967, | ||
"name": "PragmaDirective", | ||
"src": "0:24:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"SourceUnit": 3443, | ||
"absolutePath": "@digix/solidity-collections/contracts/abstract/UintIteratorStorage.sol", | ||
"file": "./UintIteratorStorage.sol", | ||
"scope": 3065, | ||
"symbolAliases": [ | ||
null | ||
], | ||
"unitAlias": "" | ||
}, | ||
"id": 2968, | ||
"name": "ImportDirective", | ||
"src": "98:35:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"baseContracts": [ | ||
null | ||
], | ||
"contractDependencies": [ | ||
null | ||
], | ||
"contractKind": "contract", | ||
"documentation": null, | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
3064 | ||
], | ||
"name": "UintIteratorController", | ||
"scope": 3065 | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "get_first_from_uints", | ||
"payable": false, | ||
"scope": 3064, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_function", | ||
"scope": 2985, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "function () view external returns (uint256)", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function () view external returns (uint256)", | ||
"visibility": "external" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 2969, | ||
"name": "ParameterList", | ||
"src": "369:2:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 2985, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 2970, | ||
"name": "ElementaryTypeName", | ||
"src": "399:7:13" | ||
} | ||
], | ||
"id": 2971, | ||
"name": "VariableDeclaration", | ||
"src": "399:7:13" | ||
} | ||
], | ||
"id": 2972, | ||
"name": "ParameterList", | ||
"src": "398:9:13" | ||
} | ||
], | ||
"id": 2973, | ||
"name": "FunctionTypeName", | ||
"src": "360:57:13" | ||
} | ||
], | ||
"id": 2974, | ||
"name": "VariableDeclaration", | ||
"src": "360:57:13" | ||
} | ||
], | ||
"id": 2975, | ||
"name": "ParameterList", | ||
"src": "359:59:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 2985, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 2976, | ||
"name": "ElementaryTypeName", | ||
"src": "479:7:13" | ||
} | ||
], | ||
"id": 2977, | ||
"name": "VariableDeclaration", | ||
"src": "479:13:13" | ||
} | ||
], | ||
"id": 2978, | ||
"name": "ParameterList", | ||
"src": "478:15:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2977, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 2979, | ||
"name": "Identifier", | ||
"src": "502:5:13" | ||
}, | ||
{ | ||
"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": 2974, | ||
"type": "function () view external returns (uint256)", | ||
"value": "_function" | ||
}, | ||
"id": 2980, | ||
"name": "Identifier", | ||
"src": "510:9:13" | ||
} | ||
], | ||
"id": 2981, | ||
"name": "FunctionCall", | ||
"src": "510:11:13" | ||
} | ||
], | ||
"id": 2982, | ||
"name": "Assignment", | ||
"src": "502:19:13" | ||
} | ||
], | ||
"id": 2983, | ||
"name": "ExpressionStatement", | ||
"src": "502:19:13" | ||
} | ||
], | ||
"id": 2984, | ||
"name": "Block", | ||
"src": "496:30:13" | ||
} | ||
], | ||
"id": 2985, | ||
"name": "FunctionDefinition", | ||
"src": "330:196:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "get_last_from_uints", | ||
"payable": false, | ||
"scope": 3064, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_function", | ||
"scope": 3002, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "function () view external returns (uint256)", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function () view external returns (uint256)", | ||
"visibility": "external" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 2986, | ||
"name": "ParameterList", | ||
"src": "723:2:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 3002, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 2987, | ||
"name": "ElementaryTypeName", | ||
"src": "753:7:13" | ||
} | ||
], | ||
"id": 2988, | ||
"name": "VariableDeclaration", | ||
"src": "753:7:13" | ||
} | ||
], | ||
"id": 2989, | ||
"name": "ParameterList", | ||
"src": "752:9:13" | ||
} | ||
], | ||
"id": 2990, | ||
"name": "FunctionTypeName", | ||
"src": "714:57:13" | ||
} | ||
], | ||
"id": 2991, | ||
"name": "VariableDeclaration", | ||
"src": "714:57:13" | ||
} | ||
], | ||
"id": 2992, | ||
"name": "ParameterList", | ||
"src": "713:59:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3002, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 2993, | ||
"name": "ElementaryTypeName", | ||
"src": "833:7:13" | ||
} | ||
], | ||
"id": 2994, | ||
"name": "VariableDeclaration", | ||
"src": "833:13:13" | ||
} | ||
], | ||
"id": 2995, | ||
"name": "ParameterList", | ||
"src": "832:15:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 2994, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 2996, | ||
"name": "Identifier", | ||
"src": "856:5:13" | ||
}, | ||
{ | ||
"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": 2991, | ||
"type": "function () view external returns (uint256)", | ||
"value": "_function" | ||
}, | ||
"id": 2997, | ||
"name": "Identifier", | ||
"src": "864:9:13" | ||
} | ||
], | ||
"id": 2998, | ||
"name": "FunctionCall", | ||
"src": "864:11:13" | ||
} | ||
], | ||
"id": 2999, | ||
"name": "Assignment", | ||
"src": "856:19:13" | ||
} | ||
], | ||
"id": 3000, | ||
"name": "ExpressionStatement", | ||
"src": "856:19:13" | ||
} | ||
], | ||
"id": 3001, | ||
"name": "Block", | ||
"src": "850:30:13" | ||
} | ||
], | ||
"id": 3002, | ||
"name": "FunctionDefinition", | ||
"src": "685:195:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "get_next_from_uints", | ||
"payable": false, | ||
"scope": 3064, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_function", | ||
"scope": 3024, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "function (uint256) view external returns (uint256)", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function (uint256) view external returns (uint256)", | ||
"visibility": "external" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 3024, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3003, | ||
"name": "ElementaryTypeName", | ||
"src": "1149:7:13" | ||
} | ||
], | ||
"id": 3004, | ||
"name": "VariableDeclaration", | ||
"src": "1149:7:13" | ||
} | ||
], | ||
"id": 3005, | ||
"name": "ParameterList", | ||
"src": "1148:9:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 3024, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3006, | ||
"name": "ElementaryTypeName", | ||
"src": "1185:7:13" | ||
} | ||
], | ||
"id": 3007, | ||
"name": "VariableDeclaration", | ||
"src": "1185:7:13" | ||
} | ||
], | ||
"id": 3008, | ||
"name": "ParameterList", | ||
"src": "1184:9:13" | ||
} | ||
], | ||
"id": 3009, | ||
"name": "FunctionTypeName", | ||
"src": "1139:64:13" | ||
} | ||
], | ||
"id": 3010, | ||
"name": "VariableDeclaration", | ||
"src": "1139:64:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_current_item", | ||
"scope": 3024, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3011, | ||
"name": "ElementaryTypeName", | ||
"src": "1205:7:13" | ||
} | ||
], | ||
"id": 3012, | ||
"name": "VariableDeclaration", | ||
"src": "1205:21:13" | ||
} | ||
], | ||
"id": 3013, | ||
"name": "ParameterList", | ||
"src": "1138:89:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3024, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3014, | ||
"name": "ElementaryTypeName", | ||
"src": "1288:7:13" | ||
} | ||
], | ||
"id": 3015, | ||
"name": "VariableDeclaration", | ||
"src": "1288:13:13" | ||
} | ||
], | ||
"id": 3016, | ||
"name": "ParameterList", | ||
"src": "1287:15:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3015, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 3017, | ||
"name": "Identifier", | ||
"src": "1311:5: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" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3010, | ||
"type": "function (uint256) view external returns (uint256)", | ||
"value": "_function" | ||
}, | ||
"id": 3018, | ||
"name": "Identifier", | ||
"src": "1319:9:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3012, | ||
"type": "uint256", | ||
"value": "_current_item" | ||
}, | ||
"id": 3019, | ||
"name": "Identifier", | ||
"src": "1329:13:13" | ||
} | ||
], | ||
"id": 3020, | ||
"name": "FunctionCall", | ||
"src": "1319:24:13" | ||
} | ||
], | ||
"id": 3021, | ||
"name": "Assignment", | ||
"src": "1311:32:13" | ||
} | ||
], | ||
"id": 3022, | ||
"name": "ExpressionStatement", | ||
"src": "1311:32:13" | ||
} | ||
], | ||
"id": 3023, | ||
"name": "Block", | ||
"src": "1305:43:13" | ||
} | ||
], | ||
"id": 3024, | ||
"name": "FunctionDefinition", | ||
"src": "1110:238:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "get_previous_from_uints", | ||
"payable": false, | ||
"scope": 3064, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_function", | ||
"scope": 3046, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "function (uint256) view external returns (uint256)", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function (uint256) view external returns (uint256)", | ||
"visibility": "external" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 3046, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3025, | ||
"name": "ElementaryTypeName", | ||
"src": "1629:7:13" | ||
} | ||
], | ||
"id": 3026, | ||
"name": "VariableDeclaration", | ||
"src": "1629:7:13" | ||
} | ||
], | ||
"id": 3027, | ||
"name": "ParameterList", | ||
"src": "1628:9:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 3046, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3028, | ||
"name": "ElementaryTypeName", | ||
"src": "1665:7:13" | ||
} | ||
], | ||
"id": 3029, | ||
"name": "VariableDeclaration", | ||
"src": "1665:7:13" | ||
} | ||
], | ||
"id": 3030, | ||
"name": "ParameterList", | ||
"src": "1664:9:13" | ||
} | ||
], | ||
"id": 3031, | ||
"name": "FunctionTypeName", | ||
"src": "1619:64:13" | ||
} | ||
], | ||
"id": 3032, | ||
"name": "VariableDeclaration", | ||
"src": "1619:64:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_current_item", | ||
"scope": 3046, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3033, | ||
"name": "ElementaryTypeName", | ||
"src": "1685:7:13" | ||
} | ||
], | ||
"id": 3034, | ||
"name": "VariableDeclaration", | ||
"src": "1685:21:13" | ||
} | ||
], | ||
"id": 3035, | ||
"name": "ParameterList", | ||
"src": "1618:89:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3046, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3036, | ||
"name": "ElementaryTypeName", | ||
"src": "1768:7:13" | ||
} | ||
], | ||
"id": 3037, | ||
"name": "VariableDeclaration", | ||
"src": "1768:13:13" | ||
} | ||
], | ||
"id": 3038, | ||
"name": "ParameterList", | ||
"src": "1767:15:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3037, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 3039, | ||
"name": "Identifier", | ||
"src": "1791:5: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" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3032, | ||
"type": "function (uint256) view external returns (uint256)", | ||
"value": "_function" | ||
}, | ||
"id": 3040, | ||
"name": "Identifier", | ||
"src": "1799:9:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3034, | ||
"type": "uint256", | ||
"value": "_current_item" | ||
}, | ||
"id": 3041, | ||
"name": "Identifier", | ||
"src": "1809:13:13" | ||
} | ||
], | ||
"id": 3042, | ||
"name": "FunctionCall", | ||
"src": "1799:24:13" | ||
} | ||
], | ||
"id": 3043, | ||
"name": "Assignment", | ||
"src": "1791:32:13" | ||
} | ||
], | ||
"id": 3044, | ||
"name": "ExpressionStatement", | ||
"src": "1791:32:13" | ||
} | ||
], | ||
"id": 3045, | ||
"name": "Block", | ||
"src": "1785:43:13" | ||
} | ||
], | ||
"id": 3046, | ||
"name": "FunctionDefinition", | ||
"src": "1586:242:13" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "get_total_uints", | ||
"payable": false, | ||
"scope": 3064, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_function", | ||
"scope": 3063, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "function () view external returns (uint256)", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function () view external returns (uint256)", | ||
"visibility": "external" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 3047, | ||
"name": "ParameterList", | ||
"src": "2064:2:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "", | ||
"scope": 3063, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3048, | ||
"name": "ElementaryTypeName", | ||
"src": "2094:7:13" | ||
} | ||
], | ||
"id": 3049, | ||
"name": "VariableDeclaration", | ||
"src": "2094:7:13" | ||
} | ||
], | ||
"id": 3050, | ||
"name": "ParameterList", | ||
"src": "2093:9:13" | ||
} | ||
], | ||
"id": 3051, | ||
"name": "FunctionTypeName", | ||
"src": "2055:57:13" | ||
} | ||
], | ||
"id": 3052, | ||
"name": "VariableDeclaration", | ||
"src": "2055:57:13" | ||
} | ||
], | ||
"id": 3053, | ||
"name": "ParameterList", | ||
"src": "2054:59:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_total_count", | ||
"scope": 3063, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3054, | ||
"name": "ElementaryTypeName", | ||
"src": "2174:7:13" | ||
} | ||
], | ||
"id": 3055, | ||
"name": "VariableDeclaration", | ||
"src": "2174:20:13" | ||
} | ||
], | ||
"id": 3056, | ||
"name": "ParameterList", | ||
"src": "2173:22:13" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3055, | ||
"type": "uint256", | ||
"value": "_total_count" | ||
}, | ||
"id": 3057, | ||
"name": "Identifier", | ||
"src": "2204:12:13" | ||
}, | ||
{ | ||
"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": 3052, | ||
"type": "function () view external returns (uint256)", | ||
"value": "_function" | ||
}, | ||
"id": 3058, | ||
"name": "Identifier", | ||
"src": "2219:9:13" | ||
} | ||
], | ||
"id": 3059, | ||
"name": "FunctionCall", | ||
"src": "2219:11:13" | ||
} | ||
], | ||
"id": 3060, | ||
"name": "Assignment", | ||
"src": "2204:26:13" | ||
} | ||
], | ||
"id": 3061, | ||
"name": "ExpressionStatement", | ||
"src": "2204:26:13" | ||
} | ||
], | ||
"id": 3062, | ||
"name": "Block", | ||
"src": "2198:37:13" | ||
} | ||
], | ||
"id": 3063, | ||
"name": "FunctionDefinition", | ||
"src": "2030:205:13" | ||
} | ||
], | ||
"id": 3064, | ||
"name": "ContractDefinition", | ||
"src": "135:2103:13" | ||
} | ||
], | ||
"id": 3065, | ||
"name": "SourceUnit", | ||
"src": "0:2239:13" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.19+commit.c4cbbb05.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schema_version": "0.0.5", | ||
"updated_at": 1508405768505 | ||
"schemaVersion": "1.0.1", | ||
"updatedAt": "2018-03-07T06:04:58.401Z" | ||
} |
{ | ||
"contract_name": "UintIteratorStorage", | ||
"contractName": "UintIteratorStorage", | ||
"abi": [], | ||
"unlinked_binary": "0x60606040523415600e57600080fd5b5b603680601c6000396000f30060606040525b600080fd00a165627a7a7230582082c2be378f38e369340fcf8d4953366db053afe5402cc730f2f812668295a42c0029", | ||
"bytecode": "0x60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a72305820bbc3b8df569811b52f8f24a008533345b1b7fc54aa696533d4944c480ff175d10029", | ||
"deployedBytecode": "0x6060604052600080fd00a165627a7a72305820bbc3b8df569811b52f8f24a008533345b1b7fc54aa696533d4944c480ff175d10029", | ||
"sourceMap": "133:2115:15:-;;;;;;;;;;;;;;;;;", | ||
"deployedSourceMap": "133:2115:15:-;;;;;", | ||
"source": "pragma solidity ^0.4.19;\n\nimport \"../lib/DoublyLinkedList.sol\";\n\n/**\n @title Uint Iterator Storage\n @author DigixGlobal Pte Ltd\n*/\ncontract UintIteratorStorage {\n\n using DoublyLinkedList for DoublyLinkedList.Uint;\n\n /**\n @notice Returns the first item from a `DoublyLinkedList.Uint` list\n @param _list The DoublyLinkedList.Uint list\n @return {\"_item\": \"The first item\"}\n */\n function read_first_from_uints(DoublyLinkedList.Uint storage _list)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _list.start_item();\n }\n\n /**\n @notice Returns the last item from a `DoublyLinkedList.Uint` list\n @param _list The DoublyLinkedList.Uint list\n @return {\"_item\": \"The last item\"}\n */\n function read_last_from_uints(DoublyLinkedList.Uint storage _list)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _list.end_item();\n }\n\n /**\n @notice Returns the next item from a `DoublyLinkedList.Uint` list based on the specified `_current_item`\n @param _list The DoublyLinkedList.Uint list\n @param _current_item The current item\n @return {\"_item\": \"The next item\"}\n */\n function read_next_from_uints(DoublyLinkedList.Uint storage _list, uint256 _current_item)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _list.next_item(_current_item);\n }\n\n /**\n @notice Returns the previous item from a `DoublyLinkedList.Uint` list based on the specified `_current_item`\n @param _list The DoublyLinkedList.Uint list\n @param _current_item The current item\n @return {\"_item\": \"The previous item\"}\n */\n function read_previous_from_uints(DoublyLinkedList.Uint storage _list, uint256 _current_item)\n internal\n constant\n returns (uint256 _item)\n {\n _item = _list.previous_item(_current_item);\n }\n\n /**\n @notice Returns the total count of itemsfrom a `DoublyLinkedList.Uint` list\n @param _list The DoublyLinkedList.Uint list\n @return {\"_count\": \"The total count of items\"}\n */\n function read_total_uints(DoublyLinkedList.Uint storage _list)\n internal\n constant\n returns (uint256 _count)\n {\n _count = _list.total();\n }\n\n}\n", | ||
"sourcePath": "@digix/solidity-collections/contracts/abstract/UintIteratorStorage.sol", | ||
"ast": { | ||
"attributes": { | ||
"absolutePath": "@digix/solidity-collections/contracts/abstract/UintIteratorStorage.sol", | ||
"exportedSymbols": { | ||
"UintIteratorStorage": [ | ||
3442 | ||
] | ||
} | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".19" | ||
] | ||
}, | ||
"id": 3361, | ||
"name": "PragmaDirective", | ||
"src": "0:24:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"SourceUnit": 6001, | ||
"absolutePath": "@digix/solidity-collections/contracts/lib/DoublyLinkedList.sol", | ||
"file": "../lib/DoublyLinkedList.sol", | ||
"scope": 3443, | ||
"symbolAliases": [ | ||
null | ||
], | ||
"unitAlias": "" | ||
}, | ||
"id": 3362, | ||
"name": "ImportDirective", | ||
"src": "26:37:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"baseContracts": [ | ||
null | ||
], | ||
"contractDependencies": [ | ||
null | ||
], | ||
"contractKind": "contract", | ||
"documentation": "@title Uint Iterator Storage\n@author DigixGlobal Pte Ltd", | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
3442 | ||
], | ||
"name": "UintIteratorStorage", | ||
"scope": 3443 | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList", | ||
"referencedDeclaration": 6000, | ||
"type": "library DoublyLinkedList" | ||
}, | ||
"id": 3363, | ||
"name": "UserDefinedTypeName", | ||
"src": "173:16:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.Uint", | ||
"referencedDeclaration": 3493, | ||
"type": "struct DoublyLinkedList.Uint storage pointer" | ||
}, | ||
"id": 3364, | ||
"name": "UserDefinedTypeName", | ||
"src": "194:21:15" | ||
} | ||
], | ||
"id": 3365, | ||
"name": "UsingForDirective", | ||
"src": "167:49:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_first_from_uints", | ||
"payable": false, | ||
"scope": 3442, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 3379, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.Uint", | ||
"referencedDeclaration": 3493, | ||
"type": "struct DoublyLinkedList.Uint storage pointer" | ||
}, | ||
"id": 3366, | ||
"name": "UserDefinedTypeName", | ||
"src": "421:21:15" | ||
} | ||
], | ||
"id": 3367, | ||
"name": "VariableDeclaration", | ||
"src": "421:35:15" | ||
} | ||
], | ||
"id": 3368, | ||
"name": "ParameterList", | ||
"src": "420:37:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3379, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3369, | ||
"name": "ElementaryTypeName", | ||
"src": "518:7:15" | ||
} | ||
], | ||
"id": 3370, | ||
"name": "VariableDeclaration", | ||
"src": "518:13:15" | ||
} | ||
], | ||
"id": 3371, | ||
"name": "ParameterList", | ||
"src": "517:15:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3370, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 3372, | ||
"name": "Identifier", | ||
"src": "541:5:15" | ||
}, | ||
{ | ||
"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 | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "start_item", | ||
"referencedDeclaration": 4300, | ||
"type": "function (struct DoublyLinkedList.Uint storage pointer) view returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3367, | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 3373, | ||
"name": "Identifier", | ||
"src": "549:5:15" | ||
} | ||
], | ||
"id": 3374, | ||
"name": "MemberAccess", | ||
"src": "549:16:15" | ||
} | ||
], | ||
"id": 3375, | ||
"name": "FunctionCall", | ||
"src": "549:18:15" | ||
} | ||
], | ||
"id": 3376, | ||
"name": "Assignment", | ||
"src": "541:26:15" | ||
} | ||
], | ||
"id": 3377, | ||
"name": "ExpressionStatement", | ||
"src": "541:26:15" | ||
} | ||
], | ||
"id": 3378, | ||
"name": "Block", | ||
"src": "535:37:15" | ||
} | ||
], | ||
"id": 3379, | ||
"name": "FunctionDefinition", | ||
"src": "390:182:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_last_from_uints", | ||
"payable": false, | ||
"scope": 3442, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 3393, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.Uint", | ||
"referencedDeclaration": 3493, | ||
"type": "struct DoublyLinkedList.Uint storage pointer" | ||
}, | ||
"id": 3380, | ||
"name": "UserDefinedTypeName", | ||
"src": "774:21:15" | ||
} | ||
], | ||
"id": 3381, | ||
"name": "VariableDeclaration", | ||
"src": "774:35:15" | ||
} | ||
], | ||
"id": 3382, | ||
"name": "ParameterList", | ||
"src": "773:37:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3393, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3383, | ||
"name": "ElementaryTypeName", | ||
"src": "871:7:15" | ||
} | ||
], | ||
"id": 3384, | ||
"name": "VariableDeclaration", | ||
"src": "871:13:15" | ||
} | ||
], | ||
"id": 3385, | ||
"name": "ParameterList", | ||
"src": "870:15:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3384, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 3386, | ||
"name": "Identifier", | ||
"src": "894:5:15" | ||
}, | ||
{ | ||
"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 | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "end_item", | ||
"referencedDeclaration": 4332, | ||
"type": "function (struct DoublyLinkedList.Uint storage pointer) view returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3381, | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 3387, | ||
"name": "Identifier", | ||
"src": "902:5:15" | ||
} | ||
], | ||
"id": 3388, | ||
"name": "MemberAccess", | ||
"src": "902:14:15" | ||
} | ||
], | ||
"id": 3389, | ||
"name": "FunctionCall", | ||
"src": "902:16:15" | ||
} | ||
], | ||
"id": 3390, | ||
"name": "Assignment", | ||
"src": "894:24:15" | ||
} | ||
], | ||
"id": 3391, | ||
"name": "ExpressionStatement", | ||
"src": "894:24:15" | ||
} | ||
], | ||
"id": 3392, | ||
"name": "Block", | ||
"src": "888:35:15" | ||
} | ||
], | ||
"id": 3393, | ||
"name": "FunctionDefinition", | ||
"src": "744:179:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_next_from_uints", | ||
"payable": false, | ||
"scope": 3442, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 3410, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.Uint", | ||
"referencedDeclaration": 3493, | ||
"type": "struct DoublyLinkedList.Uint storage pointer" | ||
}, | ||
"id": 3394, | ||
"name": "UserDefinedTypeName", | ||
"src": "1206:21:15" | ||
} | ||
], | ||
"id": 3395, | ||
"name": "VariableDeclaration", | ||
"src": "1206:35:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_current_item", | ||
"scope": 3410, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3396, | ||
"name": "ElementaryTypeName", | ||
"src": "1243:7:15" | ||
} | ||
], | ||
"id": 3397, | ||
"name": "VariableDeclaration", | ||
"src": "1243:21:15" | ||
} | ||
], | ||
"id": 3398, | ||
"name": "ParameterList", | ||
"src": "1205:60:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3410, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3399, | ||
"name": "ElementaryTypeName", | ||
"src": "1326:7:15" | ||
} | ||
], | ||
"id": 3400, | ||
"name": "VariableDeclaration", | ||
"src": "1326:13:15" | ||
} | ||
], | ||
"id": 3401, | ||
"name": "ParameterList", | ||
"src": "1325:15:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3400, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 3402, | ||
"name": "Identifier", | ||
"src": "1349:5:15" | ||
}, | ||
{ | ||
"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": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "next_item", | ||
"referencedDeclaration": 4450, | ||
"type": "function (struct DoublyLinkedList.Uint storage pointer,uint256) view returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3395, | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 3403, | ||
"name": "Identifier", | ||
"src": "1357:5:15" | ||
} | ||
], | ||
"id": 3404, | ||
"name": "MemberAccess", | ||
"src": "1357:15:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3397, | ||
"type": "uint256", | ||
"value": "_current_item" | ||
}, | ||
"id": 3405, | ||
"name": "Identifier", | ||
"src": "1373:13:15" | ||
} | ||
], | ||
"id": 3406, | ||
"name": "FunctionCall", | ||
"src": "1357:30:15" | ||
} | ||
], | ||
"id": 3407, | ||
"name": "Assignment", | ||
"src": "1349:38:15" | ||
} | ||
], | ||
"id": 3408, | ||
"name": "ExpressionStatement", | ||
"src": "1349:38:15" | ||
} | ||
], | ||
"id": 3409, | ||
"name": "Block", | ||
"src": "1343:49:15" | ||
} | ||
], | ||
"id": 3410, | ||
"name": "FunctionDefinition", | ||
"src": "1176:216:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_previous_from_uints", | ||
"payable": false, | ||
"scope": 3442, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 3427, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.Uint", | ||
"referencedDeclaration": 3493, | ||
"type": "struct DoublyLinkedList.Uint storage pointer" | ||
}, | ||
"id": 3411, | ||
"name": "UserDefinedTypeName", | ||
"src": "1687:21:15" | ||
} | ||
], | ||
"id": 3412, | ||
"name": "VariableDeclaration", | ||
"src": "1687:35:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_current_item", | ||
"scope": 3427, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3413, | ||
"name": "ElementaryTypeName", | ||
"src": "1724:7:15" | ||
} | ||
], | ||
"id": 3414, | ||
"name": "VariableDeclaration", | ||
"src": "1724:21:15" | ||
} | ||
], | ||
"id": 3415, | ||
"name": "ParameterList", | ||
"src": "1686:60:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_item", | ||
"scope": 3427, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3416, | ||
"name": "ElementaryTypeName", | ||
"src": "1807:7:15" | ||
} | ||
], | ||
"id": 3417, | ||
"name": "VariableDeclaration", | ||
"src": "1807:13:15" | ||
} | ||
], | ||
"id": 3418, | ||
"name": "ParameterList", | ||
"src": "1806:15:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3417, | ||
"type": "uint256", | ||
"value": "_item" | ||
}, | ||
"id": 3419, | ||
"name": "Identifier", | ||
"src": "1830:5:15" | ||
}, | ||
{ | ||
"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": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "previous_item", | ||
"referencedDeclaration": 4410, | ||
"type": "function (struct DoublyLinkedList.Uint storage pointer,uint256) view returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3412, | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 3420, | ||
"name": "Identifier", | ||
"src": "1838:5:15" | ||
} | ||
], | ||
"id": 3421, | ||
"name": "MemberAccess", | ||
"src": "1838:19:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3414, | ||
"type": "uint256", | ||
"value": "_current_item" | ||
}, | ||
"id": 3422, | ||
"name": "Identifier", | ||
"src": "1858:13:15" | ||
} | ||
], | ||
"id": 3423, | ||
"name": "FunctionCall", | ||
"src": "1838:34:15" | ||
} | ||
], | ||
"id": 3424, | ||
"name": "Assignment", | ||
"src": "1830:42:15" | ||
} | ||
], | ||
"id": 3425, | ||
"name": "ExpressionStatement", | ||
"src": "1830:42:15" | ||
} | ||
], | ||
"id": 3426, | ||
"name": "Block", | ||
"src": "1824:53:15" | ||
} | ||
], | ||
"id": 3427, | ||
"name": "FunctionDefinition", | ||
"src": "1653:224:15" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": true, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "read_total_uints", | ||
"payable": false, | ||
"scope": 3442, | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_list", | ||
"scope": 3441, | ||
"stateVariable": false, | ||
"storageLocation": "storage", | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"contractScope": null, | ||
"name": "DoublyLinkedList.Uint", | ||
"referencedDeclaration": 3493, | ||
"type": "struct DoublyLinkedList.Uint storage pointer" | ||
}, | ||
"id": 3428, | ||
"name": "UserDefinedTypeName", | ||
"src": "2097:21:15" | ||
} | ||
], | ||
"id": 3429, | ||
"name": "VariableDeclaration", | ||
"src": "2097:35:15" | ||
} | ||
], | ||
"id": 3430, | ||
"name": "ParameterList", | ||
"src": "2096:37:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"name": "_count", | ||
"scope": 3441, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint256", | ||
"type": "uint256" | ||
}, | ||
"id": 3431, | ||
"name": "ElementaryTypeName", | ||
"src": "2194:7:15" | ||
} | ||
], | ||
"id": 3432, | ||
"name": "VariableDeclaration", | ||
"src": "2194:14:15" | ||
} | ||
], | ||
"id": 3433, | ||
"name": "ParameterList", | ||
"src": "2193:16:15" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3432, | ||
"type": "uint256", | ||
"value": "_count" | ||
}, | ||
"id": 3434, | ||
"name": "Identifier", | ||
"src": "2218:6:15" | ||
}, | ||
{ | ||
"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 | ||
], | ||
"isConstant": false, | ||
"isLValue": true, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "total", | ||
"referencedDeclaration": 4268, | ||
"type": "function (struct DoublyLinkedList.Uint storage pointer) view returns (uint256)" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": null, | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 3429, | ||
"type": "struct DoublyLinkedList.Uint storage pointer", | ||
"value": "_list" | ||
}, | ||
"id": 3435, | ||
"name": "Identifier", | ||
"src": "2227:5:15" | ||
} | ||
], | ||
"id": 3436, | ||
"name": "MemberAccess", | ||
"src": "2227:11:15" | ||
} | ||
], | ||
"id": 3437, | ||
"name": "FunctionCall", | ||
"src": "2227:13:15" | ||
} | ||
], | ||
"id": 3438, | ||
"name": "Assignment", | ||
"src": "2218:22:15" | ||
} | ||
], | ||
"id": 3439, | ||
"name": "ExpressionStatement", | ||
"src": "2218:22:15" | ||
} | ||
], | ||
"id": 3440, | ||
"name": "Block", | ||
"src": "2212:33:15" | ||
} | ||
], | ||
"id": 3441, | ||
"name": "FunctionDefinition", | ||
"src": "2071:174:15" | ||
} | ||
], | ||
"id": 3442, | ||
"name": "ContractDefinition", | ||
"src": "133:2115:15" | ||
} | ||
], | ||
"id": 3443, | ||
"name": "SourceUnit", | ||
"src": "0:2249:15" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.19+commit.c4cbbb05.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schema_version": "0.0.5", | ||
"updated_at": 1508405768505 | ||
"schemaVersion": "1.0.1", | ||
"updatedAt": "2018-03-07T06:04:58.402Z" | ||
} |
{ | ||
"name": "@digix/cdap", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "Directory Based Access Control for CACP Contracts", | ||
@@ -40,3 +40,3 @@ "files": [ | ||
"dependencies": { | ||
"@digix/solidity-collections": "^1.0.1" | ||
"@digix/solidity-collections": "^1.1.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "author": "Anthony Eufemio <ace@dgx.io>", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4160887
90024
2