@gooddollar/goodcollective-contracts 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -1
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +13 -10
- package/contracts/DirectPayments/DirectPaymentsPool.sol +13 -4
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +31 -55
- package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +6 -0
- package/contracts/UBI/UBIPool.sol +48 -36
- package/contracts/UBI/UBIPoolFactory.sol +10 -1
- package/contracts/test/HelperLibraryTest.sol +16 -0
- package/contracts/utils/HelperLibrary.sol +73 -5
- package/package.json +4 -3
- package/releases/deployment.json +21841 -565
- package/typechain-types/@uniswap/index.ts +0 -2
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.ts +1327 -0
- package/typechain-types/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/index.ts +1 -1
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +40 -5
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +49 -0
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +49 -0
- package/typechain-types/contracts/{UBI/MultiClaimModule.sol/IClaimable.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts} +33 -23
- package/typechain-types/{factories/@uniswap/v3-periphery/contracts → contracts/GoodCollective/IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/contracts/GoodCollective/index.ts +3 -2
- package/typechain-types/contracts/UBI/UBIPool.sol/UBIPool.ts +104 -49
- package/typechain-types/contracts/UBI/UBIPoolFactory.ts +43 -5
- package/typechain-types/contracts/UBI/index.ts +0 -2
- package/typechain-types/contracts/index.ts +2 -0
- package/typechain-types/contracts/test/HelperLibraryTest.ts +147 -0
- package/typechain-types/{@uniswap/v3-periphery/contracts/interfaces → contracts/test}/index.ts +1 -1
- package/typechain-types/factories/@uniswap/index.ts +0 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory__factory.ts +1004 -0
- package/typechain-types/factories/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/IRegistry__factory.ts +1 -1
- package/typechain-types/factories/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/index.ts +1 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +15 -2
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +57 -1
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +57 -1
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +52 -0
- package/typechain-types/{@gooddollar/goodprotocol/contracts/token/FeesFormula.sol → factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/factories/contracts/GoodCollective/index.ts +2 -1
- package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +109 -28
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +32 -4
- package/typechain-types/factories/contracts/UBI/index.ts +0 -1
- package/typechain-types/factories/contracts/index.ts +1 -0
- package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +154 -0
- package/typechain-types/{@uniswap/v3-periphery → factories/contracts/test}/index.ts +1 -2
- package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +4 -31
- package/typechain-types/index.ts +6 -12
- package/contracts/UBI/MultiClaimModule.sol +0 -78
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +0 -115
- package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +0 -5
- package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +0 -369
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.ts +0 -1000
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +0 -196
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +0 -242
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +0 -60
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +0 -263
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/index.ts +0 -4
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp__factory.ts +0 -728
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +0 -33
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +0 -84
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +0 -150
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- /package/typechain-types/contracts/{GoodCollective/GoodCollectiveSuperApp.sol → DirectPayments/DirectPaymentsFactory.sol}/IRegistry.ts +0 -0
|
@@ -0,0 +1,1004 @@
|
|
|
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
|
+
DirectPaymentsFactory,
|
|
9
|
+
DirectPaymentsFactoryInterface,
|
|
10
|
+
} from "../../../../contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "NOT_POOL",
|
|
16
|
+
type: "error",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "NOT_PROJECT_OWNER",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
anonymous: false,
|
|
25
|
+
inputs: [
|
|
26
|
+
{
|
|
27
|
+
indexed: false,
|
|
28
|
+
internalType: "address",
|
|
29
|
+
name: "previousAdmin",
|
|
30
|
+
type: "address",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
indexed: false,
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "newAdmin",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
name: "AdminChanged",
|
|
40
|
+
type: "event",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
anonymous: false,
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
indexed: true,
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "beacon",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "BeaconUpgraded",
|
|
53
|
+
type: "event",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
anonymous: false,
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
indexed: false,
|
|
60
|
+
internalType: "uint8",
|
|
61
|
+
name: "version",
|
|
62
|
+
type: "uint8",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "Initialized",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "pool",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
indexed: true,
|
|
79
|
+
internalType: "string",
|
|
80
|
+
name: "projectId",
|
|
81
|
+
type: "string",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
indexed: false,
|
|
85
|
+
internalType: "string",
|
|
86
|
+
name: "ipfs",
|
|
87
|
+
type: "string",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
indexed: true,
|
|
91
|
+
internalType: "uint32",
|
|
92
|
+
name: "nftType",
|
|
93
|
+
type: "uint32",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
components: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "uint32",
|
|
99
|
+
name: "nftType",
|
|
100
|
+
type: "uint32",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint16[]",
|
|
104
|
+
name: "validEvents",
|
|
105
|
+
type: "uint16[]",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
internalType: "uint128[]",
|
|
109
|
+
name: "rewardPerEvent",
|
|
110
|
+
type: "uint128[]",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "manager",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
internalType: "contract IMembersValidator",
|
|
119
|
+
name: "membersValidator",
|
|
120
|
+
type: "address",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "contract IIdentityV2",
|
|
124
|
+
name: "uniquenessValidator",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
internalType: "contract IERC20Upgradeable",
|
|
129
|
+
name: "rewardToken",
|
|
130
|
+
type: "address",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
internalType: "bool",
|
|
134
|
+
name: "allowRewardOverride",
|
|
135
|
+
type: "bool",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
indexed: false,
|
|
139
|
+
internalType: "struct DirectPaymentsPool.PoolSettings",
|
|
140
|
+
name: "poolSettings",
|
|
141
|
+
type: "tuple",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
components: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint256",
|
|
147
|
+
name: "maxTotalPerMonth",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "uint256",
|
|
152
|
+
name: "maxMemberPerMonth",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
internalType: "uint256",
|
|
157
|
+
name: "maxMemberPerDay",
|
|
158
|
+
type: "uint256",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
indexed: false,
|
|
162
|
+
internalType: "struct DirectPaymentsPool.SafetyLimits",
|
|
163
|
+
name: "poolLimits",
|
|
164
|
+
type: "tuple",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
name: "PoolCreated",
|
|
168
|
+
type: "event",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
anonymous: false,
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
indexed: true,
|
|
175
|
+
internalType: "address",
|
|
176
|
+
name: "pool",
|
|
177
|
+
type: "address",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
internalType: "string",
|
|
182
|
+
name: "ipfs",
|
|
183
|
+
type: "string",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "PoolDetailsChanged",
|
|
187
|
+
type: "event",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
anonymous: false,
|
|
191
|
+
inputs: [
|
|
192
|
+
{
|
|
193
|
+
indexed: true,
|
|
194
|
+
internalType: "address",
|
|
195
|
+
name: "pool",
|
|
196
|
+
type: "address",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
indexed: false,
|
|
200
|
+
internalType: "bool",
|
|
201
|
+
name: "isVerified",
|
|
202
|
+
type: "bool",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "PoolVerifiedChanged",
|
|
206
|
+
type: "event",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
anonymous: false,
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
indexed: true,
|
|
213
|
+
internalType: "bytes32",
|
|
214
|
+
name: "role",
|
|
215
|
+
type: "bytes32",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
indexed: true,
|
|
219
|
+
internalType: "bytes32",
|
|
220
|
+
name: "previousAdminRole",
|
|
221
|
+
type: "bytes32",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
indexed: true,
|
|
225
|
+
internalType: "bytes32",
|
|
226
|
+
name: "newAdminRole",
|
|
227
|
+
type: "bytes32",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
name: "RoleAdminChanged",
|
|
231
|
+
type: "event",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
anonymous: false,
|
|
235
|
+
inputs: [
|
|
236
|
+
{
|
|
237
|
+
indexed: true,
|
|
238
|
+
internalType: "bytes32",
|
|
239
|
+
name: "role",
|
|
240
|
+
type: "bytes32",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
indexed: true,
|
|
244
|
+
internalType: "address",
|
|
245
|
+
name: "account",
|
|
246
|
+
type: "address",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
indexed: true,
|
|
250
|
+
internalType: "address",
|
|
251
|
+
name: "sender",
|
|
252
|
+
type: "address",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
name: "RoleGranted",
|
|
256
|
+
type: "event",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
anonymous: false,
|
|
260
|
+
inputs: [
|
|
261
|
+
{
|
|
262
|
+
indexed: true,
|
|
263
|
+
internalType: "bytes32",
|
|
264
|
+
name: "role",
|
|
265
|
+
type: "bytes32",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
indexed: true,
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "account",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
indexed: true,
|
|
275
|
+
internalType: "address",
|
|
276
|
+
name: "sender",
|
|
277
|
+
type: "address",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
name: "RoleRevoked",
|
|
281
|
+
type: "event",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
anonymous: false,
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
indexed: true,
|
|
288
|
+
internalType: "address",
|
|
289
|
+
name: "impl",
|
|
290
|
+
type: "address",
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
name: "UpdatedImpl",
|
|
294
|
+
type: "event",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
anonymous: false,
|
|
298
|
+
inputs: [
|
|
299
|
+
{
|
|
300
|
+
indexed: true,
|
|
301
|
+
internalType: "address",
|
|
302
|
+
name: "implementation",
|
|
303
|
+
type: "address",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
name: "Upgraded",
|
|
307
|
+
type: "event",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
inputs: [],
|
|
311
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
312
|
+
outputs: [
|
|
313
|
+
{
|
|
314
|
+
internalType: "bytes32",
|
|
315
|
+
name: "",
|
|
316
|
+
type: "bytes32",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
stateMutability: "view",
|
|
320
|
+
type: "function",
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
inputs: [
|
|
324
|
+
{
|
|
325
|
+
internalType: "address",
|
|
326
|
+
name: "member",
|
|
327
|
+
type: "address",
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
name: "addMember",
|
|
331
|
+
outputs: [],
|
|
332
|
+
stateMutability: "nonpayable",
|
|
333
|
+
type: "function",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
inputs: [
|
|
337
|
+
{
|
|
338
|
+
internalType: "contract DirectPaymentsPool",
|
|
339
|
+
name: "_pool",
|
|
340
|
+
type: "address",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
internalType: "string",
|
|
344
|
+
name: "_ipfs",
|
|
345
|
+
type: "string",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
name: "changePoolDetails",
|
|
349
|
+
outputs: [],
|
|
350
|
+
stateMutability: "nonpayable",
|
|
351
|
+
type: "function",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
inputs: [
|
|
355
|
+
{
|
|
356
|
+
internalType: "string",
|
|
357
|
+
name: "_projectId",
|
|
358
|
+
type: "string",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
internalType: "string",
|
|
362
|
+
name: "_ipfs",
|
|
363
|
+
type: "string",
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
components: [
|
|
367
|
+
{
|
|
368
|
+
internalType: "uint32",
|
|
369
|
+
name: "nftType",
|
|
370
|
+
type: "uint32",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
internalType: "uint16[]",
|
|
374
|
+
name: "validEvents",
|
|
375
|
+
type: "uint16[]",
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
internalType: "uint128[]",
|
|
379
|
+
name: "rewardPerEvent",
|
|
380
|
+
type: "uint128[]",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
internalType: "address",
|
|
384
|
+
name: "manager",
|
|
385
|
+
type: "address",
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
internalType: "contract IMembersValidator",
|
|
389
|
+
name: "membersValidator",
|
|
390
|
+
type: "address",
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
internalType: "contract IIdentityV2",
|
|
394
|
+
name: "uniquenessValidator",
|
|
395
|
+
type: "address",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
internalType: "contract IERC20Upgradeable",
|
|
399
|
+
name: "rewardToken",
|
|
400
|
+
type: "address",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
internalType: "bool",
|
|
404
|
+
name: "allowRewardOverride",
|
|
405
|
+
type: "bool",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
internalType: "struct DirectPaymentsPool.PoolSettings",
|
|
409
|
+
name: "_settings",
|
|
410
|
+
type: "tuple",
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
components: [
|
|
414
|
+
{
|
|
415
|
+
internalType: "uint256",
|
|
416
|
+
name: "maxTotalPerMonth",
|
|
417
|
+
type: "uint256",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
internalType: "uint256",
|
|
421
|
+
name: "maxMemberPerMonth",
|
|
422
|
+
type: "uint256",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
internalType: "uint256",
|
|
426
|
+
name: "maxMemberPerDay",
|
|
427
|
+
type: "uint256",
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
internalType: "struct DirectPaymentsPool.SafetyLimits",
|
|
431
|
+
name: "_limits",
|
|
432
|
+
type: "tuple",
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
name: "createBeaconPool",
|
|
436
|
+
outputs: [
|
|
437
|
+
{
|
|
438
|
+
internalType: "contract DirectPaymentsPool",
|
|
439
|
+
name: "pool",
|
|
440
|
+
type: "address",
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
stateMutability: "nonpayable",
|
|
444
|
+
type: "function",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
inputs: [
|
|
448
|
+
{
|
|
449
|
+
internalType: "string",
|
|
450
|
+
name: "_projectId",
|
|
451
|
+
type: "string",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
internalType: "string",
|
|
455
|
+
name: "_ipfs",
|
|
456
|
+
type: "string",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
components: [
|
|
460
|
+
{
|
|
461
|
+
internalType: "uint32",
|
|
462
|
+
name: "nftType",
|
|
463
|
+
type: "uint32",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
internalType: "uint16[]",
|
|
467
|
+
name: "validEvents",
|
|
468
|
+
type: "uint16[]",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
internalType: "uint128[]",
|
|
472
|
+
name: "rewardPerEvent",
|
|
473
|
+
type: "uint128[]",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
internalType: "address",
|
|
477
|
+
name: "manager",
|
|
478
|
+
type: "address",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
internalType: "contract IMembersValidator",
|
|
482
|
+
name: "membersValidator",
|
|
483
|
+
type: "address",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
internalType: "contract IIdentityV2",
|
|
487
|
+
name: "uniquenessValidator",
|
|
488
|
+
type: "address",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
internalType: "contract IERC20Upgradeable",
|
|
492
|
+
name: "rewardToken",
|
|
493
|
+
type: "address",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
internalType: "bool",
|
|
497
|
+
name: "allowRewardOverride",
|
|
498
|
+
type: "bool",
|
|
499
|
+
},
|
|
500
|
+
],
|
|
501
|
+
internalType: "struct DirectPaymentsPool.PoolSettings",
|
|
502
|
+
name: "_settings",
|
|
503
|
+
type: "tuple",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
components: [
|
|
507
|
+
{
|
|
508
|
+
internalType: "uint256",
|
|
509
|
+
name: "maxTotalPerMonth",
|
|
510
|
+
type: "uint256",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
internalType: "uint256",
|
|
514
|
+
name: "maxMemberPerMonth",
|
|
515
|
+
type: "uint256",
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
internalType: "uint256",
|
|
519
|
+
name: "maxMemberPerDay",
|
|
520
|
+
type: "uint256",
|
|
521
|
+
},
|
|
522
|
+
],
|
|
523
|
+
internalType: "struct DirectPaymentsPool.SafetyLimits",
|
|
524
|
+
name: "_limits",
|
|
525
|
+
type: "tuple",
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
name: "createPool",
|
|
529
|
+
outputs: [
|
|
530
|
+
{
|
|
531
|
+
internalType: "contract DirectPaymentsPool",
|
|
532
|
+
name: "pool",
|
|
533
|
+
type: "address",
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
|
+
stateMutability: "nonpayable",
|
|
537
|
+
type: "function",
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
inputs: [],
|
|
541
|
+
name: "feeBps",
|
|
542
|
+
outputs: [
|
|
543
|
+
{
|
|
544
|
+
internalType: "uint32",
|
|
545
|
+
name: "",
|
|
546
|
+
type: "uint32",
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
stateMutability: "view",
|
|
550
|
+
type: "function",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
inputs: [],
|
|
554
|
+
name: "feeRecipient",
|
|
555
|
+
outputs: [
|
|
556
|
+
{
|
|
557
|
+
internalType: "address",
|
|
558
|
+
name: "",
|
|
559
|
+
type: "address",
|
|
560
|
+
},
|
|
561
|
+
],
|
|
562
|
+
stateMutability: "view",
|
|
563
|
+
type: "function",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
inputs: [
|
|
567
|
+
{
|
|
568
|
+
internalType: "bytes32",
|
|
569
|
+
name: "role",
|
|
570
|
+
type: "bytes32",
|
|
571
|
+
},
|
|
572
|
+
],
|
|
573
|
+
name: "getRoleAdmin",
|
|
574
|
+
outputs: [
|
|
575
|
+
{
|
|
576
|
+
internalType: "bytes32",
|
|
577
|
+
name: "",
|
|
578
|
+
type: "bytes32",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
stateMutability: "view",
|
|
582
|
+
type: "function",
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
inputs: [
|
|
586
|
+
{
|
|
587
|
+
internalType: "bytes32",
|
|
588
|
+
name: "role",
|
|
589
|
+
type: "bytes32",
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
internalType: "address",
|
|
593
|
+
name: "account",
|
|
594
|
+
type: "address",
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
name: "grantRole",
|
|
598
|
+
outputs: [],
|
|
599
|
+
stateMutability: "nonpayable",
|
|
600
|
+
type: "function",
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
inputs: [
|
|
604
|
+
{
|
|
605
|
+
internalType: "bytes32",
|
|
606
|
+
name: "role",
|
|
607
|
+
type: "bytes32",
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
internalType: "address",
|
|
611
|
+
name: "account",
|
|
612
|
+
type: "address",
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
name: "hasRole",
|
|
616
|
+
outputs: [
|
|
617
|
+
{
|
|
618
|
+
internalType: "bool",
|
|
619
|
+
name: "",
|
|
620
|
+
type: "bool",
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
stateMutability: "view",
|
|
624
|
+
type: "function",
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
inputs: [],
|
|
628
|
+
name: "impl",
|
|
629
|
+
outputs: [
|
|
630
|
+
{
|
|
631
|
+
internalType: "contract UpgradeableBeacon",
|
|
632
|
+
name: "",
|
|
633
|
+
type: "address",
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
stateMutability: "view",
|
|
637
|
+
type: "function",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
inputs: [
|
|
641
|
+
{
|
|
642
|
+
internalType: "address",
|
|
643
|
+
name: "_owner",
|
|
644
|
+
type: "address",
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
internalType: "address",
|
|
648
|
+
name: "_dpimpl",
|
|
649
|
+
type: "address",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
internalType: "contract ProvableNFT",
|
|
653
|
+
name: "_nft",
|
|
654
|
+
type: "address",
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
internalType: "address",
|
|
658
|
+
name: "_feeRecipient",
|
|
659
|
+
type: "address",
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
internalType: "uint32",
|
|
663
|
+
name: "_feeBps",
|
|
664
|
+
type: "uint32",
|
|
665
|
+
},
|
|
666
|
+
],
|
|
667
|
+
name: "initialize",
|
|
668
|
+
outputs: [],
|
|
669
|
+
stateMutability: "nonpayable",
|
|
670
|
+
type: "function",
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
inputs: [
|
|
674
|
+
{
|
|
675
|
+
internalType: "address",
|
|
676
|
+
name: "",
|
|
677
|
+
type: "address",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
internalType: "uint256",
|
|
681
|
+
name: "",
|
|
682
|
+
type: "uint256",
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
name: "memberPools",
|
|
686
|
+
outputs: [
|
|
687
|
+
{
|
|
688
|
+
internalType: "address",
|
|
689
|
+
name: "",
|
|
690
|
+
type: "address",
|
|
691
|
+
},
|
|
692
|
+
],
|
|
693
|
+
stateMutability: "view",
|
|
694
|
+
type: "function",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
inputs: [],
|
|
698
|
+
name: "nextNftType",
|
|
699
|
+
outputs: [
|
|
700
|
+
{
|
|
701
|
+
internalType: "uint32",
|
|
702
|
+
name: "",
|
|
703
|
+
type: "uint32",
|
|
704
|
+
},
|
|
705
|
+
],
|
|
706
|
+
stateMutability: "view",
|
|
707
|
+
type: "function",
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
inputs: [],
|
|
711
|
+
name: "nft",
|
|
712
|
+
outputs: [
|
|
713
|
+
{
|
|
714
|
+
internalType: "contract ProvableNFT",
|
|
715
|
+
name: "",
|
|
716
|
+
type: "address",
|
|
717
|
+
},
|
|
718
|
+
],
|
|
719
|
+
stateMutability: "view",
|
|
720
|
+
type: "function",
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
inputs: [
|
|
724
|
+
{
|
|
725
|
+
internalType: "uint256",
|
|
726
|
+
name: "",
|
|
727
|
+
type: "uint256",
|
|
728
|
+
},
|
|
729
|
+
],
|
|
730
|
+
name: "pools",
|
|
731
|
+
outputs: [
|
|
732
|
+
{
|
|
733
|
+
internalType: "address",
|
|
734
|
+
name: "",
|
|
735
|
+
type: "address",
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
stateMutability: "view",
|
|
739
|
+
type: "function",
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
inputs: [
|
|
743
|
+
{
|
|
744
|
+
internalType: "bytes32",
|
|
745
|
+
name: "",
|
|
746
|
+
type: "bytes32",
|
|
747
|
+
},
|
|
748
|
+
],
|
|
749
|
+
name: "projectIdToControlPool",
|
|
750
|
+
outputs: [
|
|
751
|
+
{
|
|
752
|
+
internalType: "contract DirectPaymentsPool",
|
|
753
|
+
name: "",
|
|
754
|
+
type: "address",
|
|
755
|
+
},
|
|
756
|
+
],
|
|
757
|
+
stateMutability: "view",
|
|
758
|
+
type: "function",
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
inputs: [],
|
|
762
|
+
name: "proxiableUUID",
|
|
763
|
+
outputs: [
|
|
764
|
+
{
|
|
765
|
+
internalType: "bytes32",
|
|
766
|
+
name: "",
|
|
767
|
+
type: "bytes32",
|
|
768
|
+
},
|
|
769
|
+
],
|
|
770
|
+
stateMutability: "view",
|
|
771
|
+
type: "function",
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
inputs: [
|
|
775
|
+
{
|
|
776
|
+
internalType: "address",
|
|
777
|
+
name: "",
|
|
778
|
+
type: "address",
|
|
779
|
+
},
|
|
780
|
+
],
|
|
781
|
+
name: "registry",
|
|
782
|
+
outputs: [
|
|
783
|
+
{
|
|
784
|
+
internalType: "string",
|
|
785
|
+
name: "ipfs",
|
|
786
|
+
type: "string",
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
internalType: "bool",
|
|
790
|
+
name: "isVerified",
|
|
791
|
+
type: "bool",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
internalType: "string",
|
|
795
|
+
name: "projectId",
|
|
796
|
+
type: "string",
|
|
797
|
+
},
|
|
798
|
+
],
|
|
799
|
+
stateMutability: "view",
|
|
800
|
+
type: "function",
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
inputs: [
|
|
804
|
+
{
|
|
805
|
+
internalType: "address",
|
|
806
|
+
name: "member",
|
|
807
|
+
type: "address",
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
name: "removeMember",
|
|
811
|
+
outputs: [],
|
|
812
|
+
stateMutability: "nonpayable",
|
|
813
|
+
type: "function",
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
inputs: [
|
|
817
|
+
{
|
|
818
|
+
internalType: "bytes32",
|
|
819
|
+
name: "role",
|
|
820
|
+
type: "bytes32",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
internalType: "address",
|
|
824
|
+
name: "account",
|
|
825
|
+
type: "address",
|
|
826
|
+
},
|
|
827
|
+
],
|
|
828
|
+
name: "renounceRole",
|
|
829
|
+
outputs: [],
|
|
830
|
+
stateMutability: "nonpayable",
|
|
831
|
+
type: "function",
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
inputs: [
|
|
835
|
+
{
|
|
836
|
+
internalType: "bytes32",
|
|
837
|
+
name: "role",
|
|
838
|
+
type: "bytes32",
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
internalType: "address",
|
|
842
|
+
name: "account",
|
|
843
|
+
type: "address",
|
|
844
|
+
},
|
|
845
|
+
],
|
|
846
|
+
name: "revokeRole",
|
|
847
|
+
outputs: [],
|
|
848
|
+
stateMutability: "nonpayable",
|
|
849
|
+
type: "function",
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
inputs: [
|
|
853
|
+
{
|
|
854
|
+
internalType: "address",
|
|
855
|
+
name: "_feeRecipient",
|
|
856
|
+
type: "address",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
internalType: "uint32",
|
|
860
|
+
name: "_feeBps",
|
|
861
|
+
type: "uint32",
|
|
862
|
+
},
|
|
863
|
+
],
|
|
864
|
+
name: "setFeeInfo",
|
|
865
|
+
outputs: [],
|
|
866
|
+
stateMutability: "nonpayable",
|
|
867
|
+
type: "function",
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
inputs: [
|
|
871
|
+
{
|
|
872
|
+
internalType: "contract DirectPaymentsPool",
|
|
873
|
+
name: "_pool",
|
|
874
|
+
type: "address",
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
internalType: "bool",
|
|
878
|
+
name: "_isVerified",
|
|
879
|
+
type: "bool",
|
|
880
|
+
},
|
|
881
|
+
],
|
|
882
|
+
name: "setVerified",
|
|
883
|
+
outputs: [],
|
|
884
|
+
stateMutability: "nonpayable",
|
|
885
|
+
type: "function",
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
inputs: [
|
|
889
|
+
{
|
|
890
|
+
internalType: "bytes4",
|
|
891
|
+
name: "interfaceId",
|
|
892
|
+
type: "bytes4",
|
|
893
|
+
},
|
|
894
|
+
],
|
|
895
|
+
name: "supportsInterface",
|
|
896
|
+
outputs: [
|
|
897
|
+
{
|
|
898
|
+
internalType: "bool",
|
|
899
|
+
name: "",
|
|
900
|
+
type: "bool",
|
|
901
|
+
},
|
|
902
|
+
],
|
|
903
|
+
stateMutability: "view",
|
|
904
|
+
type: "function",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
inputs: [
|
|
908
|
+
{
|
|
909
|
+
internalType: "address",
|
|
910
|
+
name: "_impl",
|
|
911
|
+
type: "address",
|
|
912
|
+
},
|
|
913
|
+
],
|
|
914
|
+
name: "updateImpl",
|
|
915
|
+
outputs: [],
|
|
916
|
+
stateMutability: "nonpayable",
|
|
917
|
+
type: "function",
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
inputs: [
|
|
921
|
+
{
|
|
922
|
+
internalType: "address",
|
|
923
|
+
name: "newImplementation",
|
|
924
|
+
type: "address",
|
|
925
|
+
},
|
|
926
|
+
],
|
|
927
|
+
name: "upgradeTo",
|
|
928
|
+
outputs: [],
|
|
929
|
+
stateMutability: "nonpayable",
|
|
930
|
+
type: "function",
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
inputs: [
|
|
934
|
+
{
|
|
935
|
+
internalType: "address",
|
|
936
|
+
name: "newImplementation",
|
|
937
|
+
type: "address",
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
internalType: "bytes",
|
|
941
|
+
name: "data",
|
|
942
|
+
type: "bytes",
|
|
943
|
+
},
|
|
944
|
+
],
|
|
945
|
+
name: "upgradeToAndCall",
|
|
946
|
+
outputs: [],
|
|
947
|
+
stateMutability: "payable",
|
|
948
|
+
type: "function",
|
|
949
|
+
},
|
|
950
|
+
] as const;
|
|
951
|
+
|
|
952
|
+
const _bytecode =
|
|
953
|
+
"0x60a06040523060805234801561001457600080fd5b50608051613fff61004c600039600081816109af015281816109f201528181610a8301528181610ac60152610cb00152613fff6000f3fe608060405260043610620001645760003560e01c806301ffc9a71462000169578063038defd714620001a35780630b1ca49a14620001d9578063248a9ca3146200020057806324a9d85314620002345780632f2ff15d146200026957806336568abe146200028e5780633659cfe614620002b35780634690484014620002d857806347ccca0214620003095780634f1ef286146200032b5780634f962c8c146200034257806352d1902d1462000367578063545d6299146200037f57806357b7076714620003a4578063592f7b0514620003c95780638abf607714620003ef57806391d148541462000411578063952d3ea114620004365780639cedd89b146200045b5780639cf5c6131462000495578063a217fddf14620004ba578063ac4afa3814620004d1578063ca6d56dc14620004f6578063d547741f146200051b578063e9e50b041462000540578063f8a2334c1462000565578063fcf1e009146200058a575b600080fd5b3480156200017657600080fd5b506200018e62000188366004620021c1565b620005af565b60405190151581526020015b60405180910390f35b348015620001b057600080fd5b50620001c8620001c236600462002215565b620005e7565b6040516200019a9392919062002289565b348015620001e657600080fd5b50620001fe620001f836600462002215565b62000732565b005b3480156200020d57600080fd5b50620002256200021f366004620022c4565b620008e7565b6040519081526020016200019a565b3480156200024157600080fd5b5060ff546200025a90600160a01b900463ffffffff1681565b6040516200019a9190620022de565b3480156200027657600080fd5b50620001fe62000288366004620022ef565b620008fc565b3480156200029b57600080fd5b50620001fe620002ad366004620022ef565b62000923565b348015620002c057600080fd5b50620001fe620002d236600462002215565b620009a5565b348015620002e557600080fd5b5060ff54620002fa906001600160a01b031681565b6040516200019a91906200232f565b3480156200031657600080fd5b5060fc54620002fa906001600160a01b031681565b620001fe6200033c36600462002415565b62000a79565b3480156200034f57600080fd5b50620001fe62000361366004620024a2565b62000b3a565b3480156200037457600080fd5b506200022562000ca3565b3480156200038c57600080fd5b50620002fa6200039e366004620026a1565b62000d54565b348015620003b157600080fd5b50620002fa620003c336600462002814565b62000e96565b348015620003d657600080fd5b5060fc546200025a90600160a01b900463ffffffff1681565b348015620003fc57600080fd5b5060fb54620002fa906001600160a01b031681565b3480156200041e57600080fd5b506200018e62000430366004620022ef565b62000ed0565b3480156200044357600080fd5b50620002fa62000455366004620026a1565b62000efb565b3480156200046857600080fd5b50620002fa6200047a366004620022c4565b60fe602052600090815260409020546001600160a01b031681565b348015620004a257600080fd5b50620001fe620004b436600462002843565b62001032565b348015620004c757600080fd5b5062000225600081565b348015620004de57600080fd5b50620002fa620004f0366004620022c4565b6200109b565b3480156200050357600080fd5b50620001fe6200051536600462002215565b620010c7565b3480156200052857600080fd5b50620001fe6200053a366004620022ef565b62001143565b3480156200054d57600080fd5b50620001fe6200055f36600462002876565b62001165565b3480156200057257600080fd5b50620001fe62000584366004620028b0565b620011b2565b3480156200059757600080fd5b50620001fe620005a936600462002215565b62001380565b60006001600160e01b03198216637965db0b60e01b1480620005e157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60fd60205260009081526040902080548190620006049062002928565b80601f0160208091040260200160405190810160405280929190818152602001828054620006329062002928565b8015620006835780601f10620006575761010080835404028352916020019162000683565b820191906000526020600020905b8154815290600101906020018083116200066557829003601f168201915b5050506001840154600285018054949560ff909216949193509150620006a99062002928565b80601f0160208091040260200160405190810160405280929190818152602001828054620006d79062002928565b8015620007285780601f10620006fc5761010080835404028352916020019162000728565b820191906000526020600020905b8154815290600101906020018083116200070a57829003601f168201915b5050505050905083565b33600090815260fd602052604090206002018054620007519062002928565b90506000036200077457604051630cc15fbb60e11b815260040160405180910390fd5b60005b6001600160a01b03821660009081526101006020526040902054811015620008e3576001600160a01b038216600090815261010060205260409020805433919083908110620007ca57620007ca62002964565b6000918252602090912001546001600160a01b031603620008ce576001600160a01b03821660009081526101006020526040902080546200080e9060019062002990565b8154811062000821576200082162002964565b60009182526020808320909101546001600160a01b038581168452610100909252604090922080549190921691908390811062000862576200086262002964565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055918416815261010090915260409020805480620008ab57620008ab620029a6565b600082815260209020810160001990810180546001600160a01b03191690550190555b80620008da81620029bc565b91505062000777565b5050565b60009081526065602052604090206001015490565b6200090782620008e7565b62000912816200142b565b6200091e838362001437565b505050565b6001600160a01b0381163314620009995760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b620008e38282620014c1565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003620009f05760405162461bcd60e51b81526004016200099090620029d8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000a246200152b565b6001600160a01b03161462000a4d5760405162461bcd60e51b8152600401620009909062002a13565b62000a588162001548565b6040805160008082526020820190925262000a769183919062001555565b50565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000ac45760405162461bcd60e51b81526004016200099090620029d8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000af86200152b565b6001600160a01b03161462000b215760405162461bcd60e51b8152600401620009909062002a13565b62000b2c8262001548565b620008e38282600162001555565b81806001600160a01b03166391d14854826001600160a01b031663a217fddf6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000b89573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000baf919062002a4e565b336040518363ffffffff1660e01b815260040162000bcf92919062002a68565b602060405180830381865afa15801562000bed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000c13919062002a7f565b151560000362000c3657604051631d799a6d60e21b815260040160405180910390fd5b6001600160a01b038316600090815260fd6020526040902062000c5a838262002ae9565b50826001600160a01b03167f941ad6ac0538b96f9e89b9b52ec11031b50591baa2f16c0cdf1f94c69f389d6d8360405162000c96919062002bb5565b60405180910390a2505050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161462000d405760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b606482015260840162000990565b5060008051602062003f8383398151915290565b8351602080860191909120600090815260fe909152604081205485906001600160a01b0316801562000e7b57806001600160a01b03166391d14854826001600160a01b031663a217fddf6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000dce573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000df4919062002a4e565b336040518363ffffffff1660e01b815260040162000e1492919062002a68565b602060405180830381865afa15801562000e32573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000e58919062002a7f565b151560000362000e7b57604051631d799a6d60e21b815260040160405180910390fd5b62000e8b878787876001620016cd565b979650505050505050565b610100602052816000526040600020818154811062000eb457600080fd5b6000918252602090912001546001600160a01b03169150829050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b8351602080860191909120600090815260fe909152604081205485906001600160a01b031680156200102257806001600160a01b03166391d14854826001600160a01b031663a217fddf6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000f75573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f9b919062002a4e565b336040518363ffffffff1660e01b815260040162000fbb92919062002a68565b602060405180830381865afa15801562000fd9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000fff919062002a7f565b15156000036200102257604051631d799a6d60e21b815260040160405180910390fd5b62000e8b878787876000620016cd565b60006200103f816200142b565b6001600160a01b038316600081815260fd6020908152604091829020600101805460ff191686151590811790915591519182527fafdc942e2e075abc791516f168aed9293862095eb31c0dab19c8d0d061018a93910162000c96565b6101018181548110620010ad57600080fd5b6000918252602090912001546001600160a01b0316905081565b33600090815260fd602052604090206002018054620010e69062002928565b90506000036200110957604051630cc15fbb60e11b815260040160405180910390fd5b6001600160a01b03166000908152610100602090815260408220805460018101825590835291200180546001600160a01b03191633179055565b6200114e82620008e7565b62001159816200142b565b6200091e8383620014c1565b600062001172816200142b565b5060ff80546001600160a01b039093166001600160a01b031963ffffffff909316600160a01b02929092166001600160c01b031990931692909217179055565b600054610100900460ff1615808015620011d35750600054600160ff909116105b80620011f85750620011e53062001cf2565b158015620011f8575060005460ff166001145b6200125d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000990565b6000805460ff19166001179055801562001281576000805461ff0019166101001790555b60fc805463ffffffff60a01b1916600160a01b1790556040518590620012a79062002197565b620012b391906200232f565b604051809103906000f080158015620012d0573d6000803e3d6000fd5b5060fb80546001600160a01b03199081166001600160a01b039384161790915560fc805490911686831617905560ff80549185166001600160c01b031990921691909117600160a01b63ffffffff8516021790556200133160008762001d01565b801562001378576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006200138d816200142b565b60fb54604051631b2ce7f360e11b81526001600160a01b0390911690633659cfe690620013bf9085906004016200232f565b600060405180830381600087803b158015620013da57600080fd5b505af1158015620013ef573d6000803e3d6000fd5b50506040516001600160a01b03851692507f71ce7583e9b7e543de8a69a6af369c0b3528b287064f9dce26a38025e36dc2c79150600090a25050565b62000a76813362001d0d565b62001443828262000ed0565b620008e35760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200147d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b620014cd828262000ed0565b15620008e35760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008051602062003f83833981519152546001600160a01b031690565b6000620008e3816200142b565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156200158b576200091e8362001d71565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620015e8575060408051601f3d908101601f19168201909252620015e59181019062002a4e565b60015b6200164d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840162000990565b60008051602062003f838339815191528114620016bf5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840162000990565b506200091e83838362001e10565b60fc5463ffffffff600160a01b82041684526040516000918291635ea4cef760e11b9162001710916001600160a01b039091169088908890309060240162002d0f565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905082156200179d5760fb546040516001600160a01b039091169082906200176a90620021a5565b6200177792919062002d56565b604051809103906000f08015801562001794573d6000803e3d6000fd5b50915062001854565b60fb60009054906101000a90046001600160a01b03166001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620017f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001817919062002d84565b816040516200182690620021b3565b6200183392919062002d56565b604051809103906000f08015801562001850573d6000803e3d6000fd5b5091505b60fc54604051634e93f47b60e01b81526001600160a01b03821691632f2ff15d918391634e93f47b916200189991600160a01b900463ffffffff1690600401620022de565b602060405180830381865afa158015620018b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620018dd919062002a4e565b87606001516040518363ffffffff1660e01b81526004016200190192919062002a68565b600060405180830381600087803b1580156200191c57600080fd5b505af115801562001931573d6000803e3d6000fd5b505060fc54604051634e93f47b60e01b81526001600160a01b0382169350632f2ff15d92508391634e93f47b916200197a91600160a01b900463ffffffff1690600401620022de565b602060405180830381865afa15801562001998573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620019be919062002a4e565b846040518363ffffffff1660e01b8152600401620019de92919062002a68565b600060405180830381600087803b158015620019f957600080fd5b505af115801562001a0e573d6000803e3d6000fd5b50505050816001600160a01b0316632f2ff15d836001600160a01b031663d53913936040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001a60573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001a86919062002a4e565b87606001516040518363ffffffff1660e01b815260040162001aaa92919062002a68565b600060405180830381600087803b15801562001ac557600080fd5b505af115801562001ada573d6000803e3d6000fd5b505088516020808b0191909120600090815260fe90915260409020546001600160a01b0316915062001b3b9050578651602080890191909120600090815260fe9091526040902080546001600160a01b0319166001600160a01b0384161790555b6001600160a01b038216600090815260fd6020526040902062001b5f878262002ae9565b506001600160a01b038216600090815260fd6020526040902060020162001b87888262002ae9565b50604051631b2b455f60e11b81526001600160a01b038316906336568abe9062001bb990600090309060040162002a68565b600060405180830381600087803b15801562001bd457600080fd5b505af115801562001be9573d6000803e3d6000fd5b505061010180546001810182556000919091527f109ea3cebb188b9c1b9fc5bb3920be60dfdc8699098dff92f3d80daaca7476890180546001600160a01b0319166001600160a01b038616179055505060fc54604051600160a01b90910463ffffffff169062001c5b90899062002da4565b6040518091039020836001600160a01b03167fabf24e13dd04b5233e0ccecc88963e42e9d8b5ceae25458b61109fcbc0201bfe89898960405162001ca29392919062002dc2565b60405180910390a460fc8054600160a01b900463ffffffff1690601462001cc98362002dfd565b91906101000a81548163ffffffff021916908363ffffffff160217905550505095945050505050565b6001600160a01b03163b151590565b620008e3828262001437565b62001d19828262000ed0565b620008e35762001d298162001e41565b62001d3683602062001e54565b60405160200162001d4992919062002e23565b60408051601f198184030181529082905262461bcd60e51b8252620009909160040162002bb5565b62001d7c8162001cf2565b62001de05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000990565b60008051602062003f8383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b62001e1b8362002014565b60008251118062001e295750805b156200091e5762001e3b838362002056565b50505050565b6060620005e16001600160a01b03831660145b6060600062001e6583600262002e96565b62001e7290600262002eb0565b6001600160401b0381111562001e8c5762001e8c62002343565b6040519080825280601f01601f19166020018201604052801562001eb7576020820181803683370190505b509050600360fc1b8160008151811062001ed55762001ed562002964565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062001f075762001f0762002964565b60200101906001600160f81b031916908160001a905350600062001f2d84600262002e96565b62001f3a90600162002eb0565b90505b600181111562001fbc576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062001f725762001f7262002964565b1a60f81b82828151811062001f8b5762001f8b62002964565b60200101906001600160f81b031916908160001a90535060049490941c9362001fb48162002ec6565b905062001f3d565b5083156200200d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000990565b9392505050565b6200201f8162001d71565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620020638362001cf2565b620020c05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840162000990565b600080846001600160a01b031684604051620020dd919062002da4565b600060405180830381855af49150503d80600081146200211a576040519150601f19603f3d011682016040523d82523d6000602084013e6200211f565b606091505b50915091506200214a828260405180606001604052806027815260200162003fa36027913962002153565b95945050505050565b60608315620021645750816200200d565b6200200d83838151156200217b5781518083602001fd5b8060405162461bcd60e51b815260040162000990919062002bb5565b6104c98062002ee183390190565b6106cd80620033aa83390190565b6104ec8062003a7783390190565b600060208284031215620021d457600080fd5b81356001600160e01b0319811681146200200d57600080fd5b6001600160a01b038116811462000a7657600080fd5b80356200221081620021ed565b919050565b6000602082840312156200222857600080fd5b81356200200d81620021ed565b60005b838110156200225257818101518382015260200162002238565b50506000910152565b600081518084526200227581602086016020860162002235565b601f01601f19169290920160200192915050565b6060815260006200229e60608301866200225b565b84151560208401528281036040840152620022ba81856200225b565b9695505050505050565b600060208284031215620022d757600080fd5b5035919050565b63ffffffff91909116815260200190565b600080604083850312156200230357600080fd5b8235915060208301356200231781620021ed565b809150509250929050565b6001600160a01b03169052565b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b60405161010081016001600160401b03811182821017156200237f576200237f62002343565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620023b057620023b062002343565b604052919050565b60006001600160401b03831115620023d457620023d462002343565b620023e9601f8401601f191660200162002385565b9050828152838383011115620023fe57600080fd5b828260208301376000602084830101529392505050565b600080604083850312156200242957600080fd5b82356200243681620021ed565b915060208301356001600160401b038111156200245257600080fd5b8301601f810185136200246457600080fd5b6200247585823560208401620023b8565b9150509250929050565b600082601f8301126200249157600080fd5b6200200d83833560208501620023b8565b60008060408385031215620024b657600080fd5b8235620024c381620021ed565b915060208301356001600160401b03811115620024df57600080fd5b62002475858286016200247f565b803563ffffffff811681146200221057600080fd5b60006001600160401b038211156200251e576200251e62002343565b5060051b60200190565b600082601f8301126200253a57600080fd5b81356020620025536200254d8362002502565b62002385565b82815260059290921b840181019181810190868411156200257357600080fd5b8286015b84811015620025a257803561ffff81168114620025945760008081fd5b835291830191830162002577565b509695505050505050565b600082601f830112620025bf57600080fd5b81356020620025d26200254d8362002502565b82815260059290921b84018101918181019086841115620025f257600080fd5b8286015b84811015620025a25780356001600160801b0381168114620026185760008081fd5b8352918301918301620025f6565b801515811462000a7657600080fd5b8035620022108162002626565b6000606082840312156200265557600080fd5b604051606081016001600160401b03811182821017156200267a576200267a62002343565b80604052508091508235815260208301356020820152604083013560408201525092915050565b60008060008060c08587031215620026b857600080fd5b84356001600160401b0380821115620026d057600080fd5b620026de888389016200247f565b95506020870135915080821115620026f557600080fd5b62002703888389016200247f565b945060408701359150808211156200271a57600080fd5b9086019061010082890312156200273057600080fd5b6200273a62002359565b6200274583620024ed565b81526020830135828111156200275a57600080fd5b620027688a82860162002528565b6020830152506040830135828111156200278157600080fd5b6200278f8a828601620025ad565b604083015250620027a36060840162002203565b6060820152620027b66080840162002203565b6080820152620027c960a0840162002203565b60a0820152620027dc60c0840162002203565b60c0820152620027ef60e0840162002635565b60e082015280945050505062002809866060870162002642565b905092959194509250565b600080604083850312156200282857600080fd5b82356200283581620021ed565b946020939093013593505050565b600080604083850312156200285757600080fd5b82356200286481620021ed565b91506020830135620023178162002626565b600080604083850312156200288a57600080fd5b82356200289781620021ed565b9150620028a760208401620024ed565b90509250929050565b600080600080600060a08688031215620028c957600080fd5b8535620028d681620021ed565b94506020860135620028e881620021ed565b93506040860135620028fa81620021ed565b925060608601356200290c81620021ed565b91506200291c60808701620024ed565b90509295509295909350565b600181811c908216806200293d57607f821691505b6020821081036200295e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115620005e157620005e16200297a565b634e487b7160e01b600052603160045260246000fd5b600060018201620029d157620029d16200297a565b5060010190565b6020808252602c9082015260008051602062003f6383398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602062003f6383398151915260408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121562002a6157600080fd5b5051919050565b9182526001600160a01b0316602082015260400190565b60006020828403121562002a9257600080fd5b81516200200d8162002626565b601f8211156200091e57600081815260208120601f850160051c8101602086101562002ac85750805b601f850160051c820191505b81811015620013785782815560010162002ad4565b81516001600160401b0381111562002b055762002b0562002343565b62002b1d8162002b16845462002928565b8462002a9f565b602080601f83116001811462002b55576000841562002b3c5750858301515b600019600386901b1c1916600185901b17855562001378565b600085815260208120601f198616915b8281101562002b865788860151825594840194600190910190840162002b65565b508582101562002ba55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815260006200200d60208301846200225b565b600081518084526020808501945080840160005b8381101562002c055781516001600160801b03168752958201959082019060010162002bde565b509495945050505050565b805163ffffffff168252602080820151610100828501819052815190850181905260009261012086019281019184905b8082101562002c6657835161ffff16855293820193928201926001919091019062002c40565b505050506040830151848203604086015262002c83828262002bca565b915050606083015162002c9a606086018262002322565b50608083015162002caf608086018262002322565b5060a083015162002cc460a086018262002322565b5060c083015162002cd960c086018262002322565b5060e083015162002cee60e086018215159052565b509392505050565b8051825260208082015190830152604090810151910152565b600060018060a01b03808716835260c0602084015262002d3360c084018762002c10565b915062002d44604084018662002cf6565b80841660a08401525095945050505050565b6001600160a01b038316815260406020820181905260009062002d7c908301846200225b565b949350505050565b60006020828403121562002d9757600080fd5b81516200200d81620021ed565b6000825162002db881846020870162002235565b9190910192915050565b60a08152600062002dd760a08301866200225b565b828103602084015262002deb818662002c10565b91505062002d7c604083018462002cf6565b600063ffffffff80831681810362002e195762002e196200297a565b6001019392505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835162002e5781601785016020880162002235565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162002e8a81602884016020880162002235565b01602801949350505050565b8082028115828204841417620005e157620005e16200297a565b80820180821115620005e157620005e16200297a565b60008162002ed85762002ed86200297a565b50600019019056fe608060405234801561001057600080fd5b506040516104c93803806104c983398101604081905261002f9161013a565b61003833610047565b61004181610097565b5061016a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381163b6101185760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f60448201527f6e206973206e6f74206120636f6e747261637400000000000000000000000000606482015260840160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006020828403121561014c57600080fd5b81516001600160a01b038116811461016357600080fd5b9392505050565b610350806101796000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100aa575b600080fd5b61006f61006a3660046102ea565b6100bd565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f610105565b61007e610119565b61006f6100b83660046102ea565b610128565b6100c56101a6565b6100ce81610205565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b61010d6101a6565b610117600061029a565b565b6000546001600160a01b031690565b6101306101a6565b6001600160a01b03811661019a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6101a38161029a565b50565b336101af610119565b6001600160a01b0316146101175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610191565b6001600160a01b0381163b6102785760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f6044820152721b881a5cc81b9bdd08184818dbdb9d1c9858dd606a1b6064820152608401610191565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156102fc57600080fd5b81356001600160a01b038116811461031357600080fd5b939250505056fea264697066735822122038970e7cf09dc887c70d5260fa612ed542a4b7fc825586d54bcad83fc1ebdd9164736f6c6343000813003360806040526040516106cd3803806106cd83398101604081905261002291610421565b61002e82826000610035565b505061054b565b61003e836100f6565b6040516001600160a01b038416907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a260008251118061007f5750805b156100f1576100ef836001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e991906104e1565b8361026e565b505b505050565b6100ff8161029a565b61015e5760405162461bcd60e51b815260206004820152602560248201527f455243313936373a206e657720626561636f6e206973206e6f74206120636f6e6044820152641d1c9858dd60da1b60648201526084015b60405180910390fd5b6101c8816001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561019f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c391906104e1565b61029a565b61022d5760405162461bcd60e51b815260206004820152603060248201527f455243313936373a20626561636f6e20696d706c656d656e746174696f6e206960448201526f1cc81b9bdd08184818dbdb9d1c9858dd60821b6064820152608401610155565b7fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392909216919091179055565b606061029383836040518060600160405280602781526020016106a6602791396102a9565b9392505050565b6001600160a01b03163b151590565b6060600080856001600160a01b0316856040516102c691906104fc565b600060405180830381855af49150503d8060008114610301576040519150601f19603f3d011682016040523d82523d6000602084013e610306565b606091505b50909250905061031886838387610322565b9695505050505050565b6060831561038f5782516000036103885761033c8561029a565b6103885760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610155565b5081610399565b61039983836103a1565b949350505050565b8151156103b15781518083602001fd5b8060405162461bcd60e51b81526004016101559190610518565b80516001600160a01b03811681146103e257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610418578181015183820152602001610400565b50506000910152565b6000806040838503121561043457600080fd5b61043d836103cb565b60208401519092506001600160401b038082111561045a57600080fd5b818501915085601f83011261046e57600080fd5b815181811115610480576104806103e7565b604051601f8201601f19908116603f011681019083821181831017156104a8576104a86103e7565b816040528281528860208487010111156104c157600080fd5b6104d28360208301602088016103fd565b80955050505050509250929050565b6000602082840312156104f357600080fd5b610293826103cb565b6000825161050e8184602087016103fd565b9190910192915050565b60208152600082518060208401526105378160408501602087016103fd565b601f01601f19169190910160400192915050565b61014c8061055a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610029565b6100c2565b565b600061005c7fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50546001600160a01b031690565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610099573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100bd91906100e6565b905090565b3660008037600080366000845af43d6000803e8080156100e1573d6000f35b3d6000fd5b6000602082840312156100f857600080fd5b81516001600160a01b038116811461010f57600080fd5b939250505056fea26469706673582212207b4f4f4bd905b812712d76801c617b8aa3f4c3f8d6d9e59a18563606189dd4e564736f6c63430008130033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c656460806040526040516104ec3803806104ec833981016040819052610022916102e9565b61002e82826000610035565b5050610406565b61003e83610061565b60008251118061004b5750805b1561005c5761005a83836100a1565b505b505050565b61006a816100cd565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100c683836040518060600160405280602781526020016104c56027913961017e565b9392505050565b6100d6816101f7565b61013d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b03168560405161019b91906103b7565b600060405180830381855af49150503d80600081146101d6576040519150601f19603f3d011682016040523d82523d6000602084013e6101db565b606091505b5090925090506101ed86838387610206565b9695505050505050565b6001600160a01b03163b151590565b6060831561027357825160000361026c57610220856101f7565b61026c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610134565b508161027d565b61027d8383610285565b949350505050565b8151156102955781518083602001fd5b8060405162461bcd60e51b815260040161013491906103d3565b634e487b7160e01b600052604160045260246000fd5b60005b838110156102e05781810151838201526020016102c8565b50506000910152565b600080604083850312156102fc57600080fd5b82516001600160a01b038116811461031357600080fd5b60208401519092506001600160401b038082111561033057600080fd5b818501915085601f83011261034457600080fd5b815181811115610356576103566102af565b604051601f8201601f19908116603f0116810190838211818310171561037e5761037e6102af565b8160405282815288602084870101111561039757600080fd5b6103a88360208301602088016102c5565b80955050505050509250929050565b600082516103c98184602087016102c5565b9190910192915050565b60208152600082518060208401526103f28160408501602087016102c5565b601f01601f19169190910160400192915050565b60b1806104146000396000f3fe608060405236601057600e6013565b005b600e5b601f601b6021565b6058565b565b600060537f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156076573d6000f35b3d6000fdfea2646970667358221220a4cda07e5b291f61d81b4ee016ef5ca6a806aa56384b08ff8d52828dbed4d68d64736f6c63430008130033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c656446756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200d195086f8aac212796ce85706b5d22549688b6f563b6407f37bed1ee541174964736f6c63430008130033";
|
|
954
|
+
|
|
955
|
+
type DirectPaymentsFactoryConstructorParams =
|
|
956
|
+
| [signer?: Signer]
|
|
957
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
958
|
+
|
|
959
|
+
const isSuperArgs = (
|
|
960
|
+
xs: DirectPaymentsFactoryConstructorParams
|
|
961
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
962
|
+
|
|
963
|
+
export class DirectPaymentsFactory__factory extends ContractFactory {
|
|
964
|
+
constructor(...args: DirectPaymentsFactoryConstructorParams) {
|
|
965
|
+
if (isSuperArgs(args)) {
|
|
966
|
+
super(...args);
|
|
967
|
+
} else {
|
|
968
|
+
super(_abi, _bytecode, args[0]);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
override deploy(
|
|
973
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
974
|
+
): Promise<DirectPaymentsFactory> {
|
|
975
|
+
return super.deploy(overrides || {}) as Promise<DirectPaymentsFactory>;
|
|
976
|
+
}
|
|
977
|
+
override getDeployTransaction(
|
|
978
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
979
|
+
): TransactionRequest {
|
|
980
|
+
return super.getDeployTransaction(overrides || {});
|
|
981
|
+
}
|
|
982
|
+
override attach(address: string): DirectPaymentsFactory {
|
|
983
|
+
return super.attach(address) as DirectPaymentsFactory;
|
|
984
|
+
}
|
|
985
|
+
override connect(signer: Signer): DirectPaymentsFactory__factory {
|
|
986
|
+
return super.connect(signer) as DirectPaymentsFactory__factory;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
static readonly bytecode = _bytecode;
|
|
990
|
+
static readonly abi = _abi;
|
|
991
|
+
static createInterface(): DirectPaymentsFactoryInterface {
|
|
992
|
+
return new utils.Interface(_abi) as DirectPaymentsFactoryInterface;
|
|
993
|
+
}
|
|
994
|
+
static connect(
|
|
995
|
+
address: string,
|
|
996
|
+
signerOrProvider: Signer | Provider
|
|
997
|
+
): DirectPaymentsFactory {
|
|
998
|
+
return new Contract(
|
|
999
|
+
address,
|
|
1000
|
+
_abi,
|
|
1001
|
+
signerOrProvider
|
|
1002
|
+
) as DirectPaymentsFactory;
|
|
1003
|
+
}
|
|
1004
|
+
}
|