@show-karma/karma-gap-sdk 0.3.43 → 0.3.45

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 (50) 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/Attestation.d.ts +3 -2
  8. package/core/class/Attestation.js +11 -8
  9. package/core/class/GAP.d.ts +1 -1
  10. package/core/class/GAP.js +9 -10
  11. package/core/class/GapSchema.js +1 -0
  12. package/core/class/GraphQL/GapEasClient.d.ts +7 -7
  13. package/core/class/GraphQL/GapEasClient.js +60 -60
  14. package/core/class/Schema.d.ts +12 -3
  15. package/core/class/Schema.js +32 -12
  16. package/core/class/SchemaError.d.ts +2 -1
  17. package/core/class/SchemaError.js +4 -3
  18. package/core/class/contract/GapContract.d.ts +11 -6
  19. package/core/class/contract/GapContract.js +35 -6
  20. package/core/class/entities/Community.d.ts +2 -2
  21. package/core/class/entities/Community.js +9 -3
  22. package/core/class/entities/Grant.d.ts +11 -11
  23. package/core/class/entities/Grant.js +33 -29
  24. package/core/class/entities/GrantUpdate.d.ts +8 -2
  25. package/core/class/entities/GrantUpdate.js +26 -6
  26. package/core/class/entities/MemberOf.d.ts +2 -2
  27. package/core/class/entities/MemberOf.js +4 -2
  28. package/core/class/entities/Milestone.d.ts +14 -7
  29. package/core/class/entities/Milestone.js +63 -21
  30. package/core/class/entities/Project.d.ts +10 -5
  31. package/core/class/entities/Project.js +77 -9
  32. package/core/class/entities/ProjectImpact.d.ts +7 -3
  33. package/core/class/entities/ProjectImpact.js +23 -6
  34. package/core/class/entities/ProjectMilestone.d.ts +60 -0
  35. package/core/class/entities/ProjectMilestone.js +174 -0
  36. package/core/class/entities/ProjectUpdate.d.ts +4 -2
  37. package/core/class/entities/ProjectUpdate.js +21 -5
  38. package/core/class/karma-indexer/GapIndexerClient.d.ts +9 -7
  39. package/core/class/karma-indexer/GapIndexerClient.js +15 -10
  40. package/core/class/karma-indexer/api/GapIndexerApi.d.ts +3 -1
  41. package/core/class/karma-indexer/api/GapIndexerApi.js +9 -0
  42. package/core/class/karma-indexer/api/types.d.ts +21 -0
  43. package/core/class/types/attestations.d.ts +20 -1
  44. package/core/class/types/attestations.js +4 -1
  45. package/core/consts.js +219 -45
  46. package/core/index.d.ts +1 -0
  47. package/core/index.js +1 -0
  48. package/core/types.d.ts +12 -2
  49. package/package.json +1 -1
  50. package/core/abi/AlloCaller.json +0 -117
@@ -0,0 +1,260 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_gap_contract_address",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "_platformFeeInBasis",
12
+ "type": "uint256"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "anonymous": false,
20
+ "inputs": [
21
+ {
22
+ "indexed": true,
23
+ "internalType": "address",
24
+ "name": "owner",
25
+ "type": "address"
26
+ },
27
+ {
28
+ "indexed": false,
29
+ "internalType": "uint256",
30
+ "name": "amount",
31
+ "type": "uint256"
32
+ }
33
+ ],
34
+ "name": "CommissionEarned",
35
+ "type": "event"
36
+ },
37
+ {
38
+ "anonymous": false,
39
+ "inputs": [
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "donor",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "donee",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "internalType": "uint256",
55
+ "name": "amount",
56
+ "type": "uint256"
57
+ }
58
+ ],
59
+ "name": "DonationMade",
60
+ "type": "event"
61
+ },
62
+ {
63
+ "anonymous": false,
64
+ "inputs": [
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "previousOwner",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "newOwner",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "OwnershipTransferred",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": false,
86
+ "internalType": "uint256",
87
+ "name": "platformFeeInBasis",
88
+ "type": "uint256"
89
+ }
90
+ ],
91
+ "name": "PlatformFeeSet",
92
+ "type": "event"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "_owner",
97
+ "outputs": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "stateMutability": "view",
105
+ "type": "function"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "components": [
111
+ {
112
+ "internalType": "bytes32",
113
+ "name": "schema",
114
+ "type": "bytes32"
115
+ },
116
+ {
117
+ "components": [
118
+ {
119
+ "internalType": "address",
120
+ "name": "recipient",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "internalType": "uint64",
125
+ "name": "expirationTime",
126
+ "type": "uint64"
127
+ },
128
+ {
129
+ "internalType": "bool",
130
+ "name": "revocable",
131
+ "type": "bool"
132
+ },
133
+ {
134
+ "internalType": "bytes32",
135
+ "name": "refUID",
136
+ "type": "bytes32"
137
+ },
138
+ {
139
+ "internalType": "bytes",
140
+ "name": "data",
141
+ "type": "bytes"
142
+ },
143
+ {
144
+ "internalType": "uint256",
145
+ "name": "value",
146
+ "type": "uint256"
147
+ }
148
+ ],
149
+ "internalType": "struct AttestationRequestData",
150
+ "name": "data",
151
+ "type": "tuple"
152
+ }
153
+ ],
154
+ "internalType": "struct AttestationRequest",
155
+ "name": "endorsementRequest",
156
+ "type": "tuple"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "amount",
161
+ "type": "uint256"
162
+ }
163
+ ],
164
+ "name": "donate",
165
+ "outputs": [
166
+ {
167
+ "internalType": "bytes32",
168
+ "name": "",
169
+ "type": "bytes32"
170
+ }
171
+ ],
172
+ "stateMutability": "payable",
173
+ "type": "function"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "gap_contract",
178
+ "outputs": [
179
+ {
180
+ "internalType": "contract IGAP",
181
+ "name": "",
182
+ "type": "address"
183
+ }
184
+ ],
185
+ "stateMutability": "view",
186
+ "type": "function"
187
+ },
188
+ {
189
+ "inputs": [],
190
+ "name": "owner",
191
+ "outputs": [
192
+ {
193
+ "internalType": "address",
194
+ "name": "",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "stateMutability": "view",
199
+ "type": "function"
200
+ },
201
+ {
202
+ "inputs": [],
203
+ "name": "platformFeeInBasis",
204
+ "outputs": [
205
+ {
206
+ "internalType": "uint256",
207
+ "name": "",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "stateMutability": "view",
212
+ "type": "function"
213
+ },
214
+ {
215
+ "inputs": [],
216
+ "name": "renounceOwnership",
217
+ "outputs": [],
218
+ "stateMutability": "nonpayable",
219
+ "type": "function"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "address",
225
+ "name": "_gap_contract_address",
226
+ "type": "address"
227
+ }
228
+ ],
229
+ "name": "setGapContract",
230
+ "outputs": [],
231
+ "stateMutability": "nonpayable",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "uint256",
238
+ "name": "_platformFeeInBasis",
239
+ "type": "uint256"
240
+ }
241
+ ],
242
+ "name": "setPlatformFeeInBasis",
243
+ "outputs": [],
244
+ "stateMutability": "nonpayable",
245
+ "type": "function"
246
+ },
247
+ {
248
+ "inputs": [
249
+ {
250
+ "internalType": "address",
251
+ "name": "newOwner",
252
+ "type": "address"
253
+ }
254
+ ],
255
+ "name": "transferOwnership",
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable",
258
+ "type": "function"
259
+ }
260
+ ]