@gooddollar/goodcollective-contracts 1.0.3 → 1.0.4

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.
@@ -266,6 +266,94 @@
266
266
  "stateMutability": "nonpayable",
267
267
  "type": "function"
268
268
  },
269
+ {
270
+ "inputs": [
271
+ {
272
+ "internalType": "string",
273
+ "name": "_projectId",
274
+ "type": "string"
275
+ },
276
+ {
277
+ "internalType": "string",
278
+ "name": "_ipfs",
279
+ "type": "string"
280
+ },
281
+ {
282
+ "components": [
283
+ {
284
+ "internalType": "uint32",
285
+ "name": "nftType",
286
+ "type": "uint32"
287
+ },
288
+ {
289
+ "internalType": "uint16[]",
290
+ "name": "validEvents",
291
+ "type": "uint16[]"
292
+ },
293
+ {
294
+ "internalType": "uint128[]",
295
+ "name": "rewardPerEvent",
296
+ "type": "uint128[]"
297
+ },
298
+ {
299
+ "internalType": "address",
300
+ "name": "manager",
301
+ "type": "address"
302
+ },
303
+ {
304
+ "internalType": "contract IMembersValidator",
305
+ "name": "membersValidator",
306
+ "type": "address"
307
+ },
308
+ {
309
+ "internalType": "contract IIdentityV2",
310
+ "name": "uniquenessValidator",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "internalType": "contract IERC20Upgradeable",
315
+ "name": "rewardToken",
316
+ "type": "address"
317
+ }
318
+ ],
319
+ "internalType": "struct DirectPaymentsPool.PoolSettings",
320
+ "name": "_settings",
321
+ "type": "tuple"
322
+ },
323
+ {
324
+ "components": [
325
+ {
326
+ "internalType": "uint256",
327
+ "name": "maxTotalPerMonth",
328
+ "type": "uint256"
329
+ },
330
+ {
331
+ "internalType": "uint256",
332
+ "name": "maxMemberPerMonth",
333
+ "type": "uint256"
334
+ },
335
+ {
336
+ "internalType": "uint256",
337
+ "name": "maxMemberPerDay",
338
+ "type": "uint256"
339
+ }
340
+ ],
341
+ "internalType": "struct DirectPaymentsPool.SafetyLimits",
342
+ "name": "_limits",
343
+ "type": "tuple"
344
+ }
345
+ ],
346
+ "name": "createBeaconPool",
347
+ "outputs": [
348
+ {
349
+ "internalType": "contract DirectPaymentsPool",
350
+ "name": "pool",
351
+ "type": "address"
352
+ }
353
+ ],
354
+ "stateMutability": "nonpayable",
355
+ "type": "function"
356
+ },
269
357
  {
270
358
  "inputs": [
271
359
  {
@@ -354,6 +442,32 @@
354
442
  "stateMutability": "nonpayable",
355
443
  "type": "function"
356
444
  },
445
+ {
446
+ "inputs": [],
447
+ "name": "feeBps",
448
+ "outputs": [
449
+ {
450
+ "internalType": "uint32",
451
+ "name": "",
452
+ "type": "uint32"
453
+ }
454
+ ],
455
+ "stateMutability": "view",
456
+ "type": "function"
457
+ },
458
+ {
459
+ "inputs": [],
460
+ "name": "feeRecipient",
461
+ "outputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "",
465
+ "type": "address"
466
+ }
467
+ ],
468
+ "stateMutability": "view",
469
+ "type": "function"
470
+ },
357
471
  {
358
472
  "inputs": [
359
473
  {
@@ -444,6 +558,16 @@
444
558
  "internalType": "address",
445
559
  "name": "_nftimpl",
446
560
  "type": "address"
561
+ },
562
+ {
563
+ "internalType": "address",
564
+ "name": "_feeRecipient",
565
+ "type": "address"
566
+ },
567
+ {
568
+ "internalType": "uint32",
569
+ "name": "_feeBps",
570
+ "type": "uint32"
447
571
  }
448
572
  ],
449
573
  "name": "initialize",
@@ -574,6 +698,24 @@
574
698
  "stateMutability": "nonpayable",
575
699
  "type": "function"
576
700
  },
