UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

356 lines 14.4 kB
{ "contractName": "Context", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/Context.sol\":\"Context\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n", "sourcePath": "@openzeppelin\\contracts\\utils\\Context.sol", "ast": { "absolutePath": "@openzeppelin/contracts/utils/Context.sol", "exportedSymbols": { "Context": [ 523 ] }, "id": 524, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 495, "literals": [ "solidity", "^", "0.8", ".20" ], "nodeType": "PragmaDirective", "src": "101:24:3" }, { "abstract": true, "baseContracts": [], "canonicalName": "Context", "contractDependencies": [], "contractKind": "contract", "documentation": { "id": 496, "nodeType": "StructuredDocumentation", "src": "127:496:3", "text": " @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 This contract is only required for intermediate, library-like contracts." }, "fullyImplemented": true, "id": 523, "linearizedBaseContracts": [ 523 ], "name": "Context", "nameLocation": "642:7:3", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 504, "nodeType": "Block", "src": "718:34:3", "statements": [ { "expression": { "expression": { "id": 501, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "735:3:3", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 502, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "739:6:3", "memberName": "sender", "nodeType": "MemberAccess", "src": "735:10:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "functionReturnParameters": 500, "id": 503, "nodeType": "Return", "src": "728:17:3" } ] }, "id": 505, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nameLocation": "665:10:3", "nodeType": "FunctionDefinition", "parameters": { "id": 497, "nodeType": "ParameterList", "parameters": [], "src": "675:2:3" }, "returnParameters": { "id": 500, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 499, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 505, "src": "709:7:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 498, "name": "address", "nodeType": "ElementaryTypeName", "src": "709:7:3", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "708:9:3" }, "scope": 523, "src": "656:96:3", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 513, "nodeType": "Block", "src": "825:32:3", "statements": [ { "expression": { "expression": { "id": 510, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "842:3:3", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 511, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberLocation": "846:4:3", "memberName": "data", "nodeType": "MemberAccess", "src": "842:8:3", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 509, "id": 512, "nodeType": "Return", "src": "835:15:3" } ] }, "id": 514, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nameLocation": "767:8:3", "nodeType": "FunctionDefinition", "parameters": { "id": 506, "nodeType": "ParameterList", "parameters": [], "src": "775:2:3" }, "returnParameters": { "id": 509, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 508, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 514, "src": "809:14:3", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 507, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "809:5:3", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "808:16:3" }, "scope": 523, "src": "758:99:3", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 521, "nodeType": "Block", "src": "935:25:3", "statements": [ { "expression": { "hexValue": "30", "id": 519, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "952:1:3", "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", "typeString": "int_const 0" }, "value": "0" }, "functionReturnParameters": 518, "id": 520, "nodeType": "Return", "src": "945:8:3" } ] }, "id": 522, "implemented": true, "kind": "function", "modifiers": [], "name": "_contextSuffixLength", "nameLocation": "872:20:3", "nodeType": "FunctionDefinition", "parameters": { "id": 515, "nodeType": "ParameterList", "parameters": [], "src": "892:2:3" }, "returnParameters": { "id": 518, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 517, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 522, "src": "926:7:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 516, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "926:7:3", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "925:9:3" }, "scope": 523, "src": "863:97:3", "stateMutability": "view", "virtual": true, "visibility": "internal" } ], "scope": 524, "src": "624:338:3", "usedErrors": [], "usedEvents": [] } ], "src": "101:862:3" }, "compiler": { "name": "solc", "version": "0.8.30+commit.73712a01.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.16", "updatedAt": "2025-10-15T14:34:45.316Z", "devdoc": { "details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }