@show-karma/karma-gap-sdk 0.3.44 → 0.3.46

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 (37) hide show
  1. package/core/abi/AirdropNFT.json +622 -0
  2. package/core/abi/Donations.json +260 -0
  3. package/core/abi/EAS.json +1 -0
  4. package/core/abi/SchemaRegistry.json +1 -0
  5. package/core/abi/index.d.ts +1114 -0
  6. package/core/abi/index.js +26 -0
  7. package/core/class/GAP.js +16 -11
  8. package/core/class/Schema.js +2 -3
  9. package/core/class/entities/ContributorProfile.d.ts +39 -0
  10. package/core/class/entities/ContributorProfile.js +69 -0
  11. package/core/class/entities/Grant.d.ts +1 -1
  12. package/core/class/entities/Grant.js +9 -9
  13. package/core/class/entities/GrantUpdate.d.ts +2 -2
  14. package/core/class/entities/GrantUpdate.js +2 -5
  15. package/core/class/entities/Milestone.d.ts +2 -0
  16. package/core/class/entities/Milestone.js +8 -5
  17. package/core/class/entities/Project.d.ts +7 -2
  18. package/core/class/entities/Project.js +65 -2
  19. package/core/class/entities/ProjectImpact.d.ts +1 -1
  20. package/core/class/entities/ProjectMilestone.d.ts +60 -0
  21. package/core/class/entities/ProjectMilestone.js +174 -0
  22. package/core/class/entities/ProjectUpdate.d.ts +2 -0
  23. package/core/class/entities/UserSummary.d.ts +37 -0
  24. package/core/class/entities/UserSummary.js +69 -0
  25. package/core/class/karma-indexer/GapIndexerClient.d.ts +9 -7
  26. package/core/class/karma-indexer/GapIndexerClient.js +15 -10
  27. package/core/class/karma-indexer/api/GapIndexerApi.d.ts +3 -1
  28. package/core/class/karma-indexer/api/GapIndexerApi.js +9 -0
  29. package/core/class/karma-indexer/api/types.d.ts +22 -0
  30. package/core/class/types/attestations.d.ts +14 -0
  31. package/core/class/types/attestations.js +4 -1
  32. package/core/consts.js +30 -0
  33. package/core/index.d.ts +1 -0
  34. package/core/index.js +1 -0
  35. package/core/types.d.ts +3 -2
  36. package/package.json +1 -1
  37. package/core/abi/AlloCaller.json +0 -117
