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

@@ -102,7 +102,6 @@ def get_var_inputs():
102
102
  return [inputs]
103
103
  def clear_inputs(window):
104
104
  for i in range(get_longest(get_list_vars())):
105
- print(i)
106
105
  window[f'var_{i}'].update(value='')
107
106
  window[f'input_{i}'].update(value='')
108
107
  def get_dict_from_vars(values, function):
@@ -156,7 +155,6 @@ def second_window():
156
155
  # Get function by its name dynamically
157
156
 
158
157
  try:
159
- print(revsa)
160
158
  # Pass filtered arguments
161
159
  result = get_result(function,dictsa)
162
160
  params =result.get('params',[])
@@ -175,12 +173,10 @@ def second_window():
175
173
 
176
174
 
177
175
 
178
- print(params)
179
176
  except TypeError as e:
180
177
  print(f"Error calling function: {e}")
181
178
  result = {}
182
179
  results[lowered] = result
183
- print(results)
184
180
  window = sg.Window('Script launcher', layout)
185
181
  results = {}
186
182
  while True:
@@ -205,10 +201,8 @@ def second_window():
205
201
 
206
202
  try:
207
203
  filtered_values = get_dict_from_vars(values, function)
208
- print(filtered_values)
209
204
  # Pass filtered arguments
210
205
  result = get_result(function,dictsa)
211
- print(result)
212
206
  except TypeError as e:
213
207
  print(f"Error calling function: {e}")
214
208
  result = {}
@@ -39,7 +39,7 @@ class RateLimiter(metaclass=SingletonMeta):
39
39
  def __init__(self, rpc_url=None, fallback_rpc_url=None, env_directory=None,save_state_path = None):
40
40
  if not hasattr(self, 'initialized'): # Prevent reinitialization
41
41
  self.initialized = True
42
- self.rpc_url = rpc_url or get_env_value(key="solana_primary_rpc_url", path=env_directory) or "http://api.mainnet-beta.solana.com"
42
+ self.rpc_url = rpc_url or get_env_value(key="solana_primary_rpc_url", path=env_directory) or "https://api.mainnet-beta.solana.com"
43
43
  self.fallback_rpc_url = fallback_rpc_url or get_env_value(key="solana_fallback_rpc_url", path=env_directory)
44
44
  self.state_file = save_state_path or getSaveStatePath()
45
45
  self.url1 = self.rpc_url
@@ -83,15 +83,17 @@ 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):
86
+ if method not in self.last_mb[url]:
87
+ self.last_mb[url][method] = 0
88
+
89
+ if self.set_cooldown(url, method):
90
90
  print(f'set_cooldown for method {method} in {url} hit')
91
91
  return True
92
92
 
93
93
  # Clean up expired queries for the current URL
94
- self.rate_limits[url] = [query for query in self.rate_limits[url] if is_time_interval(query.get('time') or 0, 30)]
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
+ ]
95
97
  last_rate_limit = self.get_last_rate_limit(url)
96
98
 
97
99
  # Check data size limits
@@ -109,7 +111,9 @@ class RateLimiter(metaclass=SingletonMeta):
109
111
  print(f'time_rate {time_rate} of timerate limit 100 hit')
110
112
  return True
111
113
 
112
- method_specific_time_rate = [query for query in time_rate if query['method'] == method]
114
+ method_specific_time_rate = [
115
+ query for query in time_rate if query['method'] == method
116
+ ]
113
117
  if len(method_specific_time_rate) > 40:
114
118
  print(f'method_specific_time_rate {len(method_specific_time_rate)} of method_specific_time_rate limit 40 hit')
115
119
  return True
@@ -168,6 +172,6 @@ class RateLimiter(metaclass=SingletonMeta):
168
172
  if not is_limit:
169
173
  self.last_method = method
170
174
  self.last_url = self.url1
175
+ print([is_limit,self.last_url])
171
176
  return self.last_url
172
177
 
173
-
@@ -14,5 +14,4 @@ def load_keypair_from_file(filename):
14
14
  with open(curr, 'r') as file:
15
15
  secret = json.load(file)
16
16
  secret_key = bytes(secret)
17
- print(base58.b58encode(secret_key))
18
17
  return Keypair.from_bytete_key()
@@ -4,6 +4,7 @@ from .price_utils import *
4
4
  from .signature_data_parse import get_log_messages_from_txn,get_instructions_from_txn,get_inner_instructions_from_txn
5
5
  from .account_key_utils import get_all_account_keys
6
6
  from .constants import TOKEN_PROGRAM_ID
7
+ input(TOKEN_PROGRAM_ID)
7
8
  def ifListGetSection(list_obj,i=0):
8
9
  if list_obj and isinstance(list_obj,list) and len(list_obj)>i:
9
10
  list_obj = list_obj[i]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_solana
