py-near 1.1.4__py3-none-any.whl → 1.1.5__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.
py_near/account.py
CHANGED
@@ -100,7 +100,7 @@ class Account(object):
|
|
100
100
|
]
|
101
101
|
self._latest_block_hash_ts = utils.timestamp()
|
102
102
|
|
103
|
-
async def
|
103
|
+
async def sign_and_submit_tx(
|
104
104
|
self, receiver_id, actions: List[Action], nowait=False
|
105
105
|
) -> Union[TransactionResult, str]:
|
106
106
|
"""
|
@@ -204,7 +204,7 @@ class Account(object):
|
|
204
204
|
:param nowait: if nowait is True, return transaction hash, else wait execution
|
205
205
|
:return: transaction hash or TransactionResult
|
206
206
|
"""
|
207
|
-
return await self.
|
207
|
+
return await self.sign_and_submit_tx(
|
208
208
|
account_id, [transactions.create_transfer_action(amount)], nowait
|
209
209
|
)
|
210
210
|
|
@@ -228,7 +228,7 @@ class Account(object):
|
|
228
228
|
:return: transaction hash or TransactionResult
|
229
229
|
"""
|
230
230
|
args = json.dumps(args).encode("utf8")
|
231
|
-
return await self.
|
231
|
+
return await self.sign_and_submit_tx(
|
232
232
|
contract_id,
|
233
233
|
[transactions.create_function_call_action(method_name, args, gas, amount)],
|
234
234
|
nowait,
|
@@ -255,7 +255,7 @@ class Account(object):
|
|
255
255
|
transactions.create_full_access_key_action(public_key),
|
256
256
|
transactions.create_transfer_action(initial_balance),
|
257
257
|
]
|
258
|
-
return await self.
|
258
|
+
return await self.sign_and_submit_tx(account_id, actions, nowait)
|
259
259
|
|
260
260
|
async def add_public_key(
|
261
261
|
self,
|
@@ -281,7 +281,7 @@ class Account(object):
|
|
281
281
|
public_key, allowance, receiver_id, method_names
|
282
282
|
),
|
283
283
|
]
|
284
|
-
return await self.
|
284
|
+
return await self.sign_and_submit_tx(self.account_id, actions, nowait)
|
285
285
|
|
286
286
|
async def add_full_access_public_key(
|
287
287
|
self, public_key: Union[str, bytes], nowait=False
|
@@ -295,7 +295,7 @@ class Account(object):
|
|
295
295
|
actions = [
|
296
296
|
transactions.create_full_access_key_action(public_key),
|
297
297
|
]
|
298
|
-
return await self.
|
298
|
+
return await self.sign_and_submit_tx(self.account_id, actions, nowait)
|
299
299
|
|
300
300
|
async def delete_public_key(self, public_key: Union[str, bytes], nowait=False):
|
301
301
|
"""
|
@@ -307,7 +307,7 @@ class Account(object):
|
|
307
307
|
actions = [
|
308
308
|
transactions.create_delete_access_key_action(public_key),
|
309
309
|
]
|
310
|
-
return await self.
|
310
|
+
return await self.sign_and_submit_tx(self.account_id, actions, nowait)
|
311
311
|
|
312
312
|
async def call_delegate_transaction(
|
313
313
|
self,
|
@@ -323,7 +323,7 @@ class Account(object):
|
|
323
323
|
actions = [
|
324
324
|
transactions.create_signed_delegate(delegate_action, signature),
|
325
325
|
]
|
326
|
-
return await self.
|
326
|
+
return await self.sign_and_submit_tx(
|
327
327
|
delegate_action.sender_id, actions, nowait
|
328
328
|
)
|
329
329
|
|
@@ -334,7 +334,7 @@ class Account(object):
|
|
334
334
|
:param nowait: if nowait is True, return transaction hash, else wait execution
|
335
335
|
:return: transaction hash or TransactionResult
|
336
336
|
"""
|
337
|
-
return await self.
|
337
|
+
return await self.sign_and_submit_tx(
|
338
338
|
self.account_id,
|
339
339
|
[transactions.create_deploy_contract_action(contract_code)],
|
340
340
|
nowait,
|
@@ -348,7 +348,7 @@ class Account(object):
|
|
348
348
|
:param nowait: if nowait is True, return transaction hash, else wait execution
|
349
349
|
:return: transaction hash or TransactionResult
|
350
350
|
"""
|
351
|
-
return await self.
|
351
|
+
return await self.sign_and_submit_tx(
|
352
352
|
self.account_id,
|
353
353
|
[transactions.create_staking_action(public_key, amount)],
|
354
354
|
nowait,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
py_near/__init__.py,sha256=t5fAxjaU8dN8xpQR2vz0ZGhfTkdVy2RCbkhJhZFglk4,50
|
2
|
-
py_near/account.py,sha256=
|
2
|
+
py_near/account.py,sha256=wMl-OzrC8VlWAq_JRqc7tnJGneLLOVpyD_3G_fZe214,16388
|
3
3
|
py_near/constants.py,sha256=inaWIuwmF1EB5JSB0ynnZY5rKY_QsxhF9KuCOhPsM6k,164
|
4
4
|
py_near/dapps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
py_near/dapps/core.py,sha256=LtN9aW2gw2mvEdhzQcQJIidtjv-XL1xjb0LK8DzqtqE,231
|
@@ -27,7 +27,7 @@ py_near/models.py,sha256=QKQxL1wkTKZ4MWb5dprJZYalzrvd7bHSXC3WeBujuWE,9426
|
|
27
27
|
py_near/providers.py,sha256=8ZpZU3UC7UEcaiC1unkKDHbfOSd8scEGTmoeoZhAAXE,8328
|
28
28
|
py_near/transactions.py,sha256=B1_KB48te-WP2SECvFwCMHym9epJfiNBUX6tVSZXTmQ,2566
|
29
29
|
py_near/utils.py,sha256=FirRH93ydH1cwjn0-sNrZeIn3BRD6QHedrP2VkAdJ6g,126
|
30
|
-
py_near-1.1.
|
31
|
-
py_near-1.1.
|
32
|
-
py_near-1.1.
|
33
|
-
py_near-1.1.
|
30
|
+
py_near-1.1.5.dist-info/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
|
31
|
+
py_near-1.1.5.dist-info/METADATA,sha256=fDAMhWgGJkyqzqQ-cf7W8zMsQedirNe-IDK-1EJZ8IE,4661
|
32
|
+
py_near-1.1.5.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
33
|
+
py_near-1.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|