@aragon/apps-payroll
Version:
_**Code in Github:**_ [aragon-apps/apps/payroll](https://github.com/aragon/aragon-apps/tree/master/future-apps/payroll)
1,315 lines (1,314 loc) • 52 kB
JSON
{
"contractName": "Migrations",
"abi": [
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "lastCompletedMigration",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": false,
"inputs": [
{
"name": "completed",
"type": "uint256"
}
],
"name": "setCompleted",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newAddress",
"type": "address"
}
],
"name": "upgrade",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a0319163317905561023c806100326000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f01081146100665780638da5cb5b14610096578063fbdbad3c146100d4578063fdacd576146100fb575b600080fd5b34801561007257600080fd5b5061009473ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100a257600080fd5b506100ab6101c5565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156100e057600080fd5b506100e96101e1565b60408051918252519081900360200190f35b34801561010757600080fd5b506100946004356101e7565b6000805473ffffffffffffffffffffffffffffffffffffffff163314156101c1578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b505050505b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561020d5760018190555b505600a165627a7a72305820e4f214fa47a0fc72029328193cfb588216e195210ee6624ad75a5b15d26eedb00029",
"deployedBytecode": "0x6080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f01081146100665780638da5cb5b14610096578063fbdbad3c146100d4578063fdacd576146100fb575b600080fd5b34801561007257600080fd5b5061009473ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100a257600080fd5b506100ab6101c5565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156100e057600080fd5b506100e96101e1565b60408051918252519081900360200190f35b34801561010757600080fd5b506100946004356101e7565b6000805473ffffffffffffffffffffffffffffffffffffffff163314156101c1578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b505050505b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561020d5760018190555b505600a165627a7a72305820e4f214fa47a0fc72029328193cfb588216e195210ee6624ad75a5b15d26eedb00029",
"sourceMap": "27:525:8:-;;;203:57;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;235:5:8;:18;;-1:-1:-1;;;;;;235:18:8;243:10;235:18;;;27:525;;;;;;",
"deployedSourceMap": "27:525:8:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;379:171;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;379:171:8;;;;;;;;;53:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53:20:8;;;;;;;;;;;;;;;;;;;;;;;79:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79:34:8;;;;;;;;;;;;;;;;;;;;266:107;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;266:107:8;;;;;379:171;444:19;170:5;;;;156:10;:19;152:38;;;477:10;444:44;;498:8;:21;;;520:22;;498:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:45:8;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;498:45:8;;;;152:38;379:171;;:::o;53:20::-;;;;;;:::o;79:34::-;;;;:::o;266:107::-;170:5;;;;156:10;:19;152:38;;;332:22;:34;;;152:38;266:107;:::o",
"source": " pragma solidity ^0.4.2;\n\n\ncontract Migrations {\n address public owner;\n uint public lastCompletedMigration;\n\n modifier restricted() {\n if (msg.sender == owner)\n _;\n }\n\n constructor() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) restricted public {\n lastCompletedMigration = completed;\n }\n\n function upgrade(address newAddress) restricted public {\n Migrations upgraded = Migrations(newAddress);\n upgraded.setCompleted(lastCompletedMigration);\n }\n}\n",
"sourcePath": "@aragon/apps-shared-migrations/contracts/Migrations.sol",
"ast": {
"absolutePath": "@aragon/apps-shared-migrations/contracts/Migrations.sol",
"exportedSymbols": {
"Migrations": [
5585
]
},
"id": 5586,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5530,
"literals": [
"solidity",
"^",
"0.4",
".2"
],
"nodeType": "PragmaDirective",
"src": "1:23:8"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 5585,
"linearizedBaseContracts": [
5585
],
"name": "Migrations",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 5532,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 5585,
"src": "53:20:8",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5531,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "53:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 5534,
"name": "lastCompletedMigration",
"nodeType": "VariableDeclaration",
"scope": 5585,
"src": "79:34:8",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5533,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "79:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 5542,
"nodeType": "Block",
"src": "142:55:8",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 5539,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 5536,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15153,
"src": "156:3:8",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 5537,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "156:10:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 5538,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5532,
"src": "170:5:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "156:19:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 5541,
"nodeType": "IfStatement",
"src": "152:38:8",
"trueBody": {
"id": 5540,
"nodeType": "PlaceholderStatement",
"src": "189:1:8"
}
}
]
},
"documentation": null,
"id": 5543,
"name": "restricted",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 5535,
"nodeType": "ParameterList",
"parameters": [],
"src": "139:2:8"
},
"src": "120:77:8",
"visibility": "internal"
},
{
"body": {
"id": 5551,
"nodeType": "Block",
"src": "225:35:8",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 5549,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 5546,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5532,
"src": "235:5:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 5547,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15153,
"src": "243:3:8",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 5548,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "243:10:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "235:18:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 5550,
"nodeType": "ExpressionStatement",
"src": "235:18:8"
}
]
},
"documentation": null,
"id": 5552,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5544,
"nodeType": "ParameterList",
"parameters": [],
"src": "214:2:8"
},
"payable": false,
"returnParameters": {
"id": 5545,
"nodeType": "ParameterList",
"parameters": [],
"src": "225:0:8"
},
"scope": 5585,
"src": "203:57:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5563,
"nodeType": "Block",
"src": "322:51:8",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 5561,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 5559,
"name": "lastCompletedMigration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5534,
"src": "332:22:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 5560,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5554,
"src": "357:9:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "332:34:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5562,
"nodeType": "ExpressionStatement",
"src": "332:34:8"
}
]
},
"documentation": null,
"id": 5564,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 5557,
"modifierName": {
"argumentTypes": null,
"id": 5556,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5543,
"src": "304:10:8",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "304:10:8"
}
],
"name": "setCompleted",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5555,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5554,
"name": "completed",
"nodeType": "VariableDeclaration",
"scope": 5564,
"src": "288:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5553,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "288:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "287:16:8"
},
"payable": false,
"returnParameters": {
"id": 5558,
"nodeType": "ParameterList",
"parameters": [],
"src": "322:0:8"
},
"scope": 5585,
"src": "266:107:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5583,
"nodeType": "Block",
"src": "434:116:8",
"statements": [
{
"assignments": [
5572
],
"declarations": [
{
"constant": false,
"id": 5572,
"name": "upgraded",
"nodeType": "VariableDeclaration",
"scope": 5584,
"src": "444:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
},
"typeName": {
"contractScope": null,
"id": 5571,
"name": "Migrations",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 5585,
"src": "444:10:8",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 5576,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5574,
"name": "newAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5566,
"src": "477:10:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 5573,
"name": "Migrations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5585,
"src": "466:10:8",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Migrations_$5585_$",
"typeString": "type(contract Migrations)"
}
},
"id": 5575,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "466:22:8",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "444:44:8"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5580,
"name": "lastCompletedMigration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5534,
"src": "520:22:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 5577,
"name": "upgraded",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5572,
"src": "498:8:8",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
}
},
"id": 5579,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "setCompleted",
"nodeType": "MemberAccess",
"referencedDeclaration": 5564,
"src": "498:21:8",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256) external"
}
},
"id": 5581,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "498:45:8",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 5582,
"nodeType": "ExpressionStatement",
"src": "498:45:8"
}
]
},
"documentation": null,
"id": 5584,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 5569,
"modifierName": {
"argumentTypes": null,
"id": 5568,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5543,
"src": "416:10:8",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "416:10:8"
}
],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5567,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5566,
"name": "newAddress",
"nodeType": "VariableDeclaration",
"scope": 5584,
"src": "396:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5565,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "396:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "395:20:8"
},
"payable": false,
"returnParameters": {
"id": 5570,
"nodeType": "ParameterList",
"parameters": [],
"src": "434:0:8"
},
"scope": 5585,
"src": "379:171:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 5586,
"src": "27:525:8"
}
],
"src": "1:552:8"
},
"legacyAST": {
"absolutePath": "@aragon/apps-shared-migrations/contracts/Migrations.sol",
"exportedSymbols": {
"Migrations": [
5585
]
},
"id": 5586,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5530,
"literals": [
"solidity",
"^",
"0.4",
".2"
],
"nodeType": "PragmaDirective",
"src": "1:23:8"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 5585,
"linearizedBaseContracts": [
5585
],
"name": "Migrations",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 5532,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 5585,
"src": "53:20:8",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5531,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "53:7:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 5534,
"name": "lastCompletedMigration",
"nodeType": "VariableDeclaration",
"scope": 5585,
"src": "79:34:8",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5533,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "79:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 5542,
"nodeType": "Block",
"src": "142:55:8",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 5539,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 5536,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15153,
"src": "156:3:8",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 5537,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "156:10:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 5538,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5532,
"src": "170:5:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "156:19:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 5541,
"nodeType": "IfStatement",
"src": "152:38:8",
"trueBody": {
"id": 5540,
"nodeType": "PlaceholderStatement",
"src": "189:1:8"
}
}
]
},
"documentation": null,
"id": 5543,
"name": "restricted",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 5535,
"nodeType": "ParameterList",
"parameters": [],
"src": "139:2:8"
},
"src": "120:77:8",
"visibility": "internal"
},
{
"body": {
"id": 5551,
"nodeType": "Block",
"src": "225:35:8",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 5549,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 5546,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5532,
"src": "235:5:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 5547,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15153,
"src": "243:3:8",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 5548,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "243:10:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "235:18:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 5550,
"nodeType": "ExpressionStatement",
"src": "235:18:8"
}
]
},
"documentation": null,
"id": 5552,
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5544,
"nodeType": "ParameterList",
"parameters": [],
"src": "214:2:8"
},
"payable": false,
"returnParameters": {
"id": 5545,
"nodeType": "ParameterList",
"parameters": [],
"src": "225:0:8"
},
"scope": 5585,
"src": "203:57:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5563,
"nodeType": "Block",
"src": "322:51:8",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 5561,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 5559,
"name": "lastCompletedMigration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5534,
"src": "332:22:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 5560,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5554,
"src": "357:9:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "332:34:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 5562,
"nodeType": "ExpressionStatement",
"src": "332:34:8"
}
]
},
"documentation": null,
"id": 5564,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 5557,
"modifierName": {
"argumentTypes": null,
"id": 5556,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5543,
"src": "304:10:8",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "304:10:8"
}
],
"name": "setCompleted",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 5555,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5554,
"name": "completed",
"nodeType": "VariableDeclaration",
"scope": 5564,
"src": "288:14:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5553,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "288:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "287:16:8"
},
"payable": false,
"returnParameters": {
"id": 5558,
"nodeType": "ParameterList",
"parameters": [],
"src": "322:0:8"
},
"scope": 5585,
"src": "266:107:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 5583,
"nodeType": "Block",
"src": "434:116:8",
"statements": [
{
"assignments": [
5572
],
"declarations": [
{
"constant": false,
"id": 5572,
"name": "upgraded",
"nodeType": "VariableDeclaration",
"scope": 5584,
"src": "444:19:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
},
"typeName": {
"contractScope": null,
"id": 5571,
"name": "Migrations",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 5585,
"src": "444:10:8",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 5576,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5574,
"name": "newAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5566,
"src": "477:10:8",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 5573,
"name": "Migrations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5585,
"src": "466:10:8",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Migrations_$5585_$",
"typeString": "type(contract Migrations)"
}
},
"id": 5575,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "466:22:8",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "444:44:8"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 5580,
"name": "lastCompletedMigration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5534,
"src": "520:22:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 5577,
"name": "upgraded",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5572,
"src": "498:8:8",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$5585",
"typeString": "contract Migrations"
}
},
"id": 5579,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "setCompleted",
"nodeType": "MemberAccess",
"referencedDeclaration": 5564,
"src": "498:21:8",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256) external"
}
},
"id": 5581,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "498:45:8",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 5582,
"nodeType": "ExpressionStatement",
"src": "498:45:8"
}
]
},
"documentation": null,
"id": 5584,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": null,
"id": 5569,
"modifierName": {
"argumentTypes": null,
"id": 5568,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5543,
"src": "416:10:8",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",