secure-transac-contracts 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/build/contracts/AccessControl.json +4579 -0
  2. package/build/contracts/Context.json +356 -0
  3. package/build/contracts/CreditSystem.json +6037 -0
  4. package/build/contracts/ECDSA.json +4734 -0
  5. package/build/contracts/EIP712.json +3021 -0
  6. package/build/contracts/ERC165.json +352 -0
  7. package/build/contracts/ERC20.json +6816 -0
  8. package/build/contracts/ERC20Permit.json +2658 -0
  9. package/build/contracts/ERC721.json +12779 -0
  10. package/build/contracts/ERC721Utils.json +1058 -0
  11. package/build/contracts/Groth16Verifier.json +6298 -0
  12. package/build/contracts/Guardian.json +1116 -0
  13. package/build/contracts/IERC1155Errors.json +1687 -0
  14. package/build/contracts/IERC165.json +197 -0
  15. package/build/contracts/IERC20.json +1162 -0
  16. package/build/contracts/IERC20Errors.json +1662 -0
  17. package/build/contracts/IERC20Metadata.json +574 -0
  18. package/build/contracts/IERC20Permit.json +546 -0
  19. package/build/contracts/IERC5267.json +392 -0
  20. package/build/contracts/IERC721.json +1729 -0
  21. package/build/contracts/IERC721Errors.json +1694 -0
  22. package/build/contracts/IERC721Metadata.json +728 -0
  23. package/build/contracts/IERC721Receiver.json +296 -0
  24. package/build/contracts/IGuardian.json +215 -0
  25. package/build/contracts/ITrustRegistry.json +6767 -0
  26. package/build/contracts/IdentityVault.json +11584 -0
  27. package/build/contracts/Math.json +23115 -0
  28. package/build/contracts/MessageHashUtils.json +1668 -0
  29. package/build/contracts/Nonces.json +865 -0
  30. package/build/contracts/Ownable.json +1859 -0
  31. package/build/contracts/Panic.json +798 -0
  32. package/build/contracts/ReportingSystem.json +2787 -0
  33. package/build/contracts/SafeCast.json +21592 -0
  34. package/build/contracts/ScoringSystem.json +11245 -0
  35. package/build/contracts/SecureTransacSBT.json +18823 -0
  36. package/build/contracts/SecureTransacToken.json +19225 -0
  37. package/build/contracts/SecureVault.json +12890 -0
  38. package/build/contracts/ShortStrings.json +2852 -0
  39. package/build/contracts/SignedMath.json +1915 -0
  40. package/build/contracts/StorageSlot.json +1773 -0
  41. package/build/contracts/Strings.json +19001 -0
  42. package/build/contracts/TransactionLogger.json +5325 -0
  43. package/build/contracts/TrustDAO.json +23850 -0
  44. package/build/contracts/TrustRegistry.json +10948 -0
  45. package/build/contracts/VerificationRegistry.json +12811 -0
  46. package/build/contracts/ZKIdentityVerifier.json +13979 -0
  47. package/contracts/AccessControl.sol +34 -0
  48. package/contracts/CreditSystem.sol +48 -0
  49. package/contracts/Guardian.sol +33 -0
  50. package/contracts/IGuardian.sol +7 -0
  51. package/contracts/IdentityVault.sol +57 -0
  52. package/contracts/ReportingSystem.sol +14 -0
  53. package/contracts/ScoringSystem.sol +71 -0
  54. package/contracts/SecureTransacSBT.sol +72 -0
  55. package/contracts/SecureTransacToken.sol +20 -0
  56. package/contracts/SecureVault.sol +24 -0
  57. package/contracts/TransactionLogger.sol +12 -0
  58. package/contracts/TrustDAO.sol +158 -0
  59. package/contracts/TrustRegistry.sol +23 -0
  60. package/contracts/VerificationRegistry.sol +51 -0
  61. package/contracts/ZKIdentityVerifier.sol +38 -0
  62. package/contracts/ZKScoreVerifier.sol +175 -0
  63. package/package.json +32 -0
