@zebec-network/exchange-card-sdk 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +339 -0
  3. package/dist/artifacts/abi/ERC20.json +350 -0
  4. package/dist/artifacts/abi/ZebecCard.json +1060 -0
  5. package/dist/artifacts/abi/index.d.ts +122 -0
  6. package/dist/artifacts/abi/index.js +10 -0
  7. package/dist/artifacts/index.d.ts +2 -0
  8. package/dist/artifacts/index.js +18 -0
  9. package/dist/artifacts/typechain-types/ERC20.d.ts +149 -0
  10. package/dist/artifacts/typechain-types/ERC20.js +2 -0
  11. package/dist/artifacts/typechain-types/ZebecCard.d.ts +639 -0
  12. package/dist/artifacts/typechain-types/ZebecCard.js +2 -0
  13. package/dist/artifacts/typechain-types/common.d.ts +50 -0
  14. package/dist/artifacts/typechain-types/common.js +2 -0
  15. package/dist/artifacts/typechain-types/factories/ERC20__factory.d.ts +280 -0
  16. package/dist/artifacts/typechain-types/factories/ERC20__factory.js +378 -0
  17. package/dist/artifacts/typechain-types/factories/ZebecCard__factory.d.ts +835 -0
  18. package/dist/artifacts/typechain-types/factories/ZebecCard__factory.js +1088 -0
  19. package/dist/artifacts/typechain-types/factories/index.d.ts +2 -0
  20. package/dist/artifacts/typechain-types/factories/index.js +10 -0
  21. package/dist/artifacts/typechain-types/index.d.ts +5 -0
  22. package/dist/artifacts/typechain-types/index.js +31 -0
  23. package/dist/chains.d.ts +18 -0
  24. package/dist/chains.js +39 -0
  25. package/dist/constants.d.ts +3649 -0
  26. package/dist/constants.js +2502 -0
  27. package/dist/errors.d.ts +24 -0
  28. package/dist/errors.js +51 -0
  29. package/dist/helpers/apiHelpers.d.ts +30 -0
  30. package/dist/helpers/apiHelpers.js +92 -0
  31. package/dist/index.d.ts +10 -0
  32. package/dist/index.js +26 -0
  33. package/dist/services/EvmService.d.ts +37 -0
  34. package/dist/services/EvmService.js +134 -0
  35. package/dist/services/TaoService.d.ts +49 -0
  36. package/dist/services/TaoService.js +106 -0
  37. package/dist/services/TonService.d.ts +57 -0
  38. package/dist/services/TonService.js +137 -0
  39. package/dist/services/XdbService.d.ts +58 -0
  40. package/dist/services/XdbService.js +140 -0
  41. package/dist/services/stellarService.d.ts +52 -0
  42. package/dist/services/stellarService.js +119 -0
  43. package/dist/types.d.ts +59 -0
  44. package/dist/types.js +263 -0
  45. package/dist/utils.d.ts +8 -0
  46. package/dist/utils.js +48 -0
  47. package/package.json +58 -0
