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