{ "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": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a7230582029a01c50bcc6dbb23cb61130bf3b14695ef057ce24820bdd6e893a38c9feada00029", "deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a7230582029a01c50bcc6dbb23cb61130bf3b14695ef057ce24820bdd6e893a38c9feada00029", "sourceMap": "34:480:1:-;;;123:50;8:9:-1;5:2;;;30:1;27;20:12;5:2;123:50:1;158:10;150:5;;:18;;;;;;;;;;;;;;;;;;34:480;;;;;;", "deployedSourceMap": "34:480:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;347:165:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;82:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82:36:1;;;;;;;;;;;;;;;;;;;;;;;58:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58:20:1;;;;;;;;;;;;;;;;;;;;;;;;;;;240:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;240:103:1;;;;;;;;;;;;;;;;;;;;;;;;;;347:165;409:19;223:5;;;;;;;;;;;209:19;;:10;:19;;;205:26;;;442:11;409:45;;460:8;:21;;;482:24;;460:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;460:47:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;460:47:1;;;;205:26;347:165;;:::o;82:36::-;;;;:::o;58:20::-;;;;;;;;;;;;;:::o;240:103::-;223:5;;;;;;;;;;;209:19;;:10;:19;;;205:26;;;329:9;302:24;:36;;;;205:26;240:103;:::o", "source": "pragma solidity >=0.4.21 <0.7.0;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n constructor() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", "sourcePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/contracts/Migrations.sol", "ast": { "absolutePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ 398 ] }, "id": 399, "nodeType": "SourceUnit", "nodes": [ { "id": 343, "literals": [ "solidity", ">=", "0.4", ".21", "<", "0.7", ".0" ], "nodeType": "PragmaDirective", "src": "0:32:1" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 398, "linearizedBaseContracts": [ 398 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 345, "name": "owner", "nodeType": "VariableDeclaration", "scope": 398, "src": "58:20:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 344, "name": "address", "nodeType": "ElementaryTypeName", "src": "58:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 347, "name": "last_completed_migration", "nodeType": "VariableDeclaration", "scope": 398, "src": "82:36:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 346, "name": "uint", "nodeType": "ElementaryTypeName", "src": "82:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 355, "nodeType": "Block", "src": "144:29:1", "statements": [ { "expression": { "argumentTypes": null, "id": 353, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 350, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 345, "src": "150:5:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 351, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1756, "src": "158:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 352, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "158:10:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "150:18:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 354, "nodeType": "ExpressionStatement", "src": "150:18:1" } ] }, "documentation": null, "id": 356, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 348, "nodeType": "ParameterList", "parameters": [], "src": "134:2:1" }, "payable": false, "returnParameters": { "id": 349, "nodeType": "ParameterList", "parameters": [], "src": "144:0:1" }, "scope": 398, "src": "123:50:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 364, "nodeType": "Block", "src": "199:37:1", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 361, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 358, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1756, "src": "209:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 359, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "209:10:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 360, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 345, "src": "223:5:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "209:19:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 363, "nodeType": "IfStatement", "src": "205:26:1", "trueBody": { "id": 362, "nodeType": "PlaceholderStatement", "src": "230:1:1" } } ] }, "documentation": null, "id": 365, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { "id": 357, "nodeType": "ParameterList", "parameters": [], "src": "196:2:1" }, "src": "177:59:1", "visibility": "internal" }, { "body": { "id": 376, "nodeType": "Block", "src": "296:47:1", "statements": [ { "expression": { "argumentTypes": null, "id": 374, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 372, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 347, "src": "302:24:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 373, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 367, "src": "329:9:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "302:36:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 375, "nodeType": "ExpressionStatement", "src": "302:36:1" } ] }, "documentation": null, "id": 377, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 370, "modifierName": { "argumentTypes": null, "id": 369, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 365, "src": "285:10:1", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "285:10:1" } ], "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { "id": 368, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 367, "name": "completed", "nodeType": "VariableDeclaration", "scope": 377, "src": "262:14:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 366, "name": "uint", "nodeType": "ElementaryTypeName", "src": "262:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "261:16:1" }, "payable": false, "returnParameters": { "id": 371, "nodeType": "ParameterList", "parameters": [], "src": "296:0:1" }, "scope": 398, "src": "240:103:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 396, "nodeType": "Block", "src": "403:109:1", "statements": [ { "assignments": [ 385 ], "declarations": [ { "constant": false, "id": 385, "name": "upgraded", "nodeType": "VariableDeclaration", "scope": 397, "src": "409:19:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" }, "typeName": { "contractScope": null, "id": 384, "name": "Migrations", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 398, "src": "409:10:1", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" } }, "value": null, "visibility": "internal" } ], "id": 389, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 387, "name": "new_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 379, "src": "442:11:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 386, "name": "Migrations", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 398, "src": "431:10:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Migrations_$398_$", "typeString": "type(contract Migrations)" } }, "id": 388, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "431:23:1", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" } }, "nodeType": "VariableDeclarationStatement", "src": "409:45:1" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 393, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 347, "src": "482:24:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 390, "name": "upgraded", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 385, "src": "460:8:1", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" } }, "id": 392, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "setCompleted", "nodeType": "MemberAccess", "referencedDeclaration": 377, "src": "460:21:1", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, "id": 394, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "460:47:1", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 395, "nodeType": "ExpressionStatement", "src": "460:47:1" } ] }, "documentation": null, "id": 397, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 382, "modifierName": { "argumentTypes": null, "id": 381, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 365, "src": "392:10:1", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "392:10:1" } ], "name": "upgrade", "nodeType": "FunctionDefinition", "parameters": { "id": 380, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 379, "name": "new_address", "nodeType": "VariableDeclaration", "scope": 397, "src": "364:19:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 378, "name": "address", "nodeType": "ElementaryTypeName", "src": "364:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "363:21:1" }, "payable": false, "returnParameters": { "id": 383, "nodeType": "ParameterList", "parameters": [], "src": "403:0:1" }, "scope": 398, "src": "347:165:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 399, "src": "34:480:1" } ], "src": "0:515:1" }, "legacyAST": { "absolutePath": "/Users/willpark/Desktop/bookwork-klaytn/project_codes/nftbapp/backend-nftdapp/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ 398 ] }, "id": 399, "nodeType": "SourceUnit", "nodes": [ { "id": 343, "literals": [ "solidity", ">=", "0.4", ".21", "<", "0.7", ".0" ], "nodeType": "PragmaDirective", "src": "0:32:1" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 398, "linearizedBaseContracts": [ 398 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 345, "name": "owner", "nodeType": "VariableDeclaration", "scope": 398, "src": "58:20:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 344, "name": "address", "nodeType": "ElementaryTypeName", "src": "58:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 347, "name": "last_completed_migration", "nodeType": "VariableDeclaration", "scope": 398, "src": "82:36:1", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 346, "name": "uint", "nodeType": "ElementaryTypeName", "src": "82:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 355, "nodeType": "Block", "src": "144:29:1", "statements": [ { "expression": { "argumentTypes": null, "id": 353, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 350, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 345, "src": "150:5:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 351, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1756, "src": "158:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 352, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "158:10:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "150:18:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 354, "nodeType": "ExpressionStatement", "src": "150:18:1" } ] }, "documentation": null, "id": 356, "implemented": true, "isConstructor": true, "isDeclaredConst": false, "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 348, "nodeType": "ParameterList", "parameters": [], "src": "134:2:1" }, "payable": false, "returnParameters": { "id": 349, "nodeType": "ParameterList", "parameters": [], "src": "144:0:1" }, "scope": 398, "src": "123:50:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 364, "nodeType": "Block", "src": "199:37:1", "statements": [ { "condition": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 361, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 358, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 1756, "src": "209:3:1", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 359, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "209:10:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "argumentTypes": null, "id": 360, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 345, "src": "223:5:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "209:19:1", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, "id": 363, "nodeType": "IfStatement", "src": "205:26:1", "trueBody": { "id": 362, "nodeType": "PlaceholderStatement", "src": "230:1:1" } } ] }, "documentation": null, "id": 365, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { "id": 357, "nodeType": "ParameterList", "parameters": [], "src": "196:2:1" }, "src": "177:59:1", "visibility": "internal" }, { "body": { "id": 376, "nodeType": "Block", "src": "296:47:1", "statements": [ { "expression": { "argumentTypes": null, "id": 374, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 372, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 347, "src": "302:24:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 373, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 367, "src": "329:9:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "302:36:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 375, "nodeType": "ExpressionStatement", "src": "302:36:1" } ] }, "documentation": null, "id": 377, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 370, "modifierName": { "argumentTypes": null, "id": 369, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 365, "src": "285:10:1", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "285:10:1" } ], "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { "id": 368, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 367, "name": "completed", "nodeType": "VariableDeclaration", "scope": 377, "src": "262:14:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 366, "name": "uint", "nodeType": "ElementaryTypeName", "src": "262:4:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "261:16:1" }, "payable": false, "returnParameters": { "id": 371, "nodeType": "ParameterList", "parameters": [], "src": "296:0:1" }, "scope": 398, "src": "240:103:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 396, "nodeType": "Block", "src": "403:109:1", "statements": [ { "assignments": [ 385 ], "declarations": [ { "constant": false, "id": 385, "name": "upgraded", "nodeType": "VariableDeclaration", "scope": 397, "src": "409:19:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" }, "typeName": { "contractScope": null, "id": 384, "name": "Migrations", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 398, "src": "409:10:1", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" } }, "value": null, "visibility": "internal" } ], "id": 389, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 387, "name": "new_address", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 379, "src": "442:11:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 386, "name": "Migrations", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 398, "src": "431:10:1", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_Migrations_$398_$", "typeString": "type(contract Migrations)" } }, "id": 388, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "431:23:1", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" } }, "nodeType": "VariableDeclarationStatement", "src": "409:45:1" }, { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 393, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 347, "src": "482:24:1", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_uint256", "typeString": "uint256" } ], "expression": { "argumentTypes": null, "id": 390, "name": "upgraded", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 385, "src": "460:8:1", "typeDescriptions": { "typeIdentifier": "t_contract$_Migrations_$398", "typeString": "contract Migrations" } }, "id": 392, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "setCompleted", "nodeType": "MemberAccess", "referencedDeclaration": 377, "src": "460:21:1", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, "id": 394, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "460:47:1", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 395, "nodeType": "ExpressionStatement", "src": "460:47:1" } ] }, "documentation": null, "id": 397, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, "id": 382, "modifierName": { "argumentTypes": null, "id": 381, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 365, "src": "392:10:1", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "392:10:1" } ], "name": "upgrade", "nodeType": "FunctionDefinition", "parameters": { "id": 380, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 379, "name": "new_address", "nodeType": "VariableDeclaration", "scope": 397, "src": "364:19:1", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 378, "name": "address", "nodeType": "ElementaryTypeName", "src": "364:7:1", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "363:21:1" }, "payable": false, "returnParameters": { "id": 383, "nodeType": "ParameterList", "parameters": [], "src": "403:0:1" }, "scope": 398, "src": "347:165:1", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 399, "src": "34:480:1" } ], "src": "0:515:1" }, "compiler": { "name": "solc", "version": "0.4.25+commit.59dbf8f1.Emscripten.clang" }, "networks": { "1001": { "events": {}, "links": {}, "address": "0xb0eed1caef99b6265a29d60576e99f99a8634927", "transactionHash": "0x56051e5703dd9bc804c0d4c80ab60f7514c3a900c23e39acd2f4795972bdf3d1" }, "5777": { "events": {}, "links": {}, "address": "0x3a03c5dd01bcc959e2de679053ceafdae2f3f125", "transactionHash": "0x32f069f7e04f8ccd25c4c31a6d9362ace961bd900db77ba53c2f2588be143ffa" } }, "schemaVersion": "2.0.2", "updatedAt": "2020-03-25T02:14:31.594Z" }