eth-to-bnc-bridge/src/deploy/build/contracts/Migrations.json

1392 lines
52 KiB
JSON

{
"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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.9+commit.e560f70d\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"new_address\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"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\"},{\"constant\":false,\"inputs\":[{\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/kirillfedoseev/Innopolis/My own projects/bridge/bridge/src/deploy/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":3},\"remappings\":[]},\"sources\":{\"/Users/kirillfedoseev/Innopolis/My own projects/bridge/bridge/src/deploy/contracts/Migrations.sol\":{\"keccak256\":\"0xc880be5661483402e4e5015965ce74d890cec8e7c6e19e5d3f9cdae5cb2e2132\",\"urls\":[\"bzzr://380f9b6d54c6760b2a469b310f5993da5e25089d503e7deef870a24085fae0ef\",\"dweb:/ipfs/QmUDtTu4cumtRwD3G6rLvrEYAoY7Te8v3wGsWD43S1KAPo\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101b3806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100795780638da5cb5b14610093578063fdacd576146100b7575b600080fd5b6100776004803603602081101561006757600080fd5b50356001600160a01b03166100d4565b005b610081610151565b60408051918252519081900360200190f35b61009b610157565b604080516001600160a01b039092168252519081900360200190f35b610077600480360360208110156100cd57600080fd5b5035610166565b6000546001600160a01b031633141561014e576000819050806001600160a01b031663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561013457600080fd5b505af1158015610148573d6000803e3d6000fd5b50505050505b50565b60015481565b6000546001600160a01b031681565b6000546001600160a01b031633141561014e5760015556fea265627a7a723058207b82efe11634eefc93659f6e965346dfa8d329831b0c932a8bf00110ef550c9064736f6c63430005090032",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100795780638da5cb5b14610093578063fdacd576146100b7575b600080fd5b6100776004803603602081101561006757600080fd5b50356001600160a01b03166100d4565b005b610081610151565b60408051918252519081900360200190f35b61009b610157565b604080516001600160a01b039092168252519081900360200190f35b610077600480360360208110156100cd57600080fd5b5035610166565b6000546001600160a01b031633141561014e576000819050806001600160a01b031663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561013457600080fd5b505af1158015610148573d6000803e3d6000fd5b50505050505b50565b60015481565b6000546001600160a01b031681565b6000546001600160a01b031633141561014e5760015556fea265627a7a723058207b82efe11634eefc93659f6e965346dfa8d329831b0c932a8bf00110ef550c9064736f6c63430005090032",
"sourceMap": "25:521:2:-;;;192:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;223:5:2;:18;;-1:-1:-1;;;;;;223:18:2;231:10;223:18;;;25:521;;;;;;",
"deployedSourceMap": "25:521:2:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:521:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;369:175;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;369:175:2;-1:-1:-1;;;;;369:175:2;;:::i;:::-;;78:36;;;:::i;:::-;;;;;;;;;;;;;;;;51:20;;;:::i;:::-;;;;-1:-1:-1;;;;;51:20:2;;;;;;;;;;;;;;254:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;254:109:2;;:::i;369:175::-;171:5;;-1:-1:-1;;;;;171:5:2;157:10;:19;153:26;;;435:19;468:11;435:45;;490:8;-1:-1:-1;;;;;490:21:2;;512:24;;490:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;490:47:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;490:47:2;;;;178:1;153:26;369:175;:::o;78:36::-;;;;:::o;51:20::-;;;-1:-1:-1;;;;;51:20:2;;:::o;254:109::-;171:5;;-1:-1:-1;;;;;171:5:2;157:10;:19;153:26;;;320:24;:36;254:109::o",
"source": "pragma solidity ^0.5.9;\n\ncontract Migrations {\n address public owner;\n\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n constructor() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) restricted public {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) restricted public {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n",
"sourcePath": "/Users/kirillfedoseev/Innopolis/My own projects/bridge/bridge/src/deploy/contracts/Migrations.sol",
"ast": {
"absolutePath": "/Users/kirillfedoseev/Innopolis/My own projects/bridge/bridge/src/deploy/contracts/Migrations.sol",
"exportedSymbols": {
"Migrations": [
175
]
},
"id": 176,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 120,
"literals": [
"solidity",
"^",
"0.5",
".9"
],
"nodeType": "PragmaDirective",
"src": "0:23:2"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 175,
"linearizedBaseContracts": [
175
],
"name": "Migrations",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 122,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 175,
"src": "51:20:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 121,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "51:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 124,
"name": "last_completed_migration",
"nodeType": "VariableDeclaration",
"scope": 175,
"src": "78:36:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 123,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "78:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 132,
"nodeType": "Block",
"src": "143:43:2",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 129,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 126,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 786,
"src": "157:3:2",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 127,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "157:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 128,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 122,
"src": "171:5:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "157:19:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 131,
"nodeType": "IfStatement",
"src": "153:26:2",
"trueBody": {
"id": 130,
"nodeType": "PlaceholderStatement",
"src": "178:1:2"
}
}
]
},
"documentation": null,
"id": 133,
"name": "restricted",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 125,
"nodeType": "ParameterList",
"parameters": [],
"src": "140:2:2"
},
"src": "121:65:2",
"visibility": "internal"
},
{
"body": {
"id": 141,
"nodeType": "Block",
"src": "213:35:2",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 139,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 136,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 122,
"src": "223:5:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 137,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 786,
"src": "231:3:2",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 138,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "231:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"src": "223:18:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 140,
"nodeType": "ExpressionStatement",
"src": "223:18:2"
}
]
},
"documentation": null,
"id": 142,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 134,
"nodeType": "ParameterList",
"parameters": [],
"src": "203:2:2"
},
"returnParameters": {
"id": 135,
"nodeType": "ParameterList",
"parameters": [],
"src": "213:0:2"
},
"scope": 175,
"src": "192:56:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 153,
"nodeType": "Block",
"src": "310:53:2",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 151,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 149,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 124,
"src": "320:24:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 150,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 144,
"src": "347:9:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "320:36:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 152,
"nodeType": "ExpressionStatement",
"src": "320:36:2"
}
]
},
"documentation": null,
"id": 154,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 147,
"modifierName": {
"argumentTypes": null,
"id": 146,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 133,
"src": "292:10:2",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "292:10:2"
}
],
"name": "setCompleted",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 145,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 144,
"name": "completed",
"nodeType": "VariableDeclaration",
"scope": 154,
"src": "276:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 143,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "276:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "275:16:2"
},
"returnParameters": {
"id": 148,
"nodeType": "ParameterList",
"parameters": [],
"src": "310:0:2"
},
"scope": 175,
"src": "254:109:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 173,
"nodeType": "Block",
"src": "425:119:2",
"statements": [
{
"assignments": [
162
],
"declarations": [
{
"constant": false,
"id": 162,
"name": "upgraded",
"nodeType": "VariableDeclaration",
"scope": 173,
"src": "435:19:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
},
"typeName": {
"contractScope": null,
"id": 161,
"name": "Migrations",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 175,
"src": "435:10:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 166,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 164,
"name": "new_address",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 156,
"src": "468:11:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 163,
"name": "Migrations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 175,
"src": "457:10:2",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Migrations_$175_$",
"typeString": "type(contract Migrations)"
}
},
"id": 165,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "457:23:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "435:45:2"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 170,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 124,
"src": "512:24:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 167,
"name": "upgraded",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 162,
"src": "490:8:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
}
},
"id": 169,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "setCompleted",
"nodeType": "MemberAccess",
"referencedDeclaration": 154,
"src": "490:21:2",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256) external"
}
},
"id": 171,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "490:47:2",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 172,
"nodeType": "ExpressionStatement",
"src": "490:47:2"
}
]
},
"documentation": null,
"id": 174,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 159,
"modifierName": {
"argumentTypes": null,
"id": 158,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 133,
"src": "407:10:2",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "407:10:2"
}
],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 157,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 156,
"name": "new_address",
"nodeType": "VariableDeclaration",
"scope": 174,
"src": "386:19:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 155,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "386:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "385:21:2"
},
"returnParameters": {
"id": 160,
"nodeType": "ParameterList",
"parameters": [],
"src": "425:0:2"
},
"scope": 175,
"src": "369:175:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 176,
"src": "25:521:2"
}
],
"src": "0:547:2"
},
"legacyAST": {
"absolutePath": "/Users/kirillfedoseev/Innopolis/My own projects/bridge/bridge/src/deploy/contracts/Migrations.sol",
"exportedSymbols": {
"Migrations": [
175
]
},
"id": 176,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 120,
"literals": [
"solidity",
"^",
"0.5",
".9"
],
"nodeType": "PragmaDirective",
"src": "0:23:2"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 175,
"linearizedBaseContracts": [
175
],
"name": "Migrations",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 122,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 175,
"src": "51:20:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 121,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "51:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "public"
},
{
"constant": false,
"id": 124,
"name": "last_completed_migration",
"nodeType": "VariableDeclaration",
"scope": 175,
"src": "78:36:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 123,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "78:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "public"
},
{
"body": {
"id": 132,
"nodeType": "Block",
"src": "143:43:2",
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 129,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 126,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 786,
"src": "157:3:2",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 127,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "157:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"id": 128,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 122,
"src": "171:5:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "157:19:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 131,
"nodeType": "IfStatement",
"src": "153:26:2",
"trueBody": {
"id": 130,
"nodeType": "PlaceholderStatement",
"src": "178:1:2"
}
}
]
},
"documentation": null,
"id": 133,
"name": "restricted",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 125,
"nodeType": "ParameterList",
"parameters": [],
"src": "140:2:2"
},
"src": "121:65:2",
"visibility": "internal"
},
{
"body": {
"id": 141,
"nodeType": "Block",
"src": "213:35:2",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 139,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 136,
"name": "owner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 122,
"src": "223:5:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 137,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 786,
"src": "231:3:2",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 138,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "sender",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "231:10:2",
"typeDescriptions": {
"typeIdentifier": "t_address_payable",
"typeString": "address payable"
}
},
"src": "223:18:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 140,
"nodeType": "ExpressionStatement",
"src": "223:18:2"
}
]
},
"documentation": null,
"id": 142,
"implemented": true,
"kind": "constructor",
"modifiers": [],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 134,
"nodeType": "ParameterList",
"parameters": [],
"src": "203:2:2"
},
"returnParameters": {
"id": 135,
"nodeType": "ParameterList",
"parameters": [],
"src": "213:0:2"
},
"scope": 175,
"src": "192:56:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 153,
"nodeType": "Block",
"src": "310:53:2",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 151,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 149,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 124,
"src": "320:24:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 150,
"name": "completed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 144,
"src": "347:9:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "320:36:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 152,
"nodeType": "ExpressionStatement",
"src": "320:36:2"
}
]
},
"documentation": null,
"id": 154,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 147,
"modifierName": {
"argumentTypes": null,
"id": 146,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 133,
"src": "292:10:2",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "292:10:2"
}
],
"name": "setCompleted",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 145,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 144,
"name": "completed",
"nodeType": "VariableDeclaration",
"scope": 154,
"src": "276:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 143,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "276:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "275:16:2"
},
"returnParameters": {
"id": 148,
"nodeType": "ParameterList",
"parameters": [],
"src": "310:0:2"
},
"scope": 175,
"src": "254:109:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
"id": 173,
"nodeType": "Block",
"src": "425:119:2",
"statements": [
{
"assignments": [
162
],
"declarations": [
{
"constant": false,
"id": 162,
"name": "upgraded",
"nodeType": "VariableDeclaration",
"scope": 173,
"src": "435:19:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
},
"typeName": {
"contractScope": null,
"id": 161,
"name": "Migrations",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 175,
"src": "435:10:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
}
},
"value": null,
"visibility": "internal"
}
],
"id": 166,
"initialValue": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 164,
"name": "new_address",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 156,
"src": "468:11:2",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
}
],
"id": 163,
"name": "Migrations",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 175,
"src": "457:10:2",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Migrations_$175_$",
"typeString": "type(contract Migrations)"
}
},
"id": 165,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "457:23:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "435:45:2"
},
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 170,
"name": "last_completed_migration",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 124,
"src": "512:24:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 167,
"name": "upgraded",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 162,
"src": "490:8:2",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Migrations_$175",
"typeString": "contract Migrations"
}
},
"id": 169,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "setCompleted",
"nodeType": "MemberAccess",
"referencedDeclaration": 154,
"src": "490:21:2",
"typeDescriptions": {
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
"typeString": "function (uint256) external"
}
},
"id": 171,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "490:47:2",
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 172,
"nodeType": "ExpressionStatement",
"src": "490:47:2"
}
]
},
"documentation": null,
"id": 174,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 159,
"modifierName": {
"argumentTypes": null,
"id": 158,
"name": "restricted",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 133,
"src": "407:10:2",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "407:10:2"
}
],
"name": "upgrade",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 157,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 156,
"name": "new_address",
"nodeType": "VariableDeclaration",
"scope": 174,
"src": "386:19:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 155,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "386:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "385:21:2"
},
"returnParameters": {
"id": 160,
"nodeType": "ParameterList",
"parameters": [],
"src": "425:0:2"
},
"scope": 175,
"src": "369:175:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 176,
"src": "25:521:2"
}
],
"src": "0:547:2"
},
"compiler": {
"name": "solc",
"version": "0.5.9+commit.e560f70d.Emscripten.clang"
},
"networks": {
"33": {
"events": {},
"links": {},
"address": "0x25Fb15dE8a4bf7fb179e9bE111D0b9fAdb518E0C",
"transactionHash": "0xe900f9df95872646e836e5a0ec9c5c7e1101f70ec35c6cca1b684512e334cfb0"
},
"77": {
"events": {},
"links": {},
"address": "0xeeFA839a17cf5a141b651557A2f7C3a21B410741",
"transactionHash": "0x1bb817c1342068620ca5ddb442b6fd55637de84214c269495fecf2562df2444b"
}
},
"schemaVersion": "3.0.10",
"updatedAt": "2019-07-03T18:43:48.340Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}