@aragon/apps-payroll
Version:
_**Code in Github:**_ [aragon-apps/apps/payroll](https://github.com/aragon/aragon-apps/tree/master/future-apps/payroll)
779 lines • 27.6 kB
JSON
{
"contractName": "ExecutionTarget",
"abi": [
{
"constant": true,
"inputs": [],
"name": "counter",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "x",
"type": "uint256"
}
],
"name": "Executed",
"type": "event"
},
{
"constant": false,
"inputs": [],
"name": "execute",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "x",
"type": "uint256"
}
],
"name": "setCounter",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5061011a806100206000396000f30060806040526004361060525763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663614619548114605757806361bc221a14606b5780638bb5d9c314608f575b600080fd5b348015606257600080fd5b50606960a4565b005b348015607657600080fd5b50607d60e3565b60408051918252519081900360200190f35b348015609a57600080fd5b50606960043560e9565b600080546001019081905560408051918252517fbcf6a68a2f901be4a23a41b53acd7697893a7e34def4e28acba584da75283b679181900360200190a1565b60005481565b6000555600a165627a7a723058201255f4029e981472d95b377b201ddfc3de2f67eed92000d1a719e60a0538c6650029",
"deployedBytecode": "0x60806040526004361060525763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663614619548114605757806361bc221a14606b5780638bb5d9c314608f575b600080fd5b348015606257600080fd5b50606960a4565b005b348015607657600080fd5b50607d60e3565b60408051918252519081900360200190f35b348015609a57600080fd5b50606960043560e9565b600080546001019081905560408051918252517fbcf6a68a2f901be4a23a41b53acd7697893a7e34def4e28acba584da75283b679181900360200190a1565b60005481565b6000555600a165627a7a723058201255f4029e981472d95b377b201ddfc3de2f67eed92000d1a719e60a0538c6650029",
"sourceMap": "26:248:3:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26:248:3;;;;;;;",
"deployedSourceMap": "26:248:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83:89;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83:89:3;;;;;;57:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57:19:3;;;;;;;;;;;;;;;;;;;;178:65;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;178:65:3;;;;;83:89;121:7;:12;;132:1;121:12;;;;;148:17;;;;;;;;;;;;;;;;83:89::o;57:19::-;;;;:::o;178:65::-;225:7;:11;178:65::o",
"source": "pragma solidity 0.4.24;\n\n\ncontract ExecutionTarget {\n uint public counter;\n\n function execute() external {\n counter += 1;\n emit Executed(counter);\n }\n\n function setCounter(uint x) external {\n counter = x;\n }\n\n event Executed(uint x);\n}\n",
"sourcePath": "/Users/facu/Documents/work/aragon/dev/aragon-apps/future-apps/payroll/contracts/test/mocks/ExecutionTarget.sol",
"ast": {
"absolutePath": "/Users/facu/Documents/work/aragon/dev/aragon-apps/future-apps/payroll/contracts/test/mocks/ExecutionTarget.sol",
"exportedSymbols": {
"ExecutionTarget": [
2904
]
},
"id": 2905,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2875,
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:3"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2904,
"linearizedBaseContracts": [
2904
],
"name": "ExecutionTarget",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2877,
"name": "counter",
"nodeType": "VariableDeclaration",
"scope": 2904,
"src": "57:19:3",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2876,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "57:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 2888,
"nodeType": "Block",
"src": "111:61:3",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2882,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2880,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2877,
"src": "121:7:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "+=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 2881,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "132:1:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "121:12:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2883,
"nodeType": "ExpressionStatement",
"src": "121:12:3"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 2885,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2877,
"src": "157:7:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 2884,
"name": "Executed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2903,
"src": "148:8:3",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 2886,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "148:17:3",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2887,
"nodeType": "EmitStatement",
"src": "143:22:3"
}
]
},
"documentation": null,
"id": 2889,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execute",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2878,
"nodeType": "ParameterList",
"parameters": [],
"src": "99:2:3"
},
"payable": false,
"returnParameters": {
"id": 2879,
"nodeType": "ParameterList",
"parameters": [],
"src": "111:0:3"
},
"scope": 2904,
"src": "83:89:3",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": {
"id": 2898,
"nodeType": "Block",
"src": "215:28:3",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2896,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2894,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2877,
"src": "225:7:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 2895,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2891,
"src": "235:1:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "225:11:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2897,
"nodeType": "ExpressionStatement",
"src": "225:11:3"
}
]
},
"documentation": null,
"id": 2899,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setCounter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2892,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2891,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 2899,
"src": "198:6:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2890,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "198:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "197:8:3"
},
"payable": false,
"returnParameters": {
"id": 2893,
"nodeType": "ParameterList",
"parameters": [],
"src": "215:0:3"
},
"scope": 2904,
"src": "178:65:3",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"anonymous": false,
"documentation": null,
"id": 2903,
"name": "Executed",
"nodeType": "EventDefinition",
"parameters": {
"id": 2902,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2901,
"indexed": false,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 2903,
"src": "264:6:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2900,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "264:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "263:8:3"
},
"src": "249:23:3"
}
],
"scope": 2905,
"src": "26:248:3"
}
],
"src": "0:275:3"
},
"legacyAST": {
"absolutePath": "/Users/facu/Documents/work/aragon/dev/aragon-apps/future-apps/payroll/contracts/test/mocks/ExecutionTarget.sol",
"exportedSymbols": {
"ExecutionTarget": [
2904
]
},
"id": 2905,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2875,
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:3"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 2904,
"linearizedBaseContracts": [
2904
],
"name": "ExecutionTarget",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 2877,
"name": "counter",
"nodeType": "VariableDeclaration",
"scope": 2904,
"src": "57:19:3",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2876,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "57:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 2888,
"nodeType": "Block",
"src": "111:61:3",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2882,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2880,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2877,
"src": "121:7:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "+=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "31",
"id": 2881,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "132:1:3",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
},
"src": "121:12:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2883,
"nodeType": "ExpressionStatement",
"src": "121:12:3"
},
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 2885,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2877,
"src": "157:7:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 2884,
"name": "Executed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2903,
"src": "148:8:3",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256)"
}
},
"id": 2886,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "148:17:3",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 2887,
"nodeType": "EmitStatement",
"src": "143:22:3"
}
]
},
"documentation": null,
"id": 2889,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "execute",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2878,
"nodeType": "ParameterList",
"parameters": [],
"src": "99:2:3"
},
"payable": false,
"returnParameters": {
"id": 2879,
"nodeType": "ParameterList",
"parameters": [],
"src": "111:0:3"
},
"scope": 2904,
"src": "83:89:3",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": {
"id": 2898,
"nodeType": "Block",
"src": "215:28:3",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 2896,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 2894,
"name": "counter",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2877,
"src": "225:7:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 2895,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 2891,
"src": "235:1:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "225:11:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 2897,
"nodeType": "ExpressionStatement",
"src": "225:11:3"
}
]
},
"documentation": null,
"id": 2899,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "setCounter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2892,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2891,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 2899,
"src": "198:6:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2890,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "198:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "197:8:3"
},
"payable": false,
"returnParameters": {
"id": 2893,
"nodeType": "ParameterList",
"parameters": [],
"src": "215:0:3"
},
"scope": 2904,
"src": "178:65:3",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"anonymous": false,
"documentation": null,
"id": 2903,
"name": "Executed",
"nodeType": "EventDefinition",
"parameters": {
"id": 2902,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2901,
"indexed": false,
"name": "x",
"nodeType": "VariableDeclaration",
"scope": 2903,
"src": "264:6:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2900,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "264:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "263:8:3"
},
"src": "249:23:3"
}
],
"scope": 2905,
"src": "26:248:3"
}
],
"src": "0:275:3"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2019-09-04T11:02:55.558Z"
}