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,352 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "ERC165",
|
|
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\":\"Implementation of the {IERC165} interface. Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ```\",\"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/ERC165.sol\":\"ERC165\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"keccak256\":\"0x2d9dc2fe26180f74c11c13663647d38e259e45f95eb88f57b61d2160b0109d3e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://81233d1f98060113d9922180bb0f14f8335856fe9f339134b09335e9f678c377\",\"dweb:/ipfs/QmWh6R35SarhAn4z2wH8SU456jJSYL2FgucfTFgbHJJN4E\"]},\"@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/ERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n /// @inheritdoc IERC165\n function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n return interfaceId == type(IERC165).interfaceId;\n }\n}\n",
|
|
33
|
+
"sourcePath": "@openzeppelin\\contracts\\utils\\introspection\\ERC165.sol",
|
|
34
|
+
"ast": {
|
|
35
|
+
"absolutePath": "@openzeppelin/contracts/utils/introspection/ERC165.sol",
|
|
36
|
+
"exportedSymbols": {
|
|
37
|
+
"ERC165": [
|
|
38
|
+
4893
|
|
39
|
+
],
|
|
40
|
+
"IERC165": [
|
|
41
|
+
4905
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"id": 4894,
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
"nodeType": "SourceUnit",
|
|
47
|
+
"nodes": [
|
|
48
|
+
{
|
|
49
|
+
"id": 4871,
|
|
50
|
+
"literals": [
|
|
51
|
+
"solidity",
|
|
52
|
+
"^",
|
|
53
|
+
"0.8",
|
|
54
|
+
".20"
|
|
55
|
+
],
|
|
56
|
+
"nodeType": "PragmaDirective",
|
|
57
|
+
"src": "114:24:22"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"absolutePath": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
|
|
61
|
+
"file": "./IERC165.sol",
|
|
62
|
+
"id": 4873,
|
|
63
|
+
"nameLocation": "-1:-1:-1",
|
|
64
|
+
"nodeType": "ImportDirective",
|
|
65
|
+
"scope": 4894,
|
|
66
|
+
"sourceUnit": 4906,
|
|
67
|
+
"src": "140:38:22",
|
|
68
|
+
"symbolAliases": [
|
|
69
|
+
{
|
|
70
|
+
"foreign": {
|
|
71
|
+
"id": 4872,
|
|
72
|
+
"name": "IERC165",
|
|
73
|
+
"nodeType": "Identifier",
|
|
74
|
+
"overloadedDeclarations": [],
|
|
75
|
+
"referencedDeclaration": 4905,
|
|
76
|
+
"src": "148:7:22",
|
|
77
|
+
"typeDescriptions": {}
|
|
78
|
+
},
|
|
79
|
+
"nameLocation": "-1:-1:-1"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"unitAlias": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"abstract": true,
|
|
86
|
+
"baseContracts": [
|
|
87
|
+
{
|
|
88
|
+
"baseName": {
|
|
89
|
+
"id": 4875,
|
|
90
|
+
"name": "IERC165",
|
|
91
|
+
"nameLocations": [
|
|
92
|
+
"688:7:22"
|
|
93
|
+
],
|
|
94
|
+
"nodeType": "IdentifierPath",
|
|
95
|
+
"referencedDeclaration": 4905,
|
|
96
|
+
"src": "688:7:22"
|
|
97
|
+
},
|
|
98
|
+
"id": 4876,
|
|
99
|
+
"nodeType": "InheritanceSpecifier",
|
|
100
|
+
"src": "688:7:22"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"canonicalName": "ERC165",
|
|
104
|
+
"contractDependencies": [],
|
|
105
|
+
"contractKind": "contract",
|
|
106
|
+
"documentation": {
|
|
107
|
+
"id": 4874,
|
|
108
|
+
"nodeType": "StructuredDocumentation",
|
|
109
|
+
"src": "180:479:22",
|
|
110
|
+
"text": " @dev Implementation of the {IERC165} interface.\n Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check\n for the additional interface id that will be supported. For example:\n ```solidity\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n }\n ```"
|
|
111
|
+
},
|
|
112
|
+
"fullyImplemented": true,
|
|
113
|
+
"id": 4893,
|
|
114
|
+
"linearizedBaseContracts": [
|
|
115
|
+
4893,
|
|
116
|
+
4905
|
|
117
|
+
],
|
|
118
|
+
"name": "ERC165",
|
|
119
|
+
"nameLocation": "678:6:22",
|
|
120
|
+
"nodeType": "ContractDefinition",
|
|
121
|
+
"nodes": [
|
|
122
|
+
{
|
|
123
|
+
"baseFunctions": [
|
|
124
|
+
4904
|
|
125
|
+
],
|
|
126
|
+
"body": {
|
|
127
|
+
"id": 4891,
|
|
128
|
+
"nodeType": "Block",
|
|
129
|
+
"src": "812:64:22",
|
|
130
|
+
"statements": [
|
|
131
|
+
{
|
|
132
|
+
"expression": {
|
|
133
|
+
"commonType": {
|
|
134
|
+
"typeIdentifier": "t_bytes4",
|
|
135
|
+
"typeString": "bytes4"
|
|
136
|
+
},
|
|
137
|
+
"id": 4889,
|
|
138
|
+
"isConstant": false,
|
|
139
|
+
"isLValue": false,
|
|
140
|
+
"isPure": false,
|
|
141
|
+
"lValueRequested": false,
|
|
142
|
+
"leftExpression": {
|
|
143
|
+
"id": 4884,
|
|
144
|
+
"name": "interfaceId",
|
|
145
|
+
"nodeType": "Identifier",
|
|
146
|
+
"overloadedDeclarations": [],
|
|
147
|
+
"referencedDeclaration": 4879,
|
|
148
|
+
"src": "829:11:22",
|
|
149
|
+
"typeDescriptions": {
|
|
150
|
+
"typeIdentifier": "t_bytes4",
|
|
151
|
+
"typeString": "bytes4"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"nodeType": "BinaryOperation",
|
|
155
|
+
"operator": "==",
|
|
156
|
+
"rightExpression": {
|
|
157
|
+
"expression": {
|
|
158
|
+
"arguments": [
|
|
159
|
+
{
|
|
160
|
+
"id": 4886,
|
|
161
|
+
"name": "IERC165",
|
|
162
|
+
"nodeType": "Identifier",
|
|
163
|
+
"overloadedDeclarations": [],
|
|
164
|
+
"referencedDeclaration": 4905,
|
|
165
|
+
"src": "849:7:22",
|
|
166
|
+
"typeDescriptions": {
|
|
167
|
+
"typeIdentifier": "t_type$_t_contract$_IERC165_$4905_$",
|
|
168
|
+
"typeString": "type(contract IERC165)"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"expression": {
|
|
173
|
+
"argumentTypes": [
|
|
174
|
+
{
|
|
175
|
+
"typeIdentifier": "t_type$_t_contract$_IERC165_$4905_$",
|
|
176
|
+
"typeString": "type(contract IERC165)"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"id": 4885,
|
|
180
|
+
"name": "type",
|
|
181
|
+
"nodeType": "Identifier",
|
|
182
|
+
"overloadedDeclarations": [],
|
|
183
|
+
"referencedDeclaration": 4294967269,
|
|
184
|
+
"src": "844:4:22",
|
|
185
|
+
"typeDescriptions": {
|
|
186
|
+
"typeIdentifier": "t_function_metatype_pure$__$returns$__$",
|
|
187
|
+
"typeString": "function () pure"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"id": 4887,
|
|
191
|
+
"isConstant": false,
|
|
192
|
+
"isLValue": false,
|
|
193
|
+
"isPure": true,
|
|
194
|
+
"kind": "functionCall",
|
|
195
|
+
"lValueRequested": false,
|
|
196
|
+
"nameLocations": [],
|
|
197
|
+
"names": [],
|
|
198
|
+
"nodeType": "FunctionCall",
|
|
199
|
+
"src": "844:13:22",
|
|
200
|
+
"tryCall": false,
|
|
201
|
+
"typeDescriptions": {
|
|
202
|
+
"typeIdentifier": "t_magic_meta_type_t_contract$_IERC165_$4905",
|
|
203
|
+
"typeString": "type(contract IERC165)"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"id": 4888,
|
|
207
|
+
"isConstant": false,
|
|
208
|
+
"isLValue": false,
|
|
209
|
+
"isPure": true,
|
|
210
|
+
"lValueRequested": false,
|
|
211
|
+
"memberLocation": "858:11:22",
|
|
212
|
+
"memberName": "interfaceId",
|
|
213
|
+
"nodeType": "MemberAccess",
|
|
214
|
+
"src": "844:25:22",
|
|
215
|
+
"typeDescriptions": {
|
|
216
|
+
"typeIdentifier": "t_bytes4",
|
|
217
|
+
"typeString": "bytes4"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"src": "829:40:22",
|
|
221
|
+
"typeDescriptions": {
|
|
222
|
+
"typeIdentifier": "t_bool",
|
|
223
|
+
"typeString": "bool"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"functionReturnParameters": 4883,
|
|
227
|
+
"id": 4890,
|
|
228
|
+
"nodeType": "Return",
|
|
229
|
+
"src": "822:47:22"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"documentation": {
|
|
234
|
+
"id": 4877,
|
|
235
|
+
"nodeType": "StructuredDocumentation",
|
|
236
|
+
"src": "702:23:22",
|
|
237
|
+
"text": "@inheritdoc IERC165"
|
|
238
|
+
},
|
|
239
|
+
"functionSelector": "01ffc9a7",
|
|
240
|
+
"id": 4892,
|
|
241
|
+
"implemented": true,
|
|
242
|
+
"kind": "function",
|
|
243
|
+
"modifiers": [],
|
|
244
|
+
"name": "supportsInterface",
|
|
245
|
+
"nameLocation": "739:17:22",
|
|
246
|
+
"nodeType": "FunctionDefinition",
|
|
247
|
+
"parameters": {
|
|
248
|
+
"id": 4880,
|
|
249
|
+
"nodeType": "ParameterList",
|
|
250
|
+
"parameters": [
|
|
251
|
+
{
|
|
252
|
+
"constant": false,
|
|
253
|
+
"id": 4879,
|
|
254
|
+
"mutability": "mutable",
|
|
255
|
+
"name": "interfaceId",
|
|
256
|
+
"nameLocation": "764:11:22",
|
|
257
|
+
"nodeType": "VariableDeclaration",
|
|
258
|
+
"scope": 4892,
|
|
259
|
+
"src": "757:18:22",
|
|
260
|
+
"stateVariable": false,
|
|
261
|
+
"storageLocation": "default",
|
|
262
|
+
"typeDescriptions": {
|
|
263
|
+
"typeIdentifier": "t_bytes4",
|
|
264
|
+
"typeString": "bytes4"
|
|
265
|
+
},
|
|
266
|
+
"typeName": {
|
|
267
|
+
"id": 4878,
|
|
268
|
+
"name": "bytes4",
|
|
269
|
+
"nodeType": "ElementaryTypeName",
|
|
270
|
+
"src": "757:6:22",
|
|
271
|
+
"typeDescriptions": {
|
|
272
|
+
"typeIdentifier": "t_bytes4",
|
|
273
|
+
"typeString": "bytes4"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"visibility": "internal"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"src": "756:20:22"
|
|
280
|
+
},
|
|
281
|
+
"returnParameters": {
|
|
282
|
+
"id": 4883,
|
|
283
|
+
"nodeType": "ParameterList",
|
|
284
|
+
"parameters": [
|
|
285
|
+
{
|
|
286
|
+
"constant": false,
|
|
287
|
+
"id": 4882,
|
|
288
|
+
"mutability": "mutable",
|
|
289
|
+
"name": "",
|
|
290
|
+
"nameLocation": "-1:-1:-1",
|
|
291
|
+
"nodeType": "VariableDeclaration",
|
|
292
|
+
"scope": 4892,
|
|
293
|
+
"src": "806:4:22",
|
|
294
|
+
"stateVariable": false,
|
|
295
|
+
"storageLocation": "default",
|
|
296
|
+
"typeDescriptions": {
|
|
297
|
+
"typeIdentifier": "t_bool",
|
|
298
|
+
"typeString": "bool"
|
|
299
|
+
},
|
|
300
|
+
"typeName": {
|
|
301
|
+
"id": 4881,
|
|
302
|
+
"name": "bool",
|
|
303
|
+
"nodeType": "ElementaryTypeName",
|
|
304
|
+
"src": "806:4:22",
|
|
305
|
+
"typeDescriptions": {
|
|
306
|
+
"typeIdentifier": "t_bool",
|
|
307
|
+
"typeString": "bool"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"visibility": "internal"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"src": "805:6:22"
|
|
314
|
+
},
|
|
315
|
+
"scope": 4893,
|
|
316
|
+
"src": "730:146:22",
|
|
317
|
+
"stateMutability": "view",
|
|
318
|
+
"virtual": true,
|
|
319
|
+
"visibility": "public"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"scope": 4894,
|
|
323
|
+
"src": "660:218:22",
|
|
324
|
+
"usedErrors": [],
|
|
325
|
+
"usedEvents": []
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"src": "114:765:22"
|
|
329
|
+
},
|
|
330
|
+
"compiler": {
|
|
331
|
+
"name": "solc",
|
|
332
|
+
"version": "0.8.21+commit.d9974bed.Emscripten.clang"
|
|
333
|
+
},
|
|
334
|
+
"networks": {},
|
|
335
|
+
"schemaVersion": "3.4.16",
|
|
336
|
+
"updatedAt": "2026-01-24T20:23:04.166Z",
|
|
337
|
+
"devdoc": {
|
|
338
|
+
"details": "Implementation of the {IERC165} interface. Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ```",
|
|
339
|
+
"kind": "dev",
|
|
340
|
+
"methods": {
|
|
341
|
+
"supportsInterface(bytes4)": {
|
|
342
|
+
"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."
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"version": 1
|
|
346
|
+
},
|
|
347
|
+
"userdoc": {
|
|
348
|
+
"kind": "user",
|
|
349
|
+
"methods": {},
|
|
350
|
+
"version": 1
|
|
351
|
+
}
|
|
352
|
+
}
|