@@ -0,0 +1,1729 @@
1
+ {
2
+ "contractName": "IERC721",
3
+ "abi": [
4
+ {
5
+ "anonymous": false,
6
+ "inputs": [
7
+ {
8
+ "indexed": true,
9
+ "internalType": "address",
10
+ "name": "owner",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "indexed": true,
15
+ "internalType": "address",
16
+ "name": "approved",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "indexed": true,
21
+ "internalType": "uint256",
22
+ "name": "tokenId",
23
+ "type": "uint256"
24
+ }
25
+ ],
26
+ "name": "Approval",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ {
33
+ "indexed": true,
34
+ "internalType": "address",
35
+ "name": "owner",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "indexed": true,
40
+ "internalType": "address",
41
+ "name": "operator",
42
+ "type": "address"
43
+ },
44
+ {
45
+ "indexed": false,
46
+ "internalType": "bool",
47
+ "name": "approved",
48
+ "type": "bool"
49
+ }
50
+ ],
51
+ "name": "ApprovalForAll",
52
+ "type": "event"
53
+ },
54
+ {
55
+ "anonymous": false,
56
+ "inputs": [
57
+ {
58
+ "indexed": true,
59
+ "internalType": "address",
60
+ "name": "from",
61
+ "type": "address"
62
+ },
63
+ {
64
+ "indexed": true,
65
+ "internalType": "address",
66
+ "name": "to",
67
+ "type": "address"
68
+ },
69
+ {
70
+ "indexed": true,
71
+ "internalType": "uint256",
72
+ "name": "tokenId",
73
+ "type": "uint256"
74
+ }
75
+ ],
76
+ "name": "Transfer",
77
+ "type": "event"
78
+ },
79
+ {
80
+ "inputs": [
81
+ {
82
+ "internalType": "bytes4",
83
+ "name": "interfaceId",
84
+ "type": "bytes4"
85
+ }
86
+ ],
87
+ "name": "supportsInterface",
88
+ "outputs": [
89
+ {
90
+ "internalType": "bool",
91
+ "name": "",
92
+ "type": "bool"
93
+ }
94
+ ],
95
+ "stateMutability": "view",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "internalType": "address",
102
+ "name": "owner",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "name": "balanceOf",
107
+ "outputs": [
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "balance",
111
+ "type": "uint256"
112
+ }
113
+ ],
114
+ "stateMutability": "view",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [
119
+ {
120
+ "internalType": "uint256",
121
+ "name": "tokenId",
122
+ "type": "uint256"
123
+ }
124
+ ],
125
+ "name": "ownerOf",
126
+ "outputs": [
127
+ {
128
+ "internalType": "address",
129
+ "name": "owner",
130
+ "type": "address"
131
+ }
132
+ ],
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [
138
+ {
139
+ "internalType": "address",
140
+ "name": "from",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "internalType": "address",
145
+ "name": "to",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "uint256",
150
+ "name": "tokenId",
151
+ "type": "uint256"
152
+ }
153
+ ],
154
+ "name": "safeTransferFrom",
155
+ "outputs": [],
156
+ "stateMutability": "nonpayable",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [
161
+ {
162
+ "internalType": "address",
163
+ "name": "from",
164
+ "type": "address"
165
+ },
166
+ {
167
+ "internalType": "address",
168
+ "name": "to",
169
+ "type": "address"
170
+ },
171
+ {
172
+ "internalType": "uint256",
173
+ "name": "tokenId",
174
+ "type": "uint256"
175
+ },
176
+ {
177
+ "internalType": "bytes",
178
+ "name": "data",
179
+ "type": "bytes"
180
+ }
181
+ ],
182
+ "name": "safeTransferFrom",
183
+ "outputs": [],
184
+ "stateMutability": "nonpayable",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [
189
+ {
190
+ "internalType": "address",
191
+ "name": "from",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "internalType": "address",
196
+ "name": "to",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "internalType": "uint256",
201
+ "name": "tokenId",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "name": "transferFrom",
206
+ "outputs": [],
207
+ "stateMutability": "nonpayable",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "address",
214
+ "name": "to",
215
+ "type": "address"
216
+ },
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "tokenId",
220
+ "type": "uint256"
221
+ }
222
+ ],
223
+ "name": "approve",
224
+ "outputs": [],
225
+ "stateMutability": "nonpayable",
226
+ "type": "function"
227
+ },
228
+ {
229
+ "inputs": [
230
+ {
231
+ "internalType": "address",
232
+ "name": "operator",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "internalType": "bool",
237
+ "name": "approved",
238
+ "type": "bool"
239
+ }
240
+ ],
241
+ "name": "setApprovalForAll",
242
+ "outputs": [],
243
+ "stateMutability": "nonpayable",
244
+ "type": "function"
245
+ },
246
+ {
247
+ "inputs": [
248
+ {
249
+ "internalType": "uint256",
250
+ "name": "tokenId",
251
+ "type": "uint256"
252
+ }
253
+ ],
254
+ "name": "getApproved",
255
+ "outputs": [
256
+ {
257
+ "internalType": "address",
258
+ "name": "operator",
259
+ "type": "address"
260
+ }
261
+ ],
262
+ "stateMutability": "view",
263
+ "type": "function"
264
+ },
265
+ {
266
+ "inputs": [
267
+ {
268
+ "internalType": "address",
269
+ "name": "owner",
270
+ "type": "address"
271
+ },
272
+ {
273
+ "internalType": "address",
274
+ "name": "operator",
275
+ "type": "address"
276
+ }
277
+ ],
278
+ "name": "isApprovedForAll",
279
+ "outputs": [
280
+ {
281
+ "internalType": "bool",
282
+ "name": "",
283
+ "type": "bool"
284
+ }
285
+ ],
286
+ "stateMutability": "view",
287
+ "type": "function"
288
+ }
289
+ ],
290
+ "metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Required interface of an ERC-721 compliant contract.\",\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when `owner` enables `approved` to manage the `tokenId` token.\"},\"ApprovalForAll(address,address,bool)\":{\"details\":\"Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `tokenId` token is transferred from `from` to `to`.\"}},\"kind\":\"dev\",\"methods\":{\"approve(address,uint256)\":{\"details\":\"Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event.\"},\"balanceOf(address)\":{\"details\":\"Returns the number of tokens in ``owner``'s account.\"},\"getApproved(uint256)\":{\"details\":\"Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist.\"},\"isApprovedForAll(address,address)\":{\"details\":\"Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}\"},\"ownerOf(uint256)\":{\"details\":\"Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist.\"},\"safeTransferFrom(address,address,uint256)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.\"},\"safeTransferFrom(address,address,uint256,bytes)\":{\"details\":\"Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event.\"},\"setApprovalForAll(address,bool)\":{\"details\":\"Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event.\"},\"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[ERC section] to learn more about how these ids are created. This function call must use less than 30 000 gas.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":\"IERC721\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"keccak256\":\"0xf78f05f3b8c9f75570e85300d7b4600d7f6f6a198449273f31d44c1641adb46f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e28b872613b45e0e801d4995aa4380be2531147bfe2d85c1d6275f1de514fba3\",\"dweb:/ipfs/QmeeFcfShHYaS3BdgVj78nxR28ZaVUwbvr66ud8bT6kzw9\"]},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]}},\"version\":1}",
291
+ "bytecode": "0x",
292
+ "deployedBytecode": "0x",
293
+ "immutableReferences": {},
294
+ "generatedSources": [],
295
+ "deployedGeneratedSources": [],
296
+ "sourceMap": "",
297
+ "deployedSourceMap": "",
298
+ "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/IERC721.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC165} from \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev Required interface of an ERC-721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n /**\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n */\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n */\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n /**\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n */\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n /**\n * @dev Returns the number of tokens in ``owner``'s account.\n */\n function balanceOf(address owner) external view returns (uint256 balance);\n\n /**\n * @dev Returns the owner of the `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function ownerOf(uint256 tokenId) external view returns (address owner);\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n * a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\n /**\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n * are aware of the ERC-721 protocol to prevent tokens from being forever locked.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must exist and be owned by `from`.\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n * {setApprovalForAll}.\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n * a safe transfer.\n *\n * Emits a {Transfer} event.\n */\n function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Transfers `tokenId` token from `from` to `to`.\n *\n * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721\n * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n * understand this adds an external call which potentially creates a reentrancy vulnerability.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `tokenId` token must be owned by `from`.\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 tokenId) external;\n\n /**\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n * The approval is cleared when the token is transferred.\n *\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n *\n * Requirements:\n *\n * - The caller must own the token or be an approved operator.\n * - `tokenId` must exist.\n *\n * Emits an {Approval} event.\n */\n function approve(address to, uint256 tokenId) external;\n\n /**\n * @dev Approve or remove `operator` as an operator for the caller.\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n *\n * Requirements:\n *\n * - The `operator` cannot be the address zero.\n *\n * Emits an {ApprovalForAll} event.\n */\n function setApprovalForAll(address operator, bool approved) external;\n\n /**\n * @dev Returns the account approved for `tokenId` token.\n *\n * Requirements:\n *\n * - `tokenId` must exist.\n */\n function getApproved(uint256 tokenId) external view returns (address operator);\n\n /**\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n *\n * See {setApprovalForAll}\n */\n function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n",
299
+ "sourcePath": "@openzeppelin\\contracts\\token\\ERC721\\IERC721.sol",
300
+ "ast": {
301
+ "absolutePath": "@openzeppelin/contracts/token/ERC721/IERC721.sol",
302
+ "exportedSymbols": {
303
+ "IERC165": [
304
+ 4905
305
+ ],
306
+ "IERC721": [
307
+ 2192
308
+ ]
309
+ },
310
+ "id": 2193,
311
+ "license": "MIT",
312
+ "nodeType": "SourceUnit",
313
+ "nodes": [
314
+ {
315
+ "id": 2077,
316
+ "literals": [
317
+ "solidity",
318
+ ">=",
319
+ "0.6",
320
+ ".2"
321
+ ],
322
+ "nodeType": "PragmaDirective",
323
+ "src": "108:24:9"
324
+ },
325
+ {
326
+ "absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
327
+ "file": "../../utils/introspection/IERC165.sol",
328
+ "id": 2079,
329
+ "nameLocation": "-1:-1:-1",
330
+ "nodeType": "ImportDirective",
331
+ "scope": 2193,
332
+ "sourceUnit": 4906,
333
+ "src": "134:62:9",
334
+ "symbolAliases": [
335
+ {
336
+ "foreign": {
337
+ "id": 2078,
338
+ "name": "IERC165",
339
+ "nodeType": "Identifier",
340
+ "overloadedDeclarations": [],
341
+ "referencedDeclaration": 4905,
342
+ "src": "142:7:9",
343
+ "typeDescriptions": {}
344
+ },
345
+ "nameLocation": "-1:-1:-1"
346
+ }
347
+ ],
348
+ "unitAlias": ""
349
+ },
350
+ {
351
+ "abstract": false,
352
+ "baseContracts": [
353
+ {
354
+ "baseName": {
355
+ "id": 2081,
356
+ "name": "IERC165",
357
+ "nameLocations": [
358
+ "288:7:9"
359
+ ],
360
+ "nodeType": "IdentifierPath",
361
+ "referencedDeclaration": 4905,
362
+ "src": "288:7:9"
363
+ },
364
+ "id": 2082,
365
+ "nodeType": "InheritanceSpecifier",
366
+ "src": "288:7:9"
367
+ }
368
+ ],
369
+ "canonicalName": "IERC721",
370
+ "contractDependencies": [],
371
+ "contractKind": "interface",
372
+ "documentation": {
373
+ "id": 2080,
374
+ "nodeType": "StructuredDocumentation",
375
+ "src": "198:68:9",
376
+ "text": " @dev Required interface of an ERC-721 compliant contract."
377
+ },
378
+ "fullyImplemented": false,
379
+ "id": 2192,
380
+ "linearizedBaseContracts": [
381
+ 2192,
382
+ 4905
383
+ ],
384
+ "name": "IERC721",
385
+ "nameLocation": "277:7:9",
386
+ "nodeType": "ContractDefinition",
387
+ "nodes": [
388
+ {
389
+ "anonymous": false,
390
+ "documentation": {
391
+ "id": 2083,
392
+ "nodeType": "StructuredDocumentation",
393
+ "src": "302:88:9",
394
+ "text": " @dev Emitted when `tokenId` token is transferred from `from` to `to`."
395
+ },
396
+ "eventSelector": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
397
+ "id": 2091,
398
+ "name": "Transfer",
399
+ "nameLocation": "401:8:9",
400
+ "nodeType": "EventDefinition",
401
+ "parameters": {
402
+ "id": 2090,
403
+ "nodeType": "ParameterList",
404
+ "parameters": [
405
+ {
406
+ "constant": false,
407
+ "id": 2085,
408
+ "indexed": true,
409
+ "mutability": "mutable",
410
+ "name": "from",
411
+ "nameLocation": "426:4:9",
412
+ "nodeType": "VariableDeclaration",
413
+ "scope": 2091,
414
+ "src": "410:20:9",
415
+ "stateVariable": false,
416
+ "storageLocation": "default",
417
+ "typeDescriptions": {
418
+ "typeIdentifier": "t_address",
419
+ "typeString": "address"
420
+ },
421
+ "typeName": {
422
+ "id": 2084,
423
+ "name": "address",
424
+ "nodeType": "ElementaryTypeName",
425
+ "src": "410:7:9",
426
+ "stateMutability": "nonpayable",
427
+ "typeDescriptions": {
428
+ "typeIdentifier": "t_address",
429
+ "typeString": "address"
430
+ }
431
+ },
432
+ "visibility": "internal"
433
+ },
434
+ {
435
+ "constant": false,
436
+ "id": 2087,
437
+ "indexed": true,
438
+ "mutability": "mutable",
439
+ "name": "to",
440
+ "nameLocation": "448:2:9",
441
+ "nodeType": "VariableDeclaration",
442
+ "scope": 2091,
443
+ "src": "432:18:9",
444
+ "stateVariable": false,
445
+ "storageLocation": "default",
446
+ "typeDescriptions": {
447
+ "typeIdentifier": "t_address",
448
+ "typeString": "address"
449
+ },
450
+ "typeName": {
451
+ "id": 2086,
452
+ "name": "address",
453
+ "nodeType": "ElementaryTypeName",
454
+ "src": "432:7:9",
455
+ "stateMutability": "nonpayable",
456
+ "typeDescriptions": {
457
+ "typeIdentifier": "t_address",
458
+ "typeString": "address"
459
+ }
460
+ },
461
+ "visibility": "internal"
462
+ },
463
+ {
464
+ "constant": false,
465
+ "id": 2089,
466
+ "indexed": true,
467
+ "mutability": "mutable",
468
+ "name": "tokenId",
469
+ "nameLocation": "468:7:9",
470
+ "nodeType": "VariableDeclaration",
471
+ "scope": 2091,
472
+ "src": "452:23:9",
473
+ "stateVariable": false,
474
+ "storageLocation": "default",
475
+ "typeDescriptions": {
476
+ "typeIdentifier": "t_uint256",
477
+ "typeString": "uint256"
478
+ },
479
+ "typeName": {
480
+ "id": 2088,
481
+ "name": "uint256",
482
+ "nodeType": "ElementaryTypeName",
483
+ "src": "452:7:9",
484
+ "typeDescriptions": {
485
+ "typeIdentifier": "t_uint256",
486
+ "typeString": "uint256"
487
+ }
488
+ },
489
+ "visibility": "internal"
490
+ }
491
+ ],
492
+ "src": "409:67:9"
493
+ },
494
+ "src": "395:82:9"
495
+ },
496
+ {
497
+ "anonymous": false,
498
+ "documentation": {
499
+ "id": 2092,
500
+ "nodeType": "StructuredDocumentation",
501
+ "src": "483:94:9",
502
+ "text": " @dev Emitted when `owner` enables `approved` to manage the `tokenId` token."
503
+ },
504
+ "eventSelector": "8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
505
+ "id": 2100,
506
+ "name": "Approval",
507
+ "nameLocation": "588:8:9",
508
+ "nodeType": "EventDefinition",
509
+ "parameters": {
510
+ "id": 2099,
511
+ "nodeType": "ParameterList",
512
+ "parameters": [
513
+ {
514
+ "constant": false,
515
+ "id": 2094,
516
+ "indexed": true,
517
+ "mutability": "mutable",
518
+ "name": "owner",
519
+ "nameLocation": "613:5:9",
520
+ "nodeType": "VariableDeclaration",
521
+ "scope": 2100,
522
+ "src": "597:21:9",
523
+ "stateVariable": false,
524
+ "storageLocation": "default",
525
+ "typeDescriptions": {
526
+ "typeIdentifier": "t_address",
527
+ "typeString": "address"
528
+ },
529
+ "typeName": {
530
+ "id": 2093,
531
+ "name": "address",
532
+ "nodeType": "ElementaryTypeName",
533
+ "src": "597:7:9",
534
+ "stateMutability": "nonpayable",
535
+ "typeDescriptions": {
536
+ "typeIdentifier": "t_address",
537
+ "typeString": "address"
538
+ }
539
+ },
540
+ "visibility": "internal"
541
+ },
542
+ {
543
+ "constant": false,
544
+ "id": 2096,
545
+ "indexed": true,
546
+ "mutability": "mutable",
547
+ "name": "approved",
548
+ "nameLocation": "636:8:9",
549
+ "nodeType": "VariableDeclaration",
550
+ "scope": 2100,
551
+ "src": "620:24:9",
552
+ "stateVariable": false,
553
+ "storageLocation": "default",
554
+ "typeDescriptions": {
555
+ "typeIdentifier": "t_address",
556
+ "typeString": "address"
557
+ },
558
+ "typeName": {
559
+ "id": 2095,
560
+ "name": "address",
561
+ "nodeType": "ElementaryTypeName",
562
+ "src": "620:7:9",
563
+ "stateMutability": "nonpayable",
564
+ "typeDescriptions": {
565
+ "typeIdentifier": "t_address",
566
+ "typeString": "address"
567
+ }
568
+ },
569
+ "visibility": "internal"
570
+ },
571
+ {
572
+ "constant": false,
573
+ "id": 2098,
574
+ "indexed": true,
575
+ "mutability": "mutable",
576
+ "name": "tokenId",
577
+ "nameLocation": "662:7:9",
578
+ "nodeType": "VariableDeclaration",
579
+ "scope": 2100,
580
+ "src": "646:23:9",
581
+ "stateVariable": false,
582
+ "storageLocation": "default",
583
+ "typeDescriptions": {
584
+ "typeIdentifier": "t_uint256",
585
+ "typeString": "uint256"
586
+ },
587
+ "typeName": {
588
+ "id": 2097,
589
+ "name": "uint256",
590
+ "nodeType": "ElementaryTypeName",
591
+ "src": "646:7:9",
592
+ "typeDescriptions": {
593
+ "typeIdentifier": "t_uint256",
594
+ "typeString": "uint256"
595
+ }
596
+ },
597
+ "visibility": "internal"
598
+ }
599
+ ],
600
+ "src": "596:74:9"
601
+ },
602
+ "src": "582:89:9"
603
+ },
604
+ {
605
+ "anonymous": false,
606
+ "documentation": {
607
+ "id": 2101,
608
+ "nodeType": "StructuredDocumentation",
609
+ "src": "677:117:9",
610
+ "text": " @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."
611
+ },
612
+ "eventSelector": "17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31",
613
+ "id": 2109,
614
+ "name": "ApprovalForAll",
615
+ "nameLocation": "805:14:9",
616
+ "nodeType": "EventDefinition",
617
+ "parameters": {
618
+ "id": 2108,
619
+ "nodeType": "ParameterList",
620
+ "parameters": [
621
+ {
622
+ "constant": false,
623
+ "id": 2103,
624
+ "indexed": true,
625
+ "mutability": "mutable",
626
+ "name": "owner",
627
+ "nameLocation": "836:5:9",
628
+ "nodeType": "VariableDeclaration",
629
+ "scope": 2109,
630
+ "src": "820:21:9",
631
+ "stateVariable": false,
632
+ "storageLocation": "default",
633
+ "typeDescriptions": {
634
+ "typeIdentifier": "t_address",
635
+ "typeString": "address"
636
+ },
637
+ "typeName": {
638
+ "id": 2102,
639
+ "name": "address",
640
+ "nodeType": "ElementaryTypeName",
641
+ "src": "820:7:9",
642
+ "stateMutability": "nonpayable",
643
+ "typeDescriptions": {
644
+ "typeIdentifier": "t_address",
645
+ "typeString": "address"
646
+ }
647
+ },
648
+ "visibility": "internal"
649
+ },
650
+ {
651
+ "constant": false,
652
+ "id": 2105,
653
+ "indexed": true,
654
+ "mutability": "mutable",
655
+ "name": "operator",
656
+ "nameLocation": "859:8:9",
657
+ "nodeType": "VariableDeclaration",
658
+ "scope": 2109,
659
+ "src": "843:24:9",
660
+ "stateVariable": false,
661
+ "storageLocation": "default",
662
+ "typeDescriptions": {
663
+ "typeIdentifier": "t_address",
664
+ "typeString": "address"
665
+ },
666
+ "typeName": {
667
+ "id": 2104,
668
+ "name": "address",
669
+ "nodeType": "ElementaryTypeName",
670
+ "src": "843:7:9",
671
+ "stateMutability": "nonpayable",
672
+ "typeDescriptions": {
673
+ "typeIdentifier": "t_address",
674
+ "typeString": "address"
675
+ }
676
+ },
677
+ "visibility": "internal"
678
+ },
679
+ {
680
+ "constant": false,
681
+ "id": 2107,
682
+ "indexed": false,
683
+ "mutability": "mutable",
684
+ "name": "approved",
685
+ "nameLocation": "874:8:9",
686
+ "nodeType": "VariableDeclaration",
687
+ "scope": 2109,
688
+ "src": "869:13:9",
689
+ "stateVariable": false,
690
+ "storageLocation": "default",
691
+ "typeDescriptions": {
692
+ "typeIdentifier": "t_bool",
693
+ "typeString": "bool"
694
+ },
695
+ "typeName": {
696
+ "id": 2106,
697
+ "name": "bool",
698
+ "nodeType": "ElementaryTypeName",
699
+ "src": "869:4:9",
700
+ "typeDescriptions": {
701
+ "typeIdentifier": "t_bool",
702
+ "typeString": "bool"
703
+ }
704
+ },
705
+ "visibility": "internal"
706
+ }
707
+ ],
708
+ "src": "819:64:9"
709
+ },
710
+ "src": "799:85:9"
711
+ },
712
+ {
713
+ "documentation": {
714
+ "id": 2110,
715
+ "nodeType": "StructuredDocumentation",
716
+ "src": "890:76:9",
717
+ "text": " @dev Returns the number of tokens in ``owner``'s account."
718
+ },
719
+ "functionSelector": "70a08231",
720
+ "id": 2117,
721
+ "implemented": false,
722
+ "kind": "function",
723
+ "modifiers": [],
724
+ "name": "balanceOf",
725
+ "nameLocation": "980:9:9",
726
+ "nodeType": "FunctionDefinition",
727
+ "parameters": {
728
+ "id": 2113,
729
+ "nodeType": "ParameterList",
730
+ "parameters": [
731
+ {
732
+ "constant": false,
733
+ "id": 2112,
734
+ "mutability": "mutable",
735
+ "name": "owner",
736
+ "nameLocation": "998:5:9",
737
+ "nodeType": "VariableDeclaration",
738
+ "scope": 2117,
739
+ "src": "990:13:9",
740
+ "stateVariable": false,
741
+ "storageLocation": "default",
742
+ "typeDescriptions": {
743
+ "typeIdentifier": "t_address",
744
+ "typeString": "address"
745
+ },
746
+ "typeName": {
747
+ "id": 2111,
748
+ "name": "address",
749
+ "nodeType": "ElementaryTypeName",
750
+ "src": "990:7:9",
751
+ "stateMutability": "nonpayable",
752
+ "typeDescriptions": {
753
+ "typeIdentifier": "t_address",
754
+ "typeString": "address"
755
+ }
756
+ },
757
+ "visibility": "internal"
758
+ }
759
+ ],
760
+ "src": "989:15:9"
761
+ },
762
+ "returnParameters": {
763
+ "id": 2116,
764
+ "nodeType": "ParameterList",
765
+ "parameters": [
766
+ {
767
+ "constant": false,
768
+ "id": 2115,
769
+ "mutability": "mutable",
770
+ "name": "balance",
771
+ "nameLocation": "1036:7:9",
772
+ "nodeType": "VariableDeclaration",
773
+ "scope": 2117,
774
+ "src": "1028:15:9",
775
+ "stateVariable": false,
776
+ "storageLocation": "default",
777
+ "typeDescriptions": {
778
+ "typeIdentifier": "t_uint256",
779
+ "typeString": "uint256"
780
+ },
781
+ "typeName": {
782
+ "id": 2114,
783
+ "name": "uint256",
784
+ "nodeType": "ElementaryTypeName",
785
+ "src": "1028:7:9",
786
+ "typeDescriptions": {
787
+ "typeIdentifier": "t_uint256",
788
+ "typeString": "uint256"
789
+ }
790
+ },
791
+ "visibility": "internal"
792
+ }
793
+ ],
794
+ "src": "1027:17:9"
795
+ },
796
+ "scope": 2192,
797
+ "src": "971:74:9",
798
+ "stateMutability": "view",
799
+ "virtual": false,
800
+ "visibility": "external"
801
+ },
802
+ {
803
+ "documentation": {
804
+ "id": 2118,
805
+ "nodeType": "StructuredDocumentation",
806
+ "src": "1051:131:9",
807
+ "text": " @dev Returns the owner of the `tokenId` token.\n Requirements:\n - `tokenId` must exist."
808
+ },
809
+ "functionSelector": "6352211e",
810
+ "id": 2125,
811
+ "implemented": false,
812
+ "kind": "function",
813
+ "modifiers": [],
814
+ "name": "ownerOf",
815
+ "nameLocation": "1196:7:9",
816
+ "nodeType": "FunctionDefinition",
817
+ "parameters": {
818
+ "id": 2121,
819
+ "nodeType": "ParameterList",
820
+ "parameters": [
821
+ {
822
+ "constant": false,
823
+ "id": 2120,
824
+ "mutability": "mutable",
825
+ "name": "tokenId",
826
+ "nameLocation": "1212:7:9",
827
+ "nodeType": "VariableDeclaration",
828
+ "scope": 2125,
829
+ "src": "1204:15:9",
830
+ "stateVariable": false,
831
+ "storageLocation": "default",
832
+ "typeDescriptions": {
833
+ "typeIdentifier": "t_uint256",
834
+ "typeString": "uint256"
835
+ },
836
+ "typeName": {
837
+ "id": 2119,
838
+ "name": "uint256",
839
+ "nodeType": "ElementaryTypeName",
840
+ "src": "1204:7:9",
841
+ "typeDescriptions": {
842
+ "typeIdentifier": "t_uint256",
843
+ "typeString": "uint256"
844
+ }
845
+ },
846
+ "visibility": "internal"
847
+ }
848
+ ],
849
+ "src": "1203:17:9"
850
+ },
851
+ "returnParameters": {
852
+ "id": 2124,
853
+ "nodeType": "ParameterList",
854
+ "parameters": [
855
+ {
856
+ "constant": false,
857
+ "id": 2123,
858
+ "mutability": "mutable",
859
+ "name": "owner",
860
+ "nameLocation": "1252:5:9",
861
+ "nodeType": "VariableDeclaration",
862
+ "scope": 2125,
863
+ "src": "1244:13:9",
864
+ "stateVariable": false,
865
+ "storageLocation": "default",
866
+ "typeDescriptions": {
867
+ "typeIdentifier": "t_address",
868
+ "typeString": "address"
869
+ },
870
+ "typeName": {
871
+ "id": 2122,
872
+ "name": "address",
873
+ "nodeType": "ElementaryTypeName",
874
+ "src": "1244:7:9",
875
+ "stateMutability": "nonpayable",
876
+ "typeDescriptions": {
877
+ "typeIdentifier": "t_address",
878
+ "typeString": "address"
879
+ }
880
+ },
881
+ "visibility": "internal"
882
+ }
883
+ ],
884
+ "src": "1243:15:9"
885
+ },
886
+ "scope": 2192,
887
+ "src": "1187:72:9",
888
+ "stateMutability": "view",
889
+ "virtual": false,
890
+ "visibility": "external"
891
+ },
892
+ {
893
+ "documentation": {
894
+ "id": 2126,
895
+ "nodeType": "StructuredDocumentation",
896
+ "src": "1265:565:9",
897
+ "text": " @dev Safely transfers `tokenId` token from `from` to `to`.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must exist and be owned by `from`.\n - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n a safe transfer.\n Emits a {Transfer} event."
898
+ },
899
+ "functionSelector": "b88d4fde",
900
+ "id": 2137,
901
+ "implemented": false,
902
+ "kind": "function",
903
+ "modifiers": [],
904
+ "name": "safeTransferFrom",
905
+ "nameLocation": "1844:16:9",
906
+ "nodeType": "FunctionDefinition",
907
+ "parameters": {
908
+ "id": 2135,
909
+ "nodeType": "ParameterList",
910
+ "parameters": [
911
+ {
912
+ "constant": false,
913
+ "id": 2128,
914
+ "mutability": "mutable",
915
+ "name": "from",
916
+ "nameLocation": "1869:4:9",
917
+ "nodeType": "VariableDeclaration",
918
+ "scope": 2137,
919
+ "src": "1861:12:9",
920
+ "stateVariable": false,
921
+ "storageLocation": "default",
922
+ "typeDescriptions": {
923
+ "typeIdentifier": "t_address",
924
+ "typeString": "address"
925
+ },
926
+ "typeName": {
927
+ "id": 2127,
928
+ "name": "address",
929
+ "nodeType": "ElementaryTypeName",
930
+ "src": "1861:7:9",
931
+ "stateMutability": "nonpayable",
932
+ "typeDescriptions": {
933
+ "typeIdentifier": "t_address",
934
+ "typeString": "address"
935
+ }
936
+ },
937
+ "visibility": "internal"
938
+ },
939
+ {
940
+ "constant": false,
941
+ "id": 2130,
942
+ "mutability": "mutable",
943
+ "name": "to",
944
+ "nameLocation": "1883:2:9",
945
+ "nodeType": "VariableDeclaration",
946
+ "scope": 2137,
947
+ "src": "1875:10:9",
948
+ "stateVariable": false,
949
+ "storageLocation": "default",
950
+ "typeDescriptions": {
951
+ "typeIdentifier": "t_address",
952
+ "typeString": "address"
953
+ },
954
+ "typeName": {
955
+ "id": 2129,
956
+ "name": "address",
957
+ "nodeType": "ElementaryTypeName",
958
+ "src": "1875:7:9",
959
+ "stateMutability": "nonpayable",
960
+ "typeDescriptions": {
961
+ "typeIdentifier": "t_address",
962
+ "typeString": "address"
963
+ }
964
+ },
965
+ "visibility": "internal"
966
+ },
967
+ {
968
+ "constant": false,
969
+ "id": 2132,
970
+ "mutability": "mutable",
971
+ "name": "tokenId",
972
+ "nameLocation": "1895:7:9",
973
+ "nodeType": "VariableDeclaration",
974
+ "scope": 2137,
975
+ "src": "1887:15:9",
976
+ "stateVariable": false,
977
+ "storageLocation": "default",
978
+ "typeDescriptions": {
979
+ "typeIdentifier": "t_uint256",
980
+ "typeString": "uint256"
981
+ },
982
+ "typeName": {
983
+ "id": 2131,
984
+ "name": "uint256",
985
+ "nodeType": "ElementaryTypeName",
986
+ "src": "1887:7:9",
987
+ "typeDescriptions": {
988
+ "typeIdentifier": "t_uint256",
989
+ "typeString": "uint256"
990
+ }
991
+ },
992
+ "visibility": "internal"
993
+ },
994
+ {
995
+ "constant": false,
996
+ "id": 2134,
997
+ "mutability": "mutable",
998
+ "name": "data",
999
+ "nameLocation": "1919:4:9",
1000
+ "nodeType": "VariableDeclaration",
1001
+ "scope": 2137,
1002
+ "src": "1904:19:9",
1003
+ "stateVariable": false,
1004
+ "storageLocation": "calldata",
1005
+ "typeDescriptions": {
1006
+ "typeIdentifier": "t_bytes_calldata_ptr",
1007
+ "typeString": "bytes"
1008
+ },
1009
+ "typeName": {
1010
+ "id": 2133,
1011
+ "name": "bytes",
1012
+ "nodeType": "ElementaryTypeName",
1013
+ "src": "1904:5:9",
1014
+ "typeDescriptions": {
1015
+ "typeIdentifier": "t_bytes_storage_ptr",
1016
+ "typeString": "bytes"
1017
+ }
1018
+ },
1019
+ "visibility": "internal"
1020
+ }
1021
+ ],
1022
+ "src": "1860:64:9"
1023
+ },
1024
+ "returnParameters": {
1025
+ "id": 2136,
1026
+ "nodeType": "ParameterList",
1027
+ "parameters": [],
1028
+ "src": "1933:0:9"
1029
+ },
1030
+ "scope": 2192,
1031
+ "src": "1835:99:9",
1032
+ "stateMutability": "nonpayable",
1033
+ "virtual": false,
1034
+ "visibility": "external"
1035
+ },
1036
+ {
1037
+ "documentation": {
1038
+ "id": 2138,
1039
+ "nodeType": "StructuredDocumentation",
1040
+ "src": "1940:706:9",
1041
+ "text": " @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n are aware of the ERC-721 protocol to prevent tokens from being forever locked.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must exist and be owned by `from`.\n - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n {setApprovalForAll}.\n - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n a safe transfer.\n Emits a {Transfer} event."
1042
+ },
1043
+ "functionSelector": "42842e0e",
1044
+ "id": 2147,
1045
+ "implemented": false,
1046
+ "kind": "function",
1047
+ "modifiers": [],
1048
+ "name": "safeTransferFrom",
1049
+ "nameLocation": "2660:16:9",
1050
+ "nodeType": "FunctionDefinition",
1051
+ "parameters": {
1052
+ "id": 2145,
1053
+ "nodeType": "ParameterList",
1054
+ "parameters": [
1055
+ {
1056
+ "constant": false,
1057
+ "id": 2140,
1058
+ "mutability": "mutable",
1059
+ "name": "from",
1060
+ "nameLocation": "2685:4:9",
1061
+ "nodeType": "VariableDeclaration",
1062
+ "scope": 2147,
1063
+ "src": "2677:12:9",
1064
+ "stateVariable": false,
1065
+ "storageLocation": "default",
1066
+ "typeDescriptions": {
1067
+ "typeIdentifier": "t_address",
1068
+ "typeString": "address"
1069
+ },
1070
+ "typeName": {
1071
+ "id": 2139,
1072
+ "name": "address",
1073
+ "nodeType": "ElementaryTypeName",
1074
+ "src": "2677:7:9",
1075
+ "stateMutability": "nonpayable",
1076
+ "typeDescriptions": {
1077
+ "typeIdentifier": "t_address",
1078
+ "typeString": "address"
1079
+ }
1080
+ },
1081
+ "visibility": "internal"
1082
+ },
1083
+ {
1084
+ "constant": false,
1085
+ "id": 2142,
1086
+ "mutability": "mutable",
1087
+ "name": "to",
1088
+ "nameLocation": "2699:2:9",
1089
+ "nodeType": "VariableDeclaration",
1090
+ "scope": 2147,
1091
+ "src": "2691:10:9",
1092
+ "stateVariable": false,
1093
+ "storageLocation": "default",
1094
+ "typeDescriptions": {
1095
+ "typeIdentifier": "t_address",
1096
+ "typeString": "address"
1097
+ },
1098
+ "typeName": {
1099
+ "id": 2141,
1100
+ "name": "address",
1101
+ "nodeType": "ElementaryTypeName",
1102
+ "src": "2691:7:9",
1103
+ "stateMutability": "nonpayable",
1104
+ "typeDescriptions": {
1105
+ "typeIdentifier": "t_address",
1106
+ "typeString": "address"
1107
+ }
1108
+ },
1109
+ "visibility": "internal"
1110
+ },
1111
+ {
1112
+ "constant": false,
1113
+ "id": 2144,
1114
+ "mutability": "mutable",
1115
+ "name": "tokenId",
1116
+ "nameLocation": "2711:7:9",
1117
+ "nodeType": "VariableDeclaration",
1118
+ "scope": 2147,
1119
+ "src": "2703:15:9",
1120
+ "stateVariable": false,
1121
+ "storageLocation": "default",
1122
+ "typeDescriptions": {
1123
+ "typeIdentifier": "t_uint256",
1124
+ "typeString": "uint256"
1125
+ },
1126
+ "typeName": {
1127
+ "id": 2143,
1128
+ "name": "uint256",
1129
+ "nodeType": "ElementaryTypeName",
1130
+ "src": "2703:7:9",
1131
+ "typeDescriptions": {
1132
+ "typeIdentifier": "t_uint256",
1133
+ "typeString": "uint256"
1134
+ }
1135
+ },
1136
+ "visibility": "internal"
1137
+ }
1138
+ ],
1139
+ "src": "2676:43:9"
1140
+ },
1141
+ "returnParameters": {
1142
+ "id": 2146,
1143
+ "nodeType": "ParameterList",
1144
+ "parameters": [],
1145
+ "src": "2728:0:9"
1146
+ },
1147
+ "scope": 2192,
1148
+ "src": "2651:78:9",
1149
+ "stateMutability": "nonpayable",
1150
+ "virtual": false,
1151
+ "visibility": "external"
1152
+ },
1153
+ {
1154
+ "documentation": {
1155
+ "id": 2148,
1156
+ "nodeType": "StructuredDocumentation",
1157
+ "src": "2735:733:9",
1158
+ "text": " @dev Transfers `tokenId` token from `from` to `to`.\n WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721\n or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n understand this adds an external call which potentially creates a reentrancy vulnerability.\n Requirements:\n - `from` cannot be the zero address.\n - `to` cannot be the zero address.\n - `tokenId` token must be owned by `from`.\n - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n Emits a {Transfer} event."
1159
+ },
1160
+ "functionSelector": "23b872dd",
1161
+ "id": 2157,
1162
+ "implemented": false,
1163
+ "kind": "function",
1164
+ "modifiers": [],
1165
+ "name": "transferFrom",
1166
+ "nameLocation": "3482:12:9",
1167
+ "nodeType": "FunctionDefinition",
1168
+ "parameters": {
1169
+ "id": 2155,
1170
+ "nodeType": "ParameterList",
1171
+ "parameters": [
1172
+ {
1173
+ "constant": false,
1174
+ "id": 2150,
1175
+ "mutability": "mutable",
1176
+ "name": "from",
1177
+ "nameLocation": "3503:4:9",
1178
+ "nodeType": "VariableDeclaration",
1179
+ "scope": 2157,
1180
+ "src": "3495:12:9",
1181
+ "stateVariable": false,
1182
+ "storageLocation": "default",
1183
+ "typeDescriptions": {
1184
+ "typeIdentifier": "t_address",
1185
+ "typeString": "address"
1186
+ },
1187
+ "typeName": {
1188
+ "id": 2149,
1189
+ "name": "address",
1190
+ "nodeType": "ElementaryTypeName",
1191
+ "src": "3495:7:9",
1192
+ "stateMutability": "nonpayable",
1193
+ "typeDescriptions": {
1194
+ "typeIdentifier": "t_address",
1195
+ "typeString": "address"
1196
+ }
1197
+ },
1198
+ "visibility": "internal"
1199
+ },
1200
+ {
1201
+ "constant": false,
1202
+ "id": 2152,
1203
+ "mutability": "mutable",
1204
+ "name": "to",
1205
+ "nameLocation": "3517:2:9",
1206
+ "nodeType": "VariableDeclaration",
1207
+ "scope": 2157,
1208
+ "src": "3509:10:9",
1209
+ "stateVariable": false,
1210
+ "storageLocation": "default",
1211
+ "typeDescriptions": {
1212
+ "typeIdentifier": "t_address",
1213
+ "typeString": "address"
1214
+ },
1215
+ "typeName": {
1216
+ "id": 2151,
1217
+ "name": "address",
1218
+ "nodeType": "ElementaryTypeName",
1219
+ "src": "3509:7:9",
1220
+ "stateMutability": "nonpayable",
1221
+ "typeDescriptions": {
1222
+ "typeIdentifier": "t_address",
1223
+ "typeString": "address"
1224
+ }
1225
+ },
1226
+ "visibility": "internal"
1227
+ },
1228
+ {
1229
+ "constant": false,
1230
+ "id": 2154,
1231
+ "mutability": "mutable",
1232
+ "name": "tokenId",
1233
+ "nameLocation": "3529:7:9",
1234
+ "nodeType": "VariableDeclaration",
1235
+ "scope": 2157,
1236
+ "src": "3521:15:9",
1237
+ "stateVariable": false,
1238
+ "storageLocation": "default",
1239
+ "typeDescriptions": {
1240
+ "typeIdentifier": "t_uint256",
1241
+ "typeString": "uint256"
1242
+ },
1243
+ "typeName": {
1244
+ "id": 2153,
1245
+ "name": "uint256",
1246
+ "nodeType": "ElementaryTypeName",
1247
+ "src": "3521:7:9",
1248
+ "typeDescriptions": {
1249
+ "typeIdentifier": "t_uint256",
1250
+ "typeString": "uint256"
1251
+ }
1252
+ },
1253
+ "visibility": "internal"
1254
+ }
1255
+ ],
1256
+ "src": "3494:43:9"
1257
+ },
1258
+ "returnParameters": {
1259
+ "id": 2156,
1260
+ "nodeType": "ParameterList",
1261
+ "parameters": [],
1262
+ "src": "3546:0:9"
1263
+ },
1264
+ "scope": 2192,
1265
+ "src": "3473:74:9",
1266
+ "stateMutability": "nonpayable",
1267
+ "virtual": false,
1268
+ "visibility": "external"
1269
+ },
1270
+ {
1271
+ "documentation": {
1272
+ "id": 2158,
1273
+ "nodeType": "StructuredDocumentation",
1274
+ "src": "3553:452:9",
1275
+ "text": " @dev Gives permission to `to` to transfer `tokenId` token to another account.\n The approval is cleared when the token is transferred.\n Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n Requirements:\n - The caller must own the token or be an approved operator.\n - `tokenId` must exist.\n Emits an {Approval} event."
1276
+ },
1277
+ "functionSelector": "095ea7b3",
1278
+ "id": 2165,
1279
+ "implemented": false,
1280
+ "kind": "function",
1281
+ "modifiers": [],
1282
+ "name": "approve",
1283
+ "nameLocation": "4019:7:9",
1284
+ "nodeType": "FunctionDefinition",
1285
+ "parameters": {
1286
+ "id": 2163,
1287
+ "nodeType": "ParameterList",
1288
+ "parameters": [
1289
+ {
1290
+ "constant": false,
1291
+ "id": 2160,
1292
+ "mutability": "mutable",
1293
+ "name": "to",
1294
+ "nameLocation": "4035:2:9",
1295
+ "nodeType": "VariableDeclaration",
1296
+ "scope": 2165,
1297
+ "src": "4027:10:9",
1298
+ "stateVariable": false,
1299
+ "storageLocation": "default",
1300
+ "typeDescriptions": {
1301
+ "typeIdentifier": "t_address",
1302
+ "typeString": "address"
1303
+ },
1304
+ "typeName": {
1305
+ "id": 2159,
1306
+ "name": "address",
1307
+ "nodeType": "ElementaryTypeName",
1308
+ "src": "4027:7:9",
1309
+ "stateMutability": "nonpayable",
1310
+ "typeDescriptions": {
1311
+ "typeIdentifier": "t_address",
1312
+ "typeString": "address"
1313
+ }
1314
+ },
1315
+ "visibility": "internal"
1316
+ },
1317
+ {
1318
+ "constant": false,
1319
+ "id": 2162,
1320
+ "mutability": "mutable",
1321
+ "name": "tokenId",
1322
+ "nameLocation": "4047:7:9",
1323
+ "nodeType": "VariableDeclaration",
1324
+ "scope": 2165,
1325
+ "src": "4039:15:9",
1326
+ "stateVariable": false,
1327
+ "storageLocation": "default",
1328
+ "typeDescriptions": {
1329
+ "typeIdentifier": "t_uint256",
1330
+ "typeString": "uint256"
1331
+ },
1332
+ "typeName": {
1333
+ "id": 2161,
1334
+ "name": "uint256",
1335
+ "nodeType": "ElementaryTypeName",
1336
+ "src": "4039:7:9",
1337
+ "typeDescriptions": {
1338
+ "typeIdentifier": "t_uint256",
1339
+ "typeString": "uint256"
1340
+ }
1341
+ },
1342
+ "visibility": "internal"
1343
+ }
1344
+ ],
1345
+ "src": "4026:29:9"
1346
+ },
1347
+ "returnParameters": {
1348
+ "id": 2164,
1349
+ "nodeType": "ParameterList",
1350
+ "parameters": [],
1351
+ "src": "4064:0:9"
1352
+ },
1353
+ "scope": 2192,
1354
+ "src": "4010:55:9",
1355
+ "stateMutability": "nonpayable",
1356
+ "virtual": false,
1357
+ "visibility": "external"
1358
+ },
1359
+ {
1360
+ "documentation": {
1361
+ "id": 2166,
1362
+ "nodeType": "StructuredDocumentation",
1363
+ "src": "4071:315:9",
1364
+ "text": " @dev Approve or remove `operator` as an operator for the caller.\n Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n Requirements:\n - The `operator` cannot be the address zero.\n Emits an {ApprovalForAll} event."
1365
+ },
1366
+ "functionSelector": "a22cb465",
1367
+ "id": 2173,
1368
+ "implemented": false,
1369
+ "kind": "function",
1370
+ "modifiers": [],
1371
+ "name": "setApprovalForAll",
1372
+ "nameLocation": "4400:17:9",
1373
+ "nodeType": "FunctionDefinition",
1374
+ "parameters": {
1375
+ "id": 2171,
1376
+ "nodeType": "ParameterList",
1377
+ "parameters": [
1378
+ {
1379
+ "constant": false,
1380
+ "id": 2168,
1381
+ "mutability": "mutable",
1382
+ "name": "operator",
1383
+ "nameLocation": "4426:8:9",
1384
+ "nodeType": "VariableDeclaration",
1385
+ "scope": 2173,
1386
+ "src": "4418:16:9",
1387
+ "stateVariable": false,
1388
+ "storageLocation": "default",
1389
+ "typeDescriptions": {
1390
+ "typeIdentifier": "t_address",
1391
+ "typeString": "address"
1392
+ },
1393
+ "typeName": {
1394
+ "id": 2167,
1395
+ "name": "address",
1396
+ "nodeType": "ElementaryTypeName",
1397
+ "src": "4418:7:9",
1398
+ "stateMutability": "nonpayable",
1399
+ "typeDescriptions": {
1400
+ "typeIdentifier": "t_address",
1401
+ "typeString": "address"
1402
+ }
1403
+ },
1404
+ "visibility": "internal"
1405
+ },
1406
+ {
1407
+ "constant": false,
1408
+ "id": 2170,
1409
+ "mutability": "mutable",
1410
+ "name": "approved",
1411
+ "nameLocation": "4441:8:9",
1412
+ "nodeType": "VariableDeclaration",
1413
+ "scope": 2173,
1414
+ "src": "4436:13:9",
1415
+ "stateVariable": false,
1416
+ "storageLocation": "default",
1417
+ "typeDescriptions": {
1418
+ "typeIdentifier": "t_bool",
1419
+ "typeString": "bool"
1420
+ },
1421
+ "typeName": {
1422
+ "id": 2169,
1423
+ "name": "bool",
1424
+ "nodeType": "ElementaryTypeName",
1425
+ "src": "4436:4:9",
1426
+ "typeDescriptions": {
1427
+ "typeIdentifier": "t_bool",
1428
+ "typeString": "bool"
1429
+ }
1430
+ },
1431
+ "visibility": "internal"
1432
+ }
1433
+ ],
1434
+ "src": "4417:33:9"
1435
+ },
1436
+ "returnParameters": {
1437
+ "id": 2172,
1438
+ "nodeType": "ParameterList",
1439
+ "parameters": [],
1440
+ "src": "4459:0:9"
1441
+ },
1442
+ "scope": 2192,
1443
+ "src": "4391:69:9",
1444
+ "stateMutability": "nonpayable",
1445
+ "virtual": false,
1446
+ "visibility": "external"
1447
+ },
1448
+ {
1449
+ "documentation": {
1450
+ "id": 2174,
1451
+ "nodeType": "StructuredDocumentation",
1452
+ "src": "4466:139:9",
1453
+ "text": " @dev Returns the account approved for `tokenId` token.\n Requirements:\n - `tokenId` must exist."
1454
+ },
1455
+ "functionSelector": "081812fc",
1456
+ "id": 2181,
1457
+ "implemented": false,
1458
+ "kind": "function",
1459
+ "modifiers": [],
1460
+ "name": "getApproved",
1461
+ "nameLocation": "4619:11:9",
1462
+ "nodeType": "FunctionDefinition",
1463
+ "parameters": {
1464
+ "id": 2177,
1465
+ "nodeType": "ParameterList",
1466
+ "parameters": [
1467
+ {
1468
+ "constant": false,
1469
+ "id": 2176,
1470
+ "mutability": "mutable",
1471
+ "name": "tokenId",
1472
+ "nameLocation": "4639:7:9",
1473
+ "nodeType": "VariableDeclaration",
1474
+ "scope": 2181,
1475
+ "src": "4631:15:9",
1476
+ "stateVariable": false,
1477
+ "storageLocation": "default",
1478
+ "typeDescriptions": {
1479
+ "typeIdentifier": "t_uint256",
1480
+ "typeString": "uint256"
1481
+ },
1482
+ "typeName": {
1483
+ "id": 2175,
1484
+ "name": "uint256",
1485
+ "nodeType": "ElementaryTypeName",
1486
+ "src": "4631:7:9",
1487
+ "typeDescriptions": {
1488
+ "typeIdentifier": "t_uint256",
1489
+ "typeString": "uint256"
1490
+ }
1491
+ },
1492
+ "visibility": "internal"
1493
+ }
1494
+ ],
1495
+ "src": "4630:17:9"
1496
+ },
1497
+ "returnParameters": {
1498
+ "id": 2180,
1499
+ "nodeType": "ParameterList",
1500
+ "parameters": [
1501
+ {
1502
+ "constant": false,
1503
+ "id": 2179,
1504
+ "mutability": "mutable",
1505
+ "name": "operator",
1506
+ "nameLocation": "4679:8:9",
1507
+ "nodeType": "VariableDeclaration",
1508
+ "scope": 2181,
1509
+ "src": "4671:16:9",
1510
+ "stateVariable": false,
1511
+ "storageLocation": "default",
1512
+ "typeDescriptions": {
1513
+ "typeIdentifier": "t_address",
1514
+ "typeString": "address"
1515
+ },
1516
+ "typeName": {
1517
+ "id": 2178,
1518
+ "name": "address",
1519
+ "nodeType": "ElementaryTypeName",
1520
+ "src": "4671:7:9",
1521
+ "stateMutability": "nonpayable",
1522
+ "typeDescriptions": {
1523
+ "typeIdentifier": "t_address",
1524
+ "typeString": "address"
1525
+ }
1526
+ },
1527
+ "visibility": "internal"
1528
+ }
1529
+ ],
1530
+ "src": "4670:18:9"
1531
+ },
1532
+ "scope": 2192,
1533
+ "src": "4610:79:9",
1534
+ "stateMutability": "view",
1535
+ "virtual": false,
1536
+ "visibility": "external"
1537
+ },
1538
+ {
1539
+ "documentation": {
1540
+ "id": 2182,
1541
+ "nodeType": "StructuredDocumentation",
1542
+ "src": "4695:138:9",
1543
+ "text": " @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n See {setApprovalForAll}"
1544
+ },
1545
+ "functionSelector": "e985e9c5",
1546
+ "id": 2191,
1547
+ "implemented": false,
1548
+ "kind": "function",
1549
+ "modifiers": [],
1550
+ "name": "isApprovedForAll",
1551
+ "nameLocation": "4847:16:9",
1552
+ "nodeType": "FunctionDefinition",
1553
+ "parameters": {
1554
+ "id": 2187,
1555
+ "nodeType": "ParameterList",
1556
+ "parameters": [
1557
+ {
1558
+ "constant": false,
1559
+ "id": 2184,
1560
+ "mutability": "mutable",
1561
+ "name": "owner",
1562
+ "nameLocation": "4872:5:9",
1563
+ "nodeType": "VariableDeclaration",
1564
+ "scope": 2191,
1565
+ "src": "4864:13:9",
1566
+ "stateVariable": false,
1567
+ "storageLocation": "default",
1568
+ "typeDescriptions": {
1569
+ "typeIdentifier": "t_address",
1570
+ "typeString": "address"
1571
+ },
1572
+ "typeName": {
1573
+ "id": 2183,
1574
+ "name": "address",
1575
+ "nodeType": "ElementaryTypeName",
1576
+ "src": "4864:7:9",
1577
+ "stateMutability": "nonpayable",
1578
+ "typeDescriptions": {
1579
+ "typeIdentifier": "t_address",
1580
+ "typeString": "address"
1581
+ }
1582
+ },
1583
+ "visibility": "internal"
1584
+ },
1585
+ {
1586
+ "constant": false,
1587
+ "id": 2186,
1588
+ "mutability": "mutable",
1589
+ "name": "operator",
1590
+ "nameLocation": "4887:8:9",
1591
+ "nodeType": "VariableDeclaration",
1592
+ "scope": 2191,
1593
+ "src": "4879:16:9",
1594
+ "stateVariable": false,
1595
+ "storageLocation": "default",
1596
+ "typeDescriptions": {
1597
+ "typeIdentifier": "t_address",
1598
+ "typeString": "address"
1599
+ },
1600
+ "typeName": {
1601
+ "id": 2185,
1602
+ "name": "address",
1603
+ "nodeType": "ElementaryTypeName",
1604
+ "src": "4879:7:9",
1605
+ "stateMutability": "nonpayable",
1606
+ "typeDescriptions": {
1607
+ "typeIdentifier": "t_address",
1608
+ "typeString": "address"
1609
+ }
1610
+ },
1611
+ "visibility": "internal"
1612
+ }
1613
+ ],
1614
+ "src": "4863:33:9"
1615
+ },
1616
+ "returnParameters": {
1617
+ "id": 2190,
1618
+ "nodeType": "ParameterList",
1619
+ "parameters": [
1620
+ {
1621
+ "constant": false,
1622
+ "id": 2189,
1623
+ "mutability": "mutable",
1624
+ "name": "",
1625
+ "nameLocation": "-1:-1:-1",
1626
+ "nodeType": "VariableDeclaration",
1627
+ "scope": 2191,
1628
+ "src": "4920:4:9",
1629
+ "stateVariable": false,
1630
+ "storageLocation": "default",
1631
+ "typeDescriptions": {
1632
+ "typeIdentifier": "t_bool",
1633
+ "typeString": "bool"
1634
+ },
1635
+ "typeName": {
1636
+ "id": 2188,
1637
+ "name": "bool",
1638
+ "nodeType": "ElementaryTypeName",
1639
+ "src": "4920:4:9",
1640
+ "typeDescriptions": {
1641
+ "typeIdentifier": "t_bool",
1642
+ "typeString": "bool"
1643
+ }
1644
+ },
1645
+ "visibility": "internal"
1646
+ }
1647
+ ],
1648
+ "src": "4919:6:9"
1649
+ },
1650
+ "scope": 2192,
1651
+ "src": "4838:88:9",
1652
+ "stateMutability": "view",
1653
+ "virtual": false,
1654
+ "visibility": "external"
1655
+ }
1656
+ ],
1657
+ "scope": 2193,
1658
+ "src": "267:4661:9",
1659
+ "usedErrors": [],
1660
+ "usedEvents": [
1661
+ 2091,
1662
+ 2100,
1663
+ 2109
1664
+ ]
1665
+ }
1666
+ ],
1667
+ "src": "108:4821:9"
1668
+ },
1669
+ "compiler": {
1670
+ "name": "solc",
1671
+ "version": "0.8.21+commit.d9974bed.Emscripten.clang"
1672
+ },
1673
+ "networks": {},
1674
+ "schemaVersion": "3.4.16",
1675
+ "updatedAt": "2026-01-24T20:23:03.990Z",
1676
+ "devdoc": {
1677
+ "details": "Required interface of an ERC-721 compliant contract.",
1678
+ "events": {
1679
+ "Approval(address,address,uint256)": {
1680
+ "details": "Emitted when `owner` enables `approved` to manage the `tokenId` token."
1681
+ },
1682
+ "ApprovalForAll(address,address,bool)": {
1683
+ "details": "Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."
1684
+ },
1685
+ "Transfer(address,address,uint256)": {
1686
+ "details": "Emitted when `tokenId` token is transferred from `from` to `to`."
1687
+ }
1688
+ },
1689
+ "kind": "dev",
1690
+ "methods": {
1691
+ "approve(address,uint256)": {
1692
+ "details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."
1693
+ },
1694
+ "balanceOf(address)": {
1695
+ "details": "Returns the number of tokens in ``owner``'s account."
1696
+ },
1697
+ "getApproved(uint256)": {
1698
+ "details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."
1699
+ },
1700
+ "isApprovedForAll(address,address)": {
1701
+ "details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"
1702
+ },
1703
+ "ownerOf(uint256)": {
1704
+ "details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."
1705
+ },
1706
+ "safeTransferFrom(address,address,uint256)": {
1707
+ "details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."
1708
+ },
1709
+ "safeTransferFrom(address,address,uint256,bytes)": {
1710
+ "details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."
1711
+ },
1712
+ "setApprovalForAll(address,bool)": {
1713
+ "details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event."
1714
+ },
1715
+ "supportsInterface(bytes4)": {
1716
+ "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[ERC section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
1717
+ },
1718
+ "transferFrom(address,address,uint256)": {
1719
+ "details": "Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."
1720
+ }
1721
+ },
1722
+ "version": 1
1723
+ },
1724
+ "userdoc": {
1725
+ "kind": "user",
1726
+ "methods": {},
1727
+ "version": 1
1728
+ }
1729
+ }