@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,1021 @@
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
+ GenericDistributionHelperTestHelper,
8
+ GenericDistributionHelperTestHelperInterface,
9
+ } from "../../../../contracts/mocks/GenericDistributionHelperTest.sol/GenericDistributionHelperTestHelper";
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
+ "0x60a06040523060805234801561001457600080fd5b5060805161383161004c600039600081816108c80152818161090801528181610c2801528181610c680152610ce001526138316000f3fe6080604052600436106101825760003560e01c806301ffc9a71461018e5780630fffbaf3146101c357806312adcebf146101e55780631b3c90a8146102065780631c6603ba1461021d578063248a9ca31461028f57806324ea54f4146102bd5780632f2ff15d146102df57806332fe7b26146102ff578063346ef41b1461032057806336568abe146103505780633659cfe6146103705780633d34a267146103905780633e6326fc146103c55780634162169f146103e55780634f1ef2861461040557806352d1902d146104185780635aef7de61461042d5780637adbf9731461044d57806384f2b3841461048b57806386d97a1a146104ab5780639010d07c146104cb57806391d14854146104eb578063a217fddf1461050b578063a88ced4614610520578063a8ba389014610540578063b2ecd77514610560578063b875d49c1461059e578063c91d59fe146105be578063ca15c873146105df578063d547741f146105ff578063e1758bd81461061f578063f4325d671461063457600080fd5b3661018957005b600080fd5b34801561019a57600080fd5b506101ae6101a9366004612c12565b610655565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101d8610680565b6040516101ba9190612c3c565b3480156101f157600080fd5b50610166546101d8906001600160a01b031681565b34801561021257600080fd5b5061021b610690565b005b34801561022957600080fd5b50610164546101655461025b916001600160801b0380821692600160801b909204169060ff8082169161010090041684565b604080516001600160801b03958616815294909316602085015260ff918216928401929092521660608201526080016101ba565b34801561029b57600080fd5b506102af6102aa366004612c50565b6107b7565b6040519081526020016101ba565b3480156102c957600080fd5b506102af6000805160206137dc83398151915281565b3480156102eb57600080fd5b5061021b6102fa366004612c7e565b6107cc565b34801561030b57600080fd5b50610167546101d8906001600160a01b031681565b34801561032c57600080fd5b5061034061033b366004612c50565b6107ed565b6040516101ba9493929190612ce6565b34801561035c57600080fd5b5061021b61036b366004612c7e565b61083b565b34801561037c57600080fd5b5061021b61038b366004612d17565b6108be565b34801561039c57600080fd5b506103b06103ab366004612c50565b610986565b604080519283526020830191909152016101ba565b3480156103d157600080fd5b506067546101d8906001600160a01b031681565b3480156103f157600080fd5b506065546101d8906001600160a01b031681565b61021b610413366004612d9b565b610c1e565b34801561042457600080fd5b506102af610cd3565b34801561043957600080fd5b506066546101d8906001600160a01b031681565b34801561045957600080fd5b5061021b610468366004612d17565b61016680546001600160a01b0319166001600160a01b0392909216919091179055565b34801561049757600080fd5b5061021b6104a6366004612d17565b610d82565b3480156104b757600080fd5b5061021b6104c6366004612e5f565b610da3565b3480156104d757600080fd5b506101d86104e6366004612eca565b611064565b3480156104f757600080fd5b506101ae610506366004612c7e565b611084565b34801561051757600080fd5b506102af600081565b34801561052c57600080fd5b5061021b61053b366004612f7a565b6110af565b34801561054c57600080fd5b5061021b61055b366004612c50565b6112a6565b34801561056c57600080fd5b5061021b61057b366004612d17565b61016b80546001600160a01b0319166001600160a01b0392909216919091179055565b3480156105aa57600080fd5b5061021b6105b9366004612ffa565b6115de565b3480156105ca57600080fd5b50610168546101d8906001600160a01b031681565b3480156105eb57600080fd5b506102af6105fa366004612c50565b611644565b34801561060b57600080fd5b5061021b61061a366004612c7e565b61165c565b34801561062b57600080fd5b506101d8611678565b34801561064057600080fd5b50610169546101d8906001600160a01b031681565b60006001600160e01b03198216635a05180f60e01b148061067a575061067a82611705565b92915050565b61016b546001600160a01b031690565b60675460405163bf40fac160e01b815260206004820152600a60248201526921a7a72a2927a62622a960b11b60448201526001600160a01b039091169063bf40fac190606401602060405180830381865afa1580156106f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107179190613016565b606580546001600160a01b0319166001600160a01b0392909216918217905560408051632d77bef360e11b81529051635aef7de6916004808201926020929091908290030181865afa158015610771573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107959190613016565b606680546001600160a01b0319166001600160a01b0392909216919091179055565b600090815260fe602052604090206001015490565b6107d5826107b7565b6107de8161173a565b6107e88383611744565b505050565b61016281815481106107fe57600080fd5b60009182526020909120015463ffffffff8082169250600160201b82041690600160401b81046001600160a01b031690600160e01b900460ff1684565b6001600160a01b03811633146108b05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108ba8282611767565b5050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036109065760405162461bcd60e51b81526004016108a790613033565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661093861178a565b6001600160a01b03161461095e5760405162461bcd60e51b81526004016108a79061306d565b610967816117a6565b60408051600080825260208201909252610983918391906117ae565b50565b610164546000908190819047906109ae90600160801b90046001600160801b031660036130bd565b6001600160801b03166109c191906130e8565b610166546101685461016954604051630757bc8160e01b81529394506000936001600160a01b0393841693630757bc8193610a09938893918316921690603c906004016130fb565b600060405180830381865afa158015610a26573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a4e91908101906131ba565b5061016654610169549192506001600160a01b0390811691630757bc8191849116610a77611678565b603c6040518563ffffffff1660e01b8152600401610a9894939291906130fb565b600060405180830381865afa158015610ab5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610add91908101906131ba565b508094505081925084841115610c1757610166548594506000906001600160a01b0316630757bc8186610b0e611678565b610169546040516001600160e01b031960e086901b168152610b419392916001600160a01b031690603c906004016130fb565b600060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b8691908101906131ba565b50610166546101695461016854604051630757bc8160e01b81529394506001600160a01b0392831693630757bc8193610bcd93879390821692911690603c906004016130fb565b600060405180830381865afa158015610bea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c1291908101906131ba565b509350505b5050915091565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610c665760405162461bcd60e51b81526004016108a790613033565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c9861178a565b6001600160a01b031614610cbe5760405162461bcd60e51b81526004016108a79061306d565b610cc7826117a6565b6108ba828260016117ae565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610d6e5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b60648201526084016108a7565b506000805160206137958339815191525b90565b6000805160206137dc833981519152610d9a8161173a565b6108ba82611919565b6000610dae8161173a565b600082606001516002811115610dc657610dc6612cae565b14158015610dde575046826020015163ffffffff1614155b15610dfc5760405163029b6e5760e41b815260040160405180910390fd5b60005b61016254811015610f555782604001516001600160a01b03166101628281548110610e2c57610e2c613201565b600091825260209091200154600160401b90046001600160a01b031603610f4357826101628281548110610e6257610e62613201565b60009182526020918290208351910180549284015160408501516001600160a01b0316600160401b02600160401b600160e01b031963ffffffff928316600160201b026001600160401b031990961692909416919091179390931791821683178155606084015190929091839160ff60e01b1916600160401b600160e81b031990911617600160e01b836002811115610efd57610efd612cae565b02179055509050507fd26d9de175cfca2c3e0cad9d09c85f0ce6c7fa5257382d00dc26dc5fb25cd8df8382604051610f36929190613217565b60405180910390a1505050565b80610f4d81613268565b915050610dff565b50610162546040517f2e65f65347b2e76218df0b7b6b594a3862c81e85706795e700237093c47a395791610f8b91859190613217565b60405180910390a1610162805460018101825560009190915282517f29af0939a5988989bfee913a9ad10b9335cb63ebc9fd2b69e5f877d0455ac9199091018054602085015160408601516001600160a01b0316600160401b02600160401b600160e01b031963ffffffff928316600160201b026001600160401b031990941692909516919091179190911792831681178255606085015185939091839160ff60e01b19909116600160401b600160e81b031990911617600160e01b83600281111561105957611059612cae565b021790555050505050565b60008281526101306020526040812061107d9083611a3f565b9392505050565b600091825260fe602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600054610100900460ff16158080156110cf5750600054600160ff909116105b806110f057506110de30611a4b565b1580156110f0575060005460ff166001145b6111535760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108a7565b6000805460ff191660011790558015611176576000805461ff0019166101001790555b61117e611a5a565b61118787611ac7565b60665461119f906000906001600160a01b0316611aea565b6066546111c4906000805160206137dc833981519152906001600160a01b0316611aea565b61016680546001600160a01b038089166001600160a01b0319928316179092556101678054868416908316179055835160208501516001600160801b03908116600160801b029116176101645560408401516101658054606087015160ff9081166101000261ffff1990921693169290921791909117905561016880549288169290911691909117905561125784611919565b801561129d576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b61016a546001036112f95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a7565b600161016a556000611309611678565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016113349190612c3c565b602060405180830381865afa158015611351573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113759190613281565b90508060000361138557506115d5565b6101645460009081908190600160801b90046001600160801b03164710156114f557610165546064906113bb9060ff168661329a565b6113c591906132b1565b91506113d082610986565b90925090506113df82856130e8565b93506113eb8282611af4565b61016854604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561143357600080fd5b505af1925050508015611444575060015b6114f5576114506132d3565b806308c379a00361149f57506114646132ee565b8061146f57506114a1565b60008051602061375583398151915281856000604051611491939291906133c7565b60405180910390a1506114f5565b505b6040805160608082526014908201527315d15512081dda5d1a191c985dc819985a5b195960621b60808201526020810185905260008183015290516000805160206137558339815191529181900360a00190a15b6000805b6101625481101561158b576000610162828154811061151a5761151a613201565b6000918252602090912001805490915063ffffffff16156115785780546000906127109061154e9063ffffffff168a61329a565b61155891906132b1565b905061156481856133ec565b935080156115765761157682826120b0565b505b508061158381613268565b9150506114f9565b507fdbd53b67dd15f9594eee6de294654de25af4c2a14d79d76e47d08d83c8025f5d81868861016287896040516115c7969594939291906133ff565b60405180910390a150505050505b50600061016a55565b6000805160206137dc8339815191526115f68161173a565b50805160208201516001600160801b03908116600160801b02911617610164556040810151610165805460609093015160ff9081166101000261ffff19909416921691909117919091179055565b60008181526101306020526040812061067a90612487565b611665826107b7565b61166e8161173a565b6107e88383611767565b60675460405163bf40fac160e01b815260206004820152600a60248201526923a7a7a22227a62620a960b11b60448201526000916001600160a01b03169063bf40fac190606401602060405180830381865afa1580156116dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117009190613016565b905090565b60006001600160e01b03198216637965db0b60e01b148061067a57506301ffc9a760e01b6001600160e01b031983161461067a565b6109838133612491565b61174e82826124ea565b6000828152610130602052604090206107e89082612570565b6117718282612585565b6000828152610130602052604090206107e890826125ec565b600080516020613795833981519152546001600160a01b031690565b610983612601565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156117e1576107e8836126c4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561183b575060408051601f3d908101601f1916820190925261183891810190613281565b60015b61189e5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108a7565b600080516020613795833981519152811461190d5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108a7565b506107e883838361275e565b61016980546001600160a01b0319166001600160a01b038381169182179092556101665490911690631c49cbb59061194f611678565b603c6040518463ffffffff1660e01b815260040161196f939291906134aa565b6000604051808303816000875af115801561198e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119b691908101906134d3565b50610166546101695461016854604051631c49cbb560e01b81526001600160a01b0393841693631c49cbb5936119f89390821692911690603c906004016134aa565b6000604051808303816000875af1158015611a17573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108ba91908101906134d3565b600061107d8383612789565b6001600160a01b03163b151590565b600054610100900460ff16611ac55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016108a7565b565b606780546001600160a01b0319166001600160a01b038316179055610983610690565b6108ba8282611744565b610166546101695460009182916001600160a01b03918216916362d991199116611b1c611678565b6040518363ffffffff1660e01b8152600401611b3992919061350f565b600060405180830381865afa158015611b56573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b7e91908101906134d3565b6101665461016954610168546040516362d9911960e01b81529394506000936001600160a01b03938416936362d9911993611bc2939082169291169060040161350f565b600060405180830381865afa158015611bdf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c0791908101906134d3565b9050600081600081518110611c1e57611c1e613201565b60200260200101516001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c879190613529565b9050600083600081518110611c9e57611c9e613201565b60200260200101516001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d079190613529565b905060015b8351811015611dc3576000848281518110611d2957611d29613201565b60200260200101516001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d929190613529565b90508062ffffff168462ffffff1610611dab5780611dad565b835b9350508080611dbb90613268565b915050611d0c565b5060015b8451811015611e7e576000858281518110611de457611de4613201565b60200260200101516001600160a01b031663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4d9190613529565b90508062ffffff168362ffffff1610611e665780611e68565b825b9250508080611e7690613268565b915050611dc7565b50611e87611678565b6101675460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392611ebb929116908b9060040161354e565b6020604051808303816000875af1158015611eda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efe9190613567565b5061016554600090606490611f1b90610100900460ff1682613589565b611f289060ff168961329a565b611f3291906132b1565b905060006040518060800160405280611f49611678565b61016954610168546040516001600160601b0319606094851b811660208301526001600160e81b031960e88b811b8216603485015294861b82166037840152938b901b909316604b820152921b16604e82015260620160408051601f198184030181529181529082523060208301528181018c9052606090910184905261016754905163b858183f60e01b81529192506001600160a01b03169063b858183f90611ff79084906004016135a2565b6020604051808303816000875af1925050508015612032575060408051601f3d908101601f1916820190925261202f91810190613281565b60015b6120a25761203e6132d3565b806308c379a00361209657506120526132ee565b8061205d5750612098565b600080516020613755833981519152818b8560405161207e939291906133c7565b60405180910390a1600097505050505050505061067a565b505b3d6000803e3d6000fd5b965061067a95505050505050565b60008254600160e01b900460ff1660028111156120cf576120cf612cae565b03612369576120dc611678565b6001600160a01b031663095ea7b36120f2610680565b836040518363ffffffff1660e01b815260040161211092919061354e565b6020604051808303816000875af115801561212f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121539190613567565b50600061215e610680565b6001600160a01b03166305fead15612174610680565b85546040516305b23a9960e41b8152600160201b90910463ffffffff1660048201526001600160a01b039190911690635b23a99090602401602060405180830381865afa1580156121c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ed91906135f0565b8554604051600160f01b602082015262061a8060228201523091600160401b90046001600160a01b03169087906000906042016040516020818303038152906040526040518763ffffffff1660e01b815260040161225096959493929190613614565b6040805180830381865afa15801561226c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122909190613665565b50610164549091506001600160801b03168111806122ad57504781115b156122ce57604051634493514b60e11b8152600481018290526024016108a7565b6122d6610680565b835460405163c56bbdd960e01b8152600160401b82046001600160a01b039081166004830152600160201b90920463ffffffff16602482015260448101859052608060648201526000608482015291169063c56bbdd990839060a4016000604051808303818588803b15801561234b57600080fd5b505af115801561235f573d6000803e3d6000fd5b5050505050505050565b60028254600160e01b900460ff16600281111561238857612388612cae565b0361242057612395611678565b8254604051630200057560e51b81526001600160a01b03600160401b90920482166004820152602481018490526060604482015260006064820152911690634000aea0906084015b6020604051808303816000875af11580156123fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e89190613567565b60018254600160e01b900460ff16600281111561243f5761243f612cae565b036108ba5761244c611678565b825460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb926123dd92600160401b90910490911690859060040161354e565b600061067a825490565b61249b8282611084565b6108ba576124a8816127b3565b6124b38360206127c5565b6040516020016124c4929190613689565b60408051601f198184030181529082905262461bcd60e51b82526108a7916004016136f8565b6124f48282611084565b6108ba57600082815260fe602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561252c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061107d836001600160a01b038416612960565b61258f8282611084565b156108ba57600082815260fe602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061107d836001600160a01b0384166129af565b60655460408051632d77bef360e11b8152905133926001600160a01b031691635aef7de69160048083019260209291908290030181865afa15801561264a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061266e9190613016565b6001600160a01b031614611ac55760405162461bcd60e51b815260206004820181905260248201527f6f6e6c79206176617461722063616e2063616c6c2074686973206d6574686f6460448201526064016108a7565b6126cd81611a4b565b61272f5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108a7565b60008051602061379583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61276783612aa2565b6000825111806127745750805b156107e8576127838383612ae2565b50505050565b60008260000182815481106127a0576127a0613201565b9060005260206000200154905092915050565b606061067a6001600160a01b03831660145b606060006127d483600261329a565b6127df9060026133ec565b6001600160401b038111156127f6576127f6612d34565b6040519080825280601f01601f191660200182016040528015612820576020820181803683370190505b509050600360fc1b8160008151811061283b5761283b613201565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061286a5761286a613201565b60200101906001600160f81b031916908160001a905350600061288e84600261329a565b6128999060016133ec565b90505b6001811115612911576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106128cd576128cd613201565b1a60f81b8282815181106128e3576128e3613201565b60200101906001600160f81b031916908160001a90535060049490941c9361290a8161370b565b905061289c565b50831561107d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108a7565b60008181526001830160205260408120546129a75750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561067a565b50600061067a565b60008181526001830160205260408120548015612a985760006129d36001836130e8565b85549091506000906129e7906001906130e8565b9050818114612a4c576000866000018281548110612a0757612a07613201565b9060005260206000200154905080876000018481548110612a2a57612a2a613201565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612a5d57612a5d613722565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061067a565b600091505061067a565b612aab816126c4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060612aed83611a4b565b612b485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016108a7565b600080846001600160a01b031684604051612b639190613738565b600060405180830381855af49150503d8060008114612b9e576040519150601f19603f3d011682016040523d82523d6000602084013e612ba3565b606091505b5091509150612bcb82826040518060600160405280602781526020016137b560279139612bd4565b95945050505050565b60608315612be357508161107d565b61107d8383815115612bf85781518083602001fd5b8060405162461bcd60e51b81526004016108a791906136f8565b600060208284031215612c2457600080fd5b81356001600160e01b03198116811461107d57600080fd5b6001600160a01b0391909116815260200190565b600060208284031215612c6257600080fd5b5035919050565b6001600160a01b038116811461098357600080fd5b60008060408385031215612c9157600080fd5b823591506020830135612ca381612c69565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b60038110612ce257634e487b7160e01b600052602160045260246000fd5b9052565b63ffffffff8581168252841660208201526001600160a01b038316604082015260808101612bcb6060830184612cc4565b600060208284031215612d2957600080fd5b813561107d81612c69565b634e487b7160e01b600052604160045260246000fd5b608081016001600160401b0381118282101715612d6957612d69612d34565b60405250565b601f8201601f191681016001600160401b0381118282101715612d9457612d94612d34565b6040525050565b60008060408385031215612dae57600080fd5b8235612db981612c69565b91506020838101356001600160401b0380821115612dd657600080fd5b818601915086601f830112612dea57600080fd5b813581811115612dfc57612dfc612d34565b6040519150612e14601f8201601f1916850183612d6f565b8082528784828501011115612e2857600080fd5b80848401858401376000848284010152508093505050509250929050565b803563ffffffff81168114612e5a57600080fd5b919050565b600060808284031215612e7157600080fd5b604051612e7d81612d4a565b612e8683612e46565b8152612e9460208401612e46565b60208201526040830135612ea781612c69565b6040820152606083013560038110612ebe57600080fd5b60608201529392505050565b60008060408385031215612edd57600080fd5b50508035926020909101359150565b80356001600160801b0381168114612e5a57600080fd5b803560ff81168114612e5a57600080fd5b600060808284031215612f2657600080fd5b604051612f3281612d4a565b809150612f3e83612eec565b8152612f4c60208401612eec565b6020820152612f5d60408401612f03565b6040820152612f6e60608401612f03565b60608201525092915050565b6000806000806000806101208789031215612f9457600080fd5b8635612f9f81612c69565b95506020870135612faf81612c69565b94506040870135612fbf81612c69565b93506060870135612fcf81612c69565b92506080870135612fdf81612c69565b9150612fee8860a08901612f14565b90509295509295509295565b60006080828403121561300c57600080fd5b61107d8383612f14565b60006020828403121561302857600080fd5b815161107d81612c69565b6020808252602c9082015260008051602061377583398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061377583398151915260408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6001600160801b038181168382160280821691908281146130e0576130e06130a7565b505092915050565b8181038181111561067a5761067a6130a7565b6001600160801b039490941684526001600160a01b0392831660208501529116604083015263ffffffff16606082015260800190565b600082601f83011261314257600080fd5b815160206001600160401b0382111561315d5761315d612d34565b8160051b60405161317083830182612d6f565b9283528481018201928281018785111561318957600080fd5b83870192505b848310156131af5782516131a281612c69565b815291830191830161318f565b509695505050505050565b600080604083850312156131cd57600080fd5b825160208401519092506001600160401b038111156131eb57600080fd5b6131f785828601613131565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b825163ffffffff9081168252602080850151909116908201526040808401516001600160a01b03169082015260608084015160a083019161325a90840182612cc4565b508260808301529392505050565b60006001820161327a5761327a6130a7565b5060010190565b60006020828403121561329357600080fd5b5051919050565b808202811582820484141761067a5761067a6130a7565b6000826132ce57634e487b7160e01b600052601260045260246000fd5b500490565b600060033d1115610d7f5760046000803e5060005160e01c90565b600060443d10156132fc5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171561332b57505050505090565b82850191508151818111156133435750505050505090565b843d870101602082850101111561335d5750505050505090565b61336c60208286010187612d6f565b509095945050505050565b60005b8381101561339257818101518382015260200161337a565b50506000910152565b600081518084526133b3816020860160208601613377565b601f01601f19169290920160200192915050565b6060815260006133da606083018661339b565b60208301949094525060400152919050565b8082018082111561067a5761067a6130a7565b600060c082018883526020888185015260408881860152606060c08187015283895480865260e0955085880191508a6000528460002060005b8281101561348957815463ffffffff808216865281891c168886015280871c6001600160a01b031687860152613475868601828b1c60ff16612cc4565b506080939093019260019182019101613438565b50505060808701989098525050505060a09091019190915250949350505050565b6001600160a01b03938416815291909216602082015263ffffffff909116604082015260600190565b6000602082840312156134e557600080fd5b81516001600160401b038111156134fb57600080fd5b61350784828501613131565b949350505050565b6001600160a01b0392831681529116602082015260400190565b60006020828403121561353b57600080fd5b815162ffffff8116811461107d57600080fd5b6001600160a01b03929092168252602082015260400190565b60006020828403121561357957600080fd5b8151801515811461107d57600080fd5b60ff828116828216039081111561067a5761067a6130a7565b6020815260008251608060208401526135be60a084018261339b565b905060018060a01b03602085015116604084015260408401516060840152606084015160808401528091505092915050565b60006020828403121561360257600080fd5b815161ffff8116811461107d57600080fd5b61ffff871681526001600160a01b0386811660208301528516604082015260608101849052821515608082015260c060a082018190526000906136599083018461339b565b98975050505050505050565b6000806040838503121561367857600080fd5b505080516020909101519092909150565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516136bb816017850160208801613377565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136ec816028840160208801613377565b01602801949350505050565b60208152600061107d602083018461339b565b60008161371a5761371a6130a7565b506000190190565b634e487b7160e01b600052603160045260246000fd5b6000825161374a818460208701613377565b919091019291505056fe1c337a8467703b7dbf7a278074870cb1a1f993ef69d022192ba360567703098f46756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c656455435dd261a4b9b3364963f7738a7a662ad9c84396d64be3365284bb7f0a5041a2646970667358221220523fe2f19c6df41ce9f2f32a7b0ab6c0c3f3f864c996534858c93bc005813dd164736f6c63430008130033";
963
+
964
+ type GenericDistributionHelperTestHelperConstructorParams =
965
+ | [signer?: Signer]
966
+ | ConstructorParameters<typeof ContractFactory>;
967
+
968
+ const isSuperArgs = (
969
+ xs: GenericDistributionHelperTestHelperConstructorParams
970
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
971
+
972
+ export class GenericDistributionHelperTestHelper__factory extends ContractFactory {
973
+ constructor(...args: GenericDistributionHelperTestHelperConstructorParams) {
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<GenericDistributionHelperTestHelper> {
984
+ return super.deploy(
985
+ overrides || {}
986
+ ) as Promise<GenericDistributionHelperTestHelper>;
987
+ }
988
+ override getDeployTransaction(
989
+ overrides?: Overrides & { from?: string }
990
+ ): TransactionRequest {
991
+ return super.getDeployTransaction(overrides || {});
992
+ }
993
+ override attach(address: string): GenericDistributionHelperTestHelper {
994
+ return super.attach(address) as GenericDistributionHelperTestHelper;
995
+ }
996
+ override connect(
997
+ signer: Signer
998
+ ): GenericDistributionHelperTestHelper__factory {
999
+ return super.connect(
1000
+ signer
1001
+ ) as GenericDistributionHelperTestHelper__factory;
1002
+ }
1003
+
1004
+ static readonly bytecode = _bytecode;
1005
+ static readonly abi = _abi;
1006
+ static createInterface(): GenericDistributionHelperTestHelperInterface {
1007
+ return new utils.Interface(
1008
+ _abi
1009
+ ) as GenericDistributionHelperTestHelperInterface;
1010
+ }
1011
+ static connect(
1012
+ address: string,
1013
+ signerOrProvider: Signer | Provider
1014
+ ): GenericDistributionHelperTestHelper {
1015
+ return new Contract(
1016
+ address,
1017
+ _abi,
1018
+ signerOrProvider
1019
+ ) as GenericDistributionHelperTestHelper;
1020
+ }
1021
+ }