@gooddollar/goodcollective-contracts 1.3.1 → 1.4.0

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 (71) hide show
  1. package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.dbg.json +4 -0
  2. package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.json +995 -0
  3. package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.dbg.json +4 -0
  4. package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.json +113 -0
  5. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.dbg.json +4 -0
  6. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.json +2210 -0
  7. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.dbg.json +4 -0
  8. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.json +30 -0
  9. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.dbg.json +4 -0
  10. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.json +45 -0
  11. package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.dbg.json +4 -0
  12. package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.json +1187 -0
  13. package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.dbg.json +4 -0
  14. package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.json +831 -0
  15. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.dbg.json +4 -0
  16. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.json +42 -0
  17. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.dbg.json +4 -0
  18. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.json +61 -0
  19. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.dbg.json +4 -0
  20. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.json +47 -0
  21. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.dbg.json +4 -0
  22. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.json +320 -0
  23. package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +4 -0
  24. package/artifacts/contracts/Interfaces.sol/IIdentityV2.json +30 -0
  25. package/artifacts/contracts/Interfaces.sol/IMembersValidator.dbg.json +4 -0
  26. package/artifacts/contracts/Interfaces.sol/IMembersValidator.json +45 -0
  27. package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.dbg.json +4 -0
  28. package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.json +2078 -0
  29. package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.dbg.json +4 -0
  30. package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.json +1011 -0
  31. package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.dbg.json +4 -0
  32. package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.json +90 -0
  33. package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.dbg.json +4 -0
  34. package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.json +117 -0
  35. package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.dbg.json +4 -0
  36. package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.json +119 -0
  37. package/contracts/DirectPayments/DirectPaymentsFactory.sol +13 -1
  38. package/contracts/DirectPayments/DirectPaymentsPool.sol +22 -0
  39. package/contracts/UBI/UBIPool.sol +62 -18
  40. package/contracts/UBI/UBIPoolFactory.sol +13 -1
  41. package/contracts/utils/Recover.sol +16 -0
  42. package/package.json +2 -2
  43. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +54 -0
  44. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary.ts +77 -0
  45. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.ts +77 -0
  46. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
  47. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +37 -0
  48. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IClaimable.ts +92 -0
  49. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +196 -0
  50. package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +242 -0
  51. package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
  52. package/typechain-types/contracts/UBI/UBIPool.ts +37 -0
  53. package/typechain-types/contracts/UBI/UBIPoolFactory.ts +54 -0
  54. package/typechain-types/contracts/utils/Recover.ts +263 -0
  55. package/typechain-types/contracts/utils/index.ts +1 -0
  56. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +33 -1
  57. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary__factory.ts +96 -0
  58. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary__factory.ts +96 -0
  59. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
  60. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +1 -1
  61. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +24 -1
  62. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +33 -0
  63. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +84 -0
  64. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +150 -0
  65. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
  66. package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +33 -1
  67. package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +24 -1
  68. package/typechain-types/factories/contracts/utils/Recover__factory.ts +172 -0
  69. package/typechain-types/factories/contracts/utils/index.ts +1 -0
  70. package/typechain-types/hardhat.d.ts +9 -0
  71. package/typechain-types/index.ts +2 -0
