UNPKG

@rsksmart/rif-marketplace-storage

Version:
1,007 lines 36.2 kB
{ "contractName": "ContextUpgradeSafe", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol\":\"ContextUpgradeSafe\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol\":{\"keccak256\":\"0xe81686511d62f18b2d9c693c2c94c0a789c690de63aa90e15451ebf65c5bfd3e\",\"urls\":[\"bzz-raw://1332ee1d2b096456bf2e5795b5871d0fed47be6a31c9a2f2cef9206a299565ea\",\"dweb:/ipfs/Qmdu1847Y4UL3gTjbLUManMGfxYEoyGPSodM3Br89SKzwx\"]},\"@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol\":{\"keccak256\":\"0x9bfec92e36234ecc99b5d37230acb6cd1f99560233753162204104a4897e8721\",\"urls\":[\"bzz-raw://5cf7c208583d4d046d75bd99f5507412ab01cce9dd9f802ce9768a416d93ea2f\",\"dweb:/ipfs/QmcQS1BBMPpVEkXP3qzwSjxHNrqDek8YeR7xbVWDC9ApC7\"]}},\"version\":1}", "bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220fe661dc0dd617e81159088fc26a41d59a4fedf80e359a6e9bf5410ffb407ea6f64736f6c634300060c0033", "deployedBytecode": "0x6080604052600080fdfea2646970667358221220fe661dc0dd617e81159088fc26a41d59a4fedf80e359a6e9bf5410ffb407ea6f64736f6c634300060c0033", "immutableReferences": {}, "sourceMap": "556:749:6:-:0;;;;;;;;;;;;;;;;;;;", "deployedSourceMap": "556:749:6:-:0;;;;;", "source": "pragma solidity ^0.6.0;\nimport \"../Initializable.sol\";\n\n/*\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with GSN meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\ncontract ContextUpgradeSafe is Initializable {\n // Empty internal constructor, to prevent people from mistakenly deploying\n // an instance of this contract, which should be used via inheritance.\n\n function __Context_init() internal initializer {\n __Context_init_unchained();\n }\n\n function __Context_init_unchained() internal initializer {\n\n\n }\n\n\n function _msgSender() internal view virtual returns (address payable) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n\n uint256[50] private __gap;\n}\n", "sourcePath": "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol", "ast": { "absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol", "exportedSymbols": { "ContextUpgradeSafe": [ 2108 ] }, "id": 2109, "license": null, "nodeType": "SourceUnit", "nodes": [ { "id": 2065, "literals": [ "solidity", "^", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol", "file": "../Initializable.sol", "id": 2066, "nodeType": "ImportDirective", "scope": 2109, "sourceUnit": 2184, "src": "24:30:6", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 2067, "name": "Initializable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 2183, "src": "587:13:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Initializable_$2183", "typeString": "contract Initializable" } }, "id": 2068, "nodeType": "InheritanceSpecifier", "src": "587:13:6" } ], "contractDependencies": [ 2183 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2108, "linearizedBaseContracts": [ 2108, 2183 ], "name": "ContextUpgradeSafe", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 2076, "nodeType": "Block", "src": "809:43:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 2073, "name": "__Context_init_unchained", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2083, "src": "819:24:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2074, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "819:26:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2075, "nodeType": "ExpressionStatement", "src": "819:26:6" } ] }, "documentation": null, "id": 2077, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 2071, "modifierName": { "argumentTypes": null, "id": 2070, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2156, "src": "797:11:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "797:11:6" } ], "name": "__Context_init", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2069, "nodeType": "ParameterList", "parameters": [], "src": "785:2:6" }, "returnParameters": { "id": 2072, "nodeType": "ParameterList", "parameters": [], "src": "809:0:6" }, "scope": 2108, "src": "762:90:6", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 2082, "nodeType": "Block", "src": "915:9:6", "statements": [] }, "documentation": null, "id": 2083, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 2080, "modifierName": { "argumentTypes": null, "id": 2079, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2156, "src": "903:11:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "903:11:6" } ], "name": "__Context_init_unchained", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2078, "nodeType": "ParameterList", "parameters": [], "src": "891:2:6" }, "returnParameters": { "id": 2081, "nodeType": "ParameterList", "parameters": [], "src": "915:0:6" }, "scope": 2108, "src": "858:66:6", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 2091, "nodeType": "Block", "src": "1001:34:6", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2088, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1018:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2089, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1018:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 2087, "id": 2090, "nodeType": "Return", "src": "1011:17:6" } ] }, "documentation": null, "id": 2092, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2084, "nodeType": "ParameterList", "parameters": [], "src": "950:2:6" }, "returnParameters": { "id": 2087, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2086, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2092, "src": "984:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 2085, "name": "address", "nodeType": "ElementaryTypeName", "src": "984:15:6", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "value": null, "visibility": "internal" } ], "src": "983:17:6" }, "scope": 2108, "src": "931:104:6", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 2102, "nodeType": "Block", "src": "1106:165:6", "statements": [ { "expression": { "argumentTypes": null, "id": 2097, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "1116:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ContextUpgradeSafe_$2108", "typeString": "contract ContextUpgradeSafe" } }, "id": 2098, "nodeType": "ExpressionStatement", "src": "1116:4:6" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2099, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1256:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2100, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1256:8:6", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 2096, "id": 2101, "nodeType": "Return", "src": "1249:15:6" } ] }, "documentation": null, "id": 2103, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2093, "nodeType": "ParameterList", "parameters": [], "src": "1058:2:6" }, "returnParameters": { "id": 2096, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2095, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2103, "src": "1092:12:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2094, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1092:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "1091:14:6" }, "scope": 2108, "src": "1041:230:6", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "constant": false, "id": 2107, "mutability": "mutable", "name": "__gap", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2108, "src": "1277:25:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage", "typeString": "uint256[50]" }, "typeName": { "baseType": { "id": 2104, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1277:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2106, "length": { "argumentTypes": null, "hexValue": "3530", "id": 2105, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1285:2:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_50_by_1", "typeString": "int_const 50" }, "value": "50" }, "nodeType": "ArrayTypeName", "src": "1277:11:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage_ptr", "typeString": "uint256[50]" } }, "value": null, "visibility": "private" } ], "scope": 2109, "src": "556:749:6" } ], "src": "0:1306:6" }, "legacyAST": { "absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol", "exportedSymbols": { "ContextUpgradeSafe": [ 2108 ] }, "id": 2109, "license": null, "nodeType": "SourceUnit", "nodes": [ { "id": 2065, "literals": [ "solidity", "^", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:6" }, { "absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol", "file": "../Initializable.sol", "id": 2066, "nodeType": "ImportDirective", "scope": 2109, "sourceUnit": 2184, "src": "24:30:6", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 2067, "name": "Initializable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 2183, "src": "587:13:6", "typeDescriptions": { "typeIdentifier": "t_contract$_Initializable_$2183", "typeString": "contract Initializable" } }, "id": 2068, "nodeType": "InheritanceSpecifier", "src": "587:13:6" } ], "contractDependencies": [ 2183 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2108, "linearizedBaseContracts": [ 2108, 2183 ], "name": "ContextUpgradeSafe", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 2076, "nodeType": "Block", "src": "809:43:6", "statements": [ { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 2073, "name": "__Context_init_unchained", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2083, "src": "819:24:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 2074, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "819:26:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 2075, "nodeType": "ExpressionStatement", "src": "819:26:6" } ] }, "documentation": null, "id": 2077, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 2071, "modifierName": { "argumentTypes": null, "id": 2070, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2156, "src": "797:11:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "797:11:6" } ], "name": "__Context_init", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2069, "nodeType": "ParameterList", "parameters": [], "src": "785:2:6" }, "returnParameters": { "id": 2072, "nodeType": "ParameterList", "parameters": [], "src": "809:0:6" }, "scope": 2108, "src": "762:90:6", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 2082, "nodeType": "Block", "src": "915:9:6", "statements": [] }, "documentation": null, "id": 2083, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 2080, "modifierName": { "argumentTypes": null, "id": 2079, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 2156, "src": "903:11:6", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "903:11:6" } ], "name": "__Context_init_unchained", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2078, "nodeType": "ParameterList", "parameters": [], "src": "891:2:6" }, "returnParameters": { "id": 2081, "nodeType": "ParameterList", "parameters": [], "src": "915:0:6" }, "scope": 2108, "src": "858:66:6", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 2091, "nodeType": "Block", "src": "1001:34:6", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2088, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1018:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2089, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1018:10:6", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 2087, "id": 2090, "nodeType": "Return", "src": "1011:17:6" } ] }, "documentation": null, "id": 2092, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2084, "nodeType": "ParameterList", "parameters": [], "src": "950:2:6" }, "returnParameters": { "id": 2087, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2086, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2092, "src": "984:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 2085, "name": "address", "nodeType": "ElementaryTypeName", "src": "984:15:6", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "value": null, "visibility": "internal" } ], "src": "983:17:6" }, "scope": 2108, "src": "931:104:6", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 2102, "nodeType": "Block", "src": "1106:165:6", "statements": [ { "expression": { "argumentTypes": null, "id": 2097, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "1116:4:6", "typeDescriptions": { "typeIdentifier": "t_contract$_ContextUpgradeSafe_$2108", "typeString": "contract ContextUpgradeSafe" } }, "id": 2098, "nodeType": "ExpressionStatement", "src": "1116:4:6" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2099, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1256:3:6", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2100, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1256:8:6", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 2096, "id": 2101, "nodeType": "Return", "src": "1249:15:6" } ] }, "documentation": null, "id": 2103, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2093, "nodeType": "ParameterList", "parameters": [], "src": "1058:2:6" }, "returnParameters": { "id": 2096, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2095, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2103, "src": "1092:12:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2094, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1092:5:6", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "1091:14:6" }, "scope": 2108, "src": "1041:230:6", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "constant": false, "id": 2107, "mutability": "mutable", "name": "__gap", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2108, "src": "1277:25:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage", "typeString": "uint256[50]" }, "typeName": { "baseType": { "id": 2104, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1277:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 2106, "length": { "argumentTypes": null, "hexValue": "3530", "id": 2105, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1285:2:6", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_50_by_1", "typeString": "int_const 50" }, "value": "50" }, "nodeType": "ArrayTypeName", "src": "1277:11:6", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage_ptr", "typeString": "uint256[50]" } }, "value": null, "visibility": "private" } ], "scope": 2109, "src": "556:749:6" } ], "src": "0:1306:6" }, "compiler": { "name": "solc", "version": "0.6.12+commit.27d51765.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.2", "updatedAt": "2021-03-04T12:24:19.855Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }