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

@@ -9,6 +9,7 @@ from ..pubkey_utils import Pubkey,get_pubkey
9
9
  from ..constants import PUMP_FUN_PROGRAM_PUBKEY,LAMPORTS_PER_SOL
10
10
  from solders.compute_budget import set_compute_unit_limit, set_compute_unit_price
11
11
  from .token_utils import get_token_balance
12
+ from .token_utils import check_existing_token_account
12
13
  def sendTransaction(txn: Transaction, payer_keypair, opts=TxOpts(skip_preflight=True)) -> dict:
13
14
  # Sign the transaction
14
15
  txn.sign(payer_keypair)
@@ -3,15 +3,15 @@ from ..pubkey_utils import Pubkey
3
3
  from abstract_solcatcher import getTokenAccountBalance,getTokenAccountsByOwner
4
4
  from spl.token.instructions import create_associated_token_account, get_associated_token_address
5
5
  from abstract_utilities import get_any_value
6
- def get_token_balance(payer,mint_str: str):
7
- response = getTokenAccountBalance(str(payer),str(mint_str))
6
+ def get_token_balance(payer,mint: str):
7
+ response = getTokenAccountBalance(str(payer),str(mint))
8
8
  response=response.get('value',response)
9
9
  ui_amount = get_any_value(response, "uiAmount") or 0
10
10
  return float(ui_amount)
11
- def get_token_price(mint_str: str) -> float:
11
+ def get_token_price(mint: str) -> float:
12
12
  try:
13
13
  # Get coin data
14
- coin_data = get_coin_data(mint_str)
14
+ coin_data = get_coin_data(str(mint))
15
15
  if not coin_data:
16
16
  print("Failed to retrieve coin data...")
17
17
  return None
@@ -23,8 +23,8 @@ def get_token_price(mint_str: str) -> float:
23
23
  except Exception as e:
24
24
  print(f"Error calculating token price: {e}")
25
25
  return None
26
- def get_account_by_owner(payer, mint_str: str) -> dict:
27
- result = getTokenAccountsByOwner(**{"account":payer,"mint":mint,"encoding":"jsonParsed"})
26
+ def get_account_by_owner(payer, mint: str) -> dict:
27
+ result = getTokenAccountsByOwner(**{"account":payer,"mint":str(mint),"encoding":"jsonParsed"})
28
28
  if not result or 'value' not in result:
29
29
  return None
30
30
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_solana
3
- Version: 0.0.0.41
3
+ Version: 0.0.0.42
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=DlOGAq_xOKIfZ8gV0Kt5qzgl8OV-MGcI6DTwSq_Bzek,6959
14
+ abstract_solana/pumpFun/buy_sell_pump.py,sha256=9RJkta6M9ocblEIjvIur4PSJ1R1VZ5tl-Uk84xu8kbc,7013
15
15
  abstract_solana/pumpFun/pumpFunKeys.py,sha256=yMS_fT-0ESndluVpZ17XdMhpXVtSfhtIG5njy7DJkfI,7961
16
16
  abstract_solana/pumpFun/pump_fun_keys.py,sha256=lL7afQx3-PYOHz69rm7Cyr2_tLp0nFXLZAd-7tvztm8,7963
17
- abstract_solana/pumpFun/token_utils.py,sha256=oDvY0YVn8vWwSS3yS-tpZVxb3IvqovGPFicxiXg7YHI,2297
18
- abstract_solana-0.0.0.41.dist-info/METADATA,sha256=HdqJEDC_i1I4vF3PBzFVF5cJa_GSIiwToc4vMJzJe6c,924
19
- abstract_solana-0.0.0.41.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
- abstract_solana-0.0.0.41.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
- abstract_solana-0.0.0.41.dist-info/RECORD,,
17
+ abstract_solana/pumpFun/token_utils.py,sha256=jLNqYxV3Ak7clmODPdmajfGsrrRswT5IvffZasi-0w4,2287
18
+ abstract_solana-0.0.0.42.dist-info/METADATA,sha256=Cv9rym6-GYJEZdpvCZ1tvnGhDrLQ3IwtiIj_KxcEU74,924
19
+ abstract_solana-0.0.0.42.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
+ abstract_solana-0.0.0.42.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
+ abstract_solana-0.0.0.42.dist-info/RECORD,,