@gooddollar/goodprotocol 2.1.0 → 2.1.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.
Files changed (113) hide show
  1. package/README.md +12 -0
  2. package/artifacts/abis/AdminWallet.min.json +1 -1
  3. package/artifacts/abis/AdminWalletFuse.min.json +1 -1
  4. package/artifacts/abis/GenericDistributionHelperTest.min.json +1 -0
  5. package/artifacts/abis/GenericDistributionHelperTestHelper.min.json +1 -0
  6. package/artifacts/abis/IBancorExchangeProvider.min.json +1 -1
  7. package/artifacts/abis/IUniswapV3Pool.min.json +1 -1
  8. package/artifacts/abis/IdentityV3.min.json +1 -1
  9. package/artifacts/abis/MentoExchange.min.json +1 -1
  10. package/artifacts/abis/UpdateReserveRatioAfterXDC.min.json +1 -0
  11. package/artifacts/contracts/IUniswapV3.sol/INonfungiblePositionManager.dbg.json +1 -1
  12. package/artifacts/contracts/IUniswapV3.sol/IUniswapV3Pool.dbg.json +1 -1
  13. package/artifacts/contracts/IUniswapV3.sol/IUniswapV3Pool.json +13 -0
  14. package/artifacts/contracts/MentoInterfaces.sol/IBancorExchangeProvider.dbg.json +1 -1
  15. package/artifacts/contracts/MentoInterfaces.sol/IBancorExchangeProvider.json +13 -0
  16. package/artifacts/contracts/MentoInterfaces.sol/IBroker.dbg.json +1 -1
  17. package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExchangeProvider.dbg.json +1 -1
  18. package/artifacts/contracts/MentoInterfaces.sol/IGoodDollarExpansionController.dbg.json +1 -1
  19. package/artifacts/contracts/MentoInterfaces.sol/IMentoReserve.dbg.json +1 -1
  20. package/artifacts/contracts/MentoInterfaces.sol/ITradingLimits.dbg.json +1 -1
  21. package/artifacts/contracts/identity/IdentityV3.sol/IdentityV3.dbg.json +1 -1
  22. package/artifacts/contracts/identity/IdentityV3.sol/IdentityV3.json +40 -2
  23. package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest.dbg.json +4 -0
  24. package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest.json +931 -0
  25. package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper.dbg.json +4 -0
  26. package/artifacts/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper.json +957 -0
  27. package/artifacts/contracts/reserve/GenericDistributionHelper.sol/GenericDistributionHelper.dbg.json +1 -1
  28. package/artifacts/contracts/reserve/GenericDistributionHelper.sol/GenericDistributionHelper.json +2 -2
  29. package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.dbg.json +1 -1
  30. package/artifacts/contracts/utils/AdminWallet.sol/AdminWallet.json +36 -2
  31. package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.dbg.json +1 -1
  32. package/artifacts/contracts/utils/AdminWalletFuse.sol/AdminWalletFuse.json +36 -2
  33. package/artifacts/contracts/utils/BulkWhitelist.sol/BulkWhitelist.dbg.json +1 -1
  34. package/artifacts/contracts/utils/BulkWhitelist.sol/BulkWhitelist.json +2 -2
  35. package/artifacts/contracts/utils/BuyFromReserveHelper.sol/BuyFromReserveHelper.dbg.json +1 -1
  36. package/artifacts/contracts/utils/BuyFromReserveHelper.sol/BuyFromReserveHelper.json +2 -2
  37. package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDClone.dbg.json +1 -1
  38. package/artifacts/contracts/utils/BuyGDClone.sol/BuyGDCloneFactory.dbg.json +1 -1
  39. package/artifacts/contracts/utils/BuyGDClone.sol/DonateGDClone.dbg.json +1 -1
  40. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/MentoExchange.dbg.json +1 -1
  41. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.dbg.json +1 -1
  42. package/artifacts/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento.json +2 -2
  43. package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange.dbg.json +4 -0
  44. package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange.json +24 -0
  45. package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC.dbg.json +4 -0
  46. package/artifacts/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC.json +50 -0
  47. package/contracts/IUniswapV3.sol +2 -0
  48. package/contracts/identity/IdentityV3.sol +2 -0
  49. package/contracts/mocks/GenericDistributionHelperTest.sol +31 -0
  50. package/contracts/reserve/GenericDistributionHelper.sol +43 -21
  51. package/contracts/utils/AdminWallet.sol +27 -0
  52. package/contracts/utils/AdminWalletFuse.sol +27 -0
  53. package/contracts/utils/UpdateReserveRatioAfterXDC.sol +64 -0
  54. package/hardhat.config.ts +9 -12
  55. package/package.json +3 -2
  56. package/releases/deployment.json +4 -1
  57. package/scripts/bulkWhitelist.ts +31 -0
  58. package/scripts/multichain-deploy/helpers.ts +13 -6
  59. package/scripts/proposals/gip-25-xdc-deploy-reserve.ts +425 -0
  60. package/scripts/proposals/gip-25-xdc-upgrade-ubi.ts +334 -31
  61. package/test/governance/ClaimersDistribution.test.ts +1 -1
  62. package/test/reserve/GenericDistributionHelper.test.ts +315 -0
  63. package/test/ubi/UBISchemeCycle.test.ts +30 -63
  64. package/types/contracts/IUniswapV3.sol/IUniswapV3Pool.ts +14 -1
  65. package/types/contracts/MentoInterfaces.sol/IBancorExchangeProvider.ts +14 -0
  66. package/types/contracts/fuseFaucet/Faucet copy.sol/DebugFaucet.ts +1439 -0
  67. package/types/contracts/fuseFaucet/Faucet copy.sol/index.ts +4 -0
  68. package/types/contracts/identity/IdentityV3.ts +46 -0
  69. package/types/contracts/index.ts +0 -2
  70. package/types/contracts/mocks/GenericDistributionHelperTest.sol/CeloDistributionHelperTestHelper.ts +1357 -0
  71. package/types/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest.ts +1305 -0
  72. package/types/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper.ts +1357 -0
  73. package/types/contracts/mocks/GenericDistributionHelperTest.sol/index.ts +5 -0
  74. package/types/contracts/mocks/index.ts +2 -0
  75. package/types/contracts/utils/AdminWallet.ts +45 -0
  76. package/types/contracts/utils/AdminWalletFuse.ts +45 -0
  77. package/types/contracts/utils/BuyGDClone.sol/BuyGDCloneV2.ts +464 -0
  78. package/types/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange.ts +81 -0
  79. package/types/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC.ts +117 -0
  80. package/types/contracts/utils/UpdateReserveRatioAfterXDC.sol/index.ts +5 -0
  81. package/types/contracts/utils/UpdateReserveSettingsForXdc.sol/MentoExchange.ts +81 -0
  82. package/types/contracts/utils/UpdateReserveSettingsForXdc.sol/UpdateReserveRatioAfterXDC.ts +122 -0
  83. package/types/contracts/utils/UpdateReserveSettingsForXdc.sol/index.ts +5 -0
  84. package/types/contracts/utils/index.ts +4 -0
  85. package/types/factories/contracts/IUniswapV3.sol/IUniswapV3Pool__factory.ts +13 -0
  86. package/types/factories/contracts/MentoInterfaces.sol/IBancorExchangeProvider__factory.ts +13 -0
  87. package/types/factories/contracts/fuseFaucet/Faucet copy.sol/DebugFaucet__factory.ts +945 -0
  88. package/types/factories/contracts/fuseFaucet/Faucet copy.sol/index.ts +4 -0
  89. package/types/factories/contracts/identity/IdentityV3__factory.ts +39 -1
  90. package/types/factories/contracts/index.ts +0 -1
  91. package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/CeloDistributionHelperTestHelper__factory.ts +1017 -0
  92. package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper__factory.ts +1021 -0
  93. package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTest__factory.ts +989 -0
  94. package/types/factories/contracts/mocks/GenericDistributionHelperTest.sol/index.ts +5 -0
  95. package/types/factories/contracts/mocks/index.ts +1 -0
  96. package/types/factories/contracts/reserve/GenericDistributionHelper__factory.ts +1 -1
  97. package/types/factories/contracts/utils/AdminWalletFuse__factory.ts +35 -1
  98. package/types/factories/contracts/utils/AdminWallet__factory.ts +35 -1
  99. package/types/factories/contracts/utils/BulkWhitelist__factory.ts +1 -1
  100. package/types/factories/contracts/utils/BuyFromReserveHelper__factory.ts +1 -1
  101. package/types/factories/contracts/utils/BuyGDClone.sol/BuyGDCloneV2__factory.ts +415 -0
  102. package/types/factories/contracts/utils/ProtoclUpgradeV4Mento.sol/ProtocolUpgradeV4Mento__factory.ts +1 -1
  103. package/types/factories/contracts/utils/UpdateReserveRatioAfterXDC.sol/MentoExchange__factory.ts +39 -0
  104. package/types/factories/contracts/utils/UpdateReserveRatioAfterXDC.sol/UpdateReserveRatioAfterXDC__factory.ts +110 -0
  105. package/types/factories/contracts/utils/UpdateReserveRatioAfterXDC.sol/index.ts +5 -0
  106. package/types/factories/contracts/utils/UpdateReserveSettingsForXdc.sol/MentoExchange__factory.ts +39 -0
  107. package/types/factories/contracts/utils/UpdateReserveSettingsForXdc.sol/UpdateReserveRatioAfterXDC__factory.ts +115 -0
  108. package/types/factories/contracts/utils/UpdateReserveSettingsForXdc.sol/index.ts +5 -0
  109. package/types/factories/contracts/utils/index.ts +2 -0
  110. package/types/hardhat.d.ts +54 -9
  111. package/types/index.ts +6 -0
  112. package/artifacts/contracts/IQuoter.sol/IQuoterV2.dbg.json +0 -4
  113. package/artifacts/contracts/IQuoter.sol/IQuoterV2.json +0 -211
