UNPKG

@newos/upgrades

Version:
257 lines (256 loc) 9.54 kB
{ "fileName": "ClashingImplementation.sol", "contractName": "ClashingImplementation", "source": "pragma solidity ^0.5.0;\n\n\n/**\n * @dev Implementation contract with an admin() function made to clash with\n * @dev AdminUpgradeabilityProxy's to test correct functioning of the\n * @dev Transparent Proxy feature.\n */\ncontract ClashingImplementation {\n\n function admin() external pure returns (address) {\n return 0x0000000000000000000000000000000011111142;\n }\n\n function delegatedFunction() external pure returns (bool) {\n return true;\n }\n}\n", "sourcePath": "contracts/mocks/ClashingImplementation.sol", "sourceMap": "215:232:6:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;215:232:6;;;;;;;", "deployedSourceMap": "215:232:6:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;215:232:6;;;;;;;;;;;;;;;;;;;;;;;;365:80;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;252:109;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;365:80;417:4;436;429:11;;365:80;:::o;252:109::-;292:7;314:42;307:49;;252:109;:::o", "abi": [ { "constant": true, "inputs": [], "name": "delegatedFunction", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "admin", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "pure", "type": "function" } ], "ast": { "absolutePath": "contracts/mocks/ClashingImplementation.sol", "exportedSymbols": { "ClashingImplementation": [ 893 ] }, "id": 894, "nodeType": "SourceUnit", "nodes": [ { "id": 876, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": "@dev Implementation contract with an admin() function made to clash with\n@dev AdminUpgradeabilityProxy's to test correct functioning of the\n@dev Transparent Proxy feature.", "fullyImplemented": true, "id": 893, "linearizedBaseContracts": [ 893 ], "name": "ClashingImplementation", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 883, "nodeType": "Block", "src": "301:60:6", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "307830303030303030303030303030303030303030303030303030303030303030303131313131313432", "id": 881, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "314:42:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "value": "0x0000000000000000000000000000000011111142" }, "functionReturnParameters": 880, "id": 882, "nodeType": "Return", "src": "307:49:6" } ] }, "documentation": null, "id": 884, "implemented": true, "kind": "function", "modifiers": [], "name": "admin", "nodeType": "FunctionDefinition", "parameters": { "id": 877, "nodeType": "ParameterList", "parameters": [], "src": "266:2:6" }, "returnParameters": { "id": 880, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 879, "name": "", "nodeType": "VariableDeclaration", "scope": 884, "src": "292:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 878, "name": "address", "nodeType": "ElementaryTypeName", "src": "292:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "291:9:6" }, "scope": 893, "src": "252:109:6", "stateMutability": "pure", "superFunction": null, "visibility": "external" }, { "body": { "id": 891, "nodeType": "Block", "src": "423:22:6", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 889, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "436:4:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 888, "id": 890, "nodeType": "Return", "src": "429:11:6" } ] }, "documentation": null, "id": 892, "implemented": true, "kind": "function", "modifiers": [], "name": "delegatedFunction", "nodeType": "FunctionDefinition", "parameters": { "id": 885, "nodeType": "ParameterList", "parameters": [], "src": "391:2:6" }, "returnParameters": { "id": 888, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 887, "name": "", "nodeType": "VariableDeclaration", "scope": 892, "src": "417:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 886, "name": "bool", "nodeType": "ElementaryTypeName", "src": "417:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "416:6:6" }, "scope": 893, "src": "365:80:6", "stateMutability": "pure", "superFunction": null, "visibility": "external" } ], "scope": 894, "src": "215:232:6" } ], "src": "0:448:6" }, "bytecode": "0x608060405234801561001057600080fd5b5060e08061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c8063abf8e0e7146037578063f851a440146057575b600080fd5b603d609f565b604051808215151515815260200191505060405180910390f35b605d60a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006001905090565b6000631111114290509056fea165627a7a7230582021e2d519bfa0c47f7082196eae66f733b7c6dab361dc4ff1cd658ee4df3eba590029", "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c8063abf8e0e7146037578063f851a440146057575b600080fd5b603d609f565b604051808215151515815260200191505060405180910390f35b605d60a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006001905090565b6000631111114290509056fea165627a7a7230582021e2d519bfa0c47f7082196eae66f733b7c6dab361dc4ff1cd658ee4df3eba590029", "compiler": { "name": "solc", "version": "0.5.3+commit.10d17f24.Emscripten.clang", "optimizer": {}, "evmVersion": "constantinople" } }