@show-karma/karma-gap-sdk 0.1.29

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 (78) hide show
  1. package/core/abi/MultiAttester.json +676 -0
  2. package/core/class/Attestation.d.ts +169 -0
  3. package/core/class/Attestation.js +311 -0
  4. package/core/class/Fetcher.d.ts +132 -0
  5. package/core/class/Fetcher.js +7 -0
  6. package/core/class/GAP.d.ts +212 -0
  7. package/core/class/GAP.js +206 -0
  8. package/core/class/GapSchema.d.ts +33 -0
  9. package/core/class/GapSchema.js +61 -0
  10. package/core/class/Gelato/Gelato.d.ts +0 -0
  11. package/core/class/Gelato/Gelato.js +263 -0
  12. package/core/class/GraphQL/AxiosGQL.d.ts +6 -0
  13. package/core/class/GraphQL/AxiosGQL.js +25 -0
  14. package/core/class/GraphQL/EASClient.d.ts +16 -0
  15. package/core/class/GraphQL/EASClient.js +26 -0
  16. package/core/class/GraphQL/Fetcher.d.ts +132 -0
  17. package/core/class/GraphQL/Fetcher.js +7 -0
  18. package/core/class/GraphQL/GAPFetcher.d.ts +160 -0
  19. package/core/class/GraphQL/GAPFetcher.js +516 -0
  20. package/core/class/GraphQL/GapEasClient.d.ts +63 -0
  21. package/core/class/GraphQL/GapEasClient.js +420 -0
  22. package/core/class/GraphQL/index.d.ts +3 -0
  23. package/core/class/GraphQL/index.js +19 -0
  24. package/core/class/Schema.d.ts +213 -0
  25. package/core/class/Schema.js +434 -0
  26. package/core/class/SchemaError.d.ts +26 -0
  27. package/core/class/SchemaError.js +34 -0
  28. package/core/class/contract/GapContract.d.ts +55 -0
  29. package/core/class/contract/GapContract.js +176 -0
  30. package/core/class/contract/MultiAttest.d.ts +10 -0
  31. package/core/class/contract/MultiAttest.js +19 -0
  32. package/core/class/entities/Community.d.ts +36 -0
  33. package/core/class/entities/Community.js +88 -0
  34. package/core/class/entities/Grant.d.ts +53 -0
  35. package/core/class/entities/Grant.js +194 -0
  36. package/core/class/entities/MemberOf.d.ts +11 -0
  37. package/core/class/entities/MemberOf.js +31 -0
  38. package/core/class/entities/Milestone.d.ts +63 -0
  39. package/core/class/entities/Milestone.js +171 -0
  40. package/core/class/entities/Project.d.ts +73 -0
  41. package/core/class/entities/Project.js +243 -0
  42. package/core/class/entities/index.d.ts +5 -0
  43. package/core/class/entities/index.js +21 -0
  44. package/core/class/index.d.ts +7 -0
  45. package/core/class/index.js +23 -0
  46. package/core/class/karma-indexer/GapIndexerClient.d.ts +28 -0
  47. package/core/class/karma-indexer/GapIndexerClient.js +137 -0
  48. package/core/class/types/attestations.d.ts +108 -0
  49. package/core/class/types/attestations.js +55 -0
  50. package/core/consts.d.ts +19 -0
  51. package/core/consts.js +228 -0
  52. package/core/index.d.ts +7 -0
  53. package/core/index.js +23 -0
  54. package/core/types.d.ts +107 -0
  55. package/core/types.js +13 -0
  56. package/core/utils/gelato/index.d.ts +3 -0
  57. package/core/utils/gelato/index.js +19 -0
  58. package/core/utils/gelato/send-gelato-txn.d.ts +54 -0
  59. package/core/utils/gelato/send-gelato-txn.js +99 -0
  60. package/core/utils/gelato/sponsor-handler.d.ts +9 -0
  61. package/core/utils/gelato/sponsor-handler.js +60 -0
  62. package/core/utils/gelato/watch-gelato-txn.d.ts +7 -0
  63. package/core/utils/gelato/watch-gelato-txn.js +55 -0
  64. package/core/utils/get-date.d.ts +1 -0
  65. package/core/utils/get-date.js +7 -0
  66. package/core/utils/gql-queries.d.ts +12 -0
  67. package/core/utils/gql-queries.js +90 -0
  68. package/core/utils/index.d.ts +6 -0
  69. package/core/utils/index.js +22 -0
  70. package/core/utils/map-filter.d.ts +8 -0
  71. package/core/utils/map-filter.js +20 -0
  72. package/core/utils/serialize-bigint.d.ts +1 -0
  73. package/core/utils/serialize-bigint.js +8 -0
  74. package/core/utils/to-unix.d.ts +1 -0
  75. package/core/utils/to-unix.js +25 -0
  76. package/index.d.ts +1 -0
  77. package/index.js +17 -0
  78. package/package.json +37 -0
