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.
- package/build/contracts/AccessControl.json +4579 -0
- package/build/contracts/Context.json +356 -0
- package/build/contracts/CreditSystem.json +6037 -0
- package/build/contracts/ECDSA.json +4734 -0
- package/build/contracts/EIP712.json +3021 -0
- package/build/contracts/ERC165.json +352 -0
- package/build/contracts/ERC20.json +6816 -0
- package/build/contracts/ERC20Permit.json +2658 -0
- package/build/contracts/ERC721.json +12779 -0
- package/build/contracts/ERC721Utils.json +1058 -0
- package/build/contracts/Groth16Verifier.json +6298 -0
- package/build/contracts/Guardian.json +1116 -0
- package/build/contracts/IERC1155Errors.json +1687 -0
- package/build/contracts/IERC165.json +197 -0
- package/build/contracts/IERC20.json +1162 -0
- package/build/contracts/IERC20Errors.json +1662 -0
- package/build/contracts/IERC20Metadata.json +574 -0
- package/build/contracts/IERC20Permit.json +546 -0
- package/build/contracts/IERC5267.json +392 -0
- package/build/contracts/IERC721.json +1729 -0
- package/build/contracts/IERC721Errors.json +1694 -0
- package/build/contracts/IERC721Metadata.json +728 -0
- package/build/contracts/IERC721Receiver.json +296 -0
- package/build/contracts/IGuardian.json +215 -0
- package/build/contracts/ITrustRegistry.json +6767 -0
- package/build/contracts/IdentityVault.json +11584 -0
- package/build/contracts/Math.json +23115 -0
- package/build/contracts/MessageHashUtils.json +1668 -0
- package/build/contracts/Nonces.json +865 -0
- package/build/contracts/Ownable.json +1859 -0
- package/build/contracts/Panic.json +798 -0
- package/build/contracts/ReportingSystem.json +2787 -0
- package/build/contracts/SafeCast.json +21592 -0
- package/build/contracts/ScoringSystem.json +11245 -0
- package/build/contracts/SecureTransacSBT.json +18823 -0
- package/build/contracts/SecureTransacToken.json +19225 -0
- package/build/contracts/SecureVault.json +12890 -0
- package/build/contracts/ShortStrings.json +2852 -0
- package/build/contracts/SignedMath.json +1915 -0
- package/build/contracts/StorageSlot.json +1773 -0
- package/build/contracts/Strings.json +19001 -0
- package/build/contracts/TransactionLogger.json +5325 -0
- package/build/contracts/TrustDAO.json +23850 -0
- package/build/contracts/TrustRegistry.json +10948 -0
- package/build/contracts/VerificationRegistry.json +12811 -0
- package/build/contracts/ZKIdentityVerifier.json +13979 -0
- package/contracts/AccessControl.sol +34 -0
- package/contracts/CreditSystem.sol +48 -0
- package/contracts/Guardian.sol +33 -0
- package/contracts/IGuardian.sol +7 -0
- package/contracts/IdentityVault.sol +57 -0
- package/contracts/ReportingSystem.sol +14 -0
- package/contracts/ScoringSystem.sol +71 -0
- package/contracts/SecureTransacSBT.sol +72 -0
- package/contracts/SecureTransacToken.sol +20 -0
- package/contracts/SecureVault.sol +24 -0
- package/contracts/TransactionLogger.sol +12 -0
- package/contracts/TrustDAO.sol +158 -0
- package/contracts/TrustRegistry.sol +23 -0
- package/contracts/VerificationRegistry.sol +51 -0
- package/contracts/ZKIdentityVerifier.sol +38 -0
- package/contracts/ZKScoreVerifier.sol +175 -0
- package/package.json +32 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "IERC721Receiver",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "operator",
|
|
9
|
+
"type": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "address",
|
|
13
|
+
"name": "from",
|
|
14
|
+
"type": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"internalType": "uint256",
|
|
18
|
+
"name": "tokenId",
|
|
19
|
+
"type": "uint256"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"internalType": "bytes",
|
|
23
|
+
"name": "data",
|
|
24
|
+
"type": "bytes"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"name": "onERC721Received",
|
|
28
|
+
"outputs": [
|
|
29
|
+
{
|
|
30
|
+
"internalType": "bytes4",
|
|
31
|
+
"name": "",
|
|
32
|
+
"type": "bytes4"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"stateMutability": "nonpayable",
|
|
36
|
+
"type": "function"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"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 ERC-721 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\":\"ERC-721 token receiver interface\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":\"IERC721Receiver\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":{\"keccak256\":\"0x88cd5e3bee2e8c36b8d9058fbcaa81ad5704281b25634122234b55ea853d8055\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8dc7e7ab5b8ea36c15027ab04221b05d1c970f47a53e9fd47ead8ca665d49c7e\",\"dweb:/ipfs/Qmeeph7fsDyfRr8vb2L8KcDEmKPb224TAayMvgqgGAnqpL\"]}},\"version\":1}",
|
|
40
|
+
"bytecode": "0x",
|
|
41
|
+
"deployedBytecode": "0x",
|
|
42
|
+
"immutableReferences": {},
|
|
43
|
+
"generatedSources": [],
|
|
44
|
+
"deployedGeneratedSources": [],
|
|
45
|
+
"sourceMap": "",
|
|
46
|
+
"deployedSourceMap": "",
|
|
47
|
+
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity >=0.5.0;\n\n/**\n * @title ERC-721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC-721 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\n * 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",
|
|
48
|
+
"sourcePath": "@openzeppelin\\contracts\\token\\ERC721\\IERC721Receiver.sol",
|
|
49
|
+
"ast": {
|
|
50
|
+
"absolutePath": "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol",
|
|
51
|
+
"exportedSymbols": {
|
|
52
|
+
"IERC721Receiver": [
|
|
53
|
+
2210
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"id": 2211,
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"nodeType": "SourceUnit",
|
|
59
|
+
"nodes": [
|
|
60
|
+
{
|
|
61
|
+
"id": 2194,
|
|
62
|
+
"literals": [
|
|
63
|
+
"solidity",
|
|
64
|
+
">=",
|
|
65
|
+
"0.5",
|
|
66
|
+
".0"
|
|
67
|
+
],
|
|
68
|
+
"nodeType": "PragmaDirective",
|
|
69
|
+
"src": "116:24:10"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"abstract": false,
|
|
73
|
+
"baseContracts": [],
|
|
74
|
+
"canonicalName": "IERC721Receiver",
|
|
75
|
+
"contractDependencies": [],
|
|
76
|
+
"contractKind": "interface",
|
|
77
|
+
"documentation": {
|
|
78
|
+
"id": 2195,
|
|
79
|
+
"nodeType": "StructuredDocumentation",
|
|
80
|
+
"src": "142:154:10",
|
|
81
|
+
"text": " @title ERC-721 token receiver interface\n @dev Interface for any contract that wants to support safeTransfers\n from ERC-721 asset contracts."
|
|
82
|
+
},
|
|
83
|
+
"fullyImplemented": false,
|
|
84
|
+
"id": 2210,
|
|
85
|
+
"linearizedBaseContracts": [
|
|
86
|
+
2210
|
|
87
|
+
],
|
|
88
|
+
"name": "IERC721Receiver",
|
|
89
|
+
"nameLocation": "307:15:10",
|
|
90
|
+
"nodeType": "ContractDefinition",
|
|
91
|
+
"nodes": [
|
|
92
|
+
{
|
|
93
|
+
"documentation": {
|
|
94
|
+
"id": 2196,
|
|
95
|
+
"nodeType": "StructuredDocumentation",
|
|
96
|
+
"src": "329:500:10",
|
|
97
|
+
"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\n reverted.\n The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`."
|
|
98
|
+
},
|
|
99
|
+
"functionSelector": "150b7a02",
|
|
100
|
+
"id": 2209,
|
|
101
|
+
"implemented": false,
|
|
102
|
+
"kind": "function",
|
|
103
|
+
"modifiers": [],
|
|
104
|
+
"name": "onERC721Received",
|
|
105
|
+
"nameLocation": "843:16:10",
|
|
106
|
+
"nodeType": "FunctionDefinition",
|
|
107
|
+
"parameters": {
|
|
108
|
+
"id": 2205,
|
|
109
|
+
"nodeType": "ParameterList",
|
|
110
|
+
"parameters": [
|
|
111
|
+
{
|
|
112
|
+
"constant": false,
|
|
113
|
+
"id": 2198,
|
|
114
|
+
"mutability": "mutable",
|
|
115
|
+
"name": "operator",
|
|
116
|
+
"nameLocation": "877:8:10",
|
|
117
|
+
"nodeType": "VariableDeclaration",
|
|
118
|
+
"scope": 2209,
|
|
119
|
+
"src": "869:16:10",
|
|
120
|
+
"stateVariable": false,
|
|
121
|
+
"storageLocation": "default",
|
|
122
|
+
"typeDescriptions": {
|
|
123
|
+
"typeIdentifier": "t_address",
|
|
124
|
+
"typeString": "address"
|
|
125
|
+
},
|
|
126
|
+
"typeName": {
|
|
127
|
+
"id": 2197,
|
|
128
|
+
"name": "address",
|
|
129
|
+
"nodeType": "ElementaryTypeName",
|
|
130
|
+
"src": "869:7:10",
|
|
131
|
+
"stateMutability": "nonpayable",
|
|
132
|
+
"typeDescriptions": {
|
|
133
|
+
"typeIdentifier": "t_address",
|
|
134
|
+
"typeString": "address"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"visibility": "internal"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"constant": false,
|
|
141
|
+
"id": 2200,
|
|
142
|
+
"mutability": "mutable",
|
|
143
|
+
"name": "from",
|
|
144
|
+
"nameLocation": "903:4:10",
|
|
145
|
+
"nodeType": "VariableDeclaration",
|
|
146
|
+
"scope": 2209,
|
|
147
|
+
"src": "895:12:10",
|
|
148
|
+
"stateVariable": false,
|
|
149
|
+
"storageLocation": "default",
|
|
150
|
+
"typeDescriptions": {
|
|
151
|
+
"typeIdentifier": "t_address",
|
|
152
|
+
"typeString": "address"
|
|
153
|
+
},
|
|
154
|
+
"typeName": {
|
|
155
|
+
"id": 2199,
|
|
156
|
+
"name": "address",
|
|
157
|
+
"nodeType": "ElementaryTypeName",
|
|
158
|
+
"src": "895:7:10",
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"typeDescriptions": {
|
|
161
|
+
"typeIdentifier": "t_address",
|
|
162
|
+
"typeString": "address"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"visibility": "internal"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"constant": false,
|
|
169
|
+
"id": 2202,
|
|
170
|
+
"mutability": "mutable",
|
|
171
|
+
"name": "tokenId",
|
|
172
|
+
"nameLocation": "925:7:10",
|
|
173
|
+
"nodeType": "VariableDeclaration",
|
|
174
|
+
"scope": 2209,
|
|
175
|
+
"src": "917:15:10",
|
|
176
|
+
"stateVariable": false,
|
|
177
|
+
"storageLocation": "default",
|
|
178
|
+
"typeDescriptions": {
|
|
179
|
+
"typeIdentifier": "t_uint256",
|
|
180
|
+
"typeString": "uint256"
|
|
181
|
+
},
|
|
182
|
+
"typeName": {
|
|
183
|
+
"id": 2201,
|
|
184
|
+
"name": "uint256",
|
|
185
|
+
"nodeType": "ElementaryTypeName",
|
|
186
|
+
"src": "917:7:10",
|
|
187
|
+
"typeDescriptions": {
|
|
188
|
+
"typeIdentifier": "t_uint256",
|
|
189
|
+
"typeString": "uint256"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"visibility": "internal"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"constant": false,
|
|
196
|
+
"id": 2204,
|
|
197
|
+
"mutability": "mutable",
|
|
198
|
+
"name": "data",
|
|
199
|
+
"nameLocation": "957:4:10",
|
|
200
|
+
"nodeType": "VariableDeclaration",
|
|
201
|
+
"scope": 2209,
|
|
202
|
+
"src": "942:19:10",
|
|
203
|
+
"stateVariable": false,
|
|
204
|
+
"storageLocation": "calldata",
|
|
205
|
+
"typeDescriptions": {
|
|
206
|
+
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
207
|
+
"typeString": "bytes"
|
|
208
|
+
},
|
|
209
|
+
"typeName": {
|
|
210
|
+
"id": 2203,
|
|
211
|
+
"name": "bytes",
|
|
212
|
+
"nodeType": "ElementaryTypeName",
|
|
213
|
+
"src": "942:5:10",
|
|
214
|
+
"typeDescriptions": {
|
|
215
|
+
"typeIdentifier": "t_bytes_storage_ptr",
|
|
216
|
+
"typeString": "bytes"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"visibility": "internal"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"src": "859:108:10"
|
|
223
|
+
},
|
|
224
|
+
"returnParameters": {
|
|
225
|
+
"id": 2208,
|
|
226
|
+
"nodeType": "ParameterList",
|
|
227
|
+
"parameters": [
|
|
228
|
+
{
|
|
229
|
+
"constant": false,
|
|
230
|
+
"id": 2207,
|
|
231
|
+
"mutability": "mutable",
|
|
232
|
+
"name": "",
|
|
233
|
+
"nameLocation": "-1:-1:-1",
|
|
234
|
+
"nodeType": "VariableDeclaration",
|
|
235
|
+
"scope": 2209,
|
|
236
|
+
"src": "986:6:10",
|
|
237
|
+
"stateVariable": false,
|
|
238
|
+
"storageLocation": "default",
|
|
239
|
+
"typeDescriptions": {
|
|
240
|
+
"typeIdentifier": "t_bytes4",
|
|
241
|
+
"typeString": "bytes4"
|
|
242
|
+
},
|
|
243
|
+
"typeName": {
|
|
244
|
+
"id": 2206,
|
|
245
|
+
"name": "bytes4",
|
|
246
|
+
"nodeType": "ElementaryTypeName",
|
|
247
|
+
"src": "986:6:10",
|
|
248
|
+
"typeDescriptions": {
|
|
249
|
+
"typeIdentifier": "t_bytes4",
|
|
250
|
+
"typeString": "bytes4"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"visibility": "internal"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"src": "985:8:10"
|
|
257
|
+
},
|
|
258
|
+
"scope": 2210,
|
|
259
|
+
"src": "834:160:10",
|
|
260
|
+
"stateMutability": "nonpayable",
|
|
261
|
+
"virtual": false,
|
|
262
|
+
"visibility": "external"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"scope": 2211,
|
|
266
|
+
"src": "297:699:10",
|
|
267
|
+
"usedErrors": [],
|
|
268
|
+
"usedEvents": []
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"src": "116:881:10"
|
|
272
|
+
},
|
|
273
|
+
"compiler": {
|
|
274
|
+
"name": "solc",
|
|
275
|
+
"version": "0.8.21+commit.d9974bed.Emscripten.clang"
|
|
276
|
+
},
|
|
277
|
+
"networks": {},
|
|
278
|
+
"schemaVersion": "3.4.16",
|
|
279
|
+
"updatedAt": "2026-01-24T20:23:03.996Z",
|
|
280
|
+
"devdoc": {
|
|
281
|
+
"details": "Interface for any contract that wants to support safeTransfers from ERC-721 asset contracts.",
|
|
282
|
+
"kind": "dev",
|
|
283
|
+
"methods": {
|
|
284
|
+
"onERC721Received(address,address,uint256,bytes)": {
|
|
285
|
+
"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`."
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"title": "ERC-721 token receiver interface",
|
|
289
|
+
"version": 1
|
|
290
|
+
},
|
|
291
|
+
"userdoc": {
|
|
292
|
+
"kind": "user",
|
|
293
|
+
"methods": {},
|
|
294
|
+
"version": 1
|
|
295
|
+
}
|
|
296
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "IGuardian",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"name": "registry",
|
|
7
|
+
"outputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "view",
|
|
15
|
+
"type": "function"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"name": "minRequiredScore",
|
|
20
|
+
"outputs": [
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint256",
|
|
23
|
+
"name": "",
|
|
24
|
+
"type": "uint256"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"stateMutability": "view",
|
|
28
|
+
"type": "function"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"minRequiredScore\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/IGuardian.sol\":\"IGuardian\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/IGuardian.sol\":{\"keccak256\":\"0x75e5096537a8a7fa0cab40271b99253625711ff984fcbb9672a20b1ce06715a5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://99458aee7ab68fee2736fb2970a29f4a60696601ee30157e4ad84eae37dcbc75\",\"dweb:/ipfs/QmTSSgqELRJzncr91hnjFLtpJxjFP4hWrko16oVEoGypYy\"]}},\"version\":1}",
|
|
32
|
+
"bytecode": "0x",
|
|
33
|
+
"deployedBytecode": "0x",
|
|
34
|
+
"immutableReferences": {},
|
|
35
|
+
"generatedSources": [],
|
|
36
|
+
"deployedGeneratedSources": [],
|
|
37
|
+
"sourceMap": "",
|
|
38
|
+
"deployedSourceMap": "",
|
|
39
|
+
"source": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.0;\r\n\r\ninterface IGuardian {\r\n function registry() external view returns (address);\r\n function minRequiredScore() external view returns (uint256);\r\n}\r\n",
|
|
40
|
+
"sourcePath": "J:\\Users\\ayush\\Desktop\\code\\Pecathon\\onchain\\contracts\\IGuardian.sol",
|
|
41
|
+
"ast": {
|
|
42
|
+
"absolutePath": "project:/contracts/IGuardian.sol",
|
|
43
|
+
"exportedSymbols": {
|
|
44
|
+
"IGuardian": [
|
|
45
|
+
8743
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"id": 8744,
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"nodeType": "SourceUnit",
|
|
51
|
+
"nodes": [
|
|
52
|
+
{
|
|
53
|
+
"id": 8732,
|
|
54
|
+
"literals": [
|
|
55
|
+
"solidity",
|
|
56
|
+
"^",
|
|
57
|
+
"0.8",
|
|
58
|
+
".0"
|
|
59
|
+
],
|
|
60
|
+
"nodeType": "PragmaDirective",
|
|
61
|
+
"src": "33:23:30"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"abstract": false,
|
|
65
|
+
"baseContracts": [],
|
|
66
|
+
"canonicalName": "IGuardian",
|
|
67
|
+
"contractDependencies": [],
|
|
68
|
+
"contractKind": "interface",
|
|
69
|
+
"fullyImplemented": false,
|
|
70
|
+
"id": 8743,
|
|
71
|
+
"linearizedBaseContracts": [
|
|
72
|
+
8743
|
|
73
|
+
],
|
|
74
|
+
"name": "IGuardian",
|
|
75
|
+
"nameLocation": "70:9:30",
|
|
76
|
+
"nodeType": "ContractDefinition",
|
|
77
|
+
"nodes": [
|
|
78
|
+
{
|
|
79
|
+
"functionSelector": "7b103999",
|
|
80
|
+
"id": 8737,
|
|
81
|
+
"implemented": false,
|
|
82
|
+
"kind": "function",
|
|
83
|
+
"modifiers": [],
|
|
84
|
+
"name": "registry",
|
|
85
|
+
"nameLocation": "96:8:30",
|
|
86
|
+
"nodeType": "FunctionDefinition",
|
|
87
|
+
"parameters": {
|
|
88
|
+
"id": 8733,
|
|
89
|
+
"nodeType": "ParameterList",
|
|
90
|
+
"parameters": [],
|
|
91
|
+
"src": "104:2:30"
|
|
92
|
+
},
|
|
93
|
+
"returnParameters": {
|
|
94
|
+
"id": 8736,
|
|
95
|
+
"nodeType": "ParameterList",
|
|
96
|
+
"parameters": [
|
|
97
|
+
{
|
|
98
|
+
"constant": false,
|
|
99
|
+
"id": 8735,
|
|
100
|
+
"mutability": "mutable",
|
|
101
|
+
"name": "",
|
|
102
|
+
"nameLocation": "-1:-1:-1",
|
|
103
|
+
"nodeType": "VariableDeclaration",
|
|
104
|
+
"scope": 8737,
|
|
105
|
+
"src": "130:7:30",
|
|
106
|
+
"stateVariable": false,
|
|
107
|
+
"storageLocation": "default",
|
|
108
|
+
"typeDescriptions": {
|
|
109
|
+
"typeIdentifier": "t_address",
|
|
110
|
+
"typeString": "address"
|
|
111
|
+
},
|
|
112
|
+
"typeName": {
|
|
113
|
+
"id": 8734,
|
|
114
|
+
"name": "address",
|
|
115
|
+
"nodeType": "ElementaryTypeName",
|
|
116
|
+
"src": "130:7:30",
|
|
117
|
+
"stateMutability": "nonpayable",
|
|
118
|
+
"typeDescriptions": {
|
|
119
|
+
"typeIdentifier": "t_address",
|
|
120
|
+
"typeString": "address"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"visibility": "internal"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"src": "129:9:30"
|
|
127
|
+
},
|
|
128
|
+
"scope": 8743,
|
|
129
|
+
"src": "87:52:30",
|
|
130
|
+
"stateMutability": "view",
|
|
131
|
+
"virtual": false,
|
|
132
|
+
"visibility": "external"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"functionSelector": "aa3b088c",
|
|
136
|
+
"id": 8742,
|
|
137
|
+
"implemented": false,
|
|
138
|
+
"kind": "function",
|
|
139
|
+
"modifiers": [],
|
|
140
|
+
"name": "minRequiredScore",
|
|
141
|
+
"nameLocation": "154:16:30",
|
|
142
|
+
"nodeType": "FunctionDefinition",
|
|
143
|
+
"parameters": {
|
|
144
|
+
"id": 8738,
|
|
145
|
+
"nodeType": "ParameterList",
|
|
146
|
+
"parameters": [],
|
|
147
|
+
"src": "170:2:30"
|
|
148
|
+
},
|
|
149
|
+
"returnParameters": {
|
|
150
|
+
"id": 8741,
|
|
151
|
+
"nodeType": "ParameterList",
|
|
152
|
+
"parameters": [
|
|
153
|
+
{
|
|
154
|
+
"constant": false,
|
|
155
|
+
"id": 8740,
|
|
156
|
+
"mutability": "mutable",
|
|
157
|
+
"name": "",
|
|
158
|
+
"nameLocation": "-1:-1:-1",
|
|
159
|
+
"nodeType": "VariableDeclaration",
|
|
160
|
+
"scope": 8742,
|
|
161
|
+
"src": "196:7:30",
|
|
162
|
+
"stateVariable": false,
|
|
163
|
+
"storageLocation": "default",
|
|
164
|
+
"typeDescriptions": {
|
|
165
|
+
"typeIdentifier": "t_uint256",
|
|
166
|
+
"typeString": "uint256"
|
|
167
|
+
},
|
|
168
|
+
"typeName": {
|
|
169
|
+
"id": 8739,
|
|
170
|
+
"name": "uint256",
|
|
171
|
+
"nodeType": "ElementaryTypeName",
|
|
172
|
+
"src": "196:7:30",
|
|
173
|
+
"typeDescriptions": {
|
|
174
|
+
"typeIdentifier": "t_uint256",
|
|
175
|
+
"typeString": "uint256"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"visibility": "internal"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"src": "195:9:30"
|
|
182
|
+
},
|
|
183
|
+
"scope": 8743,
|
|
184
|
+
"src": "145:60:30",
|
|
185
|
+
"stateMutability": "view",
|
|
186
|
+
"virtual": false,
|
|
187
|
+
"visibility": "external"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"scope": 8744,
|
|
191
|
+
"src": "60:148:30",
|
|
192
|
+
"usedErrors": [],
|
|
193
|
+
"usedEvents": []
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"src": "33:177:30"
|
|
197
|
+
},
|
|
198
|
+
"compiler": {
|
|
199
|
+
"name": "solc",
|
|
200
|
+
"version": "0.8.21+commit.d9974bed.Emscripten.clang"
|
|
201
|
+
},
|
|
202
|
+
"networks": {},
|
|
203
|
+
"schemaVersion": "3.4.16",
|
|
204
|
+
"updatedAt": "2026-01-24T20:23:04.344Z",
|
|
205
|
+
"devdoc": {
|
|
206
|
+
"kind": "dev",
|
|
207
|
+
"methods": {},
|
|
208
|
+
"version": 1
|
|
209
|
+
},
|
|
210
|
+
"userdoc": {
|
|
211
|
+
"kind": "user",
|
|
212
|
+
"methods": {},
|
|
213
|
+
"version": 1
|
|
214
|
+
}
|
|
215
|
+
}
|