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