shadowPaySDK 0.2.0.23__py3-none-any.whl → 0.2.0.25__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.
- shadowPaySDK/interface/sol.py +4 -4
- {shadowpaysdk-0.2.0.23.dist-info → shadowpaysdk-0.2.0.25.dist-info}/METADATA +1 -1
- {shadowpaysdk-0.2.0.23.dist-info → shadowpaysdk-0.2.0.25.dist-info}/RECORD +6 -6
- {shadowpaysdk-0.2.0.23.dist-info → shadowpaysdk-0.2.0.25.dist-info}/WHEEL +0 -0
- {shadowpaysdk-0.2.0.23.dist-info → shadowpaysdk-0.2.0.25.dist-info}/licenses/LICENSE +0 -0
- {shadowpaysdk-0.2.0.23.dist-info → shadowpaysdk-0.2.0.25.dist-info}/top_level.txt +0 -0
shadowPaySDK/interface/sol.py
CHANGED
@@ -205,7 +205,7 @@ class SOL:
|
|
205
205
|
return resp.value
|
206
206
|
|
207
207
|
|
208
|
-
async def transfer_native(self, to:str, amount):
|
208
|
+
async def transfer_native(self, to:str, amount: int):
|
209
209
|
if not self.KEYPAIR:
|
210
210
|
raise ValueError("not set KEYPAIR.")
|
211
211
|
|
@@ -215,16 +215,16 @@ class SOL:
|
|
215
215
|
ts(tsf(
|
216
216
|
from_pubkey=sender_pubkey,
|
217
217
|
to_pubkey=receiver_pubkey,
|
218
|
-
lamports=amount * LAMPORTS_PER_SOL
|
218
|
+
lamports=int(amount * LAMPORTS_PER_SOL)
|
219
219
|
))
|
220
220
|
]
|
221
221
|
msg = Message(ixns, self.get_pubkey())
|
222
|
-
latest_blockhash_resp = self.client.get_latest_blockhash()
|
222
|
+
latest_blockhash_resp = await self.client.get_latest_blockhash()
|
223
223
|
|
224
224
|
blockhash_str = latest_blockhash_resp.value.blockhash
|
225
225
|
tx = Transaction([self.KEYPAIR], msg, blockhash_str)
|
226
226
|
resp = await self.client.send_transaction(tx)
|
227
|
-
return resp
|
227
|
+
return resp.value
|
228
228
|
|
229
229
|
|
230
230
|
|
@@ -4,14 +4,14 @@ shadowPaySDK/const.py,sha256=uUkzYTm-12iK3IsnQICnoT9tpmZ9aYh3pqXbSd-GNh8,9898
|
|
4
4
|
shadowPaySDK/interface/__init__.py,sha256=ggSZCV22udnzXm_Wv_3x6VN3hNIAEiwgwHZc2Jwc688,146
|
5
5
|
shadowPaySDK/interface/erc20.py,sha256=7p8eU5LzhI2MsH80PZhq6IRhbfMGlNYucGl3OtyS9SI,4669
|
6
6
|
shadowPaySDK/interface/erc721.py,sha256=4AlWfDjrvl85wFocnN93j-oM54kTsLLwv9SdtcLj4eM,3094
|
7
|
-
shadowPaySDK/interface/sol.py,sha256
|
7
|
+
shadowPaySDK/interface/sol.py,sha256=TDp62OtQkR8Wy9I4UBVmL_K_FQeMVS--Lojgbvq5T2E,8146
|
8
8
|
shadowPaySDK/types/EVMcheque.py,sha256=8M1EzpZGqf4uidrd9yDKiR7BvIl85p93A_9AMZtshSs,14570
|
9
9
|
shadowPaySDK/types/SOLcheque.py,sha256=S6LnKxiWDj1KGRgFFAaHy03c7mxv4msaR-2cfVIhD2Y,818
|
10
10
|
shadowPaySDK/types/__init__.py,sha256=sG6pNZfKGvENXqsnv6MrQtKrJ898fAXkMvAZY1k1-Qg,97
|
11
11
|
shadowPaySDK/utils/__init__.py,sha256=aja3iYO4rT-ptMM-pzw0GRFTziBdXdcEi-4kE84zH64,61
|
12
12
|
shadowPaySDK/utils/utils.py,sha256=g4bGvLDdjhNGsAj1eaZnNWFNaiN-cVhhM-5PrnG5aIQ,720
|
13
|
-
shadowpaysdk-0.2.0.
|
14
|
-
shadowpaysdk-0.2.0.
|
15
|
-
shadowpaysdk-0.2.0.
|
16
|
-
shadowpaysdk-0.2.0.
|
17
|
-
shadowpaysdk-0.2.0.
|
13
|
+
shadowpaysdk-0.2.0.25.dist-info/licenses/LICENSE,sha256=EG13vNmyBfkG3oKj40oOYfUGLKko8OouU6PfO6MlAk4,1066
|
14
|
+
shadowpaysdk-0.2.0.25.dist-info/METADATA,sha256=FJ4DYapfQp_ErnsQmrz-O2T8_HR-O4ea9JyTjOZBKAI,964
|
15
|
+
shadowpaysdk-0.2.0.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
+
shadowpaysdk-0.2.0.25.dist-info/top_level.txt,sha256=RSJc73GEf31NMdZp9KovEduzfhm10eQ2t5GTZ44aN1U,13
|
17
|
+
shadowpaysdk-0.2.0.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|