dcc/build/contracts/Migrations.json

1395 lines
53 KiB
JSON

{
"contractName": "Migrations",
"abi": [
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [],
"name": "last_completed_migration",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "completed",
"type": "uint256"
}
],
"name": "setCompleted",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "new_address",
"type": "address"
}
],
"name": "upgrade",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.12+commit.7709ece9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"new_address\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/p1r0/Dev/git/neetsec/dcc/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/p1r0/Dev/git/neetsec/dcc/contracts/Migrations.sol\":{\"keccak256\":\"0xda12f39da5e08f86d00052b4055e615fe1dc6be843c476ddd2a4f35d2804e7b4\",\"urls\":[\"bzz-raw://68d6f473d2cd747d21b11fc9a4d1e358ebcffa5eafcd8f590e46b78d031b1f5b\",\"dweb:/ipfs/QmZoFy1VBDc34mCjSNVQEcZnrQMzBvsh9RUKpkPX4LTnwb\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102b7806100606000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100955780638da5cb5b146100b3578063fdacd576146100fd575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061012b565b005b61009d6101f7565b6040518082815260200191505060405180910390f35b6100bb6101fd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101296004803603602081101561011357600080fd5b8101908080359060200190929190505050610222565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101f45760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101da57600080fd5b505af11580156101ee573d6000803e3d6000fd5b50505050505b50565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561027f57806001819055505b5056fea265627a7a7231582054889afd3253b1dd1ab56bedb2436748e32210b783a2769f9ccc5b86e0f0934b64736f6c634300050c0032",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100955780638da5cb5b146100b3578063fdacd576146100fd575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061012b565b005b61009d6101f7565b6040518082815260200191505060405180910390f35b6100bb6101fd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101296004803603602081101561011357600080fd5b8101908080359060200190929190505050610222565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101f45760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101da57600080fd5b505af11580156101ee573d6000803e3d6000fd5b50505050505b50565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561027f57806001819055505b5056fea265627a7a7231582054889afd3253b1dd1ab56bedb2436748e32210b783a2769f9ccc5b86e0f0934b64736f6c634300050c0032",
"sourceMap": "51:480:1:-;;;140:50;8:9:-1;5:2;;;30:1;27;20:12;5:2;140:50:1;175:10;167:5;;:18;;;;;;;;;;;;;;;;;;51:480;;;;;;",
"deployedSourceMap": "51:480:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51:480:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;364:165;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;364:165:1;;;;;;;;;;;;;;;;;;;:::i;:::-;;99:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;75:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;257:103;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;257:103:1;;;;;;;;;;;;;;;;;:::i;:::-;;364:165;240:5;;;;;;;;;;;226:19;;:10;:19;;;222:26;;;426:19;459:11;426:45;;477:8;:21;;;499:24;;477:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;477:47:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;477:47:1;;;;247:1;222:26;364:165;:::o;99:36::-;;;;:::o;75:20::-;;;;;;;;;;;;;:::o;257:103::-;240:5;;;;;;;;;;;226:19;;:10;:19;;;222:26;;;346:9;319:24;:36;;;;222:26;257:103;:::o",
"source": "pragma solidity 0.5.12;\n//pragma solidity 0.5.16;\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": "/home/p1r0/Dev/git/neetsec/dcc/contracts/Migrations.sol",
"ast": {
"absolutePath": "/home/p1r0/Dev/git/neetsec/dcc/contracts/Migrations.sol",
"exportedSymbols": {
"Migrations": [
390
]
},
"id": 391,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 335,
"literals": [
"solidity",
"0.5",
".12"
],
"nodeType": "PragmaDirective",
"src": "0:23:1"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 390,
"linearizedBaseContracts": [
390
],
"name": "Migrations",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 337,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 390,
"src": "75:20:1",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 336,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "75:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 339,
"name": "last_completed_migration",
"nodeType": "VariableDeclaration",
"scope": 390,
"src": "99:36:1",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 338,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "99:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 347,
"nodeType": "Block",
"src": "161:29:1",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 345,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 342,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 337,
"src": "167:5:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 343,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1093,
"src": "175:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 344,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "175:10:1",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"src": "167:18:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 346,
"nodeType": "ExpressionStatement",
"src": "167:18:1"
}
]
},
"documentation": null,
"id": 348,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 340,
"nodeType": "ParameterList",
"parameters": [],
"src": "151:2:1"
},
"returnParameters": {
"id": 341,
"nodeType": "ParameterList",
"parameters": [],
"src": "161:0:1"
},
"scope": 390,
"src": "140:50:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 356,
"nodeType": "Block",
"src": "216:37:1",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 353,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 350,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1093,
"src": "226:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 351,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "226:10:1",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 352,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 337,
"src": "240:5:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "226:19:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 355,
"nodeType": "IfStatement",
"src": "222:26:1",
"trueBody": {
"id": 354,
"nodeType": "PlaceholderStatement",
"src": "247:1:1"
}
}
]
},
"documentation": null,
"id": 357,
"name": "restricted",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 349,
"nodeType": "ParameterList",
"parameters": [],
"src": "213:2:1"
},
"src": "194:59:1",
"visibility": "internal"
},
{
"body": {
"id": 368,
"nodeType": "Block",
"src": "313:47:1",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 366,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 364,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 339,
"src": "319:24:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 365,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 359,
"src": "346:9:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "319:36:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 367,
"nodeType": "ExpressionStatement",
"src": "319:36:1"
}
]
},
"documentation": null,
"id": 369,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 362,
"modifierName": {
"argumentTypes": null,
"id": 361,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 357,
"src": "302:10:1",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "302:10:1"
}
],
"name": "setCompleted",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 359,
"name": "completed",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "279:14:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 358,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "279:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "278:16:1"
},
"returnParameters": {
"id": 363,
"nodeType": "ParameterList",
"parameters": [],
"src": "313:0:1"
},
"scope": 390,
"src": "257:103:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 388,
"nodeType": "Block",
"src": "420:109:1",
"statements": [
{
"assignments": [
377
],
"declarations": [
{
"constant": false,
"id": 377,
"name": "upgraded",
"nodeType": "VariableDeclaration",
"scope": 388,
"src": "426:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
},
"typeName": {
"contractScope": null,
"id": 376,
"name": "Migrations",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 390,
"src": "426:10:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 381,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 379,
"name": "new_address",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 371,
"src": "459:11:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 378,
"name": "Migrations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 390,
"src": "448:10:1",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Migrations_$390_$",
"typeString": "type(contract Migrations)"
}
},
"id": 380,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "448:23:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "426:45:1"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 385,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 339,
"src": "499:24:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 382,
"name": "upgraded",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 377,
"src": "477:8:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
}
},
"id": 384,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "setCompleted",
"nodeType": "MemberAccess",
"referencedDeclaration": 369,
"src": "477:21:1",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256) external"
}
},
"id": 386,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "477:47:1",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 387,
"nodeType": "ExpressionStatement",
"src": "477:47:1"
}
]
},
"documentation": null,
"id": 389,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 374,
"modifierName": {
"argumentTypes": null,
"id": 373,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 357,
"src": "409:10:1",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "409:10:1"
}
],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 372,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 371,
"name": "new_address",
"nodeType": "VariableDeclaration",
"scope": 389,
"src": "381:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 370,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "381:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "380:21:1"
},
"returnParameters": {
"id": 375,
"nodeType": "ParameterList",
"parameters": [],
"src": "420:0:1"
},
"scope": 390,
"src": "364:165:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 391,
"src": "51:480:1"
}
],
"src": "0:532:1"
},
"legacyAST": {
"absolutePath": "/home/p1r0/Dev/git/neetsec/dcc/contracts/Migrations.sol",
"exportedSymbols": {
"Migrations": [
390
]
},
"id": 391,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 335,
"literals": [
"solidity",
"0.5",
".12"
],
"nodeType": "PragmaDirective",
"src": "0:23:1"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 390,
"linearizedBaseContracts": [
390
],
"name": "Migrations",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 337,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 390,
"src": "75:20:1",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 336,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "75:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 339,
"name": "last_completed_migration",
"nodeType": "VariableDeclaration",
"scope": 390,
"src": "99:36:1",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 338,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "99:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 347,
"nodeType": "Block",
"src": "161:29:1",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 345,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 342,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 337,
"src": "167:5:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 343,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1093,
"src": "175:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 344,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "175:10:1",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"src": "167:18:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 346,
"nodeType": "ExpressionStatement",
"src": "167:18:1"
}
]
},
"documentation": null,
"id": 348,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 340,
"nodeType": "ParameterList",
"parameters": [],
"src": "151:2:1"
},
"returnParameters": {
"id": 341,
"nodeType": "ParameterList",
"parameters": [],
"src": "161:0:1"
},
"scope": 390,
"src": "140:50:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 356,
"nodeType": "Block",
"src": "216:37:1",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 353,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 350,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1093,
"src": "226:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 351,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "226:10:1",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 352,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 337,
"src": "240:5:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "226:19:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 355,
"nodeType": "IfStatement",
"src": "222:26:1",
"trueBody": {
"id": 354,
"nodeType": "PlaceholderStatement",
"src": "247:1:1"
}
}
]
},
"documentation": null,
"id": 357,
"name": "restricted",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 349,
"nodeType": "ParameterList",
"parameters": [],
"src": "213:2:1"
},
"src": "194:59:1",
"visibility": "internal"
},
{
"body": {
"id": 368,
"nodeType": "Block",
"src": "313:47:1",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 366,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 364,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 339,
"src": "319:24:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 365,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 359,
"src": "346:9:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "319:36:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 367,
"nodeType": "ExpressionStatement",
"src": "319:36:1"
}
]
},
"documentation": null,
"id": 369,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 362,
"modifierName": {
"argumentTypes": null,
"id": 361,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 357,
"src": "302:10:1",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "302:10:1"
}
],
"name": "setCompleted",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 359,
"name": "completed",
"nodeType": "VariableDeclaration",
"scope": 369,
"src": "279:14:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 358,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "279:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "278:16:1"
},
"returnParameters": {
"id": 363,
"nodeType": "ParameterList",
"parameters": [],
"src": "313:0:1"
},
"scope": 390,
"src": "257:103:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 388,
"nodeType": "Block",
"src": "420:109:1",
"statements": [
{
"assignments": [
377
],
"declarations": [
{
"constant": false,
"id": 377,
"name": "upgraded",
"nodeType": "VariableDeclaration",
"scope": 388,
"src": "426:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
},
"typeName": {
"contractScope": null,
"id": 376,
"name": "Migrations",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 390,
"src": "426:10:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 381,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 379,
"name": "new_address",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 371,
"src": "459:11:1",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 378,
"name": "Migrations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 390,
"src": "448:10:1",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Migrations_$390_$",
"typeString": "type(contract Migrations)"
}
},
"id": 380,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "448:23:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "426:45:1"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 385,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 339,
"src": "499:24:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 382,
"name": "upgraded",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 377,
"src": "477:8:1",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$390",
"typeString": "contract Migrations"
}
},
"id": 384,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "setCompleted",
"nodeType": "MemberAccess",
"referencedDeclaration": 369,
"src": "477:21:1",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256) external"
}
},
"id": 386,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "477:47:1",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 387,
"nodeType": "ExpressionStatement",
"src": "477:47:1"
}
]
},
"documentation": null,
"id": 389,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 374,
"modifierName": {
"argumentTypes": null,
"id": 373,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 357,
"src": "409:10:1",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "409:10:1"
}
],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 372,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 371,
"name": "new_address",
"nodeType": "VariableDeclaration",
"scope": 389,
"src": "381:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 370,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "381:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "380:21:1"
},
"returnParameters": {
"id": 375,
"nodeType": "ParameterList",
"parameters": [],
"src": "420:0:1"
},
"scope": 390,
"src": "364:165:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 391,
"src": "51:480:1"
}
],
"src": "0:532:1"
},
"compiler": {
"name": "solc",
"version": "0.5.12+commit.7709ece9.Emscripten.clang"
},
"networks": {
"1582002845050": {
"events": {},
"links": {},
"address": "0xa29064AFb33CEB33ae4f1008719C181d8092DCfF",
"transactionHash": "0x652480b1c0e69860ea8ca6a796762a98177a70f99fa27ea7ddba104bca674ab2"
},
"1582002888088": {
"events": {},
"links": {},
"address": "0x0f5Ea0A652E851678Ebf77B69484bFcD31F9459B",
"transactionHash": "0xfde65f7f6a01e4f9b42aea1c2f4eaf6ba342d44bbc1baf0d3c15c488ee13bff0"
}
},
"schemaVersion": "3.0.19",
"updatedAt": "2020-02-18T05:15:08.094Z",
"networkType": "ethereum",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}