@veritier/sdk 0.1.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/dist/AgentManager.d.ts +32 -0
- package/dist/AgentManager.d.ts.map +1 -0
- package/dist/AgentManager.js +87 -0
- package/dist/AgentManager.js.map +1 -0
- package/dist/HSPSettlementGate.d.ts +43 -0
- package/dist/HSPSettlementGate.d.ts.map +1 -0
- package/dist/HSPSettlementGate.js +86 -0
- package/dist/HSPSettlementGate.js.map +1 -0
- package/dist/IdentityManager.d.ts +30 -0
- package/dist/IdentityManager.d.ts.map +1 -0
- package/dist/IdentityManager.js +66 -0
- package/dist/IdentityManager.js.map +1 -0
- package/dist/ProofGenerator.d.ts +27 -0
- package/dist/ProofGenerator.d.ts.map +1 -0
- package/dist/ProofGenerator.js +115 -0
- package/dist/ProofGenerator.js.map +1 -0
- package/dist/TierChecker.d.ts +13 -0
- package/dist/TierChecker.d.ts.map +1 -0
- package/dist/TierChecker.js +41 -0
- package/dist/TierChecker.js.map +1 -0
- package/dist/Veritier.d.ts +78 -0
- package/dist/Veritier.d.ts.map +1 -0
- package/dist/Veritier.js +124 -0
- package/dist/Veritier.js.map +1 -0
- package/dist/abis/AgentRegistry.json +863 -0
- package/dist/abis/ComplianceAggregator.json +293 -0
- package/dist/abis/IdentityRegistry.json +536 -0
- package/dist/constants.d.ts +19 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +33 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +120 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +20 -0
- package/dist/types.js.map +1 -0
- package/package.json +21 -0
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "address",
|
|
6
|
+
"name": "_ageVerifier",
|
|
7
|
+
"type": "address"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "address",
|
|
11
|
+
"name": "_jurisdictionVerifier",
|
|
12
|
+
"type": "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "address",
|
|
16
|
+
"name": "_tierVerifier",
|
|
17
|
+
"type": "address"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"stateMutability": "nonpayable",
|
|
21
|
+
"type": "constructor"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"inputs": [],
|
|
25
|
+
"name": "InvalidProof",
|
|
26
|
+
"type": "error"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [],
|
|
30
|
+
"name": "InvalidPublicSignals",
|
|
31
|
+
"type": "error"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"name": "InvalidTier",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [],
|
|
40
|
+
"name": "NotAdmin",
|
|
41
|
+
"type": "error"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"name": "NullifierAlreadyUsed",
|
|
46
|
+
"type": "error"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"internalType": "address",
|
|
52
|
+
"name": "owner",
|
|
53
|
+
"type": "address"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "OwnableInvalidOwner",
|
|
57
|
+
"type": "error"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "address",
|
|
63
|
+
"name": "account",
|
|
64
|
+
"type": "address"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"name": "OwnableUnauthorizedAccount",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [],
|
|
72
|
+
"name": "TierExpired",
|
|
73
|
+
"type": "error"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"inputs": [],
|
|
77
|
+
"name": "UnauthorizedIssuer",
|
|
78
|
+
"type": "error"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"anonymous": false,
|
|
82
|
+
"inputs": [
|
|
83
|
+
{
|
|
84
|
+
"indexed": false,
|
|
85
|
+
"internalType": "bytes32",
|
|
86
|
+
"name": "newRoot",
|
|
87
|
+
"type": "bytes32"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"name": "IdentityRootUpdated",
|
|
91
|
+
"type": "event"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"anonymous": false,
|
|
95
|
+
"inputs": [
|
|
96
|
+
{
|
|
97
|
+
"indexed": true,
|
|
98
|
+
"internalType": "address",
|
|
99
|
+
"name": "user",
|
|
100
|
+
"type": "address"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"indexed": false,
|
|
104
|
+
"internalType": "uint8",
|
|
105
|
+
"name": "tier",
|
|
106
|
+
"type": "uint8"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"indexed": false,
|
|
110
|
+
"internalType": "uint256",
|
|
111
|
+
"name": "timestamp",
|
|
112
|
+
"type": "uint256"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"name": "IdentityVerified",
|
|
116
|
+
"type": "event"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"anonymous": false,
|
|
120
|
+
"inputs": [
|
|
121
|
+
{
|
|
122
|
+
"indexed": true,
|
|
123
|
+
"internalType": "address",
|
|
124
|
+
"name": "issuer",
|
|
125
|
+
"type": "address"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"name": "IssuerAdded",
|
|
129
|
+
"type": "event"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"anonymous": false,
|
|
133
|
+
"inputs": [
|
|
134
|
+
{
|
|
135
|
+
"indexed": true,
|
|
136
|
+
"internalType": "address",
|
|
137
|
+
"name": "issuer",
|
|
138
|
+
"type": "address"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"name": "IssuerRemoved",
|
|
142
|
+
"type": "event"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"anonymous": false,
|
|
146
|
+
"inputs": [
|
|
147
|
+
{
|
|
148
|
+
"indexed": true,
|
|
149
|
+
"internalType": "address",
|
|
150
|
+
"name": "previousOwner",
|
|
151
|
+
"type": "address"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"indexed": true,
|
|
155
|
+
"internalType": "address",
|
|
156
|
+
"name": "newOwner",
|
|
157
|
+
"type": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "OwnershipTransferred",
|
|
161
|
+
"type": "event"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"anonymous": false,
|
|
165
|
+
"inputs": [
|
|
166
|
+
{
|
|
167
|
+
"indexed": true,
|
|
168
|
+
"internalType": "address",
|
|
169
|
+
"name": "user",
|
|
170
|
+
"type": "address"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"indexed": false,
|
|
174
|
+
"internalType": "uint8",
|
|
175
|
+
"name": "oldTier",
|
|
176
|
+
"type": "uint8"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"name": "TierRevoked",
|
|
180
|
+
"type": "event"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"anonymous": false,
|
|
184
|
+
"inputs": [
|
|
185
|
+
{
|
|
186
|
+
"indexed": true,
|
|
187
|
+
"internalType": "address",
|
|
188
|
+
"name": "user",
|
|
189
|
+
"type": "address"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"indexed": false,
|
|
193
|
+
"internalType": "uint8",
|
|
194
|
+
"name": "oldTier",
|
|
195
|
+
"type": "uint8"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"indexed": false,
|
|
199
|
+
"internalType": "uint8",
|
|
200
|
+
"name": "newTier",
|
|
201
|
+
"type": "uint8"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"name": "TierUpgraded",
|
|
205
|
+
"type": "event"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"inputs": [
|
|
209
|
+
{
|
|
210
|
+
"internalType": "address",
|
|
211
|
+
"name": "issuer",
|
|
212
|
+
"type": "address"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"name": "addIssuer",
|
|
216
|
+
"outputs": [],
|
|
217
|
+
"stateMutability": "nonpayable",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"inputs": [],
|
|
222
|
+
"name": "ageVerifier",
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "contract IAgeProofVerifier",
|
|
226
|
+
"name": "",
|
|
227
|
+
"type": "address"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"stateMutability": "view",
|
|
231
|
+
"type": "function"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"inputs": [],
|
|
235
|
+
"name": "getIdentityRoot",
|
|
236
|
+
"outputs": [
|
|
237
|
+
{
|
|
238
|
+
"internalType": "bytes32",
|
|
239
|
+
"name": "",
|
|
240
|
+
"type": "bytes32"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"stateMutability": "view",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"inputs": [
|
|
248
|
+
{
|
|
249
|
+
"internalType": "address",
|
|
250
|
+
"name": "user",
|
|
251
|
+
"type": "address"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"name": "getTier",
|
|
255
|
+
"outputs": [
|
|
256
|
+
{
|
|
257
|
+
"internalType": "uint8",
|
|
258
|
+
"name": "",
|
|
259
|
+
"type": "uint8"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"stateMutability": "view",
|
|
263
|
+
"type": "function"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"inputs": [
|
|
267
|
+
{
|
|
268
|
+
"internalType": "bytes32",
|
|
269
|
+
"name": "nullifier",
|
|
270
|
+
"type": "bytes32"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"name": "isNullifierUsed",
|
|
274
|
+
"outputs": [
|
|
275
|
+
{
|
|
276
|
+
"internalType": "bool",
|
|
277
|
+
"name": "",
|
|
278
|
+
"type": "bool"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"stateMutability": "view",
|
|
282
|
+
"type": "function"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"inputs": [
|
|
286
|
+
{
|
|
287
|
+
"internalType": "address",
|
|
288
|
+
"name": "user",
|
|
289
|
+
"type": "address"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"internalType": "uint8",
|
|
293
|
+
"name": "requiredTier",
|
|
294
|
+
"type": "uint8"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"name": "isTierValid",
|
|
298
|
+
"outputs": [
|
|
299
|
+
{
|
|
300
|
+
"internalType": "bool",
|
|
301
|
+
"name": "",
|
|
302
|
+
"type": "bool"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"stateMutability": "view",
|
|
306
|
+
"type": "function"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"inputs": [
|
|
310
|
+
{
|
|
311
|
+
"internalType": "address",
|
|
312
|
+
"name": "issuer",
|
|
313
|
+
"type": "address"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"name": "isTrustedIssuer",
|
|
317
|
+
"outputs": [
|
|
318
|
+
{
|
|
319
|
+
"internalType": "bool",
|
|
320
|
+
"name": "",
|
|
321
|
+
"type": "bool"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"stateMutability": "view",
|
|
325
|
+
"type": "function"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"inputs": [
|
|
329
|
+
{
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "user",
|
|
332
|
+
"type": "address"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"name": "isVerified",
|
|
336
|
+
"outputs": [
|
|
337
|
+
{
|
|
338
|
+
"internalType": "bool",
|
|
339
|
+
"name": "",
|
|
340
|
+
"type": "bool"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"stateMutability": "view",
|
|
344
|
+
"type": "function"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"inputs": [],
|
|
348
|
+
"name": "jurisdictionVerifier",
|
|
349
|
+
"outputs": [
|
|
350
|
+
{
|
|
351
|
+
"internalType": "contract IJurisdictionProofVerifier",
|
|
352
|
+
"name": "",
|
|
353
|
+
"type": "address"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"stateMutability": "view",
|
|
357
|
+
"type": "function"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"inputs": [],
|
|
361
|
+
"name": "owner",
|
|
362
|
+
"outputs": [
|
|
363
|
+
{
|
|
364
|
+
"internalType": "address",
|
|
365
|
+
"name": "",
|
|
366
|
+
"type": "address"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"stateMutability": "view",
|
|
370
|
+
"type": "function"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"inputs": [
|
|
374
|
+
{
|
|
375
|
+
"internalType": "address",
|
|
376
|
+
"name": "issuer",
|
|
377
|
+
"type": "address"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"name": "removeIssuer",
|
|
381
|
+
"outputs": [],
|
|
382
|
+
"stateMutability": "nonpayable",
|
|
383
|
+
"type": "function"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"inputs": [],
|
|
387
|
+
"name": "renounceOwnership",
|
|
388
|
+
"outputs": [],
|
|
389
|
+
"stateMutability": "nonpayable",
|
|
390
|
+
"type": "function"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"inputs": [
|
|
394
|
+
{
|
|
395
|
+
"internalType": "address",
|
|
396
|
+
"name": "user",
|
|
397
|
+
"type": "address"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"name": "revokeTier",
|
|
401
|
+
"outputs": [],
|
|
402
|
+
"stateMutability": "nonpayable",
|
|
403
|
+
"type": "function"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"inputs": [
|
|
407
|
+
{
|
|
408
|
+
"internalType": "uint256",
|
|
409
|
+
"name": "duration",
|
|
410
|
+
"type": "uint256"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"name": "setTierExpiry",
|
|
414
|
+
"outputs": [],
|
|
415
|
+
"stateMutability": "nonpayable",
|
|
416
|
+
"type": "function"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"inputs": [],
|
|
420
|
+
"name": "tierExpiryDuration",
|
|
421
|
+
"outputs": [
|
|
422
|
+
{
|
|
423
|
+
"internalType": "uint256",
|
|
424
|
+
"name": "",
|
|
425
|
+
"type": "uint256"
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"stateMutability": "view",
|
|
429
|
+
"type": "function"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"inputs": [],
|
|
433
|
+
"name": "tierVerifier",
|
|
434
|
+
"outputs": [
|
|
435
|
+
{
|
|
436
|
+
"internalType": "contract ITierProofVerifier",
|
|
437
|
+
"name": "",
|
|
438
|
+
"type": "address"
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
"stateMutability": "view",
|
|
442
|
+
"type": "function"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"inputs": [
|
|
446
|
+
{
|
|
447
|
+
"internalType": "address",
|
|
448
|
+
"name": "newOwner",
|
|
449
|
+
"type": "address"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"name": "transferOwnership",
|
|
453
|
+
"outputs": [],
|
|
454
|
+
"stateMutability": "nonpayable",
|
|
455
|
+
"type": "function"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"inputs": [
|
|
459
|
+
{
|
|
460
|
+
"internalType": "bytes32",
|
|
461
|
+
"name": "newRoot",
|
|
462
|
+
"type": "bytes32"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"name": "updateIdentityRoot",
|
|
466
|
+
"outputs": [],
|
|
467
|
+
"stateMutability": "nonpayable",
|
|
468
|
+
"type": "function"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"inputs": [
|
|
472
|
+
{
|
|
473
|
+
"internalType": "uint256[2]",
|
|
474
|
+
"name": "pA",
|
|
475
|
+
"type": "uint256[2]"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"internalType": "uint256[2][2]",
|
|
479
|
+
"name": "pB",
|
|
480
|
+
"type": "uint256[2][2]"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"internalType": "uint256[2]",
|
|
484
|
+
"name": "pC",
|
|
485
|
+
"type": "uint256[2]"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"internalType": "uint256[]",
|
|
489
|
+
"name": "publicSignals",
|
|
490
|
+
"type": "uint256[]"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"internalType": "uint8",
|
|
494
|
+
"name": "newTier",
|
|
495
|
+
"type": "uint8"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"name": "upgradeTier",
|
|
499
|
+
"outputs": [],
|
|
500
|
+
"stateMutability": "nonpayable",
|
|
501
|
+
"type": "function"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"inputs": [
|
|
505
|
+
{
|
|
506
|
+
"internalType": "uint256[2]",
|
|
507
|
+
"name": "pA",
|
|
508
|
+
"type": "uint256[2]"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"internalType": "uint256[2][2]",
|
|
512
|
+
"name": "pB",
|
|
513
|
+
"type": "uint256[2][2]"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"internalType": "uint256[2]",
|
|
517
|
+
"name": "pC",
|
|
518
|
+
"type": "uint256[2]"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"internalType": "uint256[]",
|
|
522
|
+
"name": "publicSignals",
|
|
523
|
+
"type": "uint256[]"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"internalType": "uint8",
|
|
527
|
+
"name": "targetTier",
|
|
528
|
+
"type": "uint8"
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"name": "verifyAndRegister",
|
|
532
|
+
"outputs": [],
|
|
533
|
+
"stateMutability": "nonpayable",
|
|
534
|
+
"type": "function"
|
|
535
|
+
}
|
|
536
|
+
]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const HASHKEY_TESTNET: {
|
|
2
|
+
chainId: number;
|
|
3
|
+
rpcUrl: string;
|
|
4
|
+
explorerUrl: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const HASHKEY_MAINNET: {
|
|
7
|
+
chainId: number;
|
|
8
|
+
rpcUrl: string;
|
|
9
|
+
explorerUrl: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const TIER_NAMES: Record<number, string>;
|
|
12
|
+
export declare const TIER_DESCRIPTIONS: Record<number, string>;
|
|
13
|
+
export declare const TESTNET_CONTRACTS: {
|
|
14
|
+
identityRegistry: string;
|
|
15
|
+
agentRegistry: string;
|
|
16
|
+
complianceAggregator: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const SECONDS_PER_YEAR = 31557600n;
|
|
19
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;CAI3B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;CAI3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAK7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKpD,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAY,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SECONDS_PER_YEAR = exports.TESTNET_CONTRACTS = exports.TIER_DESCRIPTIONS = exports.TIER_NAMES = exports.HASHKEY_MAINNET = exports.HASHKEY_TESTNET = void 0;
|
|
4
|
+
exports.HASHKEY_TESTNET = {
|
|
5
|
+
chainId: 133,
|
|
6
|
+
rpcUrl: "https://testnet.hsk.xyz",
|
|
7
|
+
explorerUrl: "https://testnet-explorer.hsk.xyz",
|
|
8
|
+
};
|
|
9
|
+
exports.HASHKEY_MAINNET = {
|
|
10
|
+
chainId: 177,
|
|
11
|
+
rpcUrl: "https://mainnet.hsk.xyz",
|
|
12
|
+
explorerUrl: "https://explorer.hsk.xyz",
|
|
13
|
+
};
|
|
14
|
+
exports.TIER_NAMES = {
|
|
15
|
+
0: "Public",
|
|
16
|
+
1: "Basic",
|
|
17
|
+
2: "Verified",
|
|
18
|
+
3: "Institutional",
|
|
19
|
+
};
|
|
20
|
+
exports.TIER_DESCRIPTIONS = {
|
|
21
|
+
0: "Read-only access. No identity required.",
|
|
22
|
+
1: "Age + jurisdiction verified. Swaps, small transfers.",
|
|
23
|
+
2: "Full KYC equivalent. Lending, larger positions, agent deployment.",
|
|
24
|
+
3: "Accredited investor / entity. RWA, securities, unlimited.",
|
|
25
|
+
};
|
|
26
|
+
// Deployed to HashKey Chain Testnet (chainId: 133) — v2 with unified AgeProof verifier
|
|
27
|
+
exports.TESTNET_CONTRACTS = {
|
|
28
|
+
identityRegistry: "0x239E5f55e3397816F3EdD62dcf92B8dda1A98E49",
|
|
29
|
+
agentRegistry: "0x080c48E4cC03E490df6d78613D12d1e95F8fb54c",
|
|
30
|
+
complianceAggregator: "0x022CCD94f6f95CC00b09AA2CB9319931899302D6",
|
|
31
|
+
};
|
|
32
|
+
exports.SECONDS_PER_YEAR = 31557600n; // 365.25 * 86400
|
|
33
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,yBAAyB;IACjC,WAAW,EAAE,kCAAkC;CAChD,CAAC;AAEW,QAAA,eAAe,GAAG;IAC7B,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,yBAAyB;IACjC,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,UAAU,GAA2B;IAChD,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,eAAe;CACnB,CAAC;AAEW,QAAA,iBAAiB,GAA2B;IACvD,CAAC,EAAE,yCAAyC;IAC5C,CAAC,EAAE,sDAAsD;IACzD,CAAC,EAAE,mEAAmE;IACtE,CAAC,EAAE,2DAA2D;CAC/D,CAAC;AAEF,uFAAuF;AAC1E,QAAA,iBAAiB,GAAG;IAC/B,gBAAgB,EAAE,4CAA4C;IAC9D,aAAa,EAAE,4CAA4C;IAC3D,oBAAoB,EAAE,4CAA4C;CACnE,CAAC;AAEW,QAAA,gBAAgB,GAAG,SAAS,CAAC,CAAC,iBAAiB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { Veritier } from "./Veritier";
|
|
2
|
+
export { ProofGenerator } from "./ProofGenerator";
|
|
3
|
+
export { IdentityManager } from "./IdentityManager";
|
|
4
|
+
export { AgentManager } from "./AgentManager";
|
|
5
|
+
export { TierChecker } from "./TierChecker";
|
|
6
|
+
export { HSPSettlementGate } from "./HSPSettlementGate";
|
|
7
|
+
export type { VeritierConfig, CircuitArtifact, Groth16Proof, SolidityCalldata, ProofResult, AgentInfo, TierDistribution, AgeProofParams, JurisdictionProofParams, TierProofParams, VerifyAndRegisterParams, RegisterAgentParams, SubmitFeedbackParams, UpgradeAgentTierParams, } from "./types";
|
|
8
|
+
export type { SettlementCheckParams, SettlementResult, } from "./HSPSettlementGate";
|
|
9
|
+
export { Tier, JurisdictionBucket } from "./types";
|
|
10
|
+
export { HASHKEY_TESTNET, HASHKEY_MAINNET, TIER_NAMES, TIER_DESCRIPTIONS, TESTNET_CONTRACTS, SECONDS_PER_YEAR, } from "./constants";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,YAAY,EACV,cAAc,EACd,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EACL,eAAe,EACf,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Veritier SDK — Privacy-preserving tiered identity for HashKey Chain
|
|
3
|
+
// "Prove everything. Reveal nothing."
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SECONDS_PER_YEAR = exports.TESTNET_CONTRACTS = exports.TIER_DESCRIPTIONS = exports.TIER_NAMES = exports.HASHKEY_MAINNET = exports.HASHKEY_TESTNET = exports.JurisdictionBucket = exports.Tier = exports.HSPSettlementGate = exports.TierChecker = exports.AgentManager = exports.IdentityManager = exports.ProofGenerator = exports.Veritier = void 0;
|
|
6
|
+
var Veritier_1 = require("./Veritier");
|
|
7
|
+
Object.defineProperty(exports, "Veritier", { enumerable: true, get: function () { return Veritier_1.Veritier; } });
|
|
8
|
+
var ProofGenerator_1 = require("./ProofGenerator");
|
|
9
|
+
Object.defineProperty(exports, "ProofGenerator", { enumerable: true, get: function () { return ProofGenerator_1.ProofGenerator; } });
|
|
10
|
+
var IdentityManager_1 = require("./IdentityManager");
|
|
11
|
+
Object.defineProperty(exports, "IdentityManager", { enumerable: true, get: function () { return IdentityManager_1.IdentityManager; } });
|
|
12
|
+
var AgentManager_1 = require("./AgentManager");
|
|
13
|
+
Object.defineProperty(exports, "AgentManager", { enumerable: true, get: function () { return AgentManager_1.AgentManager; } });
|
|
14
|
+
var TierChecker_1 = require("./TierChecker");
|
|
15
|
+
Object.defineProperty(exports, "TierChecker", { enumerable: true, get: function () { return TierChecker_1.TierChecker; } });
|
|
16
|
+
var HSPSettlementGate_1 = require("./HSPSettlementGate");
|
|
17
|
+
Object.defineProperty(exports, "HSPSettlementGate", { enumerable: true, get: function () { return HSPSettlementGate_1.HSPSettlementGate; } });
|
|
18
|
+
var types_1 = require("./types");
|
|
19
|
+
Object.defineProperty(exports, "Tier", { enumerable: true, get: function () { return types_1.Tier; } });
|
|
20
|
+
Object.defineProperty(exports, "JurisdictionBucket", { enumerable: true, get: function () { return types_1.JurisdictionBucket; } });
|
|
21
|
+
var constants_1 = require("./constants");
|
|
22
|
+
Object.defineProperty(exports, "HASHKEY_TESTNET", { enumerable: true, get: function () { return constants_1.HASHKEY_TESTNET; } });
|
|
23
|
+
Object.defineProperty(exports, "HASHKEY_MAINNET", { enumerable: true, get: function () { return constants_1.HASHKEY_MAINNET; } });
|
|
24
|
+
Object.defineProperty(exports, "TIER_NAMES", { enumerable: true, get: function () { return constants_1.TIER_NAMES; } });
|
|
25
|
+
Object.defineProperty(exports, "TIER_DESCRIPTIONS", { enumerable: true, get: function () { return constants_1.TIER_DESCRIPTIONS; } });
|
|
26
|
+
Object.defineProperty(exports, "TESTNET_CONTRACTS", { enumerable: true, get: function () { return constants_1.TESTNET_CONTRACTS; } });
|
|
27
|
+
Object.defineProperty(exports, "SECONDS_PER_YEAR", { enumerable: true, get: function () { return constants_1.SECONDS_PER_YEAR; } });
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,sCAAsC;;;AAEtC,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAwB1B,iCAAmD;AAA1C,6FAAA,IAAI,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AAEjC,yCAOqB;AANnB,4GAAA,eAAe,OAAA;AACf,4GAAA,eAAe,OAAA;AACf,uGAAA,UAAU,OAAA;AACV,8GAAA,iBAAiB,OAAA;AACjB,8GAAA,iBAAiB,OAAA;AACjB,6GAAA,gBAAgB,OAAA"}
|