3
- Version: 0.0.2.96
3
+ Version: 0.0.2.98
4
4
  Home-page: https://github.com/AbstractEndeavors/abstract_solana
5
5
  Author: putkoff
6
6
  Author-email: partners@abstractendeavors.com
@@ -19,8 +19,8 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Requires-Python: >=3.6
20
20
  Description-Content-Type: text/markdown
21
21
  Requires-Dist: solders
22
- Requires-Dist: abstract-solcatcher
23
- Requires-Dist: abstract-utilities
22
+ Requires-Dist: abstract_solcatcher
23
+ Requires-Dist: abstract_utilities
24
24
  Requires-Dist: solana
25
25
 
26
26
  ## Abstract Solana
@@ -1,17 +1,17 @@
1
1
  abstract_solana/__init__.py,sha256=uEPtTF-WPCIwpwR8OgAI5prloYQpPbx-YExFgzZvFkQ,59
2
2
  abstract_solana/abstract_rpcs/__init__.py,sha256=LIkUCWcuzUWVN1WjzcXjQ9Pl7cbcN8TwknXir-Uk34c,168
3
3
  abstract_solana/abstract_rpcs/db_templates.py,sha256=sjdHfHIq9bO6VuDm3hwzn46NUrXXrGnB0knYNeVU7k8,29839
4
- abstract_solana/abstract_rpcs/get_api_gui.py,sha256=OZ61HHb0gwdYjirwFFmnwk8z9x5np3cecCj9MdmuF8U,12372
4
+ abstract_solana/abstract_rpcs/get_api_gui.py,sha256=zii6XCRD_wmgcupqCSH5lyXIvg5nxZdpmcQm4ykDi0o,12180
5
5
  abstract_solana/abstract_rpcs/get_body.py,sha256=UV85217q7mIpYOhVZdnzfmgZxD3QM0w0J0oevXyYtdE,51272
6
- abstract_solana/abstract_rpcs/rate_limiter.py,sha256=TC1bvhUbNXLor3fd4Q039_h-awuRKEl2HHFR51k0Rt4,7186
6
+ abstract_solana/abstract_rpcs/rate_limiter.py,sha256=yfUwmdMXty05VN_A-baTrOKY4EH9fYF1Vc7SKPZgcTk,7248
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
10
10
  abstract_solana/abstract_utils/constants.py,sha256=cSmCKzQiNZocX1YkKYrdY-O449aYhi7BT_j-45HZN-E,1418
11
11
  abstract_solana/abstract_utils/genesis_functions.py,sha256=2WRQUxN9j-dpLfYIBiX3URM-_uDGkh-eTy08Gi-qWgo,939
12
12
  abstract_solana/abstract_utils/index_utils.py,sha256=Ed07BYTZWp-SVfpthAUqjRY00U3ZYldPCqd7LJy9AO8,1884
13
- abstract_solana/abstract_utils/keypair_utils.py,sha256=YPiyjdh6F3JOmgcmXWR72EmSZKy0UF5AbYebeKSu86w,616
14
- abstract_solana/abstract_utils/log_message_functions.py,sha256=-qGO4rJRHKVEV8eqs4OCe5Rx1osTlEoc07fUruMBFp8,8080
13
+ abstract_solana/abstract_utils/keypair_utils.py,sha256=VgbwbX9BcXnypkbBJkPwXmSIKORUlMVakkoLk7hTXCw,572
14
+ abstract_solana/abstract_utils/log_message_functions.py,sha256=smkTnxpe8nMxh6NEFjzPoxrn7ojEcLwBLX21K7wAWzs,8104
15
15
  abstract_solana/abstract_utils/price_utils.py,sha256=BLkwFLhlsTHeW0NTdzCAUi2xhc2lX7SrHz5sslDbUrY,4288
16
16
  abstract_solana/abstract_utils/pubkey_utils.py,sha256=TAYF74fKAuTBnqIP2SnA-BttO5uoHbxI9BRZRpGCMNY,2010
17
17
  abstract_solana/abstract_utils/signature_data_parse.py,sha256=5AOMtJZADWcwR0JLDbd2kXZNzW129qeB0lvYUrE_tm0,1974
@@ -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.96.dist-info/METADATA,sha256=N-bJx4co4VercvIzTFIbvAqabD4m7KvGY5D7ihhdUUU,981
24
- abstract_solana-0.0.2.96.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
25
- abstract_solana-0.0.2.96.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
26
- abstract_solana-0.0.2.96.dist-info/RECORD,,
23
+ abstract_solana-0.0.2.98.dist-info/METADATA,sha256=9K6fcYAwHiDydfshe0m2VYHoZnzQmdnnZ4gXzoJzMJ8,981
24
+ abstract_solana-0.0.2.98.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
25
+ abstract_solana-0.0.2.98.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
26
+ abstract_solana-0.0.2.98.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.5.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5