abstract-solana 0.0.0.64__py3-none-any.whl → 0.0.0.66__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 +8 -5
- {abstract_solana-0.0.0.64.dist-info → abstract_solana-0.0.0.66.dist-info}/METADATA +1 -1
- {abstract_solana-0.0.0.64.dist-info → abstract_solana-0.0.0.66.dist-info}/RECORD +5 -5
- {abstract_solana-0.0.0.64.dist-info → abstract_solana-0.0.0.66.dist-info}/WHEEL +0 -0
- {abstract_solana-0.0.0.64.dist-info → abstract_solana-0.0.0.66.dist-info}/top_level.txt +0 -0
|
@@ -29,7 +29,7 @@ async def confirm_txn(txn_sig, max_retries=20, retry_interval=3):
|
|
|
29
29
|
print(f"Failed to confirm transaction after {max_retries} attempts.")
|
|
30
30
|
return txn_sig
|
|
31
31
|
def complete_txn(txn, payer_keypair):
|
|
32
|
-
txn_sig = sendTransaction(txn=txn,
|
|
32
|
+
txn_sig = sendTransaction(txn=txn,payer_keypair=payer_keypair, skip_preflight=True)
|
|
33
33
|
print("Transaction Signature", txn_sig)
|
|
34
34
|
confirm = asyncio.run(confirm_txn(txn_sig))
|
|
35
35
|
while not confirm:
|
|
@@ -128,17 +128,20 @@ def pump_fun_buy(mint: str,payer_pubkey:Pubkey, sol_in: float = 0.001, slippage:
|
|
|
128
128
|
buy=True)
|
|
129
129
|
return True
|
|
130
130
|
|
|
131
|
-
def buy_pump(mint
|
|
131
|
+
def buy_pump(mint:str, payer_keypair:Pubkey,sol_in=None,slippage=None):
|
|
132
|
+
sol_in = sol_in or 0.001
|
|
133
|
+
slippage = slippage or 25
|
|
132
134
|
payer_pubkey = get_pubkey(payer_keypair.pubkey())
|
|
133
|
-
txn = pump_fun_buy(mint=
|
|
135
|
+
txn = pump_fun_buy(mint=mint, payer_pubkey=payer_pubkey,sol_in=sol_in,slippage=slippage)
|
|
134
136
|
completed = complete_txn(txn, payer_keypair)
|
|
135
137
|
if not completed:
|
|
136
138
|
print("Buy transaction failed")
|
|
137
139
|
return completed
|
|
138
140
|
|
|
139
|
-
def sell_pump(mint
|
|
141
|
+
def sell_pump(mint:str, payer_keypair:Pubkey, token_balance=None, slippage=None):
|
|
142
|
+
slippage = slippage or 25
|
|
140
143
|
payer_pubkey = get_pubkey(payer_keypair.pubkey())
|
|
141
|
-
txn = pump_fun_sell(mint=
|
|
144
|
+
txn = pump_fun_sell(mint=mint, payer_pubkey=payer_pubkey, token_balance=token_balance, slippage=slippage)
|
|
142
145
|
completed = complete_txn(txn, payer_keypair)
|
|
143
146
|
if not completed:
|
|
144
147
|
print("sell transaction failed")
|
|
@@ -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=bpzLKGShMEjT3WfI0hw9tJHXFnmZ6iP0V5OY6rdkvhA,7609
|
|
15
15
|
abstract_solana/pumpFun/pumpFunKeys.py,sha256=yMS_fT-0ESndluVpZ17XdMhpXVtSfhtIG5njy7DJkfI,7961
|
|
16
16
|
abstract_solana/pumpFun/pump_fun_keys.py,sha256=3ykkcogaptbzJ6MwI6OWzUdo5rA1qW54fY0KAJAXgIc,8050
|
|
17
17
|
abstract_solana/pumpFun/token_utils.py,sha256=NhMvpTnw3QZk8DmeKYFzuqEMEZEHUlrBKfFp7662ohw,2684
|
|
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.66.dist-info/METADATA,sha256=8G7QvYlOkbDiDXtO_zhfbWh4iAoZyWiXicHe8IbvjEY,924
|
|
19
|
+
abstract_solana-0.0.0.66.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
20
|
+
abstract_solana-0.0.0.66.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
|
|
21
|
+
abstract_solana-0.0.0.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|