@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.
Files changed (98) hide show
  1. package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.dbg.json +4 -0
  2. package/artifacts/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.json +995 -0
  3. package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.dbg.json +4 -0
  4. package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.json +113 -0
  5. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.dbg.json +4 -0
  6. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.json +2210 -0
  7. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.dbg.json +4 -0
  8. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.json +30 -0
  9. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.dbg.json +4 -0
  10. package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.json +45 -0
  11. package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.dbg.json +4 -0
  12. package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.json +1187 -0
  13. package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.dbg.json +4 -0
  14. package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.json +831 -0
  15. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.dbg.json +4 -0
  16. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.json +42 -0
  17. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.dbg.json +4 -0
  18. package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.json +61 -0
  19. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.dbg.json +4 -0
  20. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.json +47 -0
  21. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.dbg.json +4 -0
  22. package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.json +320 -0
  23. package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +4 -0
  24. package/artifacts/contracts/Interfaces.sol/IIdentityV2.json +30 -0
  25. package/artifacts/contracts/Interfaces.sol/IMembersValidator.dbg.json +4 -0
  26. package/artifacts/contracts/Interfaces.sol/IMembersValidator.json +45 -0
  27. package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.dbg.json +4 -0
  28. package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.json +2078 -0
  29. package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.dbg.json +4 -0
  30. package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.json +1011 -0
  31. package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.dbg.json +4 -0
  32. package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.json +90 -0
  33. package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.dbg.json +4 -0
  34. package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.json +117 -0
  35. package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.dbg.json +4 -0
  36. package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.json +119 -0
  37. package/contracts/DirectPayments/DirectPaymentsFactory.sol +32 -6
  38. package/contracts/DirectPayments/DirectPaymentsLibrary.sol +168 -14
  39. package/contracts/DirectPayments/DirectPaymentsPool.sol +31 -116
  40. package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +7 -6
  41. package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +4 -0
  42. package/contracts/GoodCollective/SuperAppBaseFlow.sol +6 -0
  43. package/contracts/UBI/UBIPool.sol +62 -18
  44. package/contracts/UBI/UBIPoolFactory.sol +32 -4
  45. package/contracts/utils/HelperLibrary.sol +10 -0
  46. package/contracts/utils/Recover.sol +16 -0
  47. package/package.json +4 -4
  48. package/releases/deployment.json +7417 -30724
  49. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +54 -0
  50. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary.ts +77 -0
  51. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.ts +77 -0
  52. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
  53. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.ts +146 -0
  54. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +90 -11
  55. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts +6 -8
  56. package/typechain-types/contracts/DirectPayments/index.ts +1 -0
  57. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +40 -0
  58. package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts +22 -1
  59. package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts +38 -1
  60. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.ts +152 -0
  61. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.ts +523 -0
  62. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
  63. package/typechain-types/contracts/GoodCollective/index.ts +2 -1
  64. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IClaimable.ts +92 -0
  65. package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +196 -0
  66. package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +242 -0
  67. package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
  68. package/typechain-types/contracts/UBI/UBIPool.ts +77 -0
  69. package/typechain-types/contracts/UBI/UBIPoolFactory.ts +54 -0
  70. package/typechain-types/contracts/utils/Recover.ts +263 -0
  71. package/typechain-types/contracts/utils/index.ts +1 -0
  72. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +38 -1
  73. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary__factory.ts +96 -0
  74. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary__factory.ts +96 -0
  75. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +5 -0
  76. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +169 -0
  77. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +53 -2
  78. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator__factory.ts +1 -1
  79. package/typechain-types/factories/contracts/DirectPayments/index.ts +1 -0
  80. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +18 -0
  81. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts +13 -0
  82. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +24 -0
  83. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp__factory.ts +62 -0
  84. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow__factory.ts +335 -0
  85. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
  86. package/typechain-types/factories/contracts/GoodCollective/index.ts +1 -1
  87. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +33 -0
  88. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +84 -0
  89. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +150 -0
  90. package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +6 -0
  91. package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +38 -1
  92. package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +42 -1
  93. package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +1 -1
  94. package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +11 -1
  95. package/typechain-types/factories/contracts/utils/Recover__factory.ts +172 -0
  96. package/typechain-types/factories/contracts/utils/index.ts +1 -0
  97. package/typechain-types/hardhat.d.ts +27 -0
  98. package/typechain-types/index.ts +8 -2
