arc_dx
Version:
A platform for building DAOs
1,481 lines • 59.3 kB
JSON
{
"contractName": "VotingMachineCallbacksInterface",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "getTotalReputationSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_beneficiary",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "mintReputation",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_owner",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "burnReputation",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "reputationOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_stakingToken",
"type": "address"
},
{
"name": "_beneficiary",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "stakingTokenTransfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_stakingToken",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "balanceOfStakingToken",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.25;\n\nimport \"openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol\";\n\ninterface VotingMachineCallbacksInterface {\n function getTotalReputationSupply(bytes32 _proposalId) external view returns(uint256);\n function mintReputation(uint _amount,address _beneficiary,bytes32 _proposalId) external returns(bool);\n function burnReputation(uint _amount,address _owner,bytes32 _proposalId) external returns(bool);\n function reputationOf(address _owner,bytes32 _proposalId) external view returns(uint);\n function stakingTokenTransfer(StandardToken _stakingToken,address _beneficiary,uint _amount,bytes32 _proposalId) external returns(bool);\n function balanceOfStakingToken(StandardToken _stakingToken,bytes32 _proposalId) external view returns(uint);\n}\n",
"sourcePath": "@daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol",
"ast": {
"absolutePath": "@daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol",
"exportedSymbols": {
"VotingMachineCallbacksInterface": [
20588
]
},
"id": 20589,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20526,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:51"
},
{
"absolutePath": "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol",
"file": "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol",
"id": 20527,
"nodeType": "ImportDirective",
"scope": 20589,
"sourceUnit": 21535,
"src": "26:71:51",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 20588,
"linearizedBaseContracts": [
20588
],
"name": "VotingMachineCallbacksInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 20534,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTotalReputationSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20530,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20529,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20534,
"src": "181:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20528,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "181:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "180:21:51"
},
"payable": false,
"returnParameters": {
"id": 20533,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20532,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20534,
"src": "224:7:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20531,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "224:7:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "223:9:51"
},
"scope": 20588,
"src": "147:86:51",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20545,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "mintReputation",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20541,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20536,
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "262:12:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20535,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "262:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20538,
"name": "_beneficiary",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "275:20:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20537,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "275:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20540,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "296:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20539,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "296:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "261:55:51"
},
"payable": false,
"returnParameters": {
"id": 20544,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20543,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "334:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20542,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "334:4:51",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "333:6:51"
},
"scope": 20588,
"src": "238:102:51",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20556,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "burnReputation",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20552,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20547,
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "369:12:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20546,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "369:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20549,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "382:14:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20548,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "382:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20551,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "397:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20550,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "397:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "368:49:51"
},
"payable": false,
"returnParameters": {
"id": 20555,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20554,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "435:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20553,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "435:4:51",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "434:6:51"
},
"scope": 20588,
"src": "345:96:51",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20565,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "reputationOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20561,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20558,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 20565,
"src": "468:14:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20557,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "468:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20560,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20565,
"src": "483:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20559,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "483:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "467:36:51"
},
"payable": false,
"returnParameters": {
"id": 20564,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20563,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20565,
"src": "526:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20562,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "526:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "525:6:51"
},
"scope": 20588,
"src": "446:86:51",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20578,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "stakingTokenTransfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20574,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20567,
"name": "_stakingToken",
"nodeType": "VariableDeclaration",
"scope": 20578,
"src": "567:27:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_StandardToken_$21534",
"typeString": "contract StandardToken"
},
"typeName": {
"contractScope": null,
"id": 20566,
"name": "StandardToken",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21534,
"src": "567:13:51",
"typeDescriptions": {
"typeIdentifier": "t_contract$_StandardToken_$21534",
"typeString": "contract StandardToken"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20569,
"name": "_beneficiary",
"nodeType": "VariableDeclaration",
"scope": 20578,
"src": "595:20:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20568,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "595:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20571,
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 20578,
"src": "616:12:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20570,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "616:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20573,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20578,
"src": "629:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20572,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "629:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "566:83:51"
},
"payable": false,
"returnParameters": {
"id": 20577,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20576,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20578,
"src": "667:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20575,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "667:4:51",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "666:6:51"
},
"scope": 20588,
"src": "537:136:51",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20587,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "balanceOfStakingToken",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20583,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20580,
"name": "_stakingToken",
"nodeType": "VariableDeclaration",
"scope": 20587,
"src": "709:27:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_StandardToken_$21534",
"typeString": "contract StandardToken"
},
"typeName": {
"contractScope": null,
"id": 20579,
"name": "StandardToken",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 21534,
"src": "709:13:51",
"typeDescriptions": {
"typeIdentifier": "t_contract$_StandardToken_$21534",
"typeString": "contract StandardToken"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20582,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20587,
"src": "737:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20581,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "737:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "708:49:51"
},
"payable": false,
"returnParameters": {
"id": 20586,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20585,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20587,
"src": "780:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20584,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "780:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "779:6:51"
},
"scope": 20588,
"src": "678:108:51",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
}
],
"scope": 20589,
"src": "99:689:51"
}
],
"src": "0:789:51"
},
"legacyAST": {
"absolutePath": "@daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol",
"exportedSymbols": {
"VotingMachineCallbacksInterface": [
20588
]
},
"id": 20589,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20526,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:51"
},
{
"absolutePath": "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol",
"file": "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol",
"id": 20527,
"nodeType": "ImportDirective",
"scope": 20589,
"sourceUnit": 21535,
"src": "26:71:51",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 20588,
"linearizedBaseContracts": [
20588
],
"name": "VotingMachineCallbacksInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 20534,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "getTotalReputationSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20530,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20529,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20534,
"src": "181:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20528,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "181:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "180:21:51"
},
"payable": false,
"returnParameters": {
"id": 20533,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20532,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20534,
"src": "224:7:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20531,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "224:7:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "223:9:51"
},
"scope": 20588,
"src": "147:86:51",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20545,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "mintReputation",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20541,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20536,
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "262:12:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20535,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "262:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20538,
"name": "_beneficiary",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "275:20:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20537,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "275:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20540,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "296:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20539,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "296:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "261:55:51"
},
"payable": false,
"returnParameters": {
"id": 20544,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20543,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20545,
"src": "334:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20542,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "334:4:51",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "333:6:51"
},
"scope": 20588,
"src": "238:102:51",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20556,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "burnReputation",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20552,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20547,
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "369:12:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20546,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "369:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20549,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "382:14:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20548,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "382:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20551,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "397:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20550,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "397:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "368:49:51"
},
"payable": false,
"returnParameters": {
"id": 20555,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20554,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20556,
"src": "435:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20553,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "435:4:51",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "434:6:51"
},
"scope": 20588,
"src": "345:96:51",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20565,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": true,
"modifiers": [],
"name": "reputationOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20561,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20558,
"name": "_owner",
"nodeType": "VariableDeclaration",
"scope": 20565,
"src": "468:14:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20557,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "468:7:51",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20560,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20565,
"src": "483:19:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20559,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "483:7:51",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "467:36:51"
},
"payable": false,
"returnParameters": {
"id": 20564,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20563,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20565,
"src": "526:4:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20562,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "526:4:51",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "525:6:51"
},
"scope": 20588,
"src": "446:86:51",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 20578,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "stakingTokenTransfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20574,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20567,
"name": "_stakingToken",
"nodeType": "VariableDeclaration",
"scope": 20578,
"src": "567:27:51",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_StandardToken_$21534",
"typeString": "contract Stan