abstract-solana 0.0.0.66__tar.gz → 0.0.0.68__tar.gz
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-0.0.0.66 → abstract_solana-0.0.0.68}/PKG-INFO +3 -1
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/setup.py +2 -2
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/buy_sell_pump.py +5 -8
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/PKG-INFO +3 -1
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/requires.txt +2 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/README.md +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/setup.cfg +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/__init__.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/account_key_utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/constants.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/genesis_functions.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/index_utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/keypair_utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/log_message_functions.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/price_utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pubkey_utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/__init__.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/pump_fun_keys.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/token_utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/signature_data_parse.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/utils.py +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/SOURCES.txt +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/dependency_links.txt +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/top_level.txt +0 -0
- {abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/test/test_abstract_solana.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: abstract_solana
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.68
|
|
4
4
|
Home-page: https://github.com/AbstractEndeavors/abstract_solana
|
|
5
5
|
Author: putkoff
|
|
6
6
|
Author-email: partners@abstractendeavors.com
|
|
@@ -19,7 +19,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
19
|
Requires-Python: >=3.6
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
Requires-Dist: solders
|
|
22
|
+
Requires-Dist: abstract_solcatcher
|
|
22
23
|
Requires-Dist: abstract_utilities
|
|
24
|
+
Requires-Dist: solana
|
|
23
25
|
|
|
24
26
|
## Abstract Solana
|
|
25
27
|
|
|
@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
4
4
|
long_description = fh.read()
|
|
5
5
|
setuptools.setup(
|
|
6
6
|
name='abstract_solana',
|
|
7
|
-
version='0.0.0.
|
|
7
|
+
version='0.0.0.68',
|
|
8
8
|
author='putkoff',
|
|
9
9
|
author_email='partners@abstractendeavors.com',
|
|
10
10
|
description="",
|
|
@@ -25,7 +25,7 @@ setuptools.setup(
|
|
|
25
25
|
'Programming Language :: Python :: 3.11',
|
|
26
26
|
'Programming Language :: Python :: 3.12',
|
|
27
27
|
],
|
|
28
|
-
install_requires=['solders','abstract_utilities'],
|
|
28
|
+
install_requires=['solders','abstract_solcatcher','abstract_utilities','solana'],
|
|
29
29
|
package_dir={"": "src"},
|
|
30
30
|
packages=setuptools.find_packages(where="src"),
|
|
31
31
|
python_requires=">=3.6",
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/buy_sell_pump.py
RENAMED
|
@@ -5,7 +5,7 @@ from solders.keypair import Keypair
|
|
|
5
5
|
from solders.instruction import Instruction
|
|
6
6
|
from solana.rpc.types import TokenAccountOpts,TxOpts
|
|
7
7
|
from solana.transaction import Transaction
|
|
8
|
-
from abstract_solcatcher import getLatestBlockHash,getTransaction
|
|
8
|
+
from abstract_solcatcher import getLatestBlockHash,sendTransaction,getTransaction
|
|
9
9
|
from abstract_utilities import get_any_value
|
|
10
10
|
from ..pubkey_utils import Pubkey,get_pubkey
|
|
11
11
|
from spl.token.instructions import CloseAccountParams,close_account
|
|
@@ -13,14 +13,11 @@ from ..constants import PUMP_FUN_PROGRAM_PUBKEY,LAMPORTS_PER_SOL,UNIT_PRICE,UNIT
|
|
|
13
13
|
from solders.compute_budget import set_compute_unit_limit, set_compute_unit_price
|
|
14
14
|
from .token_utils import get_token_balance,check_existing_token_account,get_token_price
|
|
15
15
|
from .pump_fun_keys import getKeys
|
|
16
|
-
from abstract_solcatcher import sendTransaction,getTransaction
|
|
17
16
|
async def confirm_txn(txn_sig, max_retries=20, retry_interval=3):
|
|
18
17
|
retries = 0
|
|
19
18
|
while retries < max_retries:
|
|
20
|
-
txn_res =
|
|
21
|
-
print(txn_res)
|
|
19
|
+
txn_res = getTransaction(signature=str(txn_sig))
|
|
22
20
|
if txn_res:
|
|
23
|
-
print(txn_res)
|
|
24
21
|
print(f"\n\nhttps://solscan.io/tx/{str(txn_sig)}")
|
|
25
22
|
return txn_res
|
|
26
23
|
retries += 1
|
|
@@ -28,10 +25,10 @@ async def confirm_txn(txn_sig, max_retries=20, retry_interval=3):
|
|
|
28
25
|
await asyncio.sleep(retry_interval)
|
|
29
26
|
print(f"Failed to confirm transaction after {max_retries} attempts.")
|
|
30
27
|
return txn_sig
|
|
31
|
-
def complete_txn(txn, payer_keypair):
|
|
28
|
+
async def complete_txn(txn, payer_keypair):
|
|
32
29
|
txn_sig = sendTransaction(txn=txn,payer_keypair=payer_keypair, skip_preflight=True)
|
|
33
30
|
print("Transaction Signature", txn_sig)
|
|
34
|
-
confirm =
|
|
31
|
+
confirm = await confirm_txn(txn_sig)
|
|
35
32
|
while not confirm:
|
|
36
33
|
print("Waiting for transaction confirmation...")
|
|
37
34
|
time.sleep(1) # Wait for 1 second before checking again
|
|
@@ -133,7 +130,7 @@ def buy_pump(mint:str, payer_keypair:Pubkey,sol_in=None,slippage=None):
|
|
|
133
130
|
slippage = slippage or 25
|
|
134
131
|
payer_pubkey = get_pubkey(payer_keypair.pubkey())
|
|
135
132
|
txn = pump_fun_buy(mint=mint, payer_pubkey=payer_pubkey,sol_in=sol_in,slippage=slippage)
|
|
136
|
-
completed = complete_txn(txn, payer_keypair)
|
|
133
|
+
completed = asyncio.run(complete_txn(txn, payer_keypair))
|
|
137
134
|
if not completed:
|
|
138
135
|
print("Buy transaction failed")
|
|
139
136
|
return completed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: abstract_solana
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.68
|
|
4
4
|
Home-page: https://github.com/AbstractEndeavors/abstract_solana
|
|
5
5
|
Author: putkoff
|
|
6
6
|
Author-email: partners@abstractendeavors.com
|
|
@@ -19,7 +19,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
19
|
Requires-Python: >=3.6
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
Requires-Dist: solders
|
|
22
|
+
Requires-Dist: abstract_solcatcher
|
|
22
23
|
Requires-Dist: abstract_utilities
|
|
24
|
+
Requires-Dist: solana
|
|
23
25
|
|
|
24
26
|
## Abstract Solana
|
|
25
27
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/account_key_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/genesis_functions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/log_message_functions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/__init__.py
RENAMED
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/pump_fun_keys.py
RENAMED
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/pumpFun/token_utils.py
RENAMED
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana/signature_data_parse.py
RENAMED
|
File without changes
|
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{abstract_solana-0.0.0.66 → abstract_solana-0.0.0.68}/src/abstract_solana.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|