abstract-solana 0.0.2.91__py3-none-any.whl → 0.0.2.92__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.

Potentially problematic release.


This version of abstract-solana might be problematic. Click here for more details.

@@ -83,17 +83,15 @@ class RateLimiter(metaclass=SingletonMeta):
83
83
  return {}
84
84
 
85
85
  def is_all_limit(self, url, method):
86
- if url == self.url1:
87
- if method not in self.last_mb:
88
- self.last_mb[method] = 0
89
- if self.set_cooldown(url, method):
90
- print(f'set_cooldown for method {method} in {url} hit')
91
- return True
86
+ if url == self.url1:
87
+ if method not in self.last_mb:
88
+ self.last_mb[method] = 0
89
+ if self.set_cooldown(url, method):
90
+ print(f'set_cooldown for method {method} in {url} hit')
91
+ return True
92
92
 
93
93
  # Clean up expired queries for the current URL
94
- self.rate_limits[url] = [
95
- query for query in self.rate_limits[url] if is_time_interval(query.get('time') or 0, 30)
96
- ]
94
+ self.rate_limits[url] = [query for query in self.rate_limits[url] if is_time_interval(query.get('time') or 0, 30)]
97
95
  last_rate_limit = self.get_last_rate_limit(url)
98
96
 
99
97
  # Check data size limits
@@ -111,14 +109,14 @@ class RateLimiter(metaclass=SingletonMeta):
111
109
  print(f'time_rate {time_rate} of timerate limit 100 hit')
112
110
  return True
113
111
 
114
- method_specific_time_rate = [
112
+ method_specific_time_rate = [
115
113
  query for query in time_rate if query['method'] == method
116
- ]
117
- if len(method_specific_time_rate) > 40:
114
+ ]
115
+ if len(method_specific_time_rate) > 40:
118
116
  print(f'method_specific_time_rate {len(method_specific_time_rate)} of method_specific_time_rate limit 40 hit')
119
117
  return True
120
118
 
121
- return False
119
+ return False
122
120
 
123
121
  def log_response(self, method=None, response=None, retry_after=None):
124
122
  method = method or 'default_method'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_solana
3
- Version: 0.0.2.91
3
+ Version: 0.0.2.92
4
4
  Home-page: https://github.com/AbstractEndeavors/abstract_solana
5
5
  Author: putkoff
6
6
  Author-email: partners@abstractendeavors.com
@@ -3,7 +3,7 @@ abstract_solana/abstract_rpcs/__init__.py,sha256=LIkUCWcuzUWVN1WjzcXjQ9Pl7cbcN8T
3
3
  abstract_solana/abstract_rpcs/db_templates.py,sha256=sjdHfHIq9bO6VuDm3hwzn46NUrXXrGnB0knYNeVU7k8,29839
4
4
  abstract_solana/abstract_rpcs/get_api_gui.py,sha256=OZ61HHb0gwdYjirwFFmnwk8z9x5np3cecCj9MdmuF8U,12372
5
5
  abstract_solana/abstract_rpcs/get_body.py,sha256=UV85217q7mIpYOhVZdnzfmgZxD3QM0w0J0oevXyYtdE,51272
6
- abstract_solana/abstract_rpcs/rate_limiter.py,sha256=CxE1F3xYlLITW9wlLS3RMrIl8t1JNeHw0qaHFz-8MJ0,7257
6
+ abstract_solana/abstract_rpcs/rate_limiter.py,sha256=TJgGKgQ50eo101eNmqYj1FF9Nbf7AxNmlE7HEVK4WUY,7251
7
7
  abstract_solana/abstract_rpcs/solana_rpc_client.py,sha256=s-Mg0mDcDwjU3dm6nK_U6wWysaWTLoC4eXpSHbYsbyY,4132
8
8
  abstract_solana/abstract_utils/__init__.py,sha256=HCbBVQ5BIFCVkFqqTMHp1Y__YQAO4HTq_KHVdMCe89U,296
9
9
  abstract_solana/abstract_utils/account_key_utils.py,sha256=VMJd4GOTK1vn8UZsfXDnjxDOGoQWGY6fvflJqPZ7Xvs,877
@@ -20,7 +20,7 @@ abstract_solana/pump_functions/__init__.py,sha256=BiRxwJd1JWwEft63zqYwZ_Xs6UDp4h
20
20
  abstract_solana/pump_functions/buy_sell_pump.py,sha256=gjv_1et20s1Li0ygcURofO29VPkO1v-a5G5Bo_sZs_c,7860
21
21
  abstract_solana/pump_functions/pump_fun_keys.py,sha256=BeWbV9_wd-c6ydF33drW-gZBDPWolbsMZL4cNhP3eOU,8537
22
22
  abstract_solana/pump_functions/token_utils.py,sha256=O-Fgj3L1NhND-k4INa3WvLAEXg2N9u1fVqyLFzn1PwM,2714
23
- abstract_solana-0.0.2.91.dist-info/METADATA,sha256=fACxV9Siz1gdlBXbTZ1uycbVMaorSEXK6eoUlJQCdm8,981
24
- abstract_solana-0.0.2.91.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
25
- abstract_solana-0.0.2.91.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
26
- abstract_solana-0.0.2.91.dist-info/RECORD,,
23
+ abstract_solana-0.0.2.92.dist-info/METADATA,sha256=uUMEQ_13qj0EdcB-XSCC3gtjzboWA0NvFUDYG2OKLiY,981
24
+ abstract_solana-0.0.2.92.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
25
+ abstract_solana-0.0.2.92.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
26
+ abstract_solana-0.0.2.92.dist-info/RECORD,,