UNPKG

@gooddollar/goodcontracts

Version:
1,013 lines 35.9 kB
{ "contractName": "ContextUpgradeable", "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-upgradeable/GSN/ContextUpgradeable.sol\":\"ContextUpgradeable\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/GSN/ContextUpgradeable.sol\":{\"keccak256\":\"0xbbf8a21b9a66c48d45ff771b8563c6df19ba451d63dfb8380a865c1e1f29d1a0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://062688aac76e27ab50157a9d645700cf92e3c0d51d3d860be1d2e1a0c04a87d0\",\"dweb:/ipfs/QmfXxppWAiSTeH8YNn2EtMPDgzrLeJ5rjRq8knEbje88mX\"]},\"@openzeppelin/contracts-upgradeable/proxy/Initializable.sol\":{\"keccak256\":\"0xae7044b7c89ed74327b0979ae6f317c65d87b8d17a42d0c62d698d77d5de5511\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d676c978d8ecee5c4510f045b747d94f3a1381e39feb870d2675d5b6d45a371b\",\"dweb:/ipfs/QmUAokuHWPVAf14QkhPtSdYFyNa8HVje9CBEzwCcxH3xkP\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\nimport \"../proxy/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 */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal initializer {\n __Context_init_unchained();\n }\n\n function __Context_init_unchained() internal initializer {\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 uint256[50] private __gap;\n}\n", "sourcePath": "@openzeppelin/contracts-upgradeable/GSN/ContextUpgradeable.sol", "ast": { "absolutePath": "@openzeppelin/contracts-upgradeable/GSN/ContextUpgradeable.sol", "exportedSymbols": { "ContextUpgradeable": [ 7743 ] }, "id": 7744, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 7700, "literals": [ "solidity", ">=", "0.6", ".0", "<", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:12" }, { "absolutePath": "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol", "file": "../proxy/Initializable.sol", "id": 7701, "nodeType": "ImportDirective", "scope": 7744, "sourceUnit": 8212, "src": "65:36:12", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7702, "name": "Initializable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8211, "src": "643:13:12", "typeDescriptions": { "typeIdentifier": "t_contract$_Initializable_$8211", "typeString": "contract Initializable" } }, "id": 7703, "nodeType": "InheritanceSpecifier", "src": "643:13:12" } ], "contractDependencies": [ 8211 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 7743, "linearizedBaseContracts": [ 7743, 8211 ], "name": "ContextUpgradeable", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 7711, "nodeType": "Block", "src": "710:43:12", "statements": [ { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 7708, "name": "__Context_init_unchained", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7718, "src": "720:24:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 7709, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "720:26:12", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7710, "nodeType": "ExpressionStatement", "src": "720:26:12" } ] }, "documentation": null, "id": 7712, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 7706, "modifierName": { "argumentTypes": null, "id": 7705, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8188, "src": "698:11:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "698:11:12" } ], "name": "__Context_init", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7704, "nodeType": "ParameterList", "parameters": [], "src": "686:2:12" }, "returnParameters": { "id": 7707, "nodeType": "ParameterList", "parameters": [], "src": "710:0:12" }, "scope": 7743, "src": "663:90:12", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 7717, "nodeType": "Block", "src": "816:7:12", "statements": [] }, "documentation": null, "id": 7718, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 7715, "modifierName": { "argumentTypes": null, "id": 7714, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8188, "src": "804:11:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "804:11:12" } ], "name": "__Context_init_unchained", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7713, "nodeType": "ParameterList", "parameters": [], "src": "792:2:12" }, "returnParameters": { "id": 7716, "nodeType": "ParameterList", "parameters": [], "src": "816:0:12" }, "scope": 7743, "src": "759:64:12", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 7726, "nodeType": "Block", "src": "898:34:12", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7723, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "915:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7724, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "915:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 7722, "id": 7725, "nodeType": "Return", "src": "908:17:12" } ] }, "documentation": null, "id": 7727, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7719, "nodeType": "ParameterList", "parameters": [], "src": "847:2:12" }, "returnParameters": { "id": 7722, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7721, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7727, "src": "881:15:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 7720, "name": "address", "nodeType": "ElementaryTypeName", "src": "881:15:12", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "value": null, "visibility": "internal" } ], "src": "880:17:12" }, "scope": 7743, "src": "828:104:12", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 7737, "nodeType": "Block", "src": "1003:165:12", "statements": [ { "expression": { "argumentTypes": null, "id": 7732, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "1013:4:12", "typeDescriptions": { "typeIdentifier": "t_contract$_ContextUpgradeable_$7743", "typeString": "contract ContextUpgradeable" } }, "id": 7733, "nodeType": "ExpressionStatement", "src": "1013:4:12" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7734, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1153:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7735, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1153:8:12", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 7731, "id": 7736, "nodeType": "Return", "src": "1146:15:12" } ] }, "documentation": null, "id": 7738, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7728, "nodeType": "ParameterList", "parameters": [], "src": "955:2:12" }, "returnParameters": { "id": 7731, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7730, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7738, "src": "989:12:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 7729, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "989:5:12", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "988:14:12" }, "scope": 7743, "src": "938:230:12", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "constant": false, "id": 7742, "mutability": "mutable", "name": "__gap", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7743, "src": "1173:25:12", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage", "typeString": "uint256[50]" }, "typeName": { "baseType": { "id": 7739, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1173:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7741, "length": { "argumentTypes": null, "hexValue": "3530", "id": 7740, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1181:2:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_50_by_1", "typeString": "int_const 50" }, "value": "50" }, "nodeType": "ArrayTypeName", "src": "1173:11:12", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage_ptr", "typeString": "uint256[50]" } }, "value": null, "visibility": "private" } ], "scope": 7744, "src": "603:598:12" } ], "src": "33:1169:12" }, "legacyAST": { "absolutePath": "@openzeppelin/contracts-upgradeable/GSN/ContextUpgradeable.sol", "exportedSymbols": { "ContextUpgradeable": [ 7743 ] }, "id": 7744, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 7700, "literals": [ "solidity", ">=", "0.6", ".0", "<", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:12" }, { "absolutePath": "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol", "file": "../proxy/Initializable.sol", "id": 7701, "nodeType": "ImportDirective", "scope": 7744, "sourceUnit": 8212, "src": "65:36:12", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 7702, "name": "Initializable", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8211, "src": "643:13:12", "typeDescriptions": { "typeIdentifier": "t_contract$_Initializable_$8211", "typeString": "contract Initializable" } }, "id": 7703, "nodeType": "InheritanceSpecifier", "src": "643:13:12" } ], "contractDependencies": [ 8211 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 7743, "linearizedBaseContracts": [ 7743, 8211 ], "name": "ContextUpgradeable", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 7711, "nodeType": "Block", "src": "710:43:12", "statements": [ { "expression": { "argumentTypes": null, "arguments": [], "expression": { "argumentTypes": [], "id": 7708, "name": "__Context_init_unchained", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 7718, "src": "720:24:12", "typeDescriptions": { "typeIdentifier": "t_function_internal_nonpayable$__$returns$__$", "typeString": "function ()" } }, "id": 7709, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "720:26:12", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 7710, "nodeType": "ExpressionStatement", "src": "720:26:12" } ] }, "documentation": null, "id": 7712, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 7706, "modifierName": { "argumentTypes": null, "id": 7705, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8188, "src": "698:11:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "698:11:12" } ], "name": "__Context_init", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7704, "nodeType": "ParameterList", "parameters": [], "src": "686:2:12" }, "returnParameters": { "id": 7707, "nodeType": "ParameterList", "parameters": [], "src": "710:0:12" }, "scope": 7743, "src": "663:90:12", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 7717, "nodeType": "Block", "src": "816:7:12", "statements": [] }, "documentation": null, "id": 7718, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 7715, "modifierName": { "argumentTypes": null, "id": 7714, "name": "initializer", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 8188, "src": "804:11:12", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "804:11:12" } ], "name": "__Context_init_unchained", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7713, "nodeType": "ParameterList", "parameters": [], "src": "792:2:12" }, "returnParameters": { "id": 7716, "nodeType": "ParameterList", "parameters": [], "src": "816:0:12" }, "scope": 7743, "src": "759:64:12", "stateMutability": "nonpayable", "virtual": false, "visibility": "internal" }, { "body": { "id": 7726, "nodeType": "Block", "src": "898:34:12", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7723, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "915:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7724, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "915:10:12", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 7722, "id": 7725, "nodeType": "Return", "src": "908:17:12" } ] }, "documentation": null, "id": 7727, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7719, "nodeType": "ParameterList", "parameters": [], "src": "847:2:12" }, "returnParameters": { "id": 7722, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7721, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7727, "src": "881:15:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 7720, "name": "address", "nodeType": "ElementaryTypeName", "src": "881:15:12", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "value": null, "visibility": "internal" } ], "src": "880:17:12" }, "scope": 7743, "src": "828:104:12", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 7737, "nodeType": "Block", "src": "1003:165:12", "statements": [ { "expression": { "argumentTypes": null, "id": 7732, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "1013:4:12", "typeDescriptions": { "typeIdentifier": "t_contract$_ContextUpgradeable_$7743", "typeString": "contract ContextUpgradeable" } }, "id": 7733, "nodeType": "ExpressionStatement", "src": "1013:4:12" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 7734, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "1153:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 7735, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1153:8:12", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 7731, "id": 7736, "nodeType": "Return", "src": "1146:15:12" } ] }, "documentation": null, "id": 7738, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 7728, "nodeType": "ParameterList", "parameters": [], "src": "955:2:12" }, "returnParameters": { "id": 7731, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7730, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7738, "src": "989:12:12", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 7729, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "989:5:12", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "988:14:12" }, "scope": 7743, "src": "938:230:12", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "constant": false, "id": 7742, "mutability": "mutable", "name": "__gap", "nodeType": "VariableDeclaration", "overrides": null, "scope": 7743, "src": "1173:25:12", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage", "typeString": "uint256[50]" }, "typeName": { "baseType": { "id": 7739, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1173:7:12", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 7741, "length": { "argumentTypes": null, "hexValue": "3530", "id": 7740, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "1181:2:12", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_50_by_1", "typeString": "int_const 50" }, "value": "50" }, "nodeType": "ArrayTypeName", "src": "1173:11:12", "typeDescriptions": { "typeIdentifier": "t_array$_t_uint256_$50_storage_ptr", "typeString": "uint256[50]" } }, "value": null, "visibility": "private" } ], "scope": 7744, "src": "603:598:12" } ], "src": "33:1169:12" }, "compiler": { "name": "solc", "version": "0.6.12+commit.27d51765.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.0", "updatedAt": "2021-01-17T13:45:27.179Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }