@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
|
@@ -28,21 +28,21 @@ import type {
|
|
|
28
28
|
PromiseOrValue,
|
|
29
29
|
} from "../../common";
|
|
30
30
|
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
31
|
+
export type PoolSettingsStruct = {
|
|
32
|
+
manager: PromiseOrValue<string>;
|
|
33
|
+
membersValidator: PromiseOrValue<string>;
|
|
34
|
+
uniquenessValidator: PromiseOrValue<string>;
|
|
35
|
+
rewardToken: PromiseOrValue<string>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type PoolSettingsStructOutput = [string, string, string, string] & {
|
|
39
|
+
manager: string;
|
|
40
|
+
membersValidator: string;
|
|
41
|
+
uniquenessValidator: string;
|
|
42
|
+
rewardToken: string;
|
|
43
|
+
};
|
|
45
44
|
|
|
45
|
+
export declare namespace UBIPool {
|
|
46
46
|
export type UBISettingsStruct = {
|
|
47
47
|
cycleLengthDays: PromiseOrValue<BigNumberish>;
|
|
48
48
|
claimPeriodDays: PromiseOrValue<BigNumberish>;
|
|
@@ -50,6 +50,7 @@ export declare namespace UBIPool {
|
|
|
50
50
|
claimForEnabled: PromiseOrValue<boolean>;
|
|
51
51
|
maxClaimAmount: PromiseOrValue<BigNumberish>;
|
|
52
52
|
maxMembers: PromiseOrValue<BigNumberish>;
|
|
53
|
+
onlyMembers: PromiseOrValue<boolean>;
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
export type UBISettingsStructOutput = [
|
|
@@ -58,7 +59,8 @@ export declare namespace UBIPool {
|
|
|
58
59
|
number,
|
|
59
60
|
boolean,
|
|
60
61
|
BigNumber,
|
|
61
|
-
number
|
|
62
|
+
number,
|
|
63
|
+
boolean
|
|
62
64
|
] & {
|
|
63
65
|
cycleLengthDays: number;
|
|
64
66
|
claimPeriodDays: number;
|
|
@@ -66,6 +68,19 @@ export declare namespace UBIPool {
|
|
|
66
68
|
claimForEnabled: boolean;
|
|
67
69
|
maxClaimAmount: BigNumber;
|
|
68
70
|
maxMembers: number;
|
|
71
|
+
onlyMembers: boolean;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export type ExtendedSettingsStruct = {
|
|
75
|
+
maxPeriodClaimers: PromiseOrValue<BigNumberish>;
|
|
76
|
+
minClaimAmount: PromiseOrValue<BigNumberish>;
|
|
77
|
+
managerFeeBps: PromiseOrValue<BigNumberish>;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export type ExtendedSettingsStructOutput = [number, BigNumber, number] & {
|
|
81
|
+
maxPeriodClaimers: number;
|
|
82
|
+
minClaimAmount: BigNumber;
|
|
83
|
+
managerFeeBps: number;
|
|
69
84
|
};
|
|
70
85
|
}
|
|
71
86
|
|
|
@@ -74,8 +89,8 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
74
89
|
"DEFAULT_ADMIN_ROLE()": FunctionFragment;
|
|
75
90
|
"addMember(address)": FunctionFragment;
|
|
76
91
|
"changePoolDetails(address,string)": FunctionFragment;
|
|
77
|
-
"createManagedPool(string,string,(address,address,address,address),(uint32,uint32,uint32,bool,uint256,uint32))": FunctionFragment;
|
|
78
|
-
"createPool(string,string,(address,address,address,address),(uint32,uint32,uint32,bool,uint256,uint32))": FunctionFragment;
|
|
92
|
+
"createManagedPool(string,string,(address,address,address,address),(uint32,uint32,uint32,bool,uint256,uint32,bool),(uint32,uint256,uint32))": FunctionFragment;
|
|
93
|
+
"createPool(string,string,(address,address,address,address),(uint32,uint32,uint32,bool,uint256,uint32,bool),(uint32,uint256,uint32))": FunctionFragment;
|
|
79
94
|
"feeBps()": FunctionFragment;
|
|
80
95
|
"feeRecipient()": FunctionFragment;
|
|
81
96
|
"getMemberPools(address)": FunctionFragment;
|
|
@@ -89,6 +104,7 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
89
104
|
"projectIdToControlPool(bytes32)": FunctionFragment;
|
|
90
105
|
"proxiableUUID()": FunctionFragment;
|
|
91
106
|
"registry(address)": FunctionFragment;
|
|
107
|
+
"removeMember(address)": FunctionFragment;
|
|
92
108
|
"renounceRole(bytes32,address)": FunctionFragment;
|
|
93
109
|
"revokeRole(bytes32,address)": FunctionFragment;
|
|
94
110
|
"setFeeInfo(address,uint32)": FunctionFragment;
|
|
@@ -119,6 +135,7 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
119
135
|
| "projectIdToControlPool"
|
|
120
136
|
| "proxiableUUID"
|
|
121
137
|
| "registry"
|
|
138
|
+
| "removeMember"
|
|
122
139
|
| "renounceRole"
|
|
123
140
|
| "revokeRole"
|
|
124
141
|
| "setFeeInfo"
|
|
@@ -146,8 +163,9 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
146
163
|
values: [
|
|
147
164
|
PromiseOrValue<string>,
|
|
148
165
|
PromiseOrValue<string>,
|
|
149
|
-
|
|
150
|
-
UBIPool.UBISettingsStruct
|
|
166
|
+
PoolSettingsStruct,
|
|
167
|
+
UBIPool.UBISettingsStruct,
|
|
168
|
+
UBIPool.ExtendedSettingsStruct
|
|
151
169
|
]
|
|
152
170
|
): string;
|
|
153
171
|
encodeFunctionData(
|
|
@@ -155,8 +173,9 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
155
173
|
values: [
|
|
156
174
|
PromiseOrValue<string>,
|
|
157
175
|
PromiseOrValue<string>,
|
|
158
|
-
|
|
159
|
-
UBIPool.UBISettingsStruct
|
|
176
|
+
PoolSettingsStruct,
|
|
177
|
+
UBIPool.UBISettingsStruct,
|
|
178
|
+
UBIPool.ExtendedSettingsStruct
|
|
160
179
|
]
|
|
161
180
|
): string;
|
|
162
181
|
encodeFunctionData(functionFragment: "feeBps", values?: undefined): string;
|
|
@@ -210,6 +229,10 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
210
229
|
functionFragment: "registry",
|
|
211
230
|
values: [PromiseOrValue<string>]
|
|
212
231
|
): string;
|
|
232
|
+
encodeFunctionData(
|
|
233
|
+
functionFragment: "removeMember",
|
|
234
|
+
values: [PromiseOrValue<string>]
|
|
235
|
+
): string;
|
|
213
236
|
encodeFunctionData(
|
|
214
237
|
functionFragment: "renounceRole",
|
|
215
238
|
values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]
|
|
@@ -288,6 +311,10 @@ export interface UBIPoolFactoryInterface extends utils.Interface {
|
|
|
288
311
|
data: BytesLike
|
|
289
312
|
): Result;
|
|
290
313
|
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
314
|
+
decodeFunctionResult(
|
|
315
|
+
functionFragment: "removeMember",
|
|
316
|
+
data: BytesLike
|
|
317
|
+
): Result;
|
|
291
318
|
decodeFunctionResult(
|
|
292
319
|
functionFragment: "renounceRole",
|
|
293
320
|
data: BytesLike
|
|
@@ -368,7 +395,7 @@ export interface PoolCreatedEventObject {
|
|
|
368
395
|
pool: string;
|
|
369
396
|
projectId: string;
|
|
370
397
|
ipfs: string;
|
|
371
|
-
poolSettings:
|
|
398
|
+
poolSettings: PoolSettingsStructOutput;
|
|
372
399
|
poolLimits: UBIPool.UBISettingsStructOutput;
|
|
373
400
|
}
|
|
374
401
|
export type PoolCreatedEvent = TypedEvent<
|
|
@@ -376,7 +403,7 @@ export type PoolCreatedEvent = TypedEvent<
|
|
|
376
403
|
string,
|
|
377
404
|
string,
|
|
378
405
|
string,
|
|
379
|
-
|
|
406
|
+
PoolSettingsStructOutput,
|
|
380
407
|
UBIPool.UBISettingsStructOutput
|
|
381
408
|
],
|
|
382
409
|
PoolCreatedEventObject
|
|
@@ -502,16 +529,18 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
502
529
|
createManagedPool(
|
|
503
530
|
_projectId: PromiseOrValue<string>,
|
|
504
531
|
_ipfs: PromiseOrValue<string>,
|
|
505
|
-
_settings:
|
|
532
|
+
_settings: PoolSettingsStruct,
|
|
506
533
|
_limits: UBIPool.UBISettingsStruct,
|
|
534
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
507
535
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
508
536
|
): Promise<ContractTransaction>;
|
|
509
537
|
|
|
510
538
|
createPool(
|
|
511
539
|
_projectId: PromiseOrValue<string>,
|
|
512
540
|
_ipfs: PromiseOrValue<string>,
|
|
513
|
-
_settings:
|
|
541
|
+
_settings: PoolSettingsStruct,
|
|
514
542
|
_limits: UBIPool.UBISettingsStruct,
|
|
543
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
515
544
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
516
545
|
): Promise<ContractTransaction>;
|
|
517
546
|
|
|
@@ -580,6 +609,11 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
580
609
|
}
|
|
581
610
|
>;
|
|
582
611
|
|
|
612
|
+
removeMember(
|
|
613
|
+
member: PromiseOrValue<string>,
|
|
614
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
615
|
+
): Promise<ContractTransaction>;
|
|
616
|
+
|
|
583
617
|
renounceRole(
|
|
584
618
|
role: PromiseOrValue<BytesLike>,
|
|
585
619
|
account: PromiseOrValue<string>,
|
|
@@ -642,16 +676,18 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
642
676
|
createManagedPool(
|
|
643
677
|
_projectId: PromiseOrValue<string>,
|
|
644
678
|
_ipfs: PromiseOrValue<string>,
|
|
645
|
-
_settings:
|
|
679
|
+
_settings: PoolSettingsStruct,
|
|
646
680
|
_limits: UBIPool.UBISettingsStruct,
|
|
681
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
647
682
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
648
683
|
): Promise<ContractTransaction>;
|
|
649
684
|
|
|
650
685
|
createPool(
|
|
651
686
|
_projectId: PromiseOrValue<string>,
|
|
652
687
|
_ipfs: PromiseOrValue<string>,
|
|
653
|
-
_settings:
|
|
688
|
+
_settings: PoolSettingsStruct,
|
|
654
689
|
_limits: UBIPool.UBISettingsStruct,
|
|
690
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
655
691
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
656
692
|
): Promise<ContractTransaction>;
|
|
657
693
|
|
|
@@ -720,6 +756,11 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
720
756
|
}
|
|
721
757
|
>;
|
|
722
758
|
|
|
759
|
+
removeMember(
|
|
760
|
+
member: PromiseOrValue<string>,
|
|
761
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
762
|
+
): Promise<ContractTransaction>;
|
|
763
|
+
|
|
723
764
|
renounceRole(
|
|
724
765
|
role: PromiseOrValue<BytesLike>,
|
|
725
766
|
account: PromiseOrValue<string>,
|
|
@@ -782,16 +823,18 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
782
823
|
createManagedPool(
|
|
783
824
|
_projectId: PromiseOrValue<string>,
|
|
784
825
|
_ipfs: PromiseOrValue<string>,
|
|
785
|
-
_settings:
|
|
826
|
+
_settings: PoolSettingsStruct,
|
|
786
827
|
_limits: UBIPool.UBISettingsStruct,
|
|
828
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
787
829
|
overrides?: CallOverrides
|
|
788
830
|
): Promise<string>;
|
|
789
831
|
|
|
790
832
|
createPool(
|
|
791
833
|
_projectId: PromiseOrValue<string>,
|
|
792
834
|
_ipfs: PromiseOrValue<string>,
|
|
793
|
-
_settings:
|
|
835
|
+
_settings: PoolSettingsStruct,
|
|
794
836
|
_limits: UBIPool.UBISettingsStruct,
|
|
837
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
795
838
|
overrides?: CallOverrides
|
|
796
839
|
): Promise<string>;
|
|
797
840
|
|
|
@@ -860,6 +903,11 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
860
903
|
}
|
|
861
904
|
>;
|
|
862
905
|
|
|
906
|
+
removeMember(
|
|
907
|
+
member: PromiseOrValue<string>,
|
|
908
|
+
overrides?: CallOverrides
|
|
909
|
+
): Promise<void>;
|
|
910
|
+
|
|
863
911
|
renounceRole(
|
|
864
912
|
role: PromiseOrValue<BytesLike>,
|
|
865
913
|
account: PromiseOrValue<string>,
|
|
@@ -1022,16 +1070,18 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
1022
1070
|
createManagedPool(
|
|
1023
1071
|
_projectId: PromiseOrValue<string>,
|
|
1024
1072
|
_ipfs: PromiseOrValue<string>,
|
|
1025
|
-
_settings:
|
|
1073
|
+
_settings: PoolSettingsStruct,
|
|
1026
1074
|
_limits: UBIPool.UBISettingsStruct,
|
|
1075
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1027
1076
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1028
1077
|
): Promise<BigNumber>;
|
|
1029
1078
|
|
|
1030
1079
|
createPool(
|
|
1031
1080
|
_projectId: PromiseOrValue<string>,
|
|
1032
1081
|
_ipfs: PromiseOrValue<string>,
|
|
1033
|
-
_settings:
|
|
1082
|
+
_settings: PoolSettingsStruct,
|
|
1034
1083
|
_limits: UBIPool.UBISettingsStruct,
|
|
1084
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1035
1085
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1036
1086
|
): Promise<BigNumber>;
|
|
1037
1087
|
|
|
@@ -1094,6 +1144,11 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
1094
1144
|
overrides?: CallOverrides
|
|
1095
1145
|
): Promise<BigNumber>;
|
|
1096
1146
|
|
|
1147
|
+
removeMember(
|
|
1148
|
+
member: PromiseOrValue<string>,
|
|
1149
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1150
|
+
): Promise<BigNumber>;
|
|
1151
|
+
|
|
1097
1152
|
renounceRole(
|
|
1098
1153
|
role: PromiseOrValue<BytesLike>,
|
|
1099
1154
|
account: PromiseOrValue<string>,
|
|
@@ -1159,16 +1214,18 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
1159
1214
|
createManagedPool(
|
|
1160
1215
|
_projectId: PromiseOrValue<string>,
|
|
1161
1216
|
_ipfs: PromiseOrValue<string>,
|
|
1162
|
-
_settings:
|
|
1217
|
+
_settings: PoolSettingsStruct,
|
|
1163
1218
|
_limits: UBIPool.UBISettingsStruct,
|
|
1219
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1164
1220
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1165
1221
|
): Promise<PopulatedTransaction>;
|
|
1166
1222
|
|
|
1167
1223
|
createPool(
|
|
1168
1224
|
_projectId: PromiseOrValue<string>,
|
|
1169
1225
|
_ipfs: PromiseOrValue<string>,
|
|
1170
|
-
_settings:
|
|
1226
|
+
_settings: PoolSettingsStruct,
|
|
1171
1227
|
_limits: UBIPool.UBISettingsStruct,
|
|
1228
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1172
1229
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1173
1230
|
): Promise<PopulatedTransaction>;
|
|
1174
1231
|
|
|
@@ -1231,6 +1288,11 @@ export interface UBIPoolFactory extends BaseContract {
|
|
|
1231
1288
|
overrides?: CallOverrides
|
|
1232
1289
|
): Promise<PopulatedTransaction>;
|
|
1233
1290
|
|
|
1291
|
+
removeMember(
|
|
1292
|
+
member: PromiseOrValue<string>,
|
|
1293
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1294
|
+
): Promise<PopulatedTransaction>;
|
|
1295
|
+
|
|
1234
1296
|
renounceRole(
|
|
1235
1297
|
role: PromiseOrValue<BytesLike>,
|
|
1236
1298
|
account: PromiseOrValue<string>,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
export type { multiClaimModuleSol };
|
|
6
|
-
import type * as ubiPoolSol from "./UBIPool.sol";
|
|
7
|
-
export type { ubiPoolSol };
|
|
4
|
+
export type { UBIPool } from "./UBIPool";
|
|
8
5
|
export type { UBIPoolFactory } from "./UBIPoolFactory";
|
|
@@ -5,7 +5,11 @@ import type * as directPayments from "./DirectPayments";
|
|
|
5
5
|
export type { directPayments };
|
|
6
6
|
import type * as goodCollective from "./GoodCollective";
|
|
7
7
|
export type { goodCollective };
|
|
8
|
+
import type * as interfacesSol from "./Interfaces.sol";
|
|
9
|
+
export type { interfacesSol };
|
|
8
10
|
import type * as ubi from "./UBI";
|
|
9
11
|
export type { ubi };
|
|
12
|
+
import type * as test from "./test";
|
|
13
|
+
export type { test };
|
|
10
14
|
import type * as utils from "./utils";
|
|
11
15
|
export type { utils };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
PromiseOrValue,
|
|
24
|
+
} from "../../common";
|
|
25
|
+
|
|
26
|
+
export declare namespace HelperLibrary {
|
|
27
|
+
export type SwapDataStruct = {
|
|
28
|
+
swapFrom: PromiseOrValue<string>;
|
|
29
|
+
amount: PromiseOrValue<BigNumberish>;
|
|
30
|
+
minReturn: PromiseOrValue<BigNumberish>;
|
|
31
|
+
deadline: PromiseOrValue<BigNumberish>;
|
|
32
|
+
path: PromiseOrValue<BytesLike>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type SwapDataStructOutput = [
|
|
36
|
+
string,
|
|
37
|
+
BigNumber,
|
|
38
|
+
BigNumber,
|
|
39
|
+
BigNumber,
|
|
40
|
+
string
|
|
41
|
+
] & {
|
|
42
|
+
swapFrom: string;
|
|
43
|
+
amount: BigNumber;
|
|
44
|
+
minReturn: BigNumber;
|
|
45
|
+
deadline: BigNumber;
|
|
46
|
+
path: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface HelperLibraryTestInterface extends utils.Interface {
|
|
51
|
+
functions: {
|
|
52
|
+
"handleSwap(address,(address,uint256,uint256,uint256,bytes),address,address)": FunctionFragment;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
getFunction(nameOrSignatureOrTopic: "handleSwap"): FunctionFragment;
|
|
56
|
+
|
|
57
|
+
encodeFunctionData(
|
|
58
|
+
functionFragment: "handleSwap",
|
|
59
|
+
values: [
|
|
60
|
+
PromiseOrValue<string>,
|
|
61
|
+
HelperLibrary.SwapDataStruct,
|
|
62
|
+
PromiseOrValue<string>,
|
|
63
|
+
PromiseOrValue<string>
|
|
64
|
+
]
|
|
65
|
+
): string;
|
|
66
|
+
|
|
67
|
+
decodeFunctionResult(functionFragment: "handleSwap", data: BytesLike): Result;
|
|
68
|
+
|
|
69
|
+
events: {};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface HelperLibraryTest extends BaseContract {
|
|
73
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
74
|
+
attach(addressOrName: string): this;
|
|
75
|
+
deployed(): Promise<this>;
|
|
76
|
+
|
|
77
|
+
interface: HelperLibraryTestInterface;
|
|
78
|
+
|
|
79
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
80
|
+
event: TypedEventFilter<TEvent>,
|
|
81
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
82
|
+
toBlock?: string | number | undefined
|
|
83
|
+
): Promise<Array<TEvent>>;
|
|
84
|
+
|
|
85
|
+
listeners<TEvent extends TypedEvent>(
|
|
86
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
87
|
+
): Array<TypedListener<TEvent>>;
|
|
88
|
+
listeners(eventName?: string): Array<Listener>;
|
|
89
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
90
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
91
|
+
): this;
|
|
92
|
+
removeAllListeners(eventName?: string): this;
|
|
93
|
+
off: OnEvent<this>;
|
|
94
|
+
on: OnEvent<this>;
|
|
95
|
+
once: OnEvent<this>;
|
|
96
|
+
removeListener: OnEvent<this>;
|
|
97
|
+
|
|
98
|
+
functions: {
|
|
99
|
+
handleSwap(
|
|
100
|
+
swapRouter: PromiseOrValue<string>,
|
|
101
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
102
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
103
|
+
_sender: PromiseOrValue<string>,
|
|
104
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
105
|
+
): Promise<ContractTransaction>;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
handleSwap(
|
|
109
|
+
swapRouter: PromiseOrValue<string>,
|
|
110
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
111
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
112
|
+
_sender: PromiseOrValue<string>,
|
|
113
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
114
|
+
): Promise<ContractTransaction>;
|
|
115
|
+
|
|
116
|
+
callStatic: {
|
|
117
|
+
handleSwap(
|
|
118
|
+
swapRouter: PromiseOrValue<string>,
|
|
119
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
120
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
121
|
+
_sender: PromiseOrValue<string>,
|
|
122
|
+
overrides?: CallOverrides
|
|
123
|
+
): Promise<BigNumber>;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
filters: {};
|
|
127
|
+
|
|
128
|
+
estimateGas: {
|
|
129
|
+
handleSwap(
|
|
130
|
+
swapRouter: PromiseOrValue<string>,
|
|
131
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
132
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
133
|
+
_sender: PromiseOrValue<string>,
|
|
134
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
135
|
+
): Promise<BigNumber>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
populateTransaction: {
|
|
139
|
+
handleSwap(
|
|
140
|
+
swapRouter: PromiseOrValue<string>,
|
|
141
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
142
|
+
outTokenIfNoPath: PromiseOrValue<string>,
|
|
143
|
+
_sender: PromiseOrValue<string>,
|
|
144
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
145
|
+
): Promise<PopulatedTransaction>;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
@@ -28,6 +28,9 @@ export declare namespace IGoodCollectiveSuperApp {
|
|
|
28
28
|
lastUpdate: PromiseOrValue<BigNumberish>;
|
|
29
29
|
lastFeeRecipient: PromiseOrValue<string>;
|
|
30
30
|
lastIncomeRate: PromiseOrValue<BigNumberish>;
|
|
31
|
+
lastManagerFeeRecipient: PromiseOrValue<string>;
|
|
32
|
+
protocolFees: PromiseOrValue<BigNumberish>;
|
|
33
|
+
managerFees: PromiseOrValue<BigNumberish>;
|
|
31
34
|
};
|
|
32
35
|
|
|
33
36
|
export type StatsStructOutput = [
|
|
@@ -35,6 +38,9 @@ export declare namespace IGoodCollectiveSuperApp {
|
|
|
35
38
|
BigNumber,
|
|
36
39
|
BigNumber,
|
|
37
40
|
string,
|
|
41
|
+
BigNumber,
|
|
42
|
+
string,
|
|
43
|
+
BigNumber,
|
|
38
44
|
BigNumber
|
|
39
45
|
] & {
|
|
40
46
|
netIncome: BigNumber;
|
|
@@ -42,12 +48,15 @@ export declare namespace IGoodCollectiveSuperApp {
|
|
|
42
48
|
lastUpdate: BigNumber;
|
|
43
49
|
lastFeeRecipient: string;
|
|
44
50
|
lastIncomeRate: BigNumber;
|
|
51
|
+
lastManagerFeeRecipient: string;
|
|
52
|
+
protocolFees: BigNumber;
|
|
53
|
+
managerFees: BigNumber;
|
|
45
54
|
};
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
export interface HelperLibraryInterface extends utils.Interface {
|
|
49
58
|
functions: {
|
|
50
|
-
"getRealtimeStats((uint256,uint256,uint256,address,int96),ISuperToken)": FunctionFragment;
|
|
59
|
+
"getRealtimeStats((uint256,uint256,uint256,address,int96,address,uint256,uint256),ISuperToken)": FunctionFragment;
|
|
51
60
|
};
|
|
52
61
|
|
|
53
62
|
getFunction(nameOrSignatureOrTopic: "getRealtimeStats"): FunctionFragment;
|
|
@@ -97,11 +106,22 @@ export interface HelperLibrary extends BaseContract {
|
|
|
97
106
|
superToken: PromiseOrValue<string>,
|
|
98
107
|
overrides?: CallOverrides
|
|
99
108
|
): Promise<
|
|
100
|
-
[
|
|
109
|
+
[
|
|
110
|
+
BigNumber,
|
|
111
|
+
BigNumber,
|
|
112
|
+
BigNumber,
|
|
113
|
+
BigNumber,
|
|
114
|
+
BigNumber,
|
|
115
|
+
BigNumber,
|
|
116
|
+
BigNumber
|
|
117
|
+
] & {
|
|
101
118
|
netIncome: BigNumber;
|
|
102
119
|
totalFees: BigNumber;
|
|
120
|
+
protocolFees: BigNumber;
|
|
121
|
+
managerFees: BigNumber;
|
|
103
122
|
incomeFlowRate: BigNumber;
|
|
104
123
|
feeRate: BigNumber;
|
|
124
|
+
managerFeeRate: BigNumber;
|
|
105
125
|
}
|
|
106
126
|
>;
|
|
107
127
|
};
|
|
@@ -111,11 +131,22 @@ export interface HelperLibrary extends BaseContract {
|
|
|
111
131
|
superToken: PromiseOrValue<string>,
|
|
112
132
|
overrides?: CallOverrides
|
|
113
133
|
): Promise<
|
|
114
|
-
[
|
|
134
|
+
[
|
|
135
|
+
BigNumber,
|
|
136
|
+
BigNumber,
|
|
137
|
+
BigNumber,
|
|
138
|
+
BigNumber,
|
|
139
|
+
BigNumber,
|
|
140
|
+
BigNumber,
|
|
141
|
+
BigNumber
|
|
142
|
+
] & {
|
|
115
143
|
netIncome: BigNumber;
|
|
116
144
|
totalFees: BigNumber;
|
|
145
|
+
protocolFees: BigNumber;
|
|
146
|
+
managerFees: BigNumber;
|
|
117
147
|
incomeFlowRate: BigNumber;
|
|
118
148
|
feeRate: BigNumber;
|
|
149
|
+
managerFeeRate: BigNumber;
|
|
119
150
|
}
|
|
120
151
|
>;
|
|
121
152
|
|
|
@@ -125,11 +156,22 @@ export interface HelperLibrary extends BaseContract {
|
|
|
125
156
|
superToken: PromiseOrValue<string>,
|
|
126
157
|
overrides?: CallOverrides
|
|
127
158
|
): Promise<
|
|
128
|
-
[
|
|
159
|
+
[
|
|
160
|
+
BigNumber,
|
|
161
|
+
BigNumber,
|
|
162
|
+
BigNumber,
|
|
163
|
+
BigNumber,
|
|
164
|
+
BigNumber,
|
|
165
|
+
BigNumber,
|
|
166
|
+
BigNumber
|
|
167
|
+
] & {
|
|
129
168
|
netIncome: BigNumber;
|
|
130
169
|
totalFees: BigNumber;
|
|
170
|
+
protocolFees: BigNumber;
|
|
171
|
+
managerFees: BigNumber;
|
|
131
172
|
incomeFlowRate: BigNumber;
|
|
132
173
|
feeRate: BigNumber;
|
|
174
|
+
managerFeeRate: BigNumber;
|
|
133
175
|
}
|
|
134
176
|
>;
|
|
135
177
|
};
|