canonical-weth
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -1,1380 +0,1 @@ | ||
{ | ||
"contractName": "Migrations", | ||
"abi": [ | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "lastCompletedMigration", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"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": "newAddress", | ||
"type": "address" | ||
} | ||
], | ||
"name": "upgrade", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
], | ||
"bytecode": "0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102d78061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f010146100675780638da5cb5b146100a0578063fbdbad3c146100f5578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610220565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561010057600080fd5b610108610245565b6040518082815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024b565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561021c578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b5af1151561021857600080fd5b5050505b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102a857806001819055505b505600a165627a7a7230582060164c48eed833c7eb15c22a79c1e003094b3aa438ab5beb0fdcdc0fb782897d0029", | ||
"deployedBytecode": "0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f010146100675780638da5cb5b146100a0578063fbdbad3c146100f5578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610220565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561010057600080fd5b610108610245565b6040518082815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024b565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561021c578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b5af1151561021857600080fd5b5050505b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102a857806001819055505b505600a165627a7a7230582060164c48eed833c7eb15c22a79c1e003094b3aa438ab5beb0fdcdc0fb782897d0029", | ||
"sourceMap": "26:520:0:-;;;190:64;;;;;;;;237:10;229:5;;:18;;;;;;;;;;;;;;;;;;26:520;;;;;;", | ||
"deployedSourceMap": "26:520:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;373:171;;;;;;;;;;;;;;;;;;;;;;;;;;;;52:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;260:107;;;;;;;;;;;;;;;;;;;;;;;;;;373:171;438:19;169:5;;;;;;;;;;;155:19;;:10;:19;;;151:26;;;471:10;438:44;;492:8;:21;;;514:22;;492:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;151:26;373:171;;:::o;52:20::-;;;;;;;;;;;;;:::o;78:34::-;;;;:::o;260:107::-;169:5;;;;;;;;;;;155:19;;:10;:19;;;151:26;;;351:9;326:22;:34;;;;151:26;260:107;:::o", | ||
"source": "pragma solidity ^0.4.2;\n\n\ncontract Migrations {\n address public owner;\n uint public lastCompletedMigration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations() public {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) public restricted {\n lastCompletedMigration = completed;\n }\n\n function upgrade(address newAddress) public restricted {\n Migrations upgraded = Migrations(newAddress);\n upgraded.setCompleted(lastCompletedMigration);\n }\n}\n", | ||
"sourcePath": "/home/alan/src/github.com/gnosis/canonical-weth/contracts/Migrations.sol", | ||
"ast": { | ||
"absolutePath": "/home/alan/src/github.com/gnosis/canonical-weth/contracts/Migrations.sol", | ||
"exportedSymbols": { | ||
"Migrations": [ | ||
56 | ||
] | ||
}, | ||
"id": 57, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 1, | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".2" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:23:0" | ||
}, | ||
{ | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "contract", | ||
"documentation": null, | ||
"fullyImplemented": true, | ||
"id": 56, | ||
"linearizedBaseContracts": [ | ||
56 | ||
], | ||
"name": "Migrations", | ||
"nodeType": "ContractDefinition", | ||
"nodes": [ | ||
{ | ||
"constant": false, | ||
"id": 3, | ||
"name": "owner", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 56, | ||
"src": "52:20:0", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 2, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "52:7:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 5, | ||
"name": "lastCompletedMigration", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 56, | ||
"src": "78:34:0", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 4, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "78:4:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": { | ||
"id": 13, | ||
"nodeType": "Block", | ||
"src": "141:43:0", | ||
"statements": [ | ||
{ | ||
"condition": { | ||
"argumentTypes": null, | ||
"commonType": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"id": 10, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftExpression": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 7, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 69, | ||
"src": "155:3:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_magic_message", | ||
"typeString": "msg" | ||
} | ||
}, | ||
"id": 8, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "sender", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "155:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"nodeType": "BinaryOperation", | ||
"operator": "==", | ||
"rightExpression": { | ||
"argumentTypes": null, | ||
"id": 9, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3, | ||
"src": "169:5:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"src": "155:19:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"falseBody": null, | ||
"id": 12, | ||
"nodeType": "IfStatement", | ||
"src": "151:26:0", | ||
"trueBody": { | ||
"id": 11, | ||
"nodeType": "PlaceholderStatement", | ||
"src": "176:1:0" | ||
} | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 14, | ||
"name": "restricted", | ||
"nodeType": "ModifierDefinition", | ||
"parameters": { | ||
"id": 6, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "138:2:0" | ||
}, | ||
"src": "119:65:0", | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"body": { | ||
"id": 22, | ||
"nodeType": "Block", | ||
"src": "219:35:0", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 20, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 17, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3, | ||
"src": "229:5:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"nodeType": "Assignment", | ||
"operator": "=", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 18, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 69, | ||
"src": "237:3:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_magic_message", | ||
"typeString": "msg" | ||
} | ||
}, | ||
"id": 19, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "sender", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "237:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"src": "229:18:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"id": 21, | ||
"nodeType": "ExpressionStatement", | ||
"src": "229:18:0" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 23, | ||
"implemented": true, | ||
"isConstructor": true, | ||
"isDeclaredConst": false, | ||
"modifiers": [], | ||
"name": "Migrations", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 15, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "209:2:0" | ||
}, | ||
"payable": false, | ||
"returnParameters": { | ||
"id": 16, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "219:0:0" | ||
}, | ||
"scope": 56, | ||
"src": "190:64:0", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": { | ||
"id": 34, | ||
"nodeType": "Block", | ||
"src": "316:51:0", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 32, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 30, | ||
"name": "lastCompletedMigration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 5, | ||
"src": "326:22:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"nodeType": "Assignment", | ||
"operator": "=", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"id": 31, | ||
"name": "completed", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 25, | ||
"src": "351:9:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"src": "326:34:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"id": 33, | ||
"nodeType": "ExpressionStatement", | ||
"src": "326:34:0" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 35, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"isDeclaredConst": false, | ||
"modifiers": [ | ||
{ | ||
"arguments": [], | ||
"id": 28, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 27, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 14, | ||
"src": "305:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_modifier$__$", | ||
"typeString": "modifier ()" | ||
} | ||
}, | ||
"nodeType": "ModifierInvocation", | ||
"src": "305:10:0" | ||
} | ||
], | ||
"name": "setCompleted", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 26, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 25, | ||
"name": "completed", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 35, | ||
"src": "282:14:0", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 24, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "282:4:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "281:16:0" | ||
}, | ||
"payable": false, | ||
"returnParameters": { | ||
"id": 29, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "316:0:0" | ||
}, | ||
"scope": 56, | ||
"src": "260:107:0", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": { | ||
"id": 54, | ||
"nodeType": "Block", | ||
"src": "428:116:0", | ||
"statements": [ | ||
{ | ||
"assignments": [ | ||
43 | ||
], | ||
"declarations": [ | ||
{ | ||
"constant": false, | ||
"id": 43, | ||
"name": "upgraded", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 55, | ||
"src": "438:19:0", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 42, | ||
"name": "Migrations", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 56, | ||
"src": "438:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"id": 47, | ||
"initialValue": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 45, | ||
"name": "newAddress", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 37, | ||
"src": "471:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"id": 44, | ||
"name": "Migrations", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 56, | ||
"src": "460:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_type$_t_contract$_Migrations_$56_$", | ||
"typeString": "type(contract Migrations)" | ||
} | ||
}, | ||
"id": 46, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"kind": "typeConversion", | ||
"lValueRequested": false, | ||
"names": [], | ||
"nodeType": "FunctionCall", | ||
"src": "460:22:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"nodeType": "VariableDeclarationStatement", | ||
"src": "438:44:0" | ||
}, | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 51, | ||
"name": "lastCompletedMigration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 5, | ||
"src": "514:22:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 48, | ||
"name": "upgraded", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 43, | ||
"src": "492:8:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"id": 50, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "setCompleted", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": 35, | ||
"src": "492:21:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", | ||
"typeString": "function (uint256) external" | ||
} | ||
}, | ||
"id": 52, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"kind": "functionCall", | ||
"lValueRequested": false, | ||
"names": [], | ||
"nodeType": "FunctionCall", | ||
"src": "492:45:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_tuple$__$", | ||
"typeString": "tuple()" | ||
} | ||
}, | ||
"id": 53, | ||
"nodeType": "ExpressionStatement", | ||
"src": "492:45:0" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 55, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"isDeclaredConst": false, | ||
"modifiers": [ | ||
{ | ||
"arguments": [], | ||
"id": 40, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 39, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 14, | ||
"src": "417:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_modifier$__$", | ||
"typeString": "modifier ()" | ||
} | ||
}, | ||
"nodeType": "ModifierInvocation", | ||
"src": "417:10:0" | ||
} | ||
], | ||
"name": "upgrade", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 38, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 37, | ||
"name": "newAddress", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 55, | ||
"src": "390:18:0", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 36, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "390:7:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "389:20:0" | ||
}, | ||
"payable": false, | ||
"returnParameters": { | ||
"id": 41, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "428:0:0" | ||
}, | ||
"scope": 56, | ||
"src": "373:171:0", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
} | ||
], | ||
"scope": 57, | ||
"src": "26:520:0" | ||
} | ||
], | ||
"src": "0:547:0" | ||
}, | ||
"legacyAST": { | ||
"absolutePath": "/home/alan/src/github.com/gnosis/canonical-weth/contracts/Migrations.sol", | ||
"exportedSymbols": { | ||
"Migrations": [ | ||
56 | ||
] | ||
}, | ||
"id": 57, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 1, | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.4", | ||
".2" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:23:0" | ||
}, | ||
{ | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "contract", | ||
"documentation": null, | ||
"fullyImplemented": true, | ||
"id": 56, | ||
"linearizedBaseContracts": [ | ||
56 | ||
], | ||
"name": "Migrations", | ||
"nodeType": "ContractDefinition", | ||
"nodes": [ | ||
{ | ||
"constant": false, | ||
"id": 3, | ||
"name": "owner", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 56, | ||
"src": "52:20:0", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 2, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "52:7:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 5, | ||
"name": "lastCompletedMigration", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 56, | ||
"src": "78:34:0", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 4, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "78:4:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": { | ||
"id": 13, | ||
"nodeType": "Block", | ||
"src": "141:43:0", | ||
"statements": [ | ||
{ | ||
"condition": { | ||
"argumentTypes": null, | ||
"commonType": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"id": 10, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftExpression": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 7, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 69, | ||
"src": "155:3:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_magic_message", | ||
"typeString": "msg" | ||
} | ||
}, | ||
"id": 8, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "sender", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "155:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"nodeType": "BinaryOperation", | ||
"operator": "==", | ||
"rightExpression": { | ||
"argumentTypes": null, | ||
"id": 9, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3, | ||
"src": "169:5:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"src": "155:19:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"falseBody": null, | ||
"id": 12, | ||
"nodeType": "IfStatement", | ||
"src": "151:26:0", | ||
"trueBody": { | ||
"id": 11, | ||
"nodeType": "PlaceholderStatement", | ||
"src": "176:1:0" | ||
} | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 14, | ||
"name": "restricted", | ||
"nodeType": "ModifierDefinition", | ||
"parameters": { | ||
"id": 6, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "138:2:0" | ||
}, | ||
"src": "119:65:0", | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"body": { | ||
"id": 22, | ||
"nodeType": "Block", | ||
"src": "219:35:0", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 20, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 17, | ||
"name": "owner", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 3, | ||
"src": "229:5:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"nodeType": "Assignment", | ||
"operator": "=", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 18, | ||
"name": "msg", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 69, | ||
"src": "237:3:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_magic_message", | ||
"typeString": "msg" | ||
} | ||
}, | ||
"id": 19, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "sender", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": null, | ||
"src": "237:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"src": "229:18:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"id": 21, | ||
"nodeType": "ExpressionStatement", | ||
"src": "229:18:0" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 23, | ||
"implemented": true, | ||
"isConstructor": true, | ||
"isDeclaredConst": false, | ||
"modifiers": [], | ||
"name": "Migrations", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 15, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "209:2:0" | ||
}, | ||
"payable": false, | ||
"returnParameters": { | ||
"id": 16, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "219:0:0" | ||
}, | ||
"scope": 56, | ||
"src": "190:64:0", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": { | ||
"id": 34, | ||
"nodeType": "Block", | ||
"src": "316:51:0", | ||
"statements": [ | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 32, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"leftHandSide": { | ||
"argumentTypes": null, | ||
"id": 30, | ||
"name": "lastCompletedMigration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 5, | ||
"src": "326:22:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"nodeType": "Assignment", | ||
"operator": "=", | ||
"rightHandSide": { | ||
"argumentTypes": null, | ||
"id": 31, | ||
"name": "completed", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 25, | ||
"src": "351:9:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"src": "326:34:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"id": 33, | ||
"nodeType": "ExpressionStatement", | ||
"src": "326:34:0" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 35, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"isDeclaredConst": false, | ||
"modifiers": [ | ||
{ | ||
"arguments": [], | ||
"id": 28, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 27, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 14, | ||
"src": "305:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_modifier$__$", | ||
"typeString": "modifier ()" | ||
} | ||
}, | ||
"nodeType": "ModifierInvocation", | ||
"src": "305:10:0" | ||
} | ||
], | ||
"name": "setCompleted", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 26, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 25, | ||
"name": "completed", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 35, | ||
"src": "282:14:0", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 24, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "282:4:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "281:16:0" | ||
}, | ||
"payable": false, | ||
"returnParameters": { | ||
"id": 29, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "316:0:0" | ||
}, | ||
"scope": 56, | ||
"src": "260:107:0", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": { | ||
"id": 54, | ||
"nodeType": "Block", | ||
"src": "428:116:0", | ||
"statements": [ | ||
{ | ||
"assignments": [ | ||
43 | ||
], | ||
"declarations": [ | ||
{ | ||
"constant": false, | ||
"id": 43, | ||
"name": "upgraded", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 55, | ||
"src": "438:19:0", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 42, | ||
"name": "Migrations", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 56, | ||
"src": "438:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"id": 47, | ||
"initialValue": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 45, | ||
"name": "newAddress", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 37, | ||
"src": "471:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
], | ||
"id": 44, | ||
"name": "Migrations", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 56, | ||
"src": "460:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_type$_t_contract$_Migrations_$56_$", | ||
"typeString": "type(contract Migrations)" | ||
} | ||
}, | ||
"id": 46, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"kind": "typeConversion", | ||
"lValueRequested": false, | ||
"names": [], | ||
"nodeType": "FunctionCall", | ||
"src": "460:22:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"nodeType": "VariableDeclarationStatement", | ||
"src": "438:44:0" | ||
}, | ||
{ | ||
"expression": { | ||
"argumentTypes": null, | ||
"arguments": [ | ||
{ | ||
"argumentTypes": null, | ||
"id": 51, | ||
"name": "lastCompletedMigration", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 5, | ||
"src": "514:22:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": [ | ||
{ | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
], | ||
"expression": { | ||
"argumentTypes": null, | ||
"id": 48, | ||
"name": "upgraded", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 43, | ||
"src": "492:8:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Migrations_$56", | ||
"typeString": "contract Migrations" | ||
} | ||
}, | ||
"id": 50, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"lValueRequested": false, | ||
"memberName": "setCompleted", | ||
"nodeType": "MemberAccess", | ||
"referencedDeclaration": 35, | ||
"src": "492:21:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", | ||
"typeString": "function (uint256) external" | ||
} | ||
}, | ||
"id": 52, | ||
"isConstant": false, | ||
"isLValue": false, | ||
"isPure": false, | ||
"kind": "functionCall", | ||
"lValueRequested": false, | ||
"names": [], | ||
"nodeType": "FunctionCall", | ||
"src": "492:45:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_tuple$__$", | ||
"typeString": "tuple()" | ||
} | ||
}, | ||
"id": 53, | ||
"nodeType": "ExpressionStatement", | ||
"src": "492:45:0" | ||
} | ||
] | ||
}, | ||
"documentation": null, | ||
"id": 55, | ||
"implemented": true, | ||
"isConstructor": false, | ||
"isDeclaredConst": false, | ||
"modifiers": [ | ||
{ | ||
"arguments": [], | ||
"id": 40, | ||
"modifierName": { | ||
"argumentTypes": null, | ||
"id": 39, | ||
"name": "restricted", | ||
"nodeType": "Identifier", | ||
"overloadedDeclarations": [], | ||
"referencedDeclaration": 14, | ||
"src": "417:10:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_modifier$__$", | ||
"typeString": "modifier ()" | ||
} | ||
}, | ||
"nodeType": "ModifierInvocation", | ||
"src": "417:10:0" | ||
} | ||
], | ||
"name": "upgrade", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 38, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 37, | ||
"name": "newAddress", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 55, | ||
"src": "390:18:0", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 36, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "390:7:0", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "389:20:0" | ||
}, | ||
"payable": false, | ||
"returnParameters": { | ||
"id": 41, | ||
"nodeType": "ParameterList", | ||
"parameters": [], | ||
"src": "428:0:0" | ||
}, | ||
"scope": 56, | ||
"src": "373:171:0", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
} | ||
], | ||
"scope": 57, | ||
"src": "26:520:0" | ||
} | ||
], | ||
"src": "0:547:0" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.4.21+commit.dfe3193c.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schemaVersion": "2.0.0", | ||
"updatedAt": "2018-10-19T20:06:50.639Z" | ||
} | ||
{"contractName":"Migrations","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastCompletedMigration","outputs":[{"name":"","type":"uint256"}],"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":"newAddress","type":"address"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610314806100606000396000f3fe608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f010146100675780638da5cb5b146100b8578063fbdbad3c1461010f578063fdacd5761461013a575b600080fd5b34801561007357600080fd5b506100b66004803603602081101561008a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610175565b005b3480156100c457600080fd5b506100cd61025d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561011b57600080fd5b50610124610282565b6040518082815260200191505060405180910390f35b34801561014657600080fd5b506101736004803603602081101561015d57600080fd5b8101908080359060200190929190505050610288565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561025a5760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561024057600080fd5b505af1158015610254573d6000803e3d6000fd5b50505050505b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102e557806001819055505b5056fea165627a7a72305820acff9e0ed01ece0c2a77537d3df6e8a2cf6a926c55e915447e3fd41110371c200029","deployedBytecode":"0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f010146100675780638da5cb5b146100b8578063fbdbad3c1461010f578063fdacd5761461013a575b600080fd5b34801561007357600080fd5b506100b66004803603602081101561008a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610175565b005b3480156100c457600080fd5b506100cd61025d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561011b57600080fd5b50610124610282565b6040518082815260200191505060405180910390f35b34801561014657600080fd5b506101736004803603602081101561015d57600080fd5b8101908080359060200190929190505050610288565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561025a5760008190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561024057600080fd5b505af1158015610254573d6000803e3d6000fd5b50505050505b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102e557806001819055505b5056fea165627a7a72305820acff9e0ed01ece0c2a77537d3df6e8a2cf6a926c55e915447e3fd41110371c200029","sourceMap":"32:512:0:-;;;125:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;125:56:0;164:10;156:5;;:18;;;;;;;;;;;;;;;;;;32:512;;;;;;","deployedSourceMap":"32:512:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;371:171;;8:9:-1;5:2;;;30:1;27;20:12;5:2;371:171:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;371:171:0;;;;;;;;;;;;;;;;;;;;;;58:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;84:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;84:34:0;;;;;;;;;;;;;;;;;;;;;;;258:107;;8:9:-1;5:2;;;30:1;27;20:12;5:2;258:107:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;258:107:0;;;;;;;;;;;;;;;;;;;;371:171;237:5;;;;;;;;;;;223:19;;:10;:19;;;219:26;;;436:19;469:10;436:44;;490:8;:21;;;512:22;;490:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;490:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;490:45:0;;;;244:1;219:26;371:171;:::o;58:20::-;;;;;;;;;;;;;:::o;84:34::-;;;;:::o;258:107::-;237:5;;;;;;;;;;;223:19;;:10;:19;;;219:26;;;349:9;324:22;:34;;;;219:26;258:107;:::o","source":"pragma solidity >=0.4.22 <0.6;\n\ncontract Migrations {\n address public owner;\n uint public lastCompletedMigration;\n\n constructor() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function setCompleted(uint completed) public restricted {\n lastCompletedMigration = completed;\n }\n\n function upgrade(address newAddress) public restricted {\n Migrations upgraded = Migrations(newAddress);\n upgraded.setCompleted(lastCompletedMigration);\n }\n}\n","compiler":{"name":"solc","version":"0.5.0+commit.1d4f565a.Emscripten.clang"},"networks":{},"schemaVersion":"3.0.2","updatedAt":"2019-02-28T18:32:54.004Z","devdoc":{"methods":{}},"userdoc":{"methods":{}}} |
@@ -6,16 +6,21 @@ { | ||
"scripts": { | ||
"prepack": "eslint . && npm run fmtsrc", | ||
"fmtsrc": "prettier --write \"**/*.{js,json}\"", | ||
"lint": "eslint ." | ||
"prepack": "npm run build && eslint . && npm run fmtsrc", | ||
"fmtsrc": "eslint . --fix", | ||
"lint": "eslint .", | ||
"build": "truffle compile --all && tnt cB && tnt iN", | ||
"test": "truffle compile --all --solc-version=0.4.22 && truffle compile --all --solc-version=0.5.0" | ||
}, | ||
"devDependencies": { | ||
"@gnosis.pm/truffle-nice-tools": "^1.3.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-plugin-prettier": "^2.6.0", | ||
"lodash": "^4.17.5", | ||
"prettier": "^1.11.1" | ||
"lodash": "^4.17.11", | ||
"prettier": "^1.11.1", | ||
"truffle": "^5.0.5", | ||
"yargs": "^13.2.1" | ||
}, | ||
"name": "canonical-weth", | ||
"description": "Canonical WETH package (see https://blog.0xproject.com/canonical-weth-a9aa7d0279dd)", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"main": "index.js", | ||
@@ -22,0 +27,0 @@ "dependencies": {}, |
@@ -0,1 +1,3 @@ | ||
const { argv } = require("yargs"); | ||
module.exports = { | ||
@@ -23,3 +25,8 @@ networks: { | ||
} | ||
}, | ||
compilers: { | ||
solc: { | ||
version: argv.solcVersion | ||
} | ||
} | ||
}; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
151774
8
901
1