@@ -0,0 +1,831 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "GoodCollectiveSuperApp",
4
+ "sourceName": "contracts/GoodCollective/GoodCollectiveSuperApp.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "int96",
10
+ "name": "curFeeRate",
11
+ "type": "int96"
12
+ },
13
+ {
14
+ "internalType": "int96",
15
+ "name": "newFeeRate",
16
+ "type": "int96"
17
+ }
18
+ ],
19
+ "name": "FEE_FLOW_FAILED",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "int96",
26
+ "name": "flowRate",
27
+ "type": "int96"
28
+ }
29
+ ],
30
+ "name": "MIN_FLOWRATE",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "NotAcceptedSuperToken",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "NotImplemented",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "ONLY_HOST_OR_SENDER",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "UNSUPPORTED_TOKEN",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "UnauthorizedHost",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "ZERO_ADDRESS",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "ZERO_AMOUNT",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "anonymous": false,
76
+ "inputs": [
77
+ {
78
+ "indexed": true,
79
+ "internalType": "address",
80
+ "name": "supporter",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "indexed": false,
85
+ "internalType": "uint256",
86
+ "name": "previousContribution",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "internalType": "uint256",
92
+ "name": "contribution",
93
+ "type": "uint256"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "int96",
98
+ "name": "previousFlowRate",
99
+ "type": "int96"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "int96",
104
+ "name": "flowRate",
105
+ "type": "int96"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "bool",
110
+ "name": "isFlowUpdate",
111
+ "type": "bool"
112
+ }
113
+ ],
114
+ "name": "SupporterUpdated",
115
+ "type": "event"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "CFAV1_TYPE",
120
+ "outputs": [
121
+ {
122
+ "internalType": "bytes32",
123
+ "name": "",
124
+ "type": "bytes32"
125
+ }
126
+ ],
127
+ "stateMutability": "view",
128
+ "type": "function"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "MIN_FLOW_RATE",
133
+ "outputs": [
134
+ {
135
+ "internalType": "int96",
136
+ "name": "",
137
+ "type": "int96"
138
+ }
139
+ ],
140
+ "stateMutability": "view",
141
+ "type": "function"
142
+ },
143
+ {
144
+ "inputs": [
145
+ {
146
+ "internalType": "contract ISuperToken",
147
+ "name": "superToken",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "internalType": "address",
152
+ "name": "",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "internalType": "bytes32",
157
+ "name": "",
158
+ "type": "bytes32"
159
+ },
160
+ {
161
+ "internalType": "bytes",
162
+ "name": "agreementData",
163
+ "type": "bytes"
164
+ },
165
+ {
166
+ "internalType": "bytes",
167
+ "name": "",
168
+ "type": "bytes"
169
+ },
170
+ {
171
+ "internalType": "bytes",
172
+ "name": "ctx",
173
+ "type": "bytes"
174
+ }
175
+ ],
176
+ "name": "afterAgreementCreated",
177
+ "outputs": [
178
+ {
179
+ "internalType": "bytes",
180
+ "name": "newCtx",
181
+ "type": "bytes"
182
+ }
183
+ ],
184
+ "stateMutability": "nonpayable",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [
189
+ {
190
+ "internalType": "contract ISuperToken",
191
+ "name": "superToken",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "internalType": "address",
196
+ "name": "agreementClass",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "internalType": "bytes32",
201
+ "name": "",
202
+ "type": "bytes32"
203
+ },
204
+ {
205
+ "internalType": "bytes",
206
+ "name": "agreementData",
207
+ "type": "bytes"
208
+ },
209
+ {
210
+ "internalType": "bytes",
211
+ "name": "cbdata",
212
+ "type": "bytes"
213
+ },
214
+ {
215
+ "internalType": "bytes",
216
+ "name": "ctx",
217
+ "type": "bytes"
218
+ }
219
+ ],
220
+ "name": "afterAgreementTerminated",
221
+ "outputs": [
222
+ {
223
+ "internalType": "bytes",
224
+ "name": "newCtx",
225
+ "type": "bytes"
226
+ }
227
+ ],
228
+ "stateMutability": "nonpayable",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [
233
+ {
234
+ "internalType": "contract ISuperToken",
235
+ "name": "superToken",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "internalType": "address",
240
+ "name": "",
241
+ "type": "address"
242
+ },
243
+ {
244
+ "internalType": "bytes32",
245
+ "name": "",
246
+ "type": "bytes32"
247
+ },
248
+ {
249
+ "internalType": "bytes",
250
+ "name": "agreementData",
251
+ "type": "bytes"
252
+ },
253
+ {
254
+ "internalType": "bytes",
255
+ "name": "cbdata",
256
+ "type": "bytes"
257
+ },
258
+ {
259
+ "internalType": "bytes",
260
+ "name": "ctx",
261
+ "type": "bytes"
262
+ }
263
+ ],
264
+ "name": "afterAgreementUpdated",
265
+ "outputs": [
266
+ {
267
+ "internalType": "bytes",
268
+ "name": "newCtx",
269
+ "type": "bytes"
270
+ }
271
+ ],
272
+ "stateMutability": "nonpayable",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [
277
+ {
278
+ "internalType": "contract ISuperToken",
279
+ "name": "superToken",
280
+ "type": "address"
281
+ },
282
+ {
283
+ "internalType": "address",
284
+ "name": "agreementClass",
285
+ "type": "address"
286
+ },
287
+ {
288
+ "internalType": "bytes32",
289
+ "name": "",
290
+ "type": "bytes32"
291
+ },
292
+ {
293
+ "internalType": "bytes",
294
+ "name": "",
295
+ "type": "bytes"
296
+ },
297
+ {
298
+ "internalType": "bytes",
299
+ "name": "",
300
+ "type": "bytes"
301
+ }
302
+ ],
303
+ "name": "beforeAgreementCreated",
304
+ "outputs": [
305
+ {
306
+ "internalType": "bytes",
307
+ "name": "",
308
+ "type": "bytes"
309
+ }
310
+ ],
311
+ "stateMutability": "view",
312
+ "type": "function"
313
+ },
314
+ {
315
+ "inputs": [
316
+ {
317
+ "internalType": "contract ISuperToken",
318
+ "name": "superToken",
319
+ "type": "address"
320
+ },
321
+ {
322
+ "internalType": "address",
323
+ "name": "agreementClass",
324
+ "type": "address"
325
+ },
326
+ {
327
+ "internalType": "bytes32",
328
+ "name": "",
329
+ "type": "bytes32"
330
+ },
331
+ {
332
+ "internalType": "bytes",
333
+ "name": "agreementData",
334
+ "type": "bytes"
335
+ },
336
+ {
337
+ "internalType": "bytes",
338
+ "name": "",
339
+ "type": "bytes"
340
+ }
341
+ ],
342
+ "name": "beforeAgreementTerminated",
343
+ "outputs": [
344
+ {
345
+ "internalType": "bytes",
346
+ "name": "",
347
+ "type": "bytes"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [
355
+ {
356
+ "internalType": "contract ISuperToken",
357
+ "name": "superToken",
358
+ "type": "address"
359
+ },
360
+ {
361
+ "internalType": "address",
362
+ "name": "agreementClass",
363
+ "type": "address"
364
+ },
365
+ {
366
+ "internalType": "bytes32",
367
+ "name": "",
368
+ "type": "bytes32"
369
+ },
370
+ {
371
+ "internalType": "bytes",
372
+ "name": "agreementData",
373
+ "type": "bytes"
374
+ },
375
+ {
376
+ "internalType": "bytes",
377
+ "name": "",
378
+ "type": "bytes"
379
+ }
380
+ ],
381
+ "name": "beforeAgreementUpdated",
382
+ "outputs": [
383
+ {
384
+ "internalType": "bytes",
385
+ "name": "",
386
+ "type": "bytes"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [],
394
+ "name": "cfaV1",
395
+ "outputs": [
396
+ {
397
+ "internalType": "contract ISuperfluid",
398
+ "name": "host",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "contract IConstantFlowAgreementV1",
403
+ "name": "cfa",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "stateMutability": "view",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "inputs": [],
412
+ "name": "getManagerFee",
413
+ "outputs": [
414
+ {
415
+ "internalType": "address",
416
+ "name": "admin",
417
+ "type": "address"
418
+ },
419
+ {
420
+ "internalType": "uint32",
421
+ "name": "feeBps",
422
+ "type": "uint32"
423
+ }
424
+ ],
425
+ "stateMutability": "view",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "inputs": [
430
+ {
431
+ "internalType": "address",
432
+ "name": "_user",
433
+ "type": "address"
434
+ }
435
+ ],
436
+ "name": "getRealtimeContribution",
437
+ "outputs": [
438
+ {
439
+ "internalType": "uint256",
440
+ "name": "",
441
+ "type": "uint256"
442
+ }
443
+ ],
444
+ "stateMutability": "view",
445
+ "type": "function"
446
+ },
447
+ {
448
+ "inputs": [],
449
+ "name": "getRealtimeStats",
450
+ "outputs": [
451
+ {
452
+ "internalType": "uint256",
453
+ "name": "netIncome",
454
+ "type": "uint256"
455
+ },
456
+ {
457
+ "internalType": "uint256",
458
+ "name": "totalFees",
459
+ "type": "uint256"
460
+ },
461
+ {
462
+ "internalType": "uint256",
463
+ "name": "protocolFees",
464
+ "type": "uint256"
465
+ },
466
+ {
467
+ "internalType": "uint256",
468
+ "name": "managerFees",
469
+ "type": "uint256"
470
+ },
471
+ {
472
+ "internalType": "int96",
473
+ "name": "incomeFlowRate",
474
+ "type": "int96"
475
+ },
476
+ {
477
+ "internalType": "int96",
478
+ "name": "feeRate",
479
+ "type": "int96"
480
+ },
481
+ {
482
+ "internalType": "int96",
483
+ "name": "managerFeeRate",
484
+ "type": "int96"
485
+ }
486
+ ],
487
+ "stateMutability": "view",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [],
492
+ "name": "getRegistry",
493
+ "outputs": [
494
+ {
495
+ "internalType": "contract IRegistry",
496
+ "name": "",
497
+ "type": "address"
498
+ }
499
+ ],
500
+ "stateMutability": "view",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [
505
+ {
506
+ "components": [
507
+ {
508
+ "internalType": "address",
509
+ "name": "swapFrom",
510
+ "type": "address"
511
+ },
512
+ {
513
+ "internalType": "uint256",
514
+ "name": "amount",
515
+ "type": "uint256"
516
+ },
517
+ {
518
+ "internalType": "uint256",
519
+ "name": "minReturn",
520
+ "type": "uint256"
521
+ },
522
+ {
523
+ "internalType": "uint256",
524
+ "name": "deadline",
525
+ "type": "uint256"
526
+ },
527
+ {
528
+ "internalType": "bytes",
529
+ "name": "path",
530
+ "type": "bytes"
531
+ }
532
+ ],
533
+ "internalType": "struct HelperLibrary.SwapData",
534
+ "name": "_customData",
535
+ "type": "tuple"
536
+ },
537
+ {
538
+ "internalType": "address",
539
+ "name": "_sender",
540
+ "type": "address"
541
+ },
542
+ {
543
+ "internalType": "bytes",
544
+ "name": "_ctx",
545
+ "type": "bytes"
546
+ }
547
+ ],
548
+ "name": "handleSwap",
549
+ "outputs": [
550
+ {
551
+ "internalType": "bytes",
552
+ "name": "",
553
+ "type": "bytes"
554
+ }
555
+ ],
556
+ "stateMutability": "nonpayable",
557
+ "type": "function"
558
+ },
559
+ {
560
+ "inputs": [],
561
+ "name": "host",
562
+ "outputs": [
563
+ {
564
+ "internalType": "contract ISuperfluid",
565
+ "name": "",
566
+ "type": "address"
567
+ }
568
+ ],
569
+ "stateMutability": "view",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ {
575
+ "internalType": "contract ISuperToken",
576
+ "name": "_superToken",
577
+ "type": "address"
578
+ }
579
+ ],
580
+ "name": "isAcceptedSuperToken",
581
+ "outputs": [
582
+ {
583
+ "internalType": "bool",
584
+ "name": "",
585
+ "type": "bool"
586
+ }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [
593
+ {
594
+ "internalType": "address",
595
+ "name": "_sender",
596
+ "type": "address"
597
+ },
598
+ {
599
+ "internalType": "uint256",
600
+ "name": "_amount",
601
+ "type": "uint256"
602
+ },
603
+ {
604
+ "internalType": "bytes",
605
+ "name": "",
606
+ "type": "bytes"
607
+ }
608
+ ],
609
+ "name": "onTokenTransfer",
610
+ "outputs": [
611
+ {
612
+ "internalType": "bool",
613
+ "name": "",
614
+ "type": "bool"
615
+ }
616
+ ],
617
+ "stateMutability": "nonpayable",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [
622
+ {
623
+ "internalType": "address",
624
+ "name": "_recipient",
625
+ "type": "address"
626
+ },
627
+ {
628
+ "internalType": "uint256",
629
+ "name": "amount",
630
+ "type": "uint256"
631
+ }
632
+ ],
633
+ "name": "recoverFunds",
634
+ "outputs": [],
635
+ "stateMutability": "nonpayable",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [],
640
+ "name": "stats",
641
+ "outputs": [
642
+ {
643
+ "internalType": "uint256",
644
+ "name": "netIncome",
645
+ "type": "uint256"
646
+ },
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "totalFees",
650
+ "type": "uint256"
651
+ },
652
+ {
653
+ "internalType": "uint256",
654
+ "name": "lastUpdate",
655
+ "type": "uint256"
656
+ },
657
+ {
658
+ "internalType": "address",
659
+ "name": "lastFeeRecipient",
660
+ "type": "address"
661
+ },
662
+ {
663
+ "internalType": "int96",
664
+ "name": "lastIncomeRate",
665
+ "type": "int96"
666
+ },
667
+ {
668
+ "internalType": "address",
669
+ "name": "lastManagerFeeRecipient",
670
+ "type": "address"
671
+ },
672
+ {
673
+ "internalType": "uint256",
674
+ "name": "protocolFees",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "internalType": "uint256",
679
+ "name": "managerFees",
680
+ "type": "uint256"
681
+ }
682
+ ],
683
+ "stateMutability": "view",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [],
688
+ "name": "superToken",
689
+ "outputs": [
690
+ {
691
+ "internalType": "contract ISuperToken",
692
+ "name": "",
693
+ "type": "address"
694
+ }
695
+ ],
696
+ "stateMutability": "view",
697
+ "type": "function"
698
+ },
699
+ {
700
+ "inputs": [
701
+ {
702
+ "internalType": "address",
703
+ "name": "_sender",
704
+ "type": "address"
705
+ },
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "_amount",
709
+ "type": "uint256"
710
+ },
711
+ {
712
+ "internalType": "bytes",
713
+ "name": "_ctx",
714
+ "type": "bytes"
715
+ }
716
+ ],
717
+ "name": "support",
718
+ "outputs": [
719
+ {
720
+ "internalType": "bytes",
721
+ "name": "",
722
+ "type": "bytes"
723
+ }
724
+ ],
725
+ "stateMutability": "nonpayable",
726
+ "type": "function"
727
+ },
728
+ {
729
+ "inputs": [
730
+ {
731
+ "internalType": "address",
732
+ "name": "_sender",
733
+ "type": "address"
734
+ },
735
+ {
736
+ "components": [
737
+ {
738
+ "internalType": "address",
739
+ "name": "swapFrom",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "amount",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "minReturn",
750
+ "type": "uint256"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "deadline",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "internalType": "bytes",
759
+ "name": "path",
760
+ "type": "bytes"
761
+ }
762
+ ],
763
+ "internalType": "struct HelperLibrary.SwapData",
764
+ "name": "_customData",
765
+ "type": "tuple"
766
+ },
767
+ {
768
+ "internalType": "bytes",
769
+ "name": "_ctx",
770
+ "type": "bytes"
771
+ }
772
+ ],
773
+ "name": "supportWithSwap",
774
+ "outputs": [
775
+ {
776
+ "internalType": "bytes",
777
+ "name": "",
778
+ "type": "bytes"
779
+ }
780
+ ],
781
+ "stateMutability": "nonpayable",
782
+ "type": "function"
783
+ },
784
+ {
785
+ "inputs": [
786
+ {
787
+ "internalType": "address",
788
+ "name": "",
789
+ "type": "address"
790
+ }
791
+ ],
792
+ "name": "supporters",
793
+ "outputs": [
794
+ {
795
+ "internalType": "uint256",
796
+ "name": "contribution",
797
+ "type": "uint256"
798
+ },
799
+ {
800
+ "internalType": "int96",
801
+ "name": "flowRate",
802
+ "type": "int96"
803
+ },
804
+ {
805
+ "internalType": "uint128",
806
+ "name": "lastUpdated",
807
+ "type": "uint128"
808
+ }
809
+ ],
810
+ "stateMutability": "view",
811
+ "type": "function"
812
+ },
813
+ {
814
+ "inputs": [],
815
+ "name": "swapRouter",
816
+ "outputs": [
817
+ {
818
+ "internalType": "contract IV3SwapRouter",
819
+ "name": "",
820
+ "type": "address"
821
+ }
822
+ ],
823
+ "stateMutability": "view",
824
+ "type": "function"
825
+ }
826
+ ],
827
+ "bytecode": "0x",
828
+ "deployedBytecode": "0x",
829
+ "linkReferences": {},
830
+ "deployedLinkReferences": {}
831
+ }