arc_dx
Version:
A platform for building DAOs
1,476 lines (1,475 loc) • 152 kB
JSON
{
"contractName": "IntVoteInterface",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_proposalId",
"type": "bytes32"
},
{
"indexed": true,
"name": "_organization",
"type": "address"
},
{
"indexed": false,
"name": "_numOfChoices",
"type": "uint256"
},
{
"indexed": false,
"name": "_proposer",
"type": "address"
},
{
"indexed": false,
"name": "_paramsHash",
"type": "bytes32"
}
],
"name": "NewProposal",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_proposalId",
"type": "bytes32"
},
{
"indexed": true,
"name": "_organization",
"type": "address"
},
{
"indexed": false,
"name": "_decision",
"type": "uint256"
},
{
"indexed": false,
"name": "_totalReputation",
"type": "uint256"
}
],
"name": "ExecuteProposal",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_proposalId",
"type": "bytes32"
},
{
"indexed": true,
"name": "_organization",
"type": "address"
},
{
"indexed": true,
"name": "_voter",
"type": "address"
},
{
"indexed": false,
"name": "_vote",
"type": "uint256"
},
{
"indexed": false,
"name": "_reputation",
"type": "uint256"
}
],
"name": "VoteProposal",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_proposalId",
"type": "bytes32"
},
{
"indexed": true,
"name": "_organization",
"type": "address"
}
],
"name": "CancelProposal",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_proposalId",
"type": "bytes32"
},
{
"indexed": true,
"name": "_organization",
"type": "address"
},
{
"indexed": true,
"name": "_voter",
"type": "address"
}
],
"name": "CancelVoting",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_numOfChoices",
"type": "uint256"
},
{
"name": "_proposalParameters",
"type": "bytes32"
},
{
"name": "_proposer",
"type": "address"
},
{
"name": "_organization",
"type": "address"
}
],
"name": "propose",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "cancelProposal",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
},
{
"name": "_vote",
"type": "uint256"
},
{
"name": "_voter",
"type": "address"
}
],
"name": "ownerVote",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
},
{
"name": "_vote",
"type": "uint256"
},
{
"name": "_voter",
"type": "address"
}
],
"name": "vote",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
},
{
"name": "_vote",
"type": "uint256"
},
{
"name": "_rep",
"type": "uint256"
},
{
"name": "_token",
"type": "uint256"
},
{
"name": "_voter",
"type": "address"
}
],
"name": "voteWithSpecifiedAmounts",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "cancelVote",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "getNumberOfChoices",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "isVotable",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
},
{
"name": "_choice",
"type": "uint256"
}
],
"name": "voteStatus",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isAbstainAllow",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getAllowedRangeOfChoices",
"outputs": [
{
"name": "min",
"type": "uint256"
},
{
"name": "max",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.25;\n\ninterface IntVoteInterface {\n //When implementing this interface please do not only override function and modifier,\n //but also to keep the modifiers on the overridden functions.\n modifier onlyProposalOwner(bytes32 _proposalId) {revert(); _;}\n modifier votable(bytes32 _proposalId) {revert(); _;}\n\n event NewProposal(bytes32 indexed _proposalId, address indexed _organization, uint _numOfChoices, address _proposer, bytes32 _paramsHash);\n event ExecuteProposal(bytes32 indexed _proposalId, address indexed _organization, uint _decision, uint _totalReputation);\n event VoteProposal(bytes32 indexed _proposalId, address indexed _organization, address indexed _voter, uint _vote, uint _reputation);\n event CancelProposal(bytes32 indexed _proposalId, address indexed _organization );\n event CancelVoting(bytes32 indexed _proposalId, address indexed _organization, address indexed _voter);\n\n /**\n * @dev register a new proposal with the given parameters. Every proposal has a unique ID which is being\n * generated by calculating keccak256 of a incremented counter.\n * @param _numOfChoices number of voting choices\n * @param _proposalParameters defines the parameters of the voting machine used for this proposal\n * @param _proposer address\n * @param _organization address - if this address is zero the msg.sender will be used as the organization address.\n * @return proposal's id.\n */\n function propose(\n uint _numOfChoices,\n bytes32 _proposalParameters,\n address _proposer,\n address _organization\n ) external returns(bytes32);\n\n // Only owned proposals and only the owner:\n function cancelProposal(bytes32 _proposalId) external returns(bool);\n\n // Only owned proposals and only the owner:\n function ownerVote(bytes32 _proposalId, uint _vote, address _voter) external returns(bool);\n\n function vote(bytes32 _proposalId, uint _vote,address _voter) external returns(bool);\n\n function voteWithSpecifiedAmounts(\n bytes32 _proposalId,\n uint _vote,\n uint _rep,\n uint _token,\n address _voter\n )\n external\n returns(bool);\n\n function cancelVote(bytes32 _proposalId) external;\n\n function getNumberOfChoices(bytes32 _proposalId) external view returns(uint);\n\n function isVotable(bytes32 _proposalId) external view returns(bool);\n\n /**\n * @dev voteStatus returns the reputation voted for a proposal for a specific voting choice.\n * @param _proposalId the ID of the proposal\n * @param _choice the index in the\n * @return voted reputation for the given choice\n */\n function voteStatus(bytes32 _proposalId,uint _choice) external view returns(uint);\n\n /**\n * @dev isAbstainAllow returns if the voting machine allow abstain (0)\n * @return bool true or false\n */\n function isAbstainAllow() external pure returns(bool);\n\n /**\n * @dev getAllowedRangeOfChoices returns the allowed range of choices for a voting machine.\n * @return min - minimum number of choices\n max - maximum number of choices\n */\n function getAllowedRangeOfChoices() external pure returns(uint min,uint max);\n}\n",
"sourcePath": "@daostack/infra/contracts/votingMachines/IntVoteInterface.sol",
"ast": {
"absolutePath": "@daostack/infra/contracts/votingMachines/IntVoteInterface.sol",
"exportedSymbols": {
"IntVoteInterface": [
20374
]
},
"id": 20375,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20210,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:48"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 20374,
"linearizedBaseContracts": [
20374
],
"name": "IntVoteInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 20218,
"nodeType": "Block",
"src": "263:14:48",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 20214,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
21554,
21555
],
"referencedDeclaration": 21554,
"src": "264:6:48",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 20215,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "264:8:48",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 20216,
"nodeType": "ExpressionStatement",
"src": "264:8:48"
},
{
"id": 20217,
"nodeType": "PlaceholderStatement",
"src": "274:1:48"
}
]
},
"documentation": null,
"id": 20219,
"name": "onlyProposalOwner",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 20213,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20212,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20219,
"src": "242:19:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20211,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "242:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "241:21:48"
},
"src": "215:62:48",
"visibility": "internal"
},
{
"body": {
"id": 20227,
"nodeType": "Block",
"src": "320:14:48",
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 20223,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
21554,
21555
],
"referencedDeclaration": 21554,
"src": "321:6:48",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 20224,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "321:8:48",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 20225,
"nodeType": "ExpressionStatement",
"src": "321:8:48"
},
{
"id": 20226,
"nodeType": "PlaceholderStatement",
"src": "331:1:48"
}
]
},
"documentation": null,
"id": 20228,
"name": "votable",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 20222,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20221,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20228,
"src": "299:19:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20220,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "299:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "298:21:48"
},
"src": "282:52:48",
"visibility": "internal"
},
{
"anonymous": false,
"documentation": null,
"id": 20240,
"name": "NewProposal",
"nodeType": "EventDefinition",
"parameters": {
"id": 20239,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20230,
"indexed": true,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20240,
"src": "358:27:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20229,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "358:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20232,
"indexed": true,
"name": "_organization",
"nodeType": "VariableDeclaration",
"scope": 20240,
"src": "387:29:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20231,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "387:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20234,
"indexed": false,
"name": "_numOfChoices",
"nodeType": "VariableDeclaration",
"scope": 20240,
"src": "418:18:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20233,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "418:4:48",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20236,
"indexed": false,
"name": "_proposer",
"nodeType": "VariableDeclaration",
"scope": 20240,
"src": "438:17:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20235,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "438:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20238,
"indexed": false,
"name": "_paramsHash",
"nodeType": "VariableDeclaration",
"scope": 20240,
"src": "457:19:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20237,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "457:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "357:120:48"
},
"src": "340:138:48"
},
{
"anonymous": false,
"documentation": null,
"id": 20250,
"name": "ExecuteProposal",
"nodeType": "EventDefinition",
"parameters": {
"id": 20249,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20242,
"indexed": true,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20250,
"src": "505:27:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20241,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "505:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20244,
"indexed": true,
"name": "_organization",
"nodeType": "VariableDeclaration",
"scope": 20250,
"src": "534:29:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20243,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "534:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20246,
"indexed": false,
"name": "_decision",
"nodeType": "VariableDeclaration",
"scope": 20250,
"src": "565:14:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20245,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "565:4:48",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20248,
"indexed": false,
"name": "_totalReputation",
"nodeType": "VariableDeclaration",
"scope": 20250,
"src": "581:21:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20247,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "581:4:48",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "504:99:48"
},
"src": "483:121:48"
},
{
"anonymous": false,
"documentation": null,
"id": 20262,
"name": "VoteProposal",
"nodeType": "EventDefinition",
"parameters": {
"id": 20261,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20252,
"indexed": true,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20262,
"src": "628:27:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20251,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "628:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20254,
"indexed": true,
"name": "_organization",
"nodeType": "VariableDeclaration",
"scope": 20262,
"src": "657:29:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20253,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "657:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20256,
"indexed": true,
"name": "_voter",
"nodeType": "VariableDeclaration",
"scope": 20262,
"src": "688:22:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20255,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "688:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20258,
"indexed": false,
"name": "_vote",
"nodeType": "VariableDeclaration",
"scope": 20262,
"src": "712:10:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20257,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "712:4:48",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20260,
"indexed": false,
"name": "_reputation",
"nodeType": "VariableDeclaration",
"scope": 20262,
"src": "724:16:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20259,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "724:4:48",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "627:114:48"
},
"src": "609:133:48"
},
{
"anonymous": false,
"documentation": null,
"id": 20268,
"name": "CancelProposal",
"nodeType": "EventDefinition",
"parameters": {
"id": 20267,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20264,
"indexed": true,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20268,
"src": "768:27:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20263,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "768:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20266,
"indexed": true,
"name": "_organization",
"nodeType": "VariableDeclaration",
"scope": 20268,
"src": "797:29:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20265,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "797:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "767:61:48"
},
"src": "747:82:48"
},
{
"anonymous": false,
"documentation": null,
"id": 20276,
"name": "CancelVoting",
"nodeType": "EventDefinition",
"parameters": {
"id": 20275,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20270,
"indexed": true,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20276,
"src": "853:27:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20269,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "853:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20272,
"indexed": true,
"name": "_organization",
"nodeType": "VariableDeclaration",
"scope": 20276,
"src": "882:29:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20271,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "882:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20274,
"indexed": true,
"name": "_voter",
"nodeType": "VariableDeclaration",
"scope": 20276,
"src": "913:22:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20273,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "913:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "852:84:48"
},
"src": "834:103:48"
},
{
"body": null,
"documentation": "@dev register a new proposal with the given parameters. Every proposal has a unique ID which is being\ngenerated by calculating keccak256 of a incremented counter.\n@param _numOfChoices number of voting choices\n@param _proposalParameters defines the parameters of the voting machine used for this proposal\n@param _proposer address\n@param _organization address - if this address is zero the msg.sender will be used as the organization address.\n@return proposal's id.",
"id": 20289,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "propose",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20285,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20278,
"name": "_numOfChoices",
"nodeType": "VariableDeclaration",
"scope": 20289,
"src": "1498:18:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20277,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1498:4:48",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20280,
"name": "_proposalParameters",
"nodeType": "VariableDeclaration",
"scope": 20289,
"src": "1526:27:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20279,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1526:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20282,
"name": "_proposer",
"nodeType": "VariableDeclaration",
"scope": 20289,
"src": "1563:17:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1563:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20284,
"name": "_organization",
"nodeType": "VariableDeclaration",
"scope": 20289,
"src": "1590:21:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20283,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1590:7:48",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1488:133:48"
},
"payable": false,
"returnParameters": {
"id": 20288,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20287,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20289,
"src": "1639:7:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20286,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1639:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1638:9:48"
},
"scope": 20374,
"src": "1472:176:48",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20296,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "cancelProposal",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20292,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20291,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20296,
"src": "1726:19:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20290,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1726:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1725:21:48"
},
"payable": false,
"returnParameters": {
"id": 20295,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20294,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20296,
"src": "1764:4:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20293,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1764:4:48",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1763:6:48"
},
"scope": 20374,
"src": "1702:68:48",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20307,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "ownerVote",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20303,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20298,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20307,
"src": "1843:19:48",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20297,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1843:7:48",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{