UNPKG

@rsksmart/rif-marketplace-storage

Version:
551 lines 19.6 kB
{ "contractName": "Context", "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/GSN/Context.sol\":\"Context\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/GSN/Context.sol\":{\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ded47ec7c96750f9bd04bbbc84f659992d4ba901cb7b532a52cd468272cf378f\",\"dweb:/ipfs/QmfBrGtQP7rZEqEg6Wz6jh2N2Kukpj1z5v3CGWmAqrzm96\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\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 Context {\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", "sourcePath": "@openzeppelin/contracts/GSN/Context.sol", "ast": { "absolutePath": "@openzeppelin/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ 2447 ] }, "id": 2448, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 2426, "literals": [ "solidity", ">=", "0.6", ".0", "<", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:10" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2447, "linearizedBaseContracts": [ 2447 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 2434, "nodeType": "Block", "src": "668:34:10", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2431, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "685:3:10", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2432, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "685:10:10", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 2430, "id": 2433, "nodeType": "Return", "src": "678:17:10" } ] }, "documentation": null, "id": 2435, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2427, "nodeType": "ParameterList", "parameters": [], "src": "617:2:10" }, "returnParameters": { "id": 2430, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2429, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2435, "src": "651:15:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 2428, "name": "address", "nodeType": "ElementaryTypeName", "src": "651:15:10", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "value": null, "visibility": "internal" } ], "src": "650:17:10" }, "scope": 2447, "src": "598:104:10", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 2445, "nodeType": "Block", "src": "773:165:10", "statements": [ { "expression": { "argumentTypes": null, "id": 2440, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "783:4:10", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$2447", "typeString": "contract Context" } }, "id": 2441, "nodeType": "ExpressionStatement", "src": "783:4:10" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2442, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "923:3:10", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2443, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "923:8:10", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 2439, "id": 2444, "nodeType": "Return", "src": "916:15:10" } ] }, "documentation": null, "id": 2446, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2436, "nodeType": "ParameterList", "parameters": [], "src": "725:2:10" }, "returnParameters": { "id": 2439, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2438, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2446, "src": "759:12:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2437, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "759:5:10", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "758:14:10" }, "scope": 2447, "src": "708:230:10", "stateMutability": "view", "virtual": true, "visibility": "internal" } ], "scope": 2448, "src": "566:374:10" } ], "src": "33:908:10" }, "legacyAST": { "absolutePath": "@openzeppelin/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ 2447 ] }, "id": 2448, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 2426, "literals": [ "solidity", ">=", "0.6", ".0", "<", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:10" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 2447, "linearizedBaseContracts": [ 2447 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 2434, "nodeType": "Block", "src": "668:34:10", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2431, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "685:3:10", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2432, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "685:10:10", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 2430, "id": 2433, "nodeType": "Return", "src": "678:17:10" } ] }, "documentation": null, "id": 2435, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2427, "nodeType": "ParameterList", "parameters": [], "src": "617:2:10" }, "returnParameters": { "id": 2430, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2429, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2435, "src": "651:15:10", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 2428, "name": "address", "nodeType": "ElementaryTypeName", "src": "651:15:10", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "value": null, "visibility": "internal" } ], "src": "650:17:10" }, "scope": 2447, "src": "598:104:10", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 2445, "nodeType": "Block", "src": "773:165:10", "statements": [ { "expression": { "argumentTypes": null, "id": 2440, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -28, "src": "783:4:10", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$2447", "typeString": "contract Context" } }, "id": 2441, "nodeType": "ExpressionStatement", "src": "783:4:10" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 2442, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": -15, "src": "923:3:10", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 2443, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "923:8:10", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 2439, "id": 2444, "nodeType": "Return", "src": "916:15:10" } ] }, "documentation": null, "id": 2446, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2436, "nodeType": "ParameterList", "parameters": [], "src": "725:2:10" }, "returnParameters": { "id": 2439, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2438, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2446, "src": "759:12:10", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 2437, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "759:5:10", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "758:14:10" }, "scope": 2447, "src": "708:230:10", "stateMutability": "view", "virtual": true, "visibility": "internal" } ], "scope": 2448, "src": "566:374:10" } ], "src": "33:908:10" }, "compiler": { "name": "solc", "version": "0.6.12+commit.27d51765.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.2", "updatedAt": "2021-03-04T12:24:19.866Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }