2018-05-04 14:04:04 +00:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a723058206ae04dab7842a035dafed67c3a7c6e4dba46f3f40b8fa0fd9a934fb2efadc85b0029",
|
|
|
|
"deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a723058206ae04dab7842a035dafed67c3a7c6e4dba46f3f40b8fa0fd9a934fb2efadc85b0029",
|
|
|
|
"sourceMap": "25:580:7:-;;;191:76;8:9:-1;5:2;;;30:1;27;20:12;5:2;191:76:7;250:10;242:5;;:18;;;;;;;;;;;;;;;;;;25:580;;;;;;",
|
|
|
|
"deployedSourceMap": "25:580:7:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;408:195;;8:9:-1;5:2;;;30:1;27;20:12;5:2;408:195:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;77:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77:36:7;;;;;;;;;;;;;;;;;;;;;;;51:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51:20:7;;;;;;;;;;;;;;;;;;;;;;;;;;;273:129;;8:9:-1;5:2;;;30:1;27;20:12;5:2;273:129:7;;;;;;;;;;;;;;;;;;;;;;;;;;408:195;494:19;170:5;;;;;;;;;;;156:19;;:10;:19;;;152:26;;;527:11;494:45;;549:8;:21;;;571:24;;549:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;549:47:7;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;549:47:7;;;;152:26;408:195;;:::o;77:36::-;;;;:::o;51:20::-;;;;;;;;;;;;;:::o;273:129::-;170:5;;;;;;;;;;;156:19;;:10;:19;;;152:26;;;386:9;359:24;:36;;;;152:26;273:129;:::o",
|
2018-05-04 14:04:04 +00:00
|
|
|
"source": "pragma solidity ^0.4.4;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations()\n public\n {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed)\n public\n restricted\n {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address)\n public\n restricted\n {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n",
|
|
|
|
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Migrations.sol",
|
|
|
|
"ast": {
|
|
|
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Migrations.sol",
|
|
|
|
"exportedSymbols": {
|
|
|
|
"Migrations": [
|
2018-05-10 11:12:13 +00:00
|
|
|
836
|
2018-05-04 14:04:04 +00:00
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 837,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes": [
|
|
|
|
{
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 781,
|
2018-05-04 14:04:04 +00:00
|
|
|
"literals": [
|
|
|
|
"solidity",
|
|
|
|
"^",
|
|
|
|
"0.4",
|
|
|
|
".4"
|
|
|
|
],
|
|
|
|
"nodeType": "PragmaDirective",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "0:23:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"baseContracts": [],
|
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"documentation": null,
|
|
|
|
"fullyImplemented": true,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 836,
|
2018-05-04 14:04:04 +00:00
|
|
|
"linearizedBaseContracts": [
|
2018-05-10 11:12:13 +00:00
|
|
|
836
|
2018-05-04 14:04:04 +00:00
|
|
|
],
|
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 783,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "owner",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "51:20:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": true,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 782,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "address",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "51:7:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 785,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "last_completed_migration",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "77:36:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": true,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 784,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "77:4:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 793,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "142:43:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"condition": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"commonType": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 790,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"leftExpression": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 787,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "msg",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 2465,
|
|
|
|
"src": "156:3:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_magic_message",
|
|
|
|
"typeString": "msg"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 788,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"memberName": "sender",
|
|
|
|
"nodeType": "MemberAccess",
|
|
|
|
"referencedDeclaration": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "156:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "BinaryOperation",
|
|
|
|
"operator": "==",
|
|
|
|
"rightExpression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 789,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "owner",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 783,
|
|
|
|
"src": "170:5:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "156:19:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_bool",
|
|
|
|
"typeString": "bool"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"falseBody": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 792,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "IfStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "152:26:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"trueBody": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 791,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "PlaceholderStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "177:1:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 794,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "restricted",
|
|
|
|
"nodeType": "ModifierDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 786,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "139:2:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "120:65:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"visibility": "internal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 802,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "232:35:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 800,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"leftHandSide": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 797,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "owner",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 783,
|
|
|
|
"src": "242:5:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "Assignment",
|
|
|
|
"operator": "=",
|
|
|
|
"rightHandSide": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 798,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "msg",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 2465,
|
|
|
|
"src": "250:3:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_magic_message",
|
|
|
|
"typeString": "msg"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 799,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"memberName": "sender",
|
|
|
|
"nodeType": "MemberAccess",
|
|
|
|
"referencedDeclaration": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "250:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "242:18:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 801,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "242:18:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 803,
|
2018-05-04 14:04:04 +00:00
|
|
|
"implemented": true,
|
|
|
|
"isConstructor": true,
|
|
|
|
"isDeclaredConst": false,
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 795,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "210:2:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"payable": false,
|
|
|
|
"returnParameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 796,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "232:0:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "191:76:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"superFunction": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 814,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "349:53:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 812,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"leftHandSide": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 810,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "last_completed_migration",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 785,
|
|
|
|
"src": "359:24:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "Assignment",
|
|
|
|
"operator": "=",
|
|
|
|
"rightHandSide": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 811,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "completed",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 805,
|
|
|
|
"src": "386:9:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "359:36:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 813,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "359:36:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 815,
|
2018-05-04 14:04:04 +00:00
|
|
|
"implemented": true,
|
|
|
|
"isConstructor": false,
|
|
|
|
"isDeclaredConst": false,
|
|
|
|
"modifiers": [
|
|
|
|
{
|
2018-05-10 11:12:13 +00:00
|
|
|
"arguments": null,
|
|
|
|
"id": 808,
|
2018-05-04 14:04:04 +00:00
|
|
|
"modifierName": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 807,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "restricted",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 794,
|
|
|
|
"src": "334:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_modifier$__$",
|
|
|
|
"typeString": "modifier ()"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "ModifierInvocation",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "334:10:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "setCompleted",
|
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 806,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 805,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "completed",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 815,
|
|
|
|
"src": "295:14:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 804,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "295:4:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "294:16:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"payable": false,
|
|
|
|
"returnParameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 809,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "349:0:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "273:129:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"superFunction": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 834,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "484:119:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"assignments": [
|
2018-05-10 11:12:13 +00:00
|
|
|
823
|
2018-05-04 14:04:04 +00:00
|
|
|
],
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 823,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "upgraded",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 835,
|
|
|
|
"src": "494:19:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"contractScope": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 822,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "UserDefinedTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 836,
|
|
|
|
"src": "494:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 827,
|
2018-05-04 14:04:04 +00:00
|
|
|
"initialValue": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 825,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "new_address",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 817,
|
|
|
|
"src": "527:11:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": [
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 824,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 836,
|
|
|
|
"src": "516:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_type$_t_contract$_Migrations_$836_$",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "type(contract Migrations)"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 826,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"kind": "typeConversion",
|
|
|
|
"lValueRequested": false,
|
|
|
|
"names": [],
|
|
|
|
"nodeType": "FunctionCall",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "516:23:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "VariableDeclarationStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "494:45:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 831,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "last_completed_migration",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 785,
|
|
|
|
"src": "571:24:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": [
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 828,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "upgraded",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 823,
|
|
|
|
"src": "549:8:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 830,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"memberName": "setCompleted",
|
|
|
|
"nodeType": "MemberAccess",
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 815,
|
|
|
|
"src": "549:21:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
|
|
|
|
"typeString": "function (uint256) external"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 832,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"kind": "functionCall",
|
|
|
|
"lValueRequested": false,
|
|
|
|
"names": [],
|
|
|
|
"nodeType": "FunctionCall",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "549:47:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_tuple$__$",
|
|
|
|
"typeString": "tuple()"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 833,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "549:47:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 835,
|
2018-05-04 14:04:04 +00:00
|
|
|
"implemented": true,
|
|
|
|
"isConstructor": false,
|
|
|
|
"isDeclaredConst": false,
|
|
|
|
"modifiers": [
|
|
|
|
{
|
2018-05-10 11:12:13 +00:00
|
|
|
"arguments": null,
|
|
|
|
"id": 820,
|
2018-05-04 14:04:04 +00:00
|
|
|
"modifierName": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 819,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "restricted",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 794,
|
|
|
|
"src": "469:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_modifier$__$",
|
|
|
|
"typeString": "modifier ()"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "ModifierInvocation",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "469:10:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "upgrade",
|
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 818,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 817,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "new_address",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 835,
|
|
|
|
"src": "425:19:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 816,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "address",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "425:7:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "424:21:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"payable": false,
|
|
|
|
"returnParameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 821,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "484:0:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "408:195:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"superFunction": null,
|
|
|
|
"visibility": "public"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 837,
|
|
|
|
"src": "25:580:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "0:606:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"legacyAST": {
|
|
|
|
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Migrations.sol",
|
|
|
|
"exportedSymbols": {
|
|
|
|
"Migrations": [
|
2018-05-10 11:12:13 +00:00
|
|
|
836
|
2018-05-04 14:04:04 +00:00
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 837,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "SourceUnit",
|
|
|
|
"nodes": [
|
|
|
|
{
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 781,
|
2018-05-04 14:04:04 +00:00
|
|
|
"literals": [
|
|
|
|
"solidity",
|
|
|
|
"^",
|
|
|
|
"0.4",
|
|
|
|
".4"
|
|
|
|
],
|
|
|
|
"nodeType": "PragmaDirective",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "0:23:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"baseContracts": [],
|
|
|
|
"contractDependencies": [],
|
|
|
|
"contractKind": "contract",
|
|
|
|
"documentation": null,
|
|
|
|
"fullyImplemented": true,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 836,
|
2018-05-04 14:04:04 +00:00
|
|
|
"linearizedBaseContracts": [
|
2018-05-10 11:12:13 +00:00
|
|
|
836
|
2018-05-04 14:04:04 +00:00
|
|
|
],
|
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "ContractDefinition",
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 783,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "owner",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "51:20:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": true,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 782,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "address",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "51:7:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 785,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "last_completed_migration",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "77:36:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": true,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 784,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "77:4:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 793,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "142:43:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"condition": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"commonType": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 790,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"leftExpression": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 787,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "msg",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 2465,
|
|
|
|
"src": "156:3:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_magic_message",
|
|
|
|
"typeString": "msg"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 788,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"memberName": "sender",
|
|
|
|
"nodeType": "MemberAccess",
|
|
|
|
"referencedDeclaration": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "156:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "BinaryOperation",
|
|
|
|
"operator": "==",
|
|
|
|
"rightExpression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 789,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "owner",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 783,
|
|
|
|
"src": "170:5:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "156:19:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_bool",
|
|
|
|
"typeString": "bool"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"falseBody": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 792,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "IfStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "152:26:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"trueBody": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 791,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "PlaceholderStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "177:1:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 794,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "restricted",
|
|
|
|
"nodeType": "ModifierDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 786,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "139:2:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "120:65:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"visibility": "internal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 802,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "232:35:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 800,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"leftHandSide": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 797,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "owner",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 783,
|
|
|
|
"src": "242:5:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "Assignment",
|
|
|
|
"operator": "=",
|
|
|
|
"rightHandSide": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 798,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "msg",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 2465,
|
|
|
|
"src": "250:3:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_magic_message",
|
|
|
|
"typeString": "msg"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 799,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"memberName": "sender",
|
|
|
|
"nodeType": "MemberAccess",
|
|
|
|
"referencedDeclaration": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "250:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "242:18:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 801,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "242:18:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 803,
|
2018-05-04 14:04:04 +00:00
|
|
|
"implemented": true,
|
|
|
|
"isConstructor": true,
|
|
|
|
"isDeclaredConst": false,
|
|
|
|
"modifiers": [],
|
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 795,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "210:2:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"payable": false,
|
|
|
|
"returnParameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 796,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "232:0:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "191:76:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"superFunction": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 814,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "349:53:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 812,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"leftHandSide": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 810,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "last_completed_migration",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 785,
|
|
|
|
"src": "359:24:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "Assignment",
|
|
|
|
"operator": "=",
|
|
|
|
"rightHandSide": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 811,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "completed",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 805,
|
|
|
|
"src": "386:9:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "359:36:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 813,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "359:36:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 815,
|
2018-05-04 14:04:04 +00:00
|
|
|
"implemented": true,
|
|
|
|
"isConstructor": false,
|
|
|
|
"isDeclaredConst": false,
|
|
|
|
"modifiers": [
|
|
|
|
{
|
2018-05-10 11:12:13 +00:00
|
|
|
"arguments": null,
|
|
|
|
"id": 808,
|
2018-05-04 14:04:04 +00:00
|
|
|
"modifierName": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 807,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "restricted",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 794,
|
|
|
|
"src": "334:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_modifier$__$",
|
|
|
|
"typeString": "modifier ()"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "ModifierInvocation",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "334:10:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "setCompleted",
|
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 806,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 805,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "completed",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 815,
|
|
|
|
"src": "295:14:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 804,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "uint",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "295:4:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "294:16:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"payable": false,
|
|
|
|
"returnParameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 809,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "349:0:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "273:129:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"superFunction": null,
|
|
|
|
"visibility": "public"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"body": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 834,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "Block",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "484:119:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"statements": [
|
|
|
|
{
|
|
|
|
"assignments": [
|
2018-05-10 11:12:13 +00:00
|
|
|
823
|
2018-05-04 14:04:04 +00:00
|
|
|
],
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 823,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "upgraded",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 835,
|
|
|
|
"src": "494:19:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"contractScope": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 822,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "UserDefinedTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 836,
|
|
|
|
"src": "494:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 827,
|
2018-05-04 14:04:04 +00:00
|
|
|
"initialValue": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 825,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "new_address",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 817,
|
|
|
|
"src": "527:11:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": [
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 824,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "Migrations",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 836,
|
|
|
|
"src": "516:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_type$_t_contract$_Migrations_$836_$",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "type(contract Migrations)"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 826,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"kind": "typeConversion",
|
|
|
|
"lValueRequested": false,
|
|
|
|
"names": [],
|
|
|
|
"nodeType": "FunctionCall",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "516:23:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "VariableDeclarationStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "494:45:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 831,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "last_completed_migration",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 785,
|
|
|
|
"src": "571:24:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": [
|
|
|
|
{
|
|
|
|
"typeIdentifier": "t_uint256",
|
|
|
|
"typeString": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"expression": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 828,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "upgraded",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 823,
|
|
|
|
"src": "549:8:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"typeIdentifier": "t_contract$_Migrations_$836",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeString": "contract Migrations"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 830,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"lValueRequested": false,
|
|
|
|
"memberName": "setCompleted",
|
|
|
|
"nodeType": "MemberAccess",
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 815,
|
|
|
|
"src": "549:21:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
|
|
|
|
"typeString": "function (uint256) external"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 832,
|
2018-05-04 14:04:04 +00:00
|
|
|
"isConstant": false,
|
|
|
|
"isLValue": false,
|
|
|
|
"isPure": false,
|
|
|
|
"kind": "functionCall",
|
|
|
|
"lValueRequested": false,
|
|
|
|
"names": [],
|
|
|
|
"nodeType": "FunctionCall",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "549:47:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_tuple$__$",
|
|
|
|
"typeString": "tuple()"
|
|
|
|
}
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 833,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ExpressionStatement",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "549:47:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"documentation": null,
|
|
|
|
"id": 835,
|
2018-05-04 14:04:04 +00:00
|
|
|
"implemented": true,
|
|
|
|
"isConstructor": false,
|
|
|
|
"isDeclaredConst": false,
|
|
|
|
"modifiers": [
|
|
|
|
{
|
2018-05-10 11:12:13 +00:00
|
|
|
"arguments": null,
|
|
|
|
"id": 820,
|
2018-05-04 14:04:04 +00:00
|
|
|
"modifierName": {
|
|
|
|
"argumentTypes": null,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 819,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "restricted",
|
|
|
|
"nodeType": "Identifier",
|
|
|
|
"overloadedDeclarations": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"referencedDeclaration": 794,
|
|
|
|
"src": "469:10:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_modifier$__$",
|
|
|
|
"typeString": "modifier ()"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodeType": "ModifierInvocation",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "469:10:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "upgrade",
|
|
|
|
"nodeType": "FunctionDefinition",
|
|
|
|
"parameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 818,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"constant": false,
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 817,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "new_address",
|
|
|
|
"nodeType": "VariableDeclaration",
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 835,
|
|
|
|
"src": "425:19:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateVariable": false,
|
|
|
|
"storageLocation": "default",
|
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
},
|
|
|
|
"typeName": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 816,
|
2018-05-04 14:04:04 +00:00
|
|
|
"name": "address",
|
|
|
|
"nodeType": "ElementaryTypeName",
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "425:7:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"typeDescriptions": {
|
|
|
|
"typeIdentifier": "t_address",
|
|
|
|
"typeString": "address"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": null,
|
|
|
|
"visibility": "internal"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "424:21:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"payable": false,
|
|
|
|
"returnParameters": {
|
2018-05-10 11:12:13 +00:00
|
|
|
"id": 821,
|
2018-05-04 14:04:04 +00:00
|
|
|
"nodeType": "ParameterList",
|
|
|
|
"parameters": [],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "484:0:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 836,
|
|
|
|
"src": "408:195:7",
|
2018-05-04 14:04:04 +00:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"superFunction": null,
|
|
|
|
"visibility": "public"
|
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"scope": 837,
|
|
|
|
"src": "25:580:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
],
|
2018-05-10 11:12:13 +00:00
|
|
|
"src": "0:606:7"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"compiler": {
|
|
|
|
"name": "solc",
|
2018-05-10 11:12:13 +00:00
|
|
|
"version": "0.4.23+commit.124ca40d.Emscripten.clang"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"networks": {
|
|
|
|
"4": {
|
|
|
|
"events": {},
|
|
|
|
"links": {},
|
2018-05-10 11:12:13 +00:00
|
|
|
"address": "0xcf171a1fe7e24ac529ec0436cd51543469488a30",
|
|
|
|
"transactionHash": "0x52b1aad2d523bc57e2729516009b2dc46c58b5287c72ca9fa2faf949ad3ed32a"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
|
|
|
"42": {
|
|
|
|
"events": {},
|
|
|
|
"links": {},
|
2018-05-10 11:12:13 +00:00
|
|
|
"address": "0x304f68cf0ca47b08d6bbf23c6f82d92bacf5378e",
|
|
|
|
"transactionHash": "0xa1edbc493e7f59db46fe904a775189a9fcdca9efabeea55db94f09fd64d37461"
|
2018-05-04 14:04:04 +00:00
|
|
|
},
|
2018-05-10 11:12:13 +00:00
|
|
|
"1525950336085": {
|
2018-05-04 14:04:04 +00:00
|
|
|
"events": {},
|
|
|
|
"links": {},
|
2018-05-10 11:12:13 +00:00
|
|
|
"address": "0xb97a46b50b9e38d540e9701d3d4afe71a65c09df",
|
|
|
|
"transactionHash": "0x137111f15934455430bea53bd8a6721561285af6a431f174f090257877635ab6"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"schemaVersion": "2.0.0",
|
2018-05-10 11:12:13 +00:00
|
|
|
"updatedAt": "2018-05-10T11:07:04.707Z"
|
2018-05-04 14:04:04 +00:00
|
|
|
}
|