web3-wizzard-lib 1.4.0__py3-none-any.whl → 1.4.3__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.
@@ -15,7 +15,7 @@ class NilePool(Pool):
15
15
  super().__init__(chain_instance, web3)
16
16
  self.nile_contract = NileContract(self.velocore_pool_contract_address, self.web3)
17
17
 
18
- @retry(max_attempts=10, retry_interval={'from': 10, 'to': 20})
18
+ @retry(max_attempts=2, retry_interval={'from': 10, 'to': 20})
19
19
  def deposit(self, amount_interval, account, token, min_native_balance, chain):
20
20
  amount = interval_to_eth_balance(amount_interval, account, chain, self.web3)
21
21
 
@@ -33,7 +33,7 @@ class NilePool(Pool):
33
33
  logger.info(f"Deposit {amount} and {nile_token.balance(account)}")
34
34
  self.nile_contract.add_liquidity_eth(account, nile_token.erc20_contract.contract_address, pool_amount, amount)
35
35
 
36
- @retry(max_attempts=10, retry_interval={'from': 10, 'to': 20})
36
+ @retry(max_attempts=2, retry_interval={'from': 10, 'to': 20})
37
37
  def withdraw(self, account, token, chain):
38
38
  weth_zero_address = get_tokens_for_chain(chain)[f"WETH_{token}_LP"]
39
39
 
@@ -1,9 +1,9 @@
1
1
  import csv
2
2
  import datetime
3
3
  import os
4
- from google.oauth2.service_account import Credentials
5
4
  from googleapiclient.discovery import build
6
5
  from loguru import logger
6
+ from sybil_engine.utils.google_utils import get_google_credentials
7
7
 
8
8
  from sybil_engine.utils.telegram import get_config
9
9
 
@@ -48,9 +48,8 @@ class CsvStatisticsWriter(StatisticsWriter):
48
48
 
49
49
  class GoogleStatisticsWriter(StatisticsWriter):
50
50
  def __init__(self, sheet):
51
- self.SERVICE_ACCOUNT_FILE = 'data/service-accounts.json'
52
51
  self.SCOPES = ['https://www.googleapis.com/auth/spreadsheets']
53
- self.credentials = Credentials.from_service_account_file(self.SERVICE_ACCOUNT_FILE, scopes=self.SCOPES)
52
+ self.credentials = get_google_credentials()
54
53
  self.service = build('sheets', 'v4', credentials=self.credentials)
55
54
 
56
55
  self.sheet = sheet
@@ -0,0 +1 @@
1
+ sybil-engine==10.3.1
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: web3_wizzard_lib
3
- Version: 1.4.0
3
+ Version: 1.4.3
4
4
  Summary: Engine for web3 smart contracts automatization.
5
5
  Home-page: https://github.com/Indeoo/web3-wizzard-lib/
6
6
  Author: Indeoo
7
7
  Author-email: indeooars@gmail.com
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: sybil-engine==10.2.0
9
+ Requires-Dist: sybil-engine==10.3.1
10
10
  Dynamic: author
11
11
  Dynamic: author-email
12
12
  Dynamic: description-content-type
@@ -147,7 +147,7 @@ web3_wizzard_lib/core/modules/intract/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCe
147
147
  web3_wizzard_lib/core/modules/intract/intract_api.py,sha256=Pc4LNhp0BoHvr2qLlUXGVFQjh-s0_eG8VcTPG5LB7zQ,8597
148
148
  web3_wizzard_lib/core/modules/intract/utils.py,sha256=i3LbPGLHtMQ3qjbwfADJ0W2CjJo04sc5CYBPKl5zHhg,2811
149
149
  web3_wizzard_lib/core/modules/liquidity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
150
- web3_wizzard_lib/core/modules/liquidity/nile_pool.py,sha256=7bQJpRTgyhctBhFLkjqJulMuNT94Lzz7HX7tOQ1BsIo,2616
150
+ web3_wizzard_lib/core/modules/liquidity/nile_pool.py,sha256=dvKJzo43qtZcGXA9xsolks403cnbXHcDVTvRzr_DfVU,2614
151
151
  web3_wizzard_lib/core/modules/liquidity/pool.py,sha256=fiQ_EtxUMxcmtSPPQq601qL8cxNfEnaQgtlaOF-jsfg,498
