@gooddollar/goodcollective-contracts 1.2.0 → 1.3.1

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 (62) hide show
  1. package/contracts/DirectPayments/DirectPaymentsFactory.sol +31 -12
  2. package/contracts/DirectPayments/DirectPaymentsLibrary.sol +208 -0
  3. package/contracts/DirectPayments/DirectPaymentsPool.sol +19 -151
  4. package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +72 -19
  5. package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +10 -0
  6. package/contracts/GoodCollective/SuperAppBaseFlow.sol +6 -0
  7. package/contracts/Interfaces.sol +25 -0
  8. package/contracts/UBI/UBIPool.sol +76 -75
  9. package/contracts/UBI/UBIPoolFactory.sol +34 -13
  10. package/contracts/utils/HelperLibrary.sol +66 -23
  11. package/package.json +3 -3
  12. package/releases/deployment.json +8486 -30703
  13. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +16 -4
  14. package/typechain-types/contracts/DirectPayments/DirectPaymentsLibrary.ts +146 -0
  15. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +191 -20
  16. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator.ts +6 -8
  17. package/typechain-types/contracts/DirectPayments/index.ts +1 -0
  18. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +141 -6
  19. package/typechain-types/contracts/{DirectPayments/DirectPaymentsFactory.sol/IRegistry.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts} +32 -20
  20. package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry.ts +38 -1
  21. package/typechain-types/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/index.ts +1 -0
  22. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp.ts +152 -0
  23. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow.ts +523 -0
  24. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
  25. package/typechain-types/contracts/GoodCollective/index.ts +2 -1
  26. package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2.ts +1 -1
  27. package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator.ts +1 -1
  28. package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
  29. package/typechain-types/contracts/UBI/{UBIPool.sol/UBIPool.ts → UBIPool.ts} +279 -47
  30. package/typechain-types/contracts/UBI/UBIPoolFactory.ts +58 -34
  31. package/typechain-types/contracts/UBI/index.ts +1 -2
  32. package/typechain-types/contracts/index.ts +2 -0
  33. package/typechain-types/contracts/utils/HelperLibrary.ts +46 -4
  34. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +16 -1
  35. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsLibrary__factory.ts +169 -0
  36. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +101 -2
  37. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/IMembersValidator__factory.ts +1 -1
  38. package/typechain-types/factories/contracts/DirectPayments/index.ts +1 -0
  39. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +66 -0
  40. package/typechain-types/factories/contracts/{DirectPayments/DirectPaymentsFactory.sol/IRegistry__factory.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts} +21 -12
  41. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IRegistry__factory.ts +24 -0
  42. package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/index.ts +1 -0
  43. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/IRegisterSuperapp__factory.ts +62 -0
  44. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/SuperAppBaseFlow__factory.ts +335 -0
  45. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow.sol/index.ts +5 -0
  46. package/typechain-types/factories/contracts/GoodCollective/index.ts +1 -1
  47. package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2__factory.ts +1 -1
  48. package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator__factory.ts +1 -1
  49. package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
  50. package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +56 -7
  51. package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +2070 -0
  52. package/typechain-types/factories/contracts/UBI/index.ts +1 -1
  53. package/typechain-types/factories/contracts/index.ts +1 -0
  54. package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +1 -1
  55. package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +41 -1
  56. package/typechain-types/hardhat.d.ts +35 -8
  57. package/typechain-types/index.ts +10 -4
  58. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory.ts +0 -1327
  59. package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.sol/index.ts +0 -5
  60. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory.sol/DirectPaymentsFactory__factory.ts +0 -1004
  61. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory.sol/index.ts +0 -5
  62. package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +0 -1916
