UNPKG

@daostack/arc-hive

Version:

A dao's registry

595 lines 21 kB
{ "contractName": "Context", "abi": [ { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.15+commit.6a57276f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol\":\"Context\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol\":{\"keccak256\":\"0x0d4306da5305cb78f09c70c18ec86dbc66f22fa5ade90edc20e1ab88e16d4d10\",\"urls\":[\"bzz-raw://c89dee1b8e96cb83f529b8b5c93be6b420c1913363a3fed01241942f08cc968f\",\"dweb:/ipfs/QmfWWwzg9hah3YwZRFWvAwq91HLjCHkKnxXqP6uLGURUou\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.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 not 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 */\ncontract Context {\n // Empty internal constructor, to prevent people from mistakenly deploying\n // an instance of this contract, with should be used via inheritance.\n constructor () internal { }\n // solhint-disable-previous-line no-empty-blocks\n\n function _msgSender() internal view returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view 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-ethereum-package/contracts/GSN/Context.sol", "ast": { "absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ 187 ] }, "id": 188, "nodeType": "SourceUnit", "nodes": [ { "id": 162, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 187, "linearizedBaseContracts": [ 187 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 165, "nodeType": "Block", "src": "729:3:2", "statements": [] }, "documentation": null, "id": 166, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 163, "nodeType": "ParameterList", "parameters": [], "src": "717:2:2" }, "returnParameters": { "id": 164, "nodeType": "ParameterList", "parameters": [], "src": "729:0:2" }, "scope": 187, "src": "705:27:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 174, "nodeType": "Block", "src": "845:34:2", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 171, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 389, "src": "862:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 172, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "862:10:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 170, "id": 173, "nodeType": "Return", "src": "855:17:2" } ] }, "documentation": null, "id": 175, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { "id": 167, "nodeType": "ParameterList", "parameters": [], "src": "810:2:2" }, "returnParameters": { "id": 170, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 169, "name": "", "nodeType": "VariableDeclaration", "scope": 175, "src": "836:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 168, "name": "address", "nodeType": "ElementaryTypeName", "src": "836:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "835:9:2" }, "scope": 187, "src": "791:88:2", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 185, "nodeType": "Block", "src": "942:165:2", "statements": [ { "expression": { "argumentTypes": null, "id": 180, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 405, "src": "952:4:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$187", "typeString": "contract Context" } }, "id": 181, "nodeType": "ExpressionStatement", "src": "952:4:2" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 182, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 389, "src": "1092:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1092:8:2", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 179, "id": 184, "nodeType": "Return", "src": "1085:15:2" } ] }, "documentation": null, "id": 186, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { "id": 176, "nodeType": "ParameterList", "parameters": [], "src": "902:2:2" }, "returnParameters": { "id": 179, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 178, "name": "", "nodeType": "VariableDeclaration", "scope": 186, "src": "928:12:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 177, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "928:5:2", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "927:14:2" }, "scope": 187, "src": "885:222:2", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], "scope": 188, "src": "529:580:2" } ], "src": "0:1110:2" }, "legacyAST": { "absolutePath": "@openzeppelin/contracts-ethereum-package/contracts/GSN/Context.sol", "exportedSymbols": { "Context": [ 187 ] }, "id": 188, "nodeType": "SourceUnit", "nodes": [ { "id": 162, "literals": [ "solidity", "^", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:23:2" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 187, "linearizedBaseContracts": [ 187 ], "name": "Context", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 165, "nodeType": "Block", "src": "729:3:2", "statements": [] }, "documentation": null, "id": 166, "implemented": true, "kind": "constructor", "modifiers": [], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 163, "nodeType": "ParameterList", "parameters": [], "src": "717:2:2" }, "returnParameters": { "id": 164, "nodeType": "ParameterList", "parameters": [], "src": "729:0:2" }, "scope": 187, "src": "705:27:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "internal" }, { "body": { "id": 174, "nodeType": "Block", "src": "845:34:2", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 171, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 389, "src": "862:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 172, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "862:10:2", "typeDescriptions": { "typeIdentifier": "t_address_payable", "typeString": "address payable" } }, "functionReturnParameters": 170, "id": 173, "nodeType": "Return", "src": "855:17:2" } ] }, "documentation": null, "id": 175, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgSender", "nodeType": "FunctionDefinition", "parameters": { "id": 167, "nodeType": "ParameterList", "parameters": [], "src": "810:2:2" }, "returnParameters": { "id": 170, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 169, "name": "", "nodeType": "VariableDeclaration", "scope": 175, "src": "836:7:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 168, "name": "address", "nodeType": "ElementaryTypeName", "src": "836:7:2", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "835:9:2" }, "scope": 187, "src": "791:88:2", "stateMutability": "view", "superFunction": null, "visibility": "internal" }, { "body": { "id": 185, "nodeType": "Block", "src": "942:165:2", "statements": [ { "expression": { "argumentTypes": null, "id": 180, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 405, "src": "952:4:2", "typeDescriptions": { "typeIdentifier": "t_contract$_Context_$187", "typeString": "contract Context" } }, "id": 181, "nodeType": "ExpressionStatement", "src": "952:4:2" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, "id": 182, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 389, "src": "1092:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, "id": 183, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "data", "nodeType": "MemberAccess", "referencedDeclaration": null, "src": "1092:8:2", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes calldata" } }, "functionReturnParameters": 179, "id": 184, "nodeType": "Return", "src": "1085:15:2" } ] }, "documentation": null, "id": 186, "implemented": true, "kind": "function", "modifiers": [], "name": "_msgData", "nodeType": "FunctionDefinition", "parameters": { "id": 176, "nodeType": "ParameterList", "parameters": [], "src": "902:2:2" }, "returnParameters": { "id": 179, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 178, "name": "", "nodeType": "VariableDeclaration", "scope": 186, "src": "928:12:2", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 177, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "928:5:2", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "927:14:2" }, "scope": 187, "src": "885:222:2", "stateMutability": "view", "superFunction": null, "visibility": "internal" } ], "scope": 188, "src": "529:580:2" } ], "src": "0:1110:2" }, "compiler": { "name": "solc", "version": "0.5.15+commit.6a57276f.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.23", "updatedAt": "2020-08-17T10:47:12.028Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }