fix: remove build files
This commit is contained in:
parent
071266af56
commit
a82c4e3197
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
.env
|
||||
.env
|
||||
build
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,272 +0,0 @@
|
||||
{
|
||||
"contractName": "Context",
|
||||
"abi": [],
|
||||
"metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"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\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92\",\"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3\"]}},\"version\":1}",
|
||||
"bytecode": "0x",
|
||||
"deployedBytecode": "0x",
|
||||
"immutableReferences": {},
|
||||
"generatedSources": [],
|
||||
"deployedGeneratedSources": [],
|
||||
"sourceMap": "",
|
||||
"deployedSourceMap": "",
|
||||
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\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 return msg.data;\n }\n}\n",
|
||||
"sourcePath": "@openzeppelin/contracts/utils/Context.sol",
|
||||
"ast": {
|
||||
"absolutePath": "@openzeppelin/contracts/utils/Context.sol",
|
||||
"exportedSymbols": {
|
||||
"Context": [
|
||||
1486
|
||||
]
|
||||
},
|
||||
"id": 1487,
|
||||
"license": "MIT",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1466,
|
||||
"literals": [
|
||||
"solidity",
|
||||
"^",
|
||||
"0.8",
|
||||
".0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "86:23:6"
|
||||
},
|
||||
{
|
||||
"abstract": true,
|
||||
"baseContracts": [],
|
||||
"canonicalName": "Context",
|
||||
"contractDependencies": [],
|
||||
"contractKind": "contract",
|
||||
"documentation": {
|
||||
"id": 1467,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "111:496:6",
|
||||
"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": 1486,
|
||||
"linearizedBaseContracts": [
|
||||
1486
|
||||
],
|
||||
"name": "Context",
|
||||
"nameLocation": "626:7:6",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes": [
|
||||
{
|
||||
"body": {
|
||||
"id": 1475,
|
||||
"nodeType": "Block",
|
||||
"src": "702:34:6",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"expression": {
|
||||
"id": 1472,
|
||||
"name": "msg",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 4294967281,
|
||||
"src": "719:3:6",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_message",
|
||||
"typeString": "msg"
|
||||
}
|
||||
},
|
||||
"id": 1473,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"memberLocation": "723:6:6",
|
||||
"memberName": "sender",
|
||||
"nodeType": "MemberAccess",
|
||||
"src": "719:10:6",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"functionReturnParameters": 1471,
|
||||
"id": 1474,
|
||||
"nodeType": "Return",
|
||||
"src": "712:17:6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": 1476,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "_msgSender",
|
||||
"nameLocation": "649:10:6",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1468,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "659:2:6"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1471,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1470,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1476,
|
||||
"src": "693:7:6",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1469,
|
||||
"name": "address",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "693:7:6",
|
||||
"stateMutability": "nonpayable",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "692:9:6"
|
||||
},
|
||||
"scope": 1486,
|
||||
"src": "640:96:6",
|
||||
"stateMutability": "view",
|
||||
"virtual": true,
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 1484,
|
||||
"nodeType": "Block",
|
||||
"src": "809:32:6",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"expression": {
|
||||
"id": 1481,
|
||||
"name": "msg",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 4294967281,
|
||||
"src": "826:3:6",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_message",
|
||||
"typeString": "msg"
|
||||
}
|
||||
},
|
||||
"id": 1482,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"memberLocation": "830:4:6",
|
||||
"memberName": "data",
|
||||
"nodeType": "MemberAccess",
|
||||
"src": "826:8:6",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes_calldata_ptr",
|
||||
"typeString": "bytes calldata"
|
||||
}
|
||||
},
|
||||
"functionReturnParameters": 1480,
|
||||
"id": 1483,
|
||||
"nodeType": "Return",
|
||||
"src": "819:15:6"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": 1485,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "_msgData",
|
||||
"nameLocation": "751:8:6",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1477,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "759:2:6"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1480,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1479,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1485,
|
||||
"src": "793:14:6",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "calldata",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes_calldata_ptr",
|
||||
"typeString": "bytes"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1478,
|
||||
"name": "bytes",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "793:5:6",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes_storage_ptr",
|
||||
"typeString": "bytes"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "792:16:6"
|
||||
},
|
||||
"scope": 1486,
|
||||
"src": "742:99:6",
|
||||
"stateMutability": "view",
|
||||
"virtual": true,
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"scope": 1487,
|
||||
"src": "608:235:6",
|
||||
"usedErrors": []
|
||||
}
|
||||
],
|
||||
"src": "86:758:6"
|
||||
},
|
||||
"compiler": {
|
||||
"name": "solc",
|
||||
"version": "0.8.19+commit.7dd6d404.Emscripten.clang"
|
||||
},
|
||||
"networks": {},
|
||||
"schemaVersion": "3.4.13",
|
||||
"updatedAt": "2023-06-04T09:28:33.986Z",
|
||||
"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
|
||||
}
|
||||
}
|
||||
@ -1,879 +0,0 @@
|
||||
{
|
||||
"contractName": "Counters",
|
||||
"abi": [],
|
||||
"metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Matt Condon (@shrugs)\",\"details\":\"Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;`\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Counters\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/Counters.sol\":\"Counters\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Counters.sol\":{\"keccak256\":\"0xf0018c2440fbe238dd3a8732fa8e17a0f9dce84d31451dc8a32f6d62b349c9f1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://59e1c62884d55b70f3ae5432b44bb3166ad71ae3acd19c57ab6ddc3c87c325ee\",\"dweb:/ipfs/QmezuXg5GK5oeA4F91EZhozBFekhq5TD966bHPH18cCqhu\"]}},\"version\":1}",
|
||||
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f4830d7f86e1ab2f8303d17696b97e631053fd399cf240c2d50ef4c88fdba17564736f6c63430008130033",
|
||||
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220f4830d7f86e1ab2f8303d17696b97e631053fd399cf240c2d50ef4c88fdba17564736f6c63430008130033",
|
||||
"immutableReferences": {},
|
||||
"generatedSources": [],
|
||||
"deployedGeneratedSources": [],
|
||||
"sourceMap": "424:971:7:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
|
||||
"deployedSourceMap": "424:971:7:-:0;;;;;;;;",
|
||||
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title Counters\n * @author Matt Condon (@shrugs)\n * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\n *\n * Include with `using Counters for Counters.Counter;`\n */\nlibrary Counters {\n struct Counter {\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\n // this feature: see https://github.com/ethereum/solidity/issues/4637\n uint256 _value; // default: 0\n }\n\n function current(Counter storage counter) internal view returns (uint256) {\n return counter._value;\n }\n\n function increment(Counter storage counter) internal {\n unchecked {\n counter._value += 1;\n }\n }\n\n function decrement(Counter storage counter) internal {\n uint256 value = counter._value;\n require(value > 0, \"Counter: decrement overflow\");\n unchecked {\n counter._value = value - 1;\n }\n }\n\n function reset(Counter storage counter) internal {\n counter._value = 0;\n }\n}\n",
|
||||
"sourcePath": "@openzeppelin/contracts/utils/Counters.sol",
|
||||
"ast": {
|
||||
"absolutePath": "@openzeppelin/contracts/utils/Counters.sol",
|
||||
"exportedSymbols": {
|
||||
"Counters": [
|
||||
1560
|
||||
]
|
||||
},
|
||||
"id": 1561,
|
||||
"license": "MIT",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1488,
|
||||
"literals": [
|
||||
"solidity",
|
||||
"^",
|
||||
"0.8",
|
||||
".0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "87:23:7"
|
||||
},
|
||||
{
|
||||
"abstract": false,
|
||||
"baseContracts": [],
|
||||
"canonicalName": "Counters",
|
||||
"contractDependencies": [],
|
||||
"contractKind": "library",
|
||||
"documentation": {
|
||||
"id": 1489,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "112:311:7",
|
||||
"text": " @title Counters\n @author Matt Condon (@shrugs)\n @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number\n of elements in a mapping, issuing ERC721 ids, or counting request ids.\n Include with `using Counters for Counters.Counter;`"
|
||||
},
|
||||
"fullyImplemented": true,
|
||||
"id": 1560,
|
||||
"linearizedBaseContracts": [
|
||||
1560
|
||||
],
|
||||
"name": "Counters",
|
||||
"nameLocation": "432:8:7",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes": [
|
||||
{
|
||||
"canonicalName": "Counters.Counter",
|
||||
"id": 1492,
|
||||
"members": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1491,
|
||||
"mutability": "mutable",
|
||||
"name": "_value",
|
||||
"nameLocation": "794:6:7",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1492,
|
||||
"src": "786:14:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1490,
|
||||
"name": "uint256",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "786:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"name": "Counter",
|
||||
"nameLocation": "454:7:7",
|
||||
"nodeType": "StructDefinition",
|
||||
"scope": 1560,
|
||||
"src": "447:374:7",
|
||||
"visibility": "public"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 1503,
|
||||
"nodeType": "Block",
|
||||
"src": "901:38:7",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"expression": {
|
||||
"id": 1500,
|
||||
"name": "counter",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1495,
|
||||
"src": "918:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter storage pointer"
|
||||
}
|
||||
},
|
||||
"id": 1501,
|
||||
"isConstant": false,
|
||||
"isLValue": true,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"memberLocation": "926:6:7",
|
||||
"memberName": "_value",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 1491,
|
||||
"src": "918:14:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"functionReturnParameters": 1499,
|
||||
"id": 1502,
|
||||
"nodeType": "Return",
|
||||
"src": "911:21:7"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": 1504,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "current",
|
||||
"nameLocation": "836:7:7",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1496,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1495,
|
||||
"mutability": "mutable",
|
||||
"name": "counter",
|
||||
"nameLocation": "860:7:7",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1504,
|
||||
"src": "844:23:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "storage",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1494,
|
||||
"nodeType": "UserDefinedTypeName",
|
||||
"pathNode": {
|
||||
"id": 1493,
|
||||
"name": "Counter",
|
||||
"nameLocations": [
|
||||
"844:7:7"
|
||||
],
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "844:7:7"
|
||||
},
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "844:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "843:25:7"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1499,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1498,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1504,
|
||||
"src": "892:7:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1497,
|
||||
"name": "uint256",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "892:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "891:9:7"
|
||||
},
|
||||
"scope": 1560,
|
||||
"src": "827:112:7",
|
||||
"stateMutability": "view",
|
||||
"virtual": false,
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 1517,
|
||||
"nodeType": "Block",
|
||||
"src": "998:70:7",
|
||||
"statements": [
|
||||
{
|
||||
"id": 1516,
|
||||
"nodeType": "UncheckedBlock",
|
||||
"src": "1008:54:7",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"id": 1514,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"leftHandSide": {
|
||||
"expression": {
|
||||
"id": 1510,
|
||||
"name": "counter",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1507,
|
||||
"src": "1032:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter storage pointer"
|
||||
}
|
||||
},
|
||||
"id": 1512,
|
||||
"isConstant": false,
|
||||
"isLValue": true,
|
||||
"isPure": false,
|
||||
"lValueRequested": true,
|
||||
"memberLocation": "1040:6:7",
|
||||
"memberName": "_value",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 1491,
|
||||
"src": "1032:14:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"nodeType": "Assignment",
|
||||
"operator": "+=",
|
||||
"rightHandSide": {
|
||||
"hexValue": "31",
|
||||
"id": 1513,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"kind": "number",
|
||||
"lValueRequested": false,
|
||||
"nodeType": "Literal",
|
||||
"src": "1050:1:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_rational_1_by_1",
|
||||
"typeString": "int_const 1"
|
||||
},
|
||||
"value": "1"
|
||||
},
|
||||
"src": "1032:19:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"id": 1515,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "1032:19:7"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": 1518,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "increment",
|
||||
"nameLocation": "954:9:7",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1508,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1507,
|
||||
"mutability": "mutable",
|
||||
"name": "counter",
|
||||
"nameLocation": "980:7:7",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1518,
|
||||
"src": "964:23:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "storage",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1506,
|
||||
"nodeType": "UserDefinedTypeName",
|
||||
"pathNode": {
|
||||
"id": 1505,
|
||||
"name": "Counter",
|
||||
"nameLocations": [
|
||||
"964:7:7"
|
||||
],
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "964:7:7"
|
||||
},
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "964:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "963:25:7"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1509,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "998:0:7"
|
||||
},
|
||||
"scope": 1560,
|
||||
"src": "945:123:7",
|
||||
"stateMutability": "nonpayable",
|
||||
"virtual": false,
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 1545,
|
||||
"nodeType": "Block",
|
||||
"src": "1127:176:7",
|
||||
"statements": [
|
||||
{
|
||||
"assignments": [
|
||||
1525
|
||||
],
|
||||
"declarations": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1525,
|
||||
"mutability": "mutable",
|
||||
"name": "value",
|
||||
"nameLocation": "1145:5:7",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1545,
|
||||
"src": "1137:13:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1524,
|
||||
"name": "uint256",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "1137:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"id": 1528,
|
||||
"initialValue": {
|
||||
"expression": {
|
||||
"id": 1526,
|
||||
"name": "counter",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1521,
|
||||
"src": "1153:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter storage pointer"
|
||||
}
|
||||
},
|
||||
"id": 1527,
|
||||
"isConstant": false,
|
||||
"isLValue": true,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"memberLocation": "1161:6:7",
|
||||
"memberName": "_value",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 1491,
|
||||
"src": "1153:14:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"nodeType": "VariableDeclarationStatement",
|
||||
"src": "1137:30:7"
|
||||
},
|
||||
{
|
||||
"expression": {
|
||||
"arguments": [
|
||||
{
|
||||
"commonType": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"id": 1532,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"leftExpression": {
|
||||
"id": 1530,
|
||||
"name": "value",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1525,
|
||||
"src": "1185:5:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"nodeType": "BinaryOperation",
|
||||
"operator": ">",
|
||||
"rightExpression": {
|
||||
"hexValue": "30",
|
||||
"id": 1531,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"kind": "number",
|
||||
"lValueRequested": false,
|
||||
"nodeType": "Literal",
|
||||
"src": "1193:1:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_rational_0_by_1",
|
||||
"typeString": "int_const 0"
|
||||
},
|
||||
"value": "0"
|
||||
},
|
||||
"src": "1185:9:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
}
|
||||
},
|
||||
{
|
||||
"hexValue": "436f756e7465723a2064656372656d656e74206f766572666c6f77",
|
||||
"id": 1533,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"kind": "string",
|
||||
"lValueRequested": false,
|
||||
"nodeType": "Literal",
|
||||
"src": "1196:29:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_stringliteral_1dfd0d5389474d871b8e8929aab9d4def041f55f90f625754fb5f9a9ba08af6f",
|
||||
"typeString": "literal_string \"Counter: decrement overflow\""
|
||||
},
|
||||
"value": "Counter: decrement overflow"
|
||||
}
|
||||
],
|
||||
"expression": {
|
||||
"argumentTypes": [
|
||||
{
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
},
|
||||
{
|
||||
"typeIdentifier": "t_stringliteral_1dfd0d5389474d871b8e8929aab9d4def041f55f90f625754fb5f9a9ba08af6f",
|
||||
"typeString": "literal_string \"Counter: decrement overflow\""
|
||||
}
|
||||
],
|
||||
"id": 1529,
|
||||
"name": "require",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [
|
||||
4294967278,
|
||||
4294967278
|
||||
],
|
||||
"referencedDeclaration": 4294967278,
|
||||
"src": "1177:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
||||
"typeString": "function (bool,string memory) pure"
|
||||
}
|
||||
},
|
||||
"id": 1534,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"kind": "functionCall",
|
||||
"lValueRequested": false,
|
||||
"nameLocations": [],
|
||||
"names": [],
|
||||
"nodeType": "FunctionCall",
|
||||
"src": "1177:49:7",
|
||||
"tryCall": false,
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_tuple$__$",
|
||||
"typeString": "tuple()"
|
||||
}
|
||||
},
|
||||
"id": 1535,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "1177:49:7"
|
||||
},
|
||||
{
|
||||
"id": 1544,
|
||||
"nodeType": "UncheckedBlock",
|
||||
"src": "1236:61:7",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"id": 1542,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"leftHandSide": {
|
||||
"expression": {
|
||||
"id": 1536,
|
||||
"name": "counter",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1521,
|
||||
"src": "1260:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter storage pointer"
|
||||
}
|
||||
},
|
||||
"id": 1538,
|
||||
"isConstant": false,
|
||||
"isLValue": true,
|
||||
"isPure": false,
|
||||
"lValueRequested": true,
|
||||
"memberLocation": "1268:6:7",
|
||||
"memberName": "_value",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 1491,
|
||||
"src": "1260:14:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"nodeType": "Assignment",
|
||||
"operator": "=",
|
||||
"rightHandSide": {
|
||||
"commonType": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"id": 1541,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"leftExpression": {
|
||||
"id": 1539,
|
||||
"name": "value",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1525,
|
||||
"src": "1277:5:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"nodeType": "BinaryOperation",
|
||||
"operator": "-",
|
||||
"rightExpression": {
|
||||
"hexValue": "31",
|
||||
"id": 1540,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"kind": "number",
|
||||
"lValueRequested": false,
|
||||
"nodeType": "Literal",
|
||||
"src": "1285:1:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_rational_1_by_1",
|
||||
"typeString": "int_const 1"
|
||||
},
|
||||
"value": "1"
|
||||
},
|
||||
"src": "1277:9:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"src": "1260:26:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"id": 1543,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "1260:26:7"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": 1546,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "decrement",
|
||||
"nameLocation": "1083:9:7",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1522,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1521,
|
||||
"mutability": "mutable",
|
||||
"name": "counter",
|
||||
"nameLocation": "1109:7:7",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1546,
|
||||
"src": "1093:23:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "storage",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1520,
|
||||
"nodeType": "UserDefinedTypeName",
|
||||
"pathNode": {
|
||||
"id": 1519,
|
||||
"name": "Counter",
|
||||
"nameLocations": [
|
||||
"1093:7:7"
|
||||
],
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "1093:7:7"
|
||||
},
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "1093:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "1092:25:7"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1523,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "1127:0:7"
|
||||
},
|
||||
"scope": 1560,
|
||||
"src": "1074:229:7",
|
||||
"stateMutability": "nonpayable",
|
||||
"virtual": false,
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"body": {
|
||||
"id": 1558,
|
||||
"nodeType": "Block",
|
||||
"src": "1358:35:7",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"id": 1556,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"leftHandSide": {
|
||||
"expression": {
|
||||
"id": 1552,
|
||||
"name": "counter",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1549,
|
||||
"src": "1368:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter storage pointer"
|
||||
}
|
||||
},
|
||||
"id": 1554,
|
||||
"isConstant": false,
|
||||
"isLValue": true,
|
||||
"isPure": false,
|
||||
"lValueRequested": true,
|
||||
"memberLocation": "1376:6:7",
|
||||
"memberName": "_value",
|
||||
"nodeType": "MemberAccess",
|
||||
"referencedDeclaration": 1491,
|
||||
"src": "1368:14:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"nodeType": "Assignment",
|
||||
"operator": "=",
|
||||
"rightHandSide": {
|
||||
"hexValue": "30",
|
||||
"id": 1555,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"kind": "number",
|
||||
"lValueRequested": false,
|
||||
"nodeType": "Literal",
|
||||
"src": "1385:1:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_rational_0_by_1",
|
||||
"typeString": "int_const 0"
|
||||
},
|
||||
"value": "0"
|
||||
},
|
||||
"src": "1368:18:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"id": 1557,
|
||||
"nodeType": "ExpressionStatement",
|
||||
"src": "1368:18:7"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id": 1559,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "reset",
|
||||
"nameLocation": "1318:5:7",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1550,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1549,
|
||||
"mutability": "mutable",
|
||||
"name": "counter",
|
||||
"nameLocation": "1340:7:7",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1559,
|
||||
"src": "1324:23:7",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "storage",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1548,
|
||||
"nodeType": "UserDefinedTypeName",
|
||||
"pathNode": {
|
||||
"id": 1547,
|
||||
"name": "Counter",
|
||||
"nameLocations": [
|
||||
"1324:7:7"
|
||||
],
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "1324:7:7"
|
||||
},
|
||||
"referencedDeclaration": 1492,
|
||||
"src": "1324:7:7",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_struct$_Counter_$1492_storage_ptr",
|
||||
"typeString": "struct Counters.Counter"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "1323:25:7"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1551,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [],
|
||||
"src": "1358:0:7"
|
||||
},
|
||||
"scope": 1560,
|
||||
"src": "1309:84:7",
|
||||
"stateMutability": "nonpayable",
|
||||
"virtual": false,
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"scope": 1561,
|
||||
"src": "424:971:7",
|
||||
"usedErrors": []
|
||||
}
|
||||
],
|
||||
"src": "87:1309:7"
|
||||
},
|
||||
"compiler": {
|
||||
"name": "solc",
|
||||
"version": "0.8.19+commit.7dd6d404.Emscripten.clang"
|
||||
},
|
||||
"networks": {},
|
||||
"schemaVersion": "3.4.13",
|
||||
"updatedAt": "2023-06-04T09:28:33.986Z",
|
||||
"devdoc": {
|
||||
"author": "Matt Condon (@shrugs)",
|
||||
"details": "Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;`",
|
||||
"kind": "dev",
|
||||
"methods": {},
|
||||
"title": "Counters",
|
||||
"version": 1
|
||||
},
|
||||
"userdoc": {
|
||||
"kind": "user",
|
||||
"methods": {},
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
@ -1,344 +0,0 @@
|
||||
{
|
||||
"contractName": "ERC165",
|
||||
"abi": [
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "bytes4",
|
||||
"name": "interfaceId",
|
||||
"type": "bytes4"
|
||||
}
|
||||
],
|
||||
"name": "supportsInterface",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
],
|
||||
"metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ``` Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\",\"kind\":\"dev\",\"methods\":{\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":\"ERC165\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fb0048dee081f6fffa5f74afc3fb328483c2a30504e94a0ddd2a5114d731ec4d\",\"dweb:/ipfs/QmZptt1nmYoA5SgjwnSgWqgUSDgm4q52Yos3xhnMv3MV43\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]}},\"version\":1}",
|
||||
"bytecode": "0x",
|
||||
"deployedBytecode": "0x",
|
||||
"immutableReferences": {},
|
||||
"generatedSources": [],
|
||||
"deployedGeneratedSources": [],
|
||||
"sourceMap": "",
|
||||
"deployedSourceMap": "",
|
||||
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n /**\n * @dev See {IERC165-supportsInterface}.\n */\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(IERC165).interfaceId;\n }\n}\n",
|
||||
"sourcePath": "@openzeppelin/contracts/utils/introspection/ERC165.sol",
|
||||
"ast": {
|
||||
"absolutePath": "@openzeppelin/contracts/utils/introspection/ERC165.sol",
|
||||
"exportedSymbols": {
|
||||
"ERC165": [
|
||||
1813
|
||||
],
|
||||
"IERC165": [
|
||||
1825
|
||||
]
|
||||
},
|
||||
"id": 1814,
|
||||
"license": "MIT",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1791,
|
||||
"literals": [
|
||||
"solidity",
|
||||
"^",
|
||||
"0.8",
|
||||
".0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "99:23:9"
|
||||
},
|
||||
{
|
||||
"absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
|
||||
"file": "./IERC165.sol",
|
||||
"id": 1792,
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "ImportDirective",
|
||||
"scope": 1814,
|
||||
"sourceUnit": 1826,
|
||||
"src": "124:23:9",
|
||||
"symbolAliases": [],
|
||||
"unitAlias": ""
|
||||
},
|
||||
{
|
||||
"abstract": true,
|
||||
"baseContracts": [
|
||||
{
|
||||
"baseName": {
|
||||
"id": 1794,
|
||||
"name": "IERC165",
|
||||
"nameLocations": [
|
||||
"754:7:9"
|
||||
],
|
||||
"nodeType": "IdentifierPath",
|
||||
"referencedDeclaration": 1825,
|
||||
"src": "754:7:9"
|
||||
},
|
||||
"id": 1795,
|
||||
"nodeType": "InheritanceSpecifier",
|
||||
"src": "754:7:9"
|
||||
}
|
||||
],
|
||||
"canonicalName": "ERC165",
|
||||
"contractDependencies": [],
|
||||
"contractKind": "contract",
|
||||
"documentation": {
|
||||
"id": 1793,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "149:576:9",
|
||||
"text": " @dev Implementation of the {IERC165} interface.\n Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n for the additional interface id that will be supported. For example:\n ```solidity\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n }\n ```\n Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation."
|
||||
},
|
||||
"fullyImplemented": true,
|
||||
"id": 1813,
|
||||
"linearizedBaseContracts": [
|
||||
1813,
|
||||
1825
|
||||
],
|
||||
"name": "ERC165",
|
||||
"nameLocation": "744:6:9",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes": [
|
||||
{
|
||||
"baseFunctions": [
|
||||
1824
|
||||
],
|
||||
"body": {
|
||||
"id": 1811,
|
||||
"nodeType": "Block",
|
||||
"src": "920:64:9",
|
||||
"statements": [
|
||||
{
|
||||
"expression": {
|
||||
"commonType": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
},
|
||||
"id": 1809,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": false,
|
||||
"lValueRequested": false,
|
||||
"leftExpression": {
|
||||
"id": 1804,
|
||||
"name": "interfaceId",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1798,
|
||||
"src": "937:11:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
}
|
||||
},
|
||||
"nodeType": "BinaryOperation",
|
||||
"operator": "==",
|
||||
"rightExpression": {
|
||||
"expression": {
|
||||
"arguments": [
|
||||
{
|
||||
"id": 1806,
|
||||
"name": "IERC165",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 1825,
|
||||
"src": "957:7:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_type$_t_contract$_IERC165_$1825_$",
|
||||
"typeString": "type(contract IERC165)"
|
||||
}
|
||||
}
|
||||
],
|
||||
"expression": {
|
||||
"argumentTypes": [
|
||||
{
|
||||
"typeIdentifier": "t_type$_t_contract$_IERC165_$1825_$",
|
||||
"typeString": "type(contract IERC165)"
|
||||
}
|
||||
],
|
||||
"id": 1805,
|
||||
"name": "type",
|
||||
"nodeType": "Identifier",
|
||||
"overloadedDeclarations": [],
|
||||
"referencedDeclaration": 4294967269,
|
||||
"src": "952:4:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_function_metatype_pure$__$returns$__$",
|
||||
"typeString": "function () pure"
|
||||
}
|
||||
},
|
||||
"id": 1807,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"kind": "functionCall",
|
||||
"lValueRequested": false,
|
||||
"nameLocations": [],
|
||||
"names": [],
|
||||
"nodeType": "FunctionCall",
|
||||
"src": "952:13:9",
|
||||
"tryCall": false,
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_magic_meta_type_t_contract$_IERC165_$1825",
|
||||
"typeString": "type(contract IERC165)"
|
||||
}
|
||||
},
|
||||
"id": 1808,
|
||||
"isConstant": false,
|
||||
"isLValue": false,
|
||||
"isPure": true,
|
||||
"lValueRequested": false,
|
||||
"memberLocation": "966:11:9",
|
||||
"memberName": "interfaceId",
|
||||
"nodeType": "MemberAccess",
|
||||
"src": "952:25:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
}
|
||||
},
|
||||
"src": "937:40:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
}
|
||||
},
|
||||
"functionReturnParameters": 1803,
|
||||
"id": 1810,
|
||||
"nodeType": "Return",
|
||||
"src": "930:47:9"
|
||||
}
|
||||
]
|
||||
},
|
||||
"documentation": {
|
||||
"id": 1796,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "768:56:9",
|
||||
"text": " @dev See {IERC165-supportsInterface}."
|
||||
},
|
||||
"functionSelector": "01ffc9a7",
|
||||
"id": 1812,
|
||||
"implemented": true,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "supportsInterface",
|
||||
"nameLocation": "838:17:9",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"overrides": {
|
||||
"id": 1800,
|
||||
"nodeType": "OverrideSpecifier",
|
||||
"overrides": [],
|
||||
"src": "896:8:9"
|
||||
},
|
||||
"parameters": {
|
||||
"id": 1799,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1798,
|
||||
"mutability": "mutable",
|
||||
"name": "interfaceId",
|
||||
"nameLocation": "863:11:9",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1812,
|
||||
"src": "856:18:9",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1797,
|
||||
"name": "bytes4",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "856:6:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "855:20:9"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1803,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1802,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1812,
|
||||
"src": "914:4:9",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1801,
|
||||
"name": "bool",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "914:4:9",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "913:6:9"
|
||||
},
|
||||
"scope": 1813,
|
||||
"src": "829:155:9",
|
||||
"stateMutability": "view",
|
||||
"virtual": true,
|
||||
"visibility": "public"
|
||||
}
|
||||
],
|
||||
"scope": 1814,
|
||||
"src": "726:260:9",
|
||||
"usedErrors": []
|
||||
}
|
||||
],
|
||||
"src": "99:888:9"
|
||||
},
|
||||
"compiler": {
|
||||
"name": "solc",
|
||||
"version": "0.8.19+commit.7dd6d404.Emscripten.clang"
|
||||
},
|
||||
"networks": {},
|
||||
"schemaVersion": "3.4.13",
|
||||
"updatedAt": "2023-06-04T09:28:33.987Z",
|
||||
"devdoc": {
|
||||
"details": "Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ``` Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.",
|
||||
"kind": "dev",
|
||||
"methods": {
|
||||
"supportsInterface(bytes4)": {
|
||||
"details": "See {IERC165-supportsInterface}."
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
},
|
||||
"userdoc": {
|
||||
"kind": "user",
|
||||
"methods": {},
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,196 +0,0 @@
|
||||
{
|
||||
"contractName": "IERC165",
|
||||
"abi": [
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "bytes4",
|
||||
"name": "interfaceId",
|
||||
"type": "bytes4"
|
||||
}
|
||||
],
|
||||
"name": "supportsInterface",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}
|
||||
],
|
||||
"metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.\",\"kind\":\"dev\",\"methods\":{\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":\"IERC165\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://be161e54f24e5c6fae81a12db1a8ae87bc5ae1b0ddc805d82a1440a68455088f\",\"dweb:/ipfs/QmP7C3CHdY9urF4dEMb9wmsp1wMxHF6nhA2yQE5SKiPAdy\"]}},\"version\":1}",
|
||||
"bytecode": "0x",
|
||||
"deployedBytecode": "0x",
|
||||
"immutableReferences": {},
|
||||
"generatedSources": [],
|
||||
"deployedGeneratedSources": [],
|
||||
"sourceMap": "",
|
||||
"deployedSourceMap": "",
|
||||
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n",
|
||||
"sourcePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
|
||||
"ast": {
|
||||
"absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
|
||||
"exportedSymbols": {
|
||||
"IERC165": [
|
||||
1825
|
||||
]
|
||||
},
|
||||
"id": 1826,
|
||||
"license": "MIT",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1815,
|
||||
"literals": [
|
||||
"solidity",
|
||||
"^",
|
||||
"0.8",
|
||||
".0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "100:23:10"
|
||||
},
|
||||
{
|
||||
"abstract": false,
|
||||
"baseContracts": [],
|
||||
"canonicalName": "IERC165",
|
||||
"contractDependencies": [],
|
||||
"contractKind": "interface",
|
||||
"documentation": {
|
||||
"id": 1816,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "125:279:10",
|
||||
"text": " @dev Interface of the ERC165 standard, as defined in the\n https://eips.ethereum.org/EIPS/eip-165[EIP].\n Implementers can declare support of contract interfaces, which can then be\n queried by others ({ERC165Checker}).\n For an implementation, see {ERC165}."
|
||||
},
|
||||
"fullyImplemented": false,
|
||||
"id": 1825,
|
||||
"linearizedBaseContracts": [
|
||||
1825
|
||||
],
|
||||
"name": "IERC165",
|
||||
"nameLocation": "415:7:10",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes": [
|
||||
{
|
||||
"documentation": {
|
||||
"id": 1817,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "429:340:10",
|
||||
"text": " @dev Returns true if this contract implements the interface defined by\n `interfaceId`. See the corresponding\n https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n to learn more about how these ids are created.\n This function call must use less than 30 000 gas."
|
||||
},
|
||||
"functionSelector": "01ffc9a7",
|
||||
"id": 1824,
|
||||
"implemented": false,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "supportsInterface",
|
||||
"nameLocation": "783:17:10",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1820,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1819,
|
||||
"mutability": "mutable",
|
||||
"name": "interfaceId",
|
||||
"nameLocation": "808:11:10",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1824,
|
||||
"src": "801:18:10",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1818,
|
||||
"name": "bytes4",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "801:6:10",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "800:20:10"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1823,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1822,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1824,
|
||||
"src": "844:4:10",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1821,
|
||||
"name": "bool",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "844:4:10",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bool",
|
||||
"typeString": "bool"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "843:6:10"
|
||||
},
|
||||
"scope": 1825,
|
||||
"src": "774:76:10",
|
||||
"stateMutability": "view",
|
||||
"virtual": false,
|
||||
"visibility": "external"
|
||||
}
|
||||
],
|
||||
"scope": 1826,
|
||||
"src": "405:447:10",
|
||||
"usedErrors": []
|
||||
}
|
||||
],
|
||||
"src": "100:753:10"
|
||||
},
|
||||
"compiler": {
|
||||
"name": "solc",
|
||||
"version": "0.8.19+commit.7dd6d404.Emscripten.clang"
|
||||
},
|
||||
"networks": {},
|
||||
"schemaVersion": "3.4.13",
|
||||
"updatedAt": "2023-06-04T09:28:33.987Z",
|
||||
"devdoc": {
|
||||
"details": "Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.",
|
||||
"kind": "dev",
|
||||
"methods": {
|
||||
"supportsInterface(bytes4)": {
|
||||
"details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
},
|
||||
"userdoc": {
|
||||
"kind": "user",
|
||||
"methods": {},
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,295 +0,0 @@
|
||||
{
|
||||
"contractName": "IERC721Receiver",
|
||||
"abi": [
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "operator",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "tokenId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "bytes",
|
||||
"name": "data",
|
||||
"type": "bytes"
|
||||
}
|
||||
],
|
||||
"name": "onERC721Received",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "bytes4",
|
||||
"name": "",
|
||||
"type": "bytes4"
|
||||
}
|
||||
],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}
|
||||
],
|
||||
"metadata": "{\"compiler\":{\"version\":\"0.8.19+commit.7dd6d404\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.\",\"kind\":\"dev\",\"methods\":{\"onERC721Received(address,address,uint256,bytes)\":{\"details\":\"Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\"}},\"title\":\"ERC721 token receiver interface\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":\"IERC721Receiver\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":{\"keccak256\":\"0xa82b58eca1ee256be466e536706850163d2ec7821945abd6b4778cfb3bee37da\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6e75cf83beb757b8855791088546b8337e9d4684e169400c20d44a515353b708\",\"dweb:/ipfs/QmYvPafLfoquiDMEj7CKHtvbgHu7TJNPSVPSCjrtjV8HjV\"]}},\"version\":1}",
|
||||
"bytecode": "0x",
|
||||
"deployedBytecode": "0x",
|
||||
"immutableReferences": {},
|
||||
"generatedSources": [],
|
||||
"deployedGeneratedSources": [],
|
||||
"sourceMap": "",
|
||||
"deployedSourceMap": "",
|
||||
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n /**\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n * by `operator` from `from`, this function is called.\n *\n * It must return its Solidity selector to confirm the token transfer.\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n *\n * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n */\n function onERC721Received(\n address operator,\n address from,\n uint256 tokenId,\n bytes calldata data\n ) external returns (bytes4);\n}\n",
|
||||
"sourcePath": "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol",
|
||||
"ast": {
|
||||
"absolutePath": "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol",
|
||||
"exportedSymbols": {
|
||||
"IERC721Receiver": [
|
||||
1060
|
||||
]
|
||||
},
|
||||
"id": 1061,
|
||||
"license": "MIT",
|
||||
"nodeType": "SourceUnit",
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1044,
|
||||
"literals": [
|
||||
"solidity",
|
||||
"^",
|
||||
"0.8",
|
||||
".0"
|
||||
],
|
||||
"nodeType": "PragmaDirective",
|
||||
"src": "116:23:2"
|
||||
},
|
||||
{
|
||||
"abstract": false,
|
||||
"baseContracts": [],
|
||||
"canonicalName": "IERC721Receiver",
|
||||
"contractDependencies": [],
|
||||
"contractKind": "interface",
|
||||
"documentation": {
|
||||
"id": 1045,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "141:152:2",
|
||||
"text": " @title ERC721 token receiver interface\n @dev Interface for any contract that wants to support safeTransfers\n from ERC721 asset contracts."
|
||||
},
|
||||
"fullyImplemented": false,
|
||||
"id": 1060,
|
||||
"linearizedBaseContracts": [
|
||||
1060
|
||||
],
|
||||
"name": "IERC721Receiver",
|
||||
"nameLocation": "304:15:2",
|
||||
"nodeType": "ContractDefinition",
|
||||
"nodes": [
|
||||
{
|
||||
"documentation": {
|
||||
"id": 1046,
|
||||
"nodeType": "StructuredDocumentation",
|
||||
"src": "326:493:2",
|
||||
"text": " @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n by `operator` from `from`, this function is called.\n It must return its Solidity selector to confirm the token transfer.\n If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`."
|
||||
},
|
||||
"functionSelector": "150b7a02",
|
||||
"id": 1059,
|
||||
"implemented": false,
|
||||
"kind": "function",
|
||||
"modifiers": [],
|
||||
"name": "onERC721Received",
|
||||
"nameLocation": "833:16:2",
|
||||
"nodeType": "FunctionDefinition",
|
||||
"parameters": {
|
||||
"id": 1055,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1048,
|
||||
"mutability": "mutable",
|
||||
"name": "operator",
|
||||
"nameLocation": "867:8:2",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1059,
|
||||
"src": "859:16:2",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1047,
|
||||
"name": "address",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "859:7:2",
|
||||
"stateMutability": "nonpayable",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1050,
|
||||
"mutability": "mutable",
|
||||
"name": "from",
|
||||
"nameLocation": "893:4:2",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1059,
|
||||
"src": "885:12:2",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1049,
|
||||
"name": "address",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "885:7:2",
|
||||
"stateMutability": "nonpayable",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_address",
|
||||
"typeString": "address"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1052,
|
||||
"mutability": "mutable",
|
||||
"name": "tokenId",
|
||||
"nameLocation": "915:7:2",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1059,
|
||||
"src": "907:15:2",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1051,
|
||||
"name": "uint256",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "907:7:2",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_uint256",
|
||||
"typeString": "uint256"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
},
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1054,
|
||||
"mutability": "mutable",
|
||||
"name": "data",
|
||||
"nameLocation": "947:4:2",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1059,
|
||||
"src": "932:19:2",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "calldata",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes_calldata_ptr",
|
||||
"typeString": "bytes"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1053,
|
||||
"name": "bytes",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "932:5:2",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes_storage_ptr",
|
||||
"typeString": "bytes"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "849:108:2"
|
||||
},
|
||||
"returnParameters": {
|
||||
"id": 1058,
|
||||
"nodeType": "ParameterList",
|
||||
"parameters": [
|
||||
{
|
||||
"constant": false,
|
||||
"id": 1057,
|
||||
"mutability": "mutable",
|
||||
"name": "",
|
||||
"nameLocation": "-1:-1:-1",
|
||||
"nodeType": "VariableDeclaration",
|
||||
"scope": 1059,
|
||||
"src": "976:6:2",
|
||||
"stateVariable": false,
|
||||
"storageLocation": "default",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
},
|
||||
"typeName": {
|
||||
"id": 1056,
|
||||
"name": "bytes4",
|
||||
"nodeType": "ElementaryTypeName",
|
||||
"src": "976:6:2",
|
||||
"typeDescriptions": {
|
||||
"typeIdentifier": "t_bytes4",
|
||||
"typeString": "bytes4"
|
||||
}
|
||||
},
|
||||
"visibility": "internal"
|
||||
}
|
||||
],
|
||||
"src": "975:8:2"
|
||||
},
|
||||
"scope": 1060,
|
||||
"src": "824:160:2",
|
||||
"stateMutability": "nonpayable",
|
||||
"virtual": false,
|
||||
"visibility": "external"
|
||||
}
|
||||
],
|
||||
"scope": 1061,
|
||||
"src": "294:692:2",
|
||||
"usedErrors": []
|
||||
}
|
||||
],
|
||||
"src": "116:871:2"
|
||||
},
|
||||
"compiler": {
|
||||
"name": "solc",
|
||||
"version": "0.8.19+commit.7dd6d404.Emscripten.clang"
|
||||
},
|
||||
"networks": {},
|
||||
"schemaVersion": "3.4.13",
|
||||
"updatedAt": "2023-06-04T09:28:33.984Z",
|
||||
"devdoc": {
|
||||
"details": "Interface for any contract that wants to support safeTransfers from ERC721 asset contracts.",
|
||||
"kind": "dev",
|
||||
"methods": {
|
||||
"onERC721Received(address,address,uint256,bytes)": {
|
||||
"details": "Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`."
|
||||
}
|
||||
},
|
||||
"title": "ERC721 token receiver interface",
|
||||
"version": 1
|
||||
},
|
||||
"userdoc": {
|
||||
"kind": "user",
|
||||
"methods": {},
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user