abstract-solana 0.0.0.32__py3-none-any.whl → 0.0.0.34__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/buy_sell_pump.py +4 -3
- {abstract_solana-0.0.0.32.dist-info → abstract_solana-0.0.0.34.dist-info}/METADATA +1 -1
- {abstract_solana-0.0.0.32.dist-info → abstract_solana-0.0.0.34.dist-info}/RECORD +5 -5
- {abstract_solana-0.0.0.32.dist-info → abstract_solana-0.0.0.34.dist-info}/WHEEL +0 -0
- {abstract_solana-0.0.0.32.dist-info → abstract_solana-0.0.0.34.dist-info}/top_level.txt +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import struct,base58,time
|
|
2
|
-
from typing import Optional,Union
|
|
3
2
|
from solders.hash import Hash
|
|
4
3
|
from solders.keypair import Keypair
|
|
5
4
|
from solders.instruction import Instruction
|
|
6
5
|
from solana.rpc.types import TokenAccountOpts,TxOpts
|
|
7
6
|
from solana.transaction import Transaction
|
|
7
|
+
from ..pubkey_utils import Pubkey,get_pubkey
|
|
8
|
+
from ..constants import PUMP_FUN_PROGRAM_PUBKEY,LAMPORTS_PER_SOL
|
|
8
9
|
from solders.compute_budget import set_compute_unit_limit, set_compute_unit_price
|
|
9
10
|
from .token_utils import get_token_balance
|
|
10
11
|
def sendTransaction(txn: Transaction, payer_keypair, opts=TxOpts(skip_preflight=True)) -> dict:
|
|
@@ -132,7 +133,7 @@ def get_all_buy_sell_info(mint,payer_keypair=None,token_balance=None):
|
|
|
132
133
|
except Exception as e:
|
|
133
134
|
print(e)
|
|
134
135
|
|
|
135
|
-
def pump_fun_sell(
|
|
136
|
+
def pump_fun_sell(mint_str: str, token_balance: Optional[Union[int, float]] = None, slippage: int = 25, close_token_account: bool = True) -> bool:
|
|
136
137
|
mint,amount,token_balance,token_price,token_account_pubkey,token_account_instructions = get_all_buy_sell_info(mint,payer_keypair,token_balance)
|
|
137
138
|
buildTxn(mint=mint,
|
|
138
139
|
amount=amount,
|
|
@@ -144,7 +145,7 @@ def pump_fun_sell(mint: str, token_balance: Optional[Union[int, float]] = None,
|
|
|
144
145
|
token_account_instructions=token_account_instructions,
|
|
145
146
|
buy=False)
|
|
146
147
|
|
|
147
|
-
def pump_fun_buy(
|
|
148
|
+
def pump_fun_buy(mint_str: str, sol_in: float = 0.001, slippage: int = 25) -> bool:
|
|
148
149
|
mint,amount,token_balance,token_price,token_account_pubkey,token_account_instructions = get_all_buy_sell_info(mint,payer_keypair)
|
|
149
150
|
# Build the transaction
|
|
150
151
|
buildTxn(mint=mint,
|
|
@@ -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=
|
|
14
|
+
abstract_solana/pumpFun/buy_sell_pump.py,sha256=7f9Y4gc-DMC-IVFcpAYA8omNZzYCvE3tphEKie4uSAY,7391
|
|
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=oDvY0YVn8vWwSS3yS-tpZVxb3IvqovGPFicxiXg7YHI,2297
|
|
18
|
-
abstract_solana-0.0.0.
|
|
19
|
-
abstract_solana-0.0.0.
|
|
20
|
-
abstract_solana-0.0.0.
|
|
21
|
-
abstract_solana-0.0.0.
|
|
18
|
+
abstract_solana-0.0.0.34.dist-info/METADATA,sha256=yxy4V-KpzmCUH4JnJ5C3urpifPLV-FhIp9ci_qaOMXw,924
|
|
19
|
+
abstract_solana-0.0.0.34.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
20
|
+
abstract_solana-0.0.0.34.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
|
|
21
|
+
abstract_solana-0.0.0.34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|