@gooddollar/goodcollective-contracts 1.4.0 → 1.4.2
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 +1 -1
- package/artifacts/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.dbg.json +1 -1
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.dbg.json +1 -1
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IIdentityV2.dbg.json +1 -1
- package/artifacts/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.dbg.json +1 -1
- package/artifacts/contracts/DirectPayments/ProvableNFT.sol/ProvableNFT.dbg.json +1 -1
- package/artifacts/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.dbg.json +1 -1
- package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.dbg.json +1 -1
- package/artifacts/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.dbg.json +1 -1
- package/artifacts/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IIdentityV2.dbg.json +1 -1
- package/artifacts/contracts/Interfaces.sol/IMembersValidator.dbg.json +1 -1
- package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.dbg.json +1 -1
- package/artifacts/contracts/UBI/UBIPool.sol/UBIPool.json +12 -12
- package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.dbg.json +1 -1
- package/artifacts/contracts/UBI/UBIPoolFactory.sol/UBIPoolFactory.json +2 -2
- package/artifacts/contracts/test/HelperLibraryTest.sol/HelperLibraryTest.dbg.json +1 -1
- package/artifacts/contracts/utils/HelperLibrary.sol/HelperLibrary.dbg.json +1 -1
- package/artifacts/contracts/utils/Recover.sol/Recover.dbg.json +4 -0
- package/artifacts/contracts/utils/Recover.sol/Recover.json +120 -0
- package/artifacts/contracts/utils/SwapRouterMock.sol/SwapRouterMock.dbg.json +1 -1
- package/package.json +2 -4
- package/releases/deployment.json +308 -134
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +1 -1
- package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +1 -1
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary.ts +0 -77
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary.ts +0 -77
- package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +0 -5
- package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.ts +0 -523
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IClaimable.ts +0 -92
- 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/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPayemntsLibrary__factory.ts +0 -96
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/DirectPaymentsLibrary__factory.ts +0 -96
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow__factory.ts +0 -335
- 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
|
@@ -1,335 +0,0 @@
|
|
|
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";
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
}
|
package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
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";
|