@gooddollar/goodcollective-contracts 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +19 -5
- package/contracts/DirectPayments/DirectPaymentsLibrary.sol +168 -14
- package/contracts/DirectPayments/DirectPaymentsPool.sol +9 -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/UBIPoolFactory.sol +19 -3
- package/contracts/utils/HelperLibrary.sol +10 -0
- package/package.json +3 -3
- package/releases/deployment.json +7417 -30724
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.ts +146 -0
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +53 -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/UBIPool.ts +40 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +6 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +169 -0
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +30 -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/UBIPoolFactory__factory.ts +6 -1
- package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +19 -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/hardhat.d.ts +18 -0
- package/typechain-types/index.ts +6 -2
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
Signer,
|
|
9
|
+
utils,
|
|
10
|
+
} from "ethers";
|
|
11
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
12
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
TypedEventFilter,
|
|
15
|
+
TypedEvent,
|
|
16
|
+
TypedListener,
|
|
17
|
+
OnEvent,
|
|
18
|
+
PromiseOrValue,
|
|
19
|
+
} from "../../common";
|
|
20
|
+
|
|
21
|
+
export interface DirectPaymentsLibraryInterface extends utils.Interface {
|
|
22
|
+
functions: {};
|
|
23
|
+
|
|
24
|
+
events: {
|
|
25
|
+
"EventRewardClaimed(uint256,uint16,uint32,uint256,string,address[],uint256)": EventFragment;
|
|
26
|
+
"NFTClaimed(uint256,uint256)": EventFragment;
|
|
27
|
+
"NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)": EventFragment;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getEvent(nameOrSignatureOrTopic: "EventRewardClaimed"): EventFragment;
|
|
31
|
+
getEvent(nameOrSignatureOrTopic: "NFTClaimed"): EventFragment;
|
|
32
|
+
getEvent(
|
|
33
|
+
nameOrSignatureOrTopic: "NOT_MEMBER_OR_WHITELISTED_OR_LIMITS"
|
|
34
|
+
): EventFragment;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface EventRewardClaimedEventObject {
|
|
38
|
+
tokenId: BigNumber;
|
|
39
|
+
eventType: number;
|
|
40
|
+
eventTimestamp: number;
|
|
41
|
+
eventQuantity: BigNumber;
|
|
42
|
+
eventUri: string;
|
|
43
|
+
contributers: string[];
|
|
44
|
+
rewardPerContributer: BigNumber;
|
|
45
|
+
}
|
|
46
|
+
export type EventRewardClaimedEvent = TypedEvent<
|
|
47
|
+
[BigNumber, number, number, BigNumber, string, string[], BigNumber],
|
|
48
|
+
EventRewardClaimedEventObject
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
export type EventRewardClaimedEventFilter =
|
|
52
|
+
TypedEventFilter<EventRewardClaimedEvent>;
|
|
53
|
+
|
|
54
|
+
export interface NFTClaimedEventObject {
|
|
55
|
+
tokenId: BigNumber;
|
|
56
|
+
totalRewards: BigNumber;
|
|
57
|
+
}
|
|
58
|
+
export type NFTClaimedEvent = TypedEvent<
|
|
59
|
+
[BigNumber, BigNumber],
|
|
60
|
+
NFTClaimedEventObject
|
|
61
|
+
>;
|
|
62
|
+
|
|
63
|
+
export type NFTClaimedEventFilter = TypedEventFilter<NFTClaimedEvent>;
|
|
64
|
+
|
|
65
|
+
export interface NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject {
|
|
66
|
+
contributer: string;
|
|
67
|
+
}
|
|
68
|
+
export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent = TypedEvent<
|
|
69
|
+
[string],
|
|
70
|
+
NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject
|
|
71
|
+
>;
|
|
72
|
+
|
|
73
|
+
export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter =
|
|
74
|
+
TypedEventFilter<NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent>;
|
|
75
|
+
|
|
76
|
+
export interface DirectPaymentsLibrary extends BaseContract {
|
|
77
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
78
|
+
attach(addressOrName: string): this;
|
|
79
|
+
deployed(): Promise<this>;
|
|
80
|
+
|
|
81
|
+
interface: DirectPaymentsLibraryInterface;
|
|
82
|
+
|
|
83
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
84
|
+
event: TypedEventFilter<TEvent>,
|
|
85
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
86
|
+
toBlock?: string | number | undefined
|
|
87
|
+
): Promise<Array<TEvent>>;
|
|
88
|
+
|
|
89
|
+
listeners<TEvent extends TypedEvent>(
|
|
90
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
91
|
+
): Array<TypedListener<TEvent>>;
|
|
92
|
+
listeners(eventName?: string): Array<Listener>;
|
|
93
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
94
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
95
|
+
): this;
|
|
96
|
+
removeAllListeners(eventName?: string): this;
|
|
97
|
+
off: OnEvent<this>;
|
|
98
|
+
on: OnEvent<this>;
|
|
99
|
+
once: OnEvent<this>;
|
|
100
|
+
removeListener: OnEvent<this>;
|
|
101
|
+
|
|
102
|
+
functions: {};
|
|
103
|
+
|
|
104
|
+
callStatic: {};
|
|
105
|
+
|
|
106
|
+
filters: {
|
|
107
|
+
"EventRewardClaimed(uint256,uint16,uint32,uint256,string,address[],uint256)"(
|
|
108
|
+
tokenId?: PromiseOrValue<BigNumberish> | null,
|
|
109
|
+
eventType?: null,
|
|
110
|
+
eventTimestamp?: null,
|
|
111
|
+
eventQuantity?: null,
|
|
112
|
+
eventUri?: null,
|
|
113
|
+
contributers?: null,
|
|
114
|
+
rewardPerContributer?: null
|
|
115
|
+
): EventRewardClaimedEventFilter;
|
|
116
|
+
EventRewardClaimed(
|
|
117
|
+
tokenId?: PromiseOrValue<BigNumberish> | null,
|
|
118
|
+
eventType?: null,
|
|
119
|
+
eventTimestamp?: null,
|
|
120
|
+
eventQuantity?: null,
|
|
121
|
+
eventUri?: null,
|
|
122
|
+
contributers?: null,
|
|
123
|
+
rewardPerContributer?: null
|
|
124
|
+
): EventRewardClaimedEventFilter;
|
|
125
|
+
|
|
126
|
+
"NFTClaimed(uint256,uint256)"(
|
|
127
|
+
tokenId?: PromiseOrValue<BigNumberish> | null,
|
|
128
|
+
totalRewards?: null
|
|
129
|
+
): NFTClaimedEventFilter;
|
|
130
|
+
NFTClaimed(
|
|
131
|
+
tokenId?: PromiseOrValue<BigNumberish> | null,
|
|
132
|
+
totalRewards?: null
|
|
133
|
+
): NFTClaimedEventFilter;
|
|
134
|
+
|
|
135
|
+
"NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)"(
|
|
136
|
+
contributer?: null
|
|
137
|
+
): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
|
|
138
|
+
NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(
|
|
139
|
+
contributer?: null
|
|
140
|
+
): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
estimateGas: {};
|
|
144
|
+
|
|
145
|
+
populateTransaction: {};
|
|
146
|
+
}
|
package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts
CHANGED
|
@@ -181,6 +181,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
181
181
|
"onERC721Received(address,address,uint256,bytes)": FunctionFragment;
|
|
182
182
|
"onTokenTransfer(address,uint256,bytes)": FunctionFragment;
|
|
183
183
|
"proxiableUUID()": FunctionFragment;
|
|
184
|
+
"recoverFunds(address,uint256)": FunctionFragment;
|
|
184
185
|
"registry()": FunctionFragment;
|
|
185
186
|
"renounceRole(bytes32,address)": FunctionFragment;
|
|
186
187
|
"revokeRole(bytes32,address)": FunctionFragment;
|
|
@@ -237,6 +238,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
237
238
|
| "onERC721Received"
|
|
238
239
|
| "onTokenTransfer"
|
|
239
240
|
| "proxiableUUID"
|
|
241
|
+
| "recoverFunds"
|
|
240
242
|
| "registry"
|
|
241
243
|
| "renounceRole"
|
|
242
244
|
| "revokeRole"
|
|
@@ -449,6 +451,10 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
449
451
|
functionFragment: "proxiableUUID",
|
|
450
452
|
values?: undefined
|
|
451
453
|
): string;
|
|
454
|
+
encodeFunctionData(
|
|
455
|
+
functionFragment: "recoverFunds",
|
|
456
|
+
values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
|
|
457
|
+
): string;
|
|
452
458
|
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
|
|
453
459
|
encodeFunctionData(
|
|
454
460
|
functionFragment: "renounceRole",
|
|
@@ -630,6 +636,10 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
630
636
|
functionFragment: "proxiableUUID",
|
|
631
637
|
data: BytesLike
|
|
632
638
|
): Result;
|
|
639
|
+
decodeFunctionResult(
|
|
640
|
+
functionFragment: "recoverFunds",
|
|
641
|
+
data: BytesLike
|
|
642
|
+
): Result;
|
|
633
643
|
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
634
644
|
decodeFunctionResult(
|
|
635
645
|
functionFragment: "renounceRole",
|
|
@@ -674,7 +684,7 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
674
684
|
"EventRewardClaimed(uint256,uint16,uint32,uint256,string,address[],uint256)": EventFragment;
|
|
675
685
|
"Initialized(uint8)": EventFragment;
|
|
676
686
|
"NFTClaimed(uint256,uint256)": EventFragment;
|
|
677
|
-
"
|
|
687
|
+
"NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)": EventFragment;
|
|
678
688
|
"PoolCreated(address,string,string,uint32,tuple,tuple)": EventFragment;
|
|
679
689
|
"PoolLimitsChanged(tuple)": EventFragment;
|
|
680
690
|
"PoolSettingsChanged(tuple)": EventFragment;
|
|
@@ -690,7 +700,9 @@ export interface DirectPaymentsPoolInterface extends utils.Interface {
|
|
|
690
700
|
getEvent(nameOrSignatureOrTopic: "EventRewardClaimed"): EventFragment;
|
|
691
701
|
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
692
702
|
getEvent(nameOrSignatureOrTopic: "NFTClaimed"): EventFragment;
|
|
693
|
-
getEvent(
|
|
703
|
+
getEvent(
|
|
704
|
+
nameOrSignatureOrTopic: "NOT_MEMBER_OR_WHITELISTED_OR_LIMITS"
|
|
705
|
+
): EventFragment;
|
|
694
706
|
getEvent(nameOrSignatureOrTopic: "PoolCreated"): EventFragment;
|
|
695
707
|
getEvent(nameOrSignatureOrTopic: "PoolLimitsChanged"): EventFragment;
|
|
696
708
|
getEvent(nameOrSignatureOrTopic: "PoolSettingsChanged"): EventFragment;
|
|
@@ -757,16 +769,16 @@ export type NFTClaimedEvent = TypedEvent<
|
|
|
757
769
|
|
|
758
770
|
export type NFTClaimedEventFilter = TypedEventFilter<NFTClaimedEvent>;
|
|
759
771
|
|
|
760
|
-
export interface
|
|
772
|
+
export interface NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject {
|
|
761
773
|
contributer: string;
|
|
762
774
|
}
|
|
763
|
-
export type
|
|
775
|
+
export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent = TypedEvent<
|
|
764
776
|
[string],
|
|
765
|
-
|
|
777
|
+
NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventObject
|
|
766
778
|
>;
|
|
767
779
|
|
|
768
|
-
export type
|
|
769
|
-
TypedEventFilter<
|
|
780
|
+
export type NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter =
|
|
781
|
+
TypedEventFilter<NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEvent>;
|
|
770
782
|
|
|
771
783
|
export interface PoolCreatedEventObject {
|
|
772
784
|
pool: string;
|
|
@@ -1124,6 +1136,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1124
1136
|
|
|
1125
1137
|
proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
|
|
1126
1138
|
|
|
1139
|
+
recoverFunds(
|
|
1140
|
+
_recipient: PromiseOrValue<string>,
|
|
1141
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1142
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1143
|
+
): Promise<ContractTransaction>;
|
|
1144
|
+
|
|
1127
1145
|
registry(overrides?: CallOverrides): Promise<[string]>;
|
|
1128
1146
|
|
|
1129
1147
|
renounceRole(
|
|
@@ -1462,6 +1480,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1462
1480
|
|
|
1463
1481
|
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
1464
1482
|
|
|
1483
|
+
recoverFunds(
|
|
1484
|
+
_recipient: PromiseOrValue<string>,
|
|
1485
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1486
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1487
|
+
): Promise<ContractTransaction>;
|
|
1488
|
+
|
|
1465
1489
|
registry(overrides?: CallOverrides): Promise<string>;
|
|
1466
1490
|
|
|
1467
1491
|
renounceRole(
|
|
@@ -1800,6 +1824,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1800
1824
|
|
|
1801
1825
|
proxiableUUID(overrides?: CallOverrides): Promise<string>;
|
|
1802
1826
|
|
|
1827
|
+
recoverFunds(
|
|
1828
|
+
_recipient: PromiseOrValue<string>,
|
|
1829
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
1830
|
+
overrides?: CallOverrides
|
|
1831
|
+
): Promise<void>;
|
|
1832
|
+
|
|
1803
1833
|
registry(overrides?: CallOverrides): Promise<string>;
|
|
1804
1834
|
|
|
1805
1835
|
renounceRole(
|
|
@@ -1961,12 +1991,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
1961
1991
|
totalRewards?: null
|
|
1962
1992
|
): NFTClaimedEventFilter;
|
|
1963
1993
|
|
|
1964
|
-
"
|
|
1994
|
+
"NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(address)"(
|
|
1965
1995
|
contributer?: null
|
|
1966
|
-
):
|
|
1967
|
-
|
|
1996
|
+
): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
|
|
1997
|
+
NOT_MEMBER_OR_WHITELISTED_OR_LIMITS(
|
|
1968
1998
|
contributer?: null
|
|
1969
|
-
):
|
|
1999
|
+
): NOT_MEMBER_OR_WHITELISTED_OR_LIMITSEventFilter;
|
|
1970
2000
|
|
|
1971
2001
|
"PoolCreated(address,string,string,uint32,tuple,tuple)"(
|
|
1972
2002
|
pool?: PromiseOrValue<string> | null,
|
|
@@ -2227,6 +2257,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
2227
2257
|
|
|
2228
2258
|
proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2229
2259
|
|
|
2260
|
+
recoverFunds(
|
|
2261
|
+
_recipient: PromiseOrValue<string>,
|
|
2262
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
2263
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2264
|
+
): Promise<BigNumber>;
|
|
2265
|
+
|
|
2230
2266
|
registry(overrides?: CallOverrides): Promise<BigNumber>;
|
|
2231
2267
|
|
|
2232
2268
|
renounceRole(
|
|
@@ -2479,6 +2515,12 @@ export interface DirectPaymentsPool extends BaseContract {
|
|
|
2479
2515
|
|
|
2480
2516
|
proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2481
2517
|
|
|
2518
|
+
recoverFunds(
|
|
2519
|
+
_recipient: PromiseOrValue<string>,
|
|
2520
|
+
amount: PromiseOrValue<BigNumberish>,
|
|
2521
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2522
|
+
): Promise<PopulatedTransaction>;
|
|
2523
|
+
|
|
2482
2524
|
registry(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
2483
2525
|
|
|
2484
2526
|
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
|
}
|