{ "contractName": "Migrations", "abi": [ { "constant": true, "inputs": [], "name": "last_completed_migration", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "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": "new_address", "type": "address" } ], "name": "upgrade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102db8061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a723058201cc1585f9df7ab81426097daac394849e8580cf9e44d78be5b645de915c388300029", "deployedBytecode": "0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a723058201cc1585f9df7ab81426097daac394849e8580cf9e44d78be5b645de915c388300029", "sourceMap": "25:580:2:-;;;191:76;;;;;;;;250:10;242:5;;:18;;;;;;;;;;;;;;;;;;25:580;;;;;;", "deployedSourceMap": "25:580:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;408:195;;;;;;;;;;;;;;;;;;;;;;;;;;;;77:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;273:129;;;;;;;;;;;;;;;;;;;;;;;;;;408:195;494:19;170:5;;;;;;;;;;;156:19;;:10;:19;;;152:26;;;527:11;494:45;;549:8;:21;;;571:24;;549:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;152:26;408:195;;:::o;77:36::-;;;;:::o;51:20::-;;;;;;;;;;;;;:::o;273:129::-;170:5;;;;;;;;;;;156:19;;:10;:19;;;152:26;;;386:9;359:24;:36;;;;152:26;273:129;:::o", "source": "pragma solidity ^0.4.4;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations()\n public\n {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed)\n public\n restricted\n {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address)\n public\n restricted\n {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Migrations.sol", "ast": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ 1020 ] }, "id": 1021, "nodeType": "SourceUnit", "nodes": [ { "id": 965, "literals": [ "solidity", "^", "0.4", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 1020, "linearizedBaseContracts": [ 1020 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 967, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1020, "src": "51:20:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 966, "name": "address", "nodeType": "ElementaryTypeName", "src": "51:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 969, "name": "last_completed_migration", "nodeType": "VariableDeclaration", "scope": 1020, "src": "77:36:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 968, "name": "uint", "nodeType": "ElementaryTypeName", "src": "77:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 977, "nodeType": "Block", "src": "142:43:2", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 974, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 971, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2089, "src": "156:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 972, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "156:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 973, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 967, "src": "170:5:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "156:19:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 976, "nodeType": "IfStatement", "src": "152:26:2", "trueBody": { "id": 975, "nodeType": "PlaceholderStatement", "src": "177:1:2" } } ] }, "id": 978, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { "id": 970, "nodeType": "ParameterList", "parameters": [], "src": "139:2:2" }, "src": "120:65:2", "visibility": "internal" }, { "body": { "id": 986, "nodeType": "Block", "src": "232:35:2", "statements": [ { "expression": { "argumentTypes": null, "id": 984, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 981, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 967, "src": "242:5:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 982, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2089, "src": "250:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 983, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "250:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "242:18:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 985, "nodeType": "ExpressionStatement", "src": "242:18:2" } ] }, "id": 987, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "Migrations", "nodeType": "FunctionDefinition", "parameters": { "id": 979, "nodeType": "ParameterList", "parameters": [], "src": "210:2:2" }, "payable": false, "returnParameters": { "id": 980, "nodeType": "ParameterList", "parameters": [], "src": "232:0:2" }, "scope": 1020, "src": "191:76:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 998, "nodeType": "Block", "src": "349:53:2", "statements": [ { "expression": { "argumentTypes": null, "id": 996, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 994, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 969, "src": "359:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 995, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 989, "src": "386:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "359:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 997, "nodeType": "ExpressionStatement", "src": "359:36:2" } ] }, "id": 999, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": [], "id": 992, "modifierName": { "argumentTypes": null, "id": 991, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 978, "src": "334:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "334:10:2" } ], "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { "id": 990, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 989, "name": "completed", "nodeType": "VariableDeclaration", "scope": 999, "src": "295:14:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 988, "name": "uint", "nodeType": "ElementaryTypeName", "src": "295:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "294:16:2" }, "payable": false, "returnParameters": { "id": 993, "nodeType": "ParameterList", "parameters": [], "src": "349:0:2" }, "scope": 1020, "src": "273:129:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 1018, "nodeType": "Block", "src": "484:119:2", "statements": [ { "assignments": [ 1007 ], "declarations": [ { "constant": false, "id": 1007, "name": "upgraded", "nodeType": "VariableDeclaration", "scope": 1019, "src": "494:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" }, "typeName": { "contractScope": null, "id": 1006, "name": "Migrations", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 1020, "src": "494:10:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" } }, "value": null, "visibility": "internal" } ], "id": 1011, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 1009, "name": "new_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1001, "src": "527:11:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 1008, "name": "Migrations", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1020, "src": "516:10:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Migrations_$1020_$", "typeString": "type(contract Migrations)" } }, "id": 1010, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "516:23:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" } }, "nodeType": "VariableDeclarationStatement", "src": "494:45:2" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 1015, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 969, "src": "571:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 1012, "name": "upgraded", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1007, "src": "549:8:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" } }, "id": 1014, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "setCompleted", "nodeType": "MemberAccess", "referencedDeclaration": 999, "src": "549:21:2", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, "id": 1016, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "549:47:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1017, "nodeType": "ExpressionStatement", "src": "549:47:2" } ] }, "id": 1019, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": [], "id": 1004, "modifierName": { "argumentTypes": null, "id": 1003, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 978, "src": "469:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "469:10:2" } ], "name": "upgrade", "nodeType": "FunctionDefinition", "parameters": { "id": 1002, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1001, "name": "new_address", "nodeType": "VariableDeclaration", "scope": 1019, "src": "425:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1000, "name": "address", "nodeType": "ElementaryTypeName", "src": "425:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "424:21:2" }, "payable": false, "returnParameters": { "id": 1005, "nodeType": "ParameterList", "parameters": [], "src": "484:0:2" }, "scope": 1020, "src": "408:195:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 1021, "src": "25:580:2" } ], "src": "0:606:2" }, "legacyAST": { "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ 1020 ] }, "id": 1021, "nodeType": "SourceUnit", "nodes": [ { "id": 965, "literals": [ "solidity", "^", "0.4", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 1020, "linearizedBaseContracts": [ 1020 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 967, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1020, "src": "51:20:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 966, "name": "address", "nodeType": "ElementaryTypeName", "src": "51:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 969, "name": "last_completed_migration", "nodeType": "VariableDeclaration", "scope": 1020, "src": "77:36:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 968, "name": "uint", "nodeType": "ElementaryTypeName", "src": "77:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 977, "nodeType": "Block", "src": "142:43:2", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 974, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 971, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2089, "src": "156:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 972, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "156:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 973, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 967, "src": "170:5:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "156:19:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 976, "nodeType": "IfStatement", "src": "152:26:2", "trueBody": { "id": 975, "nodeType": "PlaceholderStatement", "src": "177:1:2" } } ] }, "id": 978, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { "id": 970, "nodeType": "ParameterList", "parameters": [], "src": "139:2:2" }, "src": "120:65:2", "visibility": "internal" }, { "body": { "id": 986, "nodeType": "Block", "src": "232:35:2", "statements": [ { "expression": { "argumentTypes": null, "id": 984, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 981, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 967, "src": "242:5:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 982, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2089, "src": "250:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 983, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "250:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "242:18:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 985, "nodeType": "ExpressionStatement", "src": "242:18:2" } ] }, "id": 987, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "Migrations", "nodeType": "FunctionDefinition", "parameters": { "id": 979, "nodeType": "ParameterList", "parameters": [], "src": "210:2:2" }, "payable": false, "returnParameters": { "id": 980, "nodeType": "ParameterList", "parameters": [], "src": "232:0:2" }, "scope": 1020, "src": "191:76:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 998, "nodeType": "Block", "src": "349:53:2", "statements": [ { "expression": { "argumentTypes": null, "id": 996, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 994, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 969, "src": "359:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 995, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 989, "src": "386:9:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "359:36:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 997, "nodeType": "ExpressionStatement", "src": "359:36:2" } ] }, "id": 999, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": [], "id": 992, "modifierName": { "argumentTypes": null, "id": 991, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 978, "src": "334:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "334:10:2" } ], "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { "id": 990, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 989, "name": "completed", "nodeType": "VariableDeclaration", "scope": 999, "src": "295:14:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 988, "name": "uint", "nodeType": "ElementaryTypeName", "src": "295:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "294:16:2" }, "payable": false, "returnParameters": { "id": 993, "nodeType": "ParameterList", "parameters": [], "src": "349:0:2" }, "scope": 1020, "src": "273:129:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 1018, "nodeType": "Block", "src": "484:119:2", "statements": [ { "assignments": [ 1007 ], "declarations": [ { "constant": false, "id": 1007, "name": "upgraded", "nodeType": "VariableDeclaration", "scope": 1019, "src": "494:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" }, "typeName": { "contractScope": null, "id": 1006, "name": "Migrations", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 1020, "src": "494:10:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" } }, "value": null, "visibility": "internal" } ], "id": 1011, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 1009, "name": "new_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1001, "src": "527:11:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 1008, "name": "Migrations", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1020, "src": "516:10:2", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Migrations_$1020_$", "typeString": "type(contract Migrations)" } }, "id": 1010, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "516:23:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" } }, "nodeType": "VariableDeclarationStatement", "src": "494:45:2" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 1015, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 969, "src": "571:24:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 1012, "name": "upgraded", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1007, "src": "549:8:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$1020", "typeString": "contract Migrations" } }, "id": 1014, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "setCompleted", "nodeType": "MemberAccess", "referencedDeclaration": 999, "src": "549:21:2", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, "id": 1016, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "549:47:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 1017, "nodeType": "ExpressionStatement", "src": "549:47:2" } ] }, "id": 1019, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": [], "id": 1004, "modifierName": { "argumentTypes": null, "id": 1003, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 978, "src": "469:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "469:10:2" } ], "name": "upgrade", "nodeType": "FunctionDefinition", "parameters": { "id": 1002, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1001, "name": "new_address", "nodeType": "VariableDeclaration", "scope": 1019, "src": "425:19:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1000, "name": "address", "nodeType": "ElementaryTypeName", "src": "425:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "424:21:2" }, "payable": false, "returnParameters": { "id": 1005, "nodeType": "ParameterList", "parameters": [], "src": "484:0:2" }, "scope": 1020, "src": "408:195:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 1021, "src": "25:580:2" } ], "src": "0:606:2" }, "compiler": { "name": "solc", "version": "0.4.19+commit.c4cbbb05.Emscripten.clang" }, "networks": { "4": { "events": {}, "links": {}, "address": "0x8130ece7b262aa6e6a63a6d05b115247ba35a9ec", "transactionHash": "0xdac98c9134a0828ac6bcf5a69d4d4154e890f197bdad53924cfdeaef1d29d363" }, "42": { "events": {}, "links": {}, "address": "0xa31ae2d8f41b3b5a5a748c88a3dcec0640582182", "transactionHash": "0x9f7a4b1f8709150b7efd2c2a4b31708410f3f3ad0f938d67bcef3c52d1033672" }, "1525342778744": { "events": {}, "links": {}, "address": "0xced15a6a3e7f4f182667bf7dd3e0403b8229a97b", "transactionHash": "0x8efec3bf60df6831ec5c77ceec27654c94b84005dfee1cb7dfae8d51c847ca93" } }, "schemaVersion": "2.0.0", "updatedAt": "2018-05-04T13:47:03.970Z" }