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

@@ -17,9 +17,7 @@ async def confirm_txn(txn_sig, max_retries=20, retry_interval=3):
17
17
  retries = 0
18
18
  while retries < max_retries:
19
19
  txn_res = getTransaction(signature=str(txn_sig))
20
- print(txn_res)
21
20
  if txn_res:
22
- print(txn_res)
23
21
  print(f"\n\nhttps://solscan.io/tx/{str(txn_sig)}")
24
22
  return txn_res
25
23
  retries += 1
@@ -27,10 +25,10 @@ async def confirm_txn(txn_sig, max_retries=20, retry_interval=3):
27
25
  await asyncio.sleep(retry_interval)
28
26
  print(f"Failed to confirm transaction after {max_retries} attempts.")
29
27
  return txn_sig
30
- def complete_txn(txn, payer_keypair):
28
+ async def complete_txn(txn, payer_keypair):
31
29
  txn_sig = sendTransaction(txn=txn,payer_keypair=payer_keypair, skip_preflight=True)
32
30
  print("Transaction Signature", txn_sig)
33
- confirm = asyncio.run(confirm_txn(txn_sig))
31
+ confirm = await confirm_txn(txn_sig)
34
32
  while not confirm:
35
33
  print("Waiting for transaction confirmation...")
36
34
  time.sleep(1) # Wait for 1 second before checking again
@@ -132,7 +130,7 @@ def buy_pump(mint:str, payer_keypair:Pubkey,sol_in=None,slippage=None):
132
130
  slippage = slippage or 25
133
131
  payer_pubkey = get_pubkey(payer_keypair.pubkey())
134
132
  txn = pump_fun_buy(mint=mint, payer_pubkey=payer_pubkey,sol_in=sol_in,slippage=slippage)
135
- completed = complete_txn(txn, payer_keypair)
133
+ completed = asyncio.run(complete_txn(txn, payer_keypair))
136
134
  if not completed:
137
135
  print("Buy transaction failed")
138
136
  return completed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_solana
3
- Version: 0.0.0.67
3
+ Version: 0.0.0.68
4
4
  Home-page: https://github.com/AbstractEndeavors/abstract_solana
5
5
  Author: putkoff
6
6
  Author-email: partners@abstractendeavors.com
@@ -11,11 +11,11 @@ abstract_solana/pumpFunKeys.py,sha256=KHZyQ_GFS9XzmNNMzEDQkAZsiM5Mpua6ZE1e3WebEr
11
11
  abstract_solana/signature_data_parse.py,sha256=5AOMtJZADWcwR0JLDbd2kXZNzW129qeB0lvYUrE_tm0,1974
12
12
  abstract_solana/utils.py,sha256=RcnGEiZ0aJbcw8ObpjHU3WUFU4Tmy-exCs6qIbEu4_c,444
13
13
  abstract_solana/pumpFun/__init__.py,sha256=BiRxwJd1JWwEft63zqYwZ_Xs6UDp4hjczjzvuwy3sHg,85
14
- abstract_solana/pumpFun/buy_sell_pump.py,sha256=wqo8070fGVEyBay2pMgtoeDUhY4K1omNGlDy4fb5dTg,7556
14
+ abstract_solana/pumpFun/buy_sell_pump.py,sha256=Hj1drSu277xSFeOET3piKuTHJnTdVaQRWxF87g0ce7Y,7518
15
15
  abstract_solana/pumpFun/pumpFunKeys.py,sha256=yMS_fT-0ESndluVpZ17XdMhpXVtSfhtIG5njy7DJkfI,7961
16
16
  abstract_solana/pumpFun/pump_fun_keys.py,sha256=3ykkcogaptbzJ6MwI6OWzUdo5rA1qW54fY0KAJAXgIc,8050
17
17
  abstract_solana/pumpFun/token_utils.py,sha256=NhMvpTnw3QZk8DmeKYFzuqEMEZEHUlrBKfFp7662ohw,2684
18
- abstract_solana-0.0.0.67.dist-info/METADATA,sha256=M4K88hpQFDYzIf9xT_E5BlD0Y801t-WgC7rrVcb_o88,981
19
- abstract_solana-0.0.0.67.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
- abstract_solana-0.0.0.67.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
- abstract_solana-0.0.0.67.dist-info/RECORD,,
18
+ abstract_solana-0.0.0.68.dist-info/METADATA,sha256=qgPl06YOZo2RDWYeyDV-PgQ6zRbeREAbwjP4hRuGyW0,981
19
+ abstract_solana-0.0.0.68.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
+ abstract_solana-0.0.0.68.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
+ abstract_solana-0.0.0.68.dist-info/RECORD,,