@gooddollar/goodcollective-contracts 1.3.0 → 1.4.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/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.dbg.json +4 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.json +995 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.dbg.json +4 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.json +113 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.dbg.json +4 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.json +2210 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.dbg.json +4 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.json +30 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.dbg.json +4 -0
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.json +45 -0
- package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.dbg.json +4 -0
- package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.json +1187 -0
- package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.dbg.json +4 -0
- package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.json +831 -0
- package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.dbg.json +4 -0
- package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.json +42 -0
- package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.dbg.json +4 -0
- package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.json +61 -0
- package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.dbg.json +4 -0
- package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.json +47 -0
- package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.dbg.json +4 -0
- package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.json +320 -0
- package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +4 -0
- package/artifacts/contracts/Interfaces.sol/IIdentityV2.json +30 -0
- package/artifacts/contracts/Interfaces.sol/IMembersValidator.dbg.json +4 -0
- package/artifacts/contracts/Interfaces.sol/IMembersValidator.json +45 -0
- package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.dbg.json +4 -0
- package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.json +2078 -0
- package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.dbg.json +4 -0
- package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.json +1011 -0
- package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.dbg.json +4 -0
- package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.json +90 -0
- package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.dbg.json +4 -0
- package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.json +117 -0
- package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.dbg.json +4 -0
- package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.json +119 -0
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +32 -6
- package/contracts/DirectPayments/DirectPaymentsLibrary.sol +168 -14
- package/contracts/DirectPayments/DirectPaymentsPool.sol +31 -116
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +7 -6
- package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +4 -0
- package/contracts/GoodCollective/SuperAppBaseFlow.sol +6 -0
- package/contracts/UBI/UBIPool.sol +62 -18
- package/contracts/UBI/UBIPoolFactory.sol +32 -4
- package/contracts/utils/HelperLibrary.sol +10 -0
- package/contracts/utils/Recover.sol +16 -0
- package/package.json +4 -4
- package/releases/deployment.json +7417 -30724
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +54 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary.ts +77 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.ts +77 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.ts +146 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +90 -11
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts +6 -8
- package/typechain-types/contracts/DirectPayments/index.ts +1 -0
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +40 -0
- package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts +22 -1
- package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts +38 -1
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.ts +152 -0
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.ts +523 -0
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
- package/typechain-types/contracts/GoodCollective/index.ts +2 -1
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IClaimable.ts +92 -0
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +196 -0
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +242 -0
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
- package/typechain-types/contracts/UBI/UBIPool.ts +77 -0
- package/typechain-types/contracts/UBI/UBIPoolFactory.ts +54 -0
- package/typechain-types/contracts/utils/Recover.ts +263 -0
- package/typechain-types/contracts/utils/index.ts +1 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +38 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary__factory.ts +96 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary__factory.ts +96 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +169 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +53 -2
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator__factory.ts +1 -1
- package/typechain-types/factories/contracts/DirectPayments/index.ts +1 -0
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +18 -0
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts +13 -0
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +24 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp__factory.ts +62 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow__factory.ts +335 -0
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
- package/typechain-types/factories/contracts/GoodCollective/index.ts +1 -1
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +33 -0
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +84 -0
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +150 -0
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +38 -1
- package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +42 -1
- package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +1 -1
- package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +11 -1
- package/typechain-types/factories/contracts/utils/Recover__factory.ts +172 -0
- package/typechain-types/factories/contracts/utils/index.ts +1 -0
- package/typechain-types/hardhat.d.ts +27 -0
- package/typechain-types/index.ts +8 -2
package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts
CHANGED
|
@@ -151,6 +151,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
151
151
|
"MEMBER_ROLE()": FunctionFragment;
|
|
152
152
|
"MINTER_ROLE()": FunctionFragment;
|
|
153
153
|
"MIN_FLOW_RATE()": FunctionFragment;
|
|
154
|
+
"addMembers(address[],bytes[])": FunctionFragment;
|
|
154
155
|
"afterAgreementCreated(address,address,bytes32,bytes,bytes,bytes)": FunctionFragment;
|
|
155
156
|
"afterAgreementTerminated(address,address,bytes32,bytes,bytes,bytes)": FunctionFragment;
|
|
156
157
|
"afterAgreementUpdated(address,address,bytes32,bytes,bytes,bytes)": FunctionFragment;
|
|
@@ -181,6 +182,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
181
182
|
"onERC721Received(address,address,uint256,bytes)": FunctionFragment;
|
|
182
183
|
"onTokenTransfer(address,uint256,bytes)": FunctionFragment;
|
|
183
184
|
"proxiableUUID()": FunctionFragment;
|
|
185
|
+
"recoverFunds(address,uint256)": FunctionFragment;
|
|
184
186
|
"registry()": FunctionFragment;
|
|
185
187
|
"renounceRole(bytes32,address)": FunctionFragment;
|
|
186
188
|
"revokeRole(bytes32,address)": FunctionFragment;
|
|
@@ -207,6 +209,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
207
209
|
| "MEMBER_ROLE"
|
|
208
210
|
| "MINTER_ROLE"
|
|
209
211
|
| "MIN_FLOW_RATE"
|
|
212
|
+
| "addMembers"
|
|
210
213
|
| "afterAgreementCreated"
|
|
211
214
|
| "afterAgreementTerminated"
|
|
212
215
|
| "afterAgreementUpdated"
|
|
@@ -237,6 +240,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
237
240
|
| "onERC721Received"
|
|
238
241
|
| "onTokenTransfer"
|
|
239
242
|
| "proxiableUUID"
|
|
243
|
+
| "recoverFunds"
|
|
240
244
|
| "registry"
|
|
241
245
|
| "renounceRole"
|
|
242
246
|
| "revokeRole"
|
|
@@ -279,6 +283,10 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
279
283
|
functionFragment: "MIN_FLOW_RATE",
|
|
280
284
|
values?: undefined
|
|
281
285
|
): string;
|
|
286
|
+
encodeFunctionData(
|
|
287
|
+
functionFragment: "addMembers",
|
|
288
|
+
values: [PromiseOrValue<string>[], PromiseOrValue<BytesLike>[]]
|
|
289
|
+
): string;
|
|
282
290
|
encodeFunctionData(
|
|
283
291
|
functionFragment: "afterAgreementCreated",
|
|
284
292
|
values: [
|
|
@@ -449,6 +457,10 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
449
457
|
functionFragment: "proxiableUUID",
|
|
450
458
|
values?: undefined
|
|
451
459
|
): string;
|
|
460
|
+
encodeFunctionData(
|
|
461
|
+
functionFragment: "recoverFunds",
|
|
462
|
+
values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
|
|
463
|
+
): string;
|
|
452
464
|
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
|
|
453
465
|
encodeFunctionData(
|
|
454
466
|
functionFragment: "renounceRole",
|
|
@@ -537,6 +549,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
537
549
|
functionFragment: "MIN_FLOW_RATE",
|
|
538
550
|
data: BytesLike
|
|
539
551
|
): Result;
|
|
552
|
+
decodeFunctionResult(functionFragment: "addMembers", data: BytesLike): Result;
|
|
540
553
|
decodeFunctionResult(
|
|
541
554
|
functionFragment: "afterAgreementCreated",
|
|
542
555
|
data: BytesLike
|
|
@@ -630,6 +643,10 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
630
643
|
functionFragment: "proxiableUUID",
|
|
631
644
|
data: BytesLike
|
|
632
645
|
): Result;
|
|
646
|
+
decodeFunctionResult(
|
|
647
|
+
functionFragment: "recoverFunds",
|
|
648
|
+
data: BytesLike
|
|
649
|
+
): Result;
|
|
633
650
|
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
634
651
|
decodeFunctionResult(
|
|
635
652
|
functionFragment: "renounceRole",
|
|
@@ -674,7 +691,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
674
691
|
"EventRewardClaimed(uint256,uint16,uint32,uint256,string,address[],uint256)": EventFragment;
|
|
675
692
|
"Initialized(uint8)": EventFragment;
|
|
676
693
|
"NFTClaimed(uint256,uint256)": EventFragment;
|
|
677
|
-
"
|
|
694
|
+
"NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)": EventFragment;
|
|
678
695
|
"PoolCreated(address,string,string,uint32,tuple,tuple)": EventFragment;
|
|
679
696
|
"PoolLimitsChanged(tuple)": EventFragment;
|
|
680
697
|
"PoolSettingsChanged(tuple)": EventFragment;
|
|
@@ -690,7 +707,9 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
690
707
|
getEvent(nameOrSignatureOrTopic: "EventRewardClaimed"): EventFragment;
|
|
691
708
|
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
692
709
|
getEvent(nameOrSignatureOrTopic: "NFTClaimed"): EventFragment;
|
|
693
|
-
getEvent(
|
|
710
|
+
getEvent(
|
|
711
|
+
nameOrSignatureOrTopic: "NOT_MEMBER_OR_WHITELISTED_OR_LIMITS"
|
|
712
|
+
): EventFragment;
|
|
694
713
|
getEvent(nameOrSignatureOrTopic: "PoolCreated"): EventFragment;
|
|
695
714
|
getEvent(nameOrSignatureOrTopic: "PoolLimitsChanged"): EventFragment;
|
|
696
715
|
getEvent(nameOrSignatureOrTopic: "PoolSettingsChanged"): EventFragment;
|
|
@@ -757,16 +776,16 @@ export type NFTClaimedEvent = TypedEvent<
|
|
|
757
776
|
|
|
758
777
|
export type NFTClaimedEventFilter = TypedEventFilter<NFTClaimedEvent>;
|
|
759
778
|
|
|
760
|
-
export interface
|
|
779
|
+
export interface NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject {
|
|
761
780
|
contributer: string;
|
|
762
781
|
}
|
|
763
|
-
export type
|
|
782
|
+
export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent = TypedEvent<
|
|
764
783
|
[string],
|
|
765
|
-
|
|
784
|
+
NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject
|
|
766
785
|
>;
|
|
767
786
|
|
|
768
|
-
export type
|
|
769
|
-
TypedEventFilter<
|
|
787
|
+
export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter =
|
|
788
|
+
TypedEventFilter<NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent>;
|
|
770
789
|
|
|
771
790
|
export interface PoolCreatedEventObject {
|
|
772
791
|
pool: string;
|
|
@@ -911,6 +930,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
911
930
|
|
|
912
931
|
MIN_FLOW_RATE(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
913
932
|
|
|
933
|
+
addMembers(
|
|
934
|
+
members: PromiseOrValue<string>[],
|
|
935
|
+
extraData: PromiseOrValue<BytesLike>[],
|
|
936
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
937
|
+
): Promise<ContractTransaction>;
|
|
938
|
+
|
|
914
939
|
afterAgreementCreated(
|
|
915
940
|
superToken: PromiseOrValue<string>,
|
|
916
941
|
arg1: PromiseOrValue<string>,
|
|
@@ -1124,6 +1149,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1124
1149
|
|
|
1125
1150
|
proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
|
|
1126
1151
|
|
|
1152
|
+
recoverFunds(
|
|
1153
|
+
_recipient: PromiseOrValue<string>,
|
|
1154
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1155
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1156
|
+
): Promise<ContractTransaction>;
|
|
1157
|
+
|
|
1127
1158
|
registry(overrides?: CallOverrides): Promise<[string]>;
|
|
1128
1159
|
|
|
1129
1160
|
renounceRole(
|
|
@@ -1249,6 +1280,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1249
1280
|
|
|
1250
1281
|
MIN_FLOW_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1251
1282
|
|
|
1283
|
+
addMembers(
|
|
1284
|
+
members: PromiseOrValue<string>[],
|
|
1285
|
+
extraData: PromiseOrValue<BytesLike>[],
|
|
1286
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1287
|
+
): Promise<ContractTransaction>;
|
|
1288
|
+
|
|
1252
1289
|
afterAgreementCreated(
|
|
1253
1290
|
superToken: PromiseOrValue<string>,
|
|
1254
1291
|
arg1: PromiseOrValue<string>,
|
|
@@ -1462,6 +1499,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1462
1499
|
|
|
1463
1500
|
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
1464
1501
|
|
|
1502
|
+
recoverFunds(
|
|
1503
|
+
_recipient: PromiseOrValue<string>,
|
|
1504
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1505
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1506
|
+
): Promise<ContractTransaction>;
|
|
1507
|
+
|
|
1465
1508
|
registry(overrides?: CallOverrides): Promise<string>;
|
|
1466
1509
|
|
|
1467
1510
|
renounceRole(
|
|
@@ -1587,6 +1630,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1587
1630
|
|
|
1588
1631
|
MIN_FLOW_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
|
1589
1632
|
|
|
1633
|
+
addMembers(
|
|
1634
|
+
members: PromiseOrValue<string>[],
|
|
1635
|
+
extraData: PromiseOrValue<BytesLike>[],
|
|
1636
|
+
overrides?: CallOverrides
|
|
1637
|
+
): Promise<void>;
|
|
1638
|
+
|
|
1590
1639
|
afterAgreementCreated(
|
|
1591
1640
|
superToken: PromiseOrValue<string>,
|
|
1592
1641
|
arg1: PromiseOrValue<string>,
|
|
@@ -1800,6 +1849,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1800
1849
|
|
|
1801
1850
|
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
1802
1851
|
|
|
1852
|
+
recoverFunds(
|
|
1853
|
+
_recipient: PromiseOrValue<string>,
|
|
1854
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1855
|
+
overrides?: CallOverrides
|
|
1856
|
+
): Promise<void>;
|
|
1857
|
+
|
|
1803
1858
|
registry(overrides?: CallOverrides): Promise<string>;
|
|
1804
1859
|
|
|
1805
1860
|
renounceRole(
|
|
@@ -1961,12 +2016,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1961
2016
|
totalRewards?: null
|
|
1962
2017
|
): NFTClaimedEventFilter;
|
|
1963
2018
|
|
|
1964
|
-
"
|
|
2019
|
+
"NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)"(
|
|
1965
2020
|
contributer?: null
|
|
1966
|
-
):
|
|
1967
|
-
|
|
2021
|
+
): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
|
|
2022
|
+
NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(
|
|
1968
2023
|
contributer?: null
|
|
1969
|
-
):
|
|
2024
|
+
): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
|
|
1970
2025
|
|
|
1971
2026
|
"PoolCreated(address,string,string,uint32,tuple,tuple)"(
|
|
1972
2027
|
pool?: PromiseOrValue<string> | null,
|
|
@@ -2064,6 +2119,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
2064
2119
|
|
|
2065
2120
|
MIN_FLOW_RATE(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2066
2121
|
|
|
2122
|
+
addMembers(
|
|
2123
|
+
members: PromiseOrValue<string>[],
|
|
2124
|
+
extraData: PromiseOrValue<BytesLike>[],
|
|
2125
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2126
|
+
): Promise<BigNumber>;
|
|
2127
|
+
|
|
2067
2128
|
afterAgreementCreated(
|
|
2068
2129
|
superToken: PromiseOrValue<string>,
|
|
2069
2130
|
arg1: PromiseOrValue<string>,
|
|
@@ -2227,6 +2288,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
2227
2288
|
|
|
2228
2289
|
proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2229
2290
|
|
|
2291
|
+
recoverFunds(
|
|
2292
|
+
_recipient: PromiseOrValue<string>,
|
|
2293
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
2294
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2295
|
+
): Promise<BigNumber>;
|
|
2296
|
+
|
|
2230
2297
|
registry(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2231
2298
|
|
|
2232
2299
|
renounceRole(
|
|
@@ -2316,6 +2383,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
2316
2383
|
|
|
2317
2384
|
MIN_FLOW_RATE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2318
2385
|
|
|
2386
|
+
addMembers(
|
|
2387
|
+
members: PromiseOrValue<string>[],
|
|
2388
|
+
extraData: PromiseOrValue<BytesLike>[],
|
|
2389
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2390
|
+
): Promise<PopulatedTransaction>;
|
|
2391
|
+
|
|
2319
2392
|
afterAgreementCreated(
|
|
2320
2393
|
superToken: PromiseOrValue<string>,
|
|
2321
2394
|
arg1: PromiseOrValue<string>,
|
|
@@ -2479,6 +2552,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
2479
2552
|
|
|
2480
2553
|
proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2481
2554
|
|
|
2555
|
+
recoverFunds(
|
|
2556
|
+
_recipient: PromiseOrValue<string>,
|
|
2557
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
2558
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2559
|
+
): Promise<PopulatedTransaction>;
|
|
2560
|
+
|
|
2482
2561
|
registry(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2483
2562
|
|
|
2484
2563
|
renounceRole(
|
package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts
CHANGED
|
@@ -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,
|
|
@@ -79,8 +77,8 @@ export interface IMembersValidator extends BaseContract {
|
|
|
79
77
|
operator: PromiseOrValue<string>,
|
|
80
78
|
member: PromiseOrValue<string>,
|
|
81
79
|
extraData: PromiseOrValue<BytesLike>,
|
|
82
|
-
overrides?:
|
|
83
|
-
): Promise<
|
|
80
|
+
overrides?: CallOverrides
|
|
81
|
+
): Promise<[boolean]>;
|
|
84
82
|
};
|
|
85
83
|
|
|
86
84
|
isMemberValid(
|
|
@@ -88,8 +86,8 @@ export interface IMembersValidator extends BaseContract {
|
|
|
88
86
|
operator: PromiseOrValue<string>,
|
|
89
87
|
member: PromiseOrValue<string>,
|
|
90
88
|
extraData: PromiseOrValue<BytesLike>,
|
|
91
|
-
overrides?:
|
|
92
|
-
): Promise<
|
|
89
|
+
overrides?: CallOverrides
|
|
90
|
+
): Promise<boolean>;
|
|
93
91
|
|
|
94
92
|
callStatic: {
|
|
95
93
|
isMemberValid(
|
|
@@ -109,7 +107,7 @@ export interface IMembersValidator extends BaseContract {
|
|
|
109
107
|
operator: PromiseOrValue<string>,
|
|
110
108
|
member: PromiseOrValue<string>,
|
|
111
109
|
extraData: PromiseOrValue<BytesLike>,
|
|
112
|
-
overrides?:
|
|
110
|
+
overrides?: CallOverrides
|
|
113
111
|
): Promise<BigNumber>;
|
|
114
112
|
};
|
|
115
113
|
|
|
@@ -119,7 +117,7 @@ export interface IMembersValidator extends BaseContract {
|
|
|
119
117
|
operator: PromiseOrValue<string>,
|
|
120
118
|
member: PromiseOrValue<string>,
|
|
121
119
|
extraData: PromiseOrValue<BytesLike>,
|
|
122
|
-
overrides?:
|
|
120
|
+
overrides?: CallOverrides
|
|
123
121
|
): Promise<PopulatedTransaction>;
|
|
124
122
|
};
|
|
125
123
|
}
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
import type * as directPaymentsPoolSol from "./DirectPaymentsPool.sol";
|
|
5
5
|
export type { directPaymentsPoolSol };
|
|
6
6
|
export type { DirectPaymentsFactory } from "./DirectPaymentsFactory";
|
|
7
|
+
export type { DirectPaymentsLibrary } from "./DirectPaymentsLibrary";
|
|
7
8
|
export type { ProvableNFT } from "./ProvableNFT";
|
|
@@ -70,6 +70,7 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
70
70
|
"host()": FunctionFragment;
|
|
71
71
|
"isAcceptedSuperToken(address)": FunctionFragment;
|
|
72
72
|
"onTokenTransfer(address,uint256,bytes)": FunctionFragment;
|
|
73
|
+
"recoverFunds(address,uint256)": FunctionFragment;
|
|
73
74
|
"stats()": FunctionFragment;
|
|
74
75
|
"superToken()": FunctionFragment;
|
|
75
76
|
"support(address,uint256,bytes)": FunctionFragment;
|
|
@@ -97,6 +98,7 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
97
98
|
| "host"
|
|
98
99
|
| "isAcceptedSuperToken"
|
|
99
100
|
| "onTokenTransfer"
|
|
101
|
+
| "recoverFunds"
|
|
100
102
|
| "stats"
|
|
101
103
|
| "superToken"
|
|
102
104
|
| "support"
|
|
@@ -214,6 +216,10 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
214
216
|
PromiseOrValue<BytesLike>
|
|
215
217
|
]
|
|
216
218
|
): string;
|
|
219
|
+
encodeFunctionData(
|
|
220
|
+
functionFragment: "recoverFunds",
|
|
221
|
+
values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
|
|
222
|
+
): string;
|
|
217
223
|
encodeFunctionData(functionFragment: "stats", values?: undefined): string;
|
|
218
224
|
encodeFunctionData(
|
|
219
225
|
functionFragment: "superToken",
|
|
@@ -300,6 +306,10 @@ export interface GoodCollectiveSuperAppInterface extends utils.Interface {
|
|
|
300
306
|
functionFragment: "onTokenTransfer",
|
|
301
307
|
data: BytesLike
|
|
302
308
|
): Result;
|
|
309
|
+
decodeFunctionResult(
|
|
310
|
+
functionFragment: "recoverFunds",
|
|
311
|
+
data: BytesLike
|
|
312
|
+
): Result;
|
|
303
313
|
decodeFunctionResult(functionFragment: "stats", data: BytesLike): Result;
|
|
304
314
|
decodeFunctionResult(functionFragment: "superToken", data: BytesLike): Result;
|
|
305
315
|
decodeFunctionResult(functionFragment: "support", data: BytesLike): Result;
|
|
@@ -479,6 +489,12 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
479
489
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
480
490
|
): Promise<ContractTransaction>;
|
|
481
491
|
|
|
492
|
+
recoverFunds(
|
|
493
|
+
_recipient: PromiseOrValue<string>,
|
|
494
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
495
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
496
|
+
): Promise<ContractTransaction>;
|
|
497
|
+
|
|
482
498
|
stats(
|
|
483
499
|
overrides?: CallOverrides
|
|
484
500
|
): Promise<
|
|
@@ -652,6 +668,12 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
652
668
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
653
669
|
): Promise<ContractTransaction>;
|
|
654
670
|
|
|
671
|
+
recoverFunds(
|
|
672
|
+
_recipient: PromiseOrValue<string>,
|
|
673
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
674
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
675
|
+
): Promise<ContractTransaction>;
|
|
676
|
+
|
|
655
677
|
stats(
|
|
656
678
|
overrides?: CallOverrides
|
|
657
679
|
): Promise<
|
|
@@ -825,6 +847,12 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
825
847
|
overrides?: CallOverrides
|
|
826
848
|
): Promise<boolean>;
|
|
827
849
|
|
|
850
|
+
recoverFunds(
|
|
851
|
+
_recipient: PromiseOrValue<string>,
|
|
852
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
853
|
+
overrides?: CallOverrides
|
|
854
|
+
): Promise<void>;
|
|
855
|
+
|
|
828
856
|
stats(
|
|
829
857
|
overrides?: CallOverrides
|
|
830
858
|
): Promise<
|
|
@@ -994,6 +1022,12 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
994
1022
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
995
1023
|
): Promise<BigNumber>;
|
|
996
1024
|
|
|
1025
|
+
recoverFunds(
|
|
1026
|
+
_recipient: PromiseOrValue<string>,
|
|
1027
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1028
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1029
|
+
): Promise<BigNumber>;
|
|
1030
|
+
|
|
997
1031
|
stats(overrides?: CallOverrides): Promise<BigNumber>;
|
|
998
1032
|
|
|
999
1033
|
superToken(overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -1116,6 +1150,12 @@ export interface GoodCollectiveSuperApp extends BaseContract {
|
|
|
1116
1150
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1117
1151
|
): Promise<PopulatedTransaction>;
|
|
1118
1152
|
|
|
1153
|
+
recoverFunds(
|
|
1154
|
+
_recipient: PromiseOrValue<string>,
|
|
1155
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1156
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1157
|
+
): Promise<PopulatedTransaction>;
|
|
1158
|
+
|
|
1119
1159
|
stats(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
1120
1160
|
|
|
1121
1161
|
superToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -22,19 +22,30 @@ import type {
|
|
|
22
22
|
export interface IGoodCollectiveSuperAppInterface extends utils.Interface {
|
|
23
23
|
functions: {
|
|
24
24
|
"getAdminFee()": FunctionFragment;
|
|
25
|
+
"getRegistry()": FunctionFragment;
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
getFunction(
|
|
28
|
+
getFunction(
|
|
29
|
+
nameOrSignatureOrTopic: "getAdminFee" | "getRegistry"
|
|
30
|
+
): FunctionFragment;
|
|
28
31
|
|
|
29
32
|
encodeFunctionData(
|
|
30
33
|
functionFragment: "getAdminFee",
|
|
31
34
|
values?: undefined
|
|
32
35
|
): string;
|
|
36
|
+
encodeFunctionData(
|
|
37
|
+
functionFragment: "getRegistry",
|
|
38
|
+
values?: undefined
|
|
39
|
+
): string;
|
|
33
40
|
|
|
34
41
|
decodeFunctionResult(
|
|
35
42
|
functionFragment: "getAdminFee",
|
|
36
43
|
data: BytesLike
|
|
37
44
|
): Result;
|
|
45
|
+
decodeFunctionResult(
|
|
46
|
+
functionFragment: "getRegistry",
|
|
47
|
+
data: BytesLike
|
|
48
|
+
): Result;
|
|
38
49
|
|
|
39
50
|
events: {};
|
|
40
51
|
}
|
|
@@ -69,25 +80,35 @@ export interface IGoodCollectiveSuperApp extends BaseContract {
|
|
|
69
80
|
getAdminFee(
|
|
70
81
|
overrides?: CallOverrides
|
|
71
82
|
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
83
|
+
|
|
84
|
+
getRegistry(overrides?: CallOverrides): Promise<[string]>;
|
|
72
85
|
};
|
|
73
86
|
|
|
74
87
|
getAdminFee(
|
|
75
88
|
overrides?: CallOverrides
|
|
76
89
|
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
77
90
|
|
|
91
|
+
getRegistry(overrides?: CallOverrides): Promise<string>;
|
|
92
|
+
|
|
78
93
|
callStatic: {
|
|
79
94
|
getAdminFee(
|
|
80
95
|
overrides?: CallOverrides
|
|
81
96
|
): Promise<[string, number] & { admin: string; feeBps: number }>;
|
|
97
|
+
|
|
98
|
+
getRegistry(overrides?: CallOverrides): Promise<string>;
|
|
82
99
|
};
|
|
83
100
|
|
|
84
101
|
filters: {};
|
|
85
102
|
|
|
86
103
|
estimateGas: {
|
|
87
104
|
getAdminFee(overrides?: CallOverrides): Promise<BigNumber>;
|
|
105
|
+
|
|
106
|
+
getRegistry(overrides?: CallOverrides): Promise<BigNumber>;
|
|
88
107
|
};
|
|
89
108
|
|
|
90
109
|
populateTransaction: {
|
|
91
110
|
getAdminFee(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
111
|
+
|
|
112
|
+
getRegistry(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
92
113
|
};
|
|
93
114
|
}
|
|
@@ -17,16 +17,18 @@ import type {
|
|
|
17
17
|
TypedEvent,
|
|
18
18
|
TypedListener,
|
|
19
19
|
OnEvent,
|
|
20
|
+
PromiseOrValue,
|
|
20
21
|
} from "../../../common";
|
|
21
22
|
|
|
22
23
|
export interface IRegistryInterface extends utils.Interface {
|
|
23
24
|
functions: {
|
|
24
25
|
"feeBps()": FunctionFragment;
|
|
25
26
|
"feeRecipient()": FunctionFragment;
|
|
27
|
+
"hasRole(bytes32,address)": FunctionFragment;
|
|
26
28
|
};
|
|
27
29
|
|
|
28
30
|
getFunction(
|
|
29
|
-
nameOrSignatureOrTopic: "feeBps" | "feeRecipient"
|
|
31
|
+
nameOrSignatureOrTopic: "feeBps" | "feeRecipient" | "hasRole"
|
|
30
32
|
): FunctionFragment;
|
|
31
33
|
|
|
32
34
|
encodeFunctionData(functionFragment: "feeBps", values?: undefined): string;
|
|
@@ -34,12 +36,17 @@ export interface IRegistryInterface extends utils.Interface {
|
|
|
34
36
|
functionFragment: "feeRecipient",
|
|
35
37
|
values?: undefined
|
|
36
38
|
): string;
|
|
39
|
+
encodeFunctionData(
|
|
40
|
+
functionFragment: "hasRole",
|
|
41
|
+
values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]
|
|
42
|
+
): string;
|
|
37
43
|
|
|
38
44
|
decodeFunctionResult(functionFragment: "feeBps", data: BytesLike): Result;
|
|
39
45
|
decodeFunctionResult(
|
|
40
46
|
functionFragment: "feeRecipient",
|
|
41
47
|
data: BytesLike
|
|
42
48
|
): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
43
50
|
|
|
44
51
|
events: {};
|
|
45
52
|
}
|
|
@@ -74,16 +81,34 @@ export interface IRegistry extends BaseContract {
|
|
|
74
81
|
feeBps(overrides?: CallOverrides): Promise<[number]>;
|
|
75
82
|
|
|
76
83
|
feeRecipient(overrides?: CallOverrides): Promise<[string]>;
|
|
84
|
+
|
|
85
|
+
hasRole(
|
|
86
|
+
role: PromiseOrValue<BytesLike>,
|
|
87
|
+
account: PromiseOrValue<string>,
|
|
88
|
+
overrides?: CallOverrides
|
|
89
|
+
): Promise<[boolean]>;
|
|
77
90
|
};
|
|
78
91
|
|
|
79
92
|
feeBps(overrides?: CallOverrides): Promise<number>;
|
|
80
93
|
|
|
81
94
|
feeRecipient(overrides?: CallOverrides): Promise<string>;
|
|
82
95
|
|
|
96
|
+
hasRole(
|
|
97
|
+
role: PromiseOrValue<BytesLike>,
|
|
98
|
+
account: PromiseOrValue<string>,
|
|
99
|
+
overrides?: CallOverrides
|
|
100
|
+
): Promise<boolean>;
|
|
101
|
+
|
|
83
102
|
callStatic: {
|
|
84
103
|
feeBps(overrides?: CallOverrides): Promise<number>;
|
|
85
104
|
|
|
86
105
|
feeRecipient(overrides?: CallOverrides): Promise<string>;
|
|
106
|
+
|
|
107
|
+
hasRole(
|
|
108
|
+
role: PromiseOrValue<BytesLike>,
|
|
109
|
+
account: PromiseOrValue<string>,
|
|
110
|
+
overrides?: CallOverrides
|
|
111
|
+
): Promise<boolean>;
|
|
87
112
|
};
|
|
88
113
|
|
|
89
114
|
filters: {};
|
|
@@ -92,11 +117,23 @@ export interface IRegistry extends BaseContract {
|
|
|
92
117
|
feeBps(overrides?: CallOverrides): Promise<BigNumber>;
|
|
93
118
|
|
|
94
119
|
feeRecipient(overrides?: CallOverrides): Promise<BigNumber>;
|
|
120
|
+
|
|
121
|
+
hasRole(
|
|
122
|
+
role: PromiseOrValue<BytesLike>,
|
|
123
|
+
account: PromiseOrValue<string>,
|
|
124
|
+
overrides?: CallOverrides
|
|
125
|
+
): Promise<BigNumber>;
|
|
95
126
|
};
|
|
96
127
|
|
|
97
128
|
populateTransaction: {
|
|
98
129
|
feeBps(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
99
130
|
|
|
100
131
|
feeRecipient(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
132
|
+
|
|
133
|
+
hasRole(
|
|
134
|
+
role: PromiseOrValue<BytesLike>,
|
|
135
|
+
account: PromiseOrValue<string>,
|
|
136
|
+
overrides?: CallOverrides
|
|
137
|
+
): Promise<PopulatedTransaction>;
|
|
101
138
|
};
|
|
102
139
|
}
|