@ensdomains/ens
Advanced tools
Comparing version 0.4.5 to 0.5.0
@@ -8,3 +8,2 @@ { | ||
{ | ||
"internalType": "address payable", | ||
"name": "newOwner", | ||
@@ -24,3 +23,2 @@ "type": "address" | ||
{ | ||
"internalType": "address", | ||
"name": "newRegistrar", | ||
@@ -40,3 +38,2 @@ "type": "address" | ||
{ | ||
"internalType": "uint256", | ||
"name": "newValue", | ||
@@ -46,3 +43,2 @@ "type": "uint256" | ||
{ | ||
"internalType": "bool", | ||
"name": "throwOnFailure", | ||
@@ -62,3 +58,2 @@ "type": "bool" | ||
{ | ||
"internalType": "uint256", | ||
"name": "refundRatio", | ||
@@ -89,3 +84,2 @@ "type": "uint256" | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
@@ -105,3 +99,2 @@ "type": "address" | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
@@ -121,3 +114,2 @@ "type": "address" | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
@@ -137,3 +129,2 @@ "type": "uint256" | ||
{ | ||
"internalType": "uint256", | ||
"name": "", | ||
@@ -148,3 +139,3 @@ "type": "uint256" | ||
], | ||
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"refundRatio\",\"type\":\"uint256\"}],\"name\":\"closeDeed\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"creationDate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"destroyDeed\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"previousOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"throwOnFailure\",\"type\":\"bool\"}],\"name\":\"setBalance\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newRegistrar\",\"type\":\"address\"}],\"name\":\"setRegistrar\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"value\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/makoto/work/ens/ens/contracts/Deed.sol\":\"Deed\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/makoto/work/ens/ens/contracts/Deed.sol\":{\"keccak256\":\"0x7b4abd2f65e2e093743077b899d0fb4952627ad7ff6104b840f9869f5baa5e96\",\"urls\":[\"bzz-raw://d72dc40eb83ded3cca64d6c1b9958f665f4cd61115fed4d32dfd62d0c6ded0fc\",\"dweb:/ipfs/Qmdkef7QyeJDF96ToptWRWroYYuD8XjCvrtxy46dA62iA2\"]}},\"version\":1}", | ||
"metadata": "", | ||
"bytecode": "0x", | ||
@@ -155,5 +146,5 @@ "deployedBytecode": "0x", | ||
"source": "pragma solidity >=0.4.24;\n\ninterface Deed {\n\n function setOwner(address payable newOwner) external;\n function setRegistrar(address newRegistrar) external;\n function setBalance(uint newValue, bool throwOnFailure) external;\n function closeDeed(uint refundRatio) external;\n function destroyDeed() external;\n\n function owner() external view returns (address);\n function previousOwner() external view returns (address);\n function value() external view returns (uint);\n function creationDate() external view returns (uint);\n\n}\n", | ||
"sourcePath": "/Users/makoto/work/ens/ens/contracts/Deed.sol", | ||
"sourcePath": "/home/user/Dropbox/projects/ens/contracts/Deed.sol", | ||
"ast": { | ||
"absolutePath": "/Users/makoto/work/ens/ens/contracts/Deed.sol", | ||
"absolutePath": "/home/user/Dropbox/projects/ens/contracts/Deed.sol", | ||
"exportedSymbols": { | ||
@@ -688,3 +679,3 @@ "Deed": [ | ||
"legacyAST": { | ||
"absolutePath": "/Users/makoto/work/ens/ens/contracts/Deed.sol", | ||
"absolutePath": "/home/user/Dropbox/projects/ens/contracts/Deed.sol", | ||
"exportedSymbols": { | ||
@@ -1220,7 +1211,7 @@ "Deed": [ | ||
"name": "solc", | ||
"version": "0.5.16+commit.9c3226ce.Emscripten.clang" | ||
"version": "0.5.0+commit.1d4f565a.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schemaVersion": "3.2.0", | ||
"updatedAt": "2020-06-23T14:47:43.683Z", | ||
"schemaVersion": "3.0.9", | ||
"updatedAt": "2020-02-10T18:50:30.535Z", | ||
"devdoc": { | ||
@@ -1227,0 +1218,0 @@ "methods": {} |
@@ -6,3 +6,2 @@ { | ||
"inputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -12,3 +11,2 @@ "type": "constructor" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -23,3 +21,2 @@ "name": "last_completed_migration", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -29,3 +26,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -40,3 +36,2 @@ "name": "owner", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -46,3 +41,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -57,3 +51,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -63,3 +56,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -74,3 +66,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -80,39 +71,48 @@ "type": "function" | ||
], | ||
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"new_address\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{},\"notice\":\"Truffle migration helper contract\"}},\"settings\":{\"compilationTarget\":{\"/Users/makoto/work/ens/ens/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/makoto/work/ens/ens/contracts/Migrations.sol\":{\"keccak256\":\"0xa54feb67dc353bfc4e74918a3b3d9a1055df356fffb1678e7b44fbf9bec20e98\",\"urls\":[\"bzz-raw://2d58fa2194e9a4040607722b04901ac7f796e6797a85fbc4125ce71769dc0a44\",\"dweb:/ipfs/Qma13aT4gyLp1DLs3H7DQKNJb6DiAbowQud4CWaepa7H1i\"]}},\"version\":1}", | ||
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102b7806100606000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100955780638da5cb5b146100b3578063fdacd576146100fd575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061012b565b005b61009d6101f7565b6040518082815260200191505060405180910390f35b6100bb6101fd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101296004803603602081101561011357600080fd5b8101908080359060200190929190505050610222565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101f45760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101da57600080fd5b505af11580156101ee573d6000803e3d6000fd5b50505050505b50565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561027f57806001819055505b5056fea265627a7a7231582096a12987f4b6d46467eeca35cbd0c245fa64fb479e6a2a78b442ffadb376b60c64736f6c63430005100032", | ||
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100955780638da5cb5b146100b3578063fdacd576146100fd575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061012b565b005b61009d6101f7565b6040518082815260200191505060405180910390f35b6100bb6101fd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101296004803603602081101561011357600080fd5b8101908080359060200190929190505050610222565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101f45760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101da57600080fd5b505af11580156101ee573d6000803e3d6000fd5b50505050505b50565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561027f57806001819055505b5056fea265627a7a7231582096a12987f4b6d46467eeca35cbd0c245fa64fb479e6a2a78b442ffadb376b60c64736f6c63430005100032", | ||
"sourceMap": "72:480:7:-;;;224:50;8:9:-1;5:2;;;30:1;27;20:12;5:2;224:50:7;259:10;251:5;;:18;;;;;;;;;;;;;;;;;;72:480;;;;;;", | ||
"deployedSourceMap": "72:480:7:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;72:480:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;385:165;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;385:165:7;;;;;;;;;;;;;;;;;;;:::i;:::-;;120:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;96:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;278:103;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;278:103:7;;;;;;;;;;;;;;;;;:::i;:::-;;385:165;207:5;;;;;;;;;;;193:19;;:10;:19;;;189:26;;;447:19;480:11;447:45;;498:8;:21;;;520:24;;498:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:47:7;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;498:47:7;;;;214:1;189:26;385:165;:::o;120:36::-;;;;:::o;96:20::-;;;;;;;;;;;;;:::o;278:103::-;207:5;;;;;;;;;;;193:19;;:10;:19;;;189:26;;;367:9;340:24;:36;;;;189:26;278:103;:::o", | ||
"source": "pragma solidity >=0.4.24;\n\n/**\n * Truffle migration helper contract\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 constructor() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", | ||
"sourcePath": "/Users/makoto/work/ens/ens/contracts/Migrations.sol", | ||
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"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\":\"new_address\",\"type\":\"address\"}],\"name\":\"upgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Truffle migration helper contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/arachnid/Dropbox/projects/ens/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/arachnid/Dropbox/projects/ens/contracts/Migrations.sol\":{\"keccak256\":\"0x3844bc39e725c1bf8c47cc35eebf4c10e178dba5b003d7423fc327452dc08e92\",\"urls\":[\"bzz-raw://6e911f9c4b75f6f25b5ce321652e1ca3bc98c455a93cdc80574c577bc0172667\",\"dweb:/ipfs/Qmc7CfYSphjfAfpEr8zz6dgUar2uADuj8LmdYHZzJuUKuf\"]}},\"version\":1}", | ||
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061029f806100606000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100955780638da5cb5b146100b3578063fdacd576146100e7575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610115565b005b61009d6101e0565b6040518082815260200191505060405180910390f35b6100bb6101e6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610113600480360360208110156100fd57600080fd5b810190808035906020019092919050505061020a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101dd5760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101c357600080fd5b505af11580156101d7573d6000803e3d6000fd5b50505050505b50565b60015481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026657806001819055505b5056fea264697066735822122073def391cd12ea4d2823555a6be9e45b9370c497a33775bfd1ad608295a5210464736f6c63430007040033", | ||
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80630900f01014610051578063445df0ac146100955780638da5cb5b146100b3578063fdacd576146100e7575b600080fd5b6100936004803603602081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610115565b005b61009d6101e0565b6040518082815260200191505060405180910390f35b6100bb6101e6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610113600480360360208110156100fd57600080fd5b810190808035906020019092919050505061020a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101dd5760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156101c357600080fd5b505af11580156101d7573d6000803e3d6000fd5b50505050505b50565b60015481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561026657806001819055505b5056fea264697066735822122073def391cd12ea4d2823555a6be9e45b9370c497a33775bfd1ad608295a5210464736f6c63430007040033", | ||
"immutableReferences": {}, | ||
"generatedSources": [], | ||
"deployedGeneratedSources": [], | ||
"sourceMap": "70:480:4:-:0;;;222:50;;;;;;;;;;257:10;249:5;;:18;;;;;;;;;;;;;;;;;;70:480;;;;;;", | ||
"deployedSourceMap": "70:480:4:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;383:165;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;118:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;94:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;276:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;383:165;205:5;;;;;;;;;;191:19;;:10;:19;;;187:26;;;445:19:::1;478:11;445:45;;496:8;:21;;;518:24;;496:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;212:1;187:26:::0;383:165;:::o;118:36::-;;;;:::o;94:20::-;;;;;;;;;;;;:::o;276:103::-;205:5;;;;;;;;;;191:19;;:10;:19;;;187:26;;;365:9:::1;338:24;:36;;;;187:26:::0;276:103;:::o", | ||
"source": "pragma solidity ^0.7.0;\n\n/**\n * Truffle migration helper contract\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 constructor() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", | ||
"sourcePath": "/home/arachnid/Dropbox/projects/ens/contracts/Migrations.sol", | ||
"ast": { | ||
"absolutePath": "/Users/makoto/work/ens/ens/contracts/Migrations.sol", | ||
"absolutePath": "/home/arachnid/Dropbox/projects/ens/contracts/Migrations.sol", | ||
"exportedSymbols": { | ||
"Migrations": [ | ||
2562 | ||
832 | ||
] | ||
}, | ||
"id": 2563, | ||
"id": 833, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 2507, | ||
"id": 776, | ||
"literals": [ | ||
"solidity", | ||
">=", | ||
"0.4", | ||
".24" | ||
"^", | ||
"0.7", | ||
".0" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:25:7" | ||
"src": "0:23:4" | ||
}, | ||
{ | ||
"abstract": false, | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "contract", | ||
"documentation": "Truffle migration helper contract", | ||
"documentation": { | ||
"id": 777, | ||
"nodeType": "StructuredDocumentation", | ||
"src": "25:44:4", | ||
"text": " Truffle migration helper contract" | ||
}, | ||
"fullyImplemented": true, | ||
"id": 2562, | ||
"id": 832, | ||
"linearizedBaseContracts": [ | ||
2562 | ||
832 | ||
], | ||
@@ -124,7 +124,9 @@ "name": "Migrations", | ||
"constant": false, | ||
"id": 2509, | ||
"functionSelector": "8da5cb5b", | ||
"id": 779, | ||
"mutability": "mutable", | ||
"name": "owner", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2562, | ||
"src": "96:20:7", | ||
"scope": 832, | ||
"src": "94:20:4", | ||
"stateVariable": true, | ||
@@ -137,6 +139,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 2508, | ||
"id": 778, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "96:7:7", | ||
"src": "94:7:4", | ||
"stateMutability": "nonpayable", | ||
@@ -148,3 +150,2 @@ "typeDescriptions": { | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
@@ -154,7 +155,9 @@ }, | ||
"constant": false, | ||
"id": 2511, | ||
"functionSelector": "445df0ac", | ||
"id": 781, | ||
"mutability": "mutable", | ||
"name": "last_completed_migration", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2562, | ||
"src": "120:36:7", | ||
"scope": 832, | ||
"src": "118:36:4", | ||
"stateVariable": true, | ||
@@ -167,6 +170,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 2510, | ||
"id": 780, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "120:4:7", | ||
"src": "118:4:4", | ||
"typeDescriptions": { | ||
@@ -177,3 +180,2 @@ "typeIdentifier": "t_uint256", | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
@@ -183,9 +185,8 @@ }, | ||
"body": { | ||
"id": 2519, | ||
"id": 789, | ||
"nodeType": "Block", | ||
"src": "183:37:7", | ||
"src": "181:37:4", | ||
"statements": [ | ||
{ | ||
"condition": { | ||
"argumentTypes": null, | ||
"commonType": { | ||
@@ -195,3 +196,3 @@ "typeIdentifier": "t_address", | ||
}, | ||
"id": 2516, | ||
"id": 786, | ||
"isConstant": false, | ||
@@ -202,11 +203,9 @@ "isLValue": false, | ||
"leftExpression": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2513, | ||
"id": 783, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3032, | ||
"src": "193:3:7", | ||
"referencedDeclaration": -15, | ||
"src": "191:3:4", | ||
"typeDescriptions": { | ||
@@ -217,3 +216,3 @@ "typeIdentifier": "t_magic_message", | ||
}, | ||
"id": 2514, | ||
"id": 784, | ||
"isConstant": false, | ||
@@ -225,4 +224,3 @@ "isLValue": false, | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "193:10:7", | ||
"src": "191:10:4", | ||
"typeDescriptions": { | ||
@@ -236,9 +234,8 @@ "typeIdentifier": "t_address_payable", | ||
"rightExpression": { | ||
"argumentTypes": null, | ||
"id": 2515, | ||
"id": 785, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2509, | ||
"src": "207:5:7", | ||
"referencedDeclaration": 779, | ||
"src": "205:5:4", | ||
"typeDescriptions": { | ||
@@ -249,3 +246,3 @@ "typeIdentifier": "t_address", | ||
}, | ||
"src": "193:19:7", | ||
"src": "191:19:4", | ||
"typeDescriptions": { | ||
@@ -256,10 +253,9 @@ "typeIdentifier": "t_bool", | ||
}, | ||
"falseBody": null, | ||
"id": 2518, | ||
"id": 788, | ||
"nodeType": "IfStatement", | ||
"src": "189:26:7", | ||
"src": "187:26:4", | ||
"trueBody": { | ||
"id": 2517, | ||
"id": 787, | ||
"nodeType": "PlaceholderStatement", | ||
"src": "214:1:7" | ||
"src": "212:1:4" | ||
} | ||
@@ -269,13 +265,13 @@ } | ||
}, | ||
"documentation": null, | ||
"id": 2520, | ||
"id": 790, | ||
"name": "restricted", | ||
"nodeType": "ModifierDefinition", | ||
"parameters": { | ||
"id": 2512, | ||
"id": 782, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "180:2:7" | ||
"src": "178:2:4" | ||
}, | ||
"src": "161:59:7", | ||
"src": "159:59:4", | ||
"virtual": false, | ||
"visibility": "internal" | ||
@@ -285,10 +281,9 @@ }, | ||
"body": { | ||
"id": 2528, | ||
"id": 798, | ||
"nodeType": "Block", | ||
"src": "245:29:7", | ||
"src": "243:29:4", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2526, | ||
"id": 796, | ||
"isConstant": false, | ||
@@ -299,9 +294,8 @@ "isLValue": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 2523, | ||
"id": 793, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2509, | ||
"src": "251:5:7", | ||
"referencedDeclaration": 779, | ||
"src": "249:5:4", | ||
"typeDescriptions": { | ||
@@ -315,11 +309,9 @@ "typeIdentifier": "t_address", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2524, | ||
"id": 794, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3032, | ||
"src": "259:3:7", | ||
"referencedDeclaration": -15, | ||
"src": "257:3:4", | ||
"typeDescriptions": { | ||
@@ -330,3 +322,3 @@ "typeIdentifier": "t_magic_message", | ||
}, | ||
"id": 2525, | ||
"id": 795, | ||
"isConstant": false, | ||
@@ -338,4 +330,3 @@ "isLValue": false, | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "259:10:7", | ||
"src": "257:10:4", | ||
"typeDescriptions": { | ||
@@ -346,3 +337,3 @@ "typeIdentifier": "t_address_payable", | ||
}, | ||
"src": "251:18:7", | ||
"src": "249:18:4", | ||
"typeDescriptions": { | ||
@@ -353,10 +344,9 @@ "typeIdentifier": "t_address", | ||
}, | ||
"id": 2527, | ||
"id": 797, | ||
"nodeType": "ExpressionStatement", | ||
"src": "251:18:7" | ||
"src": "249:18:4" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2529, | ||
"id": 799, | ||
"implemented": true, | ||
@@ -368,17 +358,17 @@ "kind": "constructor", | ||
"parameters": { | ||
"id": 2521, | ||
"id": 791, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "235:2:7" | ||
"src": "233:2:4" | ||
}, | ||
"returnParameters": { | ||
"id": 2522, | ||
"id": 792, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "245:0:7" | ||
"src": "243:0:4" | ||
}, | ||
"scope": 2562, | ||
"src": "224:50:7", | ||
"scope": 832, | ||
"src": "222:50:4", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"virtual": false, | ||
"visibility": "public" | ||
@@ -388,10 +378,9 @@ }, | ||
"body": { | ||
"id": 2540, | ||
"id": 810, | ||
"nodeType": "Block", | ||
"src": "334:47:7", | ||
"src": "332:47:4", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2538, | ||
"id": 808, | ||
"isConstant": false, | ||
@@ -402,9 +391,8 @@ "isLValue": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 2536, | ||
"id": 806, | ||
"name": "last_completed_migration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2511, | ||
"src": "340:24:7", | ||
"referencedDeclaration": 781, | ||
"src": "338:24:4", | ||
"typeDescriptions": { | ||
@@ -418,9 +406,8 @@ "typeIdentifier": "t_uint256", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"id": 2537, | ||
"id": 807, | ||
"name": "completed", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2531, | ||
"src": "367:9:7", | ||
"referencedDeclaration": 801, | ||
"src": "365:9:4", | ||
"typeDescriptions": { | ||
@@ -431,3 +418,3 @@ "typeIdentifier": "t_uint256", | ||
}, | ||
"src": "340:36:7", | ||
"src": "338:36:4", | ||
"typeDescriptions": { | ||
@@ -438,10 +425,10 @@ "typeIdentifier": "t_uint256", | ||
}, | ||
"id": 2539, | ||
"id": 809, | ||
"nodeType": "ExpressionStatement", | ||
"src": "340:36:7" | ||
"src": "338:36:4" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2541, | ||
"functionSelector": "fdacd576", | ||
"id": 811, | ||
"implemented": true, | ||
@@ -451,12 +438,10 @@ "kind": "function", | ||
{ | ||
"arguments": null, | ||
"id": 2534, | ||
"id": 804, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 2533, | ||
"id": 803, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2520, | ||
"src": "323:10:7", | ||
"referencedDeclaration": 790, | ||
"src": "321:10:4", | ||
"typeDescriptions": { | ||
@@ -468,3 +453,3 @@ "typeIdentifier": "t_modifier$__$", | ||
"nodeType": "ModifierInvocation", | ||
"src": "323:10:7" | ||
"src": "321:10:4" | ||
} | ||
@@ -475,3 +460,3 @@ ], | ||
"parameters": { | ||
"id": 2532, | ||
"id": 802, | ||
"nodeType": "ParameterList", | ||
@@ -481,7 +466,8 @@ "parameters": [ | ||
"constant": false, | ||
"id": 2531, | ||
"id": 801, | ||
"mutability": "mutable", | ||
"name": "completed", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2541, | ||
"src": "300:14:7", | ||
"scope": 811, | ||
"src": "298:14:4", | ||
"stateVariable": false, | ||
@@ -494,6 +480,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 2530, | ||
"id": 800, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "300:4:7", | ||
"src": "298:4:4", | ||
"typeDescriptions": { | ||
@@ -504,18 +490,17 @@ "typeIdentifier": "t_uint256", | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "299:16:7" | ||
"src": "297:16:4" | ||
}, | ||
"returnParameters": { | ||
"id": 2535, | ||
"id": 805, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "334:0:7" | ||
"src": "332:0:4" | ||
}, | ||
"scope": 2562, | ||
"src": "278:103:7", | ||
"scope": 832, | ||
"src": "276:103:4", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"virtual": false, | ||
"visibility": "public" | ||
@@ -525,9 +510,9 @@ }, | ||
"body": { | ||
"id": 2560, | ||
"id": 830, | ||
"nodeType": "Block", | ||
"src": "441:109:7", | ||
"src": "439:109:4", | ||
"statements": [ | ||
{ | ||
"assignments": [ | ||
2549 | ||
819 | ||
], | ||
@@ -537,41 +522,38 @@ "declarations": [ | ||
"constant": false, | ||
"id": 2549, | ||
"id": 819, | ||
"mutability": "mutable", | ||
"name": "upgraded", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2560, | ||
"src": "447:19:7", | ||
"scope": 830, | ||
"src": "445:19:4", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeIdentifier": "t_contract$_Migrations_$832", | ||
"typeString": "contract Migrations" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 2548, | ||
"id": 818, | ||
"name": "Migrations", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 2562, | ||
"src": "447:10:7", | ||
"referencedDeclaration": 832, | ||
"src": "445:10:4", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeIdentifier": "t_contract$_Migrations_$832", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"id": 2553, | ||
"id": 823, | ||
"initialValue": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 2551, | ||
"id": 821, | ||
"name": "new_address", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2543, | ||
"src": "480:11:7", | ||
"referencedDeclaration": 813, | ||
"src": "478:11:4", | ||
"typeDescriptions": { | ||
@@ -590,14 +572,14 @@ "typeIdentifier": "t_address", | ||
], | ||
"id": 2550, | ||
"id": 820, | ||
"name": "Migrations", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2562, | ||
"src": "469:10:7", | ||
"referencedDeclaration": 832, | ||
"src": "467:10:4", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_type$_t_contract$_Migrations_$2562_$", | ||
"typeIdentifier": "t_type$_t_contract$_Migrations_$832_$", | ||
"typeString": "type(contract Migrations)" | ||
} | ||
}, | ||
"id": 2552, | ||
"id": 822, | ||
"isConstant": false, | ||
@@ -610,5 +592,6 @@ "isLValue": false, | ||
"nodeType": "FunctionCall", | ||
"src": "469:23:7", | ||
"src": "467:23:4", | ||
"tryCall": false, | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeIdentifier": "t_contract$_Migrations_$832", | ||
"typeString": "contract Migrations" | ||
@@ -618,16 +601,14 @@ } | ||
"nodeType": "VariableDeclarationStatement", | ||
"src": "447:45:7" | ||
"src": "445:45:4" | ||
}, | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 2557, | ||
"id": 827, | ||
"name": "last_completed_migration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2511, | ||
"src": "520:24:7", | ||
"referencedDeclaration": 781, | ||
"src": "518:24:4", | ||
"typeDescriptions": { | ||
@@ -647,15 +628,14 @@ "typeIdentifier": "t_uint256", | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2554, | ||
"id": 824, | ||
"name": "upgraded", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2549, | ||
"src": "498:8:7", | ||
"referencedDeclaration": 819, | ||
"src": "496:8:4", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeIdentifier": "t_contract$_Migrations_$832", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"id": 2556, | ||
"id": 826, | ||
"isConstant": false, | ||
@@ -667,4 +647,4 @@ "isLValue": false, | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": 2541, | ||
"src": "498:21:7", | ||
"referencedDeclaration": 811, | ||
"src": "496:21:4", | ||
"typeDescriptions": { | ||
@@ -675,3 +655,3 @@ "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", | ||
}, | ||
"id": 2558, | ||
"id": 828, | ||
"isConstant": false, | ||
@@ -684,3 +664,4 @@ "isLValue": false, | ||
"nodeType": "FunctionCall", | ||
"src": "498:47:7", | ||
"src": "496:47:4", | ||
"tryCall": false, | ||
"typeDescriptions": { | ||
@@ -691,10 +672,10 @@ "typeIdentifier": "t_tuple$__$", | ||
}, | ||
"id": 2559, | ||
"id": 829, | ||
"nodeType": "ExpressionStatement", | ||
"src": "498:47:7" | ||
"src": "496:47:4" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2561, | ||
"functionSelector": "0900f010", | ||
"id": 831, | ||
"implemented": true, | ||
@@ -704,12 +685,10 @@ "kind": "function", | ||
{ | ||
"arguments": null, | ||
"id": 2546, | ||
"id": 816, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 2545, | ||
"id": 815, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2520, | ||
"src": "430:10:7", | ||
"referencedDeclaration": 790, | ||
"src": "428:10:4", | ||
"typeDescriptions": { | ||
@@ -721,3 +700,3 @@ "typeIdentifier": "t_modifier$__$", | ||
"nodeType": "ModifierInvocation", | ||
"src": "430:10:7" | ||
"src": "428:10:4" | ||
} | ||
@@ -728,3 +707,3 @@ ], | ||
"parameters": { | ||
"id": 2544, | ||
"id": 814, | ||
"nodeType": "ParameterList", | ||
@@ -734,7 +713,8 @@ "parameters": [ | ||
"constant": false, | ||
"id": 2543, | ||
"id": 813, | ||
"mutability": "mutable", | ||
"name": "new_address", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2561, | ||
"src": "402:19:7", | ||
"scope": 831, | ||
"src": "400:19:4", | ||
"stateVariable": false, | ||
@@ -747,6 +727,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 2542, | ||
"id": 812, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "402:7:7", | ||
"src": "400:7:4", | ||
"stateMutability": "nonpayable", | ||
@@ -758,687 +738,768 @@ "typeDescriptions": { | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "401:21:7" | ||
"src": "399:21:4" | ||
}, | ||
"returnParameters": { | ||
"id": 2547, | ||
"id": 817, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "441:0:7" | ||
"src": "439:0:4" | ||
}, | ||
"scope": 2562, | ||
"src": "385:165:7", | ||
"scope": 832, | ||
"src": "383:165:4", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"virtual": false, | ||
"visibility": "public" | ||
} | ||
], | ||
"scope": 2563, | ||
"src": "72:480:7" | ||
"scope": 833, | ||
"src": "70:480:4" | ||
} | ||
], | ||
"src": "0:553:7" | ||
"src": "0:551:4" | ||
}, | ||
"legacyAST": { | ||
"absolutePath": "/Users/makoto/work/ens/ens/contracts/Migrations.sol", | ||
"exportedSymbols": { | ||
"Migrations": [ | ||
2562 | ||
] | ||
"attributes": { | ||
"absolutePath": "/home/arachnid/Dropbox/projects/ens/contracts/Migrations.sol", | ||
"exportedSymbols": { | ||
"Migrations": [ | ||
832 | ||
] | ||
} | ||
}, | ||
"id": 2563, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
"children": [ | ||
{ | ||
"id": 2507, | ||
"literals": [ | ||
"solidity", | ||
">=", | ||
"0.4", | ||
".24" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:25:7" | ||
"attributes": { | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.7", | ||
".0" | ||
] | ||
}, | ||
"id": 776, | ||
"name": "PragmaDirective", | ||
"src": "0:23:4" | ||
}, | ||
{ | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "contract", | ||
"documentation": "Truffle migration helper contract", | ||
"fullyImplemented": true, | ||
"id": 2562, | ||
"linearizedBaseContracts": [ | ||
2562 | ||
], | ||
"name": "Migrations", | ||
"nodeType": "ContractDefinition", | ||
"nodes": [ | ||
"attributes": { | ||
"abstract": false, | ||
"baseContracts": [ | ||
null | ||
], | ||
"contractDependencies": [ | ||
null | ||
], | ||
"contractKind": "contract", | ||
"fullyImplemented": true, | ||
"linearizedBaseContracts": [ | ||
832 | ||
], | ||
"name": "Migrations", | ||
"scope": 833 | ||
}, | ||
"children": [ | ||
{ | ||
"constant": false, | ||
"id": 2509, | ||
"name": "owner", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2562, | ||
"src": "96:20:7", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
"attributes": { | ||
"text": " Truffle migration helper contract" | ||
}, | ||
"typeName": { | ||
"id": 2508, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "96:7:7", | ||
"stateMutability": "nonpayable", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
"id": 777, | ||
"name": "StructuredDocumentation", | ||
"src": "25:44:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"functionSelector": "8da5cb5b", | ||
"mutability": "mutable", | ||
"name": "owner", | ||
"scope": 832, | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"type": "address", | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "address", | ||
"stateMutability": "nonpayable", | ||
"type": "address" | ||
}, | ||
"id": 778, | ||
"name": "ElementaryTypeName", | ||
"src": "94:7:4" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
], | ||
"id": 779, | ||
"name": "VariableDeclaration", | ||
"src": "94:20:4" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 2511, | ||
"name": "last_completed_migration", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2562, | ||
"src": "120:36:7", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
"attributes": { | ||
"constant": false, | ||
"functionSelector": "445df0ac", | ||
"mutability": "mutable", | ||
"name": "last_completed_migration", | ||
"scope": 832, | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"visibility": "public" | ||
}, | ||
"typeName": { | ||
"id": 2510, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "120:4:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint", | ||
"type": "uint256" | ||
}, | ||
"id": 780, | ||
"name": "ElementaryTypeName", | ||
"src": "118:4:4" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
], | ||
"id": 781, | ||
"name": "VariableDeclaration", | ||
"src": "118:36:4" | ||
}, | ||
{ | ||
"body": { | ||
"id": 2519, | ||
"nodeType": "Block", | ||
"src": "183:37:7", | ||
"statements": [ | ||
{ | ||
"condition": { | ||
"argumentTypes": null, | ||
"commonType": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"id": 2516, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftExpression": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2513, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3032, | ||
"src": "193:3:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_magic_message", | ||
"typeString": "msg" | ||
} | ||
"attributes": { | ||
"name": "restricted", | ||
"virtual": false, | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 782, | ||
"name": "ParameterList", | ||
"src": "178:2:4" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"commonType": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "==", | ||
"type": "bool" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "sender", | ||
"type": "address payable" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": -15, | ||
"type": "msg", | ||
"value": "msg" | ||
}, | ||
"id": 783, | ||
"name": "Identifier", | ||
"src": "191:3:4" | ||
} | ||
], | ||
"id": 784, | ||
"name": "MemberAccess", | ||
"src": "191:10:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 779, | ||
"type": "address", | ||
"value": "owner" | ||
}, | ||
"id": 785, | ||
"name": "Identifier", | ||
"src": "205:5:4" | ||
} | ||
], | ||
"id": 786, | ||
"name": "BinaryOperation", | ||
"src": "191:19:4" | ||
}, | ||
"id": 2514, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "sender", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "193:10:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address_payable", | ||
"typeString": "address payable" | ||
{ | ||
"id": 787, | ||
"name": "PlaceholderStatement", | ||
"src": "212:1:4" | ||
} | ||
}, | ||
"nodeType": "BinaryOperation", | ||
"operator": "==", | ||
"rightExpression": { | ||
"argumentTypes": null, | ||
"id": 2515, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2509, | ||
"src": "207:5:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"src": "193:19:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"falseBody": null, | ||
"id": 2518, | ||
"nodeType": "IfStatement", | ||
"src": "189:26:7", | ||
"trueBody": { | ||
"id": 2517, | ||
"nodeType": "PlaceholderStatement", | ||
"src": "214:1:7" | ||
], | ||
"id": 788, | ||
"name": "IfStatement", | ||
"src": "187:26:4" | ||
} | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2520, | ||
"name": "restricted", | ||
"nodeType": "ModifierDefinition", | ||
"parameters": { | ||
"id": 2512, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "180:2:7" | ||
}, | ||
"src": "161:59:7", | ||
"visibility": "internal" | ||
], | ||
"id": 789, | ||
"name": "Block", | ||
"src": "181:37:4" | ||
} | ||
], | ||
"id": 790, | ||
"name": "ModifierDefinition", | ||
"src": "159:59:4" | ||
}, | ||
{ | ||
"body": { | ||
"id": 2528, | ||
"nodeType": "Block", | ||
"src": "245:29:7", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2526, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 2523, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2509, | ||
"src": "251:5:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
"attributes": { | ||
"implemented": true, | ||
"isConstructor": true, | ||
"kind": "constructor", | ||
"modifiers": [ | ||
null | ||
], | ||
"name": "", | ||
"scope": 832, | ||
"stateMutability": "nonpayable", | ||
"virtual": false, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 791, | ||
"name": "ParameterList", | ||
"src": "233:2:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 792, | ||
"name": "ParameterList", | ||
"src": "243:0:4" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "address" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 779, | ||
"type": "address", | ||
"value": "owner" | ||
}, | ||
"id": 793, | ||
"name": "Identifier", | ||
"src": "249:5:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "sender", | ||
"type": "address payable" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": -15, | ||
"type": "msg", | ||
"value": "msg" | ||
}, | ||
"id": 794, | ||
"name": "Identifier", | ||
"src": "257:3:4" | ||
} | ||
], | ||
"id": 795, | ||
"name": "MemberAccess", | ||
"src": "257:10:4" | ||
} | ||
], | ||
"id": 796, | ||
"name": "Assignment", | ||
"src": "249:18:4" | ||
} | ||
}, | ||
"nodeType": "Assignment", | ||
"operator": "=", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2524, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3032, | ||
"src": "259:3:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_magic_message", | ||
"typeString": "msg" | ||
} | ||
}, | ||
"id": 2525, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "sender", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "259:10:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address_payable", | ||
"typeString": "address payable" | ||
} | ||
}, | ||
"src": "251:18:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"id": 2527, | ||
"nodeType": "ExpressionStatement", | ||
"src": "251:18:7" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2529, | ||
"implemented": true, | ||
"kind": "constructor", | ||
"modifiers": [], | ||
"name": "", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 2521, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "235:2:7" | ||
}, | ||
"returnParameters": { | ||
"id": 2522, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "245:0:7" | ||
}, | ||
"scope": 2562, | ||
"src": "224:50:7", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
], | ||
"id": 797, | ||
"name": "ExpressionStatement", | ||
"src": "249:18:4" | ||
} | ||
], | ||
"id": 798, | ||
"name": "Block", | ||
"src": "243:29:4" | ||
} | ||
], | ||
"id": 799, | ||
"name": "FunctionDefinition", | ||
"src": "222:50:4" | ||
}, | ||
{ | ||
"body": { | ||
"id": 2540, | ||
"nodeType": "Block", | ||
"src": "334:47:7", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2538, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 2536, | ||
"name": "last_completed_migration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2511, | ||
"src": "340:24:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
"attributes": { | ||
"functionSelector": "fdacd576", | ||
"implemented": true, | ||
"isConstructor": false, | ||
"kind": "function", | ||
"name": "setCompleted", | ||
"scope": 832, | ||
"stateMutability": "nonpayable", | ||
"virtual": false, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"mutability": "mutable", | ||
"name": "completed", | ||
"scope": 811, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "uint256", | ||
"visibility": "internal" | ||
}, | ||
"nodeType": "Assignment", | ||
"operator": "=", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"id": 2537, | ||
"name": "completed", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2531, | ||
"src": "367:9:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "uint", | ||
"type": "uint256" | ||
}, | ||
"id": 800, | ||
"name": "ElementaryTypeName", | ||
"src": "298:4:4" | ||
} | ||
], | ||
"id": 801, | ||
"name": "VariableDeclaration", | ||
"src": "298:14:4" | ||
} | ||
], | ||
"id": 802, | ||
"name": "ParameterList", | ||
"src": "297:16:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 805, | ||
"name": "ParameterList", | ||
"src": "332:0:4" | ||
}, | ||
{ | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 790, | ||
"type": "modifier ()", | ||
"value": "restricted" | ||
}, | ||
"src": "340:36:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"id": 2539, | ||
"nodeType": "ExpressionStatement", | ||
"src": "340:36:7" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2541, | ||
"implemented": true, | ||
"kind": "function", | ||
"modifiers": [ | ||
"id": 803, | ||
"name": "Identifier", | ||
"src": "321:10:4" | ||
} | ||
], | ||
"id": 804, | ||
"name": "ModifierInvocation", | ||
"src": "321:10:4" | ||
}, | ||
{ | ||
"arguments": null, | ||
"id": 2534, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 2533, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2520, | ||
"src": "323:10:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_modifier$__$", | ||
"typeString": "modifier ()" | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"operator": "=", | ||
"type": "uint256" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 781, | ||
"type": "uint256", | ||
"value": "last_completed_migration" | ||
}, | ||
"id": 806, | ||
"name": "Identifier", | ||
"src": "338:24:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 801, | ||
"type": "uint256", | ||
"value": "completed" | ||
}, | ||
"id": 807, | ||
"name": "Identifier", | ||
"src": "365:9:4" | ||
} | ||
], | ||
"id": 808, | ||
"name": "Assignment", | ||
"src": "338:36:4" | ||
} | ||
], | ||
"id": 809, | ||
"name": "ExpressionStatement", | ||
"src": "338:36:4" | ||
} | ||
}, | ||
"nodeType": "ModifierInvocation", | ||
"src": "323:10:7" | ||
], | ||
"id": 810, | ||
"name": "Block", | ||
"src": "332:47:4" | ||
} | ||
], | ||
"name": "setCompleted", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 2532, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 2531, | ||
"name": "completed", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2541, | ||
"src": "300:14:7", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 2530, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "300:4:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "299:16:7" | ||
}, | ||
"returnParameters": { | ||
"id": 2535, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "334:0:7" | ||
}, | ||
"scope": 2562, | ||
"src": "278:103:7", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
"id": 811, | ||
"name": "FunctionDefinition", | ||
"src": "276:103:4" | ||
}, | ||
{ | ||
"body": { | ||
"id": 2560, | ||
"nodeType": "Block", | ||
"src": "441:109:7", | ||
"statements": [ | ||
{ | ||
"assignments": [ | ||
2549 | ||
], | ||
"declarations": [ | ||
{ | ||
"attributes": { | ||
"functionSelector": "0900f010", | ||
"implemented": true, | ||
"isConstructor": false, | ||
"kind": "function", | ||
"name": "upgrade", | ||
"scope": 832, | ||
"stateMutability": "nonpayable", | ||
"virtual": false, | ||
"visibility": "public" | ||
}, | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"id": 2549, | ||
"name": "upgraded", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2560, | ||
"src": "447:19:7", | ||
"mutability": "mutable", | ||
"name": "new_address", | ||
"scope": 831, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeString": "contract Migrations" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 2548, | ||
"name": "Migrations", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 2562, | ||
"src": "447:10:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"value": null, | ||
"type": "address", | ||
"visibility": "internal" | ||
} | ||
], | ||
"id": 2553, | ||
"initialValue": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
}, | ||
"children": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 2551, | ||
"name": "new_address", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2543, | ||
"src": "480:11:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
"attributes": { | ||
"name": "address", | ||
"stateMutability": "nonpayable", | ||
"type": "address" | ||
}, | ||
"id": 812, | ||
"name": "ElementaryTypeName", | ||
"src": "400:7:4" | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
"id": 813, | ||
"name": "VariableDeclaration", | ||
"src": "400:19:4" | ||
} | ||
], | ||
"id": 814, | ||
"name": "ParameterList", | ||
"src": "399:21:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"parameters": [ | ||
null | ||
] | ||
}, | ||
"children": [], | ||
"id": 817, | ||
"name": "ParameterList", | ||
"src": "439:0:4" | ||
}, | ||
{ | ||
"attributes": {}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"id": 2550, | ||
"name": "Migrations", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2562, | ||
"src": "469:10:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_type$_t_contract$_Migrations_$2562_$", | ||
"typeString": "type(contract Migrations)" | ||
"referencedDeclaration": 790, | ||
"type": "modifier ()", | ||
"value": "restricted" | ||
}, | ||
"id": 815, | ||
"name": "Identifier", | ||
"src": "428:10:4" | ||
} | ||
], | ||
"id": 816, | ||
"name": "ModifierInvocation", | ||
"src": "428:10:4" | ||
}, | ||
{ | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"assignments": [ | ||
819 | ||
] | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"constant": false, | ||
"mutability": "mutable", | ||
"name": "upgraded", | ||
"scope": 830, | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"type": "contract Migrations", | ||
"visibility": "internal" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"name": "Migrations", | ||
"referencedDeclaration": 832, | ||
"type": "contract Migrations" | ||
}, | ||
"id": 818, | ||
"name": "UserDefinedTypeName", | ||
"src": "445:10:4" | ||
} | ||
], | ||
"id": 819, | ||
"name": "VariableDeclaration", | ||
"src": "445:19:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"tryCall": false, | ||
"type": "contract Migrations", | ||
"type_conversion": true | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 832, | ||
"type": "type(contract Migrations)", | ||
"value": "Migrations" | ||
}, | ||
"id": 820, | ||
"name": "Identifier", | ||
"src": "467:10:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 813, | ||
"type": "address", | ||
"value": "new_address" | ||
}, | ||
"id": 821, | ||
"name": "Identifier", | ||
"src": "478:11:4" | ||
} | ||
], | ||
"id": 822, | ||
"name": "FunctionCall", | ||
"src": "467:23:4" | ||
} | ||
}, | ||
"id": 2552, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"kind": "typeConversion", | ||
"lValueRequested": false, | ||
"names": [], | ||
"nodeType": "FunctionCall", | ||
"src": "469:23:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeString": "contract Migrations" | ||
} | ||
], | ||
"id": 823, | ||
"name": "VariableDeclarationStatement", | ||
"src": "445:45:4" | ||
}, | ||
"nodeType": "VariableDeclarationStatement", | ||
"src": "447:45:7" | ||
}, | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"children": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 2557, | ||
"name": "last_completed_migration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2511, | ||
"src": "520:24:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
"attributes": { | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"isStructConstructorCall": false, | ||
"lValueRequested": false, | ||
"names": [ | ||
null | ||
], | ||
"tryCall": false, | ||
"type": "tuple()", | ||
"type_conversion": false | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
], | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"member_name": "setCompleted", | ||
"referencedDeclaration": 811, | ||
"type": "function (uint256) external" | ||
}, | ||
"children": [ | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 819, | ||
"type": "contract Migrations", | ||
"value": "upgraded" | ||
}, | ||
"id": 824, | ||
"name": "Identifier", | ||
"src": "496:8:4" | ||
} | ||
], | ||
"id": 826, | ||
"name": "MemberAccess", | ||
"src": "496:21:4" | ||
}, | ||
{ | ||
"attributes": { | ||
"overloadedDeclarations": [ | ||
null | ||
], | ||
"referencedDeclaration": 781, | ||
"type": "uint256", | ||
"value": "last_completed_migration" | ||
}, | ||
"id": 827, | ||
"name": "Identifier", | ||
"src": "518:24:4" | ||
} | ||
], | ||
"id": 828, | ||
"name": "FunctionCall", | ||
"src": "496:47:4" | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 2554, | ||
"name": "upgraded", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2549, | ||
"src": "498:8:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$2562", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"id": 2556, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "setCompleted", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": 2541, | ||
"src": "498:21:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", | ||
"typeString": "function (uint256) external" | ||
} | ||
}, | ||
"id": 2558, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"kind": "functionCall", | ||
"lValueRequested": false, | ||
"names": [], | ||
"nodeType": "FunctionCall", | ||
"src": "498:47:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_tuple$__$", | ||
"typeString": "tuple()" | ||
} | ||
}, | ||
"id": 2559, | ||
"nodeType": "ExpressionStatement", | ||
"src": "498:47:7" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 2561, | ||
"implemented": true, | ||
"kind": "function", | ||
"modifiers": [ | ||
{ | ||
"arguments": null, | ||
"id": 2546, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 2545, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 2520, | ||
"src": "430:10:7", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_modifier$__$", | ||
"typeString": "modifier ()" | ||
"id": 829, | ||
"name": "ExpressionStatement", | ||
"src": "496:47:4" | ||
} | ||
}, | ||
"nodeType": "ModifierInvocation", | ||
"src": "430:10:7" | ||
], | ||
"id": 830, | ||
"name": "Block", | ||
"src": "439:109:4" | ||
} | ||
], | ||
"name": "upgrade", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 2544, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 2543, | ||
"name": "new_address", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 2561, | ||
"src": "402:19:7", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 2542, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "402:7:7", | ||
"stateMutability": "nonpayable", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "401:21:7" | ||
}, | ||
"returnParameters": { | ||
"id": 2547, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "441:0:7" | ||
}, | ||
"scope": 2562, | ||
"src": "385:165:7", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
"id": 831, | ||
"name": "FunctionDefinition", | ||
"src": "383:165:4" | ||
} | ||
], | ||
"scope": 2563, | ||
"src": "72:480:7" | ||
"id": 832, | ||
"name": "ContractDefinition", | ||
"src": "70:480:4" | ||
} | ||
], | ||
"src": "0:553:7" | ||
"id": 833, | ||
"name": "SourceUnit", | ||
"src": "0:551:4" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.5.16+commit.9c3226ce.Emscripten.clang" | ||
"version": "0.7.4+commit.3f05b770.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schemaVersion": "3.2.0", | ||
"updatedAt": "2020-06-23T14:47:43.710Z", | ||
"schemaVersion": "3.3.3", | ||
"updatedAt": "2021-01-21T02:51:22.662Z", | ||
"devdoc": { | ||
"methods": {} | ||
"kind": "dev", | ||
"methods": {}, | ||
"version": 1 | ||
}, | ||
"userdoc": { | ||
"kind": "user", | ||
"methods": {}, | ||
"notice": "Truffle migration helper contract" | ||
"notice": "Truffle migration helper contract", | ||
"version": 1 | ||
} | ||
} |
{ | ||
"name": "@ensdomains/ens", | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"description": "Implementations for registrars and local resolvers for the Ethereum Name Service", | ||
@@ -26,4 +26,3 @@ "scripts": { | ||
"solc": "^0.4.20", | ||
"testrpc": "0.0.1", | ||
"web3-utils": "^1.0.0-beta.31" | ||
"testrpc": "0.0.1" | ||
}, | ||
@@ -34,4 +33,5 @@ "devDependencies": { | ||
"solium": "^1.0.4", | ||
"truffle": "5.0.19" | ||
"web3-utils": "^1.3.0", | ||
"truffle": "^5.1.62" | ||
} | ||
} |
@@ -13,3 +13,8 @@ module.exports = { | ||
} | ||
}, | ||
compilers: { | ||
solc: { | ||
version: "0.7.4", | ||
} | ||
} | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4025563
4
93867
5
34
- Removedweb3-utils@^1.0.0-beta.31
- Removed@ethereumjs/rlp@4.0.1(transitive)
- Removed@ethereumjs/util@8.1.0(transitive)
- Removed@noble/curves@1.3.0(transitive)
- Removed@noble/hashes@1.3.31.4.0(transitive)
- Removed@scure/base@1.1.6(transitive)
- Removed@scure/bip32@1.3.3(transitive)
- Removed@scure/bip39@1.2.2(transitive)
- Removedbn.js@4.11.65.2.1(transitive)
- Removedethereum-bloom-filters@1.1.0(transitive)
- Removedethereum-cryptography@2.1.3(transitive)
- Removedethjs-unit@0.1.6(transitive)
- Removedis-hex-prefixed@1.0.0(transitive)
- Removedmicro-ftch@0.3.1(transitive)
- Removednumber-to-bn@1.7.0(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedstrip-hex-prefix@1.0.0(transitive)
- Removedutf8@3.0.0(transitive)
- Removedweb3-utils@1.10.4(transitive)