abstract-solana 0.0.0.1__py3-none-any.whl → 0.0.0.2__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/pubkey_utils.py +9 -0
- {abstract_solana-0.0.0.1.dist-info → abstract_solana-0.0.0.2.dist-info}/METADATA +1 -1
- {abstract_solana-0.0.0.1.dist-info → abstract_solana-0.0.0.2.dist-info}/RECORD +5 -5
- {abstract_solana-0.0.0.1.dist-info → abstract_solana-0.0.0.2.dist-info}/WHEEL +0 -0
- {abstract_solana-0.0.0.1.dist-info → abstract_solana-0.0.0.2.dist-info}/top_level.txt +0 -0
abstract_solana/pubkey_utils.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from solders.pubkey import Pubkey
|
|
2
2
|
from solders.signature import Signature
|
|
3
|
+
PUMP_FUN_PROGRAM = get_pubkey("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P")
|
|
4
|
+
|
|
3
5
|
def get_pubString(obj):
|
|
4
6
|
return Pubkey.from_string(str(obj))
|
|
5
7
|
|
|
@@ -57,3 +59,10 @@ def get_sigkey(obj):
|
|
|
57
59
|
if is_sigkey(sigKey):
|
|
58
60
|
return sigKey
|
|
59
61
|
return obj
|
|
62
|
+
|
|
63
|
+
def derive_associated_bonding_curve(mint,programId=None):
|
|
64
|
+
return get_associated_token_address(derive_bonding_curve(mint,programId)[0], get_pubkey(mint))
|
|
65
|
+
|
|
66
|
+
def derive_bonding_curve(mint,programId=None):
|
|
67
|
+
programId = programId or PUMP_FUN_PROGRAM
|
|
68
|
+
return Pubkey.find_program_address(["bonding-curve".encode(), bytes(get_pubkey(mint))],programId)
|
|
@@ -4,10 +4,10 @@ abstract_solana/genesis_functions.py,sha256=2WRQUxN9j-dpLfYIBiX3URM-_uDGkh-eTy08
|
|
|
4
4
|
abstract_solana/index_utils.py,sha256=Ed07BYTZWp-SVfpthAUqjRY00U3ZYldPCqd7LJy9AO8,1884
|
|
5
5
|
abstract_solana/log_message_functions.py,sha256=SYBcqHEbbU6p_GGal3D2HwJK488dUIvEjuenrfKrd24,4564
|
|
6
6
|
abstract_solana/price_utils.py,sha256=axIonTpdCe9zpoBD372FpwaPmqO8-oCslkdBJ29Uk2w,4246
|
|
7
|
-
abstract_solana/pubkey_utils.py,sha256=
|
|
7
|
+
abstract_solana/pubkey_utils.py,sha256=a-xAMEmftiUQxk0kqtdP4fXQ9Nv5eIhV75JukXJ31rE,1816
|
|
8
8
|
abstract_solana/signature_data_parse.py,sha256=5AOMtJZADWcwR0JLDbd2kXZNzW129qeB0lvYUrE_tm0,1974
|
|
9
9
|
abstract_solana/utils.py,sha256=Y1nyq-x7GqN09MEDrmiBM5iNDLJHDafFZ_lXrV0ua8k,348
|
|
10
|
-
abstract_solana-0.0.0.
|
|
11
|
-
abstract_solana-0.0.0.
|
|
12
|
-
abstract_solana-0.0.0.
|
|
13
|
-
abstract_solana-0.0.0.
|
|
10
|
+
abstract_solana-0.0.0.2.dist-info/METADATA,sha256=M3X36Tb9KzVHHvrle_Jk5dm7ZJxr5pIrM7Ilz106ygM,923
|
|
11
|
+
abstract_solana-0.0.0.2.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
12
|
+
abstract_solana-0.0.0.2.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
|
|
13
|
+
abstract_solana-0.0.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|