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

@@ -8,8 +8,8 @@ from solana.transaction import Transaction
8
8
  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
- from .token_utils import get_token_balance
12
- from .token_utils import check_existing_token_account
11
+ from .token_utils import get_token_balance,check_existing_token_account,get_token_price
12
+
13
13
  def sendTransaction(txn: Transaction, payer_keypair, opts=TxOpts(skip_preflight=True)) -> dict:
14
14
  # Sign the transaction
15
15
  txn.sign(payer_keypair)
@@ -64,7 +64,7 @@ def confirm_txn(txn_sig, max_retries=20, retry_interval=3):
64
64
  return None
65
65
  def buildTxn(mint,payer_pubkey, amount, slippage, token_account_pubkey,sol_in=0,token_price=0,token_balance=0,token_account_instructions=None,close_token_account=False,buy=True):
66
66
  # Get keys for the transaction, pass the token account's pubkey instead of the AccountMeta object
67
- keys = getKeys(get_coin_data(mint), token_account_pubkey, payer_pubkey,buy=buy)
67
+ keys = getKeys(mint, token_account_pubkey, payer_pubkey,buy=buy)
68
68
  slippage_adjustment = 1 - (slippage / 100)
69
69
  sol_change = sol_in if buy else float(token_balance) * float(token_price)
70
70
  sol_change_with_slippage = sol_change * slippage_adjustment
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abstract_solana
3
- Version: 0.0.0.42
3
+ Version: 0.0.0.44
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=9RJkta6M9ocblEIjvIur4PSJ1R1VZ5tl-Uk84xu8kbc,7013
14
+ abstract_solana/pumpFun/buy_sell_pump.py,sha256=bMKC7bNhawySd9aTMbVAqDD9b-D_j8zHzEjjiQEK_f8,6990
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
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,,
18
+ abstract_solana-0.0.0.44.dist-info/METADATA,sha256=2NRJc8tbrjYR4Ei-SvoJ72kOuLPm17ksZsL10Cf8L00,924
19
+ abstract_solana-0.0.0.44.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
+ abstract_solana-0.0.0.44.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
21
+ abstract_solana-0.0.0.44.dist-info/RECORD,,