@show-karma/karma-gap-sdk 0.3.47 → 0.4.1
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/AlloCaller.json +117 -0
- package/core/abi/MultiAttester.json +206 -115
- package/core/abi/ProjectResolver.json +184 -0
- package/core/abi/index.d.ts +8 -8
- package/core/class/Fetcher.d.ts +7 -7
- package/core/class/contract/GapContract.d.ts +30 -3
- package/core/class/contract/GapContract.js +47 -7
- package/core/class/entities/ContributorProfile.d.ts +2 -2
- package/core/class/entities/Project.d.ts +8 -5
- package/core/class/entities/Project.js +26 -9
- package/core/class/entities/index.d.ts +1 -0
- package/core/class/entities/index.js +1 -0
- package/core/class/karma-indexer/GapIndexerClient.d.ts +1 -1
- package/core/class/karma-indexer/GapIndexerClient.js +4 -3
- package/core/class/karma-indexer/api/GapIndexerApi.d.ts +3 -1
- package/core/class/karma-indexer/api/GapIndexerApi.js +3 -3
- package/core/class/karma-indexer/api/types.d.ts +3 -0
- package/core/consts.js +14 -0
- package/core/types.d.ts +2 -2
- package/package.json +1 -1
- package/core/class/entities/UserSummary.d.ts +0 -37
- package/core/class/entities/UserSummary.js +0 -69
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "bytes32",
|
|
6
|
+
"name": "_profileId",
|
|
7
|
+
"type": "bytes32"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "address",
|
|
11
|
+
"name": "_strategy",
|
|
12
|
+
"type": "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "bytes",
|
|
16
|
+
"name": "_initStrategyData",
|
|
17
|
+
"type": "bytes"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"internalType": "address",
|
|
21
|
+
"name": "_token",
|
|
22
|
+
"type": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "uint256",
|
|
26
|
+
"name": "_amount",
|
|
27
|
+
"type": "uint256"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"components": [
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint256",
|
|
33
|
+
"name": "protocol",
|
|
34
|
+
"type": "uint256"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"internalType": "string",
|
|
38
|
+
"name": "pointer",
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"internalType": "struct IAllo.Metadata",
|
|
43
|
+
"name": "_metadata",
|
|
44
|
+
"type": "tuple"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"internalType": "address[]",
|
|
48
|
+
"name": "_managers",
|
|
49
|
+
"type": "address[]"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"name": "createPool",
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"internalType": "uint256",
|
|
56
|
+
"name": "poolId",
|
|
57
|
+
"type": "uint256"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"stateMutability": "payable",
|
|
61
|
+
"type": "function"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [
|
|
65
|
+
{
|
|
66
|
+
"internalType": "uint256",
|
|
67
|
+
"name": "_poolId",
|
|
68
|
+
"type": "uint256"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"components": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "protocol",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "string",
|
|
79
|
+
"name": "pointer",
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"internalType": "struct IAllo.Metadata",
|
|
84
|
+
"name": "_metadata",
|
|
85
|
+
"type": "tuple"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "updatePoolMetadata",
|
|
89
|
+
"outputs": [],
|
|
90
|
+
"stateMutability": "nonpayable",
|
|
91
|
+
"type": "function"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "address",
|
|
97
|
+
"name": "_alloAddress",
|
|
98
|
+
"type": "address"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"stateMutability": "nonpayable",
|
|
102
|
+
"type": "constructor"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"inputs": [],
|
|
106
|
+
"name": "allo",
|
|
107
|
+
"outputs": [
|
|
108
|
+
{
|
|
109
|
+
"internalType": "contract IAllo",
|
|
110
|
+
"name": "",
|
|
111
|
+
"type": "address"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"stateMutability": "view",
|
|
115
|
+
"type": "function"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"type": "constructor"
|
|
6
|
+
},
|
|
2
7
|
{
|
|
3
8
|
"anonymous": false,
|
|
4
9
|
"inputs": [],
|
|
@@ -56,6 +61,76 @@
|
|
|
56
61
|
"name": "OwnershipTransferred",
|
|
57
62
|
"type": "event"
|
|
58
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"inputs": [],
|
|
66
|
+
"name": "ATTEST_TYPEHASH",
|
|
67
|
+
"outputs": [
|
|
68
|
+
{
|
|
69
|
+
"internalType": "bytes32",
|
|
70
|
+
"name": "",
|
|
71
|
+
"type": "bytes32"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"stateMutability": "view",
|
|
75
|
+
"type": "function"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "_grantSchemaUid",
|
|
80
|
+
"outputs": [
|
|
81
|
+
{
|
|
82
|
+
"internalType": "bytes32",
|
|
83
|
+
"name": "",
|
|
84
|
+
"type": "bytes32"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"stateMutability": "view",
|
|
88
|
+
"type": "function"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [],
|
|
92
|
+
"name": "_projectResolver",
|
|
93
|
+
"outputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "contract IProjectResolver",
|
|
96
|
+
"name": "",
|
|
97
|
+
"type": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"stateMutability": "view",
|
|
101
|
+
"type": "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [],
|
|
105
|
+
"name": "_projectSchemaUid",
|
|
106
|
+
"outputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "bytes32",
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "bytes32"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"stateMutability": "view",
|
|
114
|
+
"type": "function"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "bytes32",
|
|
120
|
+
"name": "projectUid",
|
|
121
|
+
"type": "bytes32"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "addr",
|
|
126
|
+
"type": "address"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "addProjectAdmin",
|
|
130
|
+
"outputs": [],
|
|
131
|
+
"stateMutability": "nonpayable",
|
|
132
|
+
"type": "function"
|
|
133
|
+
},
|
|
59
134
|
{
|
|
60
135
|
"inputs": [
|
|
61
136
|
{
|
|
@@ -218,15 +293,66 @@
|
|
|
218
293
|
"type": "function"
|
|
219
294
|
},
|
|
220
295
|
{
|
|
221
|
-
"inputs": [
|
|
296
|
+
"inputs": [],
|
|
297
|
+
"name": "eas",
|
|
298
|
+
"outputs": [
|
|
299
|
+
{
|
|
300
|
+
"internalType": "contract IEAS",
|
|
301
|
+
"name": "",
|
|
302
|
+
"type": "address"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"stateMutability": "view",
|
|
306
|
+
"type": "function"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"inputs": [],
|
|
310
|
+
"name": "eip712Domain",
|
|
311
|
+
"outputs": [
|
|
312
|
+
{
|
|
313
|
+
"internalType": "bytes1",
|
|
314
|
+
"name": "fields",
|
|
315
|
+
"type": "bytes1"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"internalType": "string",
|
|
319
|
+
"name": "name",
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"internalType": "string",
|
|
324
|
+
"name": "version",
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"internalType": "uint256",
|
|
329
|
+
"name": "chainId",
|
|
330
|
+
"type": "uint256"
|
|
331
|
+
},
|
|
222
332
|
{
|
|
223
333
|
"internalType": "address",
|
|
224
|
-
"name": "
|
|
334
|
+
"name": "verifyingContract",
|
|
225
335
|
"type": "address"
|
|
226
336
|
},
|
|
337
|
+
{
|
|
338
|
+
"internalType": "bytes32",
|
|
339
|
+
"name": "salt",
|
|
340
|
+
"type": "bytes32"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"internalType": "uint256[]",
|
|
344
|
+
"name": "extensions",
|
|
345
|
+
"type": "uint256[]"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"stateMutability": "view",
|
|
349
|
+
"type": "function"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"inputs": [
|
|
227
353
|
{
|
|
228
354
|
"internalType": "address",
|
|
229
|
-
"name": "
|
|
355
|
+
"name": "easAddr",
|
|
230
356
|
"type": "address"
|
|
231
357
|
}
|
|
232
358
|
],
|
|
@@ -527,204 +653,169 @@
|
|
|
527
653
|
"stateMutability": "nonpayable",
|
|
528
654
|
"type": "function"
|
|
529
655
|
},
|
|
530
|
-
{
|
|
531
|
-
"inputs": [],
|
|
532
|
-
"name": "renounceOwnership",
|
|
533
|
-
"outputs": [],
|
|
534
|
-
"stateMutability": "nonpayable",
|
|
535
|
-
"type": "function"
|
|
536
|
-
},
|
|
537
656
|
{
|
|
538
657
|
"inputs": [
|
|
539
658
|
{
|
|
540
|
-
"internalType": "
|
|
541
|
-
"name": "
|
|
659
|
+
"internalType": "address",
|
|
660
|
+
"name": "",
|
|
542
661
|
"type": "address"
|
|
543
662
|
}
|
|
544
663
|
],
|
|
545
|
-
"name": "
|
|
546
|
-
"outputs": [
|
|
547
|
-
|
|
664
|
+
"name": "nonces",
|
|
665
|
+
"outputs": [
|
|
666
|
+
{
|
|
667
|
+
"internalType": "uint256",
|
|
668
|
+
"name": "",
|
|
669
|
+
"type": "uint256"
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
"stateMutability": "view",
|
|
548
673
|
"type": "function"
|
|
549
674
|
},
|
|
550
675
|
{
|
|
551
|
-
"inputs": [
|
|
676
|
+
"inputs": [],
|
|
677
|
+
"name": "owner",
|
|
678
|
+
"outputs": [
|
|
552
679
|
{
|
|
553
680
|
"internalType": "address",
|
|
554
|
-
"name": "
|
|
681
|
+
"name": "",
|
|
555
682
|
"type": "address"
|
|
556
683
|
}
|
|
557
684
|
],
|
|
558
|
-
"
|
|
559
|
-
"outputs": [],
|
|
560
|
-
"stateMutability": "nonpayable",
|
|
685
|
+
"stateMutability": "view",
|
|
561
686
|
"type": "function"
|
|
562
687
|
},
|
|
563
688
|
{
|
|
564
689
|
"inputs": [
|
|
565
690
|
{
|
|
566
691
|
"internalType": "bytes32",
|
|
567
|
-
"name": "
|
|
692
|
+
"name": "refSchemaUid",
|
|
568
693
|
"type": "bytes32"
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"internalType": "address",
|
|
572
|
-
"name": "newOwner",
|
|
573
|
-
"type": "address"
|
|
574
694
|
}
|
|
575
695
|
],
|
|
576
|
-
"name": "
|
|
577
|
-
"outputs": [],
|
|
578
|
-
"stateMutability": "nonpayable",
|
|
579
|
-
"type": "function"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
"inputs": [],
|
|
583
|
-
"stateMutability": "nonpayable",
|
|
584
|
-
"type": "constructor"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
"inputs": [],
|
|
588
|
-
"name": "ATTEST_TYPEHASH",
|
|
696
|
+
"name": "refIsGrant",
|
|
589
697
|
"outputs": [
|
|
590
698
|
{
|
|
591
|
-
"internalType": "
|
|
699
|
+
"internalType": "bool",
|
|
592
700
|
"name": "",
|
|
593
|
-
"type": "
|
|
701
|
+
"type": "bool"
|
|
594
702
|
}
|
|
595
703
|
],
|
|
596
704
|
"stateMutability": "view",
|
|
597
705
|
"type": "function"
|
|
598
706
|
},
|
|
599
707
|
{
|
|
600
|
-
"inputs": [
|
|
601
|
-
|
|
708
|
+
"inputs": [
|
|
709
|
+
{
|
|
710
|
+
"internalType": "bytes32",
|
|
711
|
+
"name": "refSchemaUid",
|
|
712
|
+
"type": "bytes32"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"name": "refIsProject",
|
|
602
716
|
"outputs": [
|
|
603
717
|
{
|
|
604
|
-
"internalType": "
|
|
718
|
+
"internalType": "bool",
|
|
605
719
|
"name": "",
|
|
606
|
-
"type": "
|
|
720
|
+
"type": "bool"
|
|
607
721
|
}
|
|
608
722
|
],
|
|
609
723
|
"stateMutability": "view",
|
|
610
724
|
"type": "function"
|
|
611
725
|
},
|
|
612
726
|
{
|
|
613
|
-
"inputs": [
|
|
614
|
-
"name": "eip712Domain",
|
|
615
|
-
"outputs": [
|
|
616
|
-
{
|
|
617
|
-
"internalType": "bytes1",
|
|
618
|
-
"name": "fields",
|
|
619
|
-
"type": "bytes1"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"internalType": "string",
|
|
623
|
-
"name": "name",
|
|
624
|
-
"type": "string"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"internalType": "string",
|
|
628
|
-
"name": "version",
|
|
629
|
-
"type": "string"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"internalType": "uint256",
|
|
633
|
-
"name": "chainId",
|
|
634
|
-
"type": "uint256"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"internalType": "address",
|
|
638
|
-
"name": "verifyingContract",
|
|
639
|
-
"type": "address"
|
|
640
|
-
},
|
|
727
|
+
"inputs": [
|
|
641
728
|
{
|
|
642
729
|
"internalType": "bytes32",
|
|
643
|
-
"name": "
|
|
730
|
+
"name": "projectUid",
|
|
644
731
|
"type": "bytes32"
|
|
645
732
|
},
|
|
646
733
|
{
|
|
647
|
-
"internalType": "
|
|
648
|
-
"name": "
|
|
649
|
-
"type": "
|
|
734
|
+
"internalType": "address",
|
|
735
|
+
"name": "addr",
|
|
736
|
+
"type": "address"
|
|
650
737
|
}
|
|
651
738
|
],
|
|
652
|
-
"
|
|
739
|
+
"name": "removeProjectAdmin",
|
|
740
|
+
"outputs": [],
|
|
741
|
+
"stateMutability": "nonpayable",
|
|
742
|
+
"type": "function"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"inputs": [],
|
|
746
|
+
"name": "renounceOwnership",
|
|
747
|
+
"outputs": [],
|
|
748
|
+
"stateMutability": "nonpayable",
|
|
653
749
|
"type": "function"
|
|
654
750
|
},
|
|
655
751
|
{
|
|
656
752
|
"inputs": [
|
|
657
|
-
{
|
|
658
|
-
"internalType": "address",
|
|
659
|
-
"name": "addr",
|
|
660
|
-
"type": "address"
|
|
661
|
-
},
|
|
662
753
|
{
|
|
663
754
|
"internalType": "bytes32",
|
|
664
|
-
"name": "
|
|
755
|
+
"name": "grantSchemaUid",
|
|
665
756
|
"type": "bytes32"
|
|
666
757
|
}
|
|
667
758
|
],
|
|
668
|
-
"name": "
|
|
669
|
-
"outputs": [
|
|
670
|
-
|
|
671
|
-
"internalType": "bool",
|
|
672
|
-
"name": "",
|
|
673
|
-
"type": "bool"
|
|
674
|
-
}
|
|
675
|
-
],
|
|
676
|
-
"stateMutability": "view",
|
|
759
|
+
"name": "setGrantSchema",
|
|
760
|
+
"outputs": [],
|
|
761
|
+
"stateMutability": "nonpayable",
|
|
677
762
|
"type": "function"
|
|
678
763
|
},
|
|
679
764
|
{
|
|
680
765
|
"inputs": [
|
|
681
766
|
{
|
|
682
|
-
"internalType": "
|
|
683
|
-
"name": "",
|
|
767
|
+
"internalType": "contract IProjectResolver",
|
|
768
|
+
"name": "projectResolver",
|
|
684
769
|
"type": "address"
|
|
685
770
|
}
|
|
686
771
|
],
|
|
687
|
-
"name": "
|
|
688
|
-
"outputs": [
|
|
772
|
+
"name": "setProjectResolver",
|
|
773
|
+
"outputs": [],
|
|
774
|
+
"stateMutability": "nonpayable",
|
|
775
|
+
"type": "function"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"inputs": [
|
|
689
779
|
{
|
|
690
|
-
"internalType": "
|
|
691
|
-
"name": "",
|
|
692
|
-
"type": "
|
|
780
|
+
"internalType": "bytes32",
|
|
781
|
+
"name": "projectSchemaUid",
|
|
782
|
+
"type": "bytes32"
|
|
693
783
|
}
|
|
694
784
|
],
|
|
695
|
-
"
|
|
785
|
+
"name": "setProjectSchema",
|
|
786
|
+
"outputs": [],
|
|
787
|
+
"stateMutability": "nonpayable",
|
|
696
788
|
"type": "function"
|
|
697
789
|
},
|
|
698
790
|
{
|
|
699
|
-
"inputs": [
|
|
700
|
-
"name": "owner",
|
|
701
|
-
"outputs": [
|
|
791
|
+
"inputs": [
|
|
702
792
|
{
|
|
703
793
|
"internalType": "address",
|
|
704
|
-
"name": "",
|
|
794
|
+
"name": "newOwner",
|
|
705
795
|
"type": "address"
|
|
706
796
|
}
|
|
707
797
|
],
|
|
708
|
-
"
|
|
798
|
+
"name": "transferOwnership",
|
|
799
|
+
"outputs": [],
|
|
800
|
+
"stateMutability": "nonpayable",
|
|
709
801
|
"type": "function"
|
|
710
802
|
},
|
|
711
803
|
{
|
|
712
804
|
"inputs": [
|
|
713
805
|
{
|
|
714
806
|
"internalType": "bytes32",
|
|
715
|
-
"name": "
|
|
807
|
+
"name": "projectUid",
|
|
716
808
|
"type": "bytes32"
|
|
717
|
-
}
|
|
718
|
-
],
|
|
719
|
-
"name": "refIsProject",
|
|
720
|
-
"outputs": [
|
|
809
|
+
},
|
|
721
810
|
{
|
|
722
|
-
"internalType": "
|
|
723
|
-
"name": "",
|
|
724
|
-
"type": "
|
|
811
|
+
"internalType": "address",
|
|
812
|
+
"name": "newOwner",
|
|
813
|
+
"type": "address"
|
|
725
814
|
}
|
|
726
815
|
],
|
|
727
|
-
"
|
|
816
|
+
"name": "transferProjectOwnership",
|
|
817
|
+
"outputs": [],
|
|
818
|
+
"stateMutability": "nonpayable",
|
|
728
819
|
"type": "function"
|
|
729
820
|
}
|
|
730
821
|
]
|