@@ -0,0 +1,335 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ SuperAppBaseFlow,
9
+ SuperAppBaseFlowInterface,
10
+ } from "../../../../contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "NotAcceptedSuperToken",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "NotImplemented",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "UnauthorizedHost",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "CFAV1_TYPE",
31
+ outputs: [
32
+ {
33
+ internalType: "bytes32",
34
+ name: "",
35
+ type: "bytes32",
36
+ },
37
+ ],
38
+ stateMutability: "view",
39
+ type: "function",
40
+ },
41
+ {
42
+ inputs: [
43
+ {
44
+ internalType: "contract ISuperToken",
45
+ name: "superToken",
46
+ type: "address",
47
+ },
48
+ {
49
+ internalType: "address",
50
+ name: "",
51
+ type: "address",
52
+ },
53
+ {
54
+ internalType: "bytes32",
55
+ name: "",
56
+ type: "bytes32",
57
+ },
58
+ {
59
+ internalType: "bytes",
60
+ name: "agreementData",
61
+ type: "bytes",
62
+ },
63
+ {
64
+ internalType: "bytes",
65
+ name: "",
66
+ type: "bytes",
67
+ },
68
+ {
69
+ internalType: "bytes",
70
+ name: "ctx",
71
+ type: "bytes",
72
+ },
73
+ ],
74
+ name: "afterAgreementCreated",
75
+ outputs: [
76
+ {
77
+ internalType: "bytes",
78
+ name: "newCtx",
79
+ type: "bytes",
80
+ },
81
+ ],
82
+ stateMutability: "nonpayable",
83
+ type: "function",
84
+ },
85
+ {
86
+ inputs: [
87
+ {
88
+ internalType: "contract ISuperToken",
89
+ name: "superToken",
90
+ type: "address",
91
+ },
92
+ {
93
+ internalType: "address",
94
+ name: "agreementClass",
95
+ type: "address",
96
+ },
97
+ {
98
+ internalType: "bytes32",
99
+ name: "",
100
+ type: "bytes32",
101
+ },
102
+ {
103
+ internalType: "bytes",
104
+ name: "agreementData",
105
+ type: "bytes",
106
+ },
107
+ {
108
+ internalType: "bytes",
109
+ name: "cbdata",
110
+ type: "bytes",
111
+ },
112
+ {
113
+ internalType: "bytes",
114
+ name: "ctx",
115
+ type: "bytes",
116
+ },
117
+ ],
118
+ name: "afterAgreementTerminated",
119
+ outputs: [
120
+ {
121
+ internalType: "bytes",
122
+ name: "newCtx",
123
+ type: "bytes",
124
+ },
125
+ ],
126
+ stateMutability: "nonpayable",
127
+ type: "function",
128
+ },
129
+ {
130
+ inputs: [
131
+ {
132
+ internalType: "contract ISuperToken",
133
+ name: "superToken",
134
+ type: "address",
135
+ },
136
+ {
137
+ internalType: "address",
138
+ name: "",
139
+ type: "address",
140
+ },
141
+ {
142
+ internalType: "bytes32",
143
+ name: "",
144
+ type: "bytes32",
145
+ },
146
+ {
147
+ internalType: "bytes",
148
+ name: "agreementData",
149
+ type: "bytes",
150
+ },
151
+ {
152
+ internalType: "bytes",
153
+ name: "cbdata",
154
+ type: "bytes",
155
+ },
156
+ {
157
+ internalType: "bytes",
158
+ name: "ctx",
159
+ type: "bytes",
160
+ },
161
+ ],
162
+ name: "afterAgreementUpdated",
163
+ outputs: [
164
+ {
165
+ internalType: "bytes",
166
+ name: "newCtx",
167
+ type: "bytes",
168
+ },
169
+ ],
170
+ stateMutability: "nonpayable",
171
+ type: "function",
172
+ },
173
+ {
174
+ inputs: [
175
+ {
176
+ internalType: "contract ISuperToken",
177
+ name: "superToken",
178
+ type: "address",
179
+ },
180
+ {
181
+ internalType: "address",
182
+ name: "agreementClass",
183
+ type: "address",
184
+ },
185
+ {
186
+ internalType: "bytes32",
187
+ name: "",
188
+ type: "bytes32",
189
+ },
190
+ {
191
+ internalType: "bytes",
192
+ name: "",
193
+ type: "bytes",
194
+ },
195
+ {
196
+ internalType: "bytes",
197
+ name: "",
198
+ type: "bytes",
199
+ },
200
+ ],
201
+ name: "beforeAgreementCreated",
202
+ outputs: [
203
+ {
204
+ internalType: "bytes",
205
+ name: "",
206
+ type: "bytes",
207
+ },
208
+ ],
209
+ stateMutability: "view",
210
+ type: "function",
211
+ },
212
+ {
213
+ inputs: [
214
+ {
215
+ internalType: "contract ISuperToken",
216
+ name: "superToken",
217
+ type: "address",
218
+ },
219
+ {
220
+ internalType: "address",
221
+ name: "agreementClass",
222
+ type: "address",
223
+ },
224
+ {
225
+ internalType: "bytes32",
226
+ name: "",
227
+ type: "bytes32",
228
+ },
229
+ {
230
+ internalType: "bytes",
231
+ name: "agreementData",
232
+ type: "bytes",
233
+ },
234
+ {
235
+ internalType: "bytes",
236
+ name: "",
237
+ type: "bytes",
238
+ },
239
+ ],
240
+ name: "beforeAgreementTerminated",
241
+ outputs: [
242
+ {
243
+ internalType: "bytes",
244
+ name: "",
245
+ type: "bytes",
246
+ },
247
+ ],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ {
252
+ inputs: [
253
+ {
254
+ internalType: "contract ISuperToken",
255
+ name: "superToken",
256
+ type: "address",
257
+ },
258
+ {
259
+ internalType: "address",
260
+ name: "agreementClass",
261
+ type: "address",
262
+ },
263
+ {
264
+ internalType: "bytes32",
265
+ name: "",
266
+ type: "bytes32",
267
+ },
268
+ {
269
+ internalType: "bytes",
270
+ name: "agreementData",
271
+ type: "bytes",
272
+ },
273
+ {
274
+ internalType: "bytes",
275
+ name: "",
276
+ type: "bytes",
277
+ },
278
+ ],
279
+ name: "beforeAgreementUpdated",
280
+ outputs: [
281
+ {
282
+ internalType: "bytes",
283
+ name: "",
284
+ type: "bytes",
285
+ },
286
+ ],
287
+ stateMutability: "view",
288
+ type: "function",
289
+ },
290
+ {
291
+ inputs: [],
292
+ name: "host",
293
+ outputs: [
294
+ {
295
+ internalType: "contract ISuperfluid",
296
+ name: "",
297
+ type: "address",
298
+ },
299
+ ],
300
+ stateMutability: "view",
301
+ type: "function",
302
+ },
303
+ {
304
+ inputs: [
305
+ {
306
+ internalType: "contract ISuperToken",
307
+ name: "",
308
+ type: "address",
309
+ },
310
+ ],
311
+ name: "isAcceptedSuperToken",
312
+ outputs: [
313
+ {
314
+ internalType: "bool",
315
+ name: "",
316
+ type: "bool",
317
+ },
318
+ ],
319
+ stateMutability: "view",
320
+ type: "function",
321
+ },
322
+ ] as const;
323
+
324
+ export class SuperAppBaseFlow__factory {
325
+ static readonly abi = _abi;
326
+ static createInterface(): SuperAppBaseFlowInterface {
327
+ return new utils.Interface(_abi) as SuperAppBaseFlowInterface;
328
+ }
329
+ static connect(
330
+ address: string,
331
+ signerOrProvider: Signer | Provider
332
+ ): SuperAppBaseFlow {
333
+ return new Contract(address, _abi, signerOrProvider) as SuperAppBaseFlow;
334
+ }
335
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IRegisterSuperapp__factory } from "./IRegisterSuperapp__factory";
5
+ export { SuperAppBaseFlow__factory } from "./SuperAppBaseFlow__factory";
@@ -2,5 +2,5 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  export * as iGoodCollectiveSuperAppSol from "./IGoodCollectiveSuperApp.sol";
5
+ export * as superAppBaseFlowSol from "./SuperAppBaseFlow.sol";
5
6
  export { GoodCollectiveSuperApp__factory } from "./GoodCollectiveSuperApp__factory";