@@ -0,0 +1,945 @@
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 {
7
+ DebugFaucet,
8
+ DebugFaucetInterface,
9
+ } from "../../../../contracts/fuseFaucet/Faucet copy.sol/DebugFaucet";
10
+
11
+ const _abi = [
12
+ {
13
+ anonymous: false,
14
+ inputs: [
15
+ {
16
+ indexed: false,
17
+ internalType: "address",
18
+ name: "previousAdmin",
19
+ type: "address",
20
+ },
21
+ {
22
+ indexed: false,
23
+ internalType: "address",
24
+ name: "newAdmin",
25
+ type: "address",
26
+ },
27
+ ],
28
+ name: "AdminChanged",
29
+ type: "event",
30
+ },
31
+ {
32
+ anonymous: false,
33
+ inputs: [
34
+ {
35
+ indexed: true,
36
+ internalType: "address",
37
+ name: "beacon",
38
+ type: "address",
39
+ },
40
+ ],
41
+ name: "BeaconUpgraded",
42
+ type: "event",
43
+ },
44
+ {
45
+ anonymous: false,
46
+ inputs: [
47
+ {
48
+ indexed: false,
49
+ internalType: "uint8",
50
+ name: "version",
51
+ type: "uint8",
52
+ },
53
+ ],
54
+ name: "Initialized",
55
+ type: "event",
56
+ },
57
+ {
58
+ anonymous: false,
59
+ inputs: [
60
+ {
61
+ indexed: true,
62
+ internalType: "bytes32",
63
+ name: "role",
64
+ type: "bytes32",
65
+ },
66
+ {
67
+ indexed: true,
68
+ internalType: "bytes32",
69
+ name: "previousAdminRole",
70
+ type: "bytes32",
71
+ },
72
+ {
73
+ indexed: true,
74
+ internalType: "bytes32",
75
+ name: "newAdminRole",
76
+ type: "bytes32",
77
+ },
78
+ ],
79
+ name: "RoleAdminChanged",
80
+ type: "event",
81
+ },
82
+ {
83
+ anonymous: false,
84
+ inputs: [
85
+ {
86
+ indexed: true,
87
+ internalType: "bytes32",
88
+ name: "role",
89
+ type: "bytes32",
90
+ },
91
+ {
92
+ indexed: true,
93
+ internalType: "address",
94
+ name: "account",
95
+ type: "address",
96
+ },
97
+ {
98
+ indexed: true,
99
+ internalType: "address",
100
+ name: "sender",
101
+ type: "address",
102
+ },
103
+ ],
104
+ name: "RoleGranted",
105
+ type: "event",
106
+ },
107
+ {
108
+ anonymous: false,
109
+ inputs: [
110
+ {
111
+ indexed: true,
112
+ internalType: "bytes32",
113
+ name: "role",
114
+ type: "bytes32",
115
+ },
116
+ {
117
+ indexed: true,
118
+ internalType: "address",
119
+ name: "account",
120
+ type: "address",
121
+ },
122
+ {
123
+ indexed: true,
124
+ internalType: "address",
125
+ name: "sender",
126
+ type: "address",
127
+ },
128
+ ],
129
+ name: "RoleRevoked",
130
+ type: "event",
131
+ },
132
+ {
133
+ anonymous: false,
134
+ inputs: [
135
+ {
136
+ indexed: true,
137
+ internalType: "address",
138
+ name: "implementation",
139
+ type: "address",
140
+ },
141
+ ],
142
+ name: "Upgraded",
143
+ type: "event",
144
+ },
145
+ {
146
+ anonymous: false,
147
+ inputs: [
148
+ {
149
+ indexed: true,
150
+ internalType: "address",
151
+ name: "account",
152
+ type: "address",
153
+ },
154
+ {
155
+ indexed: false,
156
+ internalType: "uint256",
157
+ name: "amount",
158
+ type: "uint256",
159
+ },
160
+ {
161
+ indexed: false,
162
+ internalType: "address",
163
+ name: "whitelistedRoot",
164
+ type: "address",
165
+ },
166
+ {
167
+ indexed: true,
168
+ internalType: "address",
169
+ name: "relayerOrWhitelisted",
170
+ type: "address",
171
+ },
172
+ ],
173
+ name: "WalletTopped",
174
+ type: "event",
175
+ },
176
+ {
177
+ inputs: [],
178
+ name: "DEFAULT_ADMIN_ROLE",
179
+ outputs: [
180
+ {
181
+ internalType: "bytes32",
182
+ name: "",
183
+ type: "bytes32",
184
+ },
185
+ ],
186
+ stateMutability: "view",
187
+ type: "function",
188
+ },
189
+ {
190
+ inputs: [],
191
+ name: "RELAYER_ROLE",
192
+ outputs: [
193
+ {
194
+ internalType: "bytes32",
195
+ name: "",
196
+ type: "bytes32",
197
+ },
198
+ ],
199
+ stateMutability: "view",
200
+ type: "function",
201
+ },
202
+ {
203
+ inputs: [
204
+ {
205
+ internalType: "address",
206
+ name: "_user",
207
+ type: "address",
208
+ },
209
+ ],
210
+ name: "banAddress",
211
+ outputs: [],
212
+ stateMutability: "nonpayable",
213
+ type: "function",
214
+ },
215
+ {
216
+ inputs: [
217
+ {
218
+ internalType: "address",
219
+ name: "",
220
+ type: "address",
221
+ },
222
+ ],
223
+ name: "bans",
224
+ outputs: [
225
+ {
226
+ internalType: "uint256",
227
+ name: "",
228
+ type: "uint256",
229
+ },
230
+ ],
231
+ stateMutability: "view",
232
+ type: "function",
233
+ },
234
+ {
235
+ inputs: [
236
+ {
237
+ internalType: "address",
238
+ name: "_user",
239
+ type: "address",
240
+ },
241
+ ],
242
+ name: "canTop",
243
+ outputs: [
244
+ {
245
+ internalType: "bool",
246
+ name: "",
247
+ type: "bool",
248
+ },
249
+ ],
250
+ stateMutability: "view",
251
+ type: "function",
252
+ },
253
+ {
254
+ inputs: [],
255
+ name: "currentDay",
256
+ outputs: [
257
+ {
258
+ internalType: "uint256",
259
+ name: "",
260
+ type: "uint256",
261
+ },
262
+ ],
263
+ stateMutability: "view",
264
+ type: "function",
265
+ },
266
+ {
267
+ inputs: [],
268
+ name: "dailyNewWalletsCount",
269
+ outputs: [
270
+ {
271
+ internalType: "uint64",
272
+ name: "",
273
+ type: "uint64",
274
+ },
275
+ ],
276
+ stateMutability: "view",
277
+ type: "function",
278
+ },
279
+ {
280
+ inputs: [],
281
+ name: "debugversion",
282
+ outputs: [
283
+ {
284
+ internalType: "uint8",
285
+ name: "",
286
+ type: "uint8",
287
+ },
288
+ ],
289
+ stateMutability: "view",
290
+ type: "function",
291
+ },
292
+ {
293
+ inputs: [],
294
+ name: "gasPrice",
295
+ outputs: [
296
+ {
297
+ internalType: "uint64",
298
+ name: "",
299
+ type: "uint64",
300
+ },
301
+ ],
302
+ stateMutability: "view",
303
+ type: "function",
304
+ },
305
+ {
306
+ inputs: [],
307
+ name: "gasRefund",
308
+ outputs: [
309
+ {
310
+ internalType: "uint256",
311
+ name: "",
312
+ type: "uint256",
313
+ },
314
+ ],
315
+ stateMutability: "view",
316
+ type: "function",
317
+ },
318
+ {
319
+ inputs: [],
320
+ name: "gasTopping",
321
+ outputs: [
322
+ {
323
+ internalType: "uint256",
324
+ name: "",
325
+ type: "uint256",
326
+ },
327
+ ],
328
+ stateMutability: "view",
329
+ type: "function",
330
+ },
331
+ {
332
+ inputs: [],
333
+ name: "getIdentity",
334
+ outputs: [
335
+ {
336
+ internalType: "contract IIdentityV2",
337
+ name: "",
338
+ type: "address",
339
+ },
340
+ ],
341
+ stateMutability: "view",
342
+ type: "function",
343
+ },
344
+ {
345
+ inputs: [
346
+ {
347
+ internalType: "bytes32",
348
+ name: "role",
349
+ type: "bytes32",
350
+ },
351
+ ],
352
+ name: "getRoleAdmin",
353
+ outputs: [
354
+ {
355
+ internalType: "bytes32",
356
+ name: "",
357
+ type: "bytes32",
358
+ },
359
+ ],
360
+ stateMutability: "view",
361
+ type: "function",
362
+ },
363
+ {
364
+ inputs: [
365
+ {
366
+ internalType: "address",
367
+ name: "_user",
368
+ type: "address",
369
+ },
370
+ ],
371
+ name: "getToppingAmount",
372
+ outputs: [
373
+ {
374
+ internalType: "uint256",
375
+ name: "",
376
+ type: "uint256",
377
+ },
378
+ ],
379
+ stateMutability: "view",
380
+ type: "function",
381
+ },
382
+ {
383
+ inputs: [],
384
+ name: "getToppingAmount",
385
+ outputs: [
386
+ {
387
+ internalType: "uint256",
388
+ name: "",
389
+ type: "uint256",
390
+ },
391
+ ],
392
+ stateMutability: "view",
393
+ type: "function",
394
+ },
395
+ {
396
+ inputs: [],
397
+ name: "goodDollar_unused",
398
+ outputs: [
399
+ {
400
+ internalType: "address",
401
+ name: "",
402
+ type: "address",
403
+ },
404
+ ],
405
+ stateMutability: "view",
406
+ type: "function",
407
+ },
408
+ {
409
+ inputs: [
410
+ {
411
+ internalType: "bytes32",
412
+ name: "role",
413
+ type: "bytes32",
414
+ },
415
+ {
416
+ internalType: "address",
417
+ name: "account",
418
+ type: "address",
419
+ },
420
+ ],
421
+ name: "grantRole",
422
+ outputs: [],
423
+ stateMutability: "nonpayable",
424
+ type: "function",
425
+ },
426
+ {
427
+ inputs: [
428
+ {
429
+ internalType: "bytes32",
430
+ name: "role",
431
+ type: "bytes32",
432
+ },
433
+ {
434
+ internalType: "address",
435
+ name: "account",
436
+ type: "address",
437
+ },
438
+ ],
439
+ name: "hasRole",
440
+ outputs: [
441
+ {
442
+ internalType: "bool",
443
+ name: "",
444
+ type: "bool",
445
+ },
446
+ ],
447
+ stateMutability: "view",
448
+ type: "function",
449
+ },
450
+ {
451
+ inputs: [
452
+ {
453
+ internalType: "contract NameService",
454
+ name: "_ns",
455
+ type: "address",
456
+ },
457
+ {
458
+ internalType: "uint64",
459
+ name: "_gasPrice",
460
+ type: "uint64",
461
+ },
462
+ {
463
+ internalType: "address",
464
+ name: "relayer",
465
+ type: "address",
466
+ },
467
+ {
468
+ internalType: "address",
469
+ name: "owner",
470
+ type: "address",
471
+ },
472
+ ],
473
+ name: "initialize",
474
+ outputs: [],
475
+ stateMutability: "nonpayable",
476
+ type: "function",
477
+ },
478
+ {
479
+ inputs: [],
480
+ name: "maxDailyNewWallets",
481
+ outputs: [
482
+ {
483
+ internalType: "uint64",
484
+ name: "",
485
+ type: "uint64",
486
+ },
487
+ ],
488
+ stateMutability: "view",
489
+ type: "function",
490
+ },
491
+ {
492
+ inputs: [],
493
+ name: "maxDailyToppings",
494
+ outputs: [
495
+ {
496
+ internalType: "uint32",
497
+ name: "",
498
+ type: "uint32",
499
+ },
500
+ ],
501
+ stateMutability: "view",
502
+ type: "function",
503
+ },
504
+ {
505
+ inputs: [],
506
+ name: "maxPerWeekMultiplier",
507
+ outputs: [
508
+ {
509
+ internalType: "uint32",
510
+ name: "",
511
+ type: "uint32",
512
+ },
513
+ ],
514
+ stateMutability: "view",
515
+ type: "function",
516
+ },
517
+ {
518
+ inputs: [],
519
+ name: "maxSwapAmount_unused",
520
+ outputs: [
521
+ {
522
+ internalType: "uint32",
523
+ name: "",
524
+ type: "uint32",
525
+ },
526
+ ],
527
+ stateMutability: "view",
528
+ type: "function",
529
+ },
530
+ {
531
+ inputs: [],
532
+ name: "minTopping",
533
+ outputs: [
534
+ {
535
+ internalType: "uint8",
536
+ name: "",
537
+ type: "uint8",
538
+ },
539
+ ],
540
+ stateMutability: "view",
541
+ type: "function",
542
+ },
543
+ {
544
+ inputs: [],
545
+ name: "nameService",
546
+ outputs: [
547
+ {
548
+ internalType: "contract NameService",
549
+ name: "",
550
+ type: "address",
551
+ },
552
+ ],
553
+ stateMutability: "view",
554
+ type: "function",
555
+ },
556
+ {
557
+ inputs: [
558
+ {
559
+ internalType: "address",
560
+ name: "",
561
+ type: "address",
562
+ },
563
+ ],
564
+ name: "notFirstTime",
565
+ outputs: [
566
+ {
567
+ internalType: "bool",
568
+ name: "",
569
+ type: "bool",
570
+ },
571
+ ],
572
+ stateMutability: "view",
573
+ type: "function",
574
+ },
575
+ {
576
+ inputs: [
577
+ {
578
+ internalType: "address payable",
579
+ name: "_from",
580
+ type: "address",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "amount",
585
+ type: "uint256",
586
+ },
587
+ {
588
+ internalType: "bytes",
589
+ name: "data",
590
+ type: "bytes",
591
+ },
592
+ ],
593
+ name: "onTokenTransfer",
594
+ outputs: [
595
+ {
596
+ internalType: "bool",
597
+ name: "",
598
+ type: "bool",
599
+ },
600
+ ],
601
+ stateMutability: "nonpayable",
602
+ type: "function",
603
+ },
604
+ {
605
+ inputs: [],
606
+ name: "perDayRoughLimit",
607
+ outputs: [
608
+ {
609
+ internalType: "uint256",
610
+ name: "",
611
+ type: "uint256",
612
+ },
613
+ ],
614
+ stateMutability: "view",
615
+ type: "function",
616
+ },
617
+ {
618
+ inputs: [],
619
+ name: "proxiableUUID",
620
+ outputs: [
621
+ {
622
+ internalType: "bytes32",
623
+ name: "",
624
+ type: "bytes32",
625
+ },
626
+ ],
627
+ stateMutability: "view",
628
+ type: "function",
629
+ },
630
+ {
631
+ inputs: [
632
+ {
633
+ internalType: "bytes32",
634
+ name: "role",
635
+ type: "bytes32",
636
+ },
637
+ {
638
+ internalType: "address",
639
+ name: "account",
640
+ type: "address",
641
+ },
642
+ ],
643
+ name: "renounceRole",
644
+ outputs: [],
645
+ stateMutability: "nonpayable",
646
+ type: "function",
647
+ },
648
+ {
649
+ inputs: [
650
+ {
651
+ internalType: "bytes32",
652
+ name: "role",
653
+ type: "bytes32",
654
+ },
655
+ {
656
+ internalType: "address",
657
+ name: "account",
658
+ type: "address",
659
+ },
660
+ ],
661
+ name: "revokeRole",
662
+ outputs: [],
663
+ stateMutability: "nonpayable",
664
+ type: "function",
665
+ },
666
+ {
667
+ inputs: [
668
+ {
669
+ internalType: "uint64",
670
+ name: "_price",
671
+ type: "uint64",
672
+ },
673
+ ],
674
+ name: "setGasPrice",
675
+ outputs: [],
676
+ stateMutability: "nonpayable",
677
+ type: "function",
678
+ },
679
+ {
680
+ inputs: [
681
+ {
682
+ internalType: "uint256",
683
+ name: "_gasUnits",
684
+ type: "uint256",
685
+ },
686
+ ],
687
+ name: "setGasTopping",
688
+ outputs: [],
689
+ stateMutability: "nonpayable",
690
+ type: "function",
691
+ },
692
+ {
693
+ inputs: [
694
+ {
695
+ internalType: "uint8",
696
+ name: "_minTop",
697
+ type: "uint8",
698
+ },
699
+ ],
700
+ name: "setMinTopping",
701
+ outputs: [],
702
+ stateMutability: "nonpayable",
703
+ type: "function",
704
+ },
705
+ {
706
+ inputs: [
707
+ {
708
+ internalType: "address",
709
+ name: "_voting",
710
+ type: "address",
711
+ },
712
+ ],
713
+ name: "setVotingContract",
714
+ outputs: [],
715
+ stateMutability: "nonpayable",
716
+ type: "function",
717
+ },
718
+ {
719
+ inputs: [
720
+ {
721
+ internalType: "bool",
722
+ name: "_with",
723
+ type: "bool",
724
+ },
725
+ ],
726
+ name: "setWithReimburseGas",
727
+ outputs: [],
728
+ stateMutability: "nonpayable",
729
+ type: "function",
730
+ },
731
+ {
732
+ inputs: [],
733
+ name: "startTime",
734
+ outputs: [
735
+ {
736
+ internalType: "uint256",
737
+ name: "",
738
+ type: "uint256",
739
+ },
740
+ ],
741
+ stateMutability: "view",
742
+ type: "function",
743
+ },
744
+ {
745
+ inputs: [
746
+ {
747
+ internalType: "bytes4",
748
+ name: "interfaceId",
749
+ type: "bytes4",
750
+ },
751
+ ],
752
+ name: "supportsInterface",
753
+ outputs: [
754
+ {
755
+ internalType: "bool",
756
+ name: "",
757
+ type: "bool",
758
+ },
759
+ ],
760
+ stateMutability: "view",
761
+ type: "function",
762
+ },
763
+ {
764
+ inputs: [
765
+ {
766
+ internalType: "address payable",
767
+ name: "_user",
768
+ type: "address",
769
+ },
770
+ ],
771
+ name: "topWallet",
772
+ outputs: [],
773
+ stateMutability: "nonpayable",
774
+ type: "function",
775
+ },
776
+ {
777
+ inputs: [
778
+ {
779
+ internalType: "uint256",
780
+ name: "",
781
+ type: "uint256",
782
+ },
783
+ {
784
+ internalType: "address",
785
+ name: "",
786
+ type: "address",
787
+ },
788
+ ],
789
+ name: "toppings",
790
+ outputs: [
791
+ {
792
+ internalType: "uint256",
793
+ name: "",
794
+ type: "uint256",
795
+ },
796
+ ],
797
+ stateMutability: "view",
798
+ type: "function",
799
+ },
800
+ {
801
+ inputs: [
802
+ {
803
+ internalType: "address",
804
+ name: "newImplementation",
805
+ type: "address",
806
+ },
807
+ ],
808
+ name: "upgradeTo",
809
+ outputs: [],
810
+ stateMutability: "nonpayable",
811
+ type: "function",
812
+ },
813
+ {
814
+ inputs: [
815
+ {
816
+ internalType: "address",
817
+ name: "newImplementation",
818
+ type: "address",
819
+ },
820
+ {
821
+ internalType: "bytes",
822
+ name: "data",
823
+ type: "bytes",
824
+ },
825
+ ],
826
+ name: "upgradeToAndCall",
827
+ outputs: [],
828
+ stateMutability: "payable",
829
+ type: "function",
830
+ },
831
+ {
832
+ inputs: [],
833
+ name: "version",
834
+ outputs: [
835
+ {
836
+ internalType: "uint32",
837
+ name: "",
838
+ type: "uint32",
839
+ },
840
+ ],
841
+ stateMutability: "view",
842
+ type: "function",
843
+ },
844
+ {
845
+ inputs: [],
846
+ name: "votingContract",
847
+ outputs: [
848
+ {
849
+ internalType: "address",
850
+ name: "",
851
+ type: "address",
852
+ },
853
+ ],
854
+ stateMutability: "view",
855
+ type: "function",
856
+ },
857
+ {
858
+ inputs: [
859
+ {
860
+ internalType: "address",
861
+ name: "",
862
+ type: "address",
863
+ },
864
+ ],
865
+ name: "wallets",
866
+ outputs: [
867
+ {
868
+ internalType: "uint128",
869
+ name: "lastDayTopped",
870
+ type: "uint128",
871
+ },
872
+ {
873
+ internalType: "uint32",
874
+ name: "dailyToppingCount",
875
+ type: "uint32",
876
+ },
877
+ {
878
+ internalType: "uint128",
879
+ name: "weeklyToppingSum",
880
+ type: "uint128",
881
+ },
882
+ {
883
+ internalType: "uint128",
884
+ name: "lastWeekTopped",
885
+ type: "uint128",
886
+ },
887
+ ],
888
+ stateMutability: "view",
889
+ type: "function",
890
+ },
891
+ {
892
+ stateMutability: "payable",
893
+ type: "receive",
894
+ },
895
+ ] as const;
896
+
897
+ const _bytecode =
898
+ "0x60a06040523060805234801561001457600080fd5b50608051612de761004c60003960008181610a5f01528181610a9f015281816113c401528181611404015261147c0152612de76000f3fe6080604052600436106102065760003560e01c806301ffc9a714610212578063089c25fa1461024757806309729d3214610275578063151267991461029c5780631ece9b12146102b1578063244c2596146102df578063248a9ca3146103105780632f2ff15d146103305780632f5a3d151461035057806336568abe146103665780633659cfe61461038657806336afc6fa146103a65780633771dcf8146103bb5780633e6326fc146103db5780634f1ef286146103fc57806352d1902d1461040f57806354fd4d50146104245780635b61e2c11461045e5780635bc758e21461049e5780635c9302c9146104b45780636294c311146104ca5780636bdd7242146104ea57806370c635911461050a57806378e979251461052a5780637befab10146105405780637f49f7091461056557806389b08f111461058557806391d1485414610617578063926d7d7f1461063757806393a08de414610659578063969172c914610677578063a069c1ac1461069c578063a217fddf146106bc578063a4c0ed36146106d1578063aa31e459146106f1578063aaab4c1d14610722578063ad285cad14610744578063c1fc006a14610772578063c573cb4014610793578063c5da1033146107b4578063c8eb7549146107ed578063d547741f1461080d578063e97eefd21461082d578063f84b40f51461084d578063fe173b971461086357600080fd5b3661020d57005b600080fd5b34801561021e57600080fd5b5061023261022d36600461258c565b61088b565b60405190151581526020015b60405180910390f35b34801561025357600080fd5b506102676102623660046125cb565b6108c2565b60405190815260200161023e565b34801561028157600080fd5b5061028a600381565b60405160ff909116815260200161023e565b3480156102a857600080fd5b5061026761098c565b3480156102bd57600080fd5b50610105546102d2906001600160a01b031681565b60405161023e91906125e8565b3480156102eb57600080fd5b5061030e6102fa36600461260a565b610109805460ff1916911515919091179055565b005b34801561031c57600080fd5b5061026761032b366004612627565b61099c565b34801561033c57600080fd5b5061030e61034b366004612640565b6109b1565b34801561035c57600080fd5b5061026760fc5481565b34801561037257600080fd5b5061030e610381366004612640565b6109d2565b34801561039257600080fd5b5061030e6103a13660046125cb565b610a55565b3480156103b257600080fd5b506102d2610b1d565b3480156103c757600080fd5b5061030e6103d63660046125cb565b610ba4565b3480156103e757600080fd5b50610100546102d2906001600160a01b031681565b61030e61040a3660046126b6565b6113ba565b34801561041b57600080fd5b5061026761146f565b34801561043057600080fd5b506101065461044990600160401b900463ffffffff1681565b60405163ffffffff909116815260200161023e565b34801561046a57600080fd5b506101055461048690600160a01b90046001600160401b031681565b6040516001600160401b03909116815260200161023e565b3480156104aa57600080fd5b5061026760fd5481565b3480156104c057600080fd5b5061026760ff5481565b3480156104d657600080fd5b5061030e6104e5366004612779565b61151d565b3480156104f657600080fd5b5061030e6105053660046127d3565b611715565b34801561051657600080fd5b5061030e610525366004612627565b61174e565b34801561053657600080fd5b5061026760fe5481565b34801561054c57600080fd5b506101045461044990600160601b900463ffffffff1681565b34801561057157600080fd5b5061030e6105803660046125cb565b611770565b34801561059157600080fd5b506105de6105a03660046125cb565b61010360205260009081526040902080546005909101546001600160801b038083169263ffffffff600160801b918290041692808316929190041684565b604080516001600160801b03958616815263ffffffff90941660208501529184169183019190915291909116606082015260800161023e565b34801561062357600080fd5b50610232610632366004612640565b6117b6565b34801561064357600080fd5b50610267600080516020612d6b83398151915281565b34801561066557600080fd5b50610104546104499063ffffffff1681565b34801561068357600080fd5b506101045461044990600160801b900463ffffffff1681565b3480156106a857600080fd5b5061030e6106b73660046125cb565b6117e1565b3480156106c857600080fd5b50610267600081565b3480156106dd57600080fd5b506102326106ec3660046127ee565b611810565b3480156106fd57600080fd5b5061023261070c3660046125cb565b6101026020526000908152604090205460ff1681565b34801561072e57600080fd5b506101065461028a90600160601b900460ff1681565b34801561075057600080fd5b5061026761075f3660046125cb565b6101086020526000908152604090205481565b34801561077e57600080fd5b50610107546102d2906001600160a01b031681565b34801561079f57600080fd5b5061010654610486906001600160401b031681565b3480156107c057600080fd5b506102676107cf366004612640565b61010160209081526000928352604080842090915290825290205481565b3480156107f957600080fd5b5061030e610808366004612876565b6119fb565b34801561081957600080fd5b5061030e610828366004612640565b611a28565b34801561083957600080fd5b506102326108483660046125cb565b611a44565b34801561085957600080fd5b5061026760fb5481565b34801561086f57600080fd5b506101045461048690600160201b90046001600160401b031681565b60006001600160e01b03198216637965db0b60e01b14806108bc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6101045460fc5460009182916108e891600160201b90046001600160401b0316906128af565b610107549091506001600160a01b0316156108bc57610107546040516370a0823160e01b81526001600160a01b03909116906370a082319061092e9086906004016125e8565b602060405180830381865afa925050508015610967575060408051601f3d908101601f19168201909252610964918101906128c6565b60015b156108bc5780156109855761097d8260026128af565b949350505050565b5092915050565b6000610997336108c2565b905090565b600090815260c9602052604090206001015490565b6109ba8261099c565b6109c381611ccb565b6109cd8383611cd5565b505050565b6001600160a01b0381163314610a475760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610a518282611d5b565b5050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a9d5760405162461bcd60e51b8152600401610a3e906128df565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610acf611dc2565b6001600160a01b031614610af55760405162461bcd60e51b8152600401610a3e90612919565b610afe81611dde565b60408051600080825260208201909252610b1a91839190611de9565b50565b6101005460405163bf40fac160e01b81526020600482015260086024820152674944454e5449545960c01b60448201526000916001600160a01b03169063bf40fac190606401602060405180830381865afa158015610b80573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109979190612953565b6101095460ff16610f4d57806000610bba610b1d565b6001600160a01b0316632d0e9b46836040518263ffffffff1660e01b8152600401610be591906125e8565b602060405180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c269190612953565b90506001600160a01b03811615610c3d5780610c3f565b815b60ff54909250610c4d611f54565b8060ff5414610c685761010680546001600160401b03191690555b60ff546001600160a01b038416600090815261010360205260409020546001600160801b039081169116141580610ccd5750610104546001600160a01b0384166000908152610103602052604090205463ffffffff918216600160801b909104909116105b610ce95760405162461bcd60e51b8152600401610a3e90612970565b6001600160a01b0383166000908152610102602052604090205460ff16158015610d2c575061010554610106546001600160401b03600160a01b90920482169116105b80610d3f57506001600160a01b03821615155b610d5b5760405162461bcd60e51b8152600401610a3e9061299c565b6001600160a01b0383166000908152610103602052604090206005015462093a8090610d9790600160801b90046001600160801b0316426129e2565b10610dcc576001600160a01b038316600090815261010360205260409020426001600160801b0316600160801b026005909101555b6101045460fb54600160601b820463ffffffff1691610dfc91600160201b9091046001600160401b0316906128af565b610e0691906128af565b6001600160a01b038416600090815261010360205260409020600501546001600160801b031610610e495760405162461bcd60e51b8152600401610a3e906129f5565b836000610e54610b1d565b6001600160a01b0316632d0e9b46836040518263ffffffff1660e01b8152600401610e7f91906125e8565b602060405180830381865afa158015610e9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec09190612953565b6001600160a01b0316141580610ee95750610ee9600080516020612d6b833981519152336117b6565b610f055760405162461bcd60e51b8152600401610a3e90612a49565b6001600160a01b038116600090815261010860205260409020544211610f3d5760405162461bcd60e51b8152600401610a3e90612a71565b610f4685611f75565b5050505050565b60005a9050610f87604051806040016040528060138152602001725f676173526566756e6420737461727420257360681b8152508261205b565b816000610f92610b1d565b6001600160a01b0316632d0e9b46836040518263ffffffff1660e01b8152600401610fbd91906125e8565b602060405180830381865afa158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe9190612953565b90506001600160a01b038116156110155780611017565b815b60ff54909250611025611f54565b8060ff54146110405761010680546001600160401b03191690555b60ff546001600160a01b038416600090815261010360205260409020546001600160801b0390811691161415806110a55750610104546001600160a01b0384166000908152610103602052604090205463ffffffff918216600160801b909104909116105b6110c15760405162461bcd60e51b8152600401610a3e90612970565b6001600160a01b0383166000908152610102602052604090205460ff16158015611104575061010554610106546001600160401b03600160a01b90920482169116105b8061111757506001600160a01b03821615155b6111335760405162461bcd60e51b8152600401610a3e9061299c565b6001600160a01b0383166000908152610103602052604090206005015462093a809061116f90600160801b90046001600160801b0316426129e2565b106111a4576001600160a01b038316600090815261010360205260409020426001600160801b0316600160801b026005909101555b6101045460fb54600160601b820463ffffffff16916111d491600160201b9091046001600160401b0316906128af565b6111de91906128af565b6001600160a01b038416600090815261010360205260409020600501546001600160801b0316106112215760405162461bcd60e51b8152600401610a3e906129f5565b84600061122c610b1d565b6001600160a01b0316632d0e9b46836040518263ffffffff1660e01b815260040161125791906125e8565b602060405180830381865afa158015611274573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112989190612953565b6001600160a01b03161415806112c157506112c1600080516020612d6b833981519152336117b6565b6112dd5760405162461bcd60e51b8152600401610a3e90612a49565b6001600160a01b0381166000908152610108602052604090205442116113155760405162461bcd60e51b8152600401610a3e90612a71565b61131e86611f75565b505050505a61132d90826129e2565b6113399061a410612a91565b905061136e604051806040016040528060118152602001705f676173526566756e6420656e6420257360781b8152508261205b565b6101045433906108fc9061139290600160201b90046001600160401b0316846128af565b6040518115909202916000818181858888f193505050501580156109cd573d6000803e3d6000fd5b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114025760405162461bcd60e51b8152600401610a3e906128df565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611434611dc2565b6001600160a01b03161461145a5760405162461bcd60e51b8152600401610a3e90612919565b61146382611dde565b610a5182826001611de9565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461150a5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610a3e565b50600080516020612d4b83398151915290565b600054610100900460ff161580801561153d5750600054600160ff909116105b8061155e575061154c306120a0565b15801561155e575060005460ff166001145b6115c15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a3e565b6000805460ff1916600117905580156115e4576000805461ff0019166101001790555b6115ec6120af565b6115f760008361211c565b6001600160a01b0383161561161e5761161e600080516020612d6b8339815191528461211c565b6101048054600160201b600160601b031916600160201b6001600160401b038716021790556298968060fc8190556116579060026128af565b60fb5561010480544260fe5561010080546001600160a01b0319166001600160a01b03891617905563ffffffff63ffffffff60601b0119166003600160611b011790556101058054600160a01b600160e01b03191661027160a31b179055610106805460ff60601b1916600f60601b1790558015610f46576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050505050565b600061172081611ccb565b5061010480546001600160401b03909216600160201b02600160201b600160601b0319909216919091179055565b600061175981611ccb565b60fc8290556117698260026128af565b60fb555050565b600080516020612d6b83398151915261178881611ccb565b611795426203f480612a91565b6001600160a01b039092166000908152610108602052604090209190915550565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60006117ec81611ccb565b5061010780546001600160a01b0319166001600160a01b0392909216919091179055565b60008061181f838501856125cb565b6040805160028082526060820183529293508392600092602083019080368337019050509050338160008151811061185957611859612aa4565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118db9190612953565b816001815181106118ee576118ee612aa4565b6001600160a01b03928316602091820292909201015260405163095ea7b360e01b815290841660048201526000196024820152339063095ea7b3906044016020604051808303816000875af115801561194b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196f9190612aba565b506040516318cbafe560e01b81526001600160a01b038316906318cbafe5906119a5908a9060009086908e904290600401612ad7565b6000604051808303816000875af11580156119c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119ec9190810190612b48565b50600198975050505050505050565b6000611a0681611ccb565b50610106805460ff909216600160601b0260ff60601b19909216919091179055565b611a318261099c565b611a3a81611ccb565b6109cd8383611d5b565b600080611a50836108c2565b9050826001600160a01b031631811015611a6d5750600092915050565b6000611a836001600160a01b03851631836129e2565b61010654909150600160601b900460ff1682611aa08360646128af565b611aaa9190612be1565b1015611aba575060009392505050565b6000611ac4610b1d565b6001600160a01b0316632d0e9b46866040518263ffffffff1660e01b8152600401611aef91906125e8565b602060405180830381865afa158015611b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b309190612953565b90506001600160a01b03811615611b475780611b49565b845b945060006201518060fe5442611b5f91906129e2565b611b699190612be1565b6001600160a01b03871660009081526101036020526040812054919250906001600160801b038084169116141580611bc857506001600160a01b038716600090815261010360205260409020546003600160801b90910463ffffffff16105b8015611c2557506001600160a01b0387166000908152610102602052604090205460ff16158015611c12575061010554610106546001600160401b03600160a01b90920482169116105b80611c2557506001600160a01b03831615155b6001600160a01b038816600090815261010360205260409020600501549091506001600160801b038082169162093a8091611c6891600160801b900416426129e2565b10611c71575060005b818015611cbf57506101045460fb54600160601b820463ffffffff1691611ca991600160201b9091046001600160401b0316906128af565b611cb391906128af565b816001600160801b0316105b98975050505050505050565b610b1a8133612126565b611cdf82826117b6565b610a5157600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611d173390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611d6582826117b6565b15610a5157600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080516020612d4b833981519152546001600160a01b031690565b6000610a5181611ccb565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611e1c576109cd8361217f565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611e76575060408051601f3d908101601f19168201909252611e73918101906128c6565b60015b611ed95760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a3e565b600080516020612d4b8339815191528114611f485760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a3e565b506109cd838383612219565b6201518060fe5442611f6691906129e2565b611f709190612be1565b60ff55565b806000611f81826108c2565b9050611fb56040518060400160405280601081526020016f746f7070696e67416d6f756e7420257360801b8152508261205b565b6000611fcb6001600160a01b03851631836129e2565b9050611ff760405180604001604052806008815260200167746f546f7020257360c01b8152508261205b565b61010654600160601b900460ff16826120118360646128af565b61201b9190612be1565b10156120555760405162461bcd60e51b815260206004820152600960248201526806c6f7720746f546f760bc1b6044820152606401610a3e565b50505050565b610a518282604051602401612071929190612c53565b60408051601f198184030181529190526020810180516001600160e01b0316632d839cb360e21b17905261223e565b6001600160a01b03163b151590565b600054610100900460ff1661211a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610a3e565b565b610a518282611cd5565b61213082826117b6565b610a515761213d81612247565b612148836020612259565b604051602001612159929190612c75565b60408051601f198184030181529082905262461bcd60e51b8252610a3e91600401612ce4565b612188816120a0565b6121ea5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a3e565b600080516020612d4b83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612222836123fb565b60008251118061222f5750805b156109cd57612055838361243b565b610b1a8161252d565b60606108bc6001600160a01b03831660145b606060006122688360026128af565b612273906002612a91565b6001600160401b0381111561228a5761228a612670565b6040519080825280601f01601f1916602001820160405280156122b4576020820181803683370190505b509050600360fc1b816000815181106122cf576122cf612aa4565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106122fe576122fe612aa4565b60200101906001600160f81b031916908160001a90535060006123228460026128af565b61232d906001612a91565b90505b60018111156123a5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061236157612361612aa4565b1a60f81b82828151811061237757612377612aa4565b60200101906001600160f81b031916908160001a90535060049490941c9361239e81612cf7565b9050612330565b5083156123f45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a3e565b9392505050565b6124048161217f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060612446836120a0565b6124a15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a3e565b600080846001600160a01b0316846040516124bc9190612d0e565b600060405180830381855af49150503d80600081146124f7576040519150601f19603f3d011682016040523d82523d6000602084013e6124fc565b606091505b50915091506125248282604051806060016040528060278152602001612d8b6027913961254e565b95945050505050565b60006a636f6e736f6c652e6c6f679050600080835160208501845afa505050565b6060831561255d5750816123f4565b6123f483838151156125725781518083602001fd5b8060405162461bcd60e51b8152600401610a3e9190612ce4565b60006020828403121561259e57600080fd5b81356001600160e01b0319811681146123f457600080fd5b6001600160a01b0381168114610b1a57600080fd5b6000602082840312156125dd57600080fd5b81356123f4816125b6565b6001600160a01b0391909116815260200190565b8015158114610b1a57600080fd5b60006020828403121561261c57600080fd5b81356123f4816125fc565b60006020828403121561263957600080fd5b5035919050565b6000806040838503121561265357600080fd5b823591506020830135612665816125b6565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156126ae576126ae612670565b604052919050565b600080604083850312156126c957600080fd5b82356126d4816125b6565b91506020838101356001600160401b03808211156126f157600080fd5b818601915086601f83011261270557600080fd5b81358181111561271757612717612670565b612729601f8201601f19168501612686565b9150808252878482850101111561273f57600080fd5b80848401858401376000848284010152508093505050509250929050565b80356001600160401b038116811461277457600080fd5b919050565b6000806000806080858703121561278f57600080fd5b843561279a816125b6565b93506127a86020860161275d565b925060408501356127b8816125b6565b915060608501356127c8816125b6565b939692955090935050565b6000602082840312156127e557600080fd5b6123f48261275d565b6000806000806060858703121561280457600080fd5b843561280f816125b6565b93506020850135925060408501356001600160401b038082111561283257600080fd5b818701915087601f83011261284657600080fd5b81358181111561285557600080fd5b88602082850101111561286757600080fd5b95989497505060200194505050565b60006020828403121561288857600080fd5b813560ff811681146123f457600080fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108bc576108bc612899565b6000602082840312156128d857600080fd5b5051919050565b6020808252602c90820152600080516020612d2b83398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c90820152600080516020612d2b83398151915260408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121561296557600080fd5b81516123f4816125b6565b6020808252601290820152716d6178206461696c7920746f7070696e677360701b604082015260600190565b60208082526026908201527f55736572206e6f742077686974656c6973746564206f72206e6f742066697273604082015265742074696d6560d01b606082015260800190565b818103818111156108bc576108bc612899565b60208082526034908201527f557365722077616c6c657420686173206265656e20746f7070656420746f6f206040820152736d616e792074696d65732074686973207765656b60601b606082015260800190565b6020808252600e908201526d1b9bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60208082526006908201526518985b9b995960d21b604082015260600190565b808201808211156108bc576108bc612899565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612acc57600080fd5b81516123f4816125fc565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612b275784516001600160a01b031683529383019391830191600101612b02565b50506001600160a01b03969096166060850152505050608001529392505050565b60006020808385031215612b5b57600080fd5b82516001600160401b0380821115612b7257600080fd5b818501915085601f830112612b8657600080fd5b815181811115612b9857612b98612670565b8060051b9150612ba9848301612686565b8181529183018401918481019088841115612bc357600080fd5b938501935b83851015611cbf57845182529385019390850190612bc8565b600082612bfe57634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015612c1e578181015183820152602001612c06565b50506000910152565b60008151808452612c3f816020860160208601612c03565b601f01601f19169290920160200192915050565b604081526000612c666040830185612c27565b90508260208301529392505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351612ca7816017850160208801612c03565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612cd8816028840160208801612c03565b01602801949350505050565b6020815260006123f46020830184612c27565b600081612d0657612d06612899565b506000190190565b60008251612d20818460208701612c03565b919091019291505056fe46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc802cf867c2da464d4ff0ebc4dfcccdfbd65d75a8bc1c273fb02e80bf3446b516416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122015f994a4a5588916f080d9f1eec1681b072b6d553f5b484b83a98a47997893e264736f6c63430008130033";
899
+
900
+ type DebugFaucetConstructorParams =
901
+ | [signer?: Signer]
902
+ | ConstructorParameters<typeof ContractFactory>;
903
+
904
+ const isSuperArgs = (
905
+ xs: DebugFaucetConstructorParams
906
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
907
+
908
+ export class DebugFaucet__factory extends ContractFactory {
909
+ constructor(...args: DebugFaucetConstructorParams) {
910
+ if (isSuperArgs(args)) {
911
+ super(...args);
912
+ } else {
913
+ super(_abi, _bytecode, args[0]);
914
+ }
915
+ }
916
+
917
+ override deploy(
918
+ overrides?: Overrides & { from?: string }
919
+ ): Promise<DebugFaucet> {
920
+ return super.deploy(overrides || {}) as Promise<DebugFaucet>;
921
+ }
922
+ override getDeployTransaction(
923
+ overrides?: Overrides & { from?: string }
924
+ ): TransactionRequest {
925
+ return super.getDeployTransaction(overrides || {});
926
+ }
927
+ override attach(address: string): DebugFaucet {
928
+ return super.attach(address) as DebugFaucet;
929
+ }
930
+ override connect(signer: Signer): DebugFaucet__factory {
931
+ return super.connect(signer) as DebugFaucet__factory;
932
+ }
933
+
934
+ static readonly bytecode = _bytecode;
935
+ static readonly abi = _abi;
936
+ static createInterface(): DebugFaucetInterface {
937
+ return new utils.Interface(_abi) as DebugFaucetInterface;
938
+ }
939
+ static connect(
940
+ address: string,
941
+ signerOrProvider: Signer | Provider
942
+ ): DebugFaucet {
943
+ return new Contract(address, _abi, signerOrProvider) as DebugFaucet;
944
+ }
945
+ }