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,392 @@
1
+ {
2
+ "contractName": "IERC5267",
3
+ "abi": [
4
+ {
5
+ "anonymous": false,
6
+ "inputs": [],
7
+ "name": "EIP712DomainChanged",
8
+ "type": "event"
9
+ },
10
+ {
11
+ "inputs": [],
12
+ "name": "eip712Domain",
13
+ "outputs": [
14
+ {
15
+ "internalType": "bytes1",
16
+ "name": "fields",
17
+ "type": "bytes1"
18
+ },
19
+ {
20
+ "internalType": "string",
21
+ "name": "name",
22
+ "type": "string"
23
+ },
24
+ {
25
+ "internalType": "string",
26
+ "name": "version",
27
+ "type": "string"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "chainId",
32
+ "type": "uint256"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "verifyingContract",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "bytes32",
41
+ "name": "salt",
42
+ "type": "bytes32"
43
+ },
44
+ {
45
+ "internalType": "uint256[]",
46
+ "name": "extensions",
47
+ "type": "uint256[]"
48
+ }
49
+ ],
50
+ "stateMutability": "view",
51
+ "type": "function"
52
+ }
53
+ ],
54
+ "metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"EIP712DomainChanged()\":{\"details\":\"MAY be emitted to signal that the domain could have changed.\"}},\"kind\":\"dev\",\"methods\":{\"eip712Domain()\":{\"details\":\"returns the fields and values that describe the domain separator used by this contract for EIP-712 signature.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/interfaces/IERC5267.sol\":\"IERC5267\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/interfaces/IERC5267.sol\":{\"keccak256\":\"0xfb223a85dd0b2175cfbbaa325a744e2cd74ecd17c3df2b77b0722f991d2725ee\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://84bf1dea0589ec49c8d15d559cc6d86ee493048a89b2d4adb60fbe705a3d89ae\",\"dweb:/ipfs/Qmd56n556d529wk2pRMhYhm5nhMDhviwereodDikjs68w1\"]}},\"version\":1}",
55
+ "bytecode": "0x",
56
+ "deployedBytecode": "0x",
57
+ "immutableReferences": {},
58
+ "generatedSources": [],
59
+ "deployedGeneratedSources": [],
60
+ "sourceMap": "",
61
+ "deployedSourceMap": "",
62
+ "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n",
63
+ "sourcePath": "@openzeppelin\\contracts\\interfaces\\IERC5267.sol",
64
+ "ast": {
65
+ "absolutePath": "@openzeppelin/contracts/interfaces/IERC5267.sol",
66
+ "exportedSymbols": {
67
+ "IERC5267": [
68
+ 172
69
+ ]
70
+ },
71
+ "id": 173,
72
+ "license": "MIT",
73
+ "nodeType": "SourceUnit",
74
+ "nodes": [
75
+ {
76
+ "id": 149,
77
+ "literals": [
78
+ "solidity",
79
+ ">=",
80
+ "0.4",
81
+ ".16"
82
+ ],
83
+ "nodeType": "PragmaDirective",
84
+ "src": "107:25:1"
85
+ },
86
+ {
87
+ "abstract": false,
88
+ "baseContracts": [],
89
+ "canonicalName": "IERC5267",
90
+ "contractDependencies": [],
91
+ "contractKind": "interface",
92
+ "fullyImplemented": false,
93
+ "id": 172,
94
+ "linearizedBaseContracts": [
95
+ 172
96
+ ],
97
+ "name": "IERC5267",
98
+ "nameLocation": "144:8:1",
99
+ "nodeType": "ContractDefinition",
100
+ "nodes": [
101
+ {
102
+ "anonymous": false,
103
+ "documentation": {
104
+ "id": 150,
105
+ "nodeType": "StructuredDocumentation",
106
+ "src": "159:84:1",
107
+ "text": " @dev MAY be emitted to signal that the domain could have changed."
108
+ },
109
+ "eventSelector": "0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31",
110
+ "id": 152,
111
+ "name": "EIP712DomainChanged",
112
+ "nameLocation": "254:19:1",
113
+ "nodeType": "EventDefinition",
114
+ "parameters": {
115
+ "id": 151,
116
+ "nodeType": "ParameterList",
117
+ "parameters": [],
118
+ "src": "273:2:1"
119
+ },
120
+ "src": "248:28:1"
121
+ },
122
+ {
123
+ "documentation": {
124
+ "id": 153,
125
+ "nodeType": "StructuredDocumentation",
126
+ "src": "282:140:1",
127
+ "text": " @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n signature."
128
+ },
129
+ "functionSelector": "84b0196e",
130
+ "id": 171,
131
+ "implemented": false,
132
+ "kind": "function",
133
+ "modifiers": [],
134
+ "name": "eip712Domain",
135
+ "nameLocation": "436:12:1",
136
+ "nodeType": "FunctionDefinition",
137
+ "parameters": {
138
+ "id": 154,
139
+ "nodeType": "ParameterList",
140
+ "parameters": [],
141
+ "src": "448:2:1"
142
+ },
143
+ "returnParameters": {
144
+ "id": 170,
145
+ "nodeType": "ParameterList",
146
+ "parameters": [
147
+ {
148
+ "constant": false,
149
+ "id": 156,
150
+ "mutability": "mutable",
151
+ "name": "fields",
152
+ "nameLocation": "518:6:1",
153
+ "nodeType": "VariableDeclaration",
154
+ "scope": 171,
155
+ "src": "511:13:1",
156
+ "stateVariable": false,
157
+ "storageLocation": "default",
158
+ "typeDescriptions": {
159
+ "typeIdentifier": "t_bytes1",
160
+ "typeString": "bytes1"
161
+ },
162
+ "typeName": {
163
+ "id": 155,
164
+ "name": "bytes1",
165
+ "nodeType": "ElementaryTypeName",
166
+ "src": "511:6:1",
167
+ "typeDescriptions": {
168
+ "typeIdentifier": "t_bytes1",
169
+ "typeString": "bytes1"
170
+ }
171
+ },
172
+ "visibility": "internal"
173
+ },
174
+ {
175
+ "constant": false,
176
+ "id": 158,
177
+ "mutability": "mutable",
178
+ "name": "name",
179
+ "nameLocation": "552:4:1",
180
+ "nodeType": "VariableDeclaration",
181
+ "scope": 171,
182
+ "src": "538:18:1",
183
+ "stateVariable": false,
184
+ "storageLocation": "memory",
185
+ "typeDescriptions": {
186
+ "typeIdentifier": "t_string_memory_ptr",
187
+ "typeString": "string"
188
+ },
189
+ "typeName": {
190
+ "id": 157,
191
+ "name": "string",
192
+ "nodeType": "ElementaryTypeName",
193
+ "src": "538:6:1",
194
+ "typeDescriptions": {
195
+ "typeIdentifier": "t_string_storage_ptr",
196
+ "typeString": "string"
197
+ }
198
+ },
199
+ "visibility": "internal"
200
+ },
201
+ {
202
+ "constant": false,
203
+ "id": 160,
204
+ "mutability": "mutable",
205
+ "name": "version",
206
+ "nameLocation": "584:7:1",
207
+ "nodeType": "VariableDeclaration",
208
+ "scope": 171,
209
+ "src": "570:21:1",
210
+ "stateVariable": false,
211
+ "storageLocation": "memory",
212
+ "typeDescriptions": {
213
+ "typeIdentifier": "t_string_memory_ptr",
214
+ "typeString": "string"
215
+ },
216
+ "typeName": {
217
+ "id": 159,
218
+ "name": "string",
219
+ "nodeType": "ElementaryTypeName",
220
+ "src": "570:6:1",
221
+ "typeDescriptions": {
222
+ "typeIdentifier": "t_string_storage_ptr",
223
+ "typeString": "string"
224
+ }
225
+ },
226
+ "visibility": "internal"
227
+ },
228
+ {
229
+ "constant": false,
230
+ "id": 162,
231
+ "mutability": "mutable",
232
+ "name": "chainId",
233
+ "nameLocation": "613:7:1",
234
+ "nodeType": "VariableDeclaration",
235
+ "scope": 171,
236
+ "src": "605:15:1",
237
+ "stateVariable": false,
238
+ "storageLocation": "default",
239
+ "typeDescriptions": {
240
+ "typeIdentifier": "t_uint256",
241
+ "typeString": "uint256"
242
+ },
243
+ "typeName": {
244
+ "id": 161,
245
+ "name": "uint256",
246
+ "nodeType": "ElementaryTypeName",
247
+ "src": "605:7:1",
248
+ "typeDescriptions": {
249
+ "typeIdentifier": "t_uint256",
250
+ "typeString": "uint256"
251
+ }
252
+ },
253
+ "visibility": "internal"
254
+ },
255
+ {
256
+ "constant": false,
257
+ "id": 164,
258
+ "mutability": "mutable",
259
+ "name": "verifyingContract",
260
+ "nameLocation": "642:17:1",
261
+ "nodeType": "VariableDeclaration",
262
+ "scope": 171,
263
+ "src": "634:25:1",
264
+ "stateVariable": false,
265
+ "storageLocation": "default",
266
+ "typeDescriptions": {
267
+ "typeIdentifier": "t_address",
268
+ "typeString": "address"
269
+ },
270
+ "typeName": {
271
+ "id": 163,
272
+ "name": "address",
273
+ "nodeType": "ElementaryTypeName",
274
+ "src": "634:7:1",
275
+ "stateMutability": "nonpayable",
276
+ "typeDescriptions": {
277
+ "typeIdentifier": "t_address",
278
+ "typeString": "address"
279
+ }
280
+ },
281
+ "visibility": "internal"
282
+ },
283
+ {
284
+ "constant": false,
285
+ "id": 166,
286
+ "mutability": "mutable",
287
+ "name": "salt",
288
+ "nameLocation": "681:4:1",
289
+ "nodeType": "VariableDeclaration",
290
+ "scope": 171,
291
+ "src": "673:12:1",
292
+ "stateVariable": false,
293
+ "storageLocation": "default",
294
+ "typeDescriptions": {
295
+ "typeIdentifier": "t_bytes32",
296
+ "typeString": "bytes32"
297
+ },
298
+ "typeName": {
299
+ "id": 165,
300
+ "name": "bytes32",
301
+ "nodeType": "ElementaryTypeName",
302
+ "src": "673:7:1",
303
+ "typeDescriptions": {
304
+ "typeIdentifier": "t_bytes32",
305
+ "typeString": "bytes32"
306
+ }
307
+ },
308
+ "visibility": "internal"
309
+ },
310
+ {
311
+ "constant": false,
312
+ "id": 169,
313
+ "mutability": "mutable",
314
+ "name": "extensions",
315
+ "nameLocation": "716:10:1",
316
+ "nodeType": "VariableDeclaration",
317
+ "scope": 171,
318
+ "src": "699:27:1",
319
+ "stateVariable": false,
320
+ "storageLocation": "memory",
321
+ "typeDescriptions": {
322
+ "typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
323
+ "typeString": "uint256[]"
324
+ },
325
+ "typeName": {
326
+ "baseType": {
327
+ "id": 167,
328
+ "name": "uint256",
329
+ "nodeType": "ElementaryTypeName",
330
+ "src": "699:7:1",
331
+ "typeDescriptions": {
332
+ "typeIdentifier": "t_uint256",
333
+ "typeString": "uint256"
334
+ }
335
+ },
336
+ "id": 168,
337
+ "nodeType": "ArrayTypeName",
338
+ "src": "699:9:1",
339
+ "typeDescriptions": {
340
+ "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
341
+ "typeString": "uint256[]"
342
+ }
343
+ },
344
+ "visibility": "internal"
345
+ }
346
+ ],
347
+ "src": "497:239:1"
348
+ },
349
+ "scope": 172,
350
+ "src": "427:310:1",
351
+ "stateMutability": "view",
352
+ "virtual": false,
353
+ "visibility": "external"
354
+ }
355
+ ],
356
+ "scope": 173,
357
+ "src": "134:605:1",
358
+ "usedErrors": [],
359
+ "usedEvents": [
360
+ 152
361
+ ]
362
+ }
363
+ ],
364
+ "src": "107:633:1"
365
+ },
366
+ "compiler": {
367
+ "name": "solc",
368
+ "version": "0.8.21+commit.d9974bed.Emscripten.clang"
369
+ },
370
+ "networks": {},
371
+ "schemaVersion": "3.4.16",
372
+ "updatedAt": "2026-01-24T20:23:03.762Z",
373
+ "devdoc": {
374
+ "events": {
375
+ "EIP712DomainChanged()": {
376
+ "details": "MAY be emitted to signal that the domain could have changed."
377
+ }
378
+ },
379
+ "kind": "dev",
380
+ "methods": {
381
+ "eip712Domain()": {
382
+ "details": "returns the fields and values that describe the domain separator used by this contract for EIP-712 signature."
383
+ }
384
+ },
385
+ "version": 1
386
+ },
387
+ "userdoc": {
388
+ "kind": "user",
389
+ "methods": {},
390
+ "version": 1
391
+ }
392
+ }