@show-karma/karma-gap-sdk 0.2.3 → 0.2.4
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/core/abi/MultiAttester.json +188 -134
- package/core/abi/ProjectResolver.json +471 -0
- package/core/class/GAP.d.ts +5 -0
- package/core/class/GAP.js +10 -1
- package/core/class/contract/GapContract.d.ts +16 -1
- package/core/class/contract/GapContract.js +24 -0
- package/core/class/entities/Project.d.ts +7 -5
- package/core/class/entities/Project.js +21 -15
- package/core/consts.d.ts +1 -1
- package/core/consts.js +97 -86
- package/core/types.d.ts +2 -1
- package/core/types.js +2 -0
- package/package.json +1 -1
|
@@ -5,6 +5,25 @@
|
|
|
5
5
|
"name": "EIP712DomainChanged",
|
|
6
6
|
"type": "event"
|
|
7
7
|
},
|
|
8
|
+
{
|
|
9
|
+
"anonymous": false,
|
|
10
|
+
"inputs": [
|
|
11
|
+
{
|
|
12
|
+
"indexed": true,
|
|
13
|
+
"internalType": "address",
|
|
14
|
+
"name": "attester",
|
|
15
|
+
"type": "address"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"indexed": false,
|
|
19
|
+
"internalType": "bytes32",
|
|
20
|
+
"name": "uid",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "GapAttested",
|
|
25
|
+
"type": "event"
|
|
26
|
+
},
|
|
8
27
|
{
|
|
9
28
|
"anonymous": false,
|
|
10
29
|
"inputs": [
|
|
@@ -204,118 +223,14 @@
|
|
|
204
223
|
"internalType": "address",
|
|
205
224
|
"name": "easAddr",
|
|
206
225
|
"type": "address"
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
"name": "initialize",
|
|
210
|
-
"outputs": [],
|
|
211
|
-
"stateMutability": "nonpayable",
|
|
212
|
-
"type": "function"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"inputs": [
|
|
216
|
-
{
|
|
217
|
-
"components": [
|
|
218
|
-
{
|
|
219
|
-
"internalType": "bytes32",
|
|
220
|
-
"name": "uid",
|
|
221
|
-
"type": "bytes32"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"components": [
|
|
225
|
-
{
|
|
226
|
-
"internalType": "bytes32",
|
|
227
|
-
"name": "schema",
|
|
228
|
-
"type": "bytes32"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"components": [
|
|
232
|
-
{
|
|
233
|
-
"internalType": "address",
|
|
234
|
-
"name": "recipient",
|
|
235
|
-
"type": "address"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"internalType": "uint64",
|
|
239
|
-
"name": "expirationTime",
|
|
240
|
-
"type": "uint64"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"internalType": "bool",
|
|
244
|
-
"name": "revocable",
|
|
245
|
-
"type": "bool"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"internalType": "bytes32",
|
|
249
|
-
"name": "refUID",
|
|
250
|
-
"type": "bytes32"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"internalType": "bytes",
|
|
254
|
-
"name": "data",
|
|
255
|
-
"type": "bytes"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"internalType": "uint256",
|
|
259
|
-
"name": "value",
|
|
260
|
-
"type": "uint256"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
"internalType": "struct AttestationRequestData[]",
|
|
264
|
-
"name": "data",
|
|
265
|
-
"type": "tuple[]"
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
"internalType": "struct MultiAttestationRequest",
|
|
269
|
-
"name": "multiRequest",
|
|
270
|
-
"type": "tuple"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"internalType": "uint256",
|
|
274
|
-
"name": "refIdx",
|
|
275
|
-
"type": "uint256"
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
"internalType": "struct Gap.AttestationRequestNode[]",
|
|
279
|
-
"name": "requestNodes",
|
|
280
|
-
"type": "tuple[]"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"internalType": "string",
|
|
284
|
-
"name": "payloadHash",
|
|
285
|
-
"type": "string"
|
|
286
226
|
},
|
|
287
227
|
{
|
|
288
228
|
"internalType": "address",
|
|
289
|
-
"name": "
|
|
229
|
+
"name": "projectResolverAddr",
|
|
290
230
|
"type": "address"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"internalType": "uint256",
|
|
294
|
-
"name": "nonce",
|
|
295
|
-
"type": "uint256"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"internalType": "uint256",
|
|
299
|
-
"name": "expiry",
|
|
300
|
-
"type": "uint256"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "uint8",
|
|
304
|
-
"name": "v",
|
|
305
|
-
"type": "uint8"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"internalType": "bytes32",
|
|
309
|
-
"name": "r",
|
|
310
|
-
"type": "bytes32"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"internalType": "bytes32",
|
|
314
|
-
"name": "s",
|
|
315
|
-
"type": "bytes32"
|
|
316
231
|
}
|
|
317
232
|
],
|
|
318
|
-
"name": "
|
|
233
|
+
"name": "initialize",
|
|
319
234
|
"outputs": [],
|
|
320
235
|
"stateMutability": "nonpayable",
|
|
321
236
|
"type": "function"
|
|
@@ -503,38 +418,84 @@
|
|
|
503
418
|
"stateMutability": "payable",
|
|
504
419
|
"type": "function"
|
|
505
420
|
},
|
|
506
|
-
{
|
|
507
|
-
"inputs": [],
|
|
508
|
-
"name": "renounceOwnership",
|
|
509
|
-
"outputs": [],
|
|
510
|
-
"stateMutability": "nonpayable",
|
|
511
|
-
"type": "function"
|
|
512
|
-
},
|
|
513
421
|
{
|
|
514
422
|
"inputs": [
|
|
515
423
|
{
|
|
516
|
-
"
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
424
|
+
"components": [
|
|
425
|
+
{
|
|
426
|
+
"internalType": "bytes32",
|
|
427
|
+
"name": "uid",
|
|
428
|
+
"type": "bytes32"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"components": [
|
|
432
|
+
{
|
|
433
|
+
"internalType": "bytes32",
|
|
434
|
+
"name": "schema",
|
|
435
|
+
"type": "bytes32"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"components": [
|
|
439
|
+
{
|
|
440
|
+
"internalType": "address",
|
|
441
|
+
"name": "recipient",
|
|
442
|
+
"type": "address"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"internalType": "uint64",
|
|
446
|
+
"name": "expirationTime",
|
|
447
|
+
"type": "uint64"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"internalType": "bool",
|
|
451
|
+
"name": "revocable",
|
|
452
|
+
"type": "bool"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"internalType": "bytes32",
|
|
456
|
+
"name": "refUID",
|
|
457
|
+
"type": "bytes32"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"internalType": "bytes",
|
|
461
|
+
"name": "data",
|
|
462
|
+
"type": "bytes"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"internalType": "uint256",
|
|
466
|
+
"name": "value",
|
|
467
|
+
"type": "uint256"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"internalType": "struct AttestationRequestData[]",
|
|
471
|
+
"name": "data",
|
|
472
|
+
"type": "tuple[]"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"internalType": "struct MultiAttestationRequest",
|
|
476
|
+
"name": "multiRequest",
|
|
477
|
+
"type": "tuple"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"internalType": "uint256",
|
|
481
|
+
"name": "refIdx",
|
|
482
|
+
"type": "uint256"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"internalType": "struct Gap.AttestationRequestNode[]",
|
|
486
|
+
"name": "requestNodes",
|
|
487
|
+
"type": "tuple[]"
|
|
488
|
+
},
|
|
533
489
|
{
|
|
534
490
|
"internalType": "string",
|
|
535
491
|
"name": "payloadHash",
|
|
536
492
|
"type": "string"
|
|
537
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"internalType": "address",
|
|
496
|
+
"name": "attester",
|
|
497
|
+
"type": "address"
|
|
498
|
+
},
|
|
538
499
|
{
|
|
539
500
|
"internalType": "uint256",
|
|
540
501
|
"name": "nonce",
|
|
@@ -561,17 +522,67 @@
|
|
|
561
522
|
"type": "bytes32"
|
|
562
523
|
}
|
|
563
524
|
],
|
|
564
|
-
"name": "
|
|
565
|
-
"outputs": [
|
|
525
|
+
"name": "multiSequentialAttestBySig",
|
|
526
|
+
"outputs": [],
|
|
527
|
+
"stateMutability": "nonpayable",
|
|
528
|
+
"type": "function"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"inputs": [],
|
|
532
|
+
"name": "renounceOwnership",
|
|
533
|
+
"outputs": [],
|
|
534
|
+
"stateMutability": "nonpayable",
|
|
535
|
+
"type": "function"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"inputs": [
|
|
539
|
+
{
|
|
540
|
+
"internalType": "contract IProjectResolver",
|
|
541
|
+
"name": "projectResolver",
|
|
542
|
+
"type": "address"
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
"name": "setProjectResolver",
|
|
546
|
+
"outputs": [],
|
|
547
|
+
"stateMutability": "nonpayable",
|
|
548
|
+
"type": "function"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"inputs": [
|
|
566
552
|
{
|
|
567
553
|
"internalType": "address",
|
|
568
|
-
"name": "
|
|
554
|
+
"name": "newOwner",
|
|
569
555
|
"type": "address"
|
|
570
556
|
}
|
|
571
557
|
],
|
|
572
|
-
"
|
|
558
|
+
"name": "transferOwnership",
|
|
559
|
+
"outputs": [],
|
|
560
|
+
"stateMutability": "nonpayable",
|
|
561
|
+
"type": "function"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"inputs": [
|
|
565
|
+
{
|
|
566
|
+
"internalType": "bytes32",
|
|
567
|
+
"name": "projectUid",
|
|
568
|
+
"type": "bytes32"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"internalType": "address",
|
|
572
|
+
"name": "newOwner",
|
|
573
|
+
"type": "address"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"name": "transferProjectOwnership",
|
|
577
|
+
"outputs": [],
|
|
578
|
+
"stateMutability": "nonpayable",
|
|
573
579
|
"type": "function"
|
|
574
580
|
},
|
|
581
|
+
{
|
|
582
|
+
"inputs": [],
|
|
583
|
+
"stateMutability": "nonpayable",
|
|
584
|
+
"type": "constructor"
|
|
585
|
+
},
|
|
575
586
|
{
|
|
576
587
|
"inputs": [],
|
|
577
588
|
"name": "ATTEST_TYPEHASH",
|
|
@@ -641,6 +652,30 @@
|
|
|
641
652
|
"stateMutability": "view",
|
|
642
653
|
"type": "function"
|
|
643
654
|
},
|
|
655
|
+
{
|
|
656
|
+
"inputs": [
|
|
657
|
+
{
|
|
658
|
+
"internalType": "address",
|
|
659
|
+
"name": "addr",
|
|
660
|
+
"type": "address"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"internalType": "bytes32",
|
|
664
|
+
"name": "projectUid",
|
|
665
|
+
"type": "bytes32"
|
|
666
|
+
}
|
|
667
|
+
],
|
|
668
|
+
"name": "isProjectAdmin",
|
|
669
|
+
"outputs": [
|
|
670
|
+
{
|
|
671
|
+
"internalType": "bool",
|
|
672
|
+
"name": "",
|
|
673
|
+
"type": "bool"
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
"stateMutability": "view",
|
|
677
|
+
"type": "function"
|
|
678
|
+
},
|
|
644
679
|
{
|
|
645
680
|
"inputs": [
|
|
646
681
|
{
|
|
@@ -672,5 +707,24 @@
|
|
|
672
707
|
],
|
|
673
708
|
"stateMutability": "view",
|
|
674
709
|
"type": "function"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"inputs": [
|
|
713
|
+
{
|
|
714
|
+
"internalType": "bytes32",
|
|
715
|
+
"name": "refSchemaUid",
|
|
716
|
+
"type": "bytes32"
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"name": "refIsProject",
|
|
720
|
+
"outputs": [
|
|
721
|
+
{
|
|
722
|
+
"internalType": "bool",
|
|
723
|
+
"name": "",
|
|
724
|
+
"type": "bool"
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
"stateMutability": "view",
|
|
728
|
+
"type": "function"
|
|
675
729
|
}
|
|
676
730
|
]
|