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,356 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "Context",
|
|
3
|
+
"abi": [],
|
|
4
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"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\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6a708e8a5bdb1011c2c381c9a5cfd8a9a956d7d0a9dc1bd8bcdaf52f76ef2f12\",\"dweb:/ipfs/Qmax9WHBnVsZP46ZxEMNRQpLQnrdE4dK8LehML1Py8FowF\"]}},\"version\":1}",
|
|
5
|
+
"bytecode": "0x",
|
|
6
|
+
"deployedBytecode": "0x",
|
|
7
|
+
"immutableReferences": {},
|
|
8
|
+
"generatedSources": [],
|
|
9
|
+
"deployedGeneratedSources": [],
|
|
10
|
+
"sourceMap": "",
|
|
11
|
+
"deployedSourceMap": "",
|
|
12
|
+
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n",
|
|
13
|
+
"sourcePath": "@openzeppelin\\contracts\\utils\\Context.sol",
|
|
14
|
+
"ast": {
|
|
15
|
+
"absolutePath": "@openzeppelin/contracts/utils/Context.sol",
|
|
16
|
+
"exportedSymbols": {
|
|
17
|
+
"Context": [
|
|
18
|
+
2345
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"id": 2346,
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"nodeType": "SourceUnit",
|
|
24
|
+
"nodes": [
|
|
25
|
+
{
|
|
26
|
+
"id": 2317,
|
|
27
|
+
"literals": [
|
|
28
|
+
"solidity",
|
|
29
|
+
"^",
|
|
30
|
+
"0.8",
|
|
31
|
+
".20"
|
|
32
|
+
],
|
|
33
|
+
"nodeType": "PragmaDirective",
|
|
34
|
+
"src": "101:24:13"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"abstract": true,
|
|
38
|
+
"baseContracts": [],
|
|
39
|
+
"canonicalName": "Context",
|
|
40
|
+
"contractDependencies": [],
|
|
41
|
+
"contractKind": "contract",
|
|
42
|
+
"documentation": {
|
|
43
|
+
"id": 2318,
|
|
44
|
+
"nodeType": "StructuredDocumentation",
|
|
45
|
+
"src": "127:496:13",
|
|
46
|
+
"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."
|
|
47
|
+
},
|
|
48
|
+
"fullyImplemented": true,
|
|
49
|
+
"id": 2345,
|
|
50
|
+
"linearizedBaseContracts": [
|
|
51
|
+
2345
|
|
52
|
+
],
|
|
53
|
+
"name": "Context",
|
|
54
|
+
"nameLocation": "642:7:13",
|
|
55
|
+
"nodeType": "ContractDefinition",
|
|
56
|
+
"nodes": [
|
|
57
|
+
{
|
|
58
|
+
"body": {
|
|
59
|
+
"id": 2326,
|
|
60
|
+
"nodeType": "Block",
|
|
61
|
+
"src": "718:34:13",
|
|
62
|
+
"statements": [
|
|
63
|
+
{
|
|
64
|
+
"expression": {
|
|
65
|
+
"expression": {
|
|
66
|
+
"id": 2323,
|
|
67
|
+
"name": "msg",
|
|
68
|
+
"nodeType": "Identifier",
|
|
69
|
+
"overloadedDeclarations": [],
|
|
70
|
+
"referencedDeclaration": 4294967281,
|
|
71
|
+
"src": "735:3:13",
|
|
72
|
+
"typeDescriptions": {
|
|
73
|
+
"typeIdentifier": "t_magic_message",
|
|
74
|
+
"typeString": "msg"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"id": 2324,
|
|
78
|
+
"isConstant": false,
|
|
79
|
+
"isLValue": false,
|
|
80
|
+
"isPure": false,
|
|
81
|
+
"lValueRequested": false,
|
|
82
|
+
"memberLocation": "739:6:13",
|
|
83
|
+
"memberName": "sender",
|
|
84
|
+
"nodeType": "MemberAccess",
|
|
85
|
+
"src": "735:10:13",
|
|
86
|
+
"typeDescriptions": {
|
|
87
|
+
"typeIdentifier": "t_address",
|
|
88
|
+
"typeString": "address"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"functionReturnParameters": 2322,
|
|
92
|
+
"id": 2325,
|
|
93
|
+
"nodeType": "Return",
|
|
94
|
+
"src": "728:17:13"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"id": 2327,
|
|
99
|
+
"implemented": true,
|
|
100
|
+
"kind": "function",
|
|
101
|
+
"modifiers": [],
|
|
102
|
+
"name": "_msgSender",
|
|
103
|
+
"nameLocation": "665:10:13",
|
|
104
|
+
"nodeType": "FunctionDefinition",
|
|
105
|
+
"parameters": {
|
|
106
|
+
"id": 2319,
|
|
107
|
+
"nodeType": "ParameterList",
|
|
108
|
+
"parameters": [],
|
|
109
|
+
"src": "675:2:13"
|
|
110
|
+
},
|
|
111
|
+
"returnParameters": {
|
|
112
|
+
"id": 2322,
|
|
113
|
+
"nodeType": "ParameterList",
|
|
114
|
+
"parameters": [
|
|
115
|
+
{
|
|
116
|
+
"constant": false,
|
|
117
|
+
"id": 2321,
|
|
118
|
+
"mutability": "mutable",
|
|
119
|
+
"name": "",
|
|
120
|
+
"nameLocation": "-1:-1:-1",
|
|
121
|
+
"nodeType": "VariableDeclaration",
|
|
122
|
+
"scope": 2327,
|
|
123
|
+
"src": "709:7:13",
|
|
124
|
+
"stateVariable": false,
|
|
125
|
+
"storageLocation": "default",
|
|
126
|
+
"typeDescriptions": {
|
|
127
|
+
"typeIdentifier": "t_address",
|
|
128
|
+
"typeString": "address"
|
|
129
|
+
},
|
|
130
|
+
"typeName": {
|
|
131
|
+
"id": 2320,
|
|
132
|
+
"name": "address",
|
|
133
|
+
"nodeType": "ElementaryTypeName",
|
|
134
|
+
"src": "709:7:13",
|
|
135
|
+
"stateMutability": "nonpayable",
|
|
136
|
+
"typeDescriptions": {
|
|
137
|
+
"typeIdentifier": "t_address",
|
|
138
|
+
"typeString": "address"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"visibility": "internal"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"src": "708:9:13"
|
|
145
|
+
},
|
|
146
|
+
"scope": 2345,
|
|
147
|
+
"src": "656:96:13",
|
|
148
|
+
"stateMutability": "view",
|
|
149
|
+
"virtual": true,
|
|
150
|
+
"visibility": "internal"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"body": {
|
|
154
|
+
"id": 2335,
|
|
155
|
+
"nodeType": "Block",
|
|
156
|
+
"src": "825:32:13",
|
|
157
|
+
"statements": [
|
|
158
|
+
{
|
|
159
|
+
"expression": {
|
|
160
|
+
"expression": {
|
|
161
|
+
"id": 2332,
|
|
162
|
+
"name": "msg",
|
|
163
|
+
"nodeType": "Identifier",
|
|
164
|
+
"overloadedDeclarations": [],
|
|
165
|
+
"referencedDeclaration": 4294967281,
|
|
166
|
+
"src": "842:3:13",
|
|
167
|
+
"typeDescriptions": {
|
|
168
|
+
"typeIdentifier": "t_magic_message",
|
|
169
|
+
"typeString": "msg"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"id": 2333,
|
|
173
|
+
"isConstant": false,
|
|
174
|
+
"isLValue": false,
|
|
175
|
+
"isPure": false,
|
|
176
|
+
"lValueRequested": false,
|
|
177
|
+
"memberLocation": "846:4:13",
|
|
178
|
+
"memberName": "data",
|
|
179
|
+
"nodeType": "MemberAccess",
|
|
180
|
+
"src": "842:8:13",
|
|
181
|
+
"typeDescriptions": {
|
|
182
|
+
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
183
|
+
"typeString": "bytes calldata"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"functionReturnParameters": 2331,
|
|
187
|
+
"id": 2334,
|
|
188
|
+
"nodeType": "Return",
|
|
189
|
+
"src": "835:15:13"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"id": 2336,
|
|
194
|
+
"implemented": true,
|
|
195
|
+
"kind": "function",
|
|
196
|
+
"modifiers": [],
|
|
197
|
+
"name": "_msgData",
|
|
198
|
+
"nameLocation": "767:8:13",
|
|
199
|
+
"nodeType": "FunctionDefinition",
|
|
200
|
+
"parameters": {
|
|
201
|
+
"id": 2328,
|
|
202
|
+
"nodeType": "ParameterList",
|
|
203
|
+
"parameters": [],
|
|
204
|
+
"src": "775:2:13"
|
|
205
|
+
},
|
|
206
|
+
"returnParameters": {
|
|
207
|
+
"id": 2331,
|
|
208
|
+
"nodeType": "ParameterList",
|
|
209
|
+
"parameters": [
|
|
210
|
+
{
|
|
211
|
+
"constant": false,
|
|
212
|
+
"id": 2330,
|
|
213
|
+
"mutability": "mutable",
|
|
214
|
+
"name": "",
|
|
215
|
+
"nameLocation": "-1:-1:-1",
|
|
216
|
+
"nodeType": "VariableDeclaration",
|
|
217
|
+
"scope": 2336,
|
|
218
|
+
"src": "809:14:13",
|
|
219
|
+
"stateVariable": false,
|
|
220
|
+
"storageLocation": "calldata",
|
|
221
|
+
"typeDescriptions": {
|
|
222
|
+
"typeIdentifier": "t_bytes_calldata_ptr",
|
|
223
|
+
"typeString": "bytes"
|
|
224
|
+
},
|
|
225
|
+
"typeName": {
|
|
226
|
+
"id": 2329,
|
|
227
|
+
"name": "bytes",
|
|
228
|
+
"nodeType": "ElementaryTypeName",
|
|
229
|
+
"src": "809:5:13",
|
|
230
|
+
"typeDescriptions": {
|
|
231
|
+
"typeIdentifier": "t_bytes_storage_ptr",
|
|
232
|
+
"typeString": "bytes"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"visibility": "internal"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"src": "808:16:13"
|
|
239
|
+
},
|
|
240
|
+
"scope": 2345,
|
|
241
|
+
"src": "758:99:13",
|
|
242
|
+
"stateMutability": "view",
|
|
243
|
+
"virtual": true,
|
|
244
|
+
"visibility": "internal"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"body": {
|
|
248
|
+
"id": 2343,
|
|
249
|
+
"nodeType": "Block",
|
|
250
|
+
"src": "935:25:13",
|
|
251
|
+
"statements": [
|
|
252
|
+
{
|
|
253
|
+
"expression": {
|
|
254
|
+
"hexValue": "30",
|
|
255
|
+
"id": 2341,
|
|
256
|
+
"isConstant": false,
|
|
257
|
+
"isLValue": false,
|
|
258
|
+
"isPure": true,
|
|
259
|
+
"kind": "number",
|
|
260
|
+
"lValueRequested": false,
|
|
261
|
+
"nodeType": "Literal",
|
|
262
|
+
"src": "952:1:13",
|
|
263
|
+
"typeDescriptions": {
|
|
264
|
+
"typeIdentifier": "t_rational_0_by_1",
|
|
265
|
+
"typeString": "int_const 0"
|
|
266
|
+
},
|
|
267
|
+
"value": "0"
|
|
268
|
+
},
|
|
269
|
+
"functionReturnParameters": 2340,
|
|
270
|
+
"id": 2342,
|
|
271
|
+
"nodeType": "Return",
|
|
272
|
+
"src": "945:8:13"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"id": 2344,
|
|
277
|
+
"implemented": true,
|
|
278
|
+
"kind": "function",
|
|
279
|
+
"modifiers": [],
|
|
280
|
+
"name": "_contextSuffixLength",
|
|
281
|
+
"nameLocation": "872:20:13",
|
|
282
|
+
"nodeType": "FunctionDefinition",
|
|
283
|
+
"parameters": {
|
|
284
|
+
"id": 2337,
|
|
285
|
+
"nodeType": "ParameterList",
|
|
286
|
+
"parameters": [],
|
|
287
|
+
"src": "892:2:13"
|
|
288
|
+
},
|
|
289
|
+
"returnParameters": {
|
|
290
|
+
"id": 2340,
|
|
291
|
+
"nodeType": "ParameterList",
|
|
292
|
+
"parameters": [
|
|
293
|
+
{
|
|
294
|
+
"constant": false,
|
|
295
|
+
"id": 2339,
|
|
296
|
+
"mutability": "mutable",
|
|
297
|
+
"name": "",
|
|
298
|
+
"nameLocation": "-1:-1:-1",
|
|
299
|
+
"nodeType": "VariableDeclaration",
|
|
300
|
+
"scope": 2344,
|
|
301
|
+
"src": "926:7:13",
|
|
302
|
+
"stateVariable": false,
|
|
303
|
+
"storageLocation": "default",
|
|
304
|
+
"typeDescriptions": {
|
|
305
|
+
"typeIdentifier": "t_uint256",
|
|
306
|
+
"typeString": "uint256"
|
|
307
|
+
},
|
|
308
|
+
"typeName": {
|
|
309
|
+
"id": 2338,
|
|
310
|
+
"name": "uint256",
|
|
311
|
+
"nodeType": "ElementaryTypeName",
|
|
312
|
+
"src": "926:7:13",
|
|
313
|
+
"typeDescriptions": {
|
|
314
|
+
"typeIdentifier": "t_uint256",
|
|
315
|
+
"typeString": "uint256"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"visibility": "internal"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"src": "925:9:13"
|
|
322
|
+
},
|
|
323
|
+
"scope": 2345,
|
|
324
|
+
"src": "863:97:13",
|
|
325
|
+
"stateMutability": "view",
|
|
326
|
+
"virtual": true,
|
|
327
|
+
"visibility": "internal"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"scope": 2346,
|
|
331
|
+
"src": "624:338:13",
|
|
332
|
+
"usedErrors": [],
|
|
333
|
+
"usedEvents": []
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"src": "101:862:13"
|
|
337
|
+
},
|
|
338
|
+
"compiler": {
|
|
339
|
+
"name": "solc",
|
|
340
|
+
"version": "0.8.21+commit.d9974bed.Emscripten.clang"
|
|
341
|
+
},
|
|
342
|
+
"networks": {},
|
|
343
|
+
"schemaVersion": "3.4.16",
|
|
344
|
+
"updatedAt": "2026-01-24T20:23:04.033Z",
|
|
345
|
+
"devdoc": {
|
|
346
|
+
"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.",
|
|
347
|
+
"kind": "dev",
|
|
348
|
+
"methods": {},
|
|
349
|
+
"version": 1
|
|
350
|
+
},
|
|
351
|
+
"userdoc": {
|
|
352
|
+
"kind": "user",
|
|
353
|
+
"methods": {},
|
|
354
|
+
"version": 1
|
|
355
|
+
}
|
|
356
|
+
}
|