152
152
  web3_wizzard_lib/core/modules/liquidity/syncswap_pool.py,sha256=rJtoGsz4DPtediDHlAQBttH4hCFpEAYccf8v6GRy2VY,2591
153
153
  web3_wizzard_lib/core/modules/liquidity/velocore_pool.py,sha256=rgCaFX20FJyHI94EGKH0lV7E9QhiyC0bRYY29rJGjVk,2286
@@ -259,7 +259,7 @@ web3_wizzard_lib/core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
259
259
  web3_wizzard_lib/core/utils/ai_utils.py,sha256=hNRgDbD363RNS35bOgYFlSo6P6yqU6ptZ6fIkoMkL44,1025
260
260
  web3_wizzard_lib/core/utils/benchmark_utils.py,sha256=3YBPXseWJb_BpBJtWWU6Dc5kydyhX4YWSvEWj4v6ekk,286
261
261
  web3_wizzard_lib/core/utils/module_memory.py,sha256=Ot-C3g9ax9frTTpWSLQqsbGcp7WMmmHKM9R7qI920xk,436
262
- web3_wizzard_lib/core/utils/statistic_utils.py,sha256=LpeQIK6Ehrg3PJfPahcodFIAiTtl1_n-Y2s1c5ilNtY,5582
262
+ web3_wizzard_lib/core/utils/statistic_utils.py,sha256=bOvycR-xqZRC9zKvVrkuk_7dFeMMpRnQbyo7QGUupXc,5470
263
263
  web3_wizzard_lib/core/utils/sub_module.py,sha256=r7C89nhlOUAYtCI92JINapS_-5hUUYX7YnY9hQLgHKg,117
264
264
  web3_wizzard_lib/resources/banner.txt,sha256=SU35B1n9GopZLhMIwWFF6L2z4_kxz1N1ZhN8LZx49SA,666
265
265
  web3_wizzard_lib/resources/linea_appeal.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -361,8 +361,8 @@ web3_wizzard_lib/resources/main/contracts.json,sha256=jGeEoEiys1Itg7s5WFIeVFKis9
361
361
  web3_wizzard_lib/resources/main/networks.json,sha256=dmZLOsSaj2_CJwLqS4Deb4FgQrxPWpIQKGml6cXfKzI,6465
362
362
  web3_wizzard_lib/resources/main/pairs.json,sha256=uvIFvY46Ctiw8hjGd9e-1WE0qLf_duo3MuZncRMLqGg,8262
363
363
  web3_wizzard_lib/resources/main/tokens.json,sha256=AoZz_I6AVoZuecNdyX5L-SnGm6TREuPrsYd2i9PJr7U,5707
364
- web3_wizzard_lib-1.4.0.data/data/requirements.txt,sha256=LseIfXHiQtQ2BwAuoLerqcMnEIhAXCEaih5orRITsuA,20
365
- web3_wizzard_lib-1.4.0.dist-info/METADATA,sha256=P9C1rG_alrELK7dC49YMUo5g4x6ZdshADsgmb0jzndg,428
366
- web3_wizzard_lib-1.4.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
367
- web3_wizzard_lib-1.4.0.dist-info/top_level.txt,sha256=8dD8S5HQo4dKtxogttWY_sh4n3yCVy0MwiTelYp6kug,28
368
- web3_wizzard_lib-1.4.0.dist-info/RECORD,,
364
+ web3_wizzard_lib-1.4.3.data/data/requirements.txt,sha256=1yiy6f7m2XBGiXoYhSVTxI8SEsfimGGxBJU9708bYFE,20
365
+ web3_wizzard_lib-1.4.3.dist-info/METADATA,sha256=z8pkTP2wixOd3Od_-PZLTRmxjTHOtn7H163oVp5JJHc,428
366
+ web3_wizzard_lib-1.4.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
367
+ web3_wizzard_lib-1.4.3.dist-info/top_level.txt,sha256=8dD8S5HQo4dKtxogttWY_sh4n3yCVy0MwiTelYp6kug,28
368
+ web3_wizzard_lib-1.4.3.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- sybil-engine==10.2.0