@@ -0,0 +1,676 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [],
5
+ "name": "EIP712DomainChanged",
6
+ "type": "event"
7
+ },
8
+ {
9
+ "anonymous": false,
10
+ "inputs": [
11
+ {
12
+ "indexed": false,
13
+ "internalType": "uint8",
14
+ "name": "version",
15
+ "type": "uint8"
16
+ }
17
+ ],
18
+ "name": "Initialized",
19
+ "type": "event"
20
+ },
21
+ {
22
+ "anonymous": false,
23
+ "inputs": [
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "previousOwner",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "newOwner",
34
+ "type": "address"
35
+ }
36
+ ],
37
+ "name": "OwnershipTransferred",
38
+ "type": "event"
39
+ },
40
+ {
41
+ "inputs": [
42
+ {
43
+ "components": [
44
+ {
45
+ "internalType": "bytes32",
46
+ "name": "schema",
47
+ "type": "bytes32"
48
+ },
49
+ {
50
+ "components": [
51
+ {
52
+ "internalType": "address",
53
+ "name": "recipient",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "internalType": "uint64",
58
+ "name": "expirationTime",
59
+ "type": "uint64"
60
+ },
61
+ {
62
+ "internalType": "bool",
63
+ "name": "revocable",
64
+ "type": "bool"
65
+ },
66
+ {
67
+ "internalType": "bytes32",
68
+ "name": "refUID",
69
+ "type": "bytes32"
70
+ },
71
+ {
72
+ "internalType": "bytes",
73
+ "name": "data",
74
+ "type": "bytes"
75
+ },
76
+ {
77
+ "internalType": "uint256",
78
+ "name": "value",
79
+ "type": "uint256"
80
+ }
81
+ ],
82
+ "internalType": "struct AttestationRequestData",
83
+ "name": "data",
84
+ "type": "tuple"
85
+ }
86
+ ],
87
+ "internalType": "struct AttestationRequest",
88
+ "name": "request",
89
+ "type": "tuple"
90
+ }
91
+ ],
92
+ "name": "attest",
93
+ "outputs": [
94
+ {
95
+ "internalType": "bytes32",
96
+ "name": "",
97
+ "type": "bytes32"
98
+ }
99
+ ],
100
+ "stateMutability": "payable",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "components": [
107
+ {
108
+ "internalType": "bytes32",
109
+ "name": "schema",
110
+ "type": "bytes32"
111
+ },
112
+ {
113
+ "components": [
114
+ {
115
+ "internalType": "address",
116
+ "name": "recipient",
117
+ "type": "address"
118
+ },
119
+ {
120
+ "internalType": "uint64",
121
+ "name": "expirationTime",
122
+ "type": "uint64"
123
+ },
124
+ {
125
+ "internalType": "bool",
126
+ "name": "revocable",
127
+ "type": "bool"
128
+ },
129
+ {
130
+ "internalType": "bytes32",
131
+ "name": "refUID",
132
+ "type": "bytes32"
133
+ },
134
+ {
135
+ "internalType": "bytes",
136
+ "name": "data",
137
+ "type": "bytes"
138
+ },
139
+ {
140
+ "internalType": "uint256",
141
+ "name": "value",
142
+ "type": "uint256"
143
+ }
144
+ ],
145
+ "internalType": "struct AttestationRequestData",
146
+ "name": "data",
147
+ "type": "tuple"
148
+ }
149
+ ],
150
+ "internalType": "struct AttestationRequest",
151
+ "name": "request",
152
+ "type": "tuple"
153
+ },
154
+ {
155
+ "internalType": "string",
156
+ "name": "payloadHash",
157
+ "type": "string"
158
+ },
159
+ {
160
+ "internalType": "address",
161
+ "name": "attester",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "internalType": "uint256",
166
+ "name": "nonce",
167
+ "type": "uint256"
168
+ },
169
+ {
170
+ "internalType": "uint256",
171
+ "name": "expiry",
172
+ "type": "uint256"
173
+ },
174
+ {
175
+ "internalType": "uint8",
176
+ "name": "v",
177
+ "type": "uint8"
178
+ },
179
+ {
180
+ "internalType": "bytes32",
181
+ "name": "r",
182
+ "type": "bytes32"
183
+ },
184
+ {
185
+ "internalType": "bytes32",
186
+ "name": "s",
187
+ "type": "bytes32"
188
+ }
189
+ ],
190
+ "name": "attestBySig",
191
+ "outputs": [
192
+ {
193
+ "internalType": "bytes32",
194
+ "name": "",
195
+ "type": "bytes32"
196
+ }
197
+ ],
198
+ "stateMutability": "nonpayable",
199
+ "type": "function"
200
+ },
201
+ {
202
+ "inputs": [
203
+ {
204
+ "internalType": "address",
205
+ "name": "easAddr",
206
+ "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
+ },
287
+ {
288
+ "internalType": "address",
289
+ "name": "attester",
290
+ "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
+ }
317
+ ],
318
+ "name": "multiSequentialAttestBySig",
319
+ "outputs": [],
320
+ "stateMutability": "nonpayable",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [
325
+ {
326
+ "components": [
327
+ {
328
+ "internalType": "bytes32",
329
+ "name": "schema",
330
+ "type": "bytes32"
331
+ },
332
+ {
333
+ "components": [
334
+ {
335
+ "internalType": "bytes32",
336
+ "name": "uid",
337
+ "type": "bytes32"
338
+ },
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "value",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "internalType": "struct RevocationRequestData[]",
346
+ "name": "data",
347
+ "type": "tuple[]"
348
+ }
349
+ ],
350
+ "internalType": "struct MultiRevocationRequest[]",
351
+ "name": "multiRequests",
352
+ "type": "tuple[]"
353
+ }
354
+ ],
355
+ "name": "multiRevoke",
356
+ "outputs": [],
357
+ "stateMutability": "payable",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [
362
+ {
363
+ "components": [
364
+ {
365
+ "internalType": "bytes32",
366
+ "name": "schema",
367
+ "type": "bytes32"
368
+ },
369
+ {
370
+ "components": [
371
+ {
372
+ "internalType": "bytes32",
373
+ "name": "uid",
374
+ "type": "bytes32"
375
+ },
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "value",
379
+ "type": "uint256"
380
+ }
381
+ ],
382
+ "internalType": "struct RevocationRequestData[]",
383
+ "name": "data",
384
+ "type": "tuple[]"
385
+ }
386
+ ],
387
+ "internalType": "struct MultiRevocationRequest[]",
388
+ "name": "multiRequests",
389
+ "type": "tuple[]"
390
+ },
391
+ {
392
+ "internalType": "string",
393
+ "name": "payloadHash",
394
+ "type": "string"
395
+ },
396
+ {
397
+ "internalType": "address",
398
+ "name": "attester",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "uint256",
403
+ "name": "nonce",
404
+ "type": "uint256"
405
+ },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "expiry",
409
+ "type": "uint256"
410
+ },
411
+ {
412
+ "internalType": "uint8",
413
+ "name": "v",
414
+ "type": "uint8"
415
+ },
416
+ {
417
+ "internalType": "bytes32",
418
+ "name": "r",
419
+ "type": "bytes32"
420
+ },
421
+ {
422
+ "internalType": "bytes32",
423
+ "name": "s",
424
+ "type": "bytes32"
425
+ }
426
+ ],
427
+ "name": "multiRevokeBySig",
428
+ "outputs": [],
429
+ "stateMutability": "nonpayable",
430
+ "type": "function"
431
+ },
432
+ {
433
+ "inputs": [
434
+ {
435
+ "components": [
436
+ {
437
+ "internalType": "bytes32",
438
+ "name": "uid",
439
+ "type": "bytes32"
440
+ },
441
+ {
442
+ "components": [
443
+ {
444
+ "internalType": "bytes32",
445
+ "name": "schema",
446
+ "type": "bytes32"
447
+ },
448
+ {
449
+ "components": [
450
+ {
451
+ "internalType": "address",
452
+ "name": "recipient",
453
+ "type": "address"
454
+ },
455
+ {
456
+ "internalType": "uint64",
457
+ "name": "expirationTime",
458
+ "type": "uint64"
459
+ },
460
+ {
461
+ "internalType": "bool",
462
+ "name": "revocable",
463
+ "type": "bool"
464
+ },
465
+ {
466
+ "internalType": "bytes32",
467
+ "name": "refUID",
468
+ "type": "bytes32"
469
+ },
470
+ {
471
+ "internalType": "bytes",
472
+ "name": "data",
473
+ "type": "bytes"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "value",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "internalType": "struct AttestationRequestData[]",
482
+ "name": "data",
483
+ "type": "tuple[]"
484
+ }
485
+ ],
486
+ "internalType": "struct MultiAttestationRequest",
487
+ "name": "multiRequest",
488
+ "type": "tuple"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "refIdx",
493
+ "type": "uint256"
494
+ }
495
+ ],
496
+ "internalType": "struct Gap.AttestationRequestNode[]",
497
+ "name": "requestNodes",
498
+ "type": "tuple[]"
499
+ }
500
+ ],
501
+ "name": "multiSequentialAttest",
502
+ "outputs": [],
503
+ "stateMutability": "payable",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [],
508
+ "name": "renounceOwnership",
509
+ "outputs": [],
510
+ "stateMutability": "nonpayable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "address",
517
+ "name": "newOwner",
518
+ "type": "address"
519
+ }
520
+ ],
521
+ "name": "transferOwnership",
522
+ "outputs": [],
523
+ "stateMutability": "nonpayable",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [],
528
+ "stateMutability": "nonpayable",
529
+ "type": "constructor"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "string",
535
+ "name": "payloadHash",
536
+ "type": "string"
537
+ },
538
+ {
539
+ "internalType": "uint256",
540
+ "name": "nonce",
541
+ "type": "uint256"
542
+ },
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "expiry",
546
+ "type": "uint256"
547
+ },
548
+ {
549
+ "internalType": "uint8",
550
+ "name": "v",
551
+ "type": "uint8"
552
+ },
553
+ {
554
+ "internalType": "bytes32",
555
+ "name": "r",
556
+ "type": "bytes32"
557
+ },
558
+ {
559
+ "internalType": "bytes32",
560
+ "name": "s",
561
+ "type": "bytes32"
562
+ }
563
+ ],
564
+ "name": "_recoverSignerAddress",
565
+ "outputs": [
566
+ {
567
+ "internalType": "address",
568
+ "name": "signer",
569
+ "type": "address"
570
+ }
571
+ ],
572
+ "stateMutability": "view",
573
+ "type": "function"
574
+ },
575
+ {
576
+ "inputs": [],
577
+ "name": "ATTEST_TYPEHASH",
578
+ "outputs": [
579
+ {
580
+ "internalType": "bytes32",
581
+ "name": "",
582
+ "type": "bytes32"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [],
590
+ "name": "eas",
591
+ "outputs": [
592
+ {
593
+ "internalType": "contract IEAS",
594
+ "name": "",
595
+ "type": "address"
596
+ }
597
+ ],
598
+ "stateMutability": "view",
599
+ "type": "function"
600
+ },
601
+ {
602
+ "inputs": [],
603
+ "name": "eip712Domain",
604
+ "outputs": [
605
+ {
606
+ "internalType": "bytes1",
607
+ "name": "fields",
608
+ "type": "bytes1"
609
+ },
610
+ {
611
+ "internalType": "string",
612
+ "name": "name",
613
+ "type": "string"
614
+ },
615
+ {
616
+ "internalType": "string",
617
+ "name": "version",
618
+ "type": "string"
619
+ },
620
+ {
621
+ "internalType": "uint256",
622
+ "name": "chainId",
623
+ "type": "uint256"
624
+ },
625
+ {
626
+ "internalType": "address",
627
+ "name": "verifyingContract",
628
+ "type": "address"
629
+ },
630
+ {
631
+ "internalType": "bytes32",
632
+ "name": "salt",
633
+ "type": "bytes32"
634
+ },
635
+ {
636
+ "internalType": "uint256[]",
637
+ "name": "extensions",
638
+ "type": "uint256[]"
639
+ }
640
+ ],
641
+ "stateMutability": "view",
642
+ "type": "function"
643
+ },
644
+ {
645
+ "inputs": [
646
+ {
647
+ "internalType": "address",
648
+ "name": "",
649
+ "type": "address"
650
+ }
651
+ ],
652
+ "name": "nonces",
653
+ "outputs": [
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [],
665
+ "name": "owner",
666
+ "outputs": [
667
+ {
668
+ "internalType": "address",
669
+ "name": "",
670
+ "type": "address"
671
+ }
672
+ ],
673
+ "stateMutability": "view",
674
+ "type": "function"
675
+ }
676
+ ]