web3-wizzard-lib 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl

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.
@@ -1,18 +1,15 @@
1
- from json import load
2
-
3
1
  from eth_account.messages import encode_defunct
4
2
  from loguru import logger
5
3
  from sybil_engine.data.networks import get_chain_instance
6
4
  from sybil_engine.module.module import Module
5
+ from sybil_engine.utils.file_loader import load_abi
7
6
  from sybil_engine.utils.utils import AccountException
8
7
  from sybil_engine.utils.web3_utils import init_web3
9
8
 
10
9
  from web3_wizzard_lib.core.modules.intract.intract_api import IntractAPI
11
10
  from web3_wizzard_lib.core.modules.intract.utils import TgReport, WindowName, make_text_border
12
11
 
13
- with open('resources/verify_data.json') as f:
14
- VERIFY_DATA = load(f)
15
-
12
+ VERIFY_DATA = load_abi("resources/verify_data.json")
16
13
 
17
14
  class IntractClaim(Module):
18
15
  module_name = 'INTRACT_CLAIM'
@@ -22,6 +22,10 @@ class LineaAppeal(Module):
22
22
  with open("resources/linea_appeal.txt") as f:
23
23
  linea_appeal_reason = f.read()
24
24
 
25
+ with open("resources/ai_style_randomized.txt") as f:
26
+ lines = f.readlines()
27
+ ai_style_randomized = random.choice(lines)
28
+
25
29
  def execute(self, token, accounts, statistic_write, ai_type, account):
26
30
  add_accumulator("Acc Num", 1)
27
31
 
@@ -50,7 +54,9 @@ class LineaAppeal(Module):
50
54
 
51
55
  if (get_by_key(APPEAL_ACCOUNTS_AMOUNT) == len(get_by_key(APPEAL_ACCOUNTS))
52
56
  or get_value("Acc Num") == get_value("Acc Amount")):
53
- reason = chat_gpt.ask(self.linea_appeal_reason)
57
+ reason = chat_gpt.ask(
58
+ self.linea_appeal_reason.replace("{random_style}", self.ai_style_randomized)
59
+ )
54
60
  logger.info(reason)
55
61
 
56
62
  statistics.write_row(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: web3_wizzard_lib
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Engine for web3 smart contracts automatization.
5
5
  Home-page: https://github.com/Indeoo/web3-wizzard-lib/
6
6
  Author: Indeoo
@@ -102,10 +102,10 @@ web3_wizzard_lib/core/modules/coredao_bridge_auto.py,sha256=lMKP07P5FuuSykN3eb3K
102
102
  web3_wizzard_lib/core/modules/debank_checker.py,sha256=XCJk8VedNoHpdAQXk36dbdpZxJamcUuWDmud3i8ycPI,2792
103
103
  web3_wizzard_lib/core/modules/dmail.py,sha256=ox5sMMQ7OqpSnLdt3VSvS0eFEhK5Qy8JZB5MsmNkp9k,1703
104
104
  web3_wizzard_lib/core/modules/erc20_balance.py,sha256=4mxd6QpOgnHHqUB0u6ya1Kh_xw3Mq7ObaILw8jgfVNk,1394
105
- web3_wizzard_lib/core/modules/intract_claim.py,sha256=TyWtlZ6Rlx8ukG2elc4Lcr_ImF1K2RL2lz_EkhNfJBc,3744
105
+ web3_wizzard_lib/core/modules/intract_claim.py,sha256=jfXuLYCpgYsEZsf3FHxvDbfqcX1gI-ZC8QUiIIa71ZA,3753
106
106
  web3_wizzard_lib/core/modules/layer_2_20.py,sha256=1MvidKQBS5GhBzH6yAmjTf1VHnM96_Wb0sGF24TTXJo,2475
107
107
  web3_wizzard_lib/core/modules/lending_module.py,sha256=Sy0P-Ojt3e1JVMUCqpG06-DsiuTCvvHilgSj_QJPCwg,5517
108
- web3_wizzard_lib/core/modules/linea_appeal.py,sha256=iXDNS8hnRqr2xzyz-kYAmGkRuBIyRDl5x-zDKHLNBI8,3100
108
+ web3_wizzard_lib/core/modules/linea_appeal.py,sha256=hgIn9f4llswfN6vZC2tX34YPt-ZVZ_QgROEDmy0gBRs,3321
109
109
  web3_wizzard_lib/core/modules/linea_poh_lxp.py,sha256=keipTIhT3SrOESNJdIJesHBOOM-NKVzMGqKEACEKIvQ,2320
110
110
  web3_wizzard_lib/core/modules/liquidity_pool.py,sha256=vu0vBoXomvAJFa10n9woo66v62hQbEO726M4lkiLWNE,2181
111
111
  web3_wizzard_lib/core/modules/merkly_refuel.py,sha256=whQD6CplGt-hQxFN7lg40F6SmFU5niOO529lKMj0dyA,3488
@@ -354,8 +354,8 @@ web3_wizzard_lib/resources/main/contracts.json,sha256=k6p36RmuVnj6ebcDzpIE-VUHM8
354
354
  web3_wizzard_lib/resources/main/networks.json,sha256=dmZLOsSaj2_CJwLqS4Deb4FgQrxPWpIQKGml6cXfKzI,6465
355
355
  web3_wizzard_lib/resources/main/pairs.json,sha256=uvIFvY46Ctiw8hjGd9e-1WE0qLf_duo3MuZncRMLqGg,8262
356
356
  web3_wizzard_lib/resources/main/tokens.json,sha256=AoZz_I6AVoZuecNdyX5L-SnGm6TREuPrsYd2i9PJr7U,5707
357
- web3_wizzard_lib-1.0.0.data/data/requirements.txt,sha256=5oZVZuID8L00sR9kJZYJg-TYMRN1WY93ktdNIhPIzX8,20
358
- web3_wizzard_lib-1.0.0.dist-info/METADATA,sha256=YqNXs5oTgzsQaa4OVmv43zuNfnrlbxjpbLojvUTlbHk,428
359
- web3_wizzard_lib-1.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
360
- web3_wizzard_lib-1.0.0.dist-info/top_level.txt,sha256=8dD8S5HQo4dKtxogttWY_sh4n3yCVy0MwiTelYp6kug,28
361
- web3_wizzard_lib-1.0.0.dist-info/RECORD,,
357
+ web3_wizzard_lib-1.0.2.data/data/requirements.txt,sha256=5oZVZuID8L00sR9kJZYJg-TYMRN1WY93ktdNIhPIzX8,20
358
+ web3_wizzard_lib-1.0.2.dist-info/METADATA,sha256=_1tUjnvzMPnI1XRr4qzKzTus_MLn1x8Ja9RGOQUGXME,428
359
+ web3_wizzard_lib-1.0.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
360
+ web3_wizzard_lib-1.0.2.dist-info/top_level.txt,sha256=8dD8S5HQo4dKtxogttWY_sh4n3yCVy0MwiTelYp6kug,28
361
+ web3_wizzard_lib-1.0.2.dist-info/RECORD,,