@@ -0,0 +1,622 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "string",
6
+ "name": "_name",
7
+ "type": "string"
8
+ },
9
+ {
10
+ "internalType": "string",
11
+ "name": "_symbol",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "_platformFee",
17
+ "type": "uint256"
18
+ },
19
+ {
20
+ "internalType": "string",
21
+ "name": "_contractURI",
22
+ "type": "string"
23
+ }
24
+ ],
25
+ "stateMutability": "nonpayable",
26
+ "type": "constructor"
27
+ },
28
+ {
29
+ "anonymous": false,
30
+ "inputs": [
31
+ {
32
+ "indexed": true,
33
+ "internalType": "address",
34
+ "name": "owner",
35
+ "type": "address"
36
+ },
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "approved",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "indexed": true,
45
+ "internalType": "uint256",
46
+ "name": "tokenId",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "Approval",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "owner",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": true,
64
+ "internalType": "address",
65
+ "name": "operator",
66
+ "type": "address"
67
+ },
68
+ {
69
+ "indexed": false,
70
+ "internalType": "bool",
71
+ "name": "approved",
72
+ "type": "bool"
73
+ }
74
+ ],
75
+ "name": "ApprovalForAll",
76
+ "type": "event"
77
+ },
78
+ {
79
+ "anonymous": false,
80
+ "inputs": [
81
+ {
82
+ "indexed": false,
83
+ "internalType": "string",
84
+ "name": "contractURI",
85
+ "type": "string"
86
+ }
87
+ ],
88
+ "name": "ContractURIUpdated",
89
+ "type": "event"
90
+ },
91
+ {
92
+ "anonymous": false,
93
+ "inputs": [
94
+ {
95
+ "indexed": false,
96
+ "internalType": "string",
97
+ "name": "projectId",
98
+ "type": "string"
99
+ },
100
+ {
101
+ "indexed": false,
102
+ "internalType": "uint256",
103
+ "name": "tokenIdStart",
104
+ "type": "uint256"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "tokenIdEnd",
110
+ "type": "uint256"
111
+ }
112
+ ],
113
+ "name": "NFTsMinted",
114
+ "type": "event"
115
+ },
116
+ {
117
+ "anonymous": false,
118
+ "inputs": [
119
+ {
120
+ "indexed": true,
121
+ "internalType": "address",
122
+ "name": "previousOwner",
123
+ "type": "address"
124
+ },
125
+ {
126
+ "indexed": true,
127
+ "internalType": "address",
128
+ "name": "newOwner",
129
+ "type": "address"
130
+ }
131
+ ],
132
+ "name": "OwnershipTransferred",
133
+ "type": "event"
134
+ },
135
+ {
136
+ "anonymous": false,
137
+ "inputs": [
138
+ {
139
+ "indexed": false,
140
+ "internalType": "uint256",
141
+ "name": "platformFee",
142
+ "type": "uint256"
143
+ }
144
+ ],
145
+ "name": "PlatformFeeUpdated",
146
+ "type": "event"
147
+ },
148
+ {
149
+ "anonymous": false,
150
+ "inputs": [
151
+ {
152
+ "indexed": false,
153
+ "internalType": "string",
154
+ "name": "projectId",
155
+ "type": "string"
156
+ }
157
+ ],
158
+ "name": "ProjectDeleted",
159
+ "type": "event"
160
+ },
161
+ {
162
+ "anonymous": false,
163
+ "inputs": [
164
+ {
165
+ "indexed": true,
166
+ "internalType": "address",
167
+ "name": "from",
168
+ "type": "address"
169
+ },
170
+ {
171
+ "indexed": true,
172
+ "internalType": "address",
173
+ "name": "to",
174
+ "type": "address"
175
+ },
176
+ {
177
+ "indexed": true,
178
+ "internalType": "uint256",
179
+ "name": "tokenId",
180
+ "type": "uint256"
181
+ }
182
+ ],
183
+ "name": "Transfer",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "inputs": [],
188
+ "name": "PLATFORM_FEE",
189
+ "outputs": [
190
+ {
191
+ "internalType": "uint256",
192
+ "name": "",
193
+ "type": "uint256"
194
+ }
195
+ ],
196
+ "stateMutability": "view",
197
+ "type": "function"
198
+ },
199
+ {
200
+ "inputs": [
201
+ {
202
+ "internalType": "address",
203
+ "name": "to",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "internalType": "uint256",
208
+ "name": "tokenId",
209
+ "type": "uint256"
210
+ }
211
+ ],
212
+ "name": "approve",
213
+ "outputs": [],
214
+ "stateMutability": "nonpayable",
215
+ "type": "function"
216
+ },
217
+ {
218
+ "inputs": [
219
+ {
220
+ "internalType": "address",
221
+ "name": "owner",
222
+ "type": "address"
223
+ }
224
+ ],
225
+ "name": "balanceOf",
226
+ "outputs": [
227
+ {
228
+ "internalType": "uint256",
229
+ "name": "",
230
+ "type": "uint256"
231
+ }
232
+ ],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [],
238
+ "name": "contractURI",
239
+ "outputs": [
240
+ {
241
+ "internalType": "string",
242
+ "name": "",
243
+ "type": "string"
244
+ }
245
+ ],
246
+ "stateMutability": "view",
247
+ "type": "function"
248
+ },
249
+ {
250
+ "inputs": [
251
+ {
252
+ "internalType": "string",
253
+ "name": "_projectId",
254
+ "type": "string"
255
+ }
256
+ ],
257
+ "name": "deleteProject",
258
+ "outputs": [],
259
+ "stateMutability": "nonpayable",
260
+ "type": "function"
261
+ },
262
+ {
263
+ "inputs": [
264
+ {
265
+ "internalType": "uint256",
266
+ "name": "tokenId",
267
+ "type": "uint256"
268
+ }
269
+ ],
270
+ "name": "getApproved",
271
+ "outputs": [
272
+ {
273
+ "internalType": "address",
274
+ "name": "",
275
+ "type": "address"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [
283
+ {
284
+ "internalType": "address",
285
+ "name": "owner",
286
+ "type": "address"
287
+ },
288
+ {
289
+ "internalType": "address",
290
+ "name": "operator",
291
+ "type": "address"
292
+ }
293
+ ],
294
+ "name": "isApprovedForAll",
295
+ "outputs": [
296
+ {
297
+ "internalType": "bool",
298
+ "name": "",
299
+ "type": "bool"
300
+ }
301
+ ],
302
+ "stateMutability": "view",
303
+ "type": "function"
304
+ },
305
+ {
306
+ "inputs": [
307
+ {
308
+ "internalType": "string",
309
+ "name": "_projectId",
310
+ "type": "string"
311
+ },
312
+ {
313
+ "internalType": "string",
314
+ "name": "_baseTokenURI",
315
+ "type": "string"
316
+ },
317
+ {
318
+ "internalType": "address[]",
319
+ "name": "contributors",
320
+ "type": "address[]"
321
+ }
322
+ ],
323
+ "name": "mintNFTsToContributors",
324
+ "outputs": [],
325
+ "stateMutability": "payable",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [],
330
+ "name": "name",
331
+ "outputs": [
332
+ {
333
+ "internalType": "string",
334
+ "name": "",
335
+ "type": "string"
336
+ }
337
+ ],
338
+ "stateMutability": "view",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [],
343
+ "name": "owner",
344
+ "outputs": [
345
+ {
346
+ "internalType": "address",
347
+ "name": "",
348
+ "type": "address"
349
+ }
350
+ ],
351
+ "stateMutability": "view",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [
356
+ {
357
+ "internalType": "uint256",
358
+ "name": "tokenId",
359
+ "type": "uint256"
360
+ }
361
+ ],
362
+ "name": "ownerOf",
363
+ "outputs": [
364
+ {
365
+ "internalType": "address",
366
+ "name": "",
367
+ "type": "address"
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ {
376
+ "internalType": "string",
377
+ "name": "",
378
+ "type": "string"
379
+ }
380
+ ],
381
+ "name": "projects",
382
+ "outputs": [
383
+ {
384
+ "internalType": "string",
385
+ "name": "id",
386
+ "type": "string"
387
+ },
388
+ {
389
+ "internalType": "string",
390
+ "name": "baseTokenURI",
391
+ "type": "string"
392
+ },
393
+ {
394
+ "internalType": "uint256",
395
+ "name": "tokenIdStart",
396
+ "type": "uint256"
397
+ },
398
+ {
399
+ "internalType": "uint256",
400
+ "name": "tokenIdEnd",
401
+ "type": "uint256"
402
+ }
403
+ ],
404
+ "stateMutability": "view",
405
+ "type": "function"
406
+ },
407
+ {
408
+ "inputs": [],
409
+ "name": "renounceOwnership",
410
+ "outputs": [],
411
+ "stateMutability": "nonpayable",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [
416
+ {
417
+ "internalType": "address",
418
+ "name": "from",
419
+ "type": "address"
420
+ },
421
+ {
422
+ "internalType": "address",
423
+ "name": "to",
424
+ "type": "address"
425
+ },
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "tokenId",
429
+ "type": "uint256"
430
+ }
431
+ ],
432
+ "name": "safeTransferFrom",
433
+ "outputs": [],
434
+ "stateMutability": "nonpayable",
435
+ "type": "function"
436
+ },
437
+ {
438
+ "inputs": [
439
+ {
440
+ "internalType": "address",
441
+ "name": "from",
442
+ "type": "address"
443
+ },
444
+ {
445
+ "internalType": "address",
446
+ "name": "to",
447
+ "type": "address"
448
+ },
449
+ {
450
+ "internalType": "uint256",
451
+ "name": "tokenId",
452
+ "type": "uint256"
453
+ },
454
+ {
455
+ "internalType": "bytes",
456
+ "name": "data",
457
+ "type": "bytes"
458
+ }
459
+ ],
460
+ "name": "safeTransferFrom",
461
+ "outputs": [],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "address",
469
+ "name": "operator",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "bool",
474
+ "name": "approved",
475
+ "type": "bool"
476
+ }
477
+ ],
478
+ "name": "setApprovalForAll",
479
+ "outputs": [],
480
+ "stateMutability": "nonpayable",
481
+ "type": "function"
482
+ },
483
+ {
484
+ "inputs": [
485
+ {
486
+ "internalType": "string",
487
+ "name": "_contractURI",
488
+ "type": "string"
489
+ }
490
+ ],
491
+ "name": "setContractURI",
492
+ "outputs": [],
493
+ "stateMutability": "nonpayable",
494
+ "type": "function"
495
+ },
496
+ {
497
+ "inputs": [
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "_platformFee",
501
+ "type": "uint256"
502
+ }
503
+ ],
504
+ "name": "setPlatformFee",
505
+ "outputs": [],
506
+ "stateMutability": "nonpayable",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "bytes4",
513
+ "name": "interfaceId",
514
+ "type": "bytes4"
515
+ }
516
+ ],
517
+ "name": "supportsInterface",
518
+ "outputs": [
519
+ {
520
+ "internalType": "bool",
521
+ "name": "",
522
+ "type": "bool"
523
+ }
524
+ ],
525
+ "stateMutability": "view",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [],
530
+ "name": "symbol",
531
+ "outputs": [
532
+ {
533
+ "internalType": "string",
534
+ "name": "",
535
+ "type": "string"
536
+ }
537
+ ],
538
+ "stateMutability": "view",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "name": "tokenToProjectId",
550
+ "outputs": [
551
+ {
552
+ "internalType": "string",
553
+ "name": "",
554
+ "type": "string"
555
+ }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
562
+ {
563
+ "internalType": "uint256",
564
+ "name": "tokenId",
565
+ "type": "uint256"
566
+ }
567
+ ],
568
+ "name": "tokenURI",
569
+ "outputs": [
570
+ {
571
+ "internalType": "string",
572
+ "name": "",
573
+ "type": "string"
574
+ }
575
+ ],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "internalType": "address",
583
+ "name": "from",
584
+ "type": "address"
585
+ },
586
+ {
587
+ "internalType": "address",
588
+ "name": "to",
589
+ "type": "address"
590
+ },
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "tokenId",
594
+ "type": "uint256"
595
+ }
596
+ ],
597
+ "name": "transferFrom",
598
+ "outputs": [],
599
+ "stateMutability": "nonpayable",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
604
+ {
605
+ "internalType": "address",
606
+ "name": "newOwner",
607
+ "type": "address"
608
+ }
609
+ ],
610
+ "name": "transferOwnership",
611
+ "outputs": [],
612
+ "stateMutability": "nonpayable",
613
+ "type": "function"
614
+ },
615
+ {
616
+ "inputs": [],
617
+ "name": "withdrawFees",
618
+ "outputs": [],
619
+ "stateMutability": "nonpayable",
620
+ "type": "function"
621
+ }
622
+ ]