forked from czbag/zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules_settings.py
940 lines (681 loc) · 25 KB
/
modules_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
import asyncio
from modules import *
async def bridge_zksync(account_id, key, proxy):
"""
Deposit from official bridge
______________________________________________________
all_amount - bridge from min_percent to max_percent
"""
min_amount = 0.001
max_amount = 0.002
decimal = 4
all_amount = True
min_percent = 5
max_percent = 10
zksync = ZkSync(account_id, key, proxy, "ethereum")
await zksync.deposit(min_amount, max_amount, decimal, all_amount, min_percent, max_percent)
async def withdraw_zksync(account_id, key, proxy):
"""
Withdraw from official bridge
______________________________________________________
all_amount - withdraw from min_percent to max_percent
"""
min_amount = 0.0012
max_amount = 0.0012
decimal = 4
all_amount = False
min_percent = 10
max_percent = 10
zksync = ZkSync(account_id, key, proxy, "zksync")
await zksync.withdraw(min_amount, max_amount, decimal, all_amount, min_percent, max_percent)
async def bridge_orbiter(account_id, key, proxy):
"""
Bridge from orbiter
______________________________________________________
from_chain – ethereum, polygon_zkevm, arbitrum, optimism, zksync | Select one
to_chain – ethereum, polygon_zkevm, arbitrum, optimism, zksync | Select one
"""
from_chain = "zksync"
to_chain = "ethereum"
min_amount = 1
max_amount = 3
decimal = 4
orbiter = Orbiter(account_id, key, from_chain, proxy)
await orbiter.bridge(to_chain, min_amount, max_amount, decimal)
async def wrap_eth(account_id, key, proxy):
"""
Wrap ETH
______________________________________________________
all_amount - wrap from min_percent to max_percent
"""
min_amount = 0.001
max_amount = 0.002
decimal = 4
all_amount = True
min_percent = 5
max_percent = 5
zksync = ZkSync(account_id, key, proxy, "zksync")
await zksync.wrap_eth(min_amount, max_amount, decimal, all_amount, min_percent, max_percent)
async def unwrap_eth(account_id, key, proxy):
"""
Unwrap ETH
______________________________________________________
all_amount - unwrap from min_percent to max_percent
"""
min_amount = 0.001
max_amount = 0.002
decimal = 4
all_amount = True
min_percent = 100
max_percent = 100
zksync = ZkSync(account_id, key, proxy, "zksync")
await zksync.unwrap_eth(min_amount, max_amount, decimal, all_amount, min_percent, max_percent)
async def swap_syncswap(account_id, key, proxy):
"""
Make swap on SyncSwap
from_token – Choose SOURCE token ETH, USDC, USDT, BUSD, MAV, OT, MATIC, WBTC | Select one
to_token – Choose DESTINATION token ETH, USDC, USDT, BUSD, MAV, OT, MATIC, WBTC | Select one
Disclaimer – Don't use stable coin in from and to token | from_token USDC to_token USDT DON'T WORK!!!
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 1
max_amount = 2
decimal = 6
slippage = 1
all_amount = True
min_percent = 10
max_percent = 10
syncswap = SyncSwap(account_id, key, proxy)
await syncswap.swap(
from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent, max_percent
)
async def liquidity_syncswap(account_id, key, proxy):
"""
Add liqudity on SyncSwap
amount in ETH, USDC amount not need (auto swap)
"""
min_amount = 0.01
max_amount = 0.02
decimal = 6
all_amount = True
min_percent = 5
max_percent = 10
syncswap = SyncSwap(account_id, key, proxy)
await syncswap.add_liquidity(min_amount, max_amount, decimal, all_amount, min_percent, max_percent)
async def swap_mute(account_id, key, proxy):
"""
Make swap on Mute
______________________________________________________
from_token – Choose SOURCE token ETH, USDC, WBTC | Select one
to_token – Choose DESTINATION token ETH, USDC, WBTC | Select one
Disclaimer - You can swap only ETH to any token or any token to ETH!
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 10
max_percent = 10
mute = Mute(account_id, key, proxy)
await mute.swap(from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent,
max_percent)
async def swap_spacefi(account_id, key, proxy):
"""
Make swap on SpaceFi
______________________________________________________
from_token – Choose SOURCE token ETH, USDC, USDT, BUSD, OT, MATIC, WBTC | Select one
to_token – Choose DESTINATION token ETH, USDC, USDT, BUSD, OT, MATIC, WBTC | Select one
Disclaimer - You can swap only ETH to any token or any token to ETH!
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "ETH"
to_token = "USDC"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 10
max_percent = 10
spacefi = SpaceFi(account_id, key, proxy)
await spacefi.swap(from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent,
max_percent)
async def liquidity_spacefi(account_id, key, proxy):
"""
Add liqudity on SpaceFi
"""
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
all_amount = True
min_percent = 1
max_percent = 1
spacefi = SpaceFi(account_id, key, proxy)
await spacefi.add_liquidity(min_amount, max_amount, decimal, all_amount, min_percent, max_percent)
async def swap_pancake(account_id, key, proxy):
"""
Make swap on PancakeSwap
______________________________________________________
from_token – Choose SOURCE token ETH, USDC | Select one
to_token – Choose DESTINATION token ETH, USDC | Select one
Disclaimer - You can swap only ETH to any token or any token to ETH!
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 0.001
max_amount = 0.002
decimal = 6
slippage = 1
all_amount = True
min_percent = 10
max_percent = 10
pancake = Pancake(account_id, key, proxy)
await pancake.swap(from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent,
max_percent)
async def swap_woofi(account_id, key, proxy):
"""
Make swap on WooFi
______________________________________________________
from_token – Choose SOURCE token ETH, USDC | Select one
to_token – Choose DESTINATION token ETH, USDC | Select one
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 60
max_percent = 80
woofi = WooFi(account_id, key, proxy)
await woofi.swap(
from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent, max_percent
)
async def swap_odos(account_id, key, proxy):
"""
Make swap on Odos
______________________________________________________
from_token – Choose SOURCE token ETH, WETH, USDC, USDT, BUSD, MAV, OT, MATIC, WBTC | Select one
to_token – Choose DESTINATION token ETH, WETH, USDC, USDT, BUSD, MAV, OT, MATIC, WBTC | Select one
Disclaimer - If you use True for use_fee, you support me 1% of the transaction amount
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "ETH"
to_token = "WETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 1
max_percent = 1
odos = Odos(account_id, key, proxy)
await odos.swap(
from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent, max_percent
)
async def swap_zkswap(account_id, key, proxy):
"""
Make swap on ZkSwap
______________________________________________________
from_token – Choose SOURCE token ETH, USDC | Select one
to_token – Choose DESTINATION token ETH, USDC | Select one
Disclaimer - You can swap only ETH to any token or any token to ETH!
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 100
max_percent = 100
zkswap = ZKSwap(account_id, key, proxy)
await zkswap.swap(
from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent, max_percent
)
async def swap_xyswap(account_id, key, proxy):
"""
Make swap on XYSwap
______________________________________________________
from_token – Choose SOURCE token ETH, WETH, USDC, USDT, BUSD, OT | Select one
to_token – Choose DESTINATION token ETH, WETH, USDC, USDT, BUSD, OT | Select one
Disclaimer - If you use True for use_fee, you support me 1% of the transaction amount
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "ETH"
to_token = "WETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 1
max_percent = 1
xyswap = XYSwap(account_id, key, proxy)
await xyswap.swap(from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent,
max_percent)
async def swap_openocean(account_id, key, proxy):
"""
Make swap on OpenOcean
______________________________________________________
from_token – Choose SOURCE token ETH, WETH, USDC, USDT, BUSD, MAV, OT, WBTC | Select one
to_token – Choose DESTINATION token ETH, WETH, USDC, USDT, BUSD, MAV, OT, WBTC | Select one
Disclaimer - If you use True for use_fee, you support me 1% of the transaction amount
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "ETH"
to_token = "WETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 1
max_percent = 1
openocean = OpenOcean(account_id, key, proxy)
await openocean.swap(
from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent, max_percent
)
async def swap_inch(account_id, key, proxy):
"""
Make swap on 1inch
______________________________________________________
from_token – Choose SOURCE token ETH, WETH, USDC, USDT, BUSD | Select one
to_token – Choose DESTINATION token ETH, WETH, USDC, USDT, BUSD | Select one
Disclaimer - If you use True for use_fee, you support me 1% of the transaction amount
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 1
max_percent = 1
inch_dex = Inch(account_id, key, proxy)
await inch_dex.swap(from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent,
max_percent)
async def swap_maverick(account_id, key, proxy):
"""
Make swap on Maverick
______________________________________________________
from_token – Choose SOURCE token ETH, USDC | Select one
to_token – Choose DESTINATION token ETH, USDC | Select one
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "USDC"
to_token = "ETH"
min_amount = 0.001
max_amount = 0.002
decimal = 6
slippage = 1
all_amount = True
min_percent = 100
max_percent = 100
maverick = Maverick(account_id, key, proxy)
await maverick.swap(from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent,
max_percent)
async def swap_vesync(account_id, key, proxy):
"""
Make swap on VeSync
______________________________________________________
from_token – Choose SOURCE token ETH, USDC | Select one
to_token – Choose DESTINATION token ETH, USDC | Select one
Disclaimer - You can swap only ETH to any token or any token to ETH!
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
from_token = "ETH"
to_token = "USDC"
min_amount = 0.0001
max_amount = 0.0002
decimal = 6
slippage = 1
all_amount = True
min_percent = 10
max_percent = 10
vesync = VeSync(account_id, key, proxy)
await vesync.swap(
from_token, to_token, min_amount, max_amount, decimal, slippage, all_amount, min_percent, max_percent
)
async def bungee_refuel(account_id, key, proxy):
"""
Make refuel on Bungee
______________________________________________________
to_chain – Choose DESTINATION chain: BSC, OPTIMISM, GNOSIS, POLYGON, BASE, ARBITRUM, AVALANCHE, AURORA, ZK_EVM
Disclaimer - The chain will be randomly selected
______________________________________________________
random_amount – True - amount random from min to max | False - use min amount
"""
chain_list = ["GNOSIS"]
random_amount = False
bungee = Bungee(account_id, key, proxy)
await bungee.refuel(chain_list, random_amount)
async def stargate_bridge(account_id, key, proxy):
"""
Make stargate MAV token bridge to BSC
______________________________________________________
all_amount - swap from min_percent to max_percent
"""
min_amount = 0.001
max_amount = 0.002
decimal = 4
slippage = 1
sleep_from = 5
sleep_to = 24
all_amount = True
min_percent = 10
max_percent = 20
stargate = Stargate(account_id, key, proxy)
await stargate.bridge(
min_amount, max_amount, decimal, slippage, sleep_from, sleep_to, all_amount, min_percent, max_percent
)
async def deposit_eralend(account_id, key, proxy):
"""
Make deposit on Eralend
______________________________________________________
make_withdraw - True, if need withdraw after deposit
all_amount - deposit from min_percent to max_percent
"""
min_amount = 0.0001
max_amount = 0.0002
decimal = 5
sleep_from = 5
sleep_to = 24
make_withdraw = True
all_amount = True
min_percent = 5
max_percent = 10
eralend = Eralend(account_id, key, proxy)
await eralend.deposit(
min_amount, max_amount, decimal, sleep_from, sleep_to, make_withdraw, all_amount, min_percent, max_percent
)
async def deposit_basilisk(account_id, key, proxy):
"""
Make deposit on Basilisk
______________________________________________________
make_withdraw - True, if need withdraw after deposit
all_amount - deposit from min_percent to max_percent
"""
min_amount = 0.0001
max_amount = 0.0002
decimal = 5
sleep_from = 5
sleep_to = 24
make_withdraw = True
all_amount = False
min_percent = 60
max_percent = 80
basilisk = Basilisk(account_id, key, proxy)
await basilisk.deposit(
min_amount, max_amount, decimal, sleep_from, sleep_to, make_withdraw, all_amount, min_percent, max_percent
)
async def deposit_reactorfusion(account_id, key, proxy):
"""
Make deposit on ReactorFusion
______________________________________________________
make_withdraw - True, if need withdraw after deposit
all_amount - deposit from min_percent to max_percent
"""
min_amount = 0.0001
max_amount = 0.0002
decimal = 5
sleep_from = 5
sleep_to = 24
make_withdraw = True
all_amount = False
min_percent = 60
max_percent = 80
reactorfusion = ReactorFusion(account_id, key, proxy)
await reactorfusion.deposit(
min_amount, max_amount, decimal, sleep_from, sleep_to, make_withdraw, all_amount, min_percent, max_percent
)
async def deposit_zerolend(account_id, key, proxy):
"""
Make deposit on ZeroLend
______________________________________________________
make_withdraw - True, if need withdraw after deposit
all_amount - deposit from min_percent to max_percent
"""
min_amount = 0.0001
max_amount = 0.0002
decimal = 5
sleep_from = 5
sleep_to = 24
make_withdraw = True
all_amount = True
min_percent = 5
max_percent = 10
zerolend = ZeroLend(account_id, key, proxy)
await zerolend.deposit(
min_amount, max_amount, decimal, sleep_from, sleep_to, make_withdraw, all_amount, min_percent, max_percent
)
async def bridge_nft(account_id, key, proxy):
"""
Make mint NFT and bridge NFT on L2Telegraph
"""
sleep_from = 5
sleep_to = 20
l2telegraph = L2Telegraph(account_id, key, proxy)
await l2telegraph.bridge(sleep_from, sleep_to)
async def mint_tavaera(account_id, key, proxy):
"""
Mint Tavaera ID and Tavaera NFT
"""
sleep_from = 5
sleep_to = 20
tavaera_nft = Tavaera(account_id, key, proxy)
await tavaera_nft.mint(sleep_from, sleep_to)
async def swap_tokens(account_id, key, proxy):
"""
SwapTokens module: Automatically swap tokens to ETH
______________________________________________________
use_dex - Choose any dex:
syncswap, mute, spacefi, pancake, woofi, maverick, odos, zkswap, xyswap, openocean, inch, vesync
"""
use_dex = [
"maverick", "mute", "pancake", "syncswap",
"woofi", "spacefi", "odos", "zkswap",
"xyswap", "openocean", "inch", "vesync"
]
use_tokens = ["USDC"]
sleep_from = 300
sleep_to = 600
slippage = 1
min_percent = 100
max_percent = 100
swap_tokens = SwapTokens(account_id, key, proxy)
await swap_tokens.swap(use_dex, use_tokens, sleep_from, sleep_to, slippage, min_percent, max_percent)
async def swap_multiswap(account_id, key, proxy):
"""
Multi-Swap module: Automatically performs the specified number of swaps in one of the dexes.
______________________________________________________
use_dex - Choose any dex:
syncswap, mute, spacefi, pancake, woofi, maverick, odos, zkswap, xyswap, openocean, inch, vesync
quantity_swap - Quantity swaps
______________________________________________________
random_swap_token - If True the swap path will be [ETH -> USDC -> USDC -> ETH] (random!)
If False the swap path will be [ETH -> USDC -> ETH -> USDC]
"""
use_dex = [
"maverick", "mute", "pancake", "syncswap",
"woofi", "spacefi", "odos", "zkswap",
"xyswap", "openocean", "inch", "vesync"
]
min_swap = 1
max_swap = 1
sleep_from = 300
sleep_to = 600
slippage = 1
random_swap_token = True
min_percent = 10
max_percent = 10
multi = Multiswap(account_id, key, proxy)
await multi.swap(
use_dex, sleep_from, sleep_to, min_swap, max_swap, slippage, random_swap_token, min_percent, max_percent
)
async def mint_nft(account_id, key, proxy):
"""
Mint NFT on NFTS2ME
______________________________________________________
contracts - list NFT contract addresses
"""
contracts = ["0x4b363957913012789874ab6796bdb7b29d4588d3"]
minter = Minter(account_id, key, proxy)
await minter.mint_nft(contracts)
async def custom_routes(account_id, key, proxy):
"""
BRIDGE:
– bridge_zksync
– withdraw_zksync
– bridge_orbiter
– bungee_refuel
– stargate_bridge
WRAP:
– wrap_eth
– unwrap_eth
DEX:
– swap_syncswap
– swap_maverick
– swap_mute
– swap_spacefi
– swap_pancake
– swap_woofi
– swap_odos
– swap_zkswap
– swap_xyswap
– swap_inch
– swap_openocean
– swap_vesync
LIQUIDITY:
– liquidity_syncswap
– liquidity_spacefi
LANDING:
– deposit_eralend, withdraw_erlaned, enable_collateral_eralend, disable_collateral_eralend
– deposit_basilisk, withdraw_basilisk, enable_collateral_basilisk, disable_collateral_basilisk
– deposit_reactorfusion, withdraw_reactorfusion,
enable_collateral_reactorfusion, disable_collateral_reactorfusion
– deposit_zerolend
– withdraw_zerolend
NFT/DOMAIN:
– create_omnisea
– bridge_nft
– mint_tavaera
– mint_nft
– mint_mailzero_nft
– mint_zks_domain
– mint_era_domain
ANOTHER:
– send_message (l2Telegraph)
– send_mail (Dmail)
– swap_multiswap
– swap_tokens
– deploy_contract_zksync
– create_safe
______________________________________________________
Disclaimer - You can add modules to [] to select random ones,
example [module_1, module_2, [module_3, module_4], module 5]
The script will start with module 1, 2, 5 and select a random one from module 3 and 4
You can also specify None in [], and if None is selected by random, this module will be skipped
"""
use_modules = [
swap_multiswap,
[mint_tavaera, create_omnisea, None],
[deposit_eralend, deposit_basilisk, deposit_reactorfusion],
[mint_era_domain, mint_zks_domain]
]
sleep_from = 300
sleep_to = 700
random_module = True
routes = Routes(account_id, key, proxy)
await routes.start(use_modules, sleep_from, sleep_to, random_module)
async def multi_approve(account_id, key, proxy):
"""
Make approve all tokens from config in SyncSwap, Mute, SpaceFi, Pancake, WooFi, Velocore
Disclaimer - You can use 0 for cancel approve
"""
amount = 0
sleep_from = 30
sleep_to = 95
multiapprove = MultiApprove(account_id, key, proxy)
await multiapprove.start(amount, sleep_from, sleep_to)
#########################################
########### NO NEED TO CHANGE ###########
#########################################
async def send_mail(account_id, key, proxy):
dmail = Dmail(account_id, key, proxy)
await dmail.send_mail()
async def send_message(account_id, key, proxy):
l2telegraph = L2Telegraph(account_id, key, proxy)
await l2telegraph.send_message()
async def mint_mailzero_nft(account_id, key, proxy):
mint_nft = MailZero(account_id, key, proxy)
await mint_nft.mint()
async def mint_zks_domain(account_id, key, proxy):
zks_domain = ZKSDomain(account_id, key, proxy)
await zks_domain.mint()
async def mint_era_domain(account_id, key, proxy):
era_domain = EraDomain(account_id, key, proxy)
await era_domain.mint()
async def withdraw_erlaned(account_id, key, proxy):
eralend = Eralend(account_id, key, proxy)
await eralend.withdraw()
async def enable_collateral_eralend(account_id, key, proxy):
eralend = Eralend(account_id, key, proxy)
await eralend.enable_collateral()
async def disable_collateral_eralend(account_id, key, proxy):
eralend = Eralend(account_id, key, proxy)
await eralend.disable_collateral()
async def withdraw_basilisk(account_id, key, proxy):
basilisk = Basilisk(account_id, key, proxy)
await basilisk.withdraw()
async def enable_collateral_basilisk(account_id, key, proxy):
basilisk = Basilisk(account_id, key, proxy)
await basilisk.enable_collateral()
async def disable_collateral_basilisk(account_id, key, proxy):
basilisk = Basilisk(account_id, key, proxy)
await basilisk.disable_collateral()
async def withdraw_reactorfusion(account_id, key, proxy):
reactorfusion = ReactorFusion(account_id, key, proxy)
await reactorfusion.withdraw()
async def enable_collateral_reactorfusion(account_id, key, proxy):
reactorfusion = ReactorFusion(account_id, key, proxy)
await reactorfusion.enable_collateral()
async def disable_collateral_reactorfusion(account_id, key, proxy):
reactorfusion = ReactorFusion(account_id, key, proxy)
await reactorfusion.disable_collateral()
async def withdraw_zerolend(account_id, key, proxy):
zerolend = ZeroLend(account_id, key, proxy)
await zerolend.withdraw()
async def create_omnisea(account_id, key, proxy):
omnisea = Omnisea(account_id, key, proxy)
await omnisea.create()
async def create_safe(account_id, key, proxy):
gnosis_safe = GnosisSafe(account_id, key, proxy)
await gnosis_safe.create_safe()
def get_tx_count():
asyncio.run(check_tx())