abstract-solana 0.0.0.84__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.
- abstract_solana/pumpFun/token_utils.py +2 -4
- {abstract_solana-0.0.0.84.dist-info → abstract_solana-0.0.0.85.dist-info}/METADATA +1 -1
- {abstract_solana-0.0.0.84.dist-info → abstract_solana-0.0.0.85.dist-info}/RECORD +5 -5
- {abstract_solana-0.0.0.84.dist-info → abstract_solana-0.0.0.85.dist-info}/WHEEL +0 -0
- {abstract_solana-0.0.0.84.dist-info → abstract_solana-0.0.0.85.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ 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
|
-
|
|
14
|
+
|
|
15
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
|
|
@@ -19,9 +19,7 @@ def get_token_price(mint: str) -> float:
|
|
|
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
|
-
|
|
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",
|
|
@@ -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=
|
|
18
|
-
abstract_solana-0.0.0.
|
|
19
|
-
abstract_solana-0.0.0.
|
|
20
|
-
abstract_solana-0.0.0.
|
|
21
|
-
abstract_solana-0.0.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|