UNPKG

@vporton/future-contracts

Version:

Ethereum accounts bid on future financing (essentially, transfer money from the future) - smart contracts

570 lines 19.7 kB
{ "contractName": "Context", "abi": [], "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"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\":1000000},\"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": {}, "generatedSources": [], "deployedGeneratedSources": [], "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": [ 4324 ] }, "id": 4325, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 4303, "literals": [ "solidity", ">=", "0.6", ".0", "<", "0.8", ".0" ], "nodeType": "PragmaDirective", "src": "33:31:17" }, { "abstract": true, "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "fullyImplemented": true, "id": 4324, "linearizedBaseContracts": [ 4324 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 4311, "nodeType": "Block", "src": "668:34:17", "statements": [ { "expression": { "expression": { "id": 4308, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "685:3:17", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4309, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "src": "685:10:17", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 4307, "id": 4310, "nodeType": "Return", "src": "678:17:17" } ] }, "id": 4312, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { "id": 4304, "nodeType": "ParameterList", "parameters": [], "src": "617:2:17" }, "returnParameters": { "id": 4307, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4306, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 4312, "src": "651:15:17", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" }, "typeName": { "id": 4305, "name": "address", "nodeType": "ElementaryTypeName", "src": "651:15:17", "stateMutability": "payable", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "visibility": "internal" } ], "src": "650:17:17" }, "scope": 4324, "src": "598:104:17", "stateMutability": "view", "virtual": true, "visibility": "internal" }, { "body": { "id": 4322, "nodeType": "Block", "src": "773:165:17", "statements": [ { "expression": { "id": 4317, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967268, "src": "783:4:17", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$4324", "typeString": "contract Context" } }, "id": 4318, "nodeType": "ExpressionStatement", "src": "783:4:17" }, { "expression": { "expression": { "id": 4319, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4294967281, "src": "923:3:17", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 4320, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "src": "923:8:17", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 4316, "id": 4321, "nodeType": "Return", "src": "916:15:17" } ] }, "id": 4323, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { "id": 4313, "nodeType": "ParameterList", "parameters": [], "src": "725:2:17" }, "returnParameters": { "id": 4316, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4315, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 4323, "src": "759:12:17", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 4314, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "759:5:17", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "758:14:17" }, "scope": 4324, "src": "708:230:17", "stateMutability": "view", "virtual": true, "visibility": "internal" } ], "scope": 4325, "src": "566:374:17" } ], "src": "33:908:17" }, "legacyAST": { "attributes": { "absolutePath": "@openzeppelin/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ 4324 ] }, "license": "MIT" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.6", ".0", "<", "0.8", ".0" ] }, "id": 4303, "name": "PragmaDirective", "src": "33:31:17" }, { "attributes": { "abstract": true, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "contract", "fullyImplemented": true, "linearizedBaseContracts": [ 4324 ], "name": "Context", "scope": 4325 }, "children": [ { "attributes": { "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_msgSender", "scope": 4324, "stateMutability": "view", "virtual": true, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 4304, "name": "ParameterList", "src": "617:2:17" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 4312, "stateVariable": false, "storageLocation": "default", "type": "address payable", "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "payable", "type": "address payable" }, "id": 4305, "name": "ElementaryTypeName", "src": "651:15:17" } ], "id": 4306, "name": "VariableDeclaration", "src": "651:15:17" } ], "id": 4307, "name": "ParameterList", "src": "650:17:17" }, { "children": [ { "attributes": { "functionReturnParameters": 4307 }, "children": [ { "attributes": { "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "sender", "type": "address payable" }, "children": [ { "attributes": { "overloadedDeclarations": [ null ], "referencedDeclaration": 4294967281, "type": "msg", "value": "msg" }, "id": 4308, "name": "Identifier", "src": "685:3:17" } ], "id": 4309, "name": "MemberAccess", "src": "685:10:17" } ], "id": 4310, "name": "Return", "src": "678:17:17" } ], "id": 4311, "name": "Block", "src": "668:34:17" } ], "id": 4312, "name": "FunctionDefinition", "src": "598:104:17" }, { "attributes": { "implemented": true, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "_msgData", "scope": 4324, "stateMutability": "view", "virtual": true, "visibility": "internal" }, "children": [ { "attributes": { "parameters": [ null ] }, "children": [], "id": 4313, "name": "ParameterList", "src": "725:2:17" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 4323, "stateVariable": false, "storageLocation": "memory", "type": "bytes", "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes", "type": "bytes" }, "id": 4314, "name": "ElementaryTypeName", "src": "759:5:17" } ], "id": 4315, "name": "VariableDeclaration", "src": "759:12:17" } ], "id": 4316, "name": "ParameterList", "src": "758:14:17" }, { "children": [ { "children": [ { "attributes": { "overloadedDeclarations": [ null ], "referencedDeclaration": 4294967268, "type": "contract Context", "value": "this" }, "id": 4317, "name": "Identifier", "src": "783:4:17" } ], "id": 4318, "name": "ExpressionStatement", "src": "783:4:17" }, { "attributes": { "functionReturnParameters": 4316 }, "children": [ { "attributes": { "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "member_name": "data", "type": "bytes calldata" }, "children": [ { "attributes": { "overloadedDeclarations": [ null ], "referencedDeclaration": 4294967281, "type": "msg", "value": "msg" }, "id": 4319, "name": "Identifier", "src": "923:3:17" } ], "id": 4320, "name": "MemberAccess", "src": "923:8:17" } ], "id": 4321, "name": "Return", "src": "916:15:17" } ], "id": 4322, "name": "Block", "src": "773:165:17" } ], "id": 4323, "name": "FunctionDefinition", "src": "708:230:17" } ], "id": 4324, "name": "ContractDefinition", "src": "566:374:17" } ], "id": 4325, "name": "SourceUnit", "src": "33:908:17" }, "compiler": { "name": "solc", "version": "0.7.6+commit.7338295f.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2021-06-03T23:56:22.327Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }