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

@@ -11,17 +11,15 @@ def get_token_balance(payer,mint: str):
11
11
  ui_amount = get_any_value(response, "uiAmount") or 0
12
12
  return float(ui_amount)
13
13
  def get_token_price(mint: str) -> float:
14
- try:
15
- bonding_curve = derive_bonding_curve(mint_str)
14
+
15
+ bonding_curve = derive_bonding_curve(mint)
16
16
  virtual_reserves = get_virtual_reserves(bonding_curve)
17
17
  virtual_sol_reserves = virtual_reserves.virtualSolReserves / SOL_DECIMAL_EXP
18
18
  virtual_token_reserves = virtual_reserves.virtualTokenReserves / TOKEN_DECIMAL_EXP
19
19
  token_price = virtual_sol_reserves / virtual_token_reserves
20
20
  print(f"Token Price: {token_price:.20f} SOL")
21
21
  return token_price
22
- except Exception as e:
23
- print(f"Error calculating token price: {e}")
24
- return None
22
+
25
23
  def get_account_by_owner(payer, mint_str: str) -> dict:
26
24
  payload = {
27
25
  "jsonrpc": "2.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_solana
3
- Version: 0.0.0.83
3
+ Version: 0.0.0.85
4
4
  Home-page: https://github.com/AbstractEndeavors/abstract_solana
5
5
  Author: putkoff
6
6
  Author-email: partners@abstractendeavors.com
@@ -14,8 +14,8 @@ abstract_solana/pumpFun/__init__.py,sha256=BiRxwJd1JWwEft63zqYwZ_Xs6UDp4hjczjzvu
14
14
  abstract_solana/pumpFun/buy_sell_pump.py,sha256=3souQvQs3pEUpLxQ3GyZiTqJxOJhTcBQOj4bhzBOKxQ,7833
15
15
  abstract_solana/pumpFun/pumpFunKeys.py,sha256=yMS_fT-0ESndluVpZ17XdMhpXVtSfhtIG5njy7DJkfI,7961
16
16
  abstract_solana/pumpFun/pump_fun_keys.py,sha256=UB87UnJ16wMqmj5q84kdU5wBF__7rnaxyK3-npsULTE,8322
17
- abstract_solana/pumpFun/token_utils.py,sha256=gggf_02239SXG78NPzpusHBTFsjfqmeqW0a8WZOneTA,2672
18
- abstract_solana-0.0.0.83.dist-info/METADATA,sha256=qZ6jRzf4zmgU79AS11eLQzoDW-MRHOkbSEYciNGfM10,981
19
- abstract_solana-0.0.0.83.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
- abstract_solana-0.0.0.83.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
- abstract_solana-0.0.0.83.dist-info/RECORD,,
17
+ abstract_solana/pumpFun/token_utils.py,sha256=CcpkA8gRdacCsuRe9cm7ecijuwhCyH0RV40Ylbb9dC8,2566
18
+ abstract_solana-0.0.0.85.dist-info/METADATA,sha256=rLErapIZ1PsenoIuENh_ark21mqE1p_DVr17yGGmETg,981
19
+ abstract_solana-0.0.0.85.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
+ abstract_solana-0.0.0.85.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
+ abstract_solana-0.0.0.85.dist-info/RECORD,,