701
+ {
702
+ "inputs": [
703
+ {
704
+ "internalType": "address",
705
+ "name": "_feeRecipient",
706
+ "type": "address"
707
+ },
708
+ {
709
+ "internalType": "uint32",
710
+ "name": "_feeBps",
711
+ "type": "uint32"
712
+ }
713
+ ],
714
+ "name": "setFeeInfo",
715
+ "outputs": [],
716
+ "stateMutability": "nonpayable",
717
+ "type": "function"
718
+ },
577
719
  {
578
720
  "inputs": [
579
721
  {
@@ -927,6 +1069,94 @@
927
1069
  "stateMutability": "nonpayable",
928
1070
  "type": "function"
929
1071
  },
1072
+ {
1073
+ "inputs": [
1074
+ {
1075
+ "internalType": "string",
1076
+ "name": "_projectId",
1077
+ "type": "string"
1078
+ },
1079
+ {
1080
+ "internalType": "string",
1081
+ "name": "_ipfs",
1082
+ "type": "string"
1083
+ },
1084
+ {
1085
+ "components": [
1086
+ {
1087
+ "internalType": "uint32",
1088
+ "name": "nftType",
1089
+ "type": "uint32"
1090
+ },
1091
+ {
1092
+ "internalType": "uint16[]",
1093
+ "name": "validEvents",
1094
+ "type": "uint16[]"
1095
+ },
1096
+ {
1097
+ "internalType": "uint128[]",
1098
+ "name": "rewardPerEvent",
1099
+ "type": "uint128[]"
1100
+ },
1101
+ {
1102
+ "internalType": "address",
1103
+ "name": "manager",
1104
+ "type": "address"
1105
+ },
1106
+ {
1107
+ "internalType": "contract IMembersValidator",
1108
+ "name": "membersValidator",
1109
+ "type": "address"
1110
+ },
1111
+ {
1112
+ "internalType": "contract IIdentityV2",
1113
+ "name": "uniquenessValidator",
1114
+ "type": "address"
1115
+ },
1116
+ {
1117
+ "internalType": "contract IERC20Upgradeable",
1118
+ "name": "rewardToken",
1119
+ "type": "address"
1120
+ }
1121
+ ],
1122
+ "internalType": "struct DirectPaymentsPool.PoolSettings",
1123
+ "name": "_settings",
1124
+ "type": "tuple"
1125
+ },
1126
+ {
1127
+ "components": [
1128
+ {
1129
+ "internalType": "uint256",
1130
+ "name": "maxTotalPerMonth",
1131
+ "type": "uint256"
1132
+ },
1133
+ {
1134
+ "internalType": "uint256",
1135
+ "name": "maxMemberPerMonth",
1136
+ "type": "uint256"
1137
+ },
1138
+ {
1139
+ "internalType": "uint256",
1140
+ "name": "maxMemberPerDay",
1141
+ "type": "uint256"
1142
+ }
1143
+ ],
1144
+ "internalType": "struct DirectPaymentsPool.SafetyLimits",
1145
+ "name": "_limits",
1146
+ "type": "tuple"
1147
+ }
1148
+ ],
1149
+ "name": "createBeaconPool",
1150
+ "outputs": [
1151
+ {
1152
+ "internalType": "contract DirectPaymentsPool",
1153
+ "name": "pool",
1154
+ "type": "address"
1155
+ }
1156
+ ],
1157
+ "stateMutability": "nonpayable",
1158
+ "type": "function"
1159
+ },
930
1160
  {
931
1161
  "inputs": [
932
1162
  {
@@ -1015,6 +1245,32 @@
1015
1245
  "stateMutability": "nonpayable",
1016
1246
  "type": "function"
1017
1247
  },
1248
+ {
1249
+ "inputs": [],
1250
+ "name": "feeBps",
1251
+ "outputs": [
1252
+ {
1253
+ "internalType": "uint32",
1254
+ "name": "",
1255
+ "type": "uint32"
1256
+ }
1257
+ ],
1258
+ "stateMutability": "view",
1259
+ "type": "function"
1260
+ },
1261
+ {
1262
+ "inputs": [],
1263
+ "name": "feeRecipient",
1264
+ "outputs": [
1265
+ {
1266
+ "internalType": "address",
1267
+ "name": "",
1268
+ "type": "address"
1269
+ }
1270
+ ],
1271
+ "stateMutability": "view",
1272
+ "type": "function"
1273
+ },
1018
1274
  {
1019
1275
  "inputs": [
1020
1276
  {
@@ -1105,6 +1361,16 @@
1105
1361
  "internalType": "address",
1106
1362
  "name": "_nftimpl",
1107
1363
  "type": "address"
1364
+ },
1365
+ {
1366
+ "internalType": "address",
1367
+ "name": "_feeRecipient",
1368
+ "type": "address"
1369
+ },
1370
+ {
1371
+ "internalType": "uint32",
1372
+ "name": "_feeBps",
1373
+ "type": "uint32"
1108
1374
  }
1109
1375
  ],
1110
1376
  "name": "initialize",
@@ -1235,6 +1501,24 @@
1235
1501
  "stateMutability": "nonpayable",
1236
1502
  "type": "function"
1237
1503
  },
1504
+ {
1505
+ "inputs": [
1506
+ {
1507
+ "internalType": "address",
1508
+ "name": "_feeRecipient",
1509
+ "type": "address"
1510
+ },
1511
+ {
1512
+ "internalType": "uint32",
1513
+ "name": "_feeBps",
1514
+ "type": "uint32"
1515
+ }
1516
+ ],
1517
+ "name": "setFeeInfo",
1518
+ "outputs": [],
1519
+ "stateMutability": "nonpayable",
1520
+ "type": "function"
1521
+ },
1238
1522
  {
1239
1523
  "inputs": [
1240
1524
  {
@@ -1422,6 +1706,33 @@
1422
1706
  "name": "ALREADY_CLAIMED",
1423
1707
  "type": "error"
1424
1708
  },
1709
+ {
1710
+ "inputs": [
1711
+ {
1712
+ "internalType": "int96",
1713
+ "name": "curFeeRate",
1714
+ "type": "int96"
1715
+ },
1716
+ {
1717
+ "internalType": "int96",
1718
+ "name": "newFeeRate",
1719
+ "type": "int96"
1720
+ }
1721
+ ],
1722
+ "name": "FEE_FLOW_FAILED",
1723
+ "type": "error"
1724
+ },
1725
+ {
1726
+ "inputs": [
1727
+ {
1728
+ "internalType": "int96",
1729
+ "name": "flowRate",
1730
+ "type": "int96"
1731
+ }
1732
+ ],
1733
+ "name": "MIN_FLOWRATE",
1734
+ "type": "error"
1735
+ },
1425
1736
  {
1426
1737
  "inputs": [
1427
1738
  {
@@ -1559,6 +1870,52 @@
1559
1870
  "name": "BeaconUpgraded",
1560
1871
  "type": "event"
1561
1872
  },
1873
+ {
1874
+ "anonymous": false,
1875
+ "inputs": [
1876
+ {
1877
+ "indexed": true,
1878
+ "internalType": "uint256",
1879
+ "name": "tokenId",
1880
+ "type": "uint256"
1881
+ },
1882
+ {
1883
+ "components": [
1884
+ {
1885
+ "internalType": "uint16",
1886
+ "name": "subtype",
1887
+ "type": "uint16"
1888
+ },
1889
+ {
1890
+ "internalType": "uint32",
1891
+ "name": "timestamp",
1892
+ "type": "uint32"
1893
+ },
1894
+ {
1895
+ "internalType": "uint256",
1896
+ "name": "quantity",
1897
+ "type": "uint256"
1898
+ },
1899
+ {
1900
+ "internalType": "string",
1901
+ "name": "eventUri",
1902
+ "type": "string"
1903
+ },
1904
+ {
1905
+ "internalType": "address[]",
1906
+ "name": "contributers",
1907
+ "type": "address[]"
1908
+ }
1909
+ ],
1910
+ "indexed": false,
1911
+ "internalType": "struct ProvableNFT.EventData",
1912
+ "name": "eventData",
1913
+ "type": "tuple"
1914
+ }
1915
+ ],
1916
+ "name": "EventRewardClaimed",
1917
+ "type": "event"
1918
+ },
1562
1919
  {
1563
1920
  "anonymous": false,
1564
1921
  "inputs": [
@@ -1598,6 +1955,25 @@
1598
1955
  "name": "MemberRemoved",
1599
1956
  "type": "event"
1600
1957
  },
1958
+ {
1959
+ "anonymous": false,
1960
+ "inputs": [
1961
+ {
1962
+ "indexed": true,
1963
+ "internalType": "uint256",
1964
+ "name": "tokenId",
1965
+ "type": "uint256"
1966
+ },
1967
+ {
1968
+ "indexed": false,
1969
+ "internalType": "uint256",
1970
+ "name": "totalRewards",
1971
+ "type": "uint256"
1972
+ }
1973
+ ],
1974
+ "name": "NFTClaimed",
1975
+ "type": "event"
1976
+ },
1601
1977
  {
1602
1978
  "anonymous": false,
1603
1979
  "inputs": [
@@ -1678,25 +2054,6 @@
1678
2054
  "name": "PoolSettingsChanged",
1679
2055
  "type": "event"
1680
2056
  },
1681
- {
1682
- "anonymous": false,
1683
- "inputs": [
1684
- {
1685
- "indexed": true,
1686
- "internalType": "uint256",
1687
- "name": "tokenId",
1688
- "type": "uint256"
1689
- },
1690
- {
1691
- "indexed": false,
1692
- "internalType": "uint256",
1693
- "name": "totalRewards",
1694
- "type": "uint256"
1695
- }
1696
- ],
1697
- "name": "RewardClaimed",
1698
- "type": "event"
1699
- },
1700
2057
  {
1701
2058
  "anonymous": false,
1702
2059
  "inputs": [
@@ -1781,12 +2138,24 @@
1781
2138
  "name": "supporter",
1782
2139
  "type": "address"
1783
2140
  },
2141
+ {
2142
+ "indexed": false,
2143
+ "internalType": "uint256",
2144
+ "name": "previousContribution",
2145
+ "type": "uint256"
2146
+ },
1784
2147
  {
1785
2148
  "indexed": false,
1786
2149
  "internalType": "uint256",
1787
2150
  "name": "contribution",
1788
2151
  "type": "uint256"
1789
2152
  },
2153
+ {
2154
+ "indexed": false,
2155
+ "internalType": "int96",
2156
+ "name": "previousFlowRate",
2157
+ "type": "int96"
2158
+ },
1790
2159
  {
1791
2160
  "indexed": false,
1792
2161
  "internalType": "int96",
@@ -1795,9 +2164,9 @@
1795
2164
  },
1796
2165
  {
1797
2166
  "indexed": false,
1798
- "internalType": "uint256",
1799
- "name": "lastUpdated",
1800
- "type": "uint256"
2167
+ "internalType": "bool",
2168
+ "name": "isFlowUpdate",
2169
+ "type": "bool"
1801
2170
  }
1802
2171
  ],
1803
2172
  "name": "SupporterUpdated",
@@ -1868,6 +2237,19 @@
1868
2237
  "stateMutability": "view",
1869
2238
  "type": "function"
1870
2239
  },
2240
+ {
2241
+ "inputs": [],
2242
+ "name": "MIN_FLOW_RATE",
2243
+ "outputs": [
2244
+ {
2245
+ "internalType": "int96",
2246
+ "name": "",
2247
+ "type": "int96"
2248
+ }
2249
+ ],
2250
+ "stateMutability": "view",
2251
+ "type": "function"
2252
+ },
1871
2253
  {
1872
2254
  "inputs": [
1873
2255
  {
@@ -2135,6 +2517,24 @@
2135
2517
  "stateMutability": "view",
2136
2518
  "type": "function"
2137
2519
  },
2520
+ {
2521
+ "inputs": [],
2522
+ "name": "cfaV1",
2523
+ "outputs": [
2524
+ {
2525
+ "internalType": "contract ISuperfluid",
2526
+ "name": "host",
2527
+ "type": "address"
2528
+ },
2529
+ {
2530
+ "internalType": "contract IConstantFlowAgreementV1",
2531
+ "name": "cfa",
2532
+ "type": "address"
2533
+ }
2534
+ ],
2535
+ "stateMutability": "view",
2536
+ "type": "function"
2537
+ },
2138
2538
  {
2139
2539
  "inputs": [
2140
2540
  {
@@ -2235,32 +2635,60 @@
2235
2635
  "type": "function"
2236
2636
  },
2237
2637
  {
2238
- "inputs": [],
2239
- "name": "createdBy",
2240
- "outputs": [
2638
+ "inputs": [
2241
2639
  {
2242
2640
  "internalType": "address",
2243
- "name": "",
2641
+ "name": "_user",
2244
2642
  "type": "address"
2245
2643
  }
2246
2644
  ],
2645
+ "name": "getRealtimeContribution",
2646
+ "outputs": [
2647
+ {
2648
+ "internalType": "uint256",
2649
+ "name": "",
2650
+ "type": "uint256"
2651
+ }
2652
+ ],
2247
2653
  "stateMutability": "view",
2248
2654
  "type": "function"
2249
2655
  },
2250
2656
  {
2251
- "inputs": [
2657
+ "inputs": [],
2658
+ "name": "getRealtimeStats",
2659
+ "outputs": [
2252
2660
  {
2253
- "internalType": "address",
2254
- "name": "_user",
2255
- "type": "address"
2661
+ "internalType": "uint256",
2662
+ "name": "netIncome",
2663
+ "type": "uint256"
2664
+ },
2665
+ {
2666
+ "internalType": "uint256",
2667
+ "name": "totalFees",
2668
+ "type": "uint256"
2669
+ },
2670
+ {
2671
+ "internalType": "int96",
2672
+ "name": "incomeFlowRate",
2673
+ "type": "int96"
2674
+ },
2675
+ {
2676
+ "internalType": "int96",
2677
+ "name": "feeRate",
2678
+ "type": "int96"
2256
2679
  }
2257
2680
  ],
2258
- "name": "getRealtimeContribution",
2681
+ "stateMutability": "view",
2682
+ "type": "function"
2683
+ },
2684
+ {
2685
+ "inputs": [],
2686
+ "name": "getRegistry",
2259
2687
  "outputs": [
2260
2688
  {
2261
- "internalType": "uint256",
2689
+ "internalType": "contract DirectPaymentsFactory",
2262
2690
  "name": "",
2263
- "type": "uint256"
2691
+ "type": "address"
2264
2692
  }
2265
2693
  ],
2266
2694
  "stateMutability": "view",
@@ -2499,6 +2927,11 @@
2499
2927
  "internalType": "struct DirectPaymentsPool.SafetyLimits",
2500
2928
  "name": "_limits",
2501
2929
  "type": "tuple"
2930
+ },
2931
+ {
2932
+ "internalType": "contract DirectPaymentsFactory",
2933
+ "name": "_registry",
2934
+ "type": "address"
2502
2935
  }
2503
2936
  ],
2504
2937
  "name": "initialize",
@@ -2767,6 +3200,19 @@
2767
3200
  "stateMutability": "view",
2768
3201
  "type": "function"
2769
3202
  },
3203
+ {
3204
+ "inputs": [],
3205
+ "name": "registry",
3206
+ "outputs": [
3207
+ {
3208
+ "internalType": "contract DirectPaymentsFactory",
3209
+ "name": "",
3210
+ "type": "address"
3211
+ }
3212
+ ],
3213
+ "stateMutability": "view",
3214
+ "type": "function"
3215
+ },
2770
3216
  {
2771
3217
  "inputs": [
2772
3218
  {
@@ -2831,19 +3277,52 @@
2831
3277
  "type": "address"
2832
3278
  },
2833
3279
  {
2834
- "internalType": "contract IMembersValidator",
2835
- "name": "membersValidator",
2836
- "type": "address"
3280
+ "internalType": "contract IMembersValidator",
3281
+ "name": "membersValidator",
3282
+ "type": "address"
3283
+ },
3284
+ {
3285
+ "internalType": "contract IIdentityV2",
3286
+ "name": "uniquenessValidator",
3287
+ "type": "address"
3288
+ },
3289
+ {
3290
+ "internalType": "contract IERC20Upgradeable",
3291
+ "name": "rewardToken",
3292
+ "type": "address"
3293
+ }
3294
+ ],
3295
+ "stateMutability": "view",
3296
+ "type": "function"
3297
+ },
3298
+ {
3299
+ "inputs": [],
3300
+ "name": "stats",
3301
+ "outputs": [
3302
+ {
3303
+ "internalType": "uint256",
3304
+ "name": "netIncome",
3305
+ "type": "uint256"
3306
+ },
3307
+ {
3308
+ "internalType": "uint256",
3309
+ "name": "totalFees",
3310
+ "type": "uint256"
3311
+ },
3312
+ {
3313
+ "internalType": "uint256",
3314
+ "name": "lastUpdate",
3315
+ "type": "uint256"
2837
3316
  },
2838
3317
  {
2839
- "internalType": "contract IIdentityV2",
2840
- "name": "uniquenessValidator",
3318
+ "internalType": "address",
3319
+ "name": "lastFeeRecipient",
2841
3320
  "type": "address"
2842
3321
  },
2843
3322
  {
2844
- "internalType": "contract IERC20Upgradeable",
2845
- "name": "rewardToken",
2846
- "type": "address"
3323
+ "internalType": "int96",
3324
+ "name": "lastIncomeRate",
3325
+ "type": "int96"
2847
3326
  }
2848
3327
  ],
2849
3328
  "stateMutability": "view",
@@ -4665,6 +5144,94 @@
4665
5144
  "stateMutability": "nonpayable",
4666
5145
  "type": "function"
4667
5146
  },
5147
+ {
5148
+ "inputs": [
5149
+ {
5150
+ "internalType": "string",
5151
+ "name": "_projectId",
5152
+ "type": "string"
5153
+ },
5154
+ {
5155
+ "internalType": "string",
5156
+ "name": "_ipfs",
5157
+ "type": "string"
5158
+ },
5159
+ {
5160
+ "components": [
5161
+ {
5162
+ "internalType": "uint32",
5163
+ "name": "nftType",
5164
+ "type": "uint32"
5165
+ },
5166
+ {
5167
+ "internalType": "uint16[]",
5168
+ "name": "validEvents",
5169
+ "type": "uint16[]"
5170
+ },
5171
+ {
5172
+ "internalType": "uint128[]",
5173
+ "name": "rewardPerEvent",
5174
+ "type": "uint128[]"
5175
+ },
5176
+ {
5177
+ "internalType": "address",
5178
+ "name": "manager",
5179
+ "type": "address"
5180
+ },
5181
+ {
5182
+ "internalType": "contract IMembersValidator",
5183
+ "name": "membersValidator",
5184
+ "type": "address"
5185
+ },
5186
+ {
5187
+ "internalType": "contract IIdentityV2",
5188
+ "name": "uniquenessValidator",
5189
+ "type": "address"
5190
+ },
5191
+ {
5192
+ "internalType": "contract IERC20Upgradeable",
5193
+ "name": "rewardToken",
5194
+ "type": "address"
5195
+ }
5196
+ ],
5197
+ "internalType": "struct DirectPaymentsPool.PoolSettings",
5198
+ "name": "_settings",
5199
+ "type": "tuple"
5200
+ },
5201
+ {
5202
+ "components": [
5203
+ {
5204
+ "internalType": "uint256",
5205
+ "name": "maxTotalPerMonth",
5206
+ "type": "uint256"
5207
+ },
5208
+ {
5209
+ "internalType": "uint256",
5210
+ "name": "maxMemberPerMonth",
5211
+ "type": "uint256"
5212
+ },
5213
+ {
5214
+ "internalType": "uint256",
5215
+ "name": "maxMemberPerDay",
5216
+ "type": "uint256"
5217
+ }
5218
+ ],
5219
+ "internalType": "struct DirectPaymentsPool.SafetyLimits",
5220
+ "name": "_limits",
5221
+ "type": "tuple"
5222
+ }
5223
+ ],
5224
+ "name": "createBeaconPool",
5225
+ "outputs": [
5226
+ {
5227
+ "internalType": "contract DirectPaymentsPool",
5228
+ "name": "pool",
5229
+ "type": "address"
5230
+ }
5231
+ ],
5232
+ "stateMutability": "nonpayable",
5233
+ "type": "function"
5234
+ },
4668
5235
  {
4669
5236
  "inputs": [
4670
5237
  {
@@ -4753,6 +5320,32 @@
4753
5320
  "stateMutability": "nonpayable",
4754
5321
  "type": "function"
4755
5322
  },
5323
+ {
5324
+ "inputs": [],
5325
+ "name": "feeBps",
5326
+ "outputs": [
5327
+ {
5328
+ "internalType": "uint32",
5329
+ "name": "",
5330
+ "type": "uint32"
5331
+ }
5332
+ ],
5333
+ "stateMutability": "view",
5334
+ "type": "function"
5335
+ },
5336
+ {
5337
+ "inputs": [],
5338
+ "name": "feeRecipient",
5339
+ "outputs": [
5340
+ {
5341
+ "internalType": "address",
5342
+ "name": "",
5343
+ "type": "address"
5344
+ }
5345
+ ],
5346
+ "stateMutability": "view",
5347
+ "type": "function"
5348
+ },
4756
5349
  {
4757
5350
  "inputs": [
4758
5351
  {
@@ -4843,6 +5436,16 @@
4843
5436
  "internalType": "address",
4844
5437
  "name": "_nftimpl",
4845
5438
  "type": "address"
5439
+ },
5440
+ {
5441
+ "internalType": "address",
5442
+ "name": "_feeRecipient",
5443
+ "type": "address"
5444
+ },
5445
+ {
5446
+ "internalType": "uint32",
5447
+ "name": "_feeBps",
5448
+ "type": "uint32"
4846
5449
  }
4847
5450
  ],
4848
5451
  "name": "initialize",
@@ -4973,6 +5576,24 @@
4973
5576
  "stateMutability": "nonpayable",
4974
5577
  "type": "function"
4975
5578
  },
5579
+ {
5580
+ "inputs": [
5581
+ {
5582
+ "internalType": "address",
5583
+ "name": "_feeRecipient",
5584
+ "type": "address"
5585
+ },
5586
+ {
5587
+ "internalType": "uint32",
5588
+ "name": "_feeBps",
5589
+ "type": "uint32"
5590
+ }
5591
+ ],
5592
+ "name": "setFeeInfo",
5593
+ "outputs": [],
5594
+ "stateMutability": "nonpayable",
5595
+ "type": "function"
5596
+ },
4976
5597
  {
4977
5598
  "inputs": [
4978
5599
  {
@@ -5073,7 +5694,7 @@
5073
5694
  ]
5074
5695
  },
5075
5696
  "DirectPaymentsFactory_Implementation": {
5076
- "address": "0x9F4362beB6e6a464192154926Dd7CeA0F2780277",
5697
+ "address": "0x278450342505573460F6456100f694Ae5Ec2C0D7",
5077
5698
  "abi": [
5078
5699
  {
5079
5700
  "inputs": [],
@@ -5326,6 +5947,94 @@
5326
5947
  "stateMutability": "nonpayable",
5327
5948
  "type": "function"
5328
5949
  },
5950
+ {
5951
+ "inputs": [
5952
+ {
5953
+ "internalType": "string",
5954
+ "name": "_projectId",
5955
+ "type": "string"
5956
+ },
5957
+ {
5958
+ "internalType": "string",
5959
+ "name": "_ipfs",
5960
+ "type": "string"
5961
+ },
5962
+ {
5963
+ "components": [
5964
+ {
5965
+ "internalType": "uint32",
5966
+ "name": "nftType",
5967
+ "type": "uint32"
5968
+ },
5969
+ {
5970
+ "internalType": "uint16[]",
5971
+ "name": "validEvents",
5972
+ "type": "uint16[]"
5973
+ },
5974
+ {
5975
+ "internalType": "uint128[]",
5976
+ "name": "rewardPerEvent",
5977
+ "type": "uint128[]"
5978
+ },
5979
+ {
5980
+ "internalType": "address",
5981
+ "name": "manager",
5982
+ "type": "address"
5983
+ },
5984
+ {
5985
+ "internalType": "contract IMembersValidator",
5986
+ "name": "membersValidator",
5987
+ "type": "address"
5988
+ },
5989
+ {
5990
+ "internalType": "contract IIdentityV2",
5991
+ "name": "uniquenessValidator",
5992
+ "type": "address"
5993
+ },
5994
+ {
5995
+ "internalType": "contract IERC20Upgradeable",
5996
+ "name": "rewardToken",
5997
+ "type": "address"
5998
+ }
5999
+ ],
6000
+ "internalType": "struct DirectPaymentsPool.PoolSettings",
6001
+ "name": "_settings",
6002
+ "type": "tuple"
6003
+ },
6004
+ {
6005
+ "components": [
6006
+ {
6007
+ "internalType": "uint256",
6008
+ "name": "maxTotalPerMonth",
6009
+ "type": "uint256"
6010
+ },
6011
+ {
6012
+ "internalType": "uint256",
6013
+ "name": "maxMemberPerMonth",
6014
+ "type": "uint256"
6015
+ },
6016
+ {
6017
+ "internalType": "uint256",
6018
+ "name": "maxMemberPerDay",
6019
+ "type": "uint256"
6020
+ }
6021
+ ],
6022
+ "internalType": "struct DirectPaymentsPool.SafetyLimits",
6023
+ "name": "_limits",
6024
+ "type": "tuple"
6025
+ }
6026
+ ],
6027
+ "name": "createBeaconPool",
6028
+ "outputs": [
6029
+ {
6030
+ "internalType": "contract DirectPaymentsPool",
6031
+ "name": "pool",
6032
+ "type": "address"
6033
+ }
6034
+ ],
6035
+ "stateMutability": "nonpayable",
6036
+ "type": "function"
6037
+ },
5329
6038
  {
5330
6039
  "inputs": [
5331
6040
  {
@@ -5411,7 +6120,33 @@
5411
6120
  "type": "address"
5412
6121
  }
5413
6122
  ],
5414
- "stateMutability": "nonpayable",
6123
+ "stateMutability": "nonpayable",
6124
+ "type": "function"
6125
+ },
6126
+ {
6127
+ "inputs": [],
6128
+ "name": "feeBps",
6129
+ "outputs": [
6130
+ {
6131
+ "internalType": "uint32",
6132
+ "name": "",
6133
+ "type": "uint32"
6134
+ }
6135
+ ],
6136
+ "stateMutability": "view",
6137
+ "type": "function"
6138
+ },
6139
+ {
6140
+ "inputs": [],
6141
+ "name": "feeRecipient",
6142
+ "outputs": [
6143
+ {
6144
+ "internalType": "address",
6145
+ "name": "",
6146
+ "type": "address"
6147
+ }
6148
+ ],
6149
+ "stateMutability": "view",
5415
6150
  "type": "function"
5416
6151
  },
5417
6152
  {
@@ -5504,6 +6239,16 @@
5504
6239
  "internalType": "address",
5505
6240
  "name": "_nftimpl",
5506
6241
  "type": "address"
6242
+ },
6243
+ {
6244
+ "internalType": "address",
6245
+ "name": "_feeRecipient",
6246
+ "type": "address"
6247
+ },
6248
+ {
6249
+ "internalType": "uint32",
6250
+ "name": "_feeBps",
6251
+ "type": "uint32"
5507
6252
  }
5508
6253
  ],
5509
6254
  "name": "initialize",
@@ -5634,6 +6379,24 @@
5634
6379
  "stateMutability": "nonpayable",
5635
6380
  "type": "function"
5636
6381
  },
6382
+ {
6383
+ "inputs": [
6384
+ {
6385
+ "internalType": "address",
6386
+ "name": "_feeRecipient",
6387
+ "type": "address"
6388
+ },
6389
+ {
6390
+ "internalType": "uint32",
6391
+ "name": "_feeBps",
6392
+ "type": "uint32"
6393
+ }
6394
+ ],
6395
+ "name": "setFeeInfo",
6396
+ "outputs": [],
6397
+ "stateMutability": "nonpayable",
6398
+ "type": "function"
6399
+ },
5637
6400
  {
5638
6401
  "inputs": [
5639
6402
  {
@@ -5792,7 +6555,7 @@
5792
6555
  ]
5793
6556
  },
5794
6557
  "DirectPaymentsPool": {
5795
- "address": "0xE2CeeFB08f6729D8Ef764658750ce412B391a900",
6558
+ "address": "0x2f9746AE2001733A0aaf0F7c63e465245dC446cf",
5796
6559
  "abi": [
5797
6560
  {
5798
6561
  "inputs": [
@@ -5821,6 +6584,33 @@
5821
6584
  "name": "ALREADY_CLAIMED",
5822
6585
  "type": "error"
5823
6586
  },
6587
+ {
6588
+ "inputs": [
6589
+ {
6590
+ "internalType": "int96",
6591
+ "name": "curFeeRate",
6592
+ "type": "int96"
6593
+ },
6594
+ {
6595
+ "internalType": "int96",
6596
+ "name": "newFeeRate",
6597
+ "type": "int96"
6598
+ }
6599
+ ],
6600
+ "name": "FEE_FLOW_FAILED",
6601
+ "type": "error"
6602
+ },
6603
+ {
6604
+ "inputs": [
6605
+ {
6606
+ "internalType": "int96",
6607
+ "name": "flowRate",
6608
+ "type": "int96"
6609
+ }
6610
+ ],
6611
+ "name": "MIN_FLOWRATE",
6612
+ "type": "error"
6613
+ },
5824
6614
  {
5825
6615
  "inputs": [
5826
6616
  {
@@ -5958,6 +6748,52 @@
5958
6748
  "name": "BeaconUpgraded",
5959
6749
  "type": "event"
5960
6750
  },
6751
+ {
6752
+ "anonymous": false,
6753
+ "inputs": [
6754
+ {
6755
+ "indexed": true,
6756
+ "internalType": "uint256",
6757
+ "name": "tokenId",
6758
+ "type": "uint256"
6759
+ },
6760
+ {
6761
+ "components": [
6762
+ {
6763
+ "internalType": "uint16",
6764
+ "name": "subtype",
6765
+ "type": "uint16"
6766
+ },
6767
+ {
6768
+ "internalType": "uint32",
6769
+ "name": "timestamp",
6770
+ "type": "uint32"
6771
+ },
6772
+ {
6773
+ "internalType": "uint256",
6774
+ "name": "quantity",
6775
+ "type": "uint256"
6776
+ },
6777
+ {
6778
+ "internalType": "string",
6779
+ "name": "eventUri",
6780
+ "type": "string"
6781
+ },
6782
+ {
6783
+ "internalType": "address[]",
6784
+ "name": "contributers",
6785
+ "type": "address[]"
6786
+ }
6787
+ ],
6788
+ "indexed": false,
6789
+ "internalType": "struct ProvableNFT.EventData",
6790
+ "name": "eventData",
6791
+ "type": "tuple"
6792
+ }
6793
+ ],
6794
+ "name": "EventRewardClaimed",
6795
+ "type": "event"
6796
+ },
5961
6797
  {
5962
6798
  "anonymous": false,
5963
6799
  "inputs": [
@@ -5997,6 +6833,25 @@
5997
6833
  "name": "MemberRemoved",
5998
6834
  "type": "event"
5999
6835
  },
6836
+ {
6837
+ "anonymous": false,
6838
+ "inputs": [
6839
+ {
6840
+ "indexed": true,
6841
+ "internalType": "uint256",
6842
+ "name": "tokenId",
6843
+ "type": "uint256"
6844
+ },
6845
+ {
6846
+ "indexed": false,
6847
+ "internalType": "uint256",
6848
+ "name": "totalRewards",
6849
+ "type": "uint256"
6850
+ }
6851
+ ],
6852
+ "name": "NFTClaimed",
6853
+ "type": "event"
6854
+ },
6000
6855
  {
6001
6856
  "anonymous": false,
6002
6857
  "inputs": [
@@ -6077,25 +6932,6 @@
6077
6932
  "name": "PoolSettingsChanged",
6078
6933
  "type": "event"
6079
6934
  },
6080
- {
6081
- "anonymous": false,
6082
- "inputs": [
6083
- {
6084
- "indexed": true,
6085
- "internalType": "uint256",
6086
- "name": "tokenId",
6087
- "type": "uint256"
6088
- },
6089
- {
6090
- "indexed": false,
6091
- "internalType": "uint256",
6092
- "name": "totalRewards",
6093
- "type": "uint256"
6094
- }
6095
- ],
6096
- "name": "RewardClaimed",
6097
- "type": "event"
6098
- },
6099
6935
  {
6100
6936
  "anonymous": false,
6101
6937
  "inputs": [
@@ -6180,12 +7016,24 @@
6180
7016
  "name": "supporter",
6181
7017
  "type": "address"
6182
7018
  },
7019
+ {
7020
+ "indexed": false,
7021
+ "internalType": "uint256",
7022
+ "name": "previousContribution",
7023
+ "type": "uint256"
7024
+ },
6183
7025
  {
6184
7026
  "indexed": false,
6185
7027
  "internalType": "uint256",
6186
7028
  "name": "contribution",
6187
7029
  "type": "uint256"
6188
7030
  },
7031
+ {
7032
+ "indexed": false,
7033
+ "internalType": "int96",
7034
+ "name": "previousFlowRate",
7035
+ "type": "int96"
7036
+ },
6189
7037
  {
6190
7038
  "indexed": false,
6191
7039
  "internalType": "int96",
@@ -6194,9 +7042,9 @@
6194
7042
  },
6195
7043
  {
6196
7044
  "indexed": false,
6197
- "internalType": "uint256",
6198
- "name": "lastUpdated",
6199
- "type": "uint256"
7045
+ "internalType": "bool",
7046
+ "name": "isFlowUpdate",
7047
+ "type": "bool"
6200
7048
  }
6201
7049
  ],
6202
7050
  "name": "SupporterUpdated",
@@ -6267,6 +7115,19 @@
6267
7115
  "stateMutability": "view",
6268
7116
  "type": "function"
6269
7117
  },
7118
+ {
7119
+ "inputs": [],
7120
+ "name": "MIN_FLOW_RATE",
7121
+ "outputs": [
7122
+ {
7123
+ "internalType": "int96",
7124
+ "name": "",
7125
+ "type": "int96"
7126
+ }
7127
+ ],
7128
+ "stateMutability": "view",
7129
+ "type": "function"
7130
+ },
6270
7131
  {
6271
7132
  "inputs": [
6272
7133
  {
@@ -6534,6 +7395,24 @@
6534
7395
  "stateMutability": "view",
6535
7396
  "type": "function"
6536
7397
  },
7398
+ {
7399
+ "inputs": [],
7400
+ "name": "cfaV1",
7401
+ "outputs": [
7402
+ {
7403
+ "internalType": "contract ISuperfluid",
7404
+ "name": "host",
7405
+ "type": "address"
7406
+ },
7407
+ {
7408
+ "internalType": "contract IConstantFlowAgreementV1",
7409
+ "name": "cfa",
7410
+ "type": "address"
7411
+ }
7412
+ ],
7413
+ "stateMutability": "view",
7414
+ "type": "function"
7415
+ },
6537
7416
  {
6538
7417
  "inputs": [
6539
7418
  {
@@ -6634,32 +7513,60 @@
6634
7513
  "type": "function"
6635
7514
  },
6636
7515
  {
6637
- "inputs": [],
6638
- "name": "createdBy",
6639
- "outputs": [
7516
+ "inputs": [
6640
7517
  {
6641
7518
  "internalType": "address",
6642
- "name": "",
7519
+ "name": "_user",
6643
7520
  "type": "address"
6644
7521
  }
6645
7522
  ],
7523
+ "name": "getRealtimeContribution",
7524
+ "outputs": [
7525
+ {
7526
+ "internalType": "uint256",
7527
+ "name": "",
7528
+ "type": "uint256"
7529
+ }
7530
+ ],
6646
7531
  "stateMutability": "view",
6647
7532
  "type": "function"
6648
7533
  },
6649
7534
  {
6650
- "inputs": [
7535
+ "inputs": [],
7536
+ "name": "getRealtimeStats",
7537
+ "outputs": [
6651
7538
  {
6652
- "internalType": "address",
6653
- "name": "_user",
6654
- "type": "address"
7539
+ "internalType": "uint256",
7540
+ "name": "netIncome",
7541
+ "type": "uint256"
7542
+ },
7543
+ {
7544
+ "internalType": "uint256",
7545
+ "name": "totalFees",
7546
+ "type": "uint256"
7547
+ },
7548
+ {
7549
+ "internalType": "int96",
7550
+ "name": "incomeFlowRate",
7551
+ "type": "int96"
7552
+ },
7553
+ {
7554
+ "internalType": "int96",
7555
+ "name": "feeRate",
7556
+ "type": "int96"
6655
7557
  }
6656
7558
  ],
6657
- "name": "getRealtimeContribution",
7559
+ "stateMutability": "view",
7560
+ "type": "function"
7561
+ },
7562
+ {
7563
+ "inputs": [],
7564
+ "name": "getRegistry",
6658
7565
  "outputs": [
6659
7566
  {
6660
- "internalType": "uint256",
7567
+ "internalType": "contract DirectPaymentsFactory",
6661
7568
  "name": "",
6662
- "type": "uint256"
7569
+ "type": "address"
6663
7570
  }
6664
7571
  ],
6665
7572
  "stateMutability": "view",
@@ -6898,6 +7805,11 @@
6898
7805
  "internalType": "struct DirectPaymentsPool.SafetyLimits",
6899
7806
  "name": "_limits",
6900
7807
  "type": "tuple"
7808
+ },
7809
+ {
7810
+ "internalType": "contract DirectPaymentsFactory",
7811
+ "name": "_registry",
7812
+ "type": "address"
6901
7813
  }
6902
7814
  ],
6903
7815
  "name": "initialize",
@@ -7166,6 +8078,19 @@
7166
8078
  "stateMutability": "view",
7167
8079
  "type": "function"
7168
8080
  },
8081
+ {
8082
+ "inputs": [],
8083
+ "name": "registry",
8084
+ "outputs": [
8085
+ {
8086
+ "internalType": "contract DirectPaymentsFactory",
8087
+ "name": "",
8088
+ "type": "address"
8089
+ }
8090
+ ],
8091
+ "stateMutability": "view",
8092
+ "type": "function"
8093
+ },
7169
8094
  {
7170
8095
  "inputs": [
7171
8096
  {
@@ -7248,6 +8173,39 @@
7248
8173
  "stateMutability": "view",
7249
8174
  "type": "function"
7250
8175
  },
8176
+ {
8177
+ "inputs": [],
8178
+ "name": "stats",
8179
+ "outputs": [
8180
+ {
8181
+ "internalType": "uint256",
8182
+ "name": "netIncome",
8183
+ "type": "uint256"
8184
+ },
8185
+ {
8186
+ "internalType": "uint256",
8187
+ "name": "totalFees",
8188
+ "type": "uint256"
8189
+ },
8190
+ {
8191
+ "internalType": "uint256",
8192
+ "name": "lastUpdate",
8193
+ "type": "uint256"
8194
+ },
8195
+ {
8196
+ "internalType": "address",
8197
+ "name": "lastFeeRecipient",
8198
+ "type": "address"
8199
+ },
8200
+ {
8201
+ "internalType": "int96",
8202
+ "name": "lastIncomeRate",
8203
+ "type": "int96"
8204
+ }
8205
+ ],
8206
+ "stateMutability": "view",
8207
+ "type": "function"
8208
+ },
7251
8209
  {
7252
8210
  "inputs": [],
7253
8211
  "name": "superToken",