UNPKG

aibc

Version:
515 lines 18.3 kB
{ "contractName": "Context", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/Context.sol\":\"Context\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0xf930d2df426bfcfc1f7415be724f04081c96f4fb9ec8d0e3a521c07692dface0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fc2bfdea0d2562c76fb3c4cf70a86c6ba25c5a30e8f8515c95aafdf8383f8395\",\"dweb:/ipfs/QmTbFya18786ckJfLYUoWau9jBTKfmWnWm5XSViWvB7PXN\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n\npragma solidity ^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 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) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\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\\utils\\Context.sol", "ast": { "absolutePath": "@openzeppelin/contracts/utils/Context.sol", "exportedSymbols": { "Context": [ 4020 ] }, "id": 4021, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 3999, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:23:12" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 4020, "linearizedBaseContracts": [ 4020 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 4007, "nodeType": "Block", "src": "648:34:12", "statements": [ { "expression": { "expression": { "id": 4004, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "665:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4005, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "665:10:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 4003, "id": 4006, "nodeType": "Return", "src": "658:17:12" } ] }, "id": 4008, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { "id": 4000, "nodeType": "ParameterList", "parameters": [], "src": "605:2:12" }, "returnParameters": { "id": 4003, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4002, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 4008, "src": "639:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4001, "name": "address", "nodeType": "ElementaryTypeName", "src": "639:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "638:9:12" }, "scope": 4020, "src": "586:96:12", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 4018, "nodeType": "Block", "src": "755:165:12", "statements": [ { "expression": { "id": 4013, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967268, "src": "765:4:12", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$4020", "typeString": "contract Context" } }, "id": 4014, "nodeType": "ExpressionStatement", "src": "765:4:12" }, { "expression": { "expression": { "id": 4015, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "905:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4016, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "src": "905:8:12", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 4012, "id": 4017, "nodeType": "Return", "src": "898:15:12" } ] }, "id": 4019, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { "id": 4009, "nodeType": "ParameterList", "parameters": [], "src": "705:2:12" }, "returnParameters": { "id": 4012, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4011, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 4019, "src": "739:14:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 4010, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "739:5:12", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "738:16:12" }, "scope": 4020, "src": "688:232:12", "stateMutability": "view", "virtual": true, "visibility": "internal" } ], "scope": 4021, "src": "554:368:12" } ], "src": "33:890:12" }, "legacyAST": { "absolutePath": "@openzeppelin/contracts/utils/Context.sol", "exportedSymbols": { "Context": [ 4020 ] }, "id": 4021, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 3999, "literals": [ "solidity", "^", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:23:12" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 4020, "linearizedBaseContracts": [ 4020 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 4007, "nodeType": "Block", "src": "648:34:12", "statements": [ { "expression": { "expression": { "id": 4004, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "665:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4005, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "665:10:12", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 4003, "id": 4006, "nodeType": "Return", "src": "658:17:12" } ] }, "id": 4008, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { "id": 4000, "nodeType": "ParameterList", "parameters": [], "src": "605:2:12" }, "returnParameters": { "id": 4003, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4002, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 4008, "src": "639:7:12", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4001, "name": "address", "nodeType": "ElementaryTypeName", "src": "639:7:12", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "638:9:12" }, "scope": 4020, "src": "586:96:12", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 4018, "nodeType": "Block", "src": "755:165:12", "statements": [ { "expression": { "id": 4013, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967268, "src": "765:4:12", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$4020", "typeString": "contract Context" } }, "id": 4014, "nodeType": "ExpressionStatement", "src": "765:4:12" }, { "expression": { "expression": { "id": 4015, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "905:3:12", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4016, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "src": "905:8:12", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 4012, "id": 4017, "nodeType": "Return", "src": "898:15:12" } ] }, "id": 4019, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { "id": 4009, "nodeType": "ParameterList", "parameters": [], "src": "705:2:12" }, "returnParameters": { "id": 4012, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4011, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 4019, "src": "739:14:12", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 4010, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "739:5:12", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "738:16:12" }, "scope": 4020, "src": "688:232:12", "stateMutability": "view", "virtual": true, "visibility": "internal" } ], "scope": 4021, "src": "554:368:12" } ], "src": "33:890:12" }, "compiler": { "name": "solc", "version": "0.8.0+commit.c7dfd78e.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.4", "updatedAt": "2021-05-19T08:21:33.415Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }