abstract-solana 0.0.2.99__py3-none-any.whl → 0.0.2.101__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/abstract_utils/__init__.py +1 -9
- abstract_solana/abstract_utils/genesis_functions.py +65 -4
- abstract_solana/abstract_utils/pubKeyUtils.py +77 -0
- {abstract_solana-0.0.2.99.dist-info → abstract_solana-0.0.2.101.dist-info}/METADATA +1 -1
- {abstract_solana-0.0.2.99.dist-info → abstract_solana-0.0.2.101.dist-info}/RECORD +7 -6
- {abstract_solana-0.0.2.99.dist-info → abstract_solana-0.0.2.101.dist-info}/WHEEL +0 -0
- {abstract_solana-0.0.2.99.dist-info → abstract_solana-0.0.2.101.dist-info}/top_level.txt +0 -0
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
from .
|
|
1
|
+
from .pubKeyUtils import *
|
|
2
2
|
from .genesis_functions import *
|
|
3
|
-
from .index_utils import *
|
|
4
|
-
from .price_utils import *
|
|
5
|
-
from .pubkey_utils import *
|
|
6
|
-
from .signature_data_parse import *
|
|
7
|
-
from .utils import *
|
|
8
|
-
from .log_message_functions import *
|
|
9
|
-
from .constants import *
|
|
10
|
-
from .keypair_utils import *
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
from abstract_solcatcher import call_solcatcher_db
|
|
3
3
|
import asyncio
|
|
4
4
|
def get_block_time_from_txn(txnData):
|
|
5
|
-
return int(get_any_value(
|
|
5
|
+
return int(get_any_value('txnDatablockTime') or 0)
|
|
6
6
|
def get_error_message_from_txn(txnData):
|
|
7
7
|
return make_list(get_any_value(txnData,'err'))[0]
|
|
8
8
|
def get_errorless_txn_from_signature_array(signatureArray):
|
|
@@ -30,6 +30,67 @@ async def getGenesisSignature(address, limit=1000, before=None,encoding='jsonPar
|
|
|
30
30
|
if original_length < limit or original_length == 0 or (original_length>0 and (oldest == validOldest or oldest == before) and last_sig != None):
|
|
31
31
|
return validOldest
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
lists = '''Program ComputeBudget111111111111111111111111111111 invoke [1]
|
|
34
|
+
Program ComputeBudget111111111111111111111111111111 success
|
|
35
|
+
Program ComputeBudget111111111111111111111111111111 invoke [1]
|
|
36
|
+
Program ComputeBudget111111111111111111111111111111 success
|
|
37
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [1]
|
|
38
|
+
Program log: Instruction: Sell
|
|
39
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
|
|
40
|
+
Program log: Instruction: Transfer
|
|
41
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 29252 compute units
|
|
42
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
|
|
43
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [2]
|
|
44
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 2003 of 21122 compute units
|
|
45
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success
|
|
46
|
+
Program data: vdt/007mYe7hydhVZy9afs2/QfziCS/MrFj152topCJjfR7YM8aivxTx6gcAAAAAX49jwEQEAAAAAE1fUFYqygvqkDKl7FUkwNxeF9euI5ug0JB1dpP38A9l63xnAAAAAEzOKgMHAAAA7tKJPBHMAwBMIgcHAAAAAO46d/B/zQIA
|
|
47
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 33418 of 50811 compute units
|
|
48
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success
|
|
49
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]
|
|
50
|
+
Program log: Instruction: CloseAccount
|
|
51
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3016 of 17393 compute units
|
|
52
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
|
|
53
|
+
📤 Forwarded log entry: 551pXbYqVEc47hFMFgpN56cfRWve9yNds3q1Ti9hRgu4XxnNyhsB9Kz6D3vHmDX1quzFjNDQFGVrq1ZQ2rJBjzVU
|
|
54
|
+
Program ComputeBudget111111111111111111111111111111 invoke [1]
|
|
55
|
+
Program ComputeBudget111111111111111111111111111111 success
|
|
56
|
+
Program ComputeBudget111111111111111111111111111111 invoke [1]
|
|
57
|
+
Program ComputeBudget111111111111111111111111111111 success
|
|
58
|
+
Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]
|
|
59
|
+
Program log: CreateIdempotent
|
|
60
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
|
|
61
|
+
Program log: Instruction: GetAccountDataSize
|
|
62
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1569 of 63182 compute units
|
|
63
|
+
Program return: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA pQAAAAAAAAA=
|
|
64
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
|
|
65
|
+
Program 11111111111111111111111111111111 invoke [2]
|
|
66
|
+
Program 11111111111111111111111111111111 success
|
|
67
|
+
Program log: Initialize the associated token account
|
|
68
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
|
|
69
|
+
Program log: Instruction: InitializeImmutableOwner
|
|
70
|
+
Program log: Please upgrade to SPL Token 2022 for immutable owner support
|
|
71
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1405 of 56595 compute units
|
|
72
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
|
|
73
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
|
|
74
|
+
Program log: Instruction: InitializeAccount3
|
|
75
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4188 of 52713 compute units
|
|
76
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
|
|
77
|
+
Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20345 of 68587 compute units
|
|
78
|
+
Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success
|
|
79
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [1]
|
|
80
|
+
Program log: Instruction: Buy
|
|
81
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
|
|
82
|
+
Program log: Instruction: Transfer
|
|
83
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 19096 compute units
|
|
84
|
+
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
|
|
85
|
+
Program 11111111111111111111111111111111 invoke [2]
|
|
86
|
+
Program 11111111111111111111111111111111 success
|
|
87
|
+
Program 11111111111111111111111111111111 invoke [2]
|
|
88
|
+
Program 11111111111111111111111111111111 success
|
|
89
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P invoke [2]
|
|
90
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 2003 of 7008 compute units
|
|
91
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success
|
|
92
|
+
Program data: vdt/007mYe4WEtxPSnW1nnQKhtXv8Q/3z275Mq87n+/LYvxY+U26T1BXdwQAAAAAW9rioWECAAABlxKWPWPg7ZGIU4dtIRBuJKKq0ryvtI+TAkryVtuBSz9l63xnAAAAAG8JTRMHAAAAJ8MKrWjDAwBvXSkXAAAAACcr+GDXxAIA
|
|
93
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P consumed 44962 of 48242 compute units
|
|
94
|
+
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P success'''
|
|
95
|
+
|
|
96
|
+
input(lists.split('\n'))
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from solders.pubkey import Pubkey
|
|
2
|
+
from solders.signature import Signature
|
|
3
|
+
from spl.token.instructions import get_associated_token_address
|
|
4
|
+
TOKEN_PROGRAM_ID = "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
|
|
5
|
+
|
|
6
|
+
def pubkey_find_program_address(string,address,programId):
|
|
7
|
+
return Pubkey.find_program_address([str(string).encode(), bytes(get_pubkey(address))],get_pubkey(programId))
|
|
8
|
+
|
|
9
|
+
def get_pubString(obj):
|
|
10
|
+
return Pubkey.from_string(str(obj))
|
|
11
|
+
|
|
12
|
+
def get_sigString(obj):
|
|
13
|
+
return Signature.from_string(str(obj))
|
|
14
|
+
|
|
15
|
+
def is_sigkey(obj):
|
|
16
|
+
return isinstance(obj,Signature)
|
|
17
|
+
|
|
18
|
+
def is_pubkey(obj):
|
|
19
|
+
return isinstance(obj,Pubkey)
|
|
20
|
+
|
|
21
|
+
def get_pubBytes(obj):
|
|
22
|
+
return Pubkey.from_bytes(obj)
|
|
23
|
+
|
|
24
|
+
def get_sigBytes(obj):
|
|
25
|
+
return Signature.from_bytes(obj)
|
|
26
|
+
|
|
27
|
+
def try_pubkey(obj):
|
|
28
|
+
return is_pubkey(get_pubkey(obj))
|
|
29
|
+
|
|
30
|
+
def try_sigkey(obj):
|
|
31
|
+
return is_sigkey(get_sigkey(obj))
|
|
32
|
+
|
|
33
|
+
def get_pubkey(obj):
|
|
34
|
+
if is_pubkey(obj):
|
|
35
|
+
return obj
|
|
36
|
+
address = obj
|
|
37
|
+
if isinstance(obj,bytes):
|
|
38
|
+
pubkey = get_pubBytes(address)
|
|
39
|
+
if is_pubkey(pubkey):
|
|
40
|
+
return pubkey
|
|
41
|
+
if isinstance(obj,str):
|
|
42
|
+
try:
|
|
43
|
+
pubkey= get_pubString(obj)
|
|
44
|
+
except:
|
|
45
|
+
pubkey = obj
|
|
46
|
+
if is_pubkey(pubkey):
|
|
47
|
+
return pubkey
|
|
48
|
+
return obj
|
|
49
|
+
|
|
50
|
+
def get_sigkey(obj):
|
|
51
|
+
if is_sigkey(obj):
|
|
52
|
+
return obj
|
|
53
|
+
signature = obj
|
|
54
|
+
if isinstance(signature,bytes):
|
|
55
|
+
sigKey = get_sigBytes(signature)
|
|
56
|
+
if is_sigkey(sigKey):
|
|
57
|
+
return sigKey
|
|
58
|
+
if isinstance(signature,str):
|
|
59
|
+
try:
|
|
60
|
+
sigKey= get_sigString(signature)
|
|
61
|
+
except:
|
|
62
|
+
sigKey = signature
|
|
63
|
+
if is_sigkey(sigKey):
|
|
64
|
+
return sigKey
|
|
65
|
+
return obj
|
|
66
|
+
|
|
67
|
+
def isOnCurve(obj):
|
|
68
|
+
pubkey = get_pubkey(obj)
|
|
69
|
+
is_on_curve = pubkey.is_on_curve()
|
|
70
|
+
return is_on_curve
|
|
71
|
+
|
|
72
|
+
def derive_associated_bonding_curve(mint,programId=None):
|
|
73
|
+
return get_associated_token_address(derive_bonding_curve(mint,programId)[0], get_pubkey(mint))
|
|
74
|
+
|
|
75
|
+
def derive_bonding_curve(mint,programId=None):
|
|
76
|
+
programId = programId or TOKEN_PROGRAM_ID
|
|
77
|
+
return pubkey_find_program_address("bonding-curve",mint,programId)
|
|
@@ -5,14 +5,15 @@ abstract_solana/abstract_rpcs/get_api_gui.py,sha256=zii6XCRD_wmgcupqCSH5lyXIvg5n
|
|
|
5
5
|
abstract_solana/abstract_rpcs/get_body.py,sha256=UV85217q7mIpYOhVZdnzfmgZxD3QM0w0J0oevXyYtdE,51272
|
|
6
6
|
abstract_solana/abstract_rpcs/rate_limiter.py,sha256=yfUwmdMXty05VN_A-baTrOKY4EH9fYF1Vc7SKPZgcTk,7248
|
|
7
7
|
abstract_solana/abstract_rpcs/solana_rpc_client.py,sha256=s-Mg0mDcDwjU3dm6nK_U6wWysaWTLoC4eXpSHbYsbyY,4132
|
|
8
|
-
abstract_solana/abstract_utils/__init__.py,sha256=
|
|
8
|
+
abstract_solana/abstract_utils/__init__.py,sha256=d0JzaSlwLMU4GPq8PO7UucTtNXUSVdBjOAtIZ8BDAQE,60
|
|
9
9
|
abstract_solana/abstract_utils/account_key_utils.py,sha256=VMJd4GOTK1vn8UZsfXDnjxDOGoQWGY6fvflJqPZ7Xvs,877
|
|
10
10
|
abstract_solana/abstract_utils/constants.py,sha256=cSmCKzQiNZocX1YkKYrdY-O449aYhi7BT_j-45HZN-E,1418
|
|
11
|
-
abstract_solana/abstract_utils/genesis_functions.py,sha256=
|
|
11
|
+
abstract_solana/abstract_utils/genesis_functions.py,sha256=ZQRLz_GDJhxSZLbSqGsJAG4bBwxt9SXo09tzbcKnhwI,6283
|
|
12
12
|
abstract_solana/abstract_utils/index_utils.py,sha256=Ed07BYTZWp-SVfpthAUqjRY00U3ZYldPCqd7LJy9AO8,1884
|
|
13
13
|
abstract_solana/abstract_utils/keypair_utils.py,sha256=VgbwbX9BcXnypkbBJkPwXmSIKORUlMVakkoLk7hTXCw,572
|
|
14
14
|
abstract_solana/abstract_utils/log_message_functions.py,sha256=smkTnxpe8nMxh6NEFjzPoxrn7ojEcLwBLX21K7wAWzs,8104
|
|
15
15
|
abstract_solana/abstract_utils/price_utils.py,sha256=BLkwFLhlsTHeW0NTdzCAUi2xhc2lX7SrHz5sslDbUrY,4288
|
|
16
|
+
abstract_solana/abstract_utils/pubKeyUtils.py,sha256=pFeskDUYDGwcRVRhATeqzQIHYgx6pEPODjodlYYAl2U,2122
|
|
16
17
|
abstract_solana/abstract_utils/pubkey_utils.py,sha256=TAYF74fKAuTBnqIP2SnA-BttO5uoHbxI9BRZRpGCMNY,2010
|
|
17
18
|
abstract_solana/abstract_utils/signature_data_parse.py,sha256=5AOMtJZADWcwR0JLDbd2kXZNzW129qeB0lvYUrE_tm0,1974
|
|
18
19
|
abstract_solana/abstract_utils/utils.py,sha256=RcnGEiZ0aJbcw8ObpjHU3WUFU4Tmy-exCs6qIbEu4_c,444
|
|
@@ -20,7 +21,7 @@ abstract_solana/pump_functions/__init__.py,sha256=BiRxwJd1JWwEft63zqYwZ_Xs6UDp4h
|
|
|
20
21
|
abstract_solana/pump_functions/buy_sell_pump.py,sha256=gjv_1et20s1Li0ygcURofO29VPkO1v-a5G5Bo_sZs_c,7860
|
|
21
22
|
abstract_solana/pump_functions/pump_fun_keys.py,sha256=BeWbV9_wd-c6ydF33drW-gZBDPWolbsMZL4cNhP3eOU,8537
|
|
22
23
|
abstract_solana/pump_functions/token_utils.py,sha256=O-Fgj3L1NhND-k4INa3WvLAEXg2N9u1fVqyLFzn1PwM,2714
|
|
23
|
-
abstract_solana-0.0.2.
|
|
24
|
-
abstract_solana-0.0.2.
|
|
25
|
-
abstract_solana-0.0.2.
|
|
26
|
-
abstract_solana-0.0.2.
|
|
24
|
+
abstract_solana-0.0.2.101.dist-info/METADATA,sha256=hVis1bR3CZCaI0HZBuY0tN2Mw8v37HxFmm8Se_BKwGQ,982
|
|
25
|
+
abstract_solana-0.0.2.101.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
|
26
|
+
abstract_solana-0.0.2.101.dist-info/top_level.txt,sha256=SsJYent8eZQ0FU2jmP8wTj7aFZFhNwxxP-5cCTQ2B-o,16
|
|
27
|
+
abstract_solana-0.0.2.101.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|