@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.
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +33 -4
- package/contracts/DirectPayments/DirectPaymentsPool.sol +13 -6
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +161 -26
- package/package.json +1 -1
- package/releases/deployment.json +1035 -77
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +140 -2
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +272 -86
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/INameService.ts +102 -0
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +163 -6
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +143 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +229 -34
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/INameService__factory.ts +45 -0
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +147 -3
package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts
CHANGED
|
@@ -10,6 +10,33 @@ import type {
|
|
|
10
10
|
} from "../../../contracts/GoodCollective/GoodCollectiveSuperApp";
|
|
11
11
|
|
|
12
12
|
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "int96",
|
|
17
|
+
name: "curFeeRate",
|
|
18
|
+
type: "int96",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "int96",
|
|
22
|
+
name: "newFeeRate",
|
|
23
|
+
type: "int96",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "FEE_FLOW_FAILED",
|
|
27
|
+
type: "error",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "int96",
|
|
33
|
+
name: "flowRate",
|
|
34
|
+
type: "int96",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
name: "MIN_FLOWRATE",
|
|
38
|
+
type: "error",
|
|
39
|
+
},
|
|
13
40
|
{
|
|
14
41
|
inputs: [],
|
|
15
42
|
name: "NotAcceptedSuperToken",
|
|
@@ -60,12 +87,24 @@ const _abi = [
|
|
|
60
87
|
name: "supporter",
|
|
61
88
|
type: "address",
|
|
62
89
|
},
|
|
90
|
+
{
|
|
91
|
+
indexed: false,
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "previousContribution",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
63
96
|
{
|
|
64
97
|
indexed: false,
|
|
65
98
|
internalType: "uint256",
|
|
66
99
|
name: "contribution",
|
|
67
100
|
type: "uint256",
|
|
68
101
|
},
|
|
102
|
+
{
|
|
103
|
+
indexed: false,
|
|
104
|
+
internalType: "int96",
|
|
105
|
+
name: "previousFlowRate",
|
|
106
|
+
type: "int96",
|
|
107
|
+
},
|
|
69
108
|
{
|
|
70
109
|
indexed: false,
|
|
71
110
|
internalType: "int96",
|
|
@@ -74,9 +113,9 @@ const _abi = [
|
|
|
74
113
|
},
|
|
75
114
|
{
|
|
76
115
|
indexed: false,
|
|
77
|
-
internalType: "
|
|
78
|
-
name: "
|
|
79
|
-
type: "
|
|
116
|
+
internalType: "bool",
|
|
117
|
+
name: "isFlowUpdate",
|
|
118
|
+
type: "bool",
|
|
80
119
|
},
|
|
81
120
|
],
|
|
82
121
|
name: "SupporterUpdated",
|
|
@@ -95,6 +134,19 @@ const _abi = [
|
|
|
95
134
|
stateMutability: "view",
|
|
96
135
|
type: "function",
|
|
97
136
|
},
|
|
137
|
+
{
|
|
138
|
+
inputs: [],
|
|
139
|
+
name: "MIN_FLOW_RATE",
|
|
140
|
+
outputs: [
|
|
141
|
+
{
|
|
142
|
+
internalType: "int96",
|
|
143
|
+
name: "",
|
|
144
|
+
type: "int96",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
stateMutability: "view",
|
|
148
|
+
type: "function",
|
|
149
|
+
},
|
|
98
150
|
{
|
|
99
151
|
inputs: [
|
|
100
152
|
{
|
|
@@ -344,6 +396,24 @@ const _abi = [
|
|
|
344
396
|
stateMutability: "view",
|
|
345
397
|
type: "function",
|
|
346
398
|
},
|
|
399
|
+
{
|
|
400
|
+
inputs: [],
|
|
401
|
+
name: "cfaV1",
|
|
402
|
+
outputs: [
|
|
403
|
+
{
|
|
404
|
+
internalType: "contract ISuperfluid",
|
|
405
|
+
name: "host",
|
|
406
|
+
type: "address",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
internalType: "contract IConstantFlowAgreementV1",
|
|
410
|
+
name: "cfa",
|
|
411
|
+
type: "address",
|
|
412
|
+
},
|
|
413
|
+
],
|
|
414
|
+
stateMutability: "view",
|
|
415
|
+
type: "function",
|
|
416
|
+
},
|
|
347
417
|
{
|
|
348
418
|
inputs: [
|
|
349
419
|
{
|
|
@@ -363,6 +433,47 @@ const _abi = [
|
|
|
363
433
|
stateMutability: "view",
|
|
364
434
|
type: "function",
|
|
365
435
|
},
|
|
436
|
+
{
|
|
437
|
+
inputs: [],
|
|
438
|
+
name: "getRealtimeStats",
|
|
439
|
+
outputs: [
|
|
440
|
+
{
|
|
441
|
+
internalType: "uint256",
|
|
442
|
+
name: "netIncome",
|
|
443
|
+
type: "uint256",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
internalType: "uint256",
|
|
447
|
+
name: "totalFees",
|
|
448
|
+
type: "uint256",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
internalType: "int96",
|
|
452
|
+
name: "incomeFlowRate",
|
|
453
|
+
type: "int96",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
internalType: "int96",
|
|
457
|
+
name: "feeRate",
|
|
458
|
+
type: "int96",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
stateMutability: "view",
|
|
462
|
+
type: "function",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
inputs: [],
|
|
466
|
+
name: "getRegistry",
|
|
467
|
+
outputs: [
|
|
468
|
+
{
|
|
469
|
+
internalType: "contract DirectPaymentsFactory",
|
|
470
|
+
name: "",
|
|
471
|
+
type: "address",
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
stateMutability: "view",
|
|
475
|
+
type: "function",
|
|
476
|
+
},
|
|
366
477
|
{
|
|
367
478
|
inputs: [
|
|
368
479
|
{
|
|
@@ -480,6 +591,39 @@ const _abi = [
|
|
|
480
591
|
stateMutability: "nonpayable",
|
|
481
592
|
type: "function",
|
|
482
593
|
},
|
|
594
|
+
{
|
|
595
|
+
inputs: [],
|
|
596
|
+
name: "stats",
|
|
597
|
+
outputs: [
|
|
598
|
+
{
|
|
599
|
+
internalType: "uint256",
|
|
600
|
+
name: "netIncome",
|
|
601
|
+
type: "uint256",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
internalType: "uint256",
|
|
605
|
+
name: "totalFees",
|
|
606
|
+
type: "uint256",
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
internalType: "uint256",
|
|
610
|
+
name: "lastUpdate",
|
|
611
|
+
type: "uint256",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
internalType: "address",
|
|
615
|
+
name: "lastFeeRecipient",
|
|
616
|
+
type: "address",
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
internalType: "int96",
|
|
620
|
+
name: "lastIncomeRate",
|
|
621
|
+
type: "int96",
|
|
622
|
+
},
|
|
623
|
+
],
|
|
624
|
+
stateMutability: "view",
|
|
625
|
+
type: "function",
|
|
626
|
+
},
|
|
483
627
|
{
|
|
484
628
|
inputs: [],
|
|
485
629
|
name: "superToken",
|