6
- export { SuperAppBaseFlow__factory } from "./SuperAppBaseFlow__factory";
@@ -0,0 +1,33 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IClaimable,
9
+ IClaimableInterface,
10
+ } from "../../../../contracts/UBI/MultiClaimModule.sol/IClaimable";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "claim",
16
+ outputs: [],
17
+ stateMutability: "nonpayable",
18
+ type: "function",
19
+ },
20
+ ] as const;
21
+
22
+ export class IClaimable__factory {
23
+ static readonly abi = _abi;
24
+ static createInterface(): IClaimableInterface {
25
+ return new utils.Interface(_abi) as IClaimableInterface;
26
+ }
27
+ static connect(
28
+ address: string,
29
+ signerOrProvider: Signer | Provider
30
+ ): IClaimable {
31
+ return new Contract(address, _abi, signerOrProvider) as IClaimable;
32
+ }
33
+ }
@@ -0,0 +1,84 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IModule,
9
+ IModuleInterface,
10
+ } from "../../../../contracts/UBI/MultiClaimModule.sol/IModule";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "getModuleTypes",
16
+ outputs: [
17
+ {
18
+ internalType: "uint256",
19
+ name: "",
20
+ type: "uint256",
21
+ },
22
+ ],
23
+ stateMutability: "view",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "uint256",
30
+ name: "typeID",
31
+ type: "uint256",
32
+ },
33
+ ],
34
+ name: "isModuleType",
35
+ outputs: [
36
+ {
37
+ internalType: "bool",
38
+ name: "",
39
+ type: "bool",
40
+ },
41
+ ],
42
+ stateMutability: "view",
43
+ type: "function",
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ internalType: "bytes",
49
+ name: "data",
50
+ type: "bytes",
51
+ },
52
+ ],
53
+ name: "onInstall",
54
+ outputs: [],
55
+ stateMutability: "nonpayable",
56
+ type: "function",
57
+ },
58
+ {
59
+ inputs: [
60
+ {
61
+ internalType: "bytes",
62
+ name: "data",
63
+ type: "bytes",
64
+ },
65
+ ],
66
+ name: "onUninstall",
67
+ outputs: [],
68
+ stateMutability: "nonpayable",
69
+ type: "function",
70
+ },
71
+ ] as const;
72
+
73
+ export class IModule__factory {
74
+ static readonly abi = _abi;
75
+ static createInterface(): IModuleInterface {
76
+ return new utils.Interface(_abi) as IModuleInterface;
77
+ }
78
+ static connect(
79
+ address: string,
80
+ signerOrProvider: Signer | Provider
81
+ ): IModule {
82
+ return new Contract(address, _abi, signerOrProvider) as IModule;
83
+ }
84
+ }
@@ -0,0 +1,150 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type { PromiseOrValue } from "../../../../common";
7
+ import type {
8
+ MultiClaimModule,
9
+ MultiClaimModuleInterface,
10
+ } from "../../../../contracts/UBI/MultiClaimModule.sol/MultiClaimModule";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "getModuleTypes",
16
+ outputs: [
17
+ {
18
+ internalType: "uint256",
19
+ name: "",
20
+ type: "uint256",
21
+ },
22
+ ],
23
+ stateMutability: "view",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "uint256",
30
+ name: "typeID",
31
+ type: "uint256",
32
+ },
33
+ ],
34
+ name: "isModuleType",
35
+ outputs: [
36
+ {
37
+ internalType: "bool",
38
+ name: "",
39
+ type: "bool",
40
+ },
41
+ ],
42
+ stateMutability: "view",
43
+ type: "function",
44
+ },
45
+ {
46
+ inputs: [
47
+ {
48
+ internalType: "address[]",
49
+ name: "contracts",
50
+ type: "address[]",
51
+ },
52
+ {
53
+ internalType: "contract IERC20Upgradeable",
54
+ name: "token",
55
+ type: "address",
56
+ },
57
+ {
58
+ internalType: "address",
59
+ name: "recipient",
60
+ type: "address",
61
+ },
62
+ ],
63
+ name: "multiClaim",
64
+ outputs: [
65
+ {
66
+ internalType: "bool[]",
67
+ name: "success",
68
+ type: "bool[]",
69
+ },
70
+ ],
71
+ stateMutability: "nonpayable",
72
+ type: "function",
73
+ },
74
+ {
75
+ inputs: [
76
+ {
77
+ internalType: "bytes",
78
+ name: "data",
79
+ type: "bytes",
80
+ },
81
+ ],
82
+ name: "onInstall",
83
+ outputs: [],
84
+ stateMutability: "nonpayable",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "bytes",
91
+ name: "data",
92
+ type: "bytes",
93
+ },
94
+ ],
95
+ name: "onUninstall",
96
+ outputs: [],
97
+ stateMutability: "nonpayable",
98
+ type: "function",
99
+ },
100
+ ] as const;
101
+
102
+ const _bytecode =
103
+ "0x608060405234801561001057600080fd5b506105d9806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630db1055e1461005c5780636d61fe70146100855780638a91b0e314610085578063d6cc1aa414610099578063ecd05961146100a8575b600080fd5b61006f61006a366004610356565b6100cc565b60405161007c91906103ec565b60405180910390f35b610097610093366004610432565b5050565b005b6040516002815260200161007c565b6100bc6100b63660046104a3565b50600190565b604051901515815260200161007c565b60606000836001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016100fc91906104bc565b602060405180830381865afa158015610119573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013d91906104d0565b9050846001600160401b03811115610157576101576104e9565b604051908082528060200260200182016040528015610180578160200160208202803683370190505b50915060005b8581101561023c578686828181106101a0576101a06104ff565b90506020020160208101906101b59190610515565b6001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156101ef57600080fd5b505af1925050508015610200575060015b1561022a576001838281518110610219576102196104ff565b911515602092830291909101909101525b806102348161054f565b915050610186565b50600081856001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161026c91906104bc565b602060405180830381865afa158015610289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ad91906104d0565b6102b79190610568565b905080156103345760405163a9059cbb60e01b81526001600160a01b0385811660048301526024820183905286169063a9059cbb906044016020604051808303816000875af115801561030e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103329190610581565b505b5050949350505050565b6001600160a01b038116811461035357600080fd5b50565b6000806000806060858703121561036c57600080fd5b84356001600160401b038082111561038357600080fd5b818701915087601f83011261039757600080fd5b8135818111156103a657600080fd5b8860208260051b85010111156103bb57600080fd5b602092830196509450508501356103d18161033e565b915060408501356103e18161033e565b939692955090935050565b6020808252825182820181905260009190848201906040850190845b81811015610426578351151583529284019291840191600101610408565b50909695505050505050565b6000806020838503121561044557600080fd5b82356001600160401b038082111561045c57600080fd5b818501915085601f83011261047057600080fd5b81358181111561047f57600080fd5b86602082850101111561049157600080fd5b60209290920196919550909350505050565b6000602082840312156104b557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6000602082840312156104e257600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561052757600080fd5b81356105328161033e565b9392505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161056157610561610539565b5060010190565b8181038181111561057b5761057b610539565b92915050565b60006020828403121561059357600080fd5b8151801515811461053257600080fdfea2646970667358221220437015d73db0f805829cc2f1b4cf5a6a7c4bc8b44f640d0f9f6c29c784430b3c64736f6c63430008130033";
104
+
105
+ type MultiClaimModuleConstructorParams =
106
+ | [signer?: Signer]
107
+ | ConstructorParameters<typeof ContractFactory>;
108
+
109
+ const isSuperArgs = (
110
+ xs: MultiClaimModuleConstructorParams
111
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
112
+
113
+ export class MultiClaimModule__factory extends ContractFactory {
114
+ constructor(...args: MultiClaimModuleConstructorParams) {
115
+ if (isSuperArgs(args)) {
116
+ super(...args);
117
+ } else {
118
+ super(_abi, _bytecode, args[0]);
119
+ }
120
+ }
121
+
122
+ override deploy(
123
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
124
+ ): Promise<MultiClaimModule> {
125
+ return super.deploy(overrides || {}) as Promise<MultiClaimModule>;
126
+ }
127
+ override getDeployTransaction(
128
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
129
+ ): TransactionRequest {
130
+ return super.getDeployTransaction(overrides || {});
131
+ }
132
+ override attach(address: string): MultiClaimModule {
133
+ return super.attach(address) as MultiClaimModule;
134
+ }
135
+ override connect(signer: Signer): MultiClaimModule__factory {
136
+ return super.connect(signer) as MultiClaimModule__factory;
137
+ }
138
+
139
+ static readonly bytecode = _bytecode;
140
+ static readonly abi = _abi;
141
+ static createInterface(): MultiClaimModuleInterface {
142
+ return new utils.Interface(_abi) as MultiClaimModuleInterface;
143
+ }
144
+ static connect(
145
+ address: string,
146
+ signerOrProvider: Signer | Provider
147
+ ): MultiClaimModule {
148
+ return new Contract(address, _abi, signerOrProvider) as MultiClaimModule;
149
+ }
150
+ }
@@ -0,0 +1,6 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IClaimable__factory } from "./IClaimable__factory";
5
+ export { IModule__factory } from "./IModule__factory";
6
+ export { MultiClaimModule__factory } from "./MultiClaimModule__factory";