@gooddollar/goodcollective-contracts 1.1.0 → 1.3.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.
- package/README.md +14 -1
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +23 -15
- package/contracts/DirectPayments/DirectPaymentsLibrary.sol +54 -0
- package/contracts/DirectPayments/DirectPaymentsPool.sol +25 -41
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +89 -61
- package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +12 -0
- package/contracts/Interfaces.sol +25 -0
- package/contracts/UBI/UBIPool.sol +103 -90
- package/contracts/UBI/UBIPoolFactory.sol +24 -10
- package/contracts/test/HelperLibraryTest.sol +16 -0
- package/contracts/utils/HelperLibrary.sol +109 -8
- package/package.json +4 -3
- package/releases/deployment.json +22797 -431
- package/typechain-types/@uniswap/index.ts +0 -2
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +56 -9
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +187 -9
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +150 -6
- package/typechain-types/contracts/{UBI/MultiClaimModule.sol/IClaimable.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts} +24 -23
- package/typechain-types/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/contracts/GoodCollective/index.ts +3 -2
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2.ts +1 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator.ts +1 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
- package/typechain-types/contracts/UBI/{UBIPool.sol/UBIPool.ts → UBIPool.ts} +325 -78
- package/typechain-types/contracts/UBI/UBIPoolFactory.ts +95 -33
- package/typechain-types/contracts/UBI/index.ts +1 -4
- package/typechain-types/contracts/index.ts +4 -0
- package/typechain-types/contracts/test/HelperLibraryTest.ts +147 -0
- package/typechain-types/{@uniswap/v3-periphery/contracts/interfaces → contracts/test}/index.ts +1 -1
- package/typechain-types/contracts/utils/HelperLibrary.ts +46 -4
- package/typechain-types/factories/@uniswap/index.ts +0 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +25 -2
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +128 -1
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +105 -1
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts +48 -0
- package/typechain-types/factories/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/IRegistry__factory.ts +1 -1
- package/typechain-types/factories/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/factories/contracts/GoodCollective/index.ts +2 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2__factory.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator__factory.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +76 -4
- package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +2052 -0
- package/typechain-types/factories/contracts/UBI/index.ts +1 -2
- package/typechain-types/factories/contracts/index.ts +2 -0
- package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +154 -0
- package/typechain-types/{@uniswap/v3-periphery → factories/contracts/test}/index.ts +1 -2
- package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +31 -1
- package/typechain-types/hardhat.d.ts +18 -36
- package/typechain-types/index.ts +10 -14
- package/contracts/UBI/MultiClaimModule.sol +0 -78
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +0 -115
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
- package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +0 -5
- package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +0 -369
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.ts +0 -1000
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +0 -196
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +0 -242
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +0 -60
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +0 -263
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/index.ts +0 -4
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp__factory.ts +0 -728
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +0 -33
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +0 -84
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +0 -150
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +0 -1835
- /package/typechain-types/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/IRegistry.ts +0 -0
|
@@ -62,6 +62,7 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
62
62
|
"beforeAgreementTerminated(address,address,bytes32,bytes,bytes)": FunctionFragment;
|
|
63
63
|
"beforeAgreementUpdated(address,address,bytes32,bytes,bytes)": FunctionFragment;
|
|
64
64
|
"cfaV1()": FunctionFragment;
|
|
65
|
+
"getManagerFee()": FunctionFragment;
|
|
65
66
|
"getRealtimeContribution(address)": FunctionFragment;
|
|
66
67
|
"getRealtimeStats()": FunctionFragment;
|
|
67
68
|
"getRegistry()": FunctionFragment;
|
|
@@ -72,6 +73,7 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
72
73
|
"stats()": FunctionFragment;
|
|
73
74
|
"superToken()": FunctionFragment;
|
|
74
75
|
"support(address,uint256,bytes)": FunctionFragment;
|
|
76
|
+
"supportWithSwap(address,(address,uint256,uint256,uint256,bytes),bytes)": FunctionFragment;
|
|
75
77
|
"supporters(address)": FunctionFragment;
|
|
76
78
|
"swapRouter()": FunctionFragment;
|
|
77
79
|
};
|
|
@@ -87,6 +89,7 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
87
89
|
| "beforeAgreementTerminated"
|
|
88
90
|
| "beforeAgreementUpdated"
|
|
89
91
|
| "cfaV1"
|
|
92
|
+
| "getManagerFee"
|
|
90
93
|
| "getRealtimeContribution"
|
|
91
94
|
| "getRealtimeStats"
|
|
92
95
|
| "getRegistry"
|
|
@@ -97,6 +100,7 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
97
100
|
| "stats"
|
|
98
101
|
| "superToken"
|
|
99
102
|
| "support"
|
|
103
|
+
| "supportWithSwap"
|
|
100
104
|
| "supporters"
|
|
101
105
|
| "swapRouter"
|
|
102
106
|
): FunctionFragment;
|
|
@@ -173,6 +177,10 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
173
177
|
]
|
|
174
178
|
): string;
|
|
175
179
|
encodeFunctionData(functionFragment: "cfaV1", values?: undefined): string;
|
|
180
|
+
encodeFunctionData(
|
|
181
|
+
functionFragment: "getManagerFee",
|
|
182
|
+
values?: undefined
|
|
183
|
+
): string;
|
|
176
184
|
encodeFunctionData(
|
|
177
185
|
functionFragment: "getRealtimeContribution",
|
|
178
186
|
values: [PromiseOrValue<string>]
|
|
@@ -219,6 +227,14 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
219
227
|
PromiseOrValue<BytesLike>
|
|
220
228
|
]
|
|
221
229
|
): string;
|
|
230
|
+
encodeFunctionData(
|
|
231
|
+
functionFragment: "supportWithSwap",
|
|
232
|
+
values: [
|
|
233
|
+
PromiseOrValue<string>,
|
|
234
|
+
HelperLibrary.SwapDataStruct,
|
|
235
|
+
PromiseOrValue<BytesLike>
|
|
236
|
+
]
|
|
237
|
+
): string;
|
|
222
238
|
encodeFunctionData(
|
|
223
239
|
functionFragment: "supporters",
|
|
224
240
|
values: [PromiseOrValue<string>]
|
|
@@ -258,6 +274,10 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
258
274
|
data: BytesLike
|
|
259
275
|
): Result;
|
|
260
276
|
decodeFunctionResult(functionFragment: "cfaV1", data: BytesLike): Result;
|
|
277
|
+
decodeFunctionResult(
|
|
278
|
+
functionFragment: "getManagerFee",
|
|
279
|
+
data: BytesLike
|
|
280
|
+
): Result;
|
|
261
281
|
decodeFunctionResult(
|
|
262
282
|
functionFragment: "getRealtimeContribution",
|
|
263
283
|
data: BytesLike
|
|
@@ -283,6 +303,10 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
283
303
|
decodeFunctionResult(functionFragment: "stats", data: BytesLike): Result;
|
|
284
304
|
decodeFunctionResult(functionFragment: "superToken", data: BytesLike): Result;
|
|
285
305
|
decodeFunctionResult(functionFragment: "support", data: BytesLike): Result;
|
|
306
|
+
decodeFunctionResult(
|
|
307
|
+
functionFragment: "supportWithSwap",
|
|
308
|
+
data: BytesLike
|
|
309
|
+
): Result;
|
|
286
310
|
decodeFunctionResult(functionFragment: "supporters", data: BytesLike): Result;
|
|
287
311
|
decodeFunctionResult(functionFragment: "swapRouter", data: BytesLike): Result;
|
|
288
312
|
|
|
@@ -401,6 +425,10 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
401
425
|
overrides?: CallOverrides
|
|
402
426
|
): Promise<[string, string] & { host: string; cfa: string }>;
|
|
403
427
|
|
|
428
|
+
getManagerFee(
|
|
429
|
+
overrides?: CallOverrides
|
|
430
|
+
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
431
|
+
|
|
404
432
|
getRealtimeContribution(
|
|
405
433
|
_user: PromiseOrValue<string>,
|
|
406
434
|
overrides?: CallOverrides
|
|
@@ -409,11 +437,22 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
409
437
|
getRealtimeStats(
|
|
410
438
|
overrides?: CallOverrides
|
|
411
439
|
): Promise<
|
|
412
|
-
[
|
|
440
|
+
[
|
|
441
|
+
BigNumber,
|
|
442
|
+
BigNumber,
|
|
443
|
+
BigNumber,
|
|
444
|
+
BigNumber,
|
|
445
|
+
BigNumber,
|
|
446
|
+
BigNumber,
|
|
447
|
+
BigNumber
|
|
448
|
+
] & {
|
|
413
449
|
netIncome: BigNumber;
|
|
414
450
|
totalFees: BigNumber;
|
|
451
|
+
protocolFees: BigNumber;
|
|
452
|
+
managerFees: BigNumber;
|
|
415
453
|
incomeFlowRate: BigNumber;
|
|
416
454
|
feeRate: BigNumber;
|
|
455
|
+
managerFeeRate: BigNumber;
|
|
417
456
|
}
|
|
418
457
|
>;
|
|
419
458
|
|
|
@@ -443,12 +482,24 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
443
482
|
stats(
|
|
444
483
|
overrides?: CallOverrides
|
|
445
484
|
): Promise<
|
|
446
|
-
[
|
|
485
|
+
[
|
|
486
|
+
BigNumber,
|
|
487
|
+
BigNumber,
|
|
488
|
+
BigNumber,
|
|
489
|
+
string,
|
|
490
|
+
BigNumber,
|
|
491
|
+
string,
|
|
492
|
+
BigNumber,
|
|
493
|
+
BigNumber
|
|
494
|
+
] & {
|
|
447
495
|
netIncome: BigNumber;
|
|
448
496
|
totalFees: BigNumber;
|
|
449
497
|
lastUpdate: BigNumber;
|
|
450
498
|
lastFeeRecipient: string;
|
|
451
499
|
lastIncomeRate: BigNumber;
|
|
500
|
+
lastManagerFeeRecipient: string;
|
|
501
|
+
protocolFees: BigNumber;
|
|
502
|
+
managerFees: BigNumber;
|
|
452
503
|
}
|
|
453
504
|
>;
|
|
454
505
|
|
|
@@ -461,6 +512,13 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
461
512
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
462
513
|
): Promise<ContractTransaction>;
|
|
463
514
|
|
|
515
|
+
supportWithSwap(
|
|
516
|
+
_sender: PromiseOrValue<string>,
|
|
517
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
518
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
519
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
520
|
+
): Promise<ContractTransaction>;
|
|
521
|
+
|
|
464
522
|
supporters(
|
|
465
523
|
arg0: PromiseOrValue<string>,
|
|
466
524
|
overrides?: CallOverrides
|
|
@@ -540,6 +598,10 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
540
598
|
overrides?: CallOverrides
|
|
541
599
|
): Promise<[string, string] & { host: string; cfa: string }>;
|
|
542
600
|
|
|
601
|
+
getManagerFee(
|
|
602
|
+
overrides?: CallOverrides
|
|
603
|
+
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
604
|
+
|
|
543
605
|
getRealtimeContribution(
|
|
544
606
|
_user: PromiseOrValue<string>,
|
|
545
607
|
overrides?: CallOverrides
|
|
@@ -548,11 +610,22 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
548
610
|
getRealtimeStats(
|
|
549
611
|
overrides?: CallOverrides
|
|
550
612
|
): Promise<
|
|
551
|
-
[
|
|
613
|
+
[
|
|
614
|
+
BigNumber,
|
|
615
|
+
BigNumber,
|
|
616
|
+
BigNumber,
|
|
617
|
+
BigNumber,
|
|
618
|
+
BigNumber,
|
|
619
|
+
BigNumber,
|
|
620
|
+
BigNumber
|
|
621
|
+
] & {
|
|
552
622
|
netIncome: BigNumber;
|
|
553
623
|
totalFees: BigNumber;
|
|
624
|
+
protocolFees: BigNumber;
|
|
625
|
+
managerFees: BigNumber;
|
|
554
626
|
incomeFlowRate: BigNumber;
|
|
555
627
|
feeRate: BigNumber;
|
|
628
|
+
managerFeeRate: BigNumber;
|
|
556
629
|
}
|
|
557
630
|
>;
|
|
558
631
|
|
|
@@ -582,12 +655,24 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
582
655
|
stats(
|
|
583
656
|
overrides?: CallOverrides
|
|
584
657
|
): Promise<
|
|
585
|
-
[
|
|
658
|
+
[
|
|
659
|
+
BigNumber,
|
|
660
|
+
BigNumber,
|
|
661
|
+
BigNumber,
|
|
662
|
+
string,
|
|
663
|
+
BigNumber,
|
|
664
|
+
string,
|
|
665
|
+
BigNumber,
|
|
666
|
+
BigNumber
|
|
667
|
+
] & {
|
|
586
668
|
netIncome: BigNumber;
|
|
587
669
|
totalFees: BigNumber;
|
|
588
670
|
lastUpdate: BigNumber;
|
|
589
671
|
lastFeeRecipient: string;
|
|
590
672
|
lastIncomeRate: BigNumber;
|
|
673
|
+
lastManagerFeeRecipient: string;
|
|
674
|
+
protocolFees: BigNumber;
|
|
675
|
+
managerFees: BigNumber;
|
|
591
676
|
}
|
|
592
677
|
>;
|
|
593
678
|
|
|
@@ -600,6 +685,13 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
600
685
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
601
686
|
): Promise<ContractTransaction>;
|
|
602
687
|
|
|
688
|
+
supportWithSwap(
|
|
689
|
+
_sender: PromiseOrValue<string>,
|
|
690
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
691
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
692
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
693
|
+
): Promise<ContractTransaction>;
|
|
694
|
+
|
|
603
695
|
supporters(
|
|
604
696
|
arg0: PromiseOrValue<string>,
|
|
605
697
|
overrides?: CallOverrides
|
|
@@ -679,6 +771,10 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
679
771
|
overrides?: CallOverrides
|
|
680
772
|
): Promise<[string, string] & { host: string; cfa: string }>;
|
|
681
773
|
|
|
774
|
+
getManagerFee(
|
|
775
|
+
overrides?: CallOverrides
|
|
776
|
+
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
777
|
+
|
|
682
778
|
getRealtimeContribution(
|
|
683
779
|
_user: PromiseOrValue<string>,
|
|
684
780
|
overrides?: CallOverrides
|
|
@@ -687,11 +783,22 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
687
783
|
getRealtimeStats(
|
|
688
784
|
overrides?: CallOverrides
|
|
689
785
|
): Promise<
|
|
690
|
-
[
|
|
786
|
+
[
|
|
787
|
+
BigNumber,
|
|
788
|
+
BigNumber,
|
|
789
|
+
BigNumber,
|
|
790
|
+
BigNumber,
|
|
791
|
+
BigNumber,
|
|
792
|
+
BigNumber,
|
|
793
|
+
BigNumber
|
|
794
|
+
] & {
|
|
691
795
|
netIncome: BigNumber;
|
|
692
796
|
totalFees: BigNumber;
|
|
797
|
+
protocolFees: BigNumber;
|
|
798
|
+
managerFees: BigNumber;
|
|
693
799
|
incomeFlowRate: BigNumber;
|
|
694
800
|
feeRate: BigNumber;
|
|
801
|
+
managerFeeRate: BigNumber;
|
|
695
802
|
}
|
|
696
803
|
>;
|
|
697
804
|
|
|
@@ -721,12 +828,24 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
721
828
|
stats(
|
|
722
829
|
overrides?: CallOverrides
|
|
723
830
|
): Promise<
|
|
724
|
-
[
|
|
831
|
+
[
|
|
832
|
+
BigNumber,
|
|
833
|
+
BigNumber,
|
|
834
|
+
BigNumber,
|
|
835
|
+
string,
|
|
836
|
+
BigNumber,
|
|
837
|
+
string,
|
|
838
|
+
BigNumber,
|
|
839
|
+
BigNumber
|
|
840
|
+
] & {
|
|
725
841
|
netIncome: BigNumber;
|
|
726
842
|
totalFees: BigNumber;
|
|
727
843
|
lastUpdate: BigNumber;
|
|
728
844
|
lastFeeRecipient: string;
|
|
729
845
|
lastIncomeRate: BigNumber;
|
|
846
|
+
lastManagerFeeRecipient: string;
|
|
847
|
+
protocolFees: BigNumber;
|
|
848
|
+
managerFees: BigNumber;
|
|
730
849
|
}
|
|
731
850
|
>;
|
|
732
851
|
|
|
@@ -739,6 +858,13 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
739
858
|
overrides?: CallOverrides
|
|
740
859
|
): Promise<string>;
|
|
741
860
|
|
|
861
|
+
supportWithSwap(
|
|
862
|
+
_sender: PromiseOrValue<string>,
|
|
863
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
864
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
865
|
+
overrides?: CallOverrides
|
|
866
|
+
): Promise<string>;
|
|
867
|
+
|
|
742
868
|
supporters(
|
|
743
869
|
arg0: PromiseOrValue<string>,
|
|
744
870
|
overrides?: CallOverrides
|
|
@@ -836,6 +962,8 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
836
962
|
|
|
837
963
|
cfaV1(overrides?: CallOverrides): Promise<BigNumber>;
|
|
838
964
|
|
|
965
|
+
getManagerFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
966
|
+
|
|
839
967
|
getRealtimeContribution(
|
|
840
968
|
_user: PromiseOrValue<string>,
|
|
841
969
|
overrides?: CallOverrides
|
|
@@ -877,6 +1005,13 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
877
1005
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
878
1006
|
): Promise<BigNumber>;
|
|
879
1007
|
|
|
1008
|
+
supportWithSwap(
|
|
1009
|
+
_sender: PromiseOrValue<string>,
|
|
1010
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
1011
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
1012
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1013
|
+
): Promise<BigNumber>;
|
|
1014
|
+
|
|
880
1015
|
supporters(
|
|
881
1016
|
arg0: PromiseOrValue<string>,
|
|
882
1017
|
overrides?: CallOverrides
|
|
@@ -949,6 +1084,8 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
949
1084
|
|
|
950
1085
|
cfaV1(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
951
1086
|
|
|
1087
|
+
getManagerFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1088
|
+
|
|
952
1089
|
getRealtimeContribution(
|
|
953
1090
|
_user: PromiseOrValue<string>,
|
|
954
1091
|
overrides?: CallOverrides
|
|
@@ -990,6 +1127,13 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
990
1127
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
991
1128
|
): Promise<PopulatedTransaction>;
|
|
992
1129
|
|
|
1130
|
+
supportWithSwap(
|
|
1131
|
+
_sender: PromiseOrValue<string>,
|
|
1132
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
1133
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
1134
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1135
|
+
): Promise<PopulatedTransaction>;
|
|
1136
|
+
|
|
993
1137
|
supporters(
|
|
994
1138
|
arg0: PromiseOrValue<string>,
|
|
995
1139
|
overrides?: CallOverrides
|
|
@@ -6,8 +6,6 @@ import type {
|
|
|
6
6
|
BigNumber,
|
|
7
7
|
BytesLike,
|
|
8
8
|
CallOverrides,
|
|
9
|
-
ContractTransaction,
|
|
10
|
-
Overrides,
|
|
11
9
|
PopulatedTransaction,
|
|
12
10
|
Signer,
|
|
13
11
|
utils,
|
|
@@ -19,29 +17,34 @@ import type {
|
|
|
19
17
|
TypedEvent,
|
|
20
18
|
TypedListener,
|
|
21
19
|
OnEvent,
|
|
22
|
-
PromiseOrValue,
|
|
23
20
|
} from "../../../common";
|
|
24
21
|
|
|
25
|
-
export interface
|
|
22
|
+
export interface IGoodCollectiveSuperAppInterface extends utils.Interface {
|
|
26
23
|
functions: {
|
|
27
|
-
"
|
|
24
|
+
"getAdminFee()": FunctionFragment;
|
|
28
25
|
};
|
|
29
26
|
|
|
30
|
-
getFunction(nameOrSignatureOrTopic: "
|
|
27
|
+
getFunction(nameOrSignatureOrTopic: "getAdminFee"): FunctionFragment;
|
|
31
28
|
|
|
32
|
-
encodeFunctionData(
|
|
29
|
+
encodeFunctionData(
|
|
30
|
+
functionFragment: "getAdminFee",
|
|
31
|
+
values?: undefined
|
|
32
|
+
): string;
|
|
33
33
|
|
|
34
|
-
decodeFunctionResult(
|
|
34
|
+
decodeFunctionResult(
|
|
35
|
+
functionFragment: "getAdminFee",
|
|
36
|
+
data: BytesLike
|
|
37
|
+
): Result;
|
|
35
38
|
|
|
36
39
|
events: {};
|
|
37
40
|
}
|
|
38
41
|
|
|
39
|
-
export interface
|
|
42
|
+
export interface IGoodCollectiveSuperApp extends BaseContract {
|
|
40
43
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
41
44
|
attach(addressOrName: string): this;
|
|
42
45
|
deployed(): Promise<this>;
|
|
43
46
|
|
|
44
|
-
interface:
|
|
47
|
+
interface: IGoodCollectiveSuperAppInterface;
|
|
45
48
|
|
|
46
49
|
queryFilter<TEvent extends TypedEvent>(
|
|
47
50
|
event: TypedEventFilter<TEvent>,
|
|
@@ -63,30 +66,28 @@ export interface IClaimable extends BaseContract {
|
|
|
63
66
|
removeListener: OnEvent<this>;
|
|
64
67
|
|
|
65
68
|
functions: {
|
|
66
|
-
|
|
67
|
-
overrides?:
|
|
68
|
-
): Promise<
|
|
69
|
+
getAdminFee(
|
|
70
|
+
overrides?: CallOverrides
|
|
71
|
+
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
69
72
|
};
|
|
70
73
|
|
|
71
|
-
|
|
72
|
-
overrides?:
|
|
73
|
-
): Promise<
|
|
74
|
+
getAdminFee(
|
|
75
|
+
overrides?: CallOverrides
|
|
76
|
+
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
74
77
|
|
|
75
78
|
callStatic: {
|
|
76
|
-
|
|
79
|
+
getAdminFee(
|
|
80
|
+
overrides?: CallOverrides
|
|
81
|
+
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
77
82
|
};
|
|
78
83
|
|
|
79
84
|
filters: {};
|
|
80
85
|
|
|
81
86
|
estimateGas: {
|
|
82
|
-
|
|
83
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
84
|
-
): Promise<BigNumber>;
|
|
87
|
+
getAdminFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
85
88
|
};
|
|
86
89
|
|
|
87
90
|
populateTransaction: {
|
|
88
|
-
|
|
89
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
90
|
-
): Promise<PopulatedTransaction>;
|
|
91
|
+
getAdminFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
91
92
|
};
|
|
92
93
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
export type {
|
|
4
|
+
export type { IGoodCollectiveSuperApp } from "./IGoodCollectiveSuperApp";
|
|
5
5
|
export type { IRegistry } from "./IRegistry";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type * as
|
|
5
|
-
export type {
|
|
4
|
+
import type * as iGoodCollectiveSuperAppSol from "./IGoodCollectiveSuperApp.sol";
|
|
5
|
+
export type { iGoodCollectiveSuperAppSol };
|
|
6
|
+
export type { GoodCollectiveSuperApp } from "./GoodCollectiveSuperApp";
|
|
6
7
|
export type { SuperAppBaseFlow } from "./SuperAppBaseFlow";
|