{
    "contractName": "Migrations",
    "abi": [
        {
            "inputs": [],
            "stateMutability": "nonpayable",
            "type": "constructor"
        },
        {
            "inputs": [],
            "name": "last_completed_migration",
            "outputs": [
                {
                    "internalType": "uint256",
                    "name": "",
                    "type": "uint256"
                }
            ],
            "stateMutability": "view",
            "type": "function"
        },
        {
            "inputs": [],
            "name": "owner",
            "outputs": [
                {
                    "internalType": "address",
                    "name": "",
                    "type": "address"
                }
            ],
            "stateMutability": "view",
            "type": "function"
        },
        {
            "inputs": [
                {
                    "internalType": "uint256",
                    "name": "completed",
                    "type": "uint256"
                }
            ],
            "name": "setCompleted",
            "outputs": [],
            "stateMutability": "nonpayable",
            "type": "function"
        },
        {
            "inputs": [
                {
                    "internalType": "address",
                    "name": "newAddress",
                    "type": "address"
                }
            ],
            "name": "upgrade",
            "outputs": [],
            "stateMutability": "nonpayable",
            "type": "function"
        }
    ],
    "metadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/alexf/gsn2/packages/contracts/solpp/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/alexf/gsn2/packages/contracts/solpp/Migrations.sol\":{\"keccak256\":\"0x206b3c9bd7d9080b360f0f499ce0457e1d7a9e160fa8dbd3f8f592f7f03bb7c4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://41e283cf3297c58bd5bea5e78b30e6f9e48fc66cd0274a04d2f57eb7b45eb3c0\",\"dweb:/ipfs/QmcozJ7bHZASTwANLcTNEYhAnoCPx9EXkmyBVjp5BdJvwU\"]}},\"version\":1}",
    "bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101d4806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100665780638da5cb5b14610082578063fdacd576146100ad575b600080fd5b61006461005f366004610155565b6100c0565b005b61006f60015481565b6040519081526020015b60405180910390f35b600054610095906001600160a01b031681565b6040516001600160a01b039091168152602001610079565b6100646100bb366004610185565b61013d565b6000546001600160a01b031633141561013a57600154604051637ed66abb60e11b815282916001600160a01b0383169163fdacd576916101069160040190815260200190565b600060405180830381600087803b15801561012057600080fd5b505af1158015610134573d6000803e3d6000fd5b50505050505b50565b6000546001600160a01b031633141561013a57600155565b60006020828403121561016757600080fd5b81356001600160a01b038116811461017e57600080fd5b9392505050565b60006020828403121561019757600080fd5b503591905056fea264697066735822122089d7b2d5c88bca000da8b5795013ac8144a7f415b8bde0ff8f8002dbdec3339e64736f6c63430008070033",
    "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100665780638da5cb5b14610082578063fdacd576146100ad575b600080fd5b61006461005f366004610155565b6100c0565b005b61006f60015481565b6040519081526020015b60405180910390f35b600054610095906001600160a01b031681565b6040516001600160a01b039091168152602001610079565b6100646100bb366004610185565b61013d565b6000546001600160a01b031633141561013a57600154604051637ed66abb60e11b815282916001600160a01b0383169163fdacd576916101069160040190815260200190565b600060405180830381600087803b15801561012057600080fd5b505af1158015610134573d6000803e3d6000fd5b50505050505b50565b6000546001600160a01b031633141561013a57600155565b60006020828403121561016757600080fd5b81356001600160a01b038116811461017e57600080fd5b9392505050565b60006020828403121561019757600080fd5b503591905056fea264697066735822122089d7b2d5c88bca000da8b5795013ac8144a7f415b8bde0ff8f8002dbdec3339e64736f6c63430008070033",
    "immutableReferences": {},
    "sourceMap": "57:569:2:-:0;;;207:49;;;;;;;;;-1:-1:-1;231:5:2;:18;;-1:-1:-1;;;;;;231:18:2;239:10;231:18;;;57:569;;;;;;",
    "deployedSourceMap": "57:569:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;451:173;;;;;;:::i;:::-;;:::i;:::-;;161:39;;;;;;;;;844:25:63;;;832:2;817:18;161:39:2;;;;;;;;83:20;;;;;-1:-1:-1;;;;;83:20:2;;;;;;-1:-1:-1;;;;;654:32:63;;;636:51;;624:2;609:18;83:20:2;490:203:63;333:112:2;;;;;;:::i;:::-;;:::i;451:173::-;312:5;;-1:-1:-1;;;;;312:5:2;298:10;:19;294:26;;;592:24:::1;::::0;570:47:::1;::::0;-1:-1:-1;;;570:47:2;;549:10;;-1:-1:-1;;;;;570:21:2;::::1;::::0;::::1;::::0;:47:::1;::::0;::::1;;844:25:63::0;;;832:2;817:18;;698:177;570:47:2::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;506:118;294:26:::0;451:173;:::o;333:112::-;312:5;;-1:-1:-1;;;;;312:5:2;298:10;:19;294:26;;;402:24:::1;:36:::0;333:112::o;14:286:63:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:63;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:63:o;305:180::-;364:6;417:2;405:9;396:7;392:23;388:32;385:52;;;433:1;430;423:12;385:52;-1:-1:-1;456:23:63;;305:180;-1:-1:-1;305:180:63:o",
    "source": "pragma solidity ^0.8.0;\n\n// SPDX-License-Identifier:MIT\n\ncontract Migrations {\n    address public owner;\n    // solhint-disable-next-line var-name-mixedcase\n    uint256 public last_completed_migration;\n\n    constructor() {\n        owner = msg.sender;\n    }\n\n    modifier restricted() {\n        if (msg.sender == owner) _;\n    }\n\n    function setCompleted(uint256 completed) public restricted {\n        last_completed_migration = completed;\n    }\n\n    function upgrade(address newAddress) public restricted {\n        Migrations upgraded = Migrations(newAddress);\n        upgraded.setCompleted(last_completed_migration);\n    }\n}",
    "sourcePath": "/Users/alexf/gsn2/packages/contracts/solpp/Migrations.sol",
    "ast": {
        "absolutePath": "/Users/alexf/gsn2/packages/contracts/solpp/Migrations.sol",
        "exportedSymbols": {
            "Migrations": [
                558
            ]
        },
        "id": 559,
        "license": "MIT",
        "nodeType": "SourceUnit",
        "nodes": [
            {
                "id": 502,
                "literals": [
                    "solidity",
                    "^",
                    "0.8",
                    ".0"
                ],
                "nodeType": "PragmaDirective",
                "src": "0:23:2"
            },
            {
                "abstract": false,
                "baseContracts": [],
                "contractDependencies": [],
                "contractKind": "contract",
                "fullyImplemented": true,
                "id": 558,
                "linearizedBaseContracts": [
                    558
                ],
                "name": "Migrations",
                "nameLocation": "66:10:2",
                "nodeType": "ContractDefinition",
                "nodes": [
                    {
                        "constant": false,
                        "functionSelector": "8da5cb5b",
                        "id": 504,
                        "mutability": "mutable",
                        "name": "owner",
                        "nameLocation": "98:5:2",
                        "nodeType": "VariableDeclaration",
                        "scope": 558,
                        "src": "83:20:2",
                        "stateVariable": true,
                        "storageLocation": "default",
                        "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                        },
                        "typeName": {
                            "id": 503,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "83:7:2",
                            "stateMutability": "nonpayable",
                            "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                            }
                        },
                        "visibility": "public"
                    },
                    {
                        "constant": false,
                        "functionSelector": "445df0ac",
                        "id": 506,
                        "mutability": "mutable",
                        "name": "last_completed_migration",
                        "nameLocation": "176:24:2",
                        "nodeType": "VariableDeclaration",
                        "scope": 558,
                        "src": "161:39:2",
                        "stateVariable": true,
                        "storageLocation": "default",
                        "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                        },
                        "typeName": {
                            "id": 505,
                            "name": "uint256",
                            "nodeType": "ElementaryTypeName",
                            "src": "161:7:2",
                            "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                            }
                        },
                        "visibility": "public"
                    },
                    {
                        "body": {
                            "id": 514,
                            "nodeType": "Block",
                            "src": "221:35:2",
                            "statements": [
                                {
                                    "expression": {
                                        "id": 512,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "leftHandSide": {
                                            "id": 509,
                                            "name": "owner",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 504,
                                            "src": "231:5:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "nodeType": "Assignment",
                                        "operator": "=",
                                        "rightHandSide": {
                                            "expression": {
                                                "id": 510,
                                                "name": "msg",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 4294967281,
                                                "src": "239:3:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_magic_message",
                                                    "typeString": "msg"
                                                }
                                            },
                                            "id": 511,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "src": "239:10:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "src": "231:18:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        }
                                    },
                                    "id": 513,
                                    "nodeType": "ExpressionStatement",
                                    "src": "231:18:2"
                                }
                            ]
                        },
                        "id": 515,
                        "implemented": true,
                        "kind": "constructor",
                        "modifiers": [],
                        "name": "",
                        "nameLocation": "-1:-1:-1",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 507,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "218:2:2"
                        },
                        "returnParameters": {
                            "id": 508,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "221:0:2"
                        },
                        "scope": 558,
                        "src": "207:49:2",
                        "stateMutability": "nonpayable",
                        "virtual": false,
                        "visibility": "public"
                    },
                    {
                        "body": {
                            "id": 523,
                            "nodeType": "Block",
                            "src": "284:43:2",
                            "statements": [
                                {
                                    "condition": {
                                        "commonType": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        },
                                        "id": 520,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "leftExpression": {
                                            "expression": {
                                                "id": 517,
                                                "name": "msg",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 4294967281,
                                                "src": "298:3:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_magic_message",
                                                    "typeString": "msg"
                                                }
                                            },
                                            "id": 518,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "src": "298:10:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "nodeType": "BinaryOperation",
                                        "operator": "==",
                                        "rightExpression": {
                                            "id": 519,
                                            "name": "owner",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 504,
                                            "src": "312:5:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "src": "298:19:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                        }
                                    },
                                    "id": 522,
                                    "nodeType": "IfStatement",
                                    "src": "294:26:2",
                                    "trueBody": {
                                        "id": 521,
                                        "nodeType": "PlaceholderStatement",
                                        "src": "319:1:2"
                                    }
                                }
                            ]
                        },
                        "id": 524,
                        "name": "restricted",
                        "nameLocation": "271:10:2",
                        "nodeType": "ModifierDefinition",
                        "parameters": {
                            "id": 516,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "281:2:2"
                        },
                        "src": "262:65:2",
                        "virtual": false,
                        "visibility": "internal"
                    },
                    {
                        "body": {
                            "id": 535,
                            "nodeType": "Block",
                            "src": "392:53:2",
                            "statements": [
                                {
                                    "expression": {
                                        "id": 533,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "leftHandSide": {
                                            "id": 531,
                                            "name": "last_completed_migration",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 506,
                                            "src": "402:24:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            }
                                        },
                                        "nodeType": "Assignment",
                                        "operator": "=",
                                        "rightHandSide": {
                                            "id": 532,
                                            "name": "completed",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 526,
                                            "src": "429:9:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            }
                                        },
                                        "src": "402:36:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "id": 534,
                                    "nodeType": "ExpressionStatement",
                                    "src": "402:36:2"
                                }
                            ]
                        },
                        "functionSelector": "fdacd576",
                        "id": 536,
                        "implemented": true,
                        "kind": "function",
                        "modifiers": [
                            {
                                "id": 529,
                                "kind": "modifierInvocation",
                                "modifierName": {
                                    "id": 528,
                                    "name": "restricted",
                                    "nodeType": "IdentifierPath",
                                    "referencedDeclaration": 524,
                                    "src": "381:10:2"
                                },
                                "nodeType": "ModifierInvocation",
                                "src": "381:10:2"
                            }
                        ],
                        "name": "setCompleted",
                        "nameLocation": "342:12:2",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 527,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 526,
                                    "mutability": "mutable",
                                    "name": "completed",
                                    "nameLocation": "363:9:2",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 536,
                                    "src": "355:17:2",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 525,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "355:7:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "354:19:2"
                        },
                        "returnParameters": {
                            "id": 530,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "392:0:2"
                        },
                        "scope": 558,
                        "src": "333:112:2",
                        "stateMutability": "nonpayable",
                        "virtual": false,
                        "visibility": "public"
                    },
                    {
                        "body": {
                            "id": 556,
                            "nodeType": "Block",
                            "src": "506:118:2",
                            "statements": [
                                {
                                    "assignments": [
                                        545
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 545,
                                            "mutability": "mutable",
                                            "name": "upgraded",
                                            "nameLocation": "527:8:2",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 556,
                                            "src": "516:19:2",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_contract$_Migrations_$558",
                                                "typeString": "contract Migrations"
                                            },
                                            "typeName": {
                                                "id": 544,
                                                "nodeType": "UserDefinedTypeName",
                                                "pathNode": {
                                                    "id": 543,
                                                    "name": "Migrations",
                                                    "nodeType": "IdentifierPath",
                                                    "referencedDeclaration": 558,
                                                    "src": "516:10:2"
                                                },
                                                "referencedDeclaration": 558,
                                                "src": "516:10:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_contract$_Migrations_$558",
                                                    "typeString": "contract Migrations"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 549,
                                    "initialValue": {
                                        "arguments": [
                                            {
                                                "id": 547,
                                                "name": "newAddress",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 538,
                                                "src": "549:10:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                }
                                            ],
                                            "id": 546,
                                            "name": "Migrations",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 558,
                                            "src": "538:10:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_type$_t_contract$_Migrations_$558_$",
                                                "typeString": "type(contract Migrations)"
                                            }
                                        },
                                        "id": 548,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "typeConversion",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "538:22:2",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_contract$_Migrations_$558",
                                            "typeString": "contract Migrations"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "516:44:2"
                                },
                                {
                                    "expression": {
                                        "arguments": [
                                            {
                                                "id": 553,
                                                "name": "last_completed_migration",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 506,
                                                "src": "592:24:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            ],
                                            "expression": {
                                                "id": 550,
                                                "name": "upgraded",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 545,
                                                "src": "570:8:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_contract$_Migrations_$558",
                                                    "typeString": "contract Migrations"
                                                }
                                            },
                                            "id": 552,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "setCompleted",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": 536,
                                            "src": "570:21:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
                                                "typeString": "function (uint256) external"
                                            }
                                        },
                                        "id": 554,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "570:47:2",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_tuple$__$",
                                            "typeString": "tuple()"
                                        }
                                    },
                                    "id": 555,
                                    "nodeType": "ExpressionStatement",
                                    "src": "570:47:2"
                                }
                            ]
                        },
                        "functionSelector": "0900f010",
                        "id": 557,
                        "implemented": true,
                        "kind": "function",
                        "modifiers": [
                            {
                                "id": 541,
                                "kind": "modifierInvocation",
                                "modifierName": {
                                    "id": 540,
                                    "name": "restricted",
                                    "nodeType": "IdentifierPath",
                                    "referencedDeclaration": 524,
                                    "src": "495:10:2"
                                },
                                "nodeType": "ModifierInvocation",
                                "src": "495:10:2"
                            }
                        ],
                        "name": "upgrade",
                        "nameLocation": "460:7:2",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 539,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 538,
                                    "mutability": "mutable",
                                    "name": "newAddress",
                                    "nameLocation": "476:10:2",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 557,
                                    "src": "468:18:2",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_address",
                                        "typeString": "address"
                                    },
                                    "typeName": {
                                        "id": 537,
                                        "name": "address",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "468:7:2",
                                        "stateMutability": "nonpayable",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "467:20:2"
                        },
                        "returnParameters": {
                            "id": 542,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "506:0:2"
                        },
                        "scope": 558,
                        "src": "451:173:2",
                        "stateMutability": "nonpayable",
                        "virtual": false,
                        "visibility": "public"
                    }
                ],
                "scope": 559,
                "src": "57:569:2",
                "usedErrors": []
            }
        ],
        "src": "0:626:2"
    },
    "legacyAST": {
        "absolutePath": "/Users/alexf/gsn2/packages/contracts/solpp/Migrations.sol",
        "exportedSymbols": {
            "Migrations": [
                558
            ]
        },
        "id": 559,
        "license": "MIT",
        "nodeType": "SourceUnit",
        "nodes": [
            {
                "id": 502,
                "literals": [
                    "solidity",
                    "^",
                    "0.8",
                    ".0"
                ],
                "nodeType": "PragmaDirective",
                "src": "0:23:2"
            },
            {
                "abstract": false,
                "baseContracts": [],
                "contractDependencies": [],
                "contractKind": "contract",
                "fullyImplemented": true,
                "id": 558,
                "linearizedBaseContracts": [
                    558
                ],
                "name": "Migrations",
                "nameLocation": "66:10:2",
                "nodeType": "ContractDefinition",
                "nodes": [
                    {
                        "constant": false,
                        "functionSelector": "8da5cb5b",
                        "id": 504,
                        "mutability": "mutable",
                        "name": "owner",
                        "nameLocation": "98:5:2",
                        "nodeType": "VariableDeclaration",
                        "scope": 558,
                        "src": "83:20:2",
                        "stateVariable": true,
                        "storageLocation": "default",
                        "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                        },
                        "typeName": {
                            "id": 503,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "83:7:2",
                            "stateMutability": "nonpayable",
                            "typeDescriptions": {
                                "typeIdentifier": "t_address",
                                "typeString": "address"
                            }
                        },
                        "visibility": "public"
                    },
                    {
                        "constant": false,
                        "functionSelector": "445df0ac",
                        "id": 506,
                        "mutability": "mutable",
                        "name": "last_completed_migration",
                        "nameLocation": "176:24:2",
                        "nodeType": "VariableDeclaration",
                        "scope": 558,
                        "src": "161:39:2",
                        "stateVariable": true,
                        "storageLocation": "default",
                        "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                        },
                        "typeName": {
                            "id": 505,
                            "name": "uint256",
                            "nodeType": "ElementaryTypeName",
                            "src": "161:7:2",
                            "typeDescriptions": {
                                "typeIdentifier": "t_uint256",
                                "typeString": "uint256"
                            }
                        },
                        "visibility": "public"
                    },
                    {
                        "body": {
                            "id": 514,
                            "nodeType": "Block",
                            "src": "221:35:2",
                            "statements": [
                                {
                                    "expression": {
                                        "id": 512,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "leftHandSide": {
                                            "id": 509,
                                            "name": "owner",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 504,
                                            "src": "231:5:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "nodeType": "Assignment",
                                        "operator": "=",
                                        "rightHandSide": {
                                            "expression": {
                                                "id": 510,
                                                "name": "msg",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 4294967281,
                                                "src": "239:3:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_magic_message",
                                                    "typeString": "msg"
                                                }
                                            },
                                            "id": 511,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "src": "239:10:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "src": "231:18:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        }
                                    },
                                    "id": 513,
                                    "nodeType": "ExpressionStatement",
                                    "src": "231:18:2"
                                }
                            ]
                        },
                        "id": 515,
                        "implemented": true,
                        "kind": "constructor",
                        "modifiers": [],
                        "name": "",
                        "nameLocation": "-1:-1:-1",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 507,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "218:2:2"
                        },
                        "returnParameters": {
                            "id": 508,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "221:0:2"
                        },
                        "scope": 558,
                        "src": "207:49:2",
                        "stateMutability": "nonpayable",
                        "virtual": false,
                        "visibility": "public"
                    },
                    {
                        "body": {
                            "id": 523,
                            "nodeType": "Block",
                            "src": "284:43:2",
                            "statements": [
                                {
                                    "condition": {
                                        "commonType": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        },
                                        "id": 520,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "leftExpression": {
                                            "expression": {
                                                "id": 517,
                                                "name": "msg",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 4294967281,
                                                "src": "298:3:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_magic_message",
                                                    "typeString": "msg"
                                                }
                                            },
                                            "id": 518,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "sender",
                                            "nodeType": "MemberAccess",
                                            "src": "298:10:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "nodeType": "BinaryOperation",
                                        "operator": "==",
                                        "rightExpression": {
                                            "id": 519,
                                            "name": "owner",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 504,
                                            "src": "312:5:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_address",
                                                "typeString": "address"
                                            }
                                        },
                                        "src": "298:19:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_bool",
                                            "typeString": "bool"
                                        }
                                    },
                                    "id": 522,
                                    "nodeType": "IfStatement",
                                    "src": "294:26:2",
                                    "trueBody": {
                                        "id": 521,
                                        "nodeType": "PlaceholderStatement",
                                        "src": "319:1:2"
                                    }
                                }
                            ]
                        },
                        "id": 524,
                        "name": "restricted",
                        "nameLocation": "271:10:2",
                        "nodeType": "ModifierDefinition",
                        "parameters": {
                            "id": 516,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "281:2:2"
                        },
                        "src": "262:65:2",
                        "virtual": false,
                        "visibility": "internal"
                    },
                    {
                        "body": {
                            "id": 535,
                            "nodeType": "Block",
                            "src": "392:53:2",
                            "statements": [
                                {
                                    "expression": {
                                        "id": 533,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "lValueRequested": false,
                                        "leftHandSide": {
                                            "id": 531,
                                            "name": "last_completed_migration",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 506,
                                            "src": "402:24:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            }
                                        },
                                        "nodeType": "Assignment",
                                        "operator": "=",
                                        "rightHandSide": {
                                            "id": 532,
                                            "name": "completed",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 526,
                                            "src": "429:9:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_uint256",
                                                "typeString": "uint256"
                                            }
                                        },
                                        "src": "402:36:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "id": 534,
                                    "nodeType": "ExpressionStatement",
                                    "src": "402:36:2"
                                }
                            ]
                        },
                        "functionSelector": "fdacd576",
                        "id": 536,
                        "implemented": true,
                        "kind": "function",
                        "modifiers": [
                            {
                                "id": 529,
                                "kind": "modifierInvocation",
                                "modifierName": {
                                    "id": 528,
                                    "name": "restricted",
                                    "nodeType": "IdentifierPath",
                                    "referencedDeclaration": 524,
                                    "src": "381:10:2"
                                },
                                "nodeType": "ModifierInvocation",
                                "src": "381:10:2"
                            }
                        ],
                        "name": "setCompleted",
                        "nameLocation": "342:12:2",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 527,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 526,
                                    "mutability": "mutable",
                                    "name": "completed",
                                    "nameLocation": "363:9:2",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 536,
                                    "src": "355:17:2",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_uint256",
                                        "typeString": "uint256"
                                    },
                                    "typeName": {
                                        "id": 525,
                                        "name": "uint256",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "355:7:2",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_uint256",
                                            "typeString": "uint256"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "354:19:2"
                        },
                        "returnParameters": {
                            "id": 530,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "392:0:2"
                        },
                        "scope": 558,
                        "src": "333:112:2",
                        "stateMutability": "nonpayable",
                        "virtual": false,
                        "visibility": "public"
                    },
                    {
                        "body": {
                            "id": 556,
                            "nodeType": "Block",
                            "src": "506:118:2",
                            "statements": [
                                {
                                    "assignments": [
                                        545
                                    ],
                                    "declarations": [
                                        {
                                            "constant": false,
                                            "id": 545,
                                            "mutability": "mutable",
                                            "name": "upgraded",
                                            "nameLocation": "527:8:2",
                                            "nodeType": "VariableDeclaration",
                                            "scope": 556,
                                            "src": "516:19:2",
                                            "stateVariable": false,
                                            "storageLocation": "default",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_contract$_Migrations_$558",
                                                "typeString": "contract Migrations"
                                            },
                                            "typeName": {
                                                "id": 544,
                                                "nodeType": "UserDefinedTypeName",
                                                "pathNode": {
                                                    "id": 543,
                                                    "name": "Migrations",
                                                    "nodeType": "IdentifierPath",
                                                    "referencedDeclaration": 558,
                                                    "src": "516:10:2"
                                                },
                                                "referencedDeclaration": 558,
                                                "src": "516:10:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_contract$_Migrations_$558",
                                                    "typeString": "contract Migrations"
                                                }
                                            },
                                            "visibility": "internal"
                                        }
                                    ],
                                    "id": 549,
                                    "initialValue": {
                                        "arguments": [
                                            {
                                                "id": 547,
                                                "name": "newAddress",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 538,
                                                "src": "549:10:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_address",
                                                    "typeString": "address"
                                                }
                                            ],
                                            "id": 546,
                                            "name": "Migrations",
                                            "nodeType": "Identifier",
                                            "overloadedDeclarations": [],
                                            "referencedDeclaration": 558,
                                            "src": "538:10:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_type$_t_contract$_Migrations_$558_$",
                                                "typeString": "type(contract Migrations)"
                                            }
                                        },
                                        "id": 548,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "typeConversion",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "538:22:2",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_contract$_Migrations_$558",
                                            "typeString": "contract Migrations"
                                        }
                                    },
                                    "nodeType": "VariableDeclarationStatement",
                                    "src": "516:44:2"
                                },
                                {
                                    "expression": {
                                        "arguments": [
                                            {
                                                "id": 553,
                                                "name": "last_completed_migration",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 506,
                                                "src": "592:24:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            }
                                        ],
                                        "expression": {
                                            "argumentTypes": [
                                                {
                                                    "typeIdentifier": "t_uint256",
                                                    "typeString": "uint256"
                                                }
                                            ],
                                            "expression": {
                                                "id": 550,
                                                "name": "upgraded",
                                                "nodeType": "Identifier",
                                                "overloadedDeclarations": [],
                                                "referencedDeclaration": 545,
                                                "src": "570:8:2",
                                                "typeDescriptions": {
                                                    "typeIdentifier": "t_contract$_Migrations_$558",
                                                    "typeString": "contract Migrations"
                                                }
                                            },
                                            "id": 552,
                                            "isConstant": false,
                                            "isLValue": false,
                                            "isPure": false,
                                            "lValueRequested": false,
                                            "memberName": "setCompleted",
                                            "nodeType": "MemberAccess",
                                            "referencedDeclaration": 536,
                                            "src": "570:21:2",
                                            "typeDescriptions": {
                                                "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
                                                "typeString": "function (uint256) external"
                                            }
                                        },
                                        "id": 554,
                                        "isConstant": false,
                                        "isLValue": false,
                                        "isPure": false,
                                        "kind": "functionCall",
                                        "lValueRequested": false,
                                        "names": [],
                                        "nodeType": "FunctionCall",
                                        "src": "570:47:2",
                                        "tryCall": false,
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_tuple$__$",
                                            "typeString": "tuple()"
                                        }
                                    },
                                    "id": 555,
                                    "nodeType": "ExpressionStatement",
                                    "src": "570:47:2"
                                }
                            ]
                        },
                        "functionSelector": "0900f010",
                        "id": 557,
                        "implemented": true,
                        "kind": "function",
                        "modifiers": [
                            {
                                "id": 541,
                                "kind": "modifierInvocation",
                                "modifierName": {
                                    "id": 540,
                                    "name": "restricted",
                                    "nodeType": "IdentifierPath",
                                    "referencedDeclaration": 524,
                                    "src": "495:10:2"
                                },
                                "nodeType": "ModifierInvocation",
                                "src": "495:10:2"
                            }
                        ],
                        "name": "upgrade",
                        "nameLocation": "460:7:2",
                        "nodeType": "FunctionDefinition",
                        "parameters": {
                            "id": 539,
                            "nodeType": "ParameterList",
                            "parameters": [
                                {
                                    "constant": false,
                                    "id": 538,
                                    "mutability": "mutable",
                                    "name": "newAddress",
                                    "nameLocation": "476:10:2",
                                    "nodeType": "VariableDeclaration",
                                    "scope": 557,
                                    "src": "468:18:2",
                                    "stateVariable": false,
                                    "storageLocation": "default",
                                    "typeDescriptions": {
                                        "typeIdentifier": "t_address",
                                        "typeString": "address"
                                    },
                                    "typeName": {
                                        "id": 537,
                                        "name": "address",
                                        "nodeType": "ElementaryTypeName",
                                        "src": "468:7:2",
                                        "stateMutability": "nonpayable",
                                        "typeDescriptions": {
                                            "typeIdentifier": "t_address",
                                            "typeString": "address"
                                        }
                                    },
                                    "visibility": "internal"
                                }
                            ],
                            "src": "467:20:2"
                        },
                        "returnParameters": {
                            "id": 542,
                            "nodeType": "ParameterList",
                            "parameters": [],
                            "src": "506:0:2"
                        },
                        "scope": 558,
                        "src": "451:173:2",
                        "stateMutability": "nonpayable",
                        "virtual": false,
                        "visibility": "public"
                    }
                ],
                "scope": 559,
                "src": "57:569:2",
                "usedErrors": []
            }
        ],
        "src": "0:626:2"
    },
    "compiler": {
        "name": "solc",
        "version": "0.8.7+commit.e28d00a7.Emscripten.clang"
    },
    "networks": {},
    "schemaVersion": "3.1.0",
    "updatedAt": "2023-03-16T16:54:15.130Z",
    "devdoc": {
        "kind": "dev",
        "methods": {},
        "version": 1
    },
    "userdoc": {
        "kind": "user",
        "methods": {},
        "version": 1
    }
}
