mirror of https://github.com/certusone/oyster.git
559 lines
20 KiB
JSON
559 lines
20 KiB
JSON
{
|
|
"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/utils/Context.sol\":\"Context\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/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/utils/Context.sol",
|
|
"ast": {
|
|
"absolutePath": "@openzeppelin/contracts/utils/Context.sol",
|
|
"exportedSymbols": {
|
|
"Context": [3618]
|
|
},
|
|
"id": 3619,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 3597,
|
|
"literals": ["solidity", ">=", "0.6", ".0", "<", "0.8", ".0"],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "33:31:9"
|
|
},
|
|
{
|
|
"abstract": true,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"documentation": null,
|
|
"fullyImplemented": true,
|
|
"id": 3618,
|
|
"linearizedBaseContracts": [3618],
|
|
"name": "Context",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 3605,
|
|
"nodeType": "Block",
|
|
"src": "668:34:9",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 3602,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": -15,
|
|
"src": "685:3:9",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 3603,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": null,
|
|
"src": "685:10:9",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"functionReturnParameters": 3601,
|
|
"id": 3604,
|
|
"nodeType": "Return",
|
|
"src": "678:17:9"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 3606,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "_msgSender",
|
|
"nodeType": "FunctionDefinition",
|
|
"overrides": null,
|
|
"parameters": {
|
|
"id": 3598,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "617:2:9"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3601,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3600,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 3606,
|
|
"src": "651:15:9",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
},
|
|
"typeName": {
|
|
"id": 3599,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "651:15:9",
|
|
"stateMutability": "payable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address_payable",
|
|
"typeString": "address payable"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "650:17:9"
|
|
},
|
|
"scope": 3618,
|
|
"src": "598:104:9",
|
|
"stateMutability": "view",
|
|
"virtual": true,
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"body": {
|
|
"id": 3616,
|
|
"nodeType": "Block",
|
|
"src": "773:165:9",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 3611,
|
|
"name": "this",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": -28,
|
|
"src": "783:4:9",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_Context_$3618",
|
|
"typeString": "contract Context"
|
|
}
|
|
},
|
|
"id": 3612,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "783:4:9"
|
|
},
|
|
{
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"expression": {
|
|
"argumentTypes": null,
|
|
"id": 3613,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": -15,
|
|
"src": "923:3:9",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 3614,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberName": "data",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": null,
|
|
"src": "923:8:9",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
"typeString": "bytes calldata"
|
|
}
|
|
},
|
|
"functionReturnParameters": 3610,
|
|
"id": 3615,
|
|
"nodeType": "Return",
|
|
"src": "916:15:9"
|
|
}
|
|
]
|
|
},
|
|
"documentation": null,
|
|
"id": 3617,
|
|
"implemented": true,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "_msgData",
|
|
"nodeType": "FunctionDefinition",
|
|
"overrides": null,
|
|
"parameters": {
|
|
"id": 3607,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "725:2:9"
|
|
},
|
|
"returnParameters": {
|
|
"id": 3610,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 3609,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nodeType": "VariableDeclaration",
|
|
"overrides": null,
|
|
"scope": 3617,
|
|
"src": "759:12:9",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_memory_ptr",
|
|
"typeString": "bytes"
|
|
},
|
|
"typeName": {
|
|
"id": 3608,
|
|
"name": "bytes",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "759:5:9",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes_storage_ptr",
|
|
"typeString": "bytes"
|
|
}
|
|
},
|
|
"value": null,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "758:14:9"
|
|
},
|
|
"scope": 3618,
|
|
"src": "708:230:9",
|
|
"stateMutability": "view",
|
|
"virtual": true,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 3619,
|
|
"src": "566:374:9"
|
|
}
|
|
],
|
|
"src": "33:908:9"
|
|
},
|
|
"legacyAST": {
|
|
"attributes": {
|
|
"absolutePath": "@openzeppelin/contracts/utils/Context.sol",
|
|
"exportedSymbols": {
|
|
"Context": [3618]
|
|
},
|
|
"license": "MIT"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"literals": ["solidity", ">=", "0.6", ".0", "<", "0.8", ".0"]
|
|
},
|
|
"id": 3597,
|
|
"name": "PragmaDirective",
|
|
"src": "33:31:9"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"abstract": true,
|
|
"baseContracts": [null],
|
|
"contractDependencies": [null],
|
|
"contractKind": "contract",
|
|
"documentation": null,
|
|
"fullyImplemented": true,
|
|
"linearizedBaseContracts": [3618],
|
|
"name": "Context",
|
|
"scope": 3619
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"documentation": null,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"kind": "function",
|
|
"modifiers": [null],
|
|
"name": "_msgSender",
|
|
"overrides": null,
|
|
"scope": 3618,
|
|
"stateMutability": "view",
|
|
"virtual": true,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"parameters": [null]
|
|
},
|
|
"children": [],
|
|
"id": 3598,
|
|
"name": "ParameterList",
|
|
"src": "617:2:9"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"overrides": null,
|
|
"scope": 3606,
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"type": "address payable",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "address",
|
|
"stateMutability": "payable",
|
|
"type": "address payable"
|
|
},
|
|
"id": 3599,
|
|
"name": "ElementaryTypeName",
|
|
"src": "651:15:9"
|
|
}
|
|
],
|
|
"id": 3600,
|
|
"name": "VariableDeclaration",
|
|
"src": "651:15:9"
|
|
}
|
|
],
|
|
"id": 3601,
|
|
"name": "ParameterList",
|
|
"src": "650:17:9"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"functionReturnParameters": 3601
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"argumentTypes": null,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"member_name": "sender",
|
|
"referencedDeclaration": null,
|
|
"type": "address payable"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"argumentTypes": null,
|
|
"overloadedDeclarations": [null],
|
|
"referencedDeclaration": -15,
|
|
"type": "msg",
|
|
"value": "msg"
|
|
},
|
|
"id": 3602,
|
|
"name": "Identifier",
|
|
"src": "685:3:9"
|
|
}
|
|
],
|
|
"id": 3603,
|
|
"name": "MemberAccess",
|
|
"src": "685:10:9"
|
|
}
|
|
],
|
|
"id": 3604,
|
|
"name": "Return",
|
|
"src": "678:17:9"
|
|
}
|
|
],
|
|
"id": 3605,
|
|
"name": "Block",
|
|
"src": "668:34:9"
|
|
}
|
|
],
|
|
"id": 3606,
|
|
"name": "FunctionDefinition",
|
|
"src": "598:104:9"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"documentation": null,
|
|
"implemented": true,
|
|
"isConstructor": false,
|
|
"kind": "function",
|
|
"modifiers": [null],
|
|
"name": "_msgData",
|
|
"overrides": null,
|
|
"scope": 3618,
|
|
"stateMutability": "view",
|
|
"virtual": true,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"parameters": [null]
|
|
},
|
|
"children": [],
|
|
"id": 3607,
|
|
"name": "ParameterList",
|
|
"src": "725:2:9"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"constant": false,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"overrides": null,
|
|
"scope": 3617,
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"type": "bytes",
|
|
"value": null,
|
|
"visibility": "internal"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"name": "bytes",
|
|
"type": "bytes"
|
|
},
|
|
"id": 3608,
|
|
"name": "ElementaryTypeName",
|
|
"src": "759:5:9"
|
|
}
|
|
],
|
|
"id": 3609,
|
|
"name": "VariableDeclaration",
|
|
"src": "759:12:9"
|
|
}
|
|
],
|
|
"id": 3610,
|
|
"name": "ParameterList",
|
|
"src": "758:14:9"
|
|
},
|
|
{
|
|
"children": [
|
|
{
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"argumentTypes": null,
|
|
"overloadedDeclarations": [null],
|
|
"referencedDeclaration": -28,
|
|
"type": "contract Context",
|
|
"value": "this"
|
|
},
|
|
"id": 3611,
|
|
"name": "Identifier",
|
|
"src": "783:4:9"
|
|
}
|
|
],
|
|
"id": 3612,
|
|
"name": "ExpressionStatement",
|
|
"src": "783:4:9"
|
|
},
|
|
{
|
|
"attributes": {
|
|
"functionReturnParameters": 3610
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"argumentTypes": null,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"member_name": "data",
|
|
"referencedDeclaration": null,
|
|
"type": "bytes calldata"
|
|
},
|
|
"children": [
|
|
{
|
|
"attributes": {
|
|
"argumentTypes": null,
|
|
"overloadedDeclarations": [null],
|
|
"referencedDeclaration": -15,
|
|
"type": "msg",
|
|
"value": "msg"
|
|
},
|
|
"id": 3613,
|
|
"name": "Identifier",
|
|
"src": "923:3:9"
|
|
}
|
|
],
|
|
"id": 3614,
|
|
"name": "MemberAccess",
|
|
"src": "923:8:9"
|
|
}
|
|
],
|
|
"id": 3615,
|
|
"name": "Return",
|
|
"src": "916:15:9"
|
|
}
|
|
],
|
|
"id": 3616,
|
|
"name": "Block",
|
|
"src": "773:165:9"
|
|
}
|
|
],
|
|
"id": 3617,
|
|
"name": "FunctionDefinition",
|
|
"src": "708:230:9"
|
|
}
|
|
],
|
|
"id": 3618,
|
|
"name": "ContractDefinition",
|
|
"src": "566:374:9"
|
|
}
|
|
],
|
|
"id": 3619,
|
|
"name": "SourceUnit",
|
|
"src": "33:908:9"
|
|
},
|
|
"compiler": {
|
|
"name": "solc",
|
|
"version": "0.6.12+commit.27d51765.Emscripten.clang"
|
|
},
|
|
"networks": {},
|
|
"schemaVersion": "3.3.4",
|
|
"updatedAt": "2021-04-12T21:53:29.929Z",
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|