@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
|
@@ -26,23 +26,23 @@ import type {
|
|
|
26
26
|
TypedListener,
|
|
27
27
|
OnEvent,
|
|
28
28
|
PromiseOrValue,
|
|
29
|
-
} from "
|
|
29
|
+
} from "../../common";
|
|
30
|
+
|
|
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
|
+
};
|
|
30
44
|
|
|
31
45
|
export declare namespace UBIPool {
|
|
32
|
-
export type PoolSettingsStruct = {
|
|
33
|
-
manager: PromiseOrValue<string>;
|
|
34
|
-
membersValidator: PromiseOrValue<string>;
|
|
35
|
-
uniquenessValidator: PromiseOrValue<string>;
|
|
36
|
-
rewardToken: PromiseOrValue<string>;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type PoolSettingsStructOutput = [string, string, string, string] & {
|
|
40
|
-
manager: string;
|
|
41
|
-
membersValidator: string;
|
|
42
|
-
uniquenessValidator: string;
|
|
43
|
-
rewardToken: string;
|
|
44
|
-
};
|
|
45
|
-
|
|
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
|
|
|
@@ -101,7 +116,6 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
101
116
|
"MEMBER_ROLE()": FunctionFragment;
|
|
102
117
|
"MIN_FLOW_RATE()": FunctionFragment;
|
|
103
118
|
"addMember(address,bytes)": FunctionFragment;
|
|
104
|
-
"addMemberByManager(address)": FunctionFragment;
|
|
105
119
|
"afterAgreementCreated(address,address,bytes32,bytes,bytes,bytes)": FunctionFragment;
|
|
106
120
|
"afterAgreementTerminated(address,address,bytes32,bytes,bytes,bytes)": FunctionFragment;
|
|
107
121
|
"afterAgreementUpdated(address,address,bytes32,bytes,bytes,bytes)": FunctionFragment;
|
|
@@ -114,8 +128,11 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
114
128
|
"claim()": FunctionFragment;
|
|
115
129
|
"claimFor(address,bool)": FunctionFragment;
|
|
116
130
|
"currentDayInCycle()": FunctionFragment;
|
|
131
|
+
"distributionFormula()": FunctionFragment;
|
|
117
132
|
"estimateNextDailyUBI()": FunctionFragment;
|
|
133
|
+
"extendedSettings()": FunctionFragment;
|
|
118
134
|
"getCurrentDay()": FunctionFragment;
|
|
135
|
+
"getManagerFee()": FunctionFragment;
|
|
119
136
|
"getRealtimeContribution(address)": FunctionFragment;
|
|
120
137
|
"getRealtimeStats()": FunctionFragment;
|
|
121
138
|
"getRegistry()": FunctionFragment;
|
|
@@ -125,21 +142,23 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
125
142
|
"hasClaimed(address)": FunctionFragment;
|
|
126
143
|
"hasRole(bytes32,address)": FunctionFragment;
|
|
127
144
|
"host()": FunctionFragment;
|
|
128
|
-
"initialize((address,address,address,address),(uint32,uint32,uint32,bool,uint256,uint32),address)": FunctionFragment;
|
|
145
|
+
"initialize((address,address,address,address),(uint32,uint32,uint32,bool,uint256,uint32,bool),(uint32,uint256,uint32),address)": FunctionFragment;
|
|
129
146
|
"isAcceptedSuperToken(address)": FunctionFragment;
|
|
130
147
|
"nextClaimTime()": FunctionFragment;
|
|
131
148
|
"onTokenTransfer(address,uint256,bytes)": FunctionFragment;
|
|
132
149
|
"proxiableUUID()": FunctionFragment;
|
|
133
150
|
"registry()": FunctionFragment;
|
|
151
|
+
"removeMember(address)": FunctionFragment;
|
|
134
152
|
"renounceRole(bytes32,address)": FunctionFragment;
|
|
135
153
|
"revokeRole(bytes32,address)": FunctionFragment;
|
|
136
154
|
"setPoolSettings((address,address,address,address))": FunctionFragment;
|
|
137
|
-
"setUBISettings((uint32,uint32,uint32,bool,uint256,uint32))": FunctionFragment;
|
|
155
|
+
"setUBISettings((uint32,uint32,uint32,bool,uint256,uint32,bool),(uint32,uint256,uint32))": FunctionFragment;
|
|
138
156
|
"settings()": FunctionFragment;
|
|
139
157
|
"stats()": FunctionFragment;
|
|
140
158
|
"status()": FunctionFragment;
|
|
141
159
|
"superToken()": FunctionFragment;
|
|
142
160
|
"support(address,uint256,bytes)": FunctionFragment;
|
|
161
|
+
"supportWithSwap(address,(address,uint256,uint256,uint256,bytes),bytes)": FunctionFragment;
|
|
143
162
|
"supporters(address)": FunctionFragment;
|
|
144
163
|
"supportsInterface(bytes4)": FunctionFragment;
|
|
145
164
|
"swapRouter()": FunctionFragment;
|
|
@@ -157,7 +176,6 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
157
176
|
| "MEMBER_ROLE"
|
|
158
177
|
| "MIN_FLOW_RATE"
|
|
159
178
|
| "addMember"
|
|
160
|
-
| "addMemberByManager"
|
|
161
179
|
| "afterAgreementCreated"
|
|
162
180
|
| "afterAgreementTerminated"
|
|
163
181
|
| "afterAgreementUpdated"
|
|
@@ -170,8 +188,11 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
170
188
|
| "claim"
|
|
171
189
|
| "claimFor"
|
|
172
190
|
| "currentDayInCycle"
|
|
191
|
+
| "distributionFormula"
|
|
173
192
|
| "estimateNextDailyUBI"
|
|
193
|
+
| "extendedSettings"
|
|
174
194
|
| "getCurrentDay"
|
|
195
|
+
| "getManagerFee"
|
|
175
196
|
| "getRealtimeContribution"
|
|
176
197
|
| "getRealtimeStats"
|
|
177
198
|
| "getRegistry"
|
|
@@ -187,6 +208,7 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
187
208
|
| "onTokenTransfer"
|
|
188
209
|
| "proxiableUUID"
|
|
189
210
|
| "registry"
|
|
211
|
+
| "removeMember"
|
|
190
212
|
| "renounceRole"
|
|
191
213
|
| "revokeRole"
|
|
192
214
|
| "setPoolSettings"
|
|
@@ -196,6 +218,7 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
196
218
|
| "status"
|
|
197
219
|
| "superToken"
|
|
198
220
|
| "support"
|
|
221
|
+
| "supportWithSwap"
|
|
199
222
|
| "supporters"
|
|
200
223
|
| "supportsInterface"
|
|
201
224
|
| "swapRouter"
|
|
@@ -229,10 +252,6 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
229
252
|
functionFragment: "addMember",
|
|
230
253
|
values: [PromiseOrValue<string>, PromiseOrValue<BytesLike>]
|
|
231
254
|
): string;
|
|
232
|
-
encodeFunctionData(
|
|
233
|
-
functionFragment: "addMemberByManager",
|
|
234
|
-
values: [PromiseOrValue<string>]
|
|
235
|
-
): string;
|
|
236
255
|
encodeFunctionData(
|
|
237
256
|
functionFragment: "afterAgreementCreated",
|
|
238
257
|
values: [
|
|
@@ -314,14 +333,26 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
314
333
|
functionFragment: "currentDayInCycle",
|
|
315
334
|
values?: undefined
|
|
316
335
|
): string;
|
|
336
|
+
encodeFunctionData(
|
|
337
|
+
functionFragment: "distributionFormula",
|
|
338
|
+
values?: undefined
|
|
339
|
+
): string;
|
|
317
340
|
encodeFunctionData(
|
|
318
341
|
functionFragment: "estimateNextDailyUBI",
|
|
319
342
|
values?: undefined
|
|
320
343
|
): string;
|
|
344
|
+
encodeFunctionData(
|
|
345
|
+
functionFragment: "extendedSettings",
|
|
346
|
+
values?: undefined
|
|
347
|
+
): string;
|
|
321
348
|
encodeFunctionData(
|
|
322
349
|
functionFragment: "getCurrentDay",
|
|
323
350
|
values?: undefined
|
|
324
351
|
): string;
|
|
352
|
+
encodeFunctionData(
|
|
353
|
+
functionFragment: "getManagerFee",
|
|
354
|
+
values?: undefined
|
|
355
|
+
): string;
|
|
325
356
|
encodeFunctionData(
|
|
326
357
|
functionFragment: "getRealtimeContribution",
|
|
327
358
|
values: [PromiseOrValue<string>]
|
|
@@ -362,8 +393,9 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
362
393
|
encodeFunctionData(
|
|
363
394
|
functionFragment: "initialize",
|
|
364
395
|
values: [
|
|
365
|
-
|
|
396
|
+
PoolSettingsStruct,
|
|
366
397
|
UBIPool.UBISettingsStruct,
|
|
398
|
+
UBIPool.ExtendedSettingsStruct,
|
|
367
399
|
PromiseOrValue<string>
|
|
368
400
|
]
|
|
369
401
|
): string;
|
|
@@ -388,6 +420,10 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
388
420
|
values?: undefined
|
|
389
421
|
): string;
|
|
390
422
|
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
|
|
423
|
+
encodeFunctionData(
|
|
424
|
+
functionFragment: "removeMember",
|
|
425
|
+
values: [PromiseOrValue<string>]
|
|
426
|
+
): string;
|
|
391
427
|
encodeFunctionData(
|
|
392
428
|
functionFragment: "renounceRole",
|
|
393
429
|
values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]
|
|
@@ -398,11 +434,11 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
398
434
|
): string;
|
|
399
435
|
encodeFunctionData(
|
|
400
436
|
functionFragment: "setPoolSettings",
|
|
401
|
-
values: [
|
|
437
|
+
values: [PoolSettingsStruct]
|
|
402
438
|
): string;
|
|
403
439
|
encodeFunctionData(
|
|
404
440
|
functionFragment: "setUBISettings",
|
|
405
|
-
values: [UBIPool.UBISettingsStruct]
|
|
441
|
+
values: [UBIPool.UBISettingsStruct, UBIPool.ExtendedSettingsStruct]
|
|
406
442
|
): string;
|
|
407
443
|
encodeFunctionData(functionFragment: "settings", values?: undefined): string;
|
|
408
444
|
encodeFunctionData(functionFragment: "stats", values?: undefined): string;
|
|
@@ -419,6 +455,14 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
419
455
|
PromiseOrValue<BytesLike>
|
|
420
456
|
]
|
|
421
457
|
): string;
|
|
458
|
+
encodeFunctionData(
|
|
459
|
+
functionFragment: "supportWithSwap",
|
|
460
|
+
values: [
|
|
461
|
+
PromiseOrValue<string>,
|
|
462
|
+
HelperLibrary.SwapDataStruct,
|
|
463
|
+
PromiseOrValue<BytesLike>
|
|
464
|
+
]
|
|
465
|
+
): string;
|
|
422
466
|
encodeFunctionData(
|
|
423
467
|
functionFragment: "supporters",
|
|
424
468
|
values: [PromiseOrValue<string>]
|
|
@@ -466,10 +510,6 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
466
510
|
data: BytesLike
|
|
467
511
|
): Result;
|
|
468
512
|
decodeFunctionResult(functionFragment: "addMember", data: BytesLike): Result;
|
|
469
|
-
decodeFunctionResult(
|
|
470
|
-
functionFragment: "addMemberByManager",
|
|
471
|
-
data: BytesLike
|
|
472
|
-
): Result;
|
|
473
513
|
decodeFunctionResult(
|
|
474
514
|
functionFragment: "afterAgreementCreated",
|
|
475
515
|
data: BytesLike
|
|
@@ -509,14 +549,26 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
509
549
|
functionFragment: "currentDayInCycle",
|
|
510
550
|
data: BytesLike
|
|
511
551
|
): Result;
|
|
552
|
+
decodeFunctionResult(
|
|
553
|
+
functionFragment: "distributionFormula",
|
|
554
|
+
data: BytesLike
|
|
555
|
+
): Result;
|
|
512
556
|
decodeFunctionResult(
|
|
513
557
|
functionFragment: "estimateNextDailyUBI",
|
|
514
558
|
data: BytesLike
|
|
515
559
|
): Result;
|
|
560
|
+
decodeFunctionResult(
|
|
561
|
+
functionFragment: "extendedSettings",
|
|
562
|
+
data: BytesLike
|
|
563
|
+
): Result;
|
|
516
564
|
decodeFunctionResult(
|
|
517
565
|
functionFragment: "getCurrentDay",
|
|
518
566
|
data: BytesLike
|
|
519
567
|
): Result;
|
|
568
|
+
decodeFunctionResult(
|
|
569
|
+
functionFragment: "getManagerFee",
|
|
570
|
+
data: BytesLike
|
|
571
|
+
): Result;
|
|
520
572
|
decodeFunctionResult(
|
|
521
573
|
functionFragment: "getRealtimeContribution",
|
|
522
574
|
data: BytesLike
|
|
@@ -556,6 +608,10 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
556
608
|
data: BytesLike
|
|
557
609
|
): Result;
|
|
558
610
|
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
611
|
+
decodeFunctionResult(
|
|
612
|
+
functionFragment: "removeMember",
|
|
613
|
+
data: BytesLike
|
|
614
|
+
): Result;
|
|
559
615
|
decodeFunctionResult(
|
|
560
616
|
functionFragment: "renounceRole",
|
|
561
617
|
data: BytesLike
|
|
@@ -574,6 +630,10 @@ export interface UBIPoolInterface extends utils.Interface {
|
|
|
574
630
|
decodeFunctionResult(functionFragment: "status", data: BytesLike): Result;
|
|
575
631
|
decodeFunctionResult(functionFragment: "superToken", data: BytesLike): Result;
|
|
576
632
|
decodeFunctionResult(functionFragment: "support", data: BytesLike): Result;
|
|
633
|
+
decodeFunctionResult(
|
|
634
|
+
functionFragment: "supportWithSwap",
|
|
635
|
+
data: BytesLike
|
|
636
|
+
): Result;
|
|
577
637
|
decodeFunctionResult(functionFragment: "supporters", data: BytesLike): Result;
|
|
578
638
|
decodeFunctionResult(
|
|
579
639
|
functionFragment: "supportsInterface",
|
|
@@ -654,10 +714,10 @@ export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
|
|
|
654
714
|
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
|
|
655
715
|
|
|
656
716
|
export interface PoolSettingsChangedEventObject {
|
|
657
|
-
settings:
|
|
717
|
+
settings: PoolSettingsStructOutput;
|
|
658
718
|
}
|
|
659
719
|
export type PoolSettingsChangedEvent = TypedEvent<
|
|
660
|
-
[
|
|
720
|
+
[PoolSettingsStructOutput],
|
|
661
721
|
PoolSettingsChangedEventObject
|
|
662
722
|
>;
|
|
663
723
|
|
|
@@ -818,11 +878,6 @@ export interface UBIPool extends BaseContract {
|
|
|
818
878
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
819
879
|
): Promise<ContractTransaction>;
|
|
820
880
|
|
|
821
|
-
addMemberByManager(
|
|
822
|
-
member: PromiseOrValue<string>,
|
|
823
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
824
|
-
): Promise<ContractTransaction>;
|
|
825
|
-
|
|
826
881
|
afterAgreementCreated(
|
|
827
882
|
superToken: PromiseOrValue<string>,
|
|
828
883
|
arg1: PromiseOrValue<string>,
|
|
@@ -903,10 +958,30 @@ export interface UBIPool extends BaseContract {
|
|
|
903
958
|
|
|
904
959
|
currentDayInCycle(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
905
960
|
|
|
906
|
-
|
|
961
|
+
distributionFormula(
|
|
962
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
963
|
+
): Promise<ContractTransaction>;
|
|
964
|
+
|
|
965
|
+
estimateNextDailyUBI(
|
|
966
|
+
overrides?: CallOverrides
|
|
967
|
+
): Promise<[BigNumber] & { nextDailyUbi: BigNumber }>;
|
|
968
|
+
|
|
969
|
+
extendedSettings(
|
|
970
|
+
overrides?: CallOverrides
|
|
971
|
+
): Promise<
|
|
972
|
+
[number, BigNumber, number] & {
|
|
973
|
+
maxPeriodClaimers: number;
|
|
974
|
+
minClaimAmount: BigNumber;
|
|
975
|
+
managerFeeBps: number;
|
|
976
|
+
}
|
|
977
|
+
>;
|
|
907
978
|
|
|
908
979
|
getCurrentDay(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
909
980
|
|
|
981
|
+
getManagerFee(
|
|
982
|
+
overrides?: CallOverrides
|
|
983
|
+
): Promise<[string, number] & { feeRecipient: string; feeBps: number }>;
|
|
984
|
+
|
|
910
985
|
getRealtimeContribution(
|
|
911
986
|
_user: PromiseOrValue<string>,
|
|
912
987
|
overrides?: CallOverrides
|
|
@@ -915,11 +990,22 @@ export interface UBIPool extends BaseContract {
|
|
|
915
990
|
getRealtimeStats(
|
|
916
991
|
overrides?: CallOverrides
|
|
917
992
|
): Promise<
|
|
918
|
-
[
|
|
993
|
+
[
|
|
994
|
+
BigNumber,
|
|
995
|
+
BigNumber,
|
|
996
|
+
BigNumber,
|
|
997
|
+
BigNumber,
|
|
998
|
+
BigNumber,
|
|
999
|
+
BigNumber,
|
|
1000
|
+
BigNumber
|
|
1001
|
+
] & {
|
|
919
1002
|
netIncome: BigNumber;
|
|
920
1003
|
totalFees: BigNumber;
|
|
1004
|
+
protocolFees: BigNumber;
|
|
1005
|
+
managerFees: BigNumber;
|
|
921
1006
|
incomeFlowRate: BigNumber;
|
|
922
1007
|
feeRate: BigNumber;
|
|
1008
|
+
managerFeeRate: BigNumber;
|
|
923
1009
|
}
|
|
924
1010
|
>;
|
|
925
1011
|
|
|
@@ -957,8 +1043,9 @@ export interface UBIPool extends BaseContract {
|
|
|
957
1043
|
host(overrides?: CallOverrides): Promise<[string]>;
|
|
958
1044
|
|
|
959
1045
|
initialize(
|
|
960
|
-
_settings:
|
|
1046
|
+
_settings: PoolSettingsStruct,
|
|
961
1047
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
1048
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
962
1049
|
_registry: PromiseOrValue<string>,
|
|
963
1050
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
964
1051
|
): Promise<ContractTransaction>;
|
|
@@ -981,6 +1068,11 @@ export interface UBIPool extends BaseContract {
|
|
|
981
1068
|
|
|
982
1069
|
registry(overrides?: CallOverrides): Promise<[string]>;
|
|
983
1070
|
|
|
1071
|
+
removeMember(
|
|
1072
|
+
member: PromiseOrValue<string>,
|
|
1073
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1074
|
+
): Promise<ContractTransaction>;
|
|
1075
|
+
|
|
984
1076
|
renounceRole(
|
|
985
1077
|
role: PromiseOrValue<BytesLike>,
|
|
986
1078
|
account: PromiseOrValue<string>,
|
|
@@ -994,12 +1086,13 @@ export interface UBIPool extends BaseContract {
|
|
|
994
1086
|
): Promise<ContractTransaction>;
|
|
995
1087
|
|
|
996
1088
|
setPoolSettings(
|
|
997
|
-
_settings:
|
|
1089
|
+
_settings: PoolSettingsStruct,
|
|
998
1090
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
999
1091
|
): Promise<ContractTransaction>;
|
|
1000
1092
|
|
|
1001
1093
|
setUBISettings(
|
|
1002
1094
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
1095
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1003
1096
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1004
1097
|
): Promise<ContractTransaction>;
|
|
1005
1098
|
|
|
@@ -1017,12 +1110,24 @@ export interface UBIPool extends BaseContract {
|
|
|
1017
1110
|
stats(
|
|
1018
1111
|
overrides?: CallOverrides
|
|
1019
1112
|
): Promise<
|
|
1020
|
-
[
|
|
1113
|
+
[
|
|
1114
|
+
BigNumber,
|
|
1115
|
+
BigNumber,
|
|
1116
|
+
BigNumber,
|
|
1117
|
+
string,
|
|
1118
|
+
BigNumber,
|
|
1119
|
+
string,
|
|
1120
|
+
BigNumber,
|
|
1121
|
+
BigNumber
|
|
1122
|
+
] & {
|
|
1021
1123
|
netIncome: BigNumber;
|
|
1022
1124
|
totalFees: BigNumber;
|
|
1023
1125
|
lastUpdate: BigNumber;
|
|
1024
1126
|
lastFeeRecipient: string;
|
|
1025
1127
|
lastIncomeRate: BigNumber;
|
|
1128
|
+
lastManagerFeeRecipient: string;
|
|
1129
|
+
protocolFees: BigNumber;
|
|
1130
|
+
managerFees: BigNumber;
|
|
1026
1131
|
}
|
|
1027
1132
|
>;
|
|
1028
1133
|
|
|
@@ -1059,6 +1164,13 @@ export interface UBIPool extends BaseContract {
|
|
|
1059
1164
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1060
1165
|
): Promise<ContractTransaction>;
|
|
1061
1166
|
|
|
1167
|
+
supportWithSwap(
|
|
1168
|
+
_sender: PromiseOrValue<string>,
|
|
1169
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
1170
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
1171
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1172
|
+
): Promise<ContractTransaction>;
|
|
1173
|
+
|
|
1062
1174
|
supporters(
|
|
1063
1175
|
arg0: PromiseOrValue<string>,
|
|
1064
1176
|
overrides?: CallOverrides
|
|
@@ -1080,13 +1192,14 @@ export interface UBIPool extends BaseContract {
|
|
|
1080
1192
|
ubiSettings(
|
|
1081
1193
|
overrides?: CallOverrides
|
|
1082
1194
|
): Promise<
|
|
1083
|
-
[number, number, number, boolean, BigNumber, number] & {
|
|
1195
|
+
[number, number, number, boolean, BigNumber, number, boolean] & {
|
|
1084
1196
|
cycleLengthDays: number;
|
|
1085
1197
|
claimPeriodDays: number;
|
|
1086
1198
|
minActiveUsers: number;
|
|
1087
1199
|
claimForEnabled: boolean;
|
|
1088
1200
|
maxClaimAmount: BigNumber;
|
|
1089
1201
|
maxMembers: number;
|
|
1202
|
+
onlyMembers: boolean;
|
|
1090
1203
|
}
|
|
1091
1204
|
>;
|
|
1092
1205
|
|
|
@@ -1123,11 +1236,6 @@ export interface UBIPool extends BaseContract {
|
|
|
1123
1236
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1124
1237
|
): Promise<ContractTransaction>;
|
|
1125
1238
|
|
|
1126
|
-
addMemberByManager(
|
|
1127
|
-
member: PromiseOrValue<string>,
|
|
1128
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1129
|
-
): Promise<ContractTransaction>;
|
|
1130
|
-
|
|
1131
1239
|
afterAgreementCreated(
|
|
1132
1240
|
superToken: PromiseOrValue<string>,
|
|
1133
1241
|
arg1: PromiseOrValue<string>,
|
|
@@ -1208,10 +1316,28 @@ export interface UBIPool extends BaseContract {
|
|
|
1208
1316
|
|
|
1209
1317
|
currentDayInCycle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1210
1318
|
|
|
1319
|
+
distributionFormula(
|
|
1320
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1321
|
+
): Promise<ContractTransaction>;
|
|
1322
|
+
|
|
1211
1323
|
estimateNextDailyUBI(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1212
1324
|
|
|
1325
|
+
extendedSettings(
|
|
1326
|
+
overrides?: CallOverrides
|
|
1327
|
+
): Promise<
|
|
1328
|
+
[number, BigNumber, number] & {
|
|
1329
|
+
maxPeriodClaimers: number;
|
|
1330
|
+
minClaimAmount: BigNumber;
|
|
1331
|
+
managerFeeBps: number;
|
|
1332
|
+
}
|
|
1333
|
+
>;
|
|
1334
|
+
|
|
1213
1335
|
getCurrentDay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1214
1336
|
|
|
1337
|
+
getManagerFee(
|
|
1338
|
+
overrides?: CallOverrides
|
|
1339
|
+
): Promise<[string, number] & { feeRecipient: string; feeBps: number }>;
|
|
1340
|
+
|
|
1215
1341
|
getRealtimeContribution(
|
|
1216
1342
|
_user: PromiseOrValue<string>,
|
|
1217
1343
|
overrides?: CallOverrides
|
|
@@ -1220,11 +1346,22 @@ export interface UBIPool extends BaseContract {
|
|
|
1220
1346
|
getRealtimeStats(
|
|
1221
1347
|
overrides?: CallOverrides
|
|
1222
1348
|
): Promise<
|
|
1223
|
-
[
|
|
1349
|
+
[
|
|
1350
|
+
BigNumber,
|
|
1351
|
+
BigNumber,
|
|
1352
|
+
BigNumber,
|
|
1353
|
+
BigNumber,
|
|
1354
|
+
BigNumber,
|
|
1355
|
+
BigNumber,
|
|
1356
|
+
BigNumber
|
|
1357
|
+
] & {
|
|
1224
1358
|
netIncome: BigNumber;
|
|
1225
1359
|
totalFees: BigNumber;
|
|
1360
|
+
protocolFees: BigNumber;
|
|
1361
|
+
managerFees: BigNumber;
|
|
1226
1362
|
incomeFlowRate: BigNumber;
|
|
1227
1363
|
feeRate: BigNumber;
|
|
1364
|
+
managerFeeRate: BigNumber;
|
|
1228
1365
|
}
|
|
1229
1366
|
>;
|
|
1230
1367
|
|
|
@@ -1262,8 +1399,9 @@ export interface UBIPool extends BaseContract {
|
|
|
1262
1399
|
host(overrides?: CallOverrides): Promise<string>;
|
|
1263
1400
|
|
|
1264
1401
|
initialize(
|
|
1265
|
-
_settings:
|
|
1402
|
+
_settings: PoolSettingsStruct,
|
|
1266
1403
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
1404
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1267
1405
|
_registry: PromiseOrValue<string>,
|
|
1268
1406
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1269
1407
|
): Promise<ContractTransaction>;
|
|
@@ -1286,6 +1424,11 @@ export interface UBIPool extends BaseContract {
|
|
|
1286
1424
|
|
|
1287
1425
|
registry(overrides?: CallOverrides): Promise<string>;
|
|
1288
1426
|
|
|
1427
|
+
removeMember(
|
|
1428
|
+
member: PromiseOrValue<string>,
|
|
1429
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1430
|
+
): Promise<ContractTransaction>;
|
|
1431
|
+
|
|
1289
1432
|
renounceRole(
|
|
1290
1433
|
role: PromiseOrValue<BytesLike>,
|
|
1291
1434
|
account: PromiseOrValue<string>,
|
|
@@ -1299,12 +1442,13 @@ export interface UBIPool extends BaseContract {
|
|
|
1299
1442
|
): Promise<ContractTransaction>;
|
|
1300
1443
|
|
|
1301
1444
|
setPoolSettings(
|
|
1302
|
-
_settings:
|
|
1445
|
+
_settings: PoolSettingsStruct,
|
|
1303
1446
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1304
1447
|
): Promise<ContractTransaction>;
|
|
1305
1448
|
|
|
1306
1449
|
setUBISettings(
|
|
1307
1450
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
1451
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1308
1452
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1309
1453
|
): Promise<ContractTransaction>;
|
|
1310
1454
|
|
|
@@ -1322,12 +1466,24 @@ export interface UBIPool extends BaseContract {
|
|
|
1322
1466
|
stats(
|
|
1323
1467
|
overrides?: CallOverrides
|
|
1324
1468
|
): Promise<
|
|
1325
|
-
[
|
|
1469
|
+
[
|
|
1470
|
+
BigNumber,
|
|
1471
|
+
BigNumber,
|
|
1472
|
+
BigNumber,
|
|
1473
|
+
string,
|
|
1474
|
+
BigNumber,
|
|
1475
|
+
string,
|
|
1476
|
+
BigNumber,
|
|
1477
|
+
BigNumber
|
|
1478
|
+
] & {
|
|
1326
1479
|
netIncome: BigNumber;
|
|
1327
1480
|
totalFees: BigNumber;
|
|
1328
1481
|
lastUpdate: BigNumber;
|
|
1329
1482
|
lastFeeRecipient: string;
|
|
1330
1483
|
lastIncomeRate: BigNumber;
|
|
1484
|
+
lastManagerFeeRecipient: string;
|
|
1485
|
+
protocolFees: BigNumber;
|
|
1486
|
+
managerFees: BigNumber;
|
|
1331
1487
|
}
|
|
1332
1488
|
>;
|
|
1333
1489
|
|
|
@@ -1364,6 +1520,13 @@ export interface UBIPool extends BaseContract {
|
|
|
1364
1520
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1365
1521
|
): Promise<ContractTransaction>;
|
|
1366
1522
|
|
|
1523
|
+
supportWithSwap(
|
|
1524
|
+
_sender: PromiseOrValue<string>,
|
|
1525
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
1526
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
1527
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1528
|
+
): Promise<ContractTransaction>;
|
|
1529
|
+
|
|
1367
1530
|
supporters(
|
|
1368
1531
|
arg0: PromiseOrValue<string>,
|
|
1369
1532
|
overrides?: CallOverrides
|
|
@@ -1385,13 +1548,14 @@ export interface UBIPool extends BaseContract {
|
|
|
1385
1548
|
ubiSettings(
|
|
1386
1549
|
overrides?: CallOverrides
|
|
1387
1550
|
): Promise<
|
|
1388
|
-
[number, number, number, boolean, BigNumber, number] & {
|
|
1551
|
+
[number, number, number, boolean, BigNumber, number, boolean] & {
|
|
1389
1552
|
cycleLengthDays: number;
|
|
1390
1553
|
claimPeriodDays: number;
|
|
1391
1554
|
minActiveUsers: number;
|
|
1392
1555
|
claimForEnabled: boolean;
|
|
1393
1556
|
maxClaimAmount: BigNumber;
|
|
1394
1557
|
maxMembers: number;
|
|
1558
|
+
onlyMembers: boolean;
|
|
1395
1559
|
}
|
|
1396
1560
|
>;
|
|
1397
1561
|
|
|
@@ -1428,11 +1592,6 @@ export interface UBIPool extends BaseContract {
|
|
|
1428
1592
|
overrides?: CallOverrides
|
|
1429
1593
|
): Promise<boolean>;
|
|
1430
1594
|
|
|
1431
|
-
addMemberByManager(
|
|
1432
|
-
member: PromiseOrValue<string>,
|
|
1433
|
-
overrides?: CallOverrides
|
|
1434
|
-
): Promise<boolean>;
|
|
1435
|
-
|
|
1436
1595
|
afterAgreementCreated(
|
|
1437
1596
|
superToken: PromiseOrValue<string>,
|
|
1438
1597
|
arg1: PromiseOrValue<string>,
|
|
@@ -1511,10 +1670,26 @@ export interface UBIPool extends BaseContract {
|
|
|
1511
1670
|
|
|
1512
1671
|
currentDayInCycle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1513
1672
|
|
|
1673
|
+
distributionFormula(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1674
|
+
|
|
1514
1675
|
estimateNextDailyUBI(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1515
1676
|
|
|
1677
|
+
extendedSettings(
|
|
1678
|
+
overrides?: CallOverrides
|
|
1679
|
+
): Promise<
|
|
1680
|
+
[number, BigNumber, number] & {
|
|
1681
|
+
maxPeriodClaimers: number;
|
|
1682
|
+
minClaimAmount: BigNumber;
|
|
1683
|
+
managerFeeBps: number;
|
|
1684
|
+
}
|
|
1685
|
+
>;
|
|
1686
|
+
|
|
1516
1687
|
getCurrentDay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1517
1688
|
|
|
1689
|
+
getManagerFee(
|
|
1690
|
+
overrides?: CallOverrides
|
|
1691
|
+
): Promise<[string, number] & { feeRecipient: string; feeBps: number }>;
|
|
1692
|
+
|
|
1518
1693
|
getRealtimeContribution(
|
|
1519
1694
|
_user: PromiseOrValue<string>,
|
|
1520
1695
|
overrides?: CallOverrides
|
|
@@ -1523,11 +1698,22 @@ export interface UBIPool extends BaseContract {
|
|
|
1523
1698
|
getRealtimeStats(
|
|
1524
1699
|
overrides?: CallOverrides
|
|
1525
1700
|
): Promise<
|
|
1526
|
-
[
|
|
1701
|
+
[
|
|
1702
|
+
BigNumber,
|
|
1703
|
+
BigNumber,
|
|
1704
|
+
BigNumber,
|
|
1705
|
+
BigNumber,
|
|
1706
|
+
BigNumber,
|
|
1707
|
+
BigNumber,
|
|
1708
|
+
BigNumber
|
|
1709
|
+
] & {
|
|
1527
1710
|
netIncome: BigNumber;
|
|
1528
1711
|
totalFees: BigNumber;
|
|
1712
|
+
protocolFees: BigNumber;
|
|
1713
|
+
managerFees: BigNumber;
|
|
1529
1714
|
incomeFlowRate: BigNumber;
|
|
1530
1715
|
feeRate: BigNumber;
|
|
1716
|
+
managerFeeRate: BigNumber;
|
|
1531
1717
|
}
|
|
1532
1718
|
>;
|
|
1533
1719
|
|
|
@@ -1565,8 +1751,9 @@ export interface UBIPool extends BaseContract {
|
|
|
1565
1751
|
host(overrides?: CallOverrides): Promise<string>;
|
|
1566
1752
|
|
|
1567
1753
|
initialize(
|
|
1568
|
-
_settings:
|
|
1754
|
+
_settings: PoolSettingsStruct,
|
|
1569
1755
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
1756
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1570
1757
|
_registry: PromiseOrValue<string>,
|
|
1571
1758
|
overrides?: CallOverrides
|
|
1572
1759
|
): Promise<void>;
|
|
@@ -1589,6 +1776,11 @@ export interface UBIPool extends BaseContract {
|
|
|
1589
1776
|
|
|
1590
1777
|
registry(overrides?: CallOverrides): Promise<string>;
|
|
1591
1778
|
|
|
1779
|
+
removeMember(
|
|
1780
|
+
member: PromiseOrValue<string>,
|
|
1781
|
+
overrides?: CallOverrides
|
|
1782
|
+
): Promise<void>;
|
|
1783
|
+
|
|
1592
1784
|
renounceRole(
|
|
1593
1785
|
role: PromiseOrValue<BytesLike>,
|
|
1594
1786
|
account: PromiseOrValue<string>,
|
|
@@ -1602,12 +1794,13 @@ export interface UBIPool extends BaseContract {
|
|
|
1602
1794
|
): Promise<void>;
|
|
1603
1795
|
|
|
1604
1796
|
setPoolSettings(
|
|
1605
|
-
_settings:
|
|
1797
|
+
_settings: PoolSettingsStruct,
|
|
1606
1798
|
overrides?: CallOverrides
|
|
1607
1799
|
): Promise<void>;
|
|
1608
1800
|
|
|
1609
1801
|
setUBISettings(
|
|
1610
1802
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
1803
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1611
1804
|
overrides?: CallOverrides
|
|
1612
1805
|
): Promise<void>;
|
|
1613
1806
|
|
|
@@ -1625,12 +1818,24 @@ export interface UBIPool extends BaseContract {
|
|
|
1625
1818
|
stats(
|
|
1626
1819
|
overrides?: CallOverrides
|
|
1627
1820
|
): Promise<
|
|
1628
|
-
[
|
|
1821
|
+
[
|
|
1822
|
+
BigNumber,
|
|
1823
|
+
BigNumber,
|
|
1824
|
+
BigNumber,
|
|
1825
|
+
string,
|
|
1826
|
+
BigNumber,
|
|
1827
|
+
string,
|
|
1828
|
+
BigNumber,
|
|
1829
|
+
BigNumber
|
|
1830
|
+
] & {
|
|
1629
1831
|
netIncome: BigNumber;
|
|
1630
1832
|
totalFees: BigNumber;
|
|
1631
1833
|
lastUpdate: BigNumber;
|
|
1632
1834
|
lastFeeRecipient: string;
|
|
1633
1835
|
lastIncomeRate: BigNumber;
|
|
1836
|
+
lastManagerFeeRecipient: string;
|
|
1837
|
+
protocolFees: BigNumber;
|
|
1838
|
+
managerFees: BigNumber;
|
|
1634
1839
|
}
|
|
1635
1840
|
>;
|
|
1636
1841
|
|
|
@@ -1667,6 +1872,13 @@ export interface UBIPool extends BaseContract {
|
|
|
1667
1872
|
overrides?: CallOverrides
|
|
1668
1873
|
): Promise<string>;
|
|
1669
1874
|
|
|
1875
|
+
supportWithSwap(
|
|
1876
|
+
_sender: PromiseOrValue<string>,
|
|
1877
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
1878
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
1879
|
+
overrides?: CallOverrides
|
|
1880
|
+
): Promise<string>;
|
|
1881
|
+
|
|
1670
1882
|
supporters(
|
|
1671
1883
|
arg0: PromiseOrValue<string>,
|
|
1672
1884
|
overrides?: CallOverrides
|
|
@@ -1688,13 +1900,14 @@ export interface UBIPool extends BaseContract {
|
|
|
1688
1900
|
ubiSettings(
|
|
1689
1901
|
overrides?: CallOverrides
|
|
1690
1902
|
): Promise<
|
|
1691
|
-
[number, number, number, boolean, BigNumber, number] & {
|
|
1903
|
+
[number, number, number, boolean, BigNumber, number, boolean] & {
|
|
1692
1904
|
cycleLengthDays: number;
|
|
1693
1905
|
claimPeriodDays: number;
|
|
1694
1906
|
minActiveUsers: number;
|
|
1695
1907
|
claimForEnabled: boolean;
|
|
1696
1908
|
maxClaimAmount: BigNumber;
|
|
1697
1909
|
maxMembers: number;
|
|
1910
|
+
onlyMembers: boolean;
|
|
1698
1911
|
}
|
|
1699
1912
|
>;
|
|
1700
1913
|
|
|
@@ -1857,11 +2070,6 @@ export interface UBIPool extends BaseContract {
|
|
|
1857
2070
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1858
2071
|
): Promise<BigNumber>;
|
|
1859
2072
|
|
|
1860
|
-
addMemberByManager(
|
|
1861
|
-
member: PromiseOrValue<string>,
|
|
1862
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1863
|
-
): Promise<BigNumber>;
|
|
1864
|
-
|
|
1865
2073
|
afterAgreementCreated(
|
|
1866
2074
|
superToken: PromiseOrValue<string>,
|
|
1867
2075
|
arg1: PromiseOrValue<string>,
|
|
@@ -1940,10 +2148,18 @@ export interface UBIPool extends BaseContract {
|
|
|
1940
2148
|
|
|
1941
2149
|
currentDayInCycle(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1942
2150
|
|
|
2151
|
+
distributionFormula(
|
|
2152
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2153
|
+
): Promise<BigNumber>;
|
|
2154
|
+
|
|
1943
2155
|
estimateNextDailyUBI(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1944
2156
|
|
|
2157
|
+
extendedSettings(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2158
|
+
|
|
1945
2159
|
getCurrentDay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1946
2160
|
|
|
2161
|
+
getManagerFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2162
|
+
|
|
1947
2163
|
getRealtimeContribution(
|
|
1948
2164
|
_user: PromiseOrValue<string>,
|
|
1949
2165
|
overrides?: CallOverrides
|
|
@@ -1985,8 +2201,9 @@ export interface UBIPool extends BaseContract {
|
|
|
1985
2201
|
host(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1986
2202
|
|
|
1987
2203
|
initialize(
|
|
1988
|
-
_settings:
|
|
2204
|
+
_settings: PoolSettingsStruct,
|
|
1989
2205
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
2206
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
1990
2207
|
_registry: PromiseOrValue<string>,
|
|
1991
2208
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1992
2209
|
): Promise<BigNumber>;
|
|
@@ -2009,6 +2226,11 @@ export interface UBIPool extends BaseContract {
|
|
|
2009
2226
|
|
|
2010
2227
|
registry(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2011
2228
|
|
|
2229
|
+
removeMember(
|
|
2230
|
+
member: PromiseOrValue<string>,
|
|
2231
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2232
|
+
): Promise<BigNumber>;
|
|
2233
|
+
|
|
2012
2234
|
renounceRole(
|
|
2013
2235
|
role: PromiseOrValue<BytesLike>,
|
|
2014
2236
|
account: PromiseOrValue<string>,
|
|
@@ -2022,12 +2244,13 @@ export interface UBIPool extends BaseContract {
|
|
|
2022
2244
|
): Promise<BigNumber>;
|
|
2023
2245
|
|
|
2024
2246
|
setPoolSettings(
|
|
2025
|
-
_settings:
|
|
2247
|
+
_settings: PoolSettingsStruct,
|
|
2026
2248
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2027
2249
|
): Promise<BigNumber>;
|
|
2028
2250
|
|
|
2029
2251
|
setUBISettings(
|
|
2030
2252
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
2253
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
2031
2254
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2032
2255
|
): Promise<BigNumber>;
|
|
2033
2256
|
|
|
@@ -2046,6 +2269,13 @@ export interface UBIPool extends BaseContract {
|
|
|
2046
2269
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2047
2270
|
): Promise<BigNumber>;
|
|
2048
2271
|
|
|
2272
|
+
supportWithSwap(
|
|
2273
|
+
_sender: PromiseOrValue<string>,
|
|
2274
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
2275
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
2276
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2277
|
+
): Promise<BigNumber>;
|
|
2278
|
+
|
|
2049
2279
|
supporters(
|
|
2050
2280
|
arg0: PromiseOrValue<string>,
|
|
2051
2281
|
overrides?: CallOverrides
|
|
@@ -2096,11 +2326,6 @@ export interface UBIPool extends BaseContract {
|
|
|
2096
2326
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2097
2327
|
): Promise<PopulatedTransaction>;
|
|
2098
2328
|
|
|
2099
|
-
addMemberByManager(
|
|
2100
|
-
member: PromiseOrValue<string>,
|
|
2101
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2102
|
-
): Promise<PopulatedTransaction>;
|
|
2103
|
-
|
|
2104
2329
|
afterAgreementCreated(
|
|
2105
2330
|
superToken: PromiseOrValue<string>,
|
|
2106
2331
|
arg1: PromiseOrValue<string>,
|
|
@@ -2181,12 +2406,20 @@ export interface UBIPool extends BaseContract {
|
|
|
2181
2406
|
|
|
2182
2407
|
currentDayInCycle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2183
2408
|
|
|
2409
|
+
distributionFormula(
|
|
2410
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2411
|
+
): Promise<PopulatedTransaction>;
|
|
2412
|
+
|
|
2184
2413
|
estimateNextDailyUBI(
|
|
2185
2414
|
overrides?: CallOverrides
|
|
2186
2415
|
): Promise<PopulatedTransaction>;
|
|
2187
2416
|
|
|
2417
|
+
extendedSettings(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2418
|
+
|
|
2188
2419
|
getCurrentDay(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2189
2420
|
|
|
2421
|
+
getManagerFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2422
|
+
|
|
2190
2423
|
getRealtimeContribution(
|
|
2191
2424
|
_user: PromiseOrValue<string>,
|
|
2192
2425
|
overrides?: CallOverrides
|
|
@@ -2228,8 +2461,9 @@ export interface UBIPool extends BaseContract {
|
|
|
2228
2461
|
host(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2229
2462
|
|
|
2230
2463
|
initialize(
|
|
2231
|
-
_settings:
|
|
2464
|
+
_settings: PoolSettingsStruct,
|
|
2232
2465
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
2466
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
2233
2467
|
_registry: PromiseOrValue<string>,
|
|
2234
2468
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2235
2469
|
): Promise<PopulatedTransaction>;
|
|
@@ -2252,6 +2486,11 @@ export interface UBIPool extends BaseContract {
|
|
|
2252
2486
|
|
|
2253
2487
|
registry(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2254
2488
|
|
|
2489
|
+
removeMember(
|
|
2490
|
+
member: PromiseOrValue<string>,
|
|
2491
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2492
|
+
): Promise<PopulatedTransaction>;
|
|
2493
|
+
|
|
2255
2494
|
renounceRole(
|
|
2256
2495
|
role: PromiseOrValue<BytesLike>,
|
|
2257
2496
|
account: PromiseOrValue<string>,
|
|
@@ -2265,12 +2504,13 @@ export interface UBIPool extends BaseContract {
|
|
|
2265
2504
|
): Promise<PopulatedTransaction>;
|
|
2266
2505
|
|
|
2267
2506
|
setPoolSettings(
|
|
2268
|
-
_settings:
|
|
2507
|
+
_settings: PoolSettingsStruct,
|
|
2269
2508
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2270
2509
|
): Promise<PopulatedTransaction>;
|
|
2271
2510
|
|
|
2272
2511
|
setUBISettings(
|
|
2273
2512
|
_ubiSettings: UBIPool.UBISettingsStruct,
|
|
2513
|
+
_extendedSettings: UBIPool.ExtendedSettingsStruct,
|
|
2274
2514
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2275
2515
|
): Promise<PopulatedTransaction>;
|
|
2276
2516
|
|
|
@@ -2289,6 +2529,13 @@ export interface UBIPool extends BaseContract {
|
|
|
2289
2529
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2290
2530
|
): Promise<PopulatedTransaction>;
|
|
2291
2531
|
|
|
2532
|
+
supportWithSwap(
|
|
2533
|
+
_sender: PromiseOrValue<string>,
|
|
2534
|
+
_customData: HelperLibrary.SwapDataStruct,
|
|
2535
|
+
_ctx: PromiseOrValue<BytesLike>,
|
|
2536
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2537
|
+
): Promise<PopulatedTransaction>;
|
|
2538
|
+
|
|
2292
2539
|
supporters(
|
|
2293
2540
|
arg0: PromiseOrValue<string>,
|
|
2294
2541
|
overrides?: CallOverrides
|