@@ -0,0 +1,1088 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ZebecCard__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "target",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "AddressEmptyCode",
18
+ type: "error",
19
+ },
20
+ {
21
+ inputs: [
22
+ {
23
+ internalType: "address",
24
+ name: "account",
25
+ type: "address",
26
+ },
27
+ ],
28
+ name: "AddressInsufficientBalance",
29
+ type: "error",
30
+ },
31
+ {
32
+ inputs: [
33
+ {
34
+ internalType: "address",
35
+ name: "implementation",
36
+ type: "address",
37
+ },
38
+ ],
39
+ name: "ERC1967InvalidImplementation",
40
+ type: "error",
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: "ERC1967NonPayable",
45
+ type: "error",
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: "FailedInnerCall",
50
+ type: "error",
51
+ },
52
+ {
53
+ inputs: [],
54
+ name: "InvalidInitialization",
55
+ type: "error",
56
+ },
57
+ {
58
+ inputs: [
59
+ {
60
+ internalType: "uint256",
61
+ name: "requiredBalance",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ internalType: "uint256",
66
+ name: "currentBalance",
67
+ type: "uint256",
68
+ },
69
+ ],
70
+ name: "NotEnoughBalance",
71
+ type: "error",
72
+ },
73
+ {
74
+ inputs: [],
75
+ name: "NotInitializing",
76
+ type: "error",
77
+ },
78
+ {
79
+ inputs: [
80
+ {
81
+ internalType: "address",
82
+ name: "owner",
83
+ type: "address",
84
+ },
85
+ ],
86
+ name: "OwnableInvalidOwner",
87
+ type: "error",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "address",
93
+ name: "account",
94
+ type: "address",
95
+ },
96
+ ],
97
+ name: "OwnableUnauthorizedAccount",
98
+ type: "error",
99
+ },
100
+ {
101
+ inputs: [
102
+ {
103
+ internalType: "address",
104
+ name: "token",
105
+ type: "address",
106
+ },
107
+ ],
108
+ name: "SafeERC20FailedOperation",
109
+ type: "error",
110
+ },
111
+ {
112
+ inputs: [],
113
+ name: "UUPSUnauthorizedCallContext",
114
+ type: "error",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ internalType: "bytes32",
120
+ name: "slot",
121
+ type: "bytes32",
122
+ },
123
+ ],
124
+ name: "UUPSUnsupportedProxiableUUID",
125
+ type: "error",
126
+ },
127
+ {
128
+ anonymous: false,
129
+ inputs: [
130
+ {
131
+ indexed: true,
132
+ internalType: "address",
133
+ name: "from",
134
+ type: "address",
135
+ },
136
+ {
137
+ indexed: true,
138
+ internalType: "uint256",
139
+ name: "id",
140
+ type: "uint256",
141
+ },
142
+ {
143
+ indexed: false,
144
+ internalType: "uint256",
145
+ name: "amount",
146
+ type: "uint256",
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: "string",
151
+ name: "cardType",
152
+ type: "string",
153
+ },
154
+ {
155
+ indexed: false,
156
+ internalType: "string",
157
+ name: "userEmail",
158
+ type: "string",
159
+ },
160
+ {
161
+ indexed: false,
162
+ internalType: "uint256",
163
+ name: "purchasedAt",
164
+ type: "uint256",
165
+ },
166
+ ],
167
+ name: "CardPurchased",
168
+ type: "event",
169
+ },
170
+ {
171
+ anonymous: false,
172
+ inputs: [
173
+ {
174
+ indexed: true,
175
+ internalType: "address",
176
+ name: "from",
177
+ type: "address",
178
+ },
179
+ {
180
+ indexed: false,
181
+ internalType: "uint256",
182
+ name: "amount",
183
+ type: "uint256",
184
+ },
185
+ ],
186
+ name: "Deposited",
187
+ type: "event",
188
+ },
189
+ {
190
+ anonymous: false,
191
+ inputs: [
192
+ {
193
+ indexed: false,
194
+ internalType: "uint64",
195
+ name: "version",
196
+ type: "uint64",
197
+ },
198
+ ],
199
+ name: "Initialized",
200
+ type: "event",
201
+ },
202
+ {
203
+ anonymous: false,
204
+ inputs: [
205
+ {
206
+ indexed: true,
207
+ internalType: "address",
208
+ name: "previousOwner",
209
+ type: "address",
210
+ },
211
+ {
212
+ indexed: true,
213
+ internalType: "address",
214
+ name: "newOwner",
215
+ type: "address",
216
+ },
217
+ ],
218
+ name: "OwnershipTransferred",
219
+ type: "event",
220
+ },
221
+ {
222
+ anonymous: false,
223
+ inputs: [
224
+ {
225
+ indexed: true,
226
+ internalType: "address",
227
+ name: "from",
228
+ type: "address",
229
+ },
230
+ {
231
+ indexed: true,
232
+ internalType: "address",
233
+ name: "srcToken",
234
+ type: "address",
235
+ },
236
+ {
237
+ indexed: false,
238
+ internalType: "uint256",
239
+ name: "amount",
240
+ type: "uint256",
241
+ },
242
+ {
243
+ indexed: false,
244
+ internalType: "uint256",
245
+ name: "spentAmount",
246
+ type: "uint256",
247
+ },
248
+ {
249
+ indexed: false,
250
+ internalType: "uint256",
251
+ name: "returnAmount",
252
+ type: "uint256",
253
+ },
254
+ {
255
+ indexed: false,
256
+ internalType: "uint256",
257
+ name: "feeAmount",
258
+ type: "uint256",
259
+ },
260
+ ],
261
+ name: "Swapped",
262
+ type: "event",
263
+ },
264
+ {
265
+ anonymous: false,
266
+ inputs: [
267
+ {
268
+ indexed: true,
269
+ internalType: "address",
270
+ name: "implementation",
271
+ type: "address",
272
+ },
273
+ ],
274
+ name: "Upgraded",
275
+ type: "event",
276
+ },
277
+ {
278
+ anonymous: false,
279
+ inputs: [
280
+ {
281
+ indexed: true,
282
+ internalType: "address",
283
+ name: "from",
284
+ type: "address",
285
+ },
286
+ {
287
+ indexed: false,
288
+ internalType: "uint256",
289
+ name: "withdrawnAmount",
290
+ type: "uint256",
291
+ },
292
+ ],
293
+ name: "WithdrawYield",
294
+ type: "event",
295
+ },
296
+ {
297
+ anonymous: false,
298
+ inputs: [
299
+ {
300
+ indexed: true,
301
+ internalType: "address",
302
+ name: "from",
303
+ type: "address",
304
+ },
305
+ {
306
+ indexed: false,
307
+ internalType: "uint256",
308
+ name: "withdrawnAmount",
309
+ type: "uint256",
310
+ },
311
+ ],
312
+ name: "Withdrawn",
313
+ type: "event",
314
+ },
315
+ {
316
+ inputs: [],
317
+ name: "UPGRADE_INTERFACE_VERSION",
318
+ outputs: [
319
+ {
320
+ internalType: "string",
321
+ name: "",
322
+ type: "string",
323
+ },
324
+ ],
325
+ stateMutability: "view",
326
+ type: "function",
327
+ },
328
+ {
329
+ inputs: [],
330
+ name: "aavePool",
331
+ outputs: [
332
+ {
333
+ internalType: "address",
334
+ name: "",
335
+ type: "address",
336
+ },
337
+ ],
338
+ stateMutability: "view",
339
+ type: "function",
340
+ },
341
+ {
342
+ inputs: [
343
+ {
344
+ internalType: "uint256",
345
+ name: "amount",
346
+ type: "uint256",
347
+ },
348
+ {
349
+ internalType: "string",
350
+ name: "cardType",
351
+ type: "string",
352
+ },
353
+ {
354
+ internalType: "string",
355
+ name: "userEmail",
356
+ type: "string",
357
+ },
358
+ ],
359
+ name: "buyCard",
360
+ outputs: [],
361
+ stateMutability: "nonpayable",
362
+ type: "function",
363
+ },
364
+ {
365
+ inputs: [
366
+ {
367
+ internalType: "address",
368
+ name: "",
369
+ type: "address",
370
+ },
371
+ ],
372
+ name: "cardBalances",
373
+ outputs: [
374
+ {
375
+ internalType: "uint256",
376
+ name: "",
377
+ type: "uint256",
378
+ },
379
+ ],
380
+ stateMutability: "view",
381
+ type: "function",
382
+ },
383
+ {
384
+ inputs: [],
385
+ name: "cardConfig",
386
+ outputs: [
387
+ {
388
+ internalType: "uint256",
389
+ name: "nativeFee",
390
+ type: "uint256",
391
+ },
392
+ {
393
+ internalType: "uint256",
394
+ name: "nonNativeFee",
395
+ type: "uint256",
396
+ },
397
+ {
398
+ internalType: "uint256",
399
+ name: "revenueFee",
400
+ type: "uint256",
401
+ },
402
+ {
403
+ internalType: "uint256",
404
+ name: "counter",
405
+ type: "uint256",
406
+ },
407
+ {
408
+ internalType: "address",
409
+ name: "cardVault",
410
+ type: "address",
411
+ },
412
+ {
413
+ internalType: "address",
414
+ name: "revenueVault",
415
+ type: "address",
416
+ },
417
+ {
418
+ internalType: "address",
419
+ name: "commissionVault",
420
+ type: "address",
421
+ },
422
+ {
423
+ internalType: "address",
424
+ name: "usdcAddress",
425
+ type: "address",
426
+ },
427
+ {
428
+ internalType: "uint256",
429
+ name: "minCardAmount",
430
+ type: "uint256",
431
+ },
432
+ {
433
+ internalType: "uint256",
434
+ name: "maxCardAmount",
435
+ type: "uint256",
436
+ },
437
+ {
438
+ internalType: "uint256",
439
+ name: "dailyCardBuyLimit",
440
+ type: "uint256",
441
+ },
442
+ ],
443
+ stateMutability: "view",
444
+ type: "function",
445
+ },
446
+ {
447
+ inputs: [
448
+ {
449
+ internalType: "address",
450
+ name: "",
451
+ type: "address",
452
+ },
453
+ ],
454
+ name: "cardPurchases",
455
+ outputs: [
456
+ {
457
+ internalType: "uint256",
458
+ name: "unixInRecord",
459
+ type: "uint256",
460
+ },
461
+ {
462
+ internalType: "uint256",
463
+ name: "totalCardBoughtPerDay",
464
+ type: "uint256",
465
+ },
466
+ ],
467
+ stateMutability: "view",
468
+ type: "function",
469
+ },
470
+ {
471
+ inputs: [
472
+ {
473
+ internalType: "uint256",
474
+ name: "amount",
475
+ type: "uint256",
476
+ },
477
+ ],
478
+ name: "depositUsdc",
479
+ outputs: [],
480
+ stateMutability: "nonpayable",
481
+ type: "function",
482
+ },
483
+ {
484
+ inputs: [
485
+ {
486
+ internalType: "uint256",
487
+ name: "",
488
+ type: "uint256",
489
+ },
490
+ ],
491
+ name: "feeTiers",
492
+ outputs: [
493
+ {
494
+ internalType: "uint256",
495
+ name: "minAmount",
496
+ type: "uint256",
497
+ },
498
+ {
499
+ internalType: "uint256",
500
+ name: "maxAmount",
501
+ type: "uint256",
502
+ },
503
+ {
504
+ internalType: "uint256",
505
+ name: "fee",
506
+ type: "uint256",
507
+ },
508
+ ],
509
+ stateMutability: "view",
510
+ type: "function",
511
+ },
512
+ {
513
+ inputs: [
514
+ {
515
+ internalType: "uint256",
516
+ name: "amount",
517
+ type: "uint256",
518
+ },
519
+ ],
520
+ name: "generateYield",
521
+ outputs: [],
522
+ stateMutability: "nonpayable",
523
+ type: "function",
524
+ },
525
+ {
526
+ inputs: [
527
+ {
528
+ internalType: "uint256",
529
+ name: "amount",
530
+ type: "uint256",
531
+ },
532
+ ],
533
+ name: "getFee",
534
+ outputs: [
535
+ {
536
+ internalType: "uint256",
537
+ name: "",
538
+ type: "uint256",
539
+ },
540
+ ],
541
+ stateMutability: "view",
542
+ type: "function",
543
+ },
544
+ {
545
+ inputs: [],
546
+ name: "getFeeTiers",
547
+ outputs: [
548
+ {
549
+ components: [
550
+ {
551
+ internalType: "uint256",
552
+ name: "minAmount",
553
+ type: "uint256",
554
+ },
555
+ {
556
+ internalType: "uint256",
557
+ name: "maxAmount",
558
+ type: "uint256",
559
+ },
560
+ {
561
+ internalType: "uint256",
562
+ name: "fee",
563
+ type: "uint256",
564
+ },
565
+ ],
566
+ internalType: "struct ZebecCard.FeeTier[]",
567
+ name: "",
568
+ type: "tuple[]",
569
+ },
570
+ ],
571
+ stateMutability: "view",
572
+ type: "function",
573
+ },
574
+ {
575
+ inputs: [
576
+ {
577
+ components: [
578
+ {
579
+ internalType: "uint256",
580
+ name: "nativeFee",
581
+ type: "uint256",
582
+ },
583
+ {
584
+ internalType: "uint256",
585
+ name: "nonNativeFee",
586
+ type: "uint256",
587
+ },
588
+ {
589
+ internalType: "uint256",
590
+ name: "revenueFee",
591
+ type: "uint256",
592
+ },
593
+ {
594
+ internalType: "uint256",
595
+ name: "counter",
596
+ type: "uint256",
597
+ },
598
+ {
599
+ internalType: "address",
600
+ name: "cardVault",
601
+ type: "address",
602
+ },
603
+ {
604
+ internalType: "address",
605
+ name: "revenueVault",
606
+ type: "address",
607
+ },
608
+ {
609
+ internalType: "address",
610
+ name: "commissionVault",
611
+ type: "address",
612
+ },
613
+ {
614
+ internalType: "address",
615
+ name: "usdcAddress",
616
+ type: "address",
617
+ },
618
+ {
619
+ internalType: "uint256",
620
+ name: "minCardAmount",
621
+ type: "uint256",
622
+ },
623
+ {
624
+ internalType: "uint256",
625
+ name: "maxCardAmount",
626
+ type: "uint256",
627
+ },
628
+ {
629
+ internalType: "uint256",
630
+ name: "dailyCardBuyLimit",
631
+ type: "uint256",
632
+ },
633
+ ],
634
+ internalType: "struct ZebecCard.CardConfig",
635
+ name: "card_config",
636
+ type: "tuple",
637
+ },
638
+ {
639
+ components: [
640
+ {
641
+ internalType: "uint256",
642
+ name: "minAmount",
643
+ type: "uint256",
644
+ },
645
+ {
646
+ internalType: "uint256",
647
+ name: "maxAmount",
648
+ type: "uint256",
649
+ },
650
+ {
651
+ internalType: "uint256",
652
+ name: "fee",
653
+ type: "uint256",
654
+ },
655
+ ],
656
+ internalType: "struct ZebecCard.FeeTier[]",
657
+ name: "fee_tiers",
658
+ type: "tuple[]",
659
+ },
660
+ {
661
+ internalType: "address",
662
+ name: "inch_router",
663
+ type: "address",
664
+ },
665
+ {
666
+ internalType: "address",
667
+ name: "weth",
668
+ type: "address",
669
+ },
670
+ {
671
+ internalType: "address",
672
+ name: "zbc_token",
673
+ type: "address",
674
+ },
675
+ {
676
+ internalType: "address",
677
+ name: "aave_pool",
678
+ type: "address",
679
+ },
680
+ ],
681
+ name: "initialize",
682
+ outputs: [],
683
+ stateMutability: "nonpayable",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [],
688
+ name: "oneInchRouter",
689
+ outputs: [
690
+ {
691
+ internalType: "address",
692
+ name: "",
693
+ type: "address",
694
+ },
695
+ ],
696
+ stateMutability: "view",
697
+ type: "function",
698
+ },
699
+ {
700
+ inputs: [],
701
+ name: "owner",
702
+ outputs: [
703
+ {
704
+ internalType: "address",
705
+ name: "",
706
+ type: "address",
707
+ },
708
+ ],
709
+ stateMutability: "view",
710
+ type: "function",
711
+ },
712
+ {
713
+ inputs: [],
714
+ name: "proxiableUUID",
715
+ outputs: [
716
+ {
717
+ internalType: "bytes32",
718
+ name: "",
719
+ type: "bytes32",
720
+ },
721
+ ],
722
+ stateMutability: "view",
723
+ type: "function",
724
+ },
725
+ {
726
+ inputs: [],
727
+ name: "renounceOwnership",
728
+ outputs: [],
729
+ stateMutability: "nonpayable",
730
+ type: "function",
731
+ },
732
+ {
733
+ inputs: [
734
+ {
735
+ internalType: "address",
736
+ name: "cardVault",
737
+ type: "address",
738
+ },
739
+ ],
740
+ name: "setCardVault",
741
+ outputs: [],
742
+ stateMutability: "nonpayable",
743
+ type: "function",
744
+ },
745
+ {
746
+ inputs: [
747
+ {
748
+ internalType: "address",
749
+ name: "commissionVault",
750
+ type: "address",
751
+ },
752
+ ],
753
+ name: "setComissionVault",
754
+ outputs: [],
755
+ stateMutability: "nonpayable",
756
+ type: "function",
757
+ },
758
+ {
759
+ inputs: [
760
+ {
761
+ internalType: "uint256",
762
+ name: "dailyCardBuyLimit",
763
+ type: "uint256",
764
+ },
765
+ ],
766
+ name: "setDailyCardBuyLimit",
767
+ outputs: [],
768
+ stateMutability: "nonpayable",
769
+ type: "function",
770
+ },
771
+ {
772
+ inputs: [
773
+ {
774
+ internalType: "uint256",
775
+ name: "minAmount",
776
+ type: "uint256",
777
+ },
778
+ {
779
+ internalType: "uint256",
780
+ name: "maxAmount",
781
+ type: "uint256",
782
+ },
783
+ {
784
+ internalType: "uint256",
785
+ name: "fee",
786
+ type: "uint256",
787
+ },
788
+ ],
789
+ name: "setFee",
790
+ outputs: [],
791
+ stateMutability: "nonpayable",
792
+ type: "function",
793
+ },
794
+ {
795
+ inputs: [
796
+ {
797
+ components: [
798
+ {
799
+ internalType: "uint256",
800
+ name: "minAmount",
801
+ type: "uint256",
802
+ },
803
+ {
804
+ internalType: "uint256",
805
+ name: "maxAmount",
806
+ type: "uint256",
807
+ },
808
+ {
809
+ internalType: "uint256",
810
+ name: "fee",
811
+ type: "uint256",
812
+ },
813
+ ],
814
+ internalType: "struct ZebecCard.FeeTier[]",
815
+ name: "newTiers",
816
+ type: "tuple[]",
817
+ },
818
+ ],
819
+ name: "setFeeArray",
820
+ outputs: [],
821
+ stateMutability: "nonpayable",
822
+ type: "function",
823
+ },
824
+ {
825
+ inputs: [
826
+ {
827
+ internalType: "uint256",
828
+ name: "maxAmount",
829
+ type: "uint256",
830
+ },
831
+ ],
832
+ name: "setMaxCardAmount",
833
+ outputs: [],
834
+ stateMutability: "nonpayable",
835
+ type: "function",
836
+ },
837
+ {
838
+ inputs: [
839
+ {
840
+ internalType: "uint256",
841
+ name: "minAmount",
842
+ type: "uint256",
843
+ },
844
+ ],
845
+ name: "setMinCardAmount",
846
+ outputs: [],
847
+ stateMutability: "nonpayable",
848
+ type: "function",
849
+ },
850
+ {
851
+ inputs: [
852
+ {
853
+ internalType: "uint256",
854
+ name: "nativeFee",
855
+ type: "uint256",
856
+ },
857
+ ],
858
+ name: "setNativeFee",
859
+ outputs: [],
860
+ stateMutability: "nonpayable",
861
+ type: "function",
862
+ },
863
+ {
864
+ inputs: [
865
+ {
866
+ internalType: "uint256",
867
+ name: "nonNativeFee",
868
+ type: "uint256",
869
+ },
870
+ ],
871
+ name: "setNonNativeFee",
872
+ outputs: [],
873
+ stateMutability: "nonpayable",
874
+ type: "function",
875
+ },
876
+ {
877
+ inputs: [
878
+ {
879
+ internalType: "uint256",
880
+ name: "revenueFee",
881
+ type: "uint256",
882
+ },
883
+ ],
884
+ name: "setRevenueFee",
885
+ outputs: [],
886
+ stateMutability: "nonpayable",
887
+ type: "function",
888
+ },
889
+ {
890
+ inputs: [
891
+ {
892
+ internalType: "address",
893
+ name: "revenueVault",
894
+ type: "address",
895
+ },
896
+ ],
897
+ name: "setRevenueVault",
898
+ outputs: [],
899
+ stateMutability: "nonpayable",
900
+ type: "function",
901
+ },
902
+ {
903
+ inputs: [
904
+ {
905
+ internalType: "address",
906
+ name: "usdcAddress",
907
+ type: "address",
908
+ },
909
+ ],
910
+ name: "setUsdcAddress",
911
+ outputs: [],
912
+ stateMutability: "nonpayable",
913
+ type: "function",
914
+ },
915
+ {
916
+ inputs: [
917
+ {
918
+ internalType: "contract IAggregationExecutor",
919
+ name: "executor",
920
+ type: "address",
921
+ },
922
+ {
923
+ components: [
924
+ {
925
+ internalType: "contract IERC20",
926
+ name: "srcToken",
927
+ type: "address",
928
+ },
929
+ {
930
+ internalType: "contract IERC20",
931
+ name: "dstToken",
932
+ type: "address",
933
+ },
934
+ {
935
+ internalType: "address payable",
936
+ name: "srcReceiver",
937
+ type: "address",
938
+ },
939
+ {
940
+ internalType: "address payable",
941
+ name: "dstReceiver",
942
+ type: "address",
943
+ },
944
+ {
945
+ internalType: "uint256",
946
+ name: "amount",
947
+ type: "uint256",
948
+ },
949
+ {
950
+ internalType: "uint256",
951
+ name: "minReturnAmount",
952
+ type: "uint256",
953
+ },
954
+ {
955
+ internalType: "uint256",
956
+ name: "flags",
957
+ type: "uint256",
958
+ },
959
+ ],
960
+ internalType: "struct IAggregationRouterV6.SwapDescription",
961
+ name: "desc",
962
+ type: "tuple",
963
+ },
964
+ {
965
+ internalType: "bytes",
966
+ name: "routeData",
967
+ type: "bytes",
968
+ },
969
+ ],
970
+ name: "swapAndDeposit",
971
+ outputs: [],
972
+ stateMutability: "payable",
973
+ type: "function",
974
+ },
975
+ {
976
+ inputs: [
977
+ {
978
+ internalType: "address",
979
+ name: "newOwner",
980
+ type: "address",
981
+ },
982
+ ],
983
+ name: "transferOwnership",
984
+ outputs: [],
985
+ stateMutability: "nonpayable",
986
+ type: "function",
987
+ },
988
+ {
989
+ inputs: [
990
+ {
991
+ internalType: "address",
992
+ name: "newImplementation",
993
+ type: "address",
994
+ },
995
+ {
996
+ internalType: "bytes",
997
+ name: "data",
998
+ type: "bytes",
999
+ },
1000
+ ],
1001
+ name: "upgradeToAndCall",
1002
+ outputs: [],
1003
+ stateMutability: "payable",
1004
+ type: "function",
1005
+ },
1006
+ {
1007
+ inputs: [],
1008
+ name: "wEth",
1009
+ outputs: [
1010
+ {
1011
+ internalType: "address",
1012
+ name: "",
1013
+ type: "address",
1014
+ },
1015
+ ],
1016
+ stateMutability: "view",
1017
+ type: "function",
1018
+ },
1019
+ {
1020
+ inputs: [
1021
+ {
1022
+ internalType: "uint256",
1023
+ name: "amount",
1024
+ type: "uint256",
1025
+ },
1026
+ ],
1027
+ name: "withdraw",
1028
+ outputs: [],
1029
+ stateMutability: "nonpayable",
1030
+ type: "function",
1031
+ },
1032
+ {
1033
+ inputs: [
1034
+ {
1035
+ internalType: "uint256",
1036
+ name: "amount",
1037
+ type: "uint256",
1038
+ },
1039
+ ],
1040
+ name: "withdrawYield",
1041
+ outputs: [],
1042
+ stateMutability: "nonpayable",
1043
+ type: "function",
1044
+ },
1045
+ {
1046
+ inputs: [],
1047
+ name: "zebecToken",
1048
+ outputs: [
1049
+ {
1050
+ internalType: "address",
1051
+ name: "",
1052
+ type: "address",
1053
+ },
1054
+ ],
1055
+ stateMutability: "view",
1056
+ type: "function",
1057
+ },
1058
+ ];
1059
+ const _bytecode = "0x60a0806040523461002a5730608052612d0c90816100308239608051818181611480015261153a0152f35b600080fdfe6080604052600436101561001257600080fd5b600060e08135811c90816314435445146121f1578163145096d514611da1578163166dbb7314611c6d5781631d4247ab14611c2e578163230ed44a14611be25781632357928e14611a905781632e1a7d4d146119d257816337cf533114611948578163458e551e146117a457816348455ff0146117815781634d68e925146117425781634f1ef286146114fa57816352d1902d146114655781635b65b9ab1461134f5781636ca75e9514610dd1578163715018a614610d555781638da5cb5b14610d0f578163a03e4bc314610ce8578163a53ebd8a146109da578163a5b7ac7e14610998578163ab31978f1461052d57508063ac3af20814610506578063ad3cb1cc1461047b578063b0d097de14610458578063b573dca714610431578063b91a1e8f1461040f578063bea9c43e146103ec578063d38bcdee146103ad578063d895a46b1461036e578063df6d921214610347578063e591f2ff14610324578063e9a4d24f1461022f578063f076a846146101f7578063f2fde38b146101ca5763fcee45f4146101a157600080fd5b346101c75760203660031901126101c75760206101bf6004356126e6565b604051908152f35b80fd5b50346101c75760203660031901126101c7576101f46101e7612268565b6101ef612783565b612648565b80f35b50346101c75760203660031901126101c75760406020916001600160a01b0361021e612268565b168152601083522054604051908152f35b50346101c757806003193601126101c75760115461024c8161227e565b9061025a6040519283612230565b8082526011835260209182810191847f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68845b8383106102e457505050506040519280840191818552518092526040840192945b8281106102ba5784840385f35b855180518552808301518584015260409081015190850152948101946060909301926001016102ad565b60038760019260409a9997989a516102fb81612214565b85548152848601548382015260028601546040820152815201920192019190969493959661028c565b50346101c75760203660031901126101c75761033e612783565b60043560015580f35b50346101c757806003193601126101c75760206001600160a01b03600c5416604051908152f35b50346101c75760203660031901126101c7576001600160a01b03610390612268565b610398612783565b166001600160a01b0319600454161760045580f35b50346101c75760203660031901126101c7576001600160a01b036103cf612268565b6103d7612783565b166001600160a01b0319600754161760075580f35b50346101c75760203660031901126101c757610406612783565b600435600a5580f35b50346101c75760203660031901126101c757610429612783565b600435815580f35b50346101c757806003193601126101c75760206001600160a01b03600d5416604051908152f35b50346101c75760203660031901126101c757610472612783565b60043560095580f35b50346101c757806003193601126101c757604051604081019080821067ffffffffffffffff8311176104f0576104ec91604052600581527f352e302e3000000000000000000000000000000000000000000000000000000060208201526040519182916020835260208301906123d6565b0390f35b634e487b7160e01b600052604160045260246000fd5b50346101c757806003193601126101c75760206001600160a01b03600b5416604051908152f35b905034610994576020806003193601126109905760043561054f331515612569565b61055a8115156124d3565b6001600160a01b039283600e54169084600754166040519283917f35ea6a7500000000000000000000000000000000000000000000000000000000835260048301528160246101e09586935afa918215610985578693889361080b575b505050610100015116338552601083526105df6105d8836040882054612839565b919061251e565b338087526010855260408088209290925590516323b872dd60e01b8152600481019190915230602482015260448101839052838160648189865af19081156108005786916107e3575b501561079f57600e5460405163095ea7b360e01b81529085166001600160a01b03166004820152602481018390529190839083908188816044810103925af1918215610794578392610681918791610767575b506125cc565b606484600e541694600754168660405196879485937f69328dec000000000000000000000000000000000000000000000000000000008552600485015260248401523060448401525af191821561075c578392610708575b507ff09b3678dd1b265d3e2d9f681481c92d1cdd81b6e19fa43651707dedf99263a8906040519283523392a280f35b9080925081813d8311610755575b6107208183612230565b810103126107505751907ff09b3678dd1b265d3e2d9f681481c92d1cdd81b6e19fa43651707dedf99263a86106d9565b600080fd5b503d610716565b6040513d85823e3d90fd5b6107879150843d861161078d575b61077f8183612230565b8101906125b4565b3861067b565b503d610775565b6040513d87823e3d90fd5b6064836040519062461bcd60e51b82526004820152601660248201527f61546f6b656e207472616e73666572206661696c6564000000000000000000006044820152fd5b6107fa9150843d861161078d5761077f8183612230565b38610628565b6040513d88823e3d90fd5b919350915082813d811161097e575b6108248183612230565b810103818112610976576040519182019067ffffffffffffffff90838310828411176104f0578790836040521261097a576102008301908111828210176104f057604052835181528152610879858401612617565b8582015261088960408401612617565b604082015261089a60608401612617565b60608201526108ab60808401612617565b60808201526108bc60a08401612617565b60a082015260c083015164ffffffffff811681036109765760c0820152818301519261ffff8416840361097657869361010093830152826108fe818301612634565b90830152610120610910818301612634565b90830152610140610922818301612634565b90830152610160610934818301612634565b90830152610180610946818301612617565b908301526101a0610958818301612617565b9083015261096a6101c0809201612617565b908201529038806105b7565b8780fd5b8880fd5b503d61081a565b6040513d89823e3d90fd5b8280fd5b5080fd5b82346101c75760203660031901126101c757604080916001600160a01b036109be612268565b168152600f602052206001815491015482519182526020820152f35b82346101c75760603660031901126101c75767ffffffffffffffff600435602435828111610ce457610a1090369060040161238f565b91604435908111610ce457610a2990369060040161238f565b6001600160a01b03928360075416610a42331515612569565b60085484101580610cd8575b15610c9457338652602094601086526040872054858110610c765790610a9e9291610aa36105d888612710610a8b610a85836126e6565b83612416565b0493610a978583612852565b989061251e565b612852565b338a526010895260408a20556003546000198114610c6257600101600355868989610acd426128ed565b919091338552600f8452610ae460408620546128ed565b93919091149384610c58575b505082610c4e575b505015610bf857505050338952600f8852610b1d6105d888600160408d200154612839565b338a52600f895280600160408c200155600a5410610bb4577f7747419eb85d2a64ce5c3fd1bf01b54b47cdcfb621ac43741f8460d4f3ed40cb9593610b969383610b73610b7d94610ba49996600554168461286b565b600454169061286b565b60806003549760405197885287015260808601906123d6565b9084820360408601526123d6565b914260608201528033930390a380f35b6064886040519062461bcd60e51b82526004820152601e60248201527f4461696c79204361726420427579204c696d69742045786365656465642100006044820152fd5b93610b73610c49947f7747419eb85d2a64ce5c3fd1bf01b54b47cdcfb621ac43741f8460d4f3ed40cb9a989460016040610b969a96600f610ba49e9b3383525220428155015582600554168461286b565b610b7d565b1490508d80610af8565b1492508f80610af0565b60248a634e487b7160e01b81526011600452fd5b8560449160405191634787a10360e11b835260048301526024820152fd5b606460405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206e6f742077697468696e20627579696e672072616e676521006044820152fd5b50600954841115610a4e565b8380fd5b82346101c757806003193601126101c75760206001600160a01b03600e5416604051908152f35b82346101c757806003193601126101c75760206001600160a01b037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005416604051908152f35b82346101c757806003193601126101c757610d6e612783565b60006001600160a01b037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993008054906001600160a01b031982169055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b9050610120366003190112610994576004356001600160a01b038116810361099057816023193601126109905760405191820182811067ffffffffffffffff8211176104f0576040526024356001600160a01b03811681036107505782526044356001600160a01b03811681036107505760208301526064356001600160a01b0381168103610750576040830152610e67612252565b606083015260a435608083015260c43560a083015260e43560c083015267ffffffffffffffff610104351161099057610ea6366101043560040161238f565b916001600160a01b036020820151166001600160a01b03600754160361130b576001600160a01b0360608201511630036112c7576001600160a01b03815116926001600160a01b03600c5416841492831561120d575b610fbd916040916001600160a01b0380600b5416918451958694859384937f07ed23790000000000000000000000000000000000000000000000000000000085521660048401526001600160a01b0389511660248401526001600160a01b0360208a01511660448401526001600160a01b03878a01511660648401526001600160a01b0360608a0151166084840152608089015160a484015260a089015160c484015260c089015160e48401526101206101048401526101248301906123d6565b039134905af192831561079457859186946111ce575b50811561118a57610feb6105d8856080860151612852565b806110ca575b5080156110b6575b156110a657608061271061100f87545b84612416565b04926110586105d86110246105d88787612852565b611046876001600160a01b03600754166001600160a01b03600554169061286b565b338a52601060205260408a2054612839565b338852601060205260408820550151926040519384526020840152604083015260608201527fd8066379a11f110d1eb579110571ce47b1557c623d7ae29f423d92cd6dd953be60803392a380f35b608061271061100f600154611009565b506001600160a01b03600d54168414610ff9565b816110e0576110da90338761286b565b38610ff1565b6040519081602081011067ffffffffffffffff6020840111176104f05787809291602083818495016040528381520190335af161111b6128bd565b506110da57608460405162461bcd60e51b815260206004820152602660248201527f5472616e7366657248656c7065723a204e41544956455f5452414e534645525f60448201527f4641494c454400000000000000000000000000000000000000000000000000006064820152fd5b606460405162461bcd60e51b815260206004820152601260248201527f537761704f6e31696e6368206661696c656400000000000000000000000000006044820152fd5b915092506040813d604011611205575b816111eb60409383612230565b8101031261120157602081519101519238610fd3565b8480fd5b3d91506111de565b61121d60808401513033886127e6565b600b54608084015160405163095ea7b360e01b81526001600160a01b03909216600483015260248201526020816044818a8a5af19081156109855787916112a8575b50610efc57606460405162461bcd60e51b815260206004820152600f60248201527f417070726f76616c206661696c656400000000000000000000000000000000006044820152fd5b6112c1915060203d60201161078d5761077f8183612230565b3861125f565b606460405162461bcd60e51b815260206004820152601c60248201527f496e76616c69642064657374696e6174696f6e207265636569766572000000006044820152fd5b606460405162461bcd60e51b815260206004820152601960248201527f496e76616c69642064657374696e6174696f6e20746f6b656e000000000000006044820152fd5b82346101c75760603660031901126101c75760443560043561136f612783565b8291835b60115481101561145d5761138681612322565b505483101580611446575b61139d57600101611373565b819293506113ac600291612322565b50015560015b156113bb578280f35b604051916113c883612214565b82526024356020830152604082015260115468010000000000000000811015611432578060016113fb9201601155612322565b61141f57815181556020820151600182015560409091015160029091015581808280f35b602483634e487b7160e01b815280600452fd5b602483634e487b7160e01b81526041600452fd5b50600161145282612322565b500154831115611391565b5090916113b2565b82346101c757806003193601126101c7576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114d05760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60046040517fe07c8dba000000000000000000000000000000000000000000000000000000008152fd5b8260403660031901126101c75761150f612268565b60243567ffffffffffffffff81116109905761152f90369060040161238f565b6001600160a01b03807f000000000000000000000000000000000000000000000000000000000000000016803014908115611714575b506114d057611572612783565b8216916040517f52d1902d000000000000000000000000000000000000000000000000000000008152602081600481875afa8591816116dc575b506115c95760248460405190634c9c8ce360e01b82526004820152fd5b9284937f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc908181036116ab5750823b156116935780546001600160a01b0319168217905560405184917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8380a283511561165e57508083602061165a95519101845af46116546128bd565b91612c43565b5080f35b925050503461166b575080f35b807fb398979f0000000000000000000000000000000000000000000000000000000060049252fd5b60248260405190634c9c8ce360e01b82526004820152fd5b602490604051907faa1d49a40000000000000000000000000000000000000000000000000000000082526004820152fd5b9091506020813d60201161170c575b816116f860209383612230565b81010312611708575190866115ac565b8580fd5b3d91506116eb565b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141585611565565b82346101c75760203660031901126101c7576001600160a01b03611764612268565b61176c612783565b166001600160a01b0319600554161760055580f35b82346101c75760203660031901126101c75761179b612783565b60043560085580f35b82346101c757602080600319360112610994576004356001600160a01b039182600754166117d3331515612569565b6117de8315156124d3565b33855260108252604085205483811061192a5782848094936118076105d88a9861184b96612852565b33885260108452604088205587600e54168760405180968195829463095ea7b360e01b845260048401602090939291936001600160a01b0360408201951681520152565b03925af190811561191f57611868928592611902575b50506125cc565b82600e54169260075416833b15610990576084908360405195869485937f617ba037000000000000000000000000000000000000000000000000000000008552600485015260248401523360448401528160648401525af180156118f7576118ce575080f35b67ffffffffffffffff81116118e35760405280f35b602482634e487b7160e01b81526041600452fd5b6040513d84823e3d90fd5b6119189250803d1061078d5761077f8183612230565b8680611861565b6040513d86823e3d90fd5b8360449160405191634787a10360e11b835260048301526024820152fd5b9050346109945781600319360112610994576101609154906001549060025490600354906001600160a01b0390816004541691806005541681600654169160075416936008549560095497600a54996040519b8c5260208c015260408b015260608a0152608089015260a088015260c0870152850152610100840152610120830152610140820152f35b82346101c75760203660031901126101c7576004356001600160a01b03600754166119fe8215156124d3565b611a09331515612569565b33835260106020526040832054828110611a7257611a4391611a2f6105d8858094612852565b33865260106020526040862055339061286b565b6040519081527f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d560203392a280f35b8260449160405191634787a10360e11b835260048301526024820152fd5b82346101c75760208060031936011261099457600435906001600160a01b03600754166040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201528281604481855afa80156107945784918691611bb1575b5010611b6d5790611b3d837f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c493611b348215156124d3565b309033906127e6565b33845260108152611b556105d8846040872054612839565b3385526010825260408520556040519283523392a280f35b6064826040519062461bcd60e51b82526004820152601660248201527f496e73756666696369656e7420616c6c6f77616e6365000000000000000000006044820152fd5b809250848092503d8311611bdb575b611bca8183612230565b810103126112015783905186611afc565b503d611bc0565b82346101c75760203660031901126101c757600435906011548210156101c7576060611c0d83612322565b50805490600260018201549101549060405192835260208301526040820152f35b82346101c75760203660031901126101c7576001600160a01b03611c50612268565b611c58612783565b166001600160a01b0319600654161760065580f35b82346101c7576020806003193601126109945760043567ffffffffffffffff811161099057611ca0903690600401612296565b90611ca9612783565b6011548360115580611d2d575b506020825192611cc58461243f565b0190601184527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6884925b848410611cfa578580f35b60038382611d21600194518690604060029180518455602081015160018501550151910155565b01920193019290611cef565b60039080600302906003820403611d8d57601185527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68908101905b818110611d76575050611cb6565b808684925586600182015586600282015501611d68565b602485634e487b7160e01b81526011600452fd5b905034610994573660031901906102008212610990576101608092126109905760405191820182811067ffffffffffffffff8211176121dd576040526004358252602435602083015260443560408301526064356060830152611e02612252565b608083015260a4356001600160a01b0381168103610ce45760a083015260c4356001600160a01b0381168103610ce45760c083015260e4356001600160a01b0381168103610ce457818301526101043561010083015261012435610120830152610144356101408301526101643567ffffffffffffffff8111610ce457611e8d903690600401612296565b9061018435926001600160a01b0384168403611201576101a435906001600160a01b0382168203611708576101c435906001600160a01b03821682036121d9576101e435916001600160a01b0383168303610976577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00549667ffffffffffffffff881615806121cb575b600167ffffffffffffffff8a161490816121c1575b1590816121b8575b5061218e576001600160a01b039485809492610140829460018d67ffffffffffffffff1916177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005560ff8d60401c161561214f575b8d8151905560208101516001556040810151600255606081015160035583806080830151169b6001600160a01b03199c8d60045416176004558160a0840151168d60055416176005558160c0840151168d6006541617600655820151168b60075416176007556101008101516008556101208101516009550151600a5561200e612b29565b612016612b29565b61201e612b29565b61202733612648565b1687600b541617600b551685600c541617600c551683600d541617600d551690600e541617600e55602081519161205d8361243f565b01601184527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6884915b83831061211b578560ff8660401c161561209d5780f35b68ff0000000000000000197ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6003602082612143600194518690604060029180518455602081015160018501550151910155565b01920192019190612086565b68ffffffffffffffffff198d1668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0055611f89565b60046040517ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b90501538611f34565b303b159150611f2c565b5060ff8860401c1615611f17565b8680fd5b602484634e487b7160e01b81526041600452fd5b82346101c75760203660031901126101c75761220b612783565b60043560025580f35b6060810190811067ffffffffffffffff8211176104f057604052565b90601f8019910116810190811067ffffffffffffffff8211176104f057604052565b608435906001600160a01b038216820361075057565b600435906001600160a01b038216820361075057565b67ffffffffffffffff81116104f05760051b60200190565b81601f820112156107505780359060206122af8361227e565b9360406122bf6040519687612230565b8486528286019183606080970286010194818611610750578401925b8584106122ec575050505050505090565b868483031261075057848791845161230381612214565b86358152828701358382015285870135868201528152019301926122db565b60115481101561235d576003906011600052027f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680190600090565b634e487b7160e01b600052603260045260246000fd5b67ffffffffffffffff81116104f057601f01601f191660200190565b81601f82011215610750578035906123a682612373565b926123b46040519485612230565b8284526020838301011161075057816000926020809301838601378301015290565b919082519283825260005b848110612402575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016123e1565b8181029291811591840414171561242957565b634e487b7160e01b600052601160045260246000fd5b6801000000000000000081116104f05760115481601155808210612461575050565b6003918160030291600383040361242957806003029060038204036124295760009060116000527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6892830192015b8281106124bc5750505050565b8082859255826001820155826002820155016124af565b156124da57565b606460405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152fd5b1561252557565b606460405162461bcd60e51b815260206004820152601460248201527f41726974686d65746963204f766572666c6f77210000000000000000000000006044820152fd5b1561257057565b606460405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152fd5b90816020910312610750575180151581036107505790565b156125d357565b606460405162461bcd60e51b815260206004820152601860248201527f61617665506f6f6c20417070726f76616c206661696c656400000000000000006044820152fd5b51906fffffffffffffffffffffffffffffffff8216820361075057565b51906001600160a01b038216820361075057565b6001600160a01b038091169081156126b5577f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805490836001600160a01b03198316179055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b6011549060005b82811061273857606460405162461bcd60e51b815260206004820152601360248201527f416d6f756e74206f7574206f662072616e6765000000000000000000000000006044820152fd5b61274181612322565b50548210158061276c575b612758576001016126ed565b600292506127669150612322565b50015490565b50600161277882612322565b50015482111561274c565b6001600160a01b037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300541633036127b657565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648201929092526128379161283282608481015b03601f198101845283612230565b612b82565b565b9190820191821061284a5760019190565b600091508190565b9190828111612862576001920390565b50600091508190565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b0390921660248301526044820192909252612837916128328260648101612824565b3d156128e8573d906128ce82612373565b916128dc6040519384612230565b82523d6000602084013e565b606090565b62015180900462010bd980820190811291600092838212908015821691151617612b15576226496501908262253d8c83129112908015821691151617612b01578060021b6004918282058103612aee5762023ab1809205918281029081058303612adb57600381019085600383129112908015821691151617612adb579083612977920590612c2a565b6001810160018112858312908015821691151617612adb57610fa09080820291820503612adb5762164b099005906105b58281029081058303612ac85790846129c1920590612c2a565b91601f83019285601f85129112908015821691151617612adb578260500292605084058103612ac85761098f809405938481029081058503612ab557906050612a0b920590612c2a565b94600b840593600281019082600283129112908015821691151617612aa25784600c0290600c82058603612a8f5790612a4391612c2a565b946030198301928313600116612a7c5782606402926064840503612a7c575050612a769291612a7191612c0e565b612c0e565b91909192565b906011602492634e487b7160e01b835252fd5b602483601189634e487b7160e01b835252fd5b602482601188634e487b7160e01b835252fd5b602487601188634e487b7160e01b835252fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b602484601185634e487b7160e01b835252fd5b602482634e487b7160e01b81526011600452fd5b602483634e487b7160e01b81526011600452fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c1615612b5857565b60046040517fd7e6bcf8000000000000000000000000000000000000000000000000000000008152fd5b6000806001600160a01b03612bac93169360208151910182865af1612ba56128bd565b9083612c43565b8051908115159182612bf3575b5050612bc25750565b602490604051907f5274afe70000000000000000000000000000000000000000000000000000000082526004820152fd5b612c0692506020809183010191016125b4565b153880612bb9565b9190916000838201938412911290801582169115161761242957565b8181039291600013801582851316918412161761242957565b90612c825750805115612c5857805190602001fd5b60046040517f1425ea42000000000000000000000000000000000000000000000000000000008152fd5b81511580612ccd575b612c93575090565b6024906001600160a01b03604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b15612c8b56fea2646970667358221220cc61fc56a4d3f84faf7bab11dc75af537865dba23972de533193405321e8896c64736f6c63430008180033";
1060
+ const isSuperArgs = (xs) => xs.length > 1;
1061
+ class ZebecCard__factory extends ethers_1.ContractFactory {
1062
+ constructor(...args) {
1063
+ if (isSuperArgs(args)) {
1064
+ super(...args);
1065
+ }
1066
+ else {
1067
+ super(_abi, _bytecode, args[0]);
1068
+ }
1069
+ }
1070
+ getDeployTransaction(overrides) {
1071
+ return super.getDeployTransaction(overrides || {});
1072
+ }
1073
+ deploy(overrides) {
1074
+ return super.deploy(overrides || {});
1075
+ }
1076
+ connect(runner) {
1077
+ return super.connect(runner);
1078
+ }
1079
+ static bytecode = _bytecode;
1080
+ static abi = _abi;
1081
+ static createInterface() {
1082
+ return new ethers_1.Interface(_abi);
1083
+ }
1084
+ static connect(address, runner) {
1085
+ return new ethers_1.Contract(address, _abi, runner);
1086
+ }
1087
+ }
1088
+ exports.ZebecCard__factory = ZebecCard__factory;