@@ -0,0 +1,2070 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type { PromiseOrValue } from "../../../common";
7
+ import type { UBIPool, UBIPoolInterface } from "../../../contracts/UBI/UBIPool";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "contract ISuperfluid",
14
+ name: "_host",
15
+ type: "address",
16
+ },
17
+ {
18
+ internalType: "contract IV3SwapRouter",
19
+ name: "_swapRouter",
20
+ type: "address",
21
+ },
22
+ ],
23
+ stateMutability: "nonpayable",
24
+ type: "constructor",
25
+ },
26
+ {
27
+ inputs: [
28
+ {
29
+ internalType: "address",
30
+ name: "whitelistedRoot",
31
+ type: "address",
32
+ },
33
+ ],
34
+ name: "ALREADY_CLAIMED",
35
+ type: "error",
36
+ },
37
+ {
38
+ inputs: [],
39
+ name: "CLAIMFOR_DISABLED",
40
+ type: "error",
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: "EMPTY_MANAGER",
45
+ type: "error",
46
+ },
47
+ {
48
+ inputs: [
49
+ {
50
+ internalType: "int96",
51
+ name: "curFeeRate",
52
+ type: "int96",
53
+ },
54
+ {
55
+ internalType: "int96",
56
+ name: "newFeeRate",
57
+ type: "int96",
58
+ },
59
+ ],
60
+ name: "FEE_FLOW_FAILED",
61
+ type: "error",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "INVALID_0_VALUE",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "MAX_MEMBERS_REACHED",
71
+ type: "error",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "uint256",
77
+ name: "claimers",
78
+ type: "uint256",
79
+ },
80
+ ],
81
+ name: "MAX_PERIOD_CLAIMERS_REACHED",
82
+ type: "error",
83
+ },
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: "int96",
88
+ name: "flowRate",
89
+ type: "int96",
90
+ },
91
+ ],
92
+ name: "MIN_FLOWRATE",
93
+ type: "error",
94
+ },
95
+ {
96
+ inputs: [
97
+ {
98
+ internalType: "address",
99
+ name: "manager",
100
+ type: "address",
101
+ },
102
+ ],
103
+ name: "NOT_MANAGER",
104
+ type: "error",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "address",
110
+ name: "claimer",
111
+ type: "address",
112
+ },
113
+ ],
114
+ name: "NOT_MEMBER",
115
+ type: "error",
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: "address",
121
+ name: "whitelistedRoot",
122
+ type: "address",
123
+ },
124
+ ],
125
+ name: "NOT_WHITELISTED",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: "NotAcceptedSuperToken",
131
+ type: "error",
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: "NotImplemented",
136
+ type: "error",
137
+ },
138
+ {
139
+ inputs: [
140
+ {
141
+ internalType: "address",
142
+ name: "",
143
+ type: "address",
144
+ },
145
+ ],
146
+ name: "ONLY_HOST_OR_SENDER",
147
+ type: "error",
148
+ },
149
+ {
150
+ inputs: [],
151
+ name: "UNSUPPORTED_TOKEN",
152
+ type: "error",
153
+ },
154
+ {
155
+ inputs: [],
156
+ name: "UnauthorizedHost",
157
+ type: "error",
158
+ },
159
+ {
160
+ inputs: [],
161
+ name: "ZERO_ADDRESS",
162
+ type: "error",
163
+ },
164
+ {
165
+ inputs: [],
166
+ name: "ZERO_AMOUNT",
167
+ type: "error",
168
+ },
169
+ {
170
+ anonymous: false,
171
+ inputs: [
172
+ {
173
+ indexed: false,
174
+ internalType: "address",
175
+ name: "previousAdmin",
176
+ type: "address",
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: "address",
181
+ name: "newAdmin",
182
+ type: "address",
183
+ },
184
+ ],
185
+ name: "AdminChanged",
186
+ type: "event",
187
+ },
188
+ {
189
+ anonymous: false,
190
+ inputs: [
191
+ {
192
+ indexed: true,
193
+ internalType: "address",
194
+ name: "beacon",
195
+ type: "address",
196
+ },
197
+ ],
198
+ name: "BeaconUpgraded",
199
+ type: "event",
200
+ },
201
+ {
202
+ anonymous: false,
203
+ inputs: [
204
+ {
205
+ indexed: false,
206
+ internalType: "uint8",
207
+ name: "version",
208
+ type: "uint8",
209
+ },
210
+ ],
211
+ name: "Initialized",
212
+ type: "event",
213
+ },
214
+ {
215
+ anonymous: false,
216
+ inputs: [
217
+ {
218
+ components: [
219
+ {
220
+ internalType: "address",
221
+ name: "manager",
222
+ type: "address",
223
+ },
224
+ {
225
+ internalType: "contract IMembersValidator",
226
+ name: "membersValidator",
227
+ type: "address",
228
+ },
229
+ {
230
+ internalType: "contract IIdentityV2",
231
+ name: "uniquenessValidator",
232
+ type: "address",
233
+ },
234
+ {
235
+ internalType: "contract IERC20Upgradeable",
236
+ name: "rewardToken",
237
+ type: "address",
238
+ },
239
+ ],
240
+ indexed: false,
241
+ internalType: "struct PoolSettings",
242
+ name: "settings",
243
+ type: "tuple",
244
+ },
245
+ ],
246
+ name: "PoolSettingsChanged",
247
+ type: "event",
248
+ },
249
+ {
250
+ anonymous: false,
251
+ inputs: [
252
+ {
253
+ indexed: true,
254
+ internalType: "bytes32",
255
+ name: "role",
256
+ type: "bytes32",
257
+ },
258
+ {
259
+ indexed: true,
260
+ internalType: "bytes32",
261
+ name: "previousAdminRole",
262
+ type: "bytes32",
263
+ },
264
+ {
265
+ indexed: true,
266
+ internalType: "bytes32",
267
+ name: "newAdminRole",
268
+ type: "bytes32",
269
+ },
270
+ ],
271
+ name: "RoleAdminChanged",
272
+ type: "event",
273
+ },
274
+ {
275
+ anonymous: false,
276
+ inputs: [
277
+ {
278
+ indexed: true,
279
+ internalType: "bytes32",
280
+ name: "role",
281
+ type: "bytes32",
282
+ },
283
+ {
284
+ indexed: true,
285
+ internalType: "address",
286
+ name: "account",
287
+ type: "address",
288
+ },
289
+ {
290
+ indexed: true,
291
+ internalType: "address",
292
+ name: "sender",
293
+ type: "address",
294
+ },
295
+ ],
296
+ name: "RoleGranted",
297
+ type: "event",
298
+ },
299
+ {
300
+ anonymous: false,
301
+ inputs: [
302
+ {
303
+ indexed: true,
304
+ internalType: "bytes32",
305
+ name: "role",
306
+ type: "bytes32",
307
+ },
308
+ {
309
+ indexed: true,
310
+ internalType: "address",
311
+ name: "account",
312
+ type: "address",
313
+ },
314
+ {
315
+ indexed: true,
316
+ internalType: "address",
317
+ name: "sender",
318
+ type: "address",
319
+ },
320
+ ],
321
+ name: "RoleRevoked",
322
+ type: "event",
323
+ },
324
+ {
325
+ anonymous: false,
326
+ inputs: [
327
+ {
328
+ indexed: true,
329
+ internalType: "address",
330
+ name: "supporter",
331
+ type: "address",
332
+ },
333
+ {
334
+ indexed: false,
335
+ internalType: "uint256",
336
+ name: "previousContribution",
337
+ type: "uint256",
338
+ },
339
+ {
340
+ indexed: false,
341
+ internalType: "uint256",
342
+ name: "contribution",
343
+ type: "uint256",
344
+ },
345
+ {
346
+ indexed: false,
347
+ internalType: "int96",
348
+ name: "previousFlowRate",
349
+ type: "int96",
350
+ },
351
+ {
352
+ indexed: false,
353
+ internalType: "int96",
354
+ name: "flowRate",
355
+ type: "int96",
356
+ },
357
+ {
358
+ indexed: false,
359
+ internalType: "bool",
360
+ name: "isFlowUpdate",
361
+ type: "bool",
362
+ },
363
+ ],
364
+ name: "SupporterUpdated",
365
+ type: "event",
366
+ },
367
+ {
368
+ anonymous: false,
369
+ inputs: [
370
+ {
371
+ indexed: false,
372
+ internalType: "uint256",
373
+ name: "day",
374
+ type: "uint256",
375
+ },
376
+ {
377
+ indexed: false,
378
+ internalType: "uint256",
379
+ name: "dailyUbi",
380
+ type: "uint256",
381
+ },
382
+ {
383
+ indexed: false,
384
+ internalType: "uint256",
385
+ name: "blockNumber",
386
+ type: "uint256",
387
+ },
388
+ {
389
+ indexed: false,
390
+ internalType: "uint256",
391
+ name: "periodClaimers",
392
+ type: "uint256",
393
+ },
394
+ {
395
+ indexed: false,
396
+ internalType: "uint256",
397
+ name: "periodDistributed",
398
+ type: "uint256",
399
+ },
400
+ ],
401
+ name: "UBICalculated",
402
+ type: "event",
403
+ },
404
+ {
405
+ anonymous: false,
406
+ inputs: [
407
+ {
408
+ indexed: true,
409
+ internalType: "address",
410
+ name: "whitelistedRoot",
411
+ type: "address",
412
+ },
413
+ {
414
+ indexed: true,
415
+ internalType: "address",
416
+ name: "claimer",
417
+ type: "address",
418
+ },
419
+ {
420
+ indexed: false,
421
+ internalType: "uint256",
422
+ name: "amount",
423
+ type: "uint256",
424
+ },
425
+ ],
426
+ name: "UBIClaimed",
427
+ type: "event",
428
+ },
429
+ {
430
+ anonymous: false,
431
+ inputs: [
432
+ {
433
+ indexed: false,
434
+ internalType: "uint256",
435
+ name: "day",
436
+ type: "uint256",
437
+ },
438
+ {
439
+ indexed: false,
440
+ internalType: "uint256",
441
+ name: "pool",
442
+ type: "uint256",
443
+ },
444
+ {
445
+ indexed: false,
446
+ internalType: "uint256",
447
+ name: "cycleLength",
448
+ type: "uint256",
449
+ },
450
+ {
451
+ indexed: false,
452
+ internalType: "uint256",
453
+ name: "dailyUBIPool",
454
+ type: "uint256",
455
+ },
456
+ ],
457
+ name: "UBICycleCalculated",
458
+ type: "event",
459
+ },
460
+ {
461
+ anonymous: false,
462
+ inputs: [
463
+ {
464
+ components: [
465
+ {
466
+ internalType: "uint32",
467
+ name: "cycleLengthDays",
468
+ type: "uint32",
469
+ },
470
+ {
471
+ internalType: "uint32",
472
+ name: "claimPeriodDays",
473
+ type: "uint32",
474
+ },
475
+ {
476
+ internalType: "uint32",
477
+ name: "minActiveUsers",
478
+ type: "uint32",
479
+ },
480
+ {
481
+ internalType: "bool",
482
+ name: "claimForEnabled",
483
+ type: "bool",
484
+ },
485
+ {
486
+ internalType: "uint256",
487
+ name: "maxClaimAmount",
488
+ type: "uint256",
489
+ },
490
+ {
491
+ internalType: "uint32",
492
+ name: "maxMembers",
493
+ type: "uint32",
494
+ },
495
+ {
496
+ internalType: "bool",
497
+ name: "onlyMembers",
498
+ type: "bool",
499
+ },
500
+ ],
501
+ indexed: false,
502
+ internalType: "struct UBIPool.UBISettings",
503
+ name: "settings",
504
+ type: "tuple",
505
+ },
506
+ ],
507
+ name: "UBISettingsChanged",
508
+ type: "event",
509
+ },
510
+ {
511
+ anonymous: false,
512
+ inputs: [
513
+ {
514
+ indexed: true,
515
+ internalType: "address",
516
+ name: "implementation",
517
+ type: "address",
518
+ },
519
+ ],
520
+ name: "Upgraded",
521
+ type: "event",
522
+ },
523
+ {
524
+ inputs: [],
525
+ name: "CFAV1_TYPE",
526
+ outputs: [
527
+ {
528
+ internalType: "bytes32",
529
+ name: "",
530
+ type: "bytes32",
531
+ },
532
+ ],
533
+ stateMutability: "view",
534
+ type: "function",
535
+ },
536
+ {
537
+ inputs: [],
538
+ name: "DEFAULT_ADMIN_ROLE",
539
+ outputs: [
540
+ {
541
+ internalType: "bytes32",
542
+ name: "",
543
+ type: "bytes32",
544
+ },
545
+ ],
546
+ stateMutability: "view",
547
+ type: "function",
548
+ },
549
+ {
550
+ inputs: [],
551
+ name: "MANAGER_ROLE",
552
+ outputs: [
553
+ {
554
+ internalType: "bytes32",
555
+ name: "",
556
+ type: "bytes32",
557
+ },
558
+ ],
559
+ stateMutability: "view",
560
+ type: "function",
561
+ },
562
+ {
563
+ inputs: [],
564
+ name: "MEMBER_ROLE",
565
+ outputs: [
566
+ {
567
+ internalType: "bytes32",
568
+ name: "",
569
+ type: "bytes32",
570
+ },
571
+ ],
572
+ stateMutability: "view",
573
+ type: "function",
574
+ },
575
+ {
576
+ inputs: [],
577
+ name: "MIN_FLOW_RATE",
578
+ outputs: [
579
+ {
580
+ internalType: "int96",
581
+ name: "",
582
+ type: "int96",
583
+ },
584
+ ],
585
+ stateMutability: "view",
586
+ type: "function",
587
+ },
588
+ {
589
+ inputs: [
590
+ {
591
+ internalType: "address",
592
+ name: "member",
593
+ type: "address",
594
+ },
595
+ {
596
+ internalType: "bytes",
597
+ name: "extraData",
598
+ type: "bytes",
599
+ },
600
+ ],
601
+ name: "addMember",
602
+ outputs: [
603
+ {
604
+ internalType: "bool",
605
+ name: "isMember",
606
+ type: "bool",
607
+ },
608
+ ],
609
+ stateMutability: "nonpayable",
610
+ type: "function",
611
+ },
612
+ {
613
+ inputs: [
614
+ {
615
+ internalType: "contract ISuperToken",
616
+ name: "superToken",
617
+ type: "address",
618
+ },
619
+ {
620
+ internalType: "address",
621
+ name: "",
622
+ type: "address",
623
+ },
624
+ {
625
+ internalType: "bytes32",
626
+ name: "",
627
+ type: "bytes32",
628
+ },
629
+ {
630
+ internalType: "bytes",
631
+ name: "agreementData",
632
+ type: "bytes",
633
+ },
634
+ {
635
+ internalType: "bytes",
636
+ name: "",
637
+ type: "bytes",
638
+ },
639
+ {
640
+ internalType: "bytes",
641
+ name: "ctx",
642
+ type: "bytes",
643
+ },
644
+ ],
645
+ name: "afterAgreementCreated",
646
+ outputs: [
647
+ {
648
+ internalType: "bytes",
649
+ name: "newCtx",
650
+ type: "bytes",
651
+ },
652
+ ],
653
+ stateMutability: "nonpayable",
654
+ type: "function",
655
+ },
656
+ {
657
+ inputs: [
658
+ {
659
+ internalType: "contract ISuperToken",
660
+ name: "superToken",
661
+ type: "address",
662
+ },
663
+ {
664
+ internalType: "address",
665
+ name: "agreementClass",
666
+ type: "address",
667
+ },
668
+ {
669
+ internalType: "bytes32",
670
+ name: "",
671
+ type: "bytes32",
672
+ },
673
+ {
674
+ internalType: "bytes",
675
+ name: "agreementData",
676
+ type: "bytes",
677
+ },
678
+ {
679
+ internalType: "bytes",
680
+ name: "cbdata",
681
+ type: "bytes",
682
+ },
683
+ {
684
+ internalType: "bytes",
685
+ name: "ctx",
686
+ type: "bytes",
687
+ },
688
+ ],
689
+ name: "afterAgreementTerminated",
690
+ outputs: [
691
+ {
692
+ internalType: "bytes",
693
+ name: "newCtx",
694
+ type: "bytes",
695
+ },
696
+ ],
697
+ stateMutability: "nonpayable",
698
+ type: "function",
699
+ },
700
+ {
701
+ inputs: [
702
+ {
703
+ internalType: "contract ISuperToken",
704
+ name: "superToken",
705
+ type: "address",
706
+ },
707
+ {
708
+ internalType: "address",
709
+ name: "",
710
+ type: "address",
711
+ },
712
+ {
713
+ internalType: "bytes32",
714
+ name: "",
715
+ type: "bytes32",
716
+ },
717
+ {
718
+ internalType: "bytes",
719
+ name: "agreementData",
720
+ type: "bytes",
721
+ },
722
+ {
723
+ internalType: "bytes",
724
+ name: "cbdata",
725
+ type: "bytes",
726
+ },
727
+ {
728
+ internalType: "bytes",
729
+ name: "ctx",
730
+ type: "bytes",
731
+ },
732
+ ],
733
+ name: "afterAgreementUpdated",
734
+ outputs: [
735
+ {
736
+ internalType: "bytes",
737
+ name: "newCtx",
738
+ type: "bytes",
739
+ },
740
+ ],
741
+ stateMutability: "nonpayable",
742
+ type: "function",
743
+ },
744
+ {
745
+ inputs: [
746
+ {
747
+ internalType: "contract ISuperToken",
748
+ name: "superToken",
749
+ type: "address",
750
+ },
751
+ {
752
+ internalType: "address",
753
+ name: "agreementClass",
754
+ type: "address",
755
+ },
756
+ {
757
+ internalType: "bytes32",
758
+ name: "",
759
+ type: "bytes32",
760
+ },
761
+ {
762
+ internalType: "bytes",
763
+ name: "",
764
+ type: "bytes",
765
+ },
766
+ {
767
+ internalType: "bytes",
768
+ name: "",
769
+ type: "bytes",
770
+ },
771
+ ],
772
+ name: "beforeAgreementCreated",
773
+ outputs: [
774
+ {
775
+ internalType: "bytes",
776
+ name: "",
777
+ type: "bytes",
778
+ },
779
+ ],
780
+ stateMutability: "view",
781
+ type: "function",
782
+ },
783
+ {
784
+ inputs: [
785
+ {
786
+ internalType: "contract ISuperToken",
787
+ name: "superToken",
788
+ type: "address",
789
+ },
790
+ {
791
+ internalType: "address",
792
+ name: "agreementClass",
793
+ type: "address",
794
+ },
795
+ {
796
+ internalType: "bytes32",
797
+ name: "",
798
+ type: "bytes32",
799
+ },
800
+ {
801
+ internalType: "bytes",
802
+ name: "agreementData",
803
+ type: "bytes",
804
+ },
805
+ {
806
+ internalType: "bytes",
807
+ name: "",
808
+ type: "bytes",
809
+ },
810
+ ],
811
+ name: "beforeAgreementTerminated",
812
+ outputs: [
813
+ {
814
+ internalType: "bytes",
815
+ name: "",
816
+ type: "bytes",
817
+ },
818
+ ],
819
+ stateMutability: "view",
820
+ type: "function",
821
+ },
822
+ {
823
+ inputs: [
824
+ {
825
+ internalType: "contract ISuperToken",
826
+ name: "superToken",
827
+ type: "address",
828
+ },
829
+ {
830
+ internalType: "address",
831
+ name: "agreementClass",
832
+ type: "address",
833
+ },
834
+ {
835
+ internalType: "bytes32",
836
+ name: "",
837
+ type: "bytes32",
838
+ },
839
+ {
840
+ internalType: "bytes",
841
+ name: "agreementData",
842
+ type: "bytes",
843
+ },
844
+ {
845
+ internalType: "bytes",
846
+ name: "",
847
+ type: "bytes",
848
+ },
849
+ ],
850
+ name: "beforeAgreementUpdated",
851
+ outputs: [
852
+ {
853
+ internalType: "bytes",
854
+ name: "",
855
+ type: "bytes",
856
+ },
857
+ ],
858
+ stateMutability: "view",
859
+ type: "function",
860
+ },
861
+ {
862
+ inputs: [],
863
+ name: "cfaV1",
864
+ outputs: [
865
+ {
866
+ internalType: "contract ISuperfluid",
867
+ name: "host",
868
+ type: "address",
869
+ },
870
+ {
871
+ internalType: "contract IConstantFlowAgreementV1",
872
+ name: "cfa",
873
+ type: "address",
874
+ },
875
+ ],
876
+ stateMutability: "view",
877
+ type: "function",
878
+ },
879
+ {
880
+ inputs: [
881
+ {
882
+ internalType: "address",
883
+ name: "_member",
884
+ type: "address",
885
+ },
886
+ ],
887
+ name: "checkEntitlement",
888
+ outputs: [
889
+ {
890
+ internalType: "uint256",
891
+ name: "",
892
+ type: "uint256",
893
+ },
894
+ ],
895
+ stateMutability: "view",
896
+ type: "function",
897
+ },
898
+ {
899
+ inputs: [],
900
+ name: "checkEntitlement",
901
+ outputs: [
902
+ {
903
+ internalType: "uint256",
904
+ name: "",
905
+ type: "uint256",
906
+ },
907
+ ],
908
+ stateMutability: "view",
909
+ type: "function",
910
+ },
911
+ {
912
+ inputs: [],
913
+ name: "claim",
914
+ outputs: [],
915
+ stateMutability: "nonpayable",
916
+ type: "function",
917
+ },
918
+ {
919
+ inputs: [
920
+ {
921
+ internalType: "address",
922
+ name: "claimer",
923
+ type: "address",
924
+ },
925
+ {
926
+ internalType: "bool",
927
+ name: "sendToWhitelistedRoot",
928
+ type: "bool",
929
+ },
930
+ ],
931
+ name: "claimFor",
932
+ outputs: [],
933
+ stateMutability: "nonpayable",
934
+ type: "function",
935
+ },
936
+ {
937
+ inputs: [],
938
+ name: "currentDayInCycle",
939
+ outputs: [
940
+ {
941
+ internalType: "uint256",
942
+ name: "",
943
+ type: "uint256",
944
+ },
945
+ ],
946
+ stateMutability: "view",
947
+ type: "function",
948
+ },
949
+ {
950
+ inputs: [],
951
+ name: "distributionFormula",
952
+ outputs: [
953
+ {
954
+ internalType: "uint256",
955
+ name: "",
956
+ type: "uint256",
957
+ },
958
+ ],
959
+ stateMutability: "nonpayable",
960
+ type: "function",
961
+ },
962
+ {
963
+ inputs: [],
964
+ name: "estimateNextDailyUBI",
965
+ outputs: [
966
+ {
967
+ internalType: "uint256",
968
+ name: "nextDailyUbi",
969
+ type: "uint256",
970
+ },
971
+ ],
972
+ stateMutability: "view",
973
+ type: "function",
974
+ },
975
+ {
976
+ inputs: [],
977
+ name: "extendedSettings",
978
+ outputs: [
979
+ {
980
+ internalType: "uint32",
981
+ name: "maxPeriodClaimers",
982
+ type: "uint32",
983
+ },
984
+ {
985
+ internalType: "uint256",
986
+ name: "minClaimAmount",
987
+ type: "uint256",
988
+ },
989
+ {
990
+ internalType: "uint32",
991
+ name: "managerFeeBps",
992
+ type: "uint32",
993
+ },
994
+ ],
995
+ stateMutability: "view",
996
+ type: "function",
997
+ },
998
+ {
999
+ inputs: [],
1000
+ name: "getCurrentDay",
1001
+ outputs: [
1002
+ {
1003
+ internalType: "uint256",
1004
+ name: "",
1005
+ type: "uint256",
1006
+ },
1007
+ ],
1008
+ stateMutability: "view",
1009
+ type: "function",
1010
+ },
1011
+ {
1012
+ inputs: [],
1013
+ name: "getManagerFee",
1014
+ outputs: [
1015
+ {
1016
+ internalType: "address",
1017
+ name: "feeRecipient",
1018
+ type: "address",
1019
+ },
1020
+ {
1021
+ internalType: "uint32",
1022
+ name: "feeBps",
1023
+ type: "uint32",
1024
+ },
1025
+ ],
1026
+ stateMutability: "view",
1027
+ type: "function",
1028
+ },
1029
+ {
1030
+ inputs: [
1031
+ {
1032
+ internalType: "address",
1033
+ name: "_user",
1034
+ type: "address",
1035
+ },
1036
+ ],
1037
+ name: "getRealtimeContribution",
1038
+ outputs: [
1039
+ {
1040
+ internalType: "uint256",
1041
+ name: "",
1042
+ type: "uint256",
1043
+ },
1044
+ ],
1045
+ stateMutability: "view",
1046
+ type: "function",
1047
+ },
1048
+ {
1049
+ inputs: [],
1050
+ name: "getRealtimeStats",
1051
+ outputs: [
1052
+ {
1053
+ internalType: "uint256",
1054
+ name: "netIncome",
1055
+ type: "uint256",
1056
+ },
1057
+ {
1058
+ internalType: "uint256",
1059
+ name: "totalFees",
1060
+ type: "uint256",
1061
+ },
1062
+ {
1063
+ internalType: "uint256",
1064
+ name: "protocolFees",
1065
+ type: "uint256",
1066
+ },
1067
+ {
1068
+ internalType: "uint256",
1069
+ name: "managerFees",
1070
+ type: "uint256",
1071
+ },
1072
+ {
1073
+ internalType: "int96",
1074
+ name: "incomeFlowRate",
1075
+ type: "int96",
1076
+ },
1077
+ {
1078
+ internalType: "int96",
1079
+ name: "feeRate",
1080
+ type: "int96",
1081
+ },
1082
+ {
1083
+ internalType: "int96",
1084
+ name: "managerFeeRate",
1085
+ type: "int96",
1086
+ },
1087
+ ],
1088
+ stateMutability: "view",
1089
+ type: "function",
1090
+ },
1091
+ {
1092
+ inputs: [],
1093
+ name: "getRegistry",
1094
+ outputs: [
1095
+ {
1096
+ internalType: "contract IRegistry",
1097
+ name: "",
1098
+ type: "address",
1099
+ },
1100
+ ],
1101
+ stateMutability: "view",
1102
+ type: "function",
1103
+ },
1104
+ {
1105
+ inputs: [
1106
+ {
1107
+ internalType: "bytes32",
1108
+ name: "role",
1109
+ type: "bytes32",
1110
+ },
1111
+ ],
1112
+ name: "getRoleAdmin",
1113
+ outputs: [
1114
+ {
1115
+ internalType: "bytes32",
1116
+ name: "",
1117
+ type: "bytes32",
1118
+ },
1119
+ ],
1120
+ stateMutability: "view",
1121
+ type: "function",
1122
+ },
1123
+ {
1124
+ inputs: [
1125
+ {
1126
+ internalType: "bytes32",
1127
+ name: "role",
1128
+ type: "bytes32",
1129
+ },
1130
+ {
1131
+ internalType: "address",
1132
+ name: "account",
1133
+ type: "address",
1134
+ },
1135
+ ],
1136
+ name: "grantRole",
1137
+ outputs: [],
1138
+ stateMutability: "nonpayable",
1139
+ type: "function",
1140
+ },
1141
+ {
1142
+ inputs: [
1143
+ {
1144
+ components: [
1145
+ {
1146
+ internalType: "address",
1147
+ name: "swapFrom",
1148
+ type: "address",
1149
+ },
1150
+ {
1151
+ internalType: "uint256",
1152
+ name: "amount",
1153
+ type: "uint256",
1154
+ },
1155
+ {
1156
+ internalType: "uint256",
1157
+ name: "minReturn",
1158
+ type: "uint256",
1159
+ },
1160
+ {
1161
+ internalType: "uint256",
1162
+ name: "deadline",
1163
+ type: "uint256",
1164
+ },
1165
+ {
1166
+ internalType: "bytes",
1167
+ name: "path",
1168
+ type: "bytes",
1169
+ },
1170
+ ],
1171
+ internalType: "struct HelperLibrary.SwapData",
1172
+ name: "_customData",
1173
+ type: "tuple",
1174
+ },
1175
+ {
1176
+ internalType: "address",
1177
+ name: "_sender",
1178
+ type: "address",
1179
+ },
1180
+ {
1181
+ internalType: "bytes",
1182
+ name: "_ctx",
1183
+ type: "bytes",
1184
+ },
1185
+ ],
1186
+ name: "handleSwap",
1187
+ outputs: [
1188
+ {
1189
+ internalType: "bytes",
1190
+ name: "",
1191
+ type: "bytes",
1192
+ },
1193
+ ],
1194
+ stateMutability: "nonpayable",
1195
+ type: "function",
1196
+ },
1197
+ {
1198
+ inputs: [
1199
+ {
1200
+ internalType: "address",
1201
+ name: "_member",
1202
+ type: "address",
1203
+ },
1204
+ ],
1205
+ name: "hasClaimed",
1206
+ outputs: [
1207
+ {
1208
+ internalType: "bool",
1209
+ name: "",
1210
+ type: "bool",
1211
+ },
1212
+ ],
1213
+ stateMutability: "view",
1214
+ type: "function",
1215
+ },
1216
+ {
1217
+ inputs: [
1218
+ {
1219
+ internalType: "bytes32",
1220
+ name: "role",
1221
+ type: "bytes32",
1222
+ },
1223
+ {
1224
+ internalType: "address",
1225
+ name: "account",
1226
+ type: "address",
1227
+ },
1228
+ ],
1229
+ name: "hasRole",
1230
+ outputs: [
1231
+ {
1232
+ internalType: "bool",
1233
+ name: "",
1234
+ type: "bool",
1235
+ },
1236
+ ],
1237
+ stateMutability: "view",
1238
+ type: "function",
1239
+ },
1240
+ {
1241
+ inputs: [],
1242
+ name: "host",
1243
+ outputs: [
1244
+ {
1245
+ internalType: "contract ISuperfluid",
1246
+ name: "",
1247
+ type: "address",
1248
+ },
1249
+ ],
1250
+ stateMutability: "view",
1251
+ type: "function",
1252
+ },
1253
+ {
1254
+ inputs: [
1255
+ {
1256
+ components: [
1257
+ {
1258
+ internalType: "address",
1259
+ name: "manager",
1260
+ type: "address",
1261
+ },
1262
+ {
1263
+ internalType: "contract IMembersValidator",
1264
+ name: "membersValidator",
1265
+ type: "address",
1266
+ },
1267
+ {
1268
+ internalType: "contract IIdentityV2",
1269
+ name: "uniquenessValidator",
1270
+ type: "address",
1271
+ },
1272
+ {
1273
+ internalType: "contract IERC20Upgradeable",
1274
+ name: "rewardToken",
1275
+ type: "address",
1276
+ },
1277
+ ],
1278
+ internalType: "struct PoolSettings",
1279
+ name: "_settings",
1280
+ type: "tuple",
1281
+ },
1282
+ {
1283
+ components: [
1284
+ {
1285
+ internalType: "uint32",
1286
+ name: "cycleLengthDays",
1287
+ type: "uint32",
1288
+ },
1289
+ {
1290
+ internalType: "uint32",
1291
+ name: "claimPeriodDays",
1292
+ type: "uint32",
1293
+ },
1294
+ {
1295
+ internalType: "uint32",
1296
+ name: "minActiveUsers",
1297
+ type: "uint32",
1298
+ },
1299
+ {
1300
+ internalType: "bool",
1301
+ name: "claimForEnabled",
1302
+ type: "bool",
1303
+ },
1304
+ {
1305
+ internalType: "uint256",
1306
+ name: "maxClaimAmount",
1307
+ type: "uint256",
1308
+ },
1309
+ {
1310
+ internalType: "uint32",
1311
+ name: "maxMembers",
1312
+ type: "uint32",
1313
+ },
1314
+ {
1315
+ internalType: "bool",
1316
+ name: "onlyMembers",
1317
+ type: "bool",
1318
+ },
1319
+ ],
1320
+ internalType: "struct UBIPool.UBISettings",
1321
+ name: "_ubiSettings",
1322
+ type: "tuple",
1323
+ },
1324
+ {
1325
+ components: [
1326
+ {
1327
+ internalType: "uint32",
1328
+ name: "maxPeriodClaimers",
1329
+ type: "uint32",
1330
+ },
1331
+ {
1332
+ internalType: "uint256",
1333
+ name: "minClaimAmount",
1334
+ type: "uint256",
1335
+ },
1336
+ {
1337
+ internalType: "uint32",
1338
+ name: "managerFeeBps",
1339
+ type: "uint32",
1340
+ },
1341
+ ],
1342
+ internalType: "struct UBIPool.ExtendedSettings",
1343
+ name: "_extendedSettings",
1344
+ type: "tuple",
1345
+ },
1346
+ {
1347
+ internalType: "contract UBIPoolFactory",
1348
+ name: "_registry",
1349
+ type: "address",
1350
+ },
1351
+ ],
1352
+ name: "initialize",
1353
+ outputs: [],
1354
+ stateMutability: "nonpayable",
1355
+ type: "function",
1356
+ },
1357
+ {
1358
+ inputs: [
1359
+ {
1360
+ internalType: "contract ISuperToken",
1361
+ name: "_superToken",
1362
+ type: "address",
1363
+ },
1364
+ ],
1365
+ name: "isAcceptedSuperToken",
1366
+ outputs: [
1367
+ {
1368
+ internalType: "bool",
1369
+ name: "",
1370
+ type: "bool",
1371
+ },
1372
+ ],
1373
+ stateMutability: "view",
1374
+ type: "function",
1375
+ },
1376
+ {
1377
+ inputs: [],
1378
+ name: "nextClaimTime",
1379
+ outputs: [
1380
+ {
1381
+ internalType: "uint256",
1382
+ name: "",
1383
+ type: "uint256",
1384
+ },
1385
+ ],
1386
+ stateMutability: "view",
1387
+ type: "function",
1388
+ },
1389
+ {
1390
+ inputs: [
1391
+ {
1392
+ internalType: "address",
1393
+ name: "_sender",
1394
+ type: "address",
1395
+ },
1396
+ {
1397
+ internalType: "uint256",
1398
+ name: "_amount",
1399
+ type: "uint256",
1400
+ },
1401
+ {
1402
+ internalType: "bytes",
1403
+ name: "",
1404
+ type: "bytes",
1405
+ },
1406
+ ],
1407
+ name: "onTokenTransfer",
1408
+ outputs: [
1409
+ {
1410
+ internalType: "bool",
1411
+ name: "",
1412
+ type: "bool",
1413
+ },
1414
+ ],
1415
+ stateMutability: "nonpayable",
1416
+ type: "function",
1417
+ },
1418
+ {
1419
+ inputs: [],
1420
+ name: "proxiableUUID",
1421
+ outputs: [
1422
+ {
1423
+ internalType: "bytes32",
1424
+ name: "",
1425
+ type: "bytes32",
1426
+ },
1427
+ ],
1428
+ stateMutability: "view",
1429
+ type: "function",
1430
+ },
1431
+ {
1432
+ inputs: [
1433
+ {
1434
+ internalType: "address",
1435
+ name: "_recipient",
1436
+ type: "address",
1437
+ },
1438
+ {
1439
+ internalType: "uint256",
1440
+ name: "amount",
1441
+ type: "uint256",
1442
+ },
1443
+ ],
1444
+ name: "recoverFunds",
1445
+ outputs: [],
1446
+ stateMutability: "nonpayable",
1447
+ type: "function",
1448
+ },
1449
+ {
1450
+ inputs: [],
1451
+ name: "registry",
1452
+ outputs: [
1453
+ {
1454
+ internalType: "contract UBIPoolFactory",
1455
+ name: "",
1456
+ type: "address",
1457
+ },
1458
+ ],
1459
+ stateMutability: "view",
1460
+ type: "function",
1461
+ },
1462
+ {
1463
+ inputs: [
1464
+ {
1465
+ internalType: "address",
1466
+ name: "member",
1467
+ type: "address",
1468
+ },
1469
+ ],
1470
+ name: "removeMember",
1471
+ outputs: [],
1472
+ stateMutability: "nonpayable",
1473
+ type: "function",
1474
+ },
1475
+ {
1476
+ inputs: [
1477
+ {
1478
+ internalType: "bytes32",
1479
+ name: "role",
1480
+ type: "bytes32",
1481
+ },
1482
+ {
1483
+ internalType: "address",
1484
+ name: "account",
1485
+ type: "address",
1486
+ },
1487
+ ],
1488
+ name: "renounceRole",
1489
+ outputs: [],
1490
+ stateMutability: "nonpayable",
1491
+ type: "function",
1492
+ },
1493
+ {
1494
+ inputs: [
1495
+ {
1496
+ internalType: "bytes32",
1497
+ name: "role",
1498
+ type: "bytes32",
1499
+ },
1500
+ {
1501
+ internalType: "address",
1502
+ name: "account",
1503
+ type: "address",
1504
+ },
1505
+ ],
1506
+ name: "revokeRole",
1507
+ outputs: [],
1508
+ stateMutability: "nonpayable",
1509
+ type: "function",
1510
+ },
1511
+ {
1512
+ inputs: [
1513
+ {
1514
+ components: [
1515
+ {
1516
+ internalType: "address",
1517
+ name: "manager",
1518
+ type: "address",
1519
+ },
1520
+ {
1521
+ internalType: "contract IMembersValidator",
1522
+ name: "membersValidator",
1523
+ type: "address",
1524
+ },
1525
+ {
1526
+ internalType: "contract IIdentityV2",
1527
+ name: "uniquenessValidator",
1528
+ type: "address",
1529
+ },
1530
+ {
1531
+ internalType: "contract IERC20Upgradeable",
1532
+ name: "rewardToken",
1533
+ type: "address",
1534
+ },
1535
+ ],
1536
+ internalType: "struct PoolSettings",
1537
+ name: "_settings",
1538
+ type: "tuple",
1539
+ },
1540
+ ],
1541
+ name: "setPoolSettings",
1542
+ outputs: [],
1543
+ stateMutability: "nonpayable",
1544
+ type: "function",
1545
+ },
1546
+ {
1547
+ inputs: [
1548
+ {
1549
+ components: [
1550
+ {
1551
+ internalType: "uint32",
1552
+ name: "cycleLengthDays",
1553
+ type: "uint32",
1554
+ },
1555
+ {
1556
+ internalType: "uint32",
1557
+ name: "claimPeriodDays",
1558
+ type: "uint32",
1559
+ },
1560
+ {
1561
+ internalType: "uint32",
1562
+ name: "minActiveUsers",
1563
+ type: "uint32",
1564
+ },
1565
+ {
1566
+ internalType: "bool",
1567
+ name: "claimForEnabled",
1568
+ type: "bool",
1569
+ },
1570
+ {
1571
+ internalType: "uint256",
1572
+ name: "maxClaimAmount",
1573
+ type: "uint256",
1574
+ },
1575
+ {
1576
+ internalType: "uint32",
1577
+ name: "maxMembers",
1578
+ type: "uint32",
1579
+ },
1580
+ {
1581
+ internalType: "bool",
1582
+ name: "onlyMembers",
1583
+ type: "bool",
1584
+ },
1585
+ ],
1586
+ internalType: "struct UBIPool.UBISettings",
1587
+ name: "_ubiSettings",
1588
+ type: "tuple",
1589
+ },
1590
+ {
1591
+ components: [
1592
+ {
1593
+ internalType: "uint32",
1594
+ name: "maxPeriodClaimers",
1595
+ type: "uint32",
1596
+ },
1597
+ {
1598
+ internalType: "uint256",
1599
+ name: "minClaimAmount",
1600
+ type: "uint256",
1601
+ },
1602
+ {
1603
+ internalType: "uint32",
1604
+ name: "managerFeeBps",
1605
+ type: "uint32",
1606
+ },
1607
+ ],
1608
+ internalType: "struct UBIPool.ExtendedSettings",
1609
+ name: "_extendedSettings",
1610
+ type: "tuple",
1611
+ },
1612
+ ],
1613
+ name: "setUBISettings",
1614
+ outputs: [],
1615
+ stateMutability: "nonpayable",
1616
+ type: "function",
1617
+ },
1618
+ {
1619
+ inputs: [],
1620
+ name: "settings",
1621
+ outputs: [
1622
+ {
1623
+ internalType: "address",
1624
+ name: "manager",
1625
+ type: "address",
1626
+ },
1627
+ {
1628
+ internalType: "contract IMembersValidator",
1629
+ name: "membersValidator",
1630
+ type: "address",
1631
+ },
1632
+ {
1633
+ internalType: "contract IIdentityV2",
1634
+ name: "uniquenessValidator",
1635
+ type: "address",
1636
+ },
1637
+ {
1638
+ internalType: "contract IERC20Upgradeable",
1639
+ name: "rewardToken",
1640
+ type: "address",
1641
+ },
1642
+ ],
1643
+ stateMutability: "view",
1644
+ type: "function",
1645
+ },
1646
+ {
1647
+ inputs: [],
1648
+ name: "stats",
1649
+ outputs: [
1650
+ {
1651
+ internalType: "uint256",
1652
+ name: "netIncome",
1653
+ type: "uint256",
1654
+ },
1655
+ {
1656
+ internalType: "uint256",
1657
+ name: "totalFees",
1658
+ type: "uint256",
1659
+ },
1660
+ {
1661
+ internalType: "uint256",
1662
+ name: "lastUpdate",
1663
+ type: "uint256",
1664
+ },
1665
+ {
1666
+ internalType: "address",
1667
+ name: "lastFeeRecipient",
1668
+ type: "address",
1669
+ },
1670
+ {
1671
+ internalType: "int96",
1672
+ name: "lastIncomeRate",
1673
+ type: "int96",
1674
+ },
1675
+ {
1676
+ internalType: "address",
1677
+ name: "lastManagerFeeRecipient",
1678
+ type: "address",
1679
+ },
1680
+ {
1681
+ internalType: "uint256",
1682
+ name: "protocolFees",
1683
+ type: "uint256",
1684
+ },
1685
+ {
1686
+ internalType: "uint256",
1687
+ name: "managerFees",
1688
+ type: "uint256",
1689
+ },
1690
+ ],
1691
+ stateMutability: "view",
1692
+ type: "function",
1693
+ },
1694
+ {
1695
+ inputs: [],
1696
+ name: "status",
1697
+ outputs: [
1698
+ {
1699
+ internalType: "uint256",
1700
+ name: "currentDay",
1701
+ type: "uint256",
1702
+ },
1703
+ {
1704
+ internalType: "uint256",
1705
+ name: "dailyUbi",
1706
+ type: "uint256",
1707
+ },
1708
+ {
1709
+ internalType: "uint256",
1710
+ name: "dailyCyclePool",
1711
+ type: "uint256",
1712
+ },
1713
+ {
1714
+ internalType: "uint256",
1715
+ name: "startOfCycle",
1716
+ type: "uint256",
1717
+ },
1718
+ {
1719
+ internalType: "uint256",
1720
+ name: "currentCycleLength",
1721
+ type: "uint256",
1722
+ },
1723
+ {
1724
+ internalType: "uint256",
1725
+ name: "periodClaimers",
1726
+ type: "uint256",
1727
+ },
1728
+ {
1729
+ internalType: "uint256",
1730
+ name: "periodDistributed",
1731
+ type: "uint256",
1732
+ },
1733
+ {
1734
+ internalType: "uint32",
1735
+ name: "membersCount",
1736
+ type: "uint32",
1737
+ },
1738
+ ],
1739
+ stateMutability: "view",
1740
+ type: "function",
1741
+ },
1742
+ {
1743
+ inputs: [],
1744
+ name: "superToken",
1745
+ outputs: [
1746
+ {
1747
+ internalType: "contract ISuperToken",
1748
+ name: "",
1749
+ type: "address",
1750
+ },
1751
+ ],
1752
+ stateMutability: "view",
1753
+ type: "function",
1754
+ },
1755
+ {
1756
+ inputs: [
1757
+ {
1758
+ internalType: "address",
1759
+ name: "_sender",
1760
+ type: "address",
1761
+ },
1762
+ {
1763
+ internalType: "uint256",
1764
+ name: "_amount",
1765
+ type: "uint256",
1766
+ },
1767
+ {
1768
+ internalType: "bytes",
1769
+ name: "_ctx",
1770
+ type: "bytes",
1771
+ },
1772
+ ],
1773
+ name: "support",
1774
+ outputs: [
1775
+ {
1776
+ internalType: "bytes",
1777
+ name: "",
1778
+ type: "bytes",
1779
+ },
1780
+ ],
1781
+ stateMutability: "nonpayable",
1782
+ type: "function",
1783
+ },
1784
+ {
1785
+ inputs: [
1786
+ {
1787
+ internalType: "address",
1788
+ name: "_sender",
1789
+ type: "address",
1790
+ },
1791
+ {
1792
+ components: [
1793
+ {
1794
+ internalType: "address",
1795
+ name: "swapFrom",
1796
+ type: "address",
1797
+ },
1798
+ {
1799
+ internalType: "uint256",
1800
+ name: "amount",
1801
+ type: "uint256",
1802
+ },
1803
+ {
1804
+ internalType: "uint256",
1805
+ name: "minReturn",
1806
+ type: "uint256",
1807
+ },
1808
+ {
1809
+ internalType: "uint256",
1810
+ name: "deadline",
1811
+ type: "uint256",
1812
+ },
1813
+ {
1814
+ internalType: "bytes",
1815
+ name: "path",
1816
+ type: "bytes",
1817
+ },
1818
+ ],
1819
+ internalType: "struct HelperLibrary.SwapData",
1820
+ name: "_customData",
1821
+ type: "tuple",
1822
+ },
1823
+ {
1824
+ internalType: "bytes",
1825
+ name: "_ctx",
1826
+ type: "bytes",
1827
+ },
1828
+ ],
1829
+ name: "supportWithSwap",
1830
+ outputs: [
1831
+ {
1832
+ internalType: "bytes",
1833
+ name: "",
1834
+ type: "bytes",
1835
+ },
1836
+ ],
1837
+ stateMutability: "nonpayable",
1838
+ type: "function",
1839
+ },
1840
+ {
1841
+ inputs: [
1842
+ {
1843
+ internalType: "address",
1844
+ name: "",
1845
+ type: "address",
1846
+ },
1847
+ ],
1848
+ name: "supporters",
1849
+ outputs: [
1850
+ {
1851
+ internalType: "uint256",
1852
+ name: "contribution",
1853
+ type: "uint256",
1854
+ },
1855
+ {
1856
+ internalType: "int96",
1857
+ name: "flowRate",
1858
+ type: "int96",
1859
+ },
1860
+ {
1861
+ internalType: "uint128",
1862
+ name: "lastUpdated",
1863
+ type: "uint128",
1864
+ },
1865
+ ],
1866
+ stateMutability: "view",
1867
+ type: "function",
1868
+ },
1869
+ {
1870
+ inputs: [
1871
+ {
1872
+ internalType: "bytes4",
1873
+ name: "interfaceId",
1874
+ type: "bytes4",
1875
+ },
1876
+ ],
1877
+ name: "supportsInterface",
1878
+ outputs: [
1879
+ {
1880
+ internalType: "bool",
1881
+ name: "",
1882
+ type: "bool",
1883
+ },
1884
+ ],
1885
+ stateMutability: "view",
1886
+ type: "function",
1887
+ },
1888
+ {
1889
+ inputs: [],
1890
+ name: "swapRouter",
1891
+ outputs: [
1892
+ {
1893
+ internalType: "contract IV3SwapRouter",
1894
+ name: "",
1895
+ type: "address",
1896
+ },
1897
+ ],
1898
+ stateMutability: "view",
1899
+ type: "function",
1900
+ },
1901
+ {
1902
+ inputs: [],
1903
+ name: "ubiSettings",
1904
+ outputs: [
1905
+ {
1906
+ internalType: "uint32",
1907
+ name: "cycleLengthDays",
1908
+ type: "uint32",
1909
+ },
1910
+ {
1911
+ internalType: "uint32",
1912
+ name: "claimPeriodDays",
1913
+ type: "uint32",
1914
+ },
1915
+ {
1916
+ internalType: "uint32",
1917
+ name: "minActiveUsers",
1918
+ type: "uint32",
1919
+ },
1920
+ {
1921
+ internalType: "bool",
1922
+ name: "claimForEnabled",
1923
+ type: "bool",
1924
+ },
1925
+ {
1926
+ internalType: "uint256",
1927
+ name: "maxClaimAmount",
1928
+ type: "uint256",
1929
+ },
1930
+ {
1931
+ internalType: "uint32",
1932
+ name: "maxMembers",
1933
+ type: "uint32",
1934
+ },
1935
+ {
1936
+ internalType: "bool",
1937
+ name: "onlyMembers",
1938
+ type: "bool",
1939
+ },
1940
+ ],
1941
+ stateMutability: "view",
1942
+ type: "function",
1943
+ },
1944
+ {
1945
+ inputs: [
1946
+ {
1947
+ internalType: "address",
1948
+ name: "newImplementation",
1949
+ type: "address",
1950
+ },
1951
+ ],
1952
+ name: "upgradeTo",
1953
+ outputs: [],
1954
+ stateMutability: "nonpayable",
1955
+ type: "function",
1956
+ },
1957
+ {
1958
+ inputs: [
1959
+ {
1960
+ internalType: "address",
1961
+ name: "newImplementation",
1962
+ type: "address",
1963
+ },
1964
+ {
1965
+ internalType: "bytes",
1966
+ name: "data",
1967
+ type: "bytes",
1968
+ },
1969
+ ],
1970
+ name: "upgradeToAndCall",
1971
+ outputs: [],
1972
+ stateMutability: "payable",
1973
+ type: "function",
1974
+ },
1975
+ {
1976
+ inputs: [
1977
+ {
1978
+ internalType: "bytes",
1979
+ name: "data",
1980
+ type: "bytes",
1981
+ },
1982
+ ],
1983
+ name: "upgradeToLatest",
1984
+ outputs: [],
1985
+ stateMutability: "payable",
1986
+ type: "function",
1987
+ },
1988
+ ] as const;
1989
+
1990
+ const _bytecode =
1991
+ "0x60e06040523060c0523480156200001557600080fd5b506040516200588038038062005880833981016040819052620000389162000098565b6001600160a01b038216608081905282908290620000695760405163538ba4f960e01b815260040160405180910390fd5b6001600160a01b031660a05250620000d7915050565b6001600160a01b03811681146200009557600080fd5b50565b60008060408385031215620000ac57600080fd5b8251620000b9816200007f565b6020840151909250620000cc816200007f565b809150509250929050565b60805160a05160c0516157026200017e6000396000818161113101528181611171015281816114c90152818161150901526115810152600081816109a501528181610ead015261249d015260008181610bf301528181610e2f01528181610ff70152818161162f01528181611a8301528181611fac015281816120f4015281816123b301528181612b0601528181612e4201528181612ed90152612f4301526157026000f3fe6080604052600436106102865760003560e01c806301ffc9a71461028b5780630b1ca49a146102c05780630c710776146102e25780630ce82d671461030e5780630e0cc1b91461033157806319805538146103515780631a2a84b31461038a5780631a787f2e146103aa5780631db128c7146103ca578063200d2ed2146103f7578063230dbd2914610479578063248a9ca314610499578063298052df146104b95780632b4116f7146104ce5780632f2ff15d146104fb57806330d9c9151461051b57806336568abe1461053b5780633659cfe61461055b5780633e6968b61461057b57806346b6a742146105905780634e71d92d146105b05780634f1ef286146105c557806352d1902d146105d857806353c11f99146105ed578063586097541461060d578063598f8fbf1461062d5780635a4c51521461064d5780635ab1bd53146106e45780635da93292146106f95780635f9e7d771461070e5780636180c7931461072e578063647c75e21461074e57806372ca8a3e146107bf57806373b2e80e146107df578063791ea89b146107ff5780637b1039991461081f57806388480f0c14610840578063884d1f401461089257806391d14854146108b257806398d6621b146108d25780639f8fddd2146108e7578063a10f469e14610907578063a217fddf14610929578063a4c0ed361461093e578063ae8272001461095e578063bcb4546f14610971578063c31c9c0714610993578063c7713870146109c7578063d3112b2e146109dc578063d547741f14610a11578063d80528ae14610a31578063d86ed3e514610ac2578063dc61d5c214610ae2578063def482a414610b35578063e06174e414610b55578063ec87621c14610bbf578063f437bc5914610be1575b600080fd5b34801561029757600080fd5b506102ab6102a6366004614649565b610c15565b60405190151581526020015b60405180910390f35b3480156102cc57600080fd5b506102e06102db366004614688565b610c4c565b005b3480156102ee57600080fd5b506102fb6459df64940081565b604051600b9190910b81526020016102b7565b34801561031a57600080fd5b50610323610c80565b6040519081526020016102b7565b34801561033d57600080fd5b506102e061034c3660046146c3565b610c9e565b34801561035d57600080fd5b50610366610cd3565b604080516001600160a01b03909316835263ffffffff9091166020830152016102b7565b34801561039657600080fd5b506103236103a5366004614688565b610cf2565b3480156103b657600080fd5b506103236103c5366004614688565b610d92565b3480156103d657600080fd5b506103ea6103e5366004614864565b610e0d565b6040516102b7919061492b565b34801561040357600080fd5b5061013a5461013b5461013c5461013d5461013e5461013f546101405461014254610438979695949392919063ffffffff1688565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c083015263ffffffff1660e0820152610100016102b7565b34801561048557600080fd5b506103ea610494366004614986565b610f2e565b3480156104a557600080fd5b506103236104b4366004614a50565b610f75565b3480156104c557600080fd5b50610323610f8a565b3480156104da57600080fd5b506097546104ee906001600160a01b031681565b6040516102b79190614a69565b34801561050757600080fd5b506102e0610516366004614a7d565b610fc9565b34801561052757600080fd5b506103ea610536366004614aa2565b610fea565b34801561054757600080fd5b506102e0610556366004614a7d565b6110ad565b34801561056757600080fd5b506102e0610576366004614688565b611127565b34801561058757600080fd5b506103236111ef565b34801561059c57600080fd5b506102e06105ab366004614d04565b61120b565b3480156105bc57600080fd5b506102e06114b2565b6102e06105d3366004614d60565b6114bf565b3480156105e457600080fd5b50610323611574565b3480156105f957600080fd5b506103ea610608366004614986565b611622565b34801561061957600080fd5b506102e0610628366004614daf565b6116ff565b34801561063957600080fd5b506102e0610648366004614ddb565b611779565b34801561065957600080fd5b5061013754610138546101395461069f9263ffffffff80821693600160201b808404831694600160401b850484169460ff600160601b9091048116948216929091041687565b6040805163ffffffff98891681529688166020880152948716948601949094529115156060850152608084015290921660a082015290151560c082015260e0016102b7565b3480156106f057600080fd5b506104ee6118ae565b34801561070557600080fd5b506103236118be565b34801561071a57600080fd5b506103ea610729366004614aa2565b611a76565b34801561073a57600080fd5b506102ab610749366004614d60565b611b5b565b34801561075a57600080fd5b50610798610769366004614688565b60986020526000908152604090208054600190910154600b81900b90600160601b90046001600160801b031683565b60408051938452600b9290920b60208401526001600160801b0316908201526060016102b7565b3480156107cb57600080fd5b506102ab6107da366004614688565b611d58565b3480156107eb57600080fd5b506102ab6107fa366004614688565b611d6c565b34801561080b57600080fd5b506102e061081a366004614df7565b611e0f565b34801561082b57600080fd5b50610143546104ee906001600160a01b031681565b34801561084c57600080fd5b5061014454610145546101465461086b9263ffffffff90811692911683565b6040805163ffffffff948516815260208101939093529216918101919091526060016102b7565b34801561089e57600080fd5b506103ea6108ad366004614aa2565b611f9f565b3480156108be57600080fd5b506102ab6108cd366004614a7d565b61209c565b3480156108de57600080fd5b506103236120c7565b3480156108f357600080fd5b506103ea610902366004614e2d565b6120d2565b34801561091357600080fd5b506103236000805160206156ad83398151915281565b34801561093557600080fd5b50610323600081565b34801561094a57600080fd5b506102ab610959366004614e7b565b61218c565b6102e061096c366004614ed6565b612205565b34801561097d57600080fd5b5061032360008051602061560683398151915281565b34801561099f57600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000081565b3480156109d357600080fd5b5061032361228b565b3480156109e857600080fd5b50609954609a54610a03916001600160a01b03908116911682565b6040516102b7929190614f0a565b348015610a1d57600080fd5b506102e0610a2c366004614a7d565b61229c565b348015610a3d57600080fd5b50609b54609c54609d54609e54609f5460a05460a154610a78969594936001600160a01b0380821694600160a01b909204600b0b9391169188565b604080519889526020890197909752958701949094526001600160a01b039283166060870152600b9190910b60808601521660a084015260c083015260e0820152610100016102b7565b348015610ace57600080fd5b506103ea610add366004614986565b6122b8565b348015610aee57600080fd5b50610af76122e6565b604080519788526020880196909652948601939093526060850191909152600b90810b608085015290810b60a08401520b60c082015260e0016102b7565b348015610b4157600080fd5b506103ea610b50366004614f24565b612391565b348015610b6157600080fd5b5061013354610134546101355461013654610b8c936001600160a01b03908116938116928116911684565b604080516001600160a01b03958616815293851660208501529184169183019190915290911660608201526080016102b7565b348015610bcb57600080fd5b5061032360008051602061566683398151915281565b348015610bed57600080fd5b506104ee7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b03198216637965db0b60e01b1480610c4657506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080516020615666833981519152610c64816125e4565b610c7c6000805160206156ad833981519152836125ee565b5050565b61013d54600090610c8f6111ef565b610c999190614f98565b905090565b61013754600160601b900460ff16610cc9576040516369973f2560e11b815260040160405180910390fd5b610c7c82826126ce565b61013354610146546001600160a01b039091169163ffffffff90911690565b6001600160a01b0381166000908152609860209081526040808320815160608101835281548152600190910154600b81900b938201849052600160601b90046001600160801b031691810191909152908203610d4f575192915050565b6040810151610d67906001600160801b031642614f98565b81602001516001600160601b0316610d7f9190614fab565b8151610d8b9190614fc2565b9392505050565b6000610d9c6111ef565b61013a54148015610daf575061013b5415155b15610e05576101445463ffffffff1615801590610dda57506101445461013f5463ffffffff90911611155b15610de757506000919050565b610df082611d6c565b610dfd5761013b54610c46565b600092915050565b610c4661228b565b606082336001600160a01b03821614801590610e525750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b15610e7b573360405163087231bf60e31b8152600401610e729190614a69565b60405180910390fd5b6097546040516358c0dacb60e01b815273__$0d78a42341742155da77b97d7f993534c7$__916358c0dacb91610ee3917f0000000000000000000000000000000000000000000000000000000000000000918a916001600160a01b0316908a9060040161501a565b602060405180830381865af4158015610f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f249190615055565b5091949350505050565b60606000610f3e8789018961506e565b509050600080610f50878901896150ab565b91509150610f628d8484848a8a612973565b93505050505b9998505050505050505050565b60009081526065602052604090206001015490565b61013754600090600160201b900463ffffffff16610fa66111ef565b610fb09190614fc2565b610fbd9062015180614fab565b610c999061a8c0614fc2565b610fd282610f75565b610fdb816125e4565b610fe583836129ba565b505050565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461103557604051632f2d36a760e01b815260040160405180910390fd5b61103e87612ae0565b6110615750604080518082019091526002815261060f60f31b60208201526110a2565b61106a88611d58565b61108757604051631ea25bab60e31b815260040160405180910390fd5b50604080518082019091526002815261060f60f31b60208201525b979650505050505050565b6001600160a01b038116331461111d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e72565b610c7c82826125ee565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361116f5760405162461bcd60e51b8152600401610e72906150c9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166111a1612b94565b6001600160a01b0316146111c75760405162461bcd60e51b8152600401610e7290615103565b6111d081612bb0565b604080516000808252602082019092526111ec91839190612bbb565b50565b60006201518061120161a8c042614f98565b610c99919061513d565b600054610100900460ff161580801561122b5750600054600160ff909116105b8061124c575061123a30612d26565b15801561124c575060005460ff166001145b6112af5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e72565b6000805460ff1916600117905580156112d2576000805461ff0019166101001790555b61014380546001600160a01b03199081166001600160a01b038581169190911790925586516101338054831691841691909117905560208088015161013480548416918516919091179055604080890151610135805485169186169190911790556060808a0151610136805490951695169490941790925586516101378054898401518a860151968b015163ffffffff9485166001600160401b031990931692909217600160201b91851682021764ffffffffff60401b1916600160401b9785169790970260ff60601b191696909617600160601b9115159190910217905560808801516101385560a0880151610139805460c08b015192841664ffffffffff1990911617911515909502179093558551610144805463ffffffff199081169286169290921790559086015161014555908501516101468054909216921691909117905561141f85612d35565b61142884612d8b565b611433600033612de2565b61144f6000805160206156668339815191528660000151612de2565b61013654611465906001600160a01b0316612dec565b80156114ab576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6114bd3360016126ce565b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036115075760405162461bcd60e51b8152600401610e72906150c9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611539612b94565b6001600160a01b03161461155f5760405162461bcd60e51b8152600401610e7290615103565b61156882612bb0565b610c7c82826001612bbb565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461160f5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610e72565b5060008051602061564683398151915290565b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141580611662575061166089612ae0565b155b8061167357506116718a611d58565b155b156116b75782828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929350610f6892505050565b6000806116c6888a018a61506e565b90925090506000806116da888a018a61515f565b915091506116ed8e858584868c8c61301d565b9e9d5050505050505050505050505050565b6097546040516332d4cd0360e11b815273__$0d78a42341742155da77b97d7f993534c7$__916365a99a0691611745916001600160a01b03169086908690600401615184565b60006040518083038186803b15801561175d57600080fd5b505af4158015611771573d6000803e3d6000fd5b505050505050565b600080516020615666833981519152611791816125e4565b61179a82612d35565b6101335482516001600160a01b039081169116146117f457610133546117d890600080516020615666833981519152906001600160a01b03166125ee565b6117f46000805160206156668339815191528360000151612de2565b815161013380546001600160a01b03199081166001600160a01b03938416908117909255602080860180516101348054851691871691909117905560408088018051610135805487169189169190911790556060808a0180516101368054909816908a161790965582519687529251871693860193909352915185168483015291519093169082015290517fc5e56c36231b7247b96ddd6a7e47b60748a332bcb3a514d016fd2e74d9159351916080908290030190a15050565b610143546001600160a01b031690565b6000806118c96111ef565b6101375461013a549192506118ec91600160201b90910463ffffffff1690614fc2565b8110611a6d5760008060006118ff613070565b92509250925080156119e857610136546040516370a0823160e01b81526000916001600160a01b0316906370a082319061193d903090600401614a69565b602060405180830381865afa15801561195a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197e9190615055565b61013c8590556101375463ffffffff1661013e81905561013d879055604080518881526020810184905290810191909152606081018690529091507f83e0d535b9e84324e0a25922406398d6ff5f96d0c686204ee490e16d7670566f9060800160405180910390a1505b61013a84905561013b829055610145548211611a0557600061013b555b61013b5461013f5461014054604080518881526020810194909452438482015260608401929092526080830152517fdd2b882b89647cd6c5641ce6ab9d46f1c17865d2b22f065850f30f83cc7d8cf89181900360a00190a15050600061013f81905561014055505b505061013b5490565b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141580611ab65750611ab487612ae0565b155b80611ac75750611ac588611d58565b155b15611aeb5750604080518082019091526002815261060f60f31b60208201526110a2565b600080611afa8688018861506e565b9092509050600080611b166001600160a01b038d168585613222565b5050915091508181604051602001611b3b929190918252600b0b602082015260400190565b604051602081830303815290604052945050505050979650505050505050565b610135546000906001600160a01b031615611c1057610135546040516316874da360e11b81526000916001600160a01b031690632d0e9b4690611ba2908790600401614a69565b602060405180830381865afa158015611bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be391906151a8565b90506001600160a01b038116611c0e5783604051630b7b234960e01b8152600401610e729190614a69565b505b610134546001600160a01b031615801590611c405750611c3e6000805160206156668339815191523361209c565b155b15611ce857610134546040516356a42afd60e11b81526001600160a01b039091169063ad4855fa90611c7c9030903390889088906004016151c5565b6020604051808303816000875af1158015611c9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbf9190615203565b1515600003611ce3578260405163130f4a3760e11b8152600401610e729190614a69565b611d37565b61013954600160201b900460ff168015611d175750611d156000805160206156668339815191523361209c565b155b15611d375782604051636f6acad560e01b8152600401610e729190614a69565b611d4f6000805160206156ad833981519152846129ba565b50600192915050565b6097546001600160a01b0390811691161490565b610135546040516316874da360e11b815260009182916001600160a01b0390911690632d0e9b4690611da2908690600401614a69565b602060405180830381865afa158015611dbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de391906151a8565b9050611ded6111ef565b6001600160a01b03909116600090815261014160205260409020541492915050565b600080516020615666833981519152611e27816125e4565b611e3083612d8b565b8251610137805460208087015160408089015160608a01511515600160601b0260ff60601b1963ffffffff928316600160401b021664ffffffffff60401b19948316600160201b9081026001600160401b0319909816998416999099179690961793909316949094179190911790935560808701516101385560a0870151610139805460c08a0151151590960264ffffffffff1990961691841691909117949094179093558451610144805491831663ffffffff19928316179055928501516101455584820151610146805491909216931692909217909155517f9c2d0f3e240667c2b704104ff988af37be9eb4befb81fe00424626b088ee757990611f92908590600060e08201905063ffffffff808451168352806020850151166020840152806040850151166040840152606084015115156060840152608084015160808401528060a08501511660a08401525060c0830151151560c083015292915050565b60405180910390a1505050565b6060336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611fea57604051632f2d36a760e01b815260040160405180910390fd5b611ff387612ae0565b6120165750604080518082019091526002815261060f60f31b60208201526110a2565b61201f88611d58565b61203c57604051631ea25bab60e31b815260040160405180910390fd5b600061204a8587018761506e565b5090506000806120646001600160a01b038c168430613222565b505060408051600b9290920b60208301528181019290925281518082038301815260609091019091529b9a5050505050505050505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610c9933610d92565b606083336001600160a01b038216148015906121175750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b15612137573360405163087231bf60e31b8152600401610e729190614a69565b8360000361215857604051630f6fa54560e41b815260040160405180910390fd5b609754612170906001600160a01b03168630876132ba565b610f2485856000604051806020016040528060008152506133c0565b6097546000906001600160a01b031633146121ba57604051630ce706f760e41b815260040160405180910390fd5b836000036121db57604051630f6fa54560e41b815260040160405180910390fd5b6121f785856000604051806020016040528060008152506133c0565b50600190505b949350505050565b6101435460408051638abf607760e01b815290516000926001600160a01b031691638abf60779160048083019260209291908290030181865afa158015612250573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061227491906151a8565b905061227f81612bb0565b610c7c81836000612bbb565b6000612295613070565b5092915050565b6122a582610f75565b6122ae816125e4565b610fe583836125ee565b606060006122c88789018961506e565b5090506122d78b828686613a68565b9b9a5050505050505050505050565b60975460405163b2f918a160e01b815260009182918291829182918291829173__$0d78a42341742155da77b97d7f993534c7$__9163b2f918a19161233a91609b916001600160a01b031690600401615220565b60e060405180830381865af4158015612357573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237b91906152aa565b959d949c50929a50909850965094509092509050565b606083336001600160a01b038216148015906123d65750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b156123f6573360405163087231bf60e31b8152600401610e729190614a69565b6097546040516370a0823160e01b81526000916001600160a01b0316906370a0823190612427903090600401614a69565b602060405180830381865afa158015612444573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124689190615055565b6097546040516321437a5360e01b815291925073__$0d78a42341742155da77b97d7f993534c7$__916321437a53916124d7917f0000000000000000000000000000000000000000000000000000000000000000918a916001600160a01b03909116908c90309060040161531e565b602060405180830381865af41580156124f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125189190615055565b506097546040516370a0823160e01b815260009183916001600160a01b03909116906370a082319061254e903090600401614a69565b602060405180830381865afa15801561256b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061258f9190615055565b6125999190614f98565b9050806000036125bc57604051630f6fa54560e41b815260040160405180910390fd5b6125d887826000604051806020016040528060008152506133c0565b50939695505050505050565b6111ec8133613ab6565b6000805160206156ad8339815191528214801561261e575061261e6000805160206156ad8339815191528261209c565b156126c45761014280546001919060009061264090849063ffffffff1661535f565b825463ffffffff9182166101009390930a9283029190920219909116179055506101435460405163058e524d60e11b81526001600160a01b0390911690630b1ca49a90612691908490600401614a69565b600060405180830381600087803b1580156126ab57600080fd5b505af11580156126bf573d6000803e3d6000fd5b505050505b610c7c8282613b0f565b610135546040516316874da360e11b81526000916001600160a01b031690632d0e9b4690612700908690600401614a69565b602060405180830381865afa15801561271d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061274191906151a8565b90506001600160a01b03811661276c5782604051630b7b234960e01b8152600401610e729190614a69565b6101395463ffffffff161580159061278f575061013954600160201b900460ff16155b156127ac576127ac6000805160206156ad833981519152846129ba565b6101395463ffffffff161515806127cd575061013954600160201b900460ff165b80156127ee57506127ec6000805160206156ad8339815191528461209c565b155b1561280e578260405163130f4a3760e11b8152600401610e729190614a69565b6101445463ffffffff161580159061283457506101445461013f5463ffffffff90911611155b1561285a5761013f54604051635136bc3160e01b81526004810191909152602401610e72565b60006128646118be565b61013a546001600160a01b0384166000908152610141602052604090205491925090036128a65781604051631fc1cabf60e31b8152600401610e729190614a69565b61013a546001600160a01b0383166000908152610141602052604081209190915561013f8054600192906128db908490614fc2565b909155505061014080548291906000906128f6908490614fc2565b9091555061292090508361290a578461290c565b825b610136546001600160a01b03169083613b76565b836001600160a01b0316826001600160a01b03167f1c0764b87f885ff7e1be5f7c06a0cc99c5bdc0f7b4884440e6ebe5b12bfd511d8360405161296591815260200190565b60405180910390a350505050565b60606110a28686600b0b8686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133c092505050565b6000805160206156ad833981519152821480156129ec57506129ea6000805160206156ad8339815191528261209c565b155b15612ad6576101395463ffffffff1615801590612a185750610139546101425463ffffffff9182169116115b15612a3657604051632263c94160e01b815260040160405180910390fd5b6101435460405163329b55b760e21b81526001600160a01b039091169063ca6d56dc90612a67908490600401614a69565b600060405180830381600087803b158015612a8157600080fd5b505af1158015612a95573d6000803e3d6000fd5b5050610142805460019350909150600090612ab790849063ffffffff1661537c565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b610c7c8282613bcc565b604051635b69006f60e11b815260008051602061560683398151915260048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b6d200de90602401602060405180830381865afa158015612b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7991906151a8565b6001600160a01b0316826001600160a01b0316149050919050565b600080516020615646833981519152546001600160a01b031690565b6000610c7c816125e4565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615612bee57610fe583613c52565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612c48575060408051601f3d908101601f19168201909252612c4591810190615055565b60015b612cab5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610e72565b6000805160206156468339815191528114612d1a5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610e72565b50610fe5838383613cec565b6001600160a01b03163b151590565b80516001600160a01b03161580612d57575060408101516001600160a01b0316155b80612d6d575060608101516001600160a01b0316155b156111ec57604051631e597d8360e11b815260040160405180910390fd5b602081015163ffffffff161580612da75750805163ffffffff16155b80612dba5750604081015163ffffffff16155b80612d6d575060808101516111ec57604051631e597d8360e11b815260040160405180910390fd5b610c7c82826129ba565b6001600160a01b038116612e135760405163538ba4f960e01b815260040160405180910390fd5b609780546001600160a01b0319166001600160a01b0383811691909117909155604051631e51d6a760e11b81527f000000000000000000000000000000000000000000000000000000000000000090911690633ca3ad4e90612e79903090600401614a69565b602060405180830381865afa158015612e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eba9190615203565b1515600003612f38576040516315a722b960e31b8152600160048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ad3915c890602401600060405180830381600087803b158015612f2557600080fd5b505af1925050508015612f36575060015b505b6040805180820182527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168082529151635b69006f60e11b815260008051602061560683398151915260048201529091602083019163b6d200de90602401602060405180830381865afa158015612fbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fdf91906151a8565b6001600160a01b039081169091528151609980546001600160a01b0319908116928416929092179055602090920151609a8054909316911617905550565b60606130648786600b0b8686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133c092505050565b98975050505050505050565b610136546040516370a0823160e01b81526000918291829182916001600160a01b03909116906370a08231906130aa903090600401614a69565b602060405180830381865afa1580156130c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130eb9190615055565b610137549091506000906131059063ffffffff168361513d565b90506000606461013a60020154606961311e9190614fab565b613128919061513d565b82118061316c575061013e5461313c610c80565b1115801561316c575061314d610c80565b61013e5461315b9190614f98565b61013c546131699190614fab565b83105b61013c5461013e54909750909150613182610c80565b61318d906001614fc2565b1015806131975750805b156131b757610137546131b09063ffffffff168461513d565b9550600193505b6101385461013f5461320791906131f890612710906131d890612904614fab565b6131e2919061513d565b61013754600160401b900463ffffffff16613d17565b613202908961513d565b613d2e565b6101455490955085101561321a57600094505b505050909192565b600080600080600061323388613d3d565b604051631cd43d1160e31b81529092506001600160a01b038316915063e6a1e88890613267908b908b908b90600401615399565b608060405180830381865afa158015613284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132a891906153bc565b929b919a509850909650945050505050565b600080856001600160a01b03166323b872dd60e01b8686866040516024016132e493929190615184565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161332291906153fa565b6000604051808303816000865af19150503d806000811461335f576040519150601f19603f3d011682016040523d82523d6000602084013e613364565b606091505b509150915081801561338e57508051158061338e57508080602001905181019061338e9190615203565b6117715760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b6044820152606401610e72565b8051819015156000806133d1610cd3565b609754919350915073__$0d78a42341742155da77b97d7f993534c7$__9063934e2cce90609b906001600160a01b03166134096118ae565b8588613415578c613418565b60005b6040516001600160e01b031960e088901b16815260048101959095526001600160a01b03938416602486015292909116604484015263ffffffff166064830152608482015260a40160006040518083038186803b15801561347857600080fd5b505af415801561348c573d6000803e3d6000fd5b5050609754600092506134aa91506001600160a01b03168a30613eac565b6001600160a01b038a16600090815260986020526040902054909150841561389f57600082600b0b1380156134e757506459df649400600b83900b125b1561350a57604051624963df60e91b8152600b83900b6004820152602401610e72565b6001600160a01b038a16600090815260986020526040902060010180546001600160e01b031916600160601b426001600160801b038116919091026001600160601b031916919091176001600160601b0385161790915561356c908990614f98565b613576908a614fab565b6001600160a01b038b166000908152609860205260408120805490919061359e908490614fc2565b90915550600090506135ae6118ae565b6001600160a01b031614613771576135c46118ae565b6001600160a01b031663469048406040518163ffffffff1660e01b8152600401602060405180830381865afa158015613601573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061362591906151a8565b935061362f6118ae565b6001600160a01b03166324a9d8536040518163ffffffff1660e01b8152600401602060405180830381865afa15801561366c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136909190615416565b925073__$0d78a42341742155da77b97d7f993534c7$__634d167a906099609760009054906101000a90046001600160a01b0316609b60030160009054906101000a90046001600160a01b031688888f896136eb9190615433565b8d6040518863ffffffff1660e01b815260040161370e9796959493929190615460565b600060405180830381865af415801561372b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261375391908101906154b0565b609e80546001600160a01b0319166001600160a01b03871617905595505b613779610cd3565b809450819550505073__$0d78a42341742155da77b97d7f993534c7$__634d167a906099609760009054906101000a90046001600160a01b0316609b60040160009054906101000a90046001600160a01b031688888f896137da9190615433565b8d6040518863ffffffff1660e01b81526004016137fd9796959493929190615460565b600060405180830381865af415801561381a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261384291908101906154b0565b609f80546001600160a01b0319166001600160a01b0387811691909117909155609754919750613873911630613f3a565b609e80546001600160601b0392909216600160a01b026001600160a01b039092169190911790556139de565b60006138a96118ae565b6001600160a01b031614613998576138bf6118ae565b6001600160a01b031663469048406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061392091906151a8565b935061392a6118ae565b6001600160a01b03166324a9d8536040518163ffffffff1660e01b8152600401602060405180830381865afa158015613967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061398b9190615416565b925061399884848b613fb9565b6139a0610cd3565b90945092506139b084848b613fb9565b6001600160a01b038a16600090815260986020526040812080548b92906139d8908490614fc2565b90915550505b6001600160a01b038a166000818152609860205260409020547f6342e11b65ccb38a3bb259be9cda846c74ad52b36b62a2ee4799dc3db63a04a390839088613a27576000613a29565b8c5b604080519384526020840192909252600b90810b8383015286900b60608301528815156080830152519081900360a00190a25050505050949350505050565b6060613aad8460008086868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506133c092505050565b95945050505050565b613ac0828261209c565b610c7c57613acd81614005565b613ad8836020614017565b604051602001613ae992919061551d565b60408051601f198184030181529082905262461bcd60e51b8252610e729160040161492b565b613b19828261209c565b15610c7c5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610fe58363a9059cbb60e01b8484604051602401613b9592919061558c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526141b2565b613bd6828261209c565b610c7c5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613c0e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b613c5b81612d26565b613cbd5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610e72565b60008051602061564683398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b613cf583614284565b600082511180613d025750805b15610fe557613d1183836142c4565b50505050565b600081831015613d275781610d8b565b5090919050565b6000818310613d275781610d8b565b7f65599bf746e17a00ea62e3610586992d88101b78eec3cf380706621fb97ea837547fb969d79d88acd02d04ed7ee7d43b949e7daf093d363abcfbbc43dfdfd1ce969a546001600160a01b038116613e7b576001600160a01b038216613e0257826001600160a01b03166320bc44256040518163ffffffff1660e01b8152600401602060405180830381865afa158015613ddb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dff91906151a8565b91505b604051635b69006f60e11b815260008051602061560683398151915260048201526001600160a01b0383169063b6d200de90602401602060405180830381865afa158015613e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e7891906151a8565b90505b6001600160a01b038216613e9157613e916155a5565b6001600160a01b038116613ea757613ea76155a5565b915091565b600080613eb885613d3d565b604051631cd43d1160e31b81529092506001600160a01b038316915063e6a1e88890613eec90889088908890600401615399565b608060405180830381865afa158015613f09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f2d91906153bc565b5090979650505050505050565b600080613f4684613d3d565b60405163e8e7e2d160e01b81529092506001600160a01b038316915063e8e7e2d190613f789087908790600401614f0a565b602060405180830381865afa158015613f95573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121fd91906155bb565b6001600160a01b038316613fcc57505050565b6000612710613fe163ffffffff851684614fab565b613feb919061513d565b609754909150613d11906001600160a01b031685836143ad565b6060610c466001600160a01b03831660145b60606000614026836002614fab565b614031906002614fc2565b6001600160401b0381111561404857614048614709565b6040519080825280601f01601f191660200182016040528015614072576020820181803683370190505b509050600360fc1b8160008151811061408d5761408d6155d8565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106140bc576140bc6155d8565b60200101906001600160f81b031916908160001a90535060006140e0846002614fab565b6140eb906001614fc2565b90505b6001811115614163576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061411f5761411f6155d8565b1a60f81b828281518110614135576141356155d8565b60200101906001600160f81b031916908160001a90535060049490941c9361415c816155ee565b90506140ee565b508315610d8b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e72565b6000614207826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166144b09092919063ffffffff16565b805190915015610fe557808060200190518101906142259190615203565b610fe55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e72565b61428d81613c52565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606142cf83612d26565b61432a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610e72565b600080846001600160a01b03168460405161434591906153fa565b600060405180830381855af49150503d8060008114614380576040519150601f19603f3d011682016040523d82523d6000602084013e614385565b606091505b5091509150613aad8282604051806060016040528060278152602001615686602791396144bf565b600080846001600160a01b031663a9059cbb60e01b85856040516024016143d592919061558c565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161441391906153fa565b6000604051808303816000865af19150503d8060008114614450576040519150601f19603f3d011682016040523d82523d6000602084013e614455565b606091505b509150915081801561447f57508051158061447f57508080602001905181019061447f9190615203565b6114ab5760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610e72565b60606121fd84846000856144d8565b606083156144ce575081610d8b565b610d8b83836145a8565b6060824710156145395760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610e72565b600080866001600160a01b0316858760405161455591906153fa565b60006040518083038185875af1925050503d8060008114614592576040519150601f19603f3d011682016040523d82523d6000602084013e614597565b606091505b50915091506110a2878383876145d2565b8151156145b85781518083602001fd5b8060405162461bcd60e51b8152600401610e72919061492b565b6060831561463f578251600003614638576145ec85612d26565b6146385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e72565b50816121fd565b6121fd83836145a8565b60006020828403121561465b57600080fd5b81356001600160e01b031981168114610d8b57600080fd5b6001600160a01b03811681146111ec57600080fd5b60006020828403121561469a57600080fd5b8135610d8b81614673565b80151581146111ec57600080fd5b80356146be816146a5565b919050565b600080604083850312156146d657600080fd5b82356146e181614673565b915060208301356146f1816146a5565b809150509250929050565b6001600160a01b03169052565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561474757614747614709565b604052919050565b60006001600160401b0382111561476857614768614709565b50601f01601f191660200190565b600082601f83011261478757600080fd5b813561479a6147958261474f565b61471f565b8181528460208386010111156147af57600080fd5b816020850160208301376000918101602001919091529392505050565b600060a082840312156147de57600080fd5b60405160a081016001600160401b03808211838310171561480157614801614709565b816040528293508435915061481582614673565b818352602085013560208401526040850135604084015260608501356060840152608085013591508082111561484a57600080fd5b5061485785828601614776565b6080830152505092915050565b60008060006060848603121561487957600080fd5b83356001600160401b038082111561489057600080fd5b61489c878388016147cc565b9450602086013591506148ae82614673565b909250604085013590808211156148c457600080fd5b506148d186828701614776565b9150509250925092565b60005b838110156148f65781810151838201526020016148de565b50506000910152565b600081518084526149178160208601602086016148db565b601f01601f19169290920160200192915050565b602081526000610d8b60208301846148ff565b60008083601f84011261495057600080fd5b5081356001600160401b0381111561496757600080fd5b60208301915083602082850101111561497f57600080fd5b9250929050565b600080600080600080600080600060c08a8c0312156149a457600080fd5b89356149af81614673565b985060208a01356149bf81614673565b975060408a0135965060608a01356001600160401b03808211156149e257600080fd5b6149ee8d838e0161493e565b909850965060808c0135915080821115614a0757600080fd5b614a138d838e0161493e565b909650945060a08c0135915080821115614a2c57600080fd5b50614a398c828d0161493e565b915080935050809150509295985092959850929598565b600060208284031215614a6257600080fd5b5035919050565b6001600160a01b0391909116815260200190565b60008060408385031215614a9057600080fd5b8235915060208301356146f181614673565b600080600080600080600060a0888a031215614abd57600080fd5b8735614ac881614673565b96506020880135614ad881614673565b95506040880135945060608801356001600160401b0380821115614afb57600080fd5b614b078b838c0161493e565b909650945060808a0135915080821115614b2057600080fd5b50614b2d8a828b0161493e565b989b979a50959850939692959293505050565b600060808284031215614b5257600080fd5b604051608081016001600160401b0381118282101715614b7457614b74614709565b6040529050808235614b8581614673565b81526020830135614b9581614673565b60208201526040830135614ba881614673565b60408201526060830135614bbb81614673565b6060919091015292915050565b63ffffffff811681146111ec57600080fd5b80356146be81614bc8565b600060e08284031215614bf757600080fd5b60405160e081016001600160401b0381118282101715614c1957614c19614709565b6040529050808235614c2a81614bc8565b81526020830135614c3a81614bc8565b60208201526040830135614c4d81614bc8565b60408201526060830135614c60816146a5565b606082015260808381013590820152614c7b60a08401614bda565b60a0820152614c8c60c084016146b3565b60c08201525092915050565b600060608284031215614caa57600080fd5b604051606081016001600160401b0381118282101715614ccc57614ccc614709565b6040529050808235614cdd81614bc8565b8152602083810135908201526040830135614cf781614bc8565b6040919091015292915050565b6000806000806101e08587031215614d1b57600080fd5b614d258686614b40565b9350614d348660808701614be5565b9250614d44866101608701614c98565b91506101c0850135614d5581614673565b939692955090935050565b60008060408385031215614d7357600080fd5b8235614d7e81614673565b915060208301356001600160401b03811115614d9957600080fd5b614da585828601614776565b9150509250929050565b60008060408385031215614dc257600080fd5b8235614dcd81614673565b946020939093013593505050565b600060808284031215614ded57600080fd5b610d8b8383614b40565b6000806101408385031215614e0b57600080fd5b614e158484614be5565b9150614e248460e08501614c98565b90509250929050565b600080600060608486031215614e4257600080fd5b8335614e4d81614673565b92506020840135915060408401356001600160401b03811115614e6f57600080fd5b6148d186828701614776565b60008060008060608587031215614e9157600080fd5b8435614e9c81614673565b93506020850135925060408501356001600160401b03811115614ebe57600080fd5b614eca8782880161493e565b95989497509550505050565b600060208284031215614ee857600080fd5b81356001600160401b03811115614efe57600080fd5b6121fd84828501614776565b6001600160a01b0392831681529116602082015260400190565b600080600060608486031215614f3957600080fd5b8335614f4481614673565b925060208401356001600160401b0380821115614f6057600080fd5b614f6c878388016147cc565b935060408601359150808211156148c457600080fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610c4657610c46614f82565b8082028115828204841417610c4657610c46614f82565b80820180821115610c4657610c46614f82565b60018060a01b0381511682526020810151602083015260408101516040830152606081015160608301526000608082015160a060808501526121fd60a08501826148ff565b600060018060a01b0380871683526080602084015261503c6080840187614fd5565b9481166040840152929092166060909101525092915050565b60006020828403121561506757600080fd5b5051919050565b6000806040838503121561508157600080fd5b823561508c81614673565b915060208301356146f181614673565b80600b0b81146111ec57600080fd5b600080604083850312156150be57600080fd5b8235614dcd8161509c565b6020808252602c9082015260008051602061562683398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c9082015260008051602061562683398151915260408201526b6163746976652070726f787960a01b606082015260800190565b60008261515a57634e487b7160e01b600052601260045260246000fd5b500490565b6000806040838503121561517257600080fd5b8235915060208301356146f18161509c565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000602082840312156151ba57600080fd5b8151610d8b81614673565b6001600160a01b0385811682528481166020830152831660408201526080606082018190526000906151f9908301846148ff565b9695505050505050565b60006020828403121561521557600080fd5b8151610d8b816146a5565b8254815260018301546020820152600283015460408201526003830154610120820190615259606084016001600160a01b0383166146fc565b61526b608084018260a01d600b0b9052565b5060048401546001600160a01b031661528760a08401826146fc565b50600584015460c0830152600684015460e0830152610d8b6101008301846146fc565b600080600080600080600060e0888a0312156152c557600080fd5b8751965060208801519550604088015194506060880151935060808801516152ec8161509c565b60a08901519093506152fd8161509c565b60c089015190925061530e8161509c565b8091505092959891949750929550565b600060018060a01b03808816835260a0602084015261534060a0840188614fd5565b9581166040840152938416606083015250911660809091015292915050565b63ffffffff82811682821603908082111561229557612295614f82565b63ffffffff81811683821601908082111561229557612295614f82565b6001600160a01b0393841681529183166020830152909116604082015260600190565b600080600080608085870312156153d257600080fd5b8451935060208501516153e48161509c565b6040860151606090960151949790965092505050565b6000825161540c8184602087016148db565b9190910192915050565b60006020828403121561542857600080fd5b8151610d8b81614bc8565b600b82810b9082900b0360016001605f1b0319811260016001605f1b0382131715610c4657610c46614f82565b8781526001600160a01b03878116602083015286811660408301528516606082015263ffffffff84166080820152600b83900b60a082015260e060c08201819052600090610f68908301846148ff565b6000602082840312156154c257600080fd5b81516001600160401b038111156154d857600080fd5b8201601f810184136154e957600080fd5b80516154f76147958261474f565b81815285602083850101111561550c57600080fd5b613aad8260208301602086016148db565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b81526000835161554f8160178501602088016148db565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516155808160288401602088016148db565b01602801949350505050565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052600160045260246000fd5b6000602082840312156155cd57600080fd5b8151610d8b8161509c565b634e487b7160e01b600052603260045260246000fd5b6000816155fd576155fd614f82565b50600019019056fea9214cc96615e0085d3bb077758db69497dc2dce3b2b1e97bc93c3d18d83efd346756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564829b824e2329e205435d941c9f13baf578548505283d29261236d8e6596d4636a2646970667358221220f3c4b96dde31f28ae5647c898489ec05a454718d65fb84258fc474d4a106735964736f6c63430008130033";
1992
+
1993
+ type UBIPoolConstructorParams =
1994
+ | [linkLibraryAddresses: UBIPoolLibraryAddresses, signer?: Signer]
1995
+ | ConstructorParameters<typeof ContractFactory>;
1996
+
1997
+ const isSuperArgs = (
1998
+ xs: UBIPoolConstructorParams
1999
+ ): xs is ConstructorParameters<typeof ContractFactory> => {
2000
+ return (
2001
+ typeof xs[0] === "string" ||
2002
+ (Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) ||
2003
+ "_isInterface" in xs[0]
2004
+ );
2005
+ };
2006
+
2007
+ export class UBIPool__factory extends ContractFactory {
2008
+ constructor(...args: UBIPoolConstructorParams) {
2009
+ if (isSuperArgs(args)) {
2010
+ super(...args);
2011
+ } else {
2012
+ const [linkLibraryAddresses, signer] = args;
2013
+ super(_abi, UBIPool__factory.linkBytecode(linkLibraryAddresses), signer);
2014
+ }
2015
+ }
2016
+
2017
+ static linkBytecode(linkLibraryAddresses: UBIPoolLibraryAddresses): string {
2018
+ let linkedBytecode = _bytecode;
2019
+
2020
+ linkedBytecode = linkedBytecode.replace(
2021
+ new RegExp("__\\$0d78a42341742155da77b97d7f993534c7\\$__", "g"),
2022
+ linkLibraryAddresses["contracts/utils/HelperLibrary.sol:HelperLibrary"]
2023
+ .replace(/^0x/, "")
2024
+ .toLowerCase()
2025
+ );
2026
+
2027
+ return linkedBytecode;
2028
+ }
2029
+
2030
+ override deploy(
2031
+ _host: PromiseOrValue<string>,
2032
+ _swapRouter: PromiseOrValue<string>,
2033
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
2034
+ ): Promise<UBIPool> {
2035
+ return super.deploy(
2036
+ _host,
2037
+ _swapRouter,
2038
+ overrides || {}
2039
+ ) as Promise<UBIPool>;
2040
+ }
2041
+ override getDeployTransaction(
2042
+ _host: PromiseOrValue<string>,
2043
+ _swapRouter: PromiseOrValue<string>,
2044
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
2045
+ ): TransactionRequest {
2046
+ return super.getDeployTransaction(_host, _swapRouter, overrides || {});
2047
+ }
2048
+ override attach(address: string): UBIPool {
2049
+ return super.attach(address) as UBIPool;
2050
+ }
2051
+ override connect(signer: Signer): UBIPool__factory {
2052
+ return super.connect(signer) as UBIPool__factory;
2053
+ }
2054
+
2055
+ static readonly bytecode = _bytecode;
2056
+ static readonly abi = _abi;
2057
+ static createInterface(): UBIPoolInterface {
2058
+ return new utils.Interface(_abi) as UBIPoolInterface;
2059
+ }
2060
+ static connect(
2061
+ address: string,
2062
+ signerOrProvider: Signer | Provider
2063
+ ): UBIPool {
2064
+ return new Contract(address, _abi, signerOrProvider) as UBIPool;
2065
+ }
2066
+ }
2067
+
2068
+ export interface UBIPoolLibraryAddresses {
2069
+ ["contracts/utils/HelperLibrary.sol:HelperLibrary"]: string;
2070
+ }