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,197 @@
1
+ {
2
+ "contractName": "IERC165",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "bytes4",
8
+ "name": "interfaceId",
9
+ "type": "bytes4"
10
+ }
11
+ ],
12
+ "name": "supportsInterface",
13
+ "outputs": [
14
+ {
15
+ "internalType": "bool",
16
+ "name": "",
17
+ "type": "bool"
18
+ }
19
+ ],
20
+ "stateMutability": "view",
21
+ "type": "function"
22
+ }
23
+ ],
24
+ "metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of the ERC-165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[ERC]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.\",\"kind\":\"dev\",\"methods\":{\"supportsInterface(bytes4)\":{\"details\":\"Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] to learn more about how these ids are created. This function call must use less than 30 000 gas.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":\"IERC165\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"keccak256\":\"0x8891738ffe910f0cf2da09566928589bf5d63f4524dd734fd9cedbac3274dd5c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://971f954442df5c2ef5b5ebf1eb245d7105d9fbacc7386ee5c796df1d45b21617\",\"dweb:/ipfs/QmadRjHbkicwqwwh61raUEapaVEtaLMcYbQZWs9gUkgj3u\"]}},\"version\":1}",
25
+ "bytecode": "0x",
26
+ "deployedBytecode": "0x",
27
+ "immutableReferences": {},
28
+ "generatedSources": [],
29
+ "deployedGeneratedSources": [],
30
+ "sourceMap": "",
31
+ "deployedSourceMap": "",
32
+ "source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n /**\n * @dev Returns true if this contract implements the interface defined by\n * `interfaceId`. See the corresponding\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n * to learn more about how these ids are created.\n *\n * This function call must use less than 30 000 gas.\n */\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n",
33
+ "sourcePath": "@openzeppelin\\contracts\\utils\\introspection\\IERC165.sol",
34
+ "ast": {
35
+ "absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
36
+ "exportedSymbols": {
37
+ "IERC165": [
38
+ 4905
39
+ ]
40
+ },
41
+ "id": 4906,
42
+ "license": "MIT",
43
+ "nodeType": "SourceUnit",
44
+ "nodes": [
45
+ {
46
+ "id": 4895,
47
+ "literals": [
48
+ "solidity",
49
+ ">=",
50
+ "0.4",
51
+ ".16"
52
+ ],
53
+ "nodeType": "PragmaDirective",
54
+ "src": "115:25:23"
55
+ },
56
+ {
57
+ "abstract": false,
58
+ "baseContracts": [],
59
+ "canonicalName": "IERC165",
60
+ "contractDependencies": [],
61
+ "contractKind": "interface",
62
+ "documentation": {
63
+ "id": 4896,
64
+ "nodeType": "StructuredDocumentation",
65
+ "src": "142:280:23",
66
+ "text": " @dev Interface of the ERC-165 standard, as defined in the\n https://eips.ethereum.org/EIPS/eip-165[ERC].\n Implementers can declare support of contract interfaces, which can then be\n queried by others ({ERC165Checker}).\n For an implementation, see {ERC165}."
67
+ },
68
+ "fullyImplemented": false,
69
+ "id": 4905,
70
+ "linearizedBaseContracts": [
71
+ 4905
72
+ ],
73
+ "name": "IERC165",
74
+ "nameLocation": "433:7:23",
75
+ "nodeType": "ContractDefinition",
76
+ "nodes": [
77
+ {
78
+ "documentation": {
79
+ "id": 4897,
80
+ "nodeType": "StructuredDocumentation",
81
+ "src": "447:340:23",
82
+ "text": " @dev Returns true if this contract implements the interface defined by\n `interfaceId`. See the corresponding\n https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]\n to learn more about how these ids are created.\n This function call must use less than 30 000 gas."
83
+ },
84
+ "functionSelector": "01ffc9a7",
85
+ "id": 4904,
86
+ "implemented": false,
87
+ "kind": "function",
88
+ "modifiers": [],
89
+ "name": "supportsInterface",
90
+ "nameLocation": "801:17:23",
91
+ "nodeType": "FunctionDefinition",
92
+ "parameters": {
93
+ "id": 4900,
94
+ "nodeType": "ParameterList",
95
+ "parameters": [
96
+ {
97
+ "constant": false,
98
+ "id": 4899,
99
+ "mutability": "mutable",
100
+ "name": "interfaceId",
101
+ "nameLocation": "826:11:23",
102
+ "nodeType": "VariableDeclaration",
103
+ "scope": 4904,
104
+ "src": "819:18:23",
105
+ "stateVariable": false,
106
+ "storageLocation": "default",
107
+ "typeDescriptions": {
108
+ "typeIdentifier": "t_bytes4",
109
+ "typeString": "bytes4"
110
+ },
111
+ "typeName": {
112
+ "id": 4898,
113
+ "name": "bytes4",
114
+ "nodeType": "ElementaryTypeName",
115
+ "src": "819:6:23",
116
+ "typeDescriptions": {
117
+ "typeIdentifier": "t_bytes4",
118
+ "typeString": "bytes4"
119
+ }
120
+ },
121
+ "visibility": "internal"
122
+ }
123
+ ],
124
+ "src": "818:20:23"
125
+ },
126
+ "returnParameters": {
127
+ "id": 4903,
128
+ "nodeType": "ParameterList",
129
+ "parameters": [
130
+ {
131
+ "constant": false,
132
+ "id": 4902,
133
+ "mutability": "mutable",
134
+ "name": "",
135
+ "nameLocation": "-1:-1:-1",
136
+ "nodeType": "VariableDeclaration",
137
+ "scope": 4904,
138
+ "src": "862:4:23",
139
+ "stateVariable": false,
140
+ "storageLocation": "default",
141
+ "typeDescriptions": {
142
+ "typeIdentifier": "t_bool",
143
+ "typeString": "bool"
144
+ },
145
+ "typeName": {
146
+ "id": 4901,
147
+ "name": "bool",
148
+ "nodeType": "ElementaryTypeName",
149
+ "src": "862:4:23",
150
+ "typeDescriptions": {
151
+ "typeIdentifier": "t_bool",
152
+ "typeString": "bool"
153
+ }
154
+ },
155
+ "visibility": "internal"
156
+ }
157
+ ],
158
+ "src": "861:6:23"
159
+ },
160
+ "scope": 4905,
161
+ "src": "792:76:23",
162
+ "stateMutability": "view",
163
+ "virtual": false,
164
+ "visibility": "external"
165
+ }
166
+ ],
167
+ "scope": 4906,
168
+ "src": "423:447:23",
169
+ "usedErrors": [],
170
+ "usedEvents": []
171
+ }
172
+ ],
173
+ "src": "115:756:23"
174
+ },
175
+ "compiler": {
176
+ "name": "solc",
177
+ "version": "0.8.21+commit.d9974bed.Emscripten.clang"
178
+ },
179
+ "networks": {},
180
+ "schemaVersion": "3.4.16",
181
+ "updatedAt": "2026-01-24T20:23:04.170Z",
182
+ "devdoc": {
183
+ "details": "Interface of the ERC-165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[ERC]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.",
184
+ "kind": "dev",
185
+ "methods": {
186
+ "supportsInterface(bytes4)": {
187
+ "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."
188
+ }
189
+ },
190
+ "version": 1
191
+ },
192
+ "userdoc": {
193
+ "kind": "user",
194
+ "methods": {},
195
+ "version": 1
196
+ }
197
+ }