@superorange/zka-js-sdk 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.
@@ -0,0 +1,630 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.proxyabi = void 0;
4
+ exports.proxyabi = [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "contract IEAS",
9
+ "name": "eas",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "internalType": "string",
14
+ "name": "name",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "internalType": "uint256",
19
+ "name": "feeParams",
20
+ "type": "uint256"
21
+ },
22
+ {
23
+ "internalType": "address payable",
24
+ "name": "recvAddr",
25
+ "type": "address"
26
+ }
27
+ ],
28
+ "stateMutability": "nonpayable",
29
+ "type": "constructor"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "AccessDenied",
34
+ "type": "error"
35
+ },
36
+ {
37
+ "inputs": [],
38
+ "name": "DeadlineExpired",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "inputs": [],
43
+ "name": "InvalidEAS",
44
+ "type": "error"
45
+ },
46
+ {
47
+ "inputs": [],
48
+ "name": "InvalidLength",
49
+ "type": "error"
50
+ },
51
+ {
52
+ "inputs": [],
53
+ "name": "InvalidSignature",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [],
58
+ "name": "NotFound",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "UsedSignature",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": true,
71
+ "internalType": "address",
72
+ "name": "previousOwner",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "newOwner",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "name": "OwnershipTransferred",
83
+ "type": "event"
84
+ },
85
+ {
86
+ "inputs": [],
87
+ "name": "VERSION",
88
+ "outputs": [
89
+ {
90
+ "internalType": "string",
91
+ "name": "",
92
+ "type": "string"
93
+ }
94
+ ],
95
+ "stateMutability": "view",
96
+ "type": "function"
97
+ },
98
+ {
99
+ "inputs": [
100
+ {
101
+ "components": [
102
+ {
103
+ "internalType": "bytes32",
104
+ "name": "schema",
105
+ "type": "bytes32"
106
+ },
107
+ {
108
+ "components": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "recipient",
112
+ "type": "address"
113
+ },
114
+ {
115
+ "internalType": "uint64",
116
+ "name": "expirationTime",
117
+ "type": "uint64"
118
+ },
119
+ {
120
+ "internalType": "bool",
121
+ "name": "revocable",
122
+ "type": "bool"
123
+ },
124
+ {
125
+ "internalType": "bytes32",
126
+ "name": "refUID",
127
+ "type": "bytes32"
128
+ },
129
+ {
130
+ "internalType": "bytes",
131
+ "name": "data",
132
+ "type": "bytes"
133
+ },
134
+ {
135
+ "internalType": "uint256",
136
+ "name": "value",
137
+ "type": "uint256"
138
+ }
139
+ ],
140
+ "internalType": "struct AttestationRequestData",
141
+ "name": "data",
142
+ "type": "tuple"
143
+ },
144
+ {
145
+ "components": [
146
+ {
147
+ "internalType": "uint8",
148
+ "name": "v",
149
+ "type": "uint8"
150
+ },
151
+ {
152
+ "internalType": "bytes32",
153
+ "name": "r",
154
+ "type": "bytes32"
155
+ },
156
+ {
157
+ "internalType": "bytes32",
158
+ "name": "s",
159
+ "type": "bytes32"
160
+ }
161
+ ],
162
+ "internalType": "struct EIP712Signature",
163
+ "name": "signature",
164
+ "type": "tuple"
165
+ },
166
+ {
167
+ "internalType": "address",
168
+ "name": "attester",
169
+ "type": "address"
170
+ },
171
+ {
172
+ "internalType": "uint64",
173
+ "name": "deadline",
174
+ "type": "uint64"
175
+ }
176
+ ],
177
+ "internalType": "struct DelegatedProxyAttestationRequest",
178
+ "name": "delegatedRequest",
179
+ "type": "tuple"
180
+ }
181
+ ],
182
+ "name": "attestByDelegation",
183
+ "outputs": [
184
+ {
185
+ "internalType": "bytes32",
186
+ "name": "",
187
+ "type": "bytes32"
188
+ }
189
+ ],
190
+ "stateMutability": "payable",
191
+ "type": "function"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "fee",
196
+ "outputs": [
197
+ {
198
+ "internalType": "uint256",
199
+ "name": "",
200
+ "type": "uint256"
201
+ }
202
+ ],
203
+ "stateMutability": "view",
204
+ "type": "function"
205
+ },
206
+ {
207
+ "inputs": [],
208
+ "name": "getAttestTypeHash",
209
+ "outputs": [
210
+ {
211
+ "internalType": "bytes32",
212
+ "name": "",
213
+ "type": "bytes32"
214
+ }
215
+ ],
216
+ "stateMutability": "pure",
217
+ "type": "function"
218
+ },
219
+ {
220
+ "inputs": [
221
+ {
222
+ "internalType": "bytes32",
223
+ "name": "uid",
224
+ "type": "bytes32"
225
+ }
226
+ ],
227
+ "name": "getAttester",
228
+ "outputs": [
229
+ {
230
+ "internalType": "address",
231
+ "name": "",
232
+ "type": "address"
233
+ }
234
+ ],
235
+ "stateMutability": "view",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "getDomainSeparator",
241
+ "outputs": [
242
+ {
243
+ "internalType": "bytes32",
244
+ "name": "",
245
+ "type": "bytes32"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [],
253
+ "name": "getEAS",
254
+ "outputs": [
255
+ {
256
+ "internalType": "contract IEAS",
257
+ "name": "",
258
+ "type": "address"
259
+ }
260
+ ],
261
+ "stateMutability": "view",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [],
266
+ "name": "getName",
267
+ "outputs": [
268
+ {
269
+ "internalType": "string",
270
+ "name": "",
271
+ "type": "string"
272
+ }
273
+ ],
274
+ "stateMutability": "view",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [],
279
+ "name": "getRevokeTypeHash",
280
+ "outputs": [
281
+ {
282
+ "internalType": "bytes32",
283
+ "name": "",
284
+ "type": "bytes32"
285
+ }
286
+ ],
287
+ "stateMutability": "pure",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [
292
+ {
293
+ "components": [
294
+ {
295
+ "internalType": "bytes32",
296
+ "name": "schema",
297
+ "type": "bytes32"
298
+ },
299
+ {
300
+ "components": [
301
+ {
302
+ "internalType": "address",
303
+ "name": "recipient",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "internalType": "uint64",
308
+ "name": "expirationTime",
309
+ "type": "uint64"
310
+ },
311
+ {
312
+ "internalType": "bool",
313
+ "name": "revocable",
314
+ "type": "bool"
315
+ },
316
+ {
317
+ "internalType": "bytes32",
318
+ "name": "refUID",
319
+ "type": "bytes32"
320
+ },
321
+ {
322
+ "internalType": "bytes",
323
+ "name": "data",
324
+ "type": "bytes"
325
+ },
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "value",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "internalType": "struct AttestationRequestData[]",
333
+ "name": "data",
334
+ "type": "tuple[]"
335
+ },
336
+ {
337
+ "components": [
338
+ {
339
+ "internalType": "uint8",
340
+ "name": "v",
341
+ "type": "uint8"
342
+ },
343
+ {
344
+ "internalType": "bytes32",
345
+ "name": "r",
346
+ "type": "bytes32"
347
+ },
348
+ {
349
+ "internalType": "bytes32",
350
+ "name": "s",
351
+ "type": "bytes32"
352
+ }
353
+ ],
354
+ "internalType": "struct EIP712Signature[]",
355
+ "name": "signatures",
356
+ "type": "tuple[]"
357
+ },
358
+ {
359
+ "internalType": "address",
360
+ "name": "attester",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "internalType": "uint64",
365
+ "name": "deadline",
366
+ "type": "uint64"
367
+ }
368
+ ],
369
+ "internalType": "struct MultiDelegatedProxyAttestationRequest[]",
370
+ "name": "multiDelegatedRequests",
371
+ "type": "tuple[]"
372
+ }
373
+ ],
374
+ "name": "multiAttestByDelegation",
375
+ "outputs": [
376
+ {
377
+ "internalType": "bytes32[]",
378
+ "name": "",
379
+ "type": "bytes32[]"
380
+ }
381
+ ],
382
+ "stateMutability": "payable",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [
387
+ {
388
+ "components": [
389
+ {
390
+ "internalType": "bytes32",
391
+ "name": "schema",
392
+ "type": "bytes32"
393
+ },
394
+ {
395
+ "components": [
396
+ {
397
+ "internalType": "bytes32",
398
+ "name": "uid",
399
+ "type": "bytes32"
400
+ },
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "value",
404
+ "type": "uint256"
405
+ }
406
+ ],
407
+ "internalType": "struct RevocationRequestData[]",
408
+ "name": "data",
409
+ "type": "tuple[]"
410
+ },
411
+ {
412
+ "components": [
413
+ {
414
+ "internalType": "uint8",
415
+ "name": "v",
416
+ "type": "uint8"
417
+ },
418
+ {
419
+ "internalType": "bytes32",
420
+ "name": "r",
421
+ "type": "bytes32"
422
+ },
423
+ {
424
+ "internalType": "bytes32",
425
+ "name": "s",
426
+ "type": "bytes32"
427
+ }
428
+ ],
429
+ "internalType": "struct EIP712Signature[]",
430
+ "name": "signatures",
431
+ "type": "tuple[]"
432
+ },
433
+ {
434
+ "internalType": "address",
435
+ "name": "revoker",
436
+ "type": "address"
437
+ },
438
+ {
439
+ "internalType": "uint64",
440
+ "name": "deadline",
441
+ "type": "uint64"
442
+ }
443
+ ],
444
+ "internalType": "struct MultiDelegatedProxyRevocationRequest[]",
445
+ "name": "multiDelegatedRequests",
446
+ "type": "tuple[]"
447
+ }
448
+ ],
449
+ "name": "multiRevokeByDelegation",
450
+ "outputs": [],
451
+ "stateMutability": "payable",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [],
456
+ "name": "owner",
457
+ "outputs": [
458
+ {
459
+ "internalType": "address",
460
+ "name": "",
461
+ "type": "address"
462
+ }
463
+ ],
464
+ "stateMutability": "view",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [],
469
+ "name": "receiveAddr",
470
+ "outputs": [
471
+ {
472
+ "internalType": "address",
473
+ "name": "",
474
+ "type": "address"
475
+ }
476
+ ],
477
+ "stateMutability": "view",
478
+ "type": "function"
479
+ },
480
+ {
481
+ "inputs": [],
482
+ "name": "renounceOwnership",
483
+ "outputs": [],
484
+ "stateMutability": "nonpayable",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "components": [
491
+ {
492
+ "internalType": "bytes32",
493
+ "name": "schema",
494
+ "type": "bytes32"
495
+ },
496
+ {
497
+ "components": [
498
+ {
499
+ "internalType": "bytes32",
500
+ "name": "uid",
501
+ "type": "bytes32"
502
+ },
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "value",
506
+ "type": "uint256"
507
+ }
508
+ ],
509
+ "internalType": "struct RevocationRequestData",
510
+ "name": "data",
511
+ "type": "tuple"
512
+ },
513
+ {
514
+ "components": [
515
+ {
516
+ "internalType": "uint8",
517
+ "name": "v",
518
+ "type": "uint8"
519
+ },
520
+ {
521
+ "internalType": "bytes32",
522
+ "name": "r",
523
+ "type": "bytes32"
524
+ },
525
+ {
526
+ "internalType": "bytes32",
527
+ "name": "s",
528
+ "type": "bytes32"
529
+ }
530
+ ],
531
+ "internalType": "struct EIP712Signature",
532
+ "name": "signature",
533
+ "type": "tuple"
534
+ },
535
+ {
536
+ "internalType": "address",
537
+ "name": "revoker",
538
+ "type": "address"
539
+ },
540
+ {
541
+ "internalType": "uint64",
542
+ "name": "deadline",
543
+ "type": "uint64"
544
+ }
545
+ ],
546
+ "internalType": "struct DelegatedProxyRevocationRequest",
547
+ "name": "delegatedRequest",
548
+ "type": "tuple"
549
+ }
550
+ ],
551
+ "name": "revokeByDelegation",
552
+ "outputs": [],
553
+ "stateMutability": "payable",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [
558
+ {
559
+ "internalType": "uint256",
560
+ "name": "feeParams",
561
+ "type": "uint256"
562
+ }
563
+ ],
564
+ "name": "setFee",
565
+ "outputs": [
566
+ {
567
+ "internalType": "bool",
568
+ "name": "",
569
+ "type": "bool"
570
+ }
571
+ ],
572
+ "stateMutability": "nonpayable",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [
577
+ {
578
+ "internalType": "address payable",
579
+ "name": "recvAddr",
580
+ "type": "address"
581
+ }
582
+ ],
583
+ "name": "setReceiveAddr",
584
+ "outputs": [
585
+ {
586
+ "internalType": "bool",
587
+ "name": "",
588
+ "type": "bool"
589
+ }
590
+ ],
591
+ "stateMutability": "nonpayable",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [
596
+ {
597
+ "internalType": "address payable",
598
+ "name": "to",
599
+ "type": "address"
600
+ },
601
+ {
602
+ "internalType": "uint256",
603
+ "name": "ammount",
604
+ "type": "uint256"
605
+ }
606
+ ],
607
+ "name": "transferBalance",
608
+ "outputs": [],
609
+ "stateMutability": "nonpayable",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [
614
+ {
615
+ "internalType": "address",
616
+ "name": "newOwner",
617
+ "type": "address"
618
+ }
619
+ ],
620
+ "name": "transferOwnership",
621
+ "outputs": [],
622
+ "stateMutability": "nonpayable",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "stateMutability": "payable",
627
+ "type": "receive"
628
+ }
629
+ ];
630
+ //# sourceMappingURL=proxyabi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxyabi.js","sourceRoot":"","sources":["../../src/config/proxyabi.js"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACpB;QACE,QAAQ,EAAE;YACR;gBACE,cAAc,EAAE,eAAe;gBAC/B,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,SAAS;aAClB;YACD;gBACE,cAAc,EAAE,QAAQ;gBACxB,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE,QAAQ;aACjB;YACD;gBACE,cAAc,EAAE,SAAS;gBACzB,MAAM,EAAE,WAAW;gBACnB,MAAM,EAAE,SAAS;aAClB;YACD;gBACE,cAAc,EAAE,iBAAiB;gBACjC,MAAM,EAAE,UAAU;g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b,iBAAiB,EAAE,YAAY;QAC/B,MAAM,EAAE,UAAU;KACnB;IACD;QACE,QAAQ,EAAE;YACR;gBACE,cAAc,EAAE,SAAS;gBACzB,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,SAAS;aAClB;SACF;QACD,MAAM,EAAE,mBAAmB;QAC3B,SAAS,EAAE,EAAE;QACb,iBAAiB,EAAE,YAAY;QAC/B,MAAM,EAAE,UAAU;KACnB;IACD;QACE,iBAAiB,EAAE,SAAS;QAC5B,MAAM,EAAE,SAAS;KAClB;CACF,CAAC"}
@@ -0,0 +1,28 @@
1
+ type AttestationParams = {
2
+ chainName: string;
3
+ walletAddress: string;
4
+ attestationTypeId: string;
5
+ tokenSymbol?: string;
6
+ assetsBalance?: string;
7
+ followersCount?: string;
8
+ };
9
+ type chainOption = {
10
+ text: string;
11
+ value: string;
12
+ };
13
+ export default class ZkAttestationJSSDK {
14
+ isInstalled?: boolean;
15
+ isInitialized: boolean;
16
+ supportedChainNameList: chainOption[];
17
+ supportedAttestationTypeList: chainOption[];
18
+ constructor();
19
+ initAttestation(): Promise<unknown>;
20
+ startAttestation(attestationParams: AttestationParams): Promise<unknown>;
21
+ verifyAttestation(eip712Msg: any): boolean;
22
+ sendToChain(eip712Msg: any): Promise<boolean | undefined>;
23
+ _getFee(chainName: string): Promise<any>;
24
+ _attestByDelegationProxyFee(eip712Msg: any, chainObj: any): Promise<any>;
25
+ _switchChain(chainObj: any): Promise<true | undefined>;
26
+ _verifyAttestationParams(attestationParams: AttestationParams): boolean;
27
+ }
28
+ export {};