near-jsonrpc-client 1.0.24__py3-none-any.whl → 1.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.
- {near_jsonrpc_client-1.0.24.dist-info → near_jsonrpc_client-1.0.25.dist-info}/METADATA +1 -1
- {near_jsonrpc_client-1.0.24.dist-info → near_jsonrpc_client-1.0.25.dist-info}/RECORD +23 -21
- {near_jsonrpc_client-1.0.24.dist-info → near_jsonrpc_client-1.0.25.dist-info}/WHEEL +1 -1
- near_jsonrpc_models/__init__.py +84 -0
- near_jsonrpc_models/access_key_permission.py +14 -1
- near_jsonrpc_models/access_key_permission_view.py +19 -1
- near_jsonrpc_models/action_error_kind.py +19 -1
- near_jsonrpc_models/action_view.py +15 -1
- near_jsonrpc_models/actions_validation_error.py +19 -1
- near_jsonrpc_models/block_header_view.py +4 -0
- near_jsonrpc_models/gas_key_info.py +8 -0
- near_jsonrpc_models/non_delegate_action.py +9 -1
- near_jsonrpc_models/receipt_view.py +1 -0
- near_jsonrpc_models/rpc_query_request.py +19 -1
- near_jsonrpc_models/rpc_query_response.py +2 -1
- near_jsonrpc_models/rpc_receipt_response.py +1 -0
- near_jsonrpc_models/runtime_config_view.py +0 -4
- near_jsonrpc_models/signed_transaction_view.py +2 -0
- near_jsonrpc_models/state_change_with_cause_view.py +12 -1
- near_jsonrpc_models/transfer_to_gas_key_action.py +4 -0
- near_jsonrpc_models/withdraw_from_gas_key_action.py +12 -0
- {near_jsonrpc_client-1.0.24.dist-info → near_jsonrpc_client-1.0.25.dist-info}/licenses/LICENSE +0 -0
- {near_jsonrpc_client-1.0.24.dist-info → near_jsonrpc_client-1.0.25.dist-info}/top_level.txt +0 -0
|
@@ -5,14 +5,14 @@ near_jsonrpc_client/base_client.py,sha256=xd4_o8-Z1wWFpRmkveYTzo1xoqUeQgw-1_oZzF
|
|
|
5
5
|
near_jsonrpc_client/client.py,sha256=8gnY3tgUOGwUe4r8_mOedlLik8Zr6jxbNMVxwPlmHYo,453
|
|
6
6
|
near_jsonrpc_client/errors.py,sha256=pfhIENT9KxjYXTrEsN7dfFpcbnQj2yTFuLMPtDANdeQ,978
|
|
7
7
|
near_jsonrpc_client/transport.py,sha256=r92Zf7r_4ggU_fKp4pR9WyeaUOVOyLEW7xqz8Ny1buY,1012
|
|
8
|
-
near_jsonrpc_client-1.0.
|
|
9
|
-
near_jsonrpc_models/__init__.py,sha256=
|
|
8
|
+
near_jsonrpc_client-1.0.25.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
9
|
+
near_jsonrpc_models/__init__.py,sha256=nI_q4HwXD3s9YEYpt6NaMGXW0Bzl_EKXuIry3S6f5g0,223445
|
|
10
10
|
near_jsonrpc_models/access_key.py,sha256=Yxb_imR1x07BdrtSifGDbhKHfuvD8HYYa0iaj3g0V84,918
|
|
11
11
|
near_jsonrpc_models/access_key_creation_config_view.py,sha256=z3DIfoi6jojkk-S91Eyj15CM_0ZScyOOOmyWYqio4e0,466
|
|
12
12
|
near_jsonrpc_models/access_key_info_view.py,sha256=q7_s-gjgIztX69cVn7n3yD_MbNH0pfbZBXD5inhZz4I,315
|
|
13
13
|
near_jsonrpc_models/access_key_list.py,sha256=WfZ5P4LDnY79Z1ql9hNCt6cjZpcGvfsgo_ZX3l6Nm9Q,219
|
|
14
|
-
near_jsonrpc_models/access_key_permission.py,sha256=
|
|
15
|
-
near_jsonrpc_models/access_key_permission_view.py,sha256=
|
|
14
|
+
near_jsonrpc_models/access_key_permission.py,sha256=frZ2-gD93DdEkzMbbTn4_6ys_NIzZzMIGf8FIy-rk80,1382
|
|
15
|
+
near_jsonrpc_models/access_key_permission_view.py,sha256=0Voxj08-99GTXwp_JaETpX9SessAIx3X0200_0IGYms,1593
|
|
16
16
|
near_jsonrpc_models/access_key_view.py,sha256=Rhy9TotlyE-sCfK-W7vjBFJylHBSPyKU1ptk_a9GQtg,321
|
|
17
17
|
near_jsonrpc_models/account_creation_config_view.py,sha256=WMcheKdCaAAmN9OnzsyyT7cNbfYT3Ty5viUT8DMnskQ,572
|
|
18
18
|
near_jsonrpc_models/account_data_view.py,sha256=sYx76hlJuXlnTgruTdUjRmRPUZX5EUyvmUMaNoZTqSA,1369
|
|
@@ -23,9 +23,9 @@ near_jsonrpc_models/account_view.py,sha256=CuaA8_WCnglYtgaU4Qi0MXcbvYxDnJ2UBbwCW
|
|
|
23
23
|
near_jsonrpc_models/account_with_public_key.py,sha256=-kOKDVPFhrGnQhr08mGuu-LxCydjDck7Qw4Wvzr4jqw,269
|
|
24
24
|
near_jsonrpc_models/action_creation_config_view.py,sha256=rr4ce2DDAHOh3giM2iUDJ3bDUkYgNfbqEjdggY2Ycs4,1250
|
|
25
25
|
near_jsonrpc_models/action_error.py,sha256=2_RgIHSnPEcPlOGeDd1bldgA-OCGpoJjbkteRTDpoQo,483
|
|
26
|
-
near_jsonrpc_models/action_error_kind.py,sha256=
|
|
27
|
-
near_jsonrpc_models/action_view.py,sha256=
|
|
28
|
-
near_jsonrpc_models/actions_validation_error.py,sha256=
|
|
26
|
+
near_jsonrpc_models/action_error_kind.py,sha256=DcFzN3GN2LABfr6aeUh26PzLA9Ana2J8c4I2Dcect_I,9820
|
|
27
|
+
near_jsonrpc_models/action_view.py,sha256=stef2TqTzVIsEoMx7YRlH5ZaKeHCPOYeO9DHDbcP_go,4317
|
|
28
|
+
near_jsonrpc_models/actions_validation_error.py,sha256=rTHLmqyUS6JmcGnfsc5icH9mYotQLvtT4whkY-jb8Mg,8359
|
|
29
29
|
near_jsonrpc_models/add_gas_key_action.py,sha256=KlToqWU2ZEchHpN5qzizDpNcUVXG6xw6WWOpgqF-_vM,328
|
|
30
30
|
near_jsonrpc_models/add_key_action.py,sha256=NW3IX9Z5CcmPyzDNOlfuWN5V7F22SGXdpiTglY0EcTI,383
|
|
31
31
|
near_jsonrpc_models/bandwidth_request.py,sha256=EsiLcwYb5MKOoSV3Mfz8yIYk1CQ7RwUvNxKHwTSZ-xk,636
|
|
@@ -33,7 +33,7 @@ near_jsonrpc_models/bandwidth_request_bitmap.py,sha256=YKnoUJdx5zmNk2dQ7XHoQb9ym
|
|
|
33
33
|
near_jsonrpc_models/bandwidth_requests.py,sha256=adPARwVAk7jX7cOL-E21dsLcxskmbIsrF1DeWr9FntY,493
|
|
34
34
|
near_jsonrpc_models/bandwidth_requests_v1.py,sha256=nJTJjAm4lTsKQQBfnwQTWQZbd2x1_arfWUM4MQIp5vo,241
|
|
35
35
|
near_jsonrpc_models/block_header_inner_lite_view.py,sha256=5XqDBSz15LaBPDVREIWXjpuHfWXxq5xpxZ8ibVJ3oOo,871
|
|
36
|
-
near_jsonrpc_models/block_header_view.py,sha256=
|
|
36
|
+
near_jsonrpc_models/block_header_view.py,sha256=HBaJ4XqrmjuKg11MoZWEBuikkyuMWiA5nlwA51ACJhw,2257
|
|
37
37
|
near_jsonrpc_models/block_id.py,sha256=jpN10bCklVbQsYoKuMzFPcxUp1Hj-LUh1hqV8DLEsR8,387
|
|
38
38
|
near_jsonrpc_models/block_reference.py,sha256=ohtP58bBL3rPZeVfYnbX4BAze0Gh0EzcPau0lpQa_EU,669
|
|
39
39
|
near_jsonrpc_models/block_status_view.py,sha256=YSt1phZZaLgdswxKPOjDXUvQqb3kwBj0xB_-AWrGw8I,255
|
|
@@ -112,6 +112,7 @@ near_jsonrpc_models/function_call_action.py,sha256=IOaklV8dJ66pgnw-uPouLas9JaoFA
|
|
|
112
112
|
near_jsonrpc_models/function_call_error.py,sha256=wOTjahySLaUSQqBS30QtaMLIfzCOkt-8BtM-Urewzm4,2059
|
|
113
113
|
near_jsonrpc_models/function_call_permission.py,sha256=6ARV0AJPH7r_GMMbOp_nebhcNNHyR7bMd7m7mL-m8aw,1221
|
|
114
114
|
near_jsonrpc_models/gas_key.py,sha256=moj05oUTq5T59gVnxecChVLV341GxZuijAHiyheC1EQ,712
|
|
115
|
+
near_jsonrpc_models/gas_key_info.py,sha256=_0PSczoYKvqsiqnCGcV_Nap-0LfifgAsX-fFjvy-YrY,210
|
|
115
116
|
near_jsonrpc_models/gas_key_info_view.py,sha256=6lc8mH-eEWBXUY5sLViqOQvAoC9cqCDAxjJvOZpfr4M,225
|
|
116
117
|
near_jsonrpc_models/gas_key_list.py,sha256=9whDu9_-16RK7EK7ObV6AC7MPa8XwqsPkNtXQX1Njds,182
|
|
117
118
|
near_jsonrpc_models/gas_key_view.py,sha256=nz0nwvQolrrX4xKP_E0qTAYV1yVZ4kWJaKu29zjTQVI,413
|
|
@@ -209,7 +210,7 @@ near_jsonrpc_models/near_gas.py,sha256=7dk5FYuco2_PIQzvXDmnDMDH9uFJSrA47z6KZWnXh
|
|
|
209
210
|
near_jsonrpc_models/near_token.py,sha256=gnJLUWR3aFqI8YndjpsGZwlauAjIFd_yFMC74mh22FM,107
|
|
210
211
|
near_jsonrpc_models/network_info_view.py,sha256=kX23PWEXTqc_lYtaoFWRv3viIQA7sNF1MU7SmLNJSOY,684
|
|
211
212
|
near_jsonrpc_models/next_epoch_validator_info.py,sha256=tUCWgN0kRqPxxVtd_dz21MylH6j3VFHtseFKD7iGBPE,405
|
|
212
|
-
near_jsonrpc_models/non_delegate_action.py,sha256=
|
|
213
|
+
near_jsonrpc_models/non_delegate_action.py,sha256=0zIabeeZIyZK9ZUN71KxwqGCAZt_JWFQoh6I--Je75o,3289
|
|
213
214
|
near_jsonrpc_models/peer_id.py,sha256=EOsT6bLBftWRIWjPNSn7uk7k6Z30m-XecvPnPENtSKU,108
|
|
214
215
|
near_jsonrpc_models/peer_info_view.py,sha256=hsKC9dtBw8CNQZ6eDB40DuKs5us4I3H1AfTpKozDEpQ,1054
|
|
215
216
|
near_jsonrpc_models/prepare_error.py,sha256=PyW8cwShQNPl4qzBcFXSyDtmvKMgifDb7751fUwC5I8,1214
|
|
@@ -218,7 +219,7 @@ near_jsonrpc_models/public_key.py,sha256=6z-PLiupmWsQq8vqwEd70_hQZQROGjG8JTkm7xX
|
|
|
218
219
|
near_jsonrpc_models/range_of_uint64.py,sha256=16osiKadU6oXlC1cuPyRI6sajzk37YC7FkX3iYFdXBQ,189
|
|
219
220
|
near_jsonrpc_models/receipt_enum_view.py,sha256=u71PcrUrTxhRO-DsPiFYTJT6t4s_kFlHiq_1EPhB7EQ,1741
|
|
220
221
|
near_jsonrpc_models/receipt_validation_error.py,sha256=QkSgBrY__7HkMIdc1cYn7G9R3umXK4K77jIlvEsaQ8E,3645
|
|
221
|
-
near_jsonrpc_models/receipt_view.py,sha256=
|
|
222
|
+
near_jsonrpc_models/receipt_view.py,sha256=1BKJCslEYkN11DKWgHMaENwU3wwUfTAS067s8S6T6Tg,489
|
|
222
223
|
near_jsonrpc_models/rpc_block_error.py,sha256=Ix7oSMj1ZxEroA1rkqaCWGuDnSGzTlMQ4ZILjkuS8PY,676
|
|
223
224
|
near_jsonrpc_models/rpc_block_request.py,sha256=wkfAwxHNXEfFjBpF7ie2-rpuJcP2SftTx5Pf9kqifu8,597
|
|
224
225
|
near_jsonrpc_models/rpc_block_response.py,sha256=gptLqeHOCehx_FtuJS0GMuNU0GT8pC9SFua4l_eFfEY,408
|
|
@@ -257,11 +258,11 @@ near_jsonrpc_models/rpc_protocol_config_error.py,sha256=lTqrN1RueMoBkeUv6YIGWhwW
|
|
|
257
258
|
near_jsonrpc_models/rpc_protocol_config_request.py,sha256=C-E7z27aWRWBpOL4T4gKLiTOsDm0BfO4OeY5SscMU6w,660
|
|
258
259
|
near_jsonrpc_models/rpc_protocol_config_response.py,sha256=o2GzUjX3wjRxMzeoAt1mmYk0zNlm0gIpfYqDX98wido,5641
|
|
259
260
|
near_jsonrpc_models/rpc_query_error.py,sha256=rakXPOCvqZgBatfH6d-VM2ofFtIwuUi68wE_Wvrk43c,4475
|
|
260
|
-
near_jsonrpc_models/rpc_query_request.py,sha256=
|
|
261
|
-
near_jsonrpc_models/rpc_query_response.py,sha256=
|
|
261
|
+
near_jsonrpc_models/rpc_query_request.py,sha256=2i1y92Q84KKpoGLzzeRm_4WxI8saUiusqRiYFX2eAgM,6693
|
|
262
|
+
near_jsonrpc_models/rpc_query_response.py,sha256=Vdk7IKcZRq7rXB77zYnR1gS3QASGm5SffF2nE1DkubI,1624
|
|
262
263
|
near_jsonrpc_models/rpc_receipt_error.py,sha256=XeMkRBYg4gdTEreJ3aNvgERjdJJLXF3bkeWIhDX_eGI,695
|
|
263
264
|
near_jsonrpc_models/rpc_receipt_request.py,sha256=IZtUSM5T-AdmYR3fy3IsaHeN-etjMaBepiHlU79LySU,151
|
|
264
|
-
near_jsonrpc_models/rpc_receipt_response.py,sha256=
|
|
265
|
+
near_jsonrpc_models/rpc_receipt_response.py,sha256=5N-5loXWujV83NddenpmhuH-m3JRGut_zyLWHIsp4HU,496
|
|
265
266
|
near_jsonrpc_models/rpc_request_validation_error_kind.py,sha256=6I_jaRiStyg6_xjtTmDz7sCJ56fddSH86vjpaPV5OUk,746
|
|
266
267
|
near_jsonrpc_models/rpc_send_transaction_request.py,sha256=suphigwNOehnAY3227raIfR9T1zkBB0_Gvvphr75YOY,391
|
|
267
268
|
near_jsonrpc_models/rpc_split_storage_info_error.py,sha256=IiiQ1WyKmwOFMwykdK-usEW3b5yZxd9ZSFyxs0tubu4,444
|
|
@@ -303,7 +304,7 @@ near_jsonrpc_models/rpc_view_gas_key_response.py,sha256=Wnymph7cwmVIJITV-UgECT82
|
|
|
303
304
|
near_jsonrpc_models/rpc_view_state_error.py,sha256=XM-6-poRLwcSdfqwbxVeXQRvevV-erHF8NCIvPYbjNw,1915
|
|
304
305
|
near_jsonrpc_models/rpc_view_state_request.py,sha256=QZjrAJSaT5gc-oq3G-5HqKBcuiD4OMTpnnOhS4B1mC8,987
|
|
305
306
|
near_jsonrpc_models/rpc_view_state_response.py,sha256=GgZv8V6m8lrx-lV7tbteHNrT9UiculhU2SNzOYQSnpE,432
|
|
306
|
-
near_jsonrpc_models/runtime_config_view.py,sha256=
|
|
307
|
+
near_jsonrpc_models/runtime_config_view.py,sha256=ehotukdyOy_m1NAofXcQp7YDZXZgmsxe5FwbZeWzpeY,1326
|
|
307
308
|
near_jsonrpc_models/runtime_fees_config_view.py,sha256=stmMEjLjoEn87xiQ4Ois_BGSw_Nbkgrjpo2WjH5n57g,1581
|
|
308
309
|
near_jsonrpc_models/shard_id.py,sha256=BGs5Po_GSyiHz9jfTNUc6gwMg1tcXH1AJ4IMz-1SMAc,572
|
|
309
310
|
near_jsonrpc_models/shard_layout.py,sha256=cQn_buHJBpUINWXwYS1HbKo_vZvFECpRkyiLt3vc4vM,1371
|
|
@@ -315,12 +316,12 @@ near_jsonrpc_models/shard_uid.py,sha256=V97Hg2KnEYSZ09e1x0iTU1QfjARw0gaYFzjVVKa1
|
|
|
315
316
|
near_jsonrpc_models/signature.py,sha256=RDKsrVrhApco5QeV_CVC4fiu8BmPumxcOKVAqRDGHns,107
|
|
316
317
|
near_jsonrpc_models/signed_delegate_action.py,sha256=nvDGsVczg5tB0vBthoxM7BGhuafpbNGXCf77BvDk5b0,248
|
|
317
318
|
near_jsonrpc_models/signed_transaction.py,sha256=y1MhWDYQM-Pfyad2T1TkUshqeG4uQX0t9e2jx0qknak,115
|
|
318
|
-
near_jsonrpc_models/signed_transaction_view.py,sha256=
|
|
319
|
+
near_jsonrpc_models/signed_transaction_view.py,sha256=LQev4YfDu-NlYL_8Zt39FgYcBIxHqHamqBbm2BAzOpg,770
|
|
319
320
|
near_jsonrpc_models/slashed_validator.py,sha256=S0-BRM_6ye9NPlP9dwv2xFlTbLis7f2bbsUoa6_Xkjo,172
|
|
320
321
|
near_jsonrpc_models/stake_action.py,sha256=uQGmreww68WARsQmwpg3fVGoh1zzadJ69YYY7iHXh-I,412
|
|
321
322
|
near_jsonrpc_models/state_change_cause_view.py,sha256=366L6NI8vThzQHYya8UcORxIS2o3czoG_QRZY6PkFGo,2020
|
|
322
323
|
near_jsonrpc_models/state_change_kind_view.py,sha256=vHRm-vlzk0rflryZxmD0nWkRLrMTOKayP75Ray4qP1Y,994
|
|
323
|
-
near_jsonrpc_models/state_change_with_cause_view.py,sha256=
|
|
324
|
+
near_jsonrpc_models/state_change_with_cause_view.py,sha256=tMTtfqt7VtZmzs-epoQUGZuj1_2ZorHiJyQYa86RfhU,4201
|
|
324
325
|
near_jsonrpc_models/state_item.py,sha256=s17-HpPeaDYhbTUywml4MhG6ptTgq9Ku1geMx8N7S34,317
|
|
325
326
|
near_jsonrpc_models/state_sync_config.py,sha256=Did7b1-Bt-eeWpHgJvGqmM1t2s7O0-XqTypWHEr6hjc,548
|
|
326
327
|
near_jsonrpc_models/status_sync_info.py,sha256=vPMJiA0As1X2bAwlJb_0R3ddw-nOMifRHv37r9WbGzw,658
|
|
@@ -336,7 +337,7 @@ near_jsonrpc_models/sync_config.py,sha256=ayQ_--FALGaaiFg9AQPvaxK6bp6unUiv_onq3h
|
|
|
336
337
|
near_jsonrpc_models/tier1proxy_view.py,sha256=2qR6_iLPA_WWhaEYWtCkXkE3N7cZyvWOz50cKdGjSdo,156
|
|
337
338
|
near_jsonrpc_models/tracked_shards_config.py,sha256=DBQnc2Qo5n4Jsf-U6PQEu57W0F8K-_OFeLqMKnaoePI,1630
|
|
338
339
|
near_jsonrpc_models/transfer_action.py,sha256=G8dvIsh_eKhSMM_28PHfGG-0oxJi3uftA3C8yyFxRKA,142
|
|
339
|
-
near_jsonrpc_models/transfer_to_gas_key_action.py,sha256
|
|
340
|
+
near_jsonrpc_models/transfer_to_gas_key_action.py,sha256=63qy0_Lo7AXU-61C6qFReZ2bcqcPG7YdaNk07adhk1w,365
|
|
340
341
|
near_jsonrpc_models/tx_execution_error.py,sha256=0-b7rXu-rI3m1tsUa2kALZLJsHfavB1hz3EfyvjCV1A,731
|
|
341
342
|
near_jsonrpc_models/tx_execution_status.py,sha256=qK0qw5dNS7l-qUBLSxNAlY5Im_poLgJQMLZ9qnmF5jA,920
|
|
342
343
|
near_jsonrpc_models/use_global_contract_action.py,sha256=lqU-18UhchsvlcC4idC96DZgHQjsjbY56qa3u9eEgk0,243
|
|
@@ -350,8 +351,9 @@ near_jsonrpc_models/view_state_result.py,sha256=0wZaHc8UQ9PUshy1kDi0z266sGHPHc5W
|
|
|
350
351
|
near_jsonrpc_models/vmconfig_view.py,sha256=LiW1t0jqnCiSdb8uuUBMaGzGg2NAudUo9kcOIg0hFfE,2073
|
|
351
352
|
near_jsonrpc_models/vmkind.py,sha256=tCxyZlDaGn3bz-lThkbUj0oO6qxoQP7lGANMusstpC8,252
|
|
352
353
|
near_jsonrpc_models/wasm_trap.py,sha256=y0nay7ulaHOGpHPRnKIU0FWxHeWfwnrYiYvllLry3Mw,791
|
|
354
|
+
near_jsonrpc_models/withdraw_from_gas_key_action.py,sha256=12urRilmm125SsHVHoMXLSzpTEpWL-CgDV-HA2kx1ag,394
|
|
353
355
|
near_jsonrpc_models/witness_config_view.py,sha256=kTeYTx1mtk0IT6ary63awFk5hIGn8mS8UlOCMaqhr2Q,912
|
|
354
|
-
near_jsonrpc_client-1.0.
|
|
355
|
-
near_jsonrpc_client-1.0.
|
|
356
|
-
near_jsonrpc_client-1.0.
|
|
357
|
-
near_jsonrpc_client-1.0.
|
|
356
|
+
near_jsonrpc_client-1.0.25.dist-info/METADATA,sha256=7TBbT6Bi0TPV8wt3Z99XkgkEvMUMw6ubfwHdrLlfevE,6309
|
|
357
|
+
near_jsonrpc_client-1.0.25.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
358
|
+
near_jsonrpc_client-1.0.25.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
|
|
359
|
+
near_jsonrpc_client-1.0.25.dist-info/RECORD,,
|
near_jsonrpc_models/__init__.py
CHANGED
|
@@ -69,6 +69,10 @@ if TYPE_CHECKING:
|
|
|
69
69
|
from .access_key_permission_view import AccessKeyPermissionViewFullAccess
|
|
70
70
|
from .access_key_permission_view import AccessKeyPermissionViewFunctionCallPayload
|
|
71
71
|
from .access_key_permission_view import AccessKeyPermissionViewFunctionCall
|
|
72
|
+
from .access_key_permission_view import AccessKeyPermissionViewGasKeyFunctionCallPayload
|
|
73
|
+
from .access_key_permission_view import AccessKeyPermissionViewGasKeyFunctionCall
|
|
74
|
+
from .access_key_permission_view import AccessKeyPermissionViewGasKeyFullAccessPayload
|
|
75
|
+
from .access_key_permission_view import AccessKeyPermissionViewGasKeyFullAccess
|
|
72
76
|
from .access_key_permission_view import AccessKeyPermissionView
|
|
73
77
|
from .rpc_view_code_response import RpcViewCodeResponse
|
|
74
78
|
from .rpc_view_account_request import RpcViewAccountRequestBlockId
|
|
@@ -202,6 +206,7 @@ if TYPE_CHECKING:
|
|
|
202
206
|
from .json_rpc_response_for_array_of_range_of_uint64_and_rpc_maintenance_windows_error import JsonRpcResponseForArrayOfRangeOfUint64AndRpcMaintenanceWindowsErrorError
|
|
203
207
|
from .json_rpc_response_for_array_of_range_of_uint64_and_rpc_maintenance_windows_error import JsonRpcResponseForArrayOfRangeOfUint64AndRpcMaintenanceWindowsError
|
|
204
208
|
from .rpc_call_function_response import RpcCallFunctionResponse
|
|
209
|
+
from .withdraw_from_gas_key_action import WithdrawFromGasKeyAction
|
|
205
210
|
from .rpc_split_storage_info_error import RpcSplitStorageInfoErrorInternalErrorInfo
|
|
206
211
|
from .rpc_split_storage_info_error import RpcSplitStorageInfoErrorInternalError
|
|
207
212
|
from .rpc_split_storage_info_error import RpcSplitStorageInfoError
|
|
@@ -279,6 +284,10 @@ if TYPE_CHECKING:
|
|
|
279
284
|
from .action_error_kind import ActionErrorKindDelegateActionNonceTooLarge
|
|
280
285
|
from .action_error_kind import ActionErrorKindGlobalContractDoesNotExistPayload
|
|
281
286
|
from .action_error_kind import ActionErrorKindGlobalContractDoesNotExist
|
|
287
|
+
from .action_error_kind import ActionErrorKindGasKeyDoesNotExistPayload
|
|
288
|
+
from .action_error_kind import ActionErrorKindGasKeyDoesNotExist
|
|
289
|
+
from .action_error_kind import ActionErrorKindInsufficientGasKeyBalancePayload
|
|
290
|
+
from .action_error_kind import ActionErrorKindInsufficientGasKeyBalance
|
|
282
291
|
from .action_error_kind import ActionErrorKind
|
|
283
292
|
from .json_rpc_request_for_broadcast_tx_async import JsonRpcRequestForBroadcastTxAsync
|
|
284
293
|
from .rpc_health_request import RpcHealthRequest
|
|
@@ -342,6 +351,8 @@ if TYPE_CHECKING:
|
|
|
342
351
|
from .rpc_state_changes_in_block_request import RpcStateChangesInBlockRequest
|
|
343
352
|
from .access_key_permission import AccessKeyPermissionFunctionCall
|
|
344
353
|
from .access_key_permission import AccessKeyPermissionFullAccess
|
|
354
|
+
from .access_key_permission import AccessKeyPermissionGasKeyFunctionCall
|
|
355
|
+
from .access_key_permission import AccessKeyPermissionGasKeyFullAccess
|
|
345
356
|
from .access_key_permission import AccessKeyPermission
|
|
346
357
|
from .detailed_debug_status import DetailedDebugStatus
|
|
347
358
|
from .store_value import StoreValue
|
|
@@ -500,6 +511,8 @@ if TYPE_CHECKING:
|
|
|
500
511
|
from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyUpdate
|
|
501
512
|
from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyDeletionChange
|
|
502
513
|
from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyDeletion
|
|
514
|
+
from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyNonceUpdateChange
|
|
515
|
+
from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyNonceUpdate
|
|
503
516
|
from .state_change_with_cause_view import StateChangeWithCauseViewDataUpdateChange
|
|
504
517
|
from .state_change_with_cause_view import StateChangeWithCauseViewDataUpdate
|
|
505
518
|
from .state_change_with_cause_view import StateChangeWithCauseViewDataDeletionChange
|
|
@@ -574,6 +587,11 @@ if TYPE_CHECKING:
|
|
|
574
587
|
from .actions_validation_error import ActionsValidationErrorDeterministicStateInitKeyLengthExceeded
|
|
575
588
|
from .actions_validation_error import ActionsValidationErrorDeterministicStateInitValueLengthExceededPayload
|
|
576
589
|
from .actions_validation_error import ActionsValidationErrorDeterministicStateInitValueLengthExceeded
|
|
590
|
+
from .actions_validation_error import ActionsValidationErrorGasKeyTooManyNoncesRequestedPayload
|
|
591
|
+
from .actions_validation_error import ActionsValidationErrorGasKeyTooManyNoncesRequested
|
|
592
|
+
from .actions_validation_error import ActionsValidationErrorAddGasKeyWithNonZeroBalancePayload
|
|
593
|
+
from .actions_validation_error import ActionsValidationErrorAddGasKeyWithNonZeroBalance
|
|
594
|
+
from .actions_validation_error import ActionsValidationErrorGasKeyFunctionCallAllowanceNotAllowed
|
|
577
595
|
from .actions_validation_error import ActionsValidationError
|
|
578
596
|
from .tracked_shards_config import TrackedShardsConfigNoShards
|
|
579
597
|
from .tracked_shards_config import TrackedShardsConfigShards
|
|
@@ -806,6 +824,8 @@ if TYPE_CHECKING:
|
|
|
806
824
|
from .non_delegate_action import NonDelegateActionDeployGlobalContract
|
|
807
825
|
from .non_delegate_action import NonDelegateActionUseGlobalContract
|
|
808
826
|
from .non_delegate_action import NonDelegateActionDeterministicStateInit
|
|
827
|
+
from .non_delegate_action import NonDelegateActionTransferToGasKey
|
|
828
|
+
from .non_delegate_action import NonDelegateActionWithdrawFromGasKey
|
|
809
829
|
from .non_delegate_action import NonDelegateAction
|
|
810
830
|
from .action_error import ActionError
|
|
811
831
|
from .epoch_id import EpochId
|
|
@@ -860,6 +880,7 @@ if TYPE_CHECKING:
|
|
|
860
880
|
from .storage_error import StorageError
|
|
861
881
|
from .access_key_view import AccessKeyView
|
|
862
882
|
from .json_rpc_request_for_experimental_view_gas_key import JsonRpcRequestForExperimentalViewGasKey
|
|
883
|
+
from .gas_key_info import GasKeyInfo
|
|
863
884
|
from .rpc_view_code_request import RpcViewCodeRequestBlockId
|
|
864
885
|
from .rpc_view_code_request import RpcViewCodeRequestFinality
|
|
865
886
|
from .rpc_view_code_request import RpcViewCodeRequestSyncCheckpoint
|
|
@@ -914,6 +935,7 @@ if TYPE_CHECKING:
|
|
|
914
935
|
from .rpc_query_request import RpcQueryRequestViewStateByBlockId
|
|
915
936
|
from .rpc_query_request import RpcQueryRequestViewAccessKeyByBlockId
|
|
916
937
|
from .rpc_query_request import RpcQueryRequestViewAccessKeyListByBlockId
|
|
938
|
+
from .rpc_query_request import RpcQueryRequestViewGasKeyNoncesByBlockId
|
|
917
939
|
from .rpc_query_request import RpcQueryRequestCallFunctionByBlockId
|
|
918
940
|
from .rpc_query_request import RpcQueryRequestViewGlobalContractCodeByBlockId
|
|
919
941
|
from .rpc_query_request import RpcQueryRequestViewGlobalContractCodeByAccountIdByBlockId
|
|
@@ -922,6 +944,7 @@ if TYPE_CHECKING:
|
|
|
922
944
|
from .rpc_query_request import RpcQueryRequestViewStateByFinality
|
|
923
945
|
from .rpc_query_request import RpcQueryRequestViewAccessKeyByFinality
|
|
924
946
|
from .rpc_query_request import RpcQueryRequestViewAccessKeyListByFinality
|
|
947
|
+
from .rpc_query_request import RpcQueryRequestViewGasKeyNoncesByFinality
|
|
925
948
|
from .rpc_query_request import RpcQueryRequestCallFunctionByFinality
|
|
926
949
|
from .rpc_query_request import RpcQueryRequestViewGlobalContractCodeByFinality
|
|
927
950
|
from .rpc_query_request import RpcQueryRequestViewGlobalContractCodeByAccountIdByFinality
|
|
@@ -930,6 +953,7 @@ if TYPE_CHECKING:
|
|
|
930
953
|
from .rpc_query_request import RpcQueryRequestViewStateBySyncCheckpoint
|
|
931
954
|
from .rpc_query_request import RpcQueryRequestViewAccessKeyBySyncCheckpoint
|
|
932
955
|
from .rpc_query_request import RpcQueryRequestViewAccessKeyListBySyncCheckpoint
|
|
956
|
+
from .rpc_query_request import RpcQueryRequestViewGasKeyNoncesBySyncCheckpoint
|
|
933
957
|
from .rpc_query_request import RpcQueryRequestCallFunctionBySyncCheckpoint
|
|
934
958
|
from .rpc_query_request import RpcQueryRequestViewGlobalContractCodeBySyncCheckpoint
|
|
935
959
|
from .rpc_query_request import RpcQueryRequestViewGlobalContractCodeByAccountIdBySyncCheckpoint
|
|
@@ -1013,6 +1037,10 @@ if TYPE_CHECKING:
|
|
|
1013
1037
|
from .action_view import ActionViewUseGlobalContractByAccountId
|
|
1014
1038
|
from .action_view import ActionViewDeterministicStateInitPayload
|
|
1015
1039
|
from .action_view import ActionViewDeterministicStateInit
|
|
1040
|
+
from .action_view import ActionViewTransferToGasKeyPayload
|
|
1041
|
+
from .action_view import ActionViewTransferToGasKey
|
|
1042
|
+
from .action_view import ActionViewWithdrawFromGasKeyPayload
|
|
1043
|
+
from .action_view import ActionViewWithdrawFromGasKey
|
|
1016
1044
|
from .action_view import ActionView
|
|
1017
1045
|
from .rpc_congestion_level_request import RpcCongestionLevelRequestBlockShardId
|
|
1018
1046
|
from .rpc_congestion_level_request import RpcCongestionLevelRequestChunkHash
|
|
@@ -1093,10 +1121,16 @@ __all__ = [
|
|
|
1093
1121
|
'AccessKeyPermission',
|
|
1094
1122
|
'AccessKeyPermissionFullAccess',
|
|
1095
1123
|
'AccessKeyPermissionFunctionCall',
|
|
1124
|
+
'AccessKeyPermissionGasKeyFullAccess',
|
|
1125
|
+
'AccessKeyPermissionGasKeyFunctionCall',
|
|
1096
1126
|
'AccessKeyPermissionView',
|
|
1097
1127
|
'AccessKeyPermissionViewFullAccess',
|
|
1098
1128
|
'AccessKeyPermissionViewFunctionCall',
|
|
1099
1129
|
'AccessKeyPermissionViewFunctionCallPayload',
|
|
1130
|
+
'AccessKeyPermissionViewGasKeyFullAccess',
|
|
1131
|
+
'AccessKeyPermissionViewGasKeyFullAccessPayload',
|
|
1132
|
+
'AccessKeyPermissionViewGasKeyFunctionCall',
|
|
1133
|
+
'AccessKeyPermissionViewGasKeyFunctionCallPayload',
|
|
1100
1134
|
'AccessKeyView',
|
|
1101
1135
|
'AccountCreationConfigView',
|
|
1102
1136
|
'AccountDataView',
|
|
@@ -1136,8 +1170,12 @@ __all__ = [
|
|
|
1136
1170
|
'ActionErrorKindDeleteKeyDoesNotExist',
|
|
1137
1171
|
'ActionErrorKindDeleteKeyDoesNotExistPayload',
|
|
1138
1172
|
'ActionErrorKindFunctionCallError',
|
|
1173
|
+
'ActionErrorKindGasKeyDoesNotExist',
|
|
1174
|
+
'ActionErrorKindGasKeyDoesNotExistPayload',
|
|
1139
1175
|
'ActionErrorKindGlobalContractDoesNotExist',
|
|
1140
1176
|
'ActionErrorKindGlobalContractDoesNotExistPayload',
|
|
1177
|
+
'ActionErrorKindInsufficientGasKeyBalance',
|
|
1178
|
+
'ActionErrorKindInsufficientGasKeyBalancePayload',
|
|
1141
1179
|
'ActionErrorKindInsufficientStake',
|
|
1142
1180
|
'ActionErrorKindInsufficientStakePayload',
|
|
1143
1181
|
'ActionErrorKindLackBalanceForState',
|
|
@@ -1173,11 +1211,17 @@ __all__ = [
|
|
|
1173
1211
|
'ActionViewStakePayload',
|
|
1174
1212
|
'ActionViewTransfer',
|
|
1175
1213
|
'ActionViewTransferPayload',
|
|
1214
|
+
'ActionViewTransferToGasKey',
|
|
1215
|
+
'ActionViewTransferToGasKeyPayload',
|
|
1176
1216
|
'ActionViewUseGlobalContract',
|
|
1177
1217
|
'ActionViewUseGlobalContractByAccountId',
|
|
1178
1218
|
'ActionViewUseGlobalContractByAccountIdPayload',
|
|
1179
1219
|
'ActionViewUseGlobalContractPayload',
|
|
1220
|
+
'ActionViewWithdrawFromGasKey',
|
|
1221
|
+
'ActionViewWithdrawFromGasKeyPayload',
|
|
1180
1222
|
'ActionsValidationError',
|
|
1223
|
+
'ActionsValidationErrorAddGasKeyWithNonZeroBalance',
|
|
1224
|
+
'ActionsValidationErrorAddGasKeyWithNonZeroBalancePayload',
|
|
1181
1225
|
'ActionsValidationErrorAddKeyMethodNameLengthExceeded',
|
|
1182
1226
|
'ActionsValidationErrorAddKeyMethodNameLengthExceededPayload',
|
|
1183
1227
|
'ActionsValidationErrorAddKeyMethodNamesNumberOfBytesExceeded',
|
|
@@ -1195,6 +1239,9 @@ __all__ = [
|
|
|
1195
1239
|
'ActionsValidationErrorFunctionCallMethodNameLengthExceeded',
|
|
1196
1240
|
'ActionsValidationErrorFunctionCallMethodNameLengthExceededPayload',
|
|
1197
1241
|
'ActionsValidationErrorFunctionCallZeroAttachedGas',
|
|
1242
|
+
'ActionsValidationErrorGasKeyFunctionCallAllowanceNotAllowed',
|
|
1243
|
+
'ActionsValidationErrorGasKeyTooManyNoncesRequested',
|
|
1244
|
+
'ActionsValidationErrorGasKeyTooManyNoncesRequestedPayload',
|
|
1198
1245
|
'ActionsValidationErrorIntegerOverflow',
|
|
1199
1246
|
'ActionsValidationErrorInvalidAccountId',
|
|
1200
1247
|
'ActionsValidationErrorInvalidAccountIdPayload',
|
|
@@ -1404,6 +1451,7 @@ __all__ = [
|
|
|
1404
1451
|
'FunctionCallPermission',
|
|
1405
1452
|
'GCConfig',
|
|
1406
1453
|
'GasKey',
|
|
1454
|
+
'GasKeyInfo',
|
|
1407
1455
|
'GasKeyInfoView',
|
|
1408
1456
|
'GasKeyList',
|
|
1409
1457
|
'GasKeyView',
|
|
@@ -1670,7 +1718,9 @@ __all__ = [
|
|
|
1670
1718
|
'NonDelegateActionFunctionCall',
|
|
1671
1719
|
'NonDelegateActionStake',
|
|
1672
1720
|
'NonDelegateActionTransfer',
|
|
1721
|
+
'NonDelegateActionTransferToGasKey',
|
|
1673
1722
|
'NonDelegateActionUseGlobalContract',
|
|
1723
|
+
'NonDelegateActionWithdrawFromGasKey',
|
|
1674
1724
|
'PeerId',
|
|
1675
1725
|
'PeerInfoView',
|
|
1676
1726
|
'PrepareError',
|
|
@@ -1848,6 +1898,9 @@ __all__ = [
|
|
|
1848
1898
|
'RpcQueryRequestViewCodeByBlockId',
|
|
1849
1899
|
'RpcQueryRequestViewCodeByFinality',
|
|
1850
1900
|
'RpcQueryRequestViewCodeBySyncCheckpoint',
|
|
1901
|
+
'RpcQueryRequestViewGasKeyNoncesByBlockId',
|
|
1902
|
+
'RpcQueryRequestViewGasKeyNoncesByFinality',
|
|
1903
|
+
'RpcQueryRequestViewGasKeyNoncesBySyncCheckpoint',
|
|
1851
1904
|
'RpcQueryRequestViewGlobalContractCodeByAccountIdByBlockId',
|
|
1852
1905
|
'RpcQueryRequestViewGlobalContractCodeByAccountIdByFinality',
|
|
1853
1906
|
'RpcQueryRequestViewGlobalContractCodeByAccountIdBySyncCheckpoint',
|
|
@@ -2105,6 +2158,8 @@ __all__ = [
|
|
|
2105
2158
|
'StateChangeWithCauseViewDataDeletionChange',
|
|
2106
2159
|
'StateChangeWithCauseViewDataUpdate',
|
|
2107
2160
|
'StateChangeWithCauseViewDataUpdateChange',
|
|
2161
|
+
'StateChangeWithCauseViewGasKeyNonceUpdate',
|
|
2162
|
+
'StateChangeWithCauseViewGasKeyNonceUpdateChange',
|
|
2108
2163
|
'StateItem',
|
|
2109
2164
|
'StateSyncConfig',
|
|
2110
2165
|
'StatusSyncInfo',
|
|
@@ -2164,6 +2219,7 @@ __all__ = [
|
|
|
2164
2219
|
'Version',
|
|
2165
2220
|
'ViewStateResult',
|
|
2166
2221
|
'WasmTrap',
|
|
2222
|
+
'WithdrawFromGasKeyAction',
|
|
2167
2223
|
'WitnessConfigView',
|
|
2168
2224
|
's',
|
|
2169
2225
|
's',
|
|
@@ -2236,6 +2292,10 @@ _CLASS_TO_MODULE = {
|
|
|
2236
2292
|
'AccessKeyPermissionViewFullAccess': 'access_key_permission_view',
|
|
2237
2293
|
'AccessKeyPermissionViewFunctionCallPayload': 'access_key_permission_view',
|
|
2238
2294
|
'AccessKeyPermissionViewFunctionCall': 'access_key_permission_view',
|
|
2295
|
+
'AccessKeyPermissionViewGasKeyFunctionCallPayload': 'access_key_permission_view',
|
|
2296
|
+
'AccessKeyPermissionViewGasKeyFunctionCall': 'access_key_permission_view',
|
|
2297
|
+
'AccessKeyPermissionViewGasKeyFullAccessPayload': 'access_key_permission_view',
|
|
2298
|
+
'AccessKeyPermissionViewGasKeyFullAccess': 'access_key_permission_view',
|
|
2239
2299
|
'AccessKeyPermissionView': 'access_key_permission_view',
|
|
2240
2300
|
'RpcViewCodeResponse': 'rpc_view_code_response',
|
|
2241
2301
|
'RpcViewAccountRequestBlockId': 'rpc_view_account_request',
|
|
@@ -2369,6 +2429,7 @@ _CLASS_TO_MODULE = {
|
|
|
2369
2429
|
'JsonRpcResponseForArrayOfRangeOfUint64AndRpcMaintenanceWindowsErrorError': 'json_rpc_response_for_array_of_range_of_uint64_and_rpc_maintenance_windows_error',
|
|
2370
2430
|
'JsonRpcResponseForArrayOfRangeOfUint64AndRpcMaintenanceWindowsError': 'json_rpc_response_for_array_of_range_of_uint64_and_rpc_maintenance_windows_error',
|
|
2371
2431
|
'RpcCallFunctionResponse': 'rpc_call_function_response',
|
|
2432
|
+
'WithdrawFromGasKeyAction': 'withdraw_from_gas_key_action',
|
|
2372
2433
|
'RpcSplitStorageInfoErrorInternalErrorInfo': 'rpc_split_storage_info_error',
|
|
2373
2434
|
'RpcSplitStorageInfoErrorInternalError': 'rpc_split_storage_info_error',
|
|
2374
2435
|
'RpcSplitStorageInfoError': 'rpc_split_storage_info_error',
|
|
@@ -2446,6 +2507,10 @@ _CLASS_TO_MODULE = {
|
|
|
2446
2507
|
'ActionErrorKindDelegateActionNonceTooLarge': 'action_error_kind',
|
|
2447
2508
|
'ActionErrorKindGlobalContractDoesNotExistPayload': 'action_error_kind',
|
|
2448
2509
|
'ActionErrorKindGlobalContractDoesNotExist': 'action_error_kind',
|
|
2510
|
+
'ActionErrorKindGasKeyDoesNotExistPayload': 'action_error_kind',
|
|
2511
|
+
'ActionErrorKindGasKeyDoesNotExist': 'action_error_kind',
|
|
2512
|
+
'ActionErrorKindInsufficientGasKeyBalancePayload': 'action_error_kind',
|
|
2513
|
+
'ActionErrorKindInsufficientGasKeyBalance': 'action_error_kind',
|
|
2449
2514
|
'ActionErrorKind': 'action_error_kind',
|
|
2450
2515
|
'JsonRpcRequestForBroadcastTxAsync': 'json_rpc_request_for_broadcast_tx_async',
|
|
2451
2516
|
'RpcHealthRequest': 'rpc_health_request',
|
|
@@ -2509,6 +2574,8 @@ _CLASS_TO_MODULE = {
|
|
|
2509
2574
|
'RpcStateChangesInBlockRequest': 'rpc_state_changes_in_block_request',
|
|
2510
2575
|
'AccessKeyPermissionFunctionCall': 'access_key_permission',
|
|
2511
2576
|
'AccessKeyPermissionFullAccess': 'access_key_permission',
|
|
2577
|
+
'AccessKeyPermissionGasKeyFunctionCall': 'access_key_permission',
|
|
2578
|
+
'AccessKeyPermissionGasKeyFullAccess': 'access_key_permission',
|
|
2512
2579
|
'AccessKeyPermission': 'access_key_permission',
|
|
2513
2580
|
'DetailedDebugStatus': 'detailed_debug_status',
|
|
2514
2581
|
'StoreValue': 'store_value',
|
|
@@ -2667,6 +2734,8 @@ _CLASS_TO_MODULE = {
|
|
|
2667
2734
|
'StateChangeWithCauseViewAccessKeyUpdate': 'state_change_with_cause_view',
|
|
2668
2735
|
'StateChangeWithCauseViewAccessKeyDeletionChange': 'state_change_with_cause_view',
|
|
2669
2736
|
'StateChangeWithCauseViewAccessKeyDeletion': 'state_change_with_cause_view',
|
|
2737
|
+
'StateChangeWithCauseViewGasKeyNonceUpdateChange': 'state_change_with_cause_view',
|
|
2738
|
+
'StateChangeWithCauseViewGasKeyNonceUpdate': 'state_change_with_cause_view',
|
|
2670
2739
|
'StateChangeWithCauseViewDataUpdateChange': 'state_change_with_cause_view',
|
|
2671
2740
|
'StateChangeWithCauseViewDataUpdate': 'state_change_with_cause_view',
|
|
2672
2741
|
'StateChangeWithCauseViewDataDeletionChange': 'state_change_with_cause_view',
|
|
@@ -2741,6 +2810,11 @@ _CLASS_TO_MODULE = {
|
|
|
2741
2810
|
'ActionsValidationErrorDeterministicStateInitKeyLengthExceeded': 'actions_validation_error',
|
|
2742
2811
|
'ActionsValidationErrorDeterministicStateInitValueLengthExceededPayload': 'actions_validation_error',
|
|
2743
2812
|
'ActionsValidationErrorDeterministicStateInitValueLengthExceeded': 'actions_validation_error',
|
|
2813
|
+
'ActionsValidationErrorGasKeyTooManyNoncesRequestedPayload': 'actions_validation_error',
|
|
2814
|
+
'ActionsValidationErrorGasKeyTooManyNoncesRequested': 'actions_validation_error',
|
|
2815
|
+
'ActionsValidationErrorAddGasKeyWithNonZeroBalancePayload': 'actions_validation_error',
|
|
2816
|
+
'ActionsValidationErrorAddGasKeyWithNonZeroBalance': 'actions_validation_error',
|
|
2817
|
+
'ActionsValidationErrorGasKeyFunctionCallAllowanceNotAllowed': 'actions_validation_error',
|
|
2744
2818
|
'ActionsValidationError': 'actions_validation_error',
|
|
2745
2819
|
'TrackedShardsConfigNoShards': 'tracked_shards_config',
|
|
2746
2820
|
'TrackedShardsConfigShards': 'tracked_shards_config',
|
|
@@ -2973,6 +3047,8 @@ _CLASS_TO_MODULE = {
|
|
|
2973
3047
|
'NonDelegateActionDeployGlobalContract': 'non_delegate_action',
|
|
2974
3048
|
'NonDelegateActionUseGlobalContract': 'non_delegate_action',
|
|
2975
3049
|
'NonDelegateActionDeterministicStateInit': 'non_delegate_action',
|
|
3050
|
+
'NonDelegateActionTransferToGasKey': 'non_delegate_action',
|
|
3051
|
+
'NonDelegateActionWithdrawFromGasKey': 'non_delegate_action',
|
|
2976
3052
|
'NonDelegateAction': 'non_delegate_action',
|
|
2977
3053
|
'ActionError': 'action_error',
|
|
2978
3054
|
'EpochId': 'epoch_id',
|
|
@@ -3027,6 +3103,7 @@ _CLASS_TO_MODULE = {
|
|
|
3027
3103
|
'StorageError': 'storage_error',
|
|
3028
3104
|
'AccessKeyView': 'access_key_view',
|
|
3029
3105
|
'JsonRpcRequestForExperimentalViewGasKey': 'json_rpc_request_for_experimental_view_gas_key',
|
|
3106
|
+
'GasKeyInfo': 'gas_key_info',
|
|
3030
3107
|
'RpcViewCodeRequestBlockId': 'rpc_view_code_request',
|
|
3031
3108
|
'RpcViewCodeRequestFinality': 'rpc_view_code_request',
|
|
3032
3109
|
'RpcViewCodeRequestSyncCheckpoint': 'rpc_view_code_request',
|
|
@@ -3081,6 +3158,7 @@ _CLASS_TO_MODULE = {
|
|
|
3081
3158
|
'RpcQueryRequestViewStateByBlockId': 'rpc_query_request',
|
|
3082
3159
|
'RpcQueryRequestViewAccessKeyByBlockId': 'rpc_query_request',
|
|
3083
3160
|
'RpcQueryRequestViewAccessKeyListByBlockId': 'rpc_query_request',
|
|
3161
|
+
'RpcQueryRequestViewGasKeyNoncesByBlockId': 'rpc_query_request',
|
|
3084
3162
|
'RpcQueryRequestCallFunctionByBlockId': 'rpc_query_request',
|
|
3085
3163
|
'RpcQueryRequestViewGlobalContractCodeByBlockId': 'rpc_query_request',
|
|
3086
3164
|
'RpcQueryRequestViewGlobalContractCodeByAccountIdByBlockId': 'rpc_query_request',
|
|
@@ -3089,6 +3167,7 @@ _CLASS_TO_MODULE = {
|
|
|
3089
3167
|
'RpcQueryRequestViewStateByFinality': 'rpc_query_request',
|
|
3090
3168
|
'RpcQueryRequestViewAccessKeyByFinality': 'rpc_query_request',
|
|
3091
3169
|
'RpcQueryRequestViewAccessKeyListByFinality': 'rpc_query_request',
|
|
3170
|
+
'RpcQueryRequestViewGasKeyNoncesByFinality': 'rpc_query_request',
|
|
3092
3171
|
'RpcQueryRequestCallFunctionByFinality': 'rpc_query_request',
|
|
3093
3172
|
'RpcQueryRequestViewGlobalContractCodeByFinality': 'rpc_query_request',
|
|
3094
3173
|
'RpcQueryRequestViewGlobalContractCodeByAccountIdByFinality': 'rpc_query_request',
|
|
@@ -3097,6 +3176,7 @@ _CLASS_TO_MODULE = {
|
|
|
3097
3176
|
'RpcQueryRequestViewStateBySyncCheckpoint': 'rpc_query_request',
|
|
3098
3177
|
'RpcQueryRequestViewAccessKeyBySyncCheckpoint': 'rpc_query_request',
|
|
3099
3178
|
'RpcQueryRequestViewAccessKeyListBySyncCheckpoint': 'rpc_query_request',
|
|
3179
|
+
'RpcQueryRequestViewGasKeyNoncesBySyncCheckpoint': 'rpc_query_request',
|
|
3100
3180
|
'RpcQueryRequestCallFunctionBySyncCheckpoint': 'rpc_query_request',
|
|
3101
3181
|
'RpcQueryRequestViewGlobalContractCodeBySyncCheckpoint': 'rpc_query_request',
|
|
3102
3182
|
'RpcQueryRequestViewGlobalContractCodeByAccountIdBySyncCheckpoint': 'rpc_query_request',
|
|
@@ -3180,6 +3260,10 @@ _CLASS_TO_MODULE = {
|
|
|
3180
3260
|
'ActionViewUseGlobalContractByAccountId': 'action_view',
|
|
3181
3261
|
'ActionViewDeterministicStateInitPayload': 'action_view',
|
|
3182
3262
|
'ActionViewDeterministicStateInit': 'action_view',
|
|
3263
|
+
'ActionViewTransferToGasKeyPayload': 'action_view',
|
|
3264
|
+
'ActionViewTransferToGasKey': 'action_view',
|
|
3265
|
+
'ActionViewWithdrawFromGasKeyPayload': 'action_view',
|
|
3266
|
+
'ActionViewWithdrawFromGasKey': 'action_view',
|
|
3183
3267
|
'ActionView': 'action_view',
|
|
3184
3268
|
'RpcCongestionLevelRequestBlockShardId': 'rpc_congestion_level_request',
|
|
3185
3269
|
'RpcCongestionLevelRequestChunkHash': 'rpc_congestion_level_request',
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"""Defines permissions for AccessKey"""
|
|
2
2
|
|
|
3
3
|
from near_jsonrpc_models.function_call_permission import FunctionCallPermission
|
|
4
|
+
from near_jsonrpc_models.gas_key_info import GasKeyInfo
|
|
4
5
|
from near_jsonrpc_models.strict_model import StrictBaseModel
|
|
5
6
|
from pydantic import BaseModel
|
|
6
7
|
from pydantic import RootModel
|
|
8
|
+
from typing import List
|
|
7
9
|
from typing import Literal
|
|
10
|
+
from typing import Tuple
|
|
8
11
|
from typing import Union
|
|
9
12
|
|
|
10
13
|
|
|
@@ -16,6 +19,16 @@ NOTE: It's used to replace account-level public keys."""
|
|
|
16
19
|
class AccessKeyPermissionFullAccess(RootModel[Literal['FullAccess']]):
|
|
17
20
|
pass
|
|
18
21
|
|
|
19
|
-
class
|
|
22
|
+
class AccessKeyPermissionGasKeyFunctionCall(StrictBaseModel):
|
|
23
|
+
"""Gas key with limited permission to make transactions with FunctionCallActions
|
|
24
|
+
Gas keys are a kind of access keys with a prepaid balance to pay for gas."""
|
|
25
|
+
GasKeyFunctionCall: Tuple[GasKeyInfo, FunctionCallPermission]
|
|
26
|
+
|
|
27
|
+
class AccessKeyPermissionGasKeyFullAccess(StrictBaseModel):
|
|
28
|
+
"""Gas key with full access to the account.
|
|
29
|
+
Gas keys are a kind of access keys with a prepaid balance to pay for gas."""
|
|
30
|
+
GasKeyFullAccess: GasKeyInfo
|
|
31
|
+
|
|
32
|
+
class AccessKeyPermission(RootModel[Union[AccessKeyPermissionFunctionCall, AccessKeyPermissionFullAccess, AccessKeyPermissionGasKeyFunctionCall, AccessKeyPermissionGasKeyFullAccess]]):
|
|
20
33
|
pass
|
|
21
34
|
|
|
@@ -4,6 +4,7 @@ from near_jsonrpc_models.near_token import NearToken
|
|
|
4
4
|
from near_jsonrpc_models.strict_model import StrictBaseModel
|
|
5
5
|
from pydantic import BaseModel
|
|
6
6
|
from pydantic import RootModel
|
|
7
|
+
from pydantic import conint
|
|
7
8
|
from typing import List
|
|
8
9
|
from typing import Literal
|
|
9
10
|
from typing import Union
|
|
@@ -20,6 +21,23 @@ class AccessKeyPermissionViewFunctionCallPayload(BaseModel):
|
|
|
20
21
|
class AccessKeyPermissionViewFunctionCall(StrictBaseModel):
|
|
21
22
|
FunctionCall: AccessKeyPermissionViewFunctionCallPayload
|
|
22
23
|
|
|
23
|
-
class
|
|
24
|
+
class AccessKeyPermissionViewGasKeyFunctionCallPayload(BaseModel):
|
|
25
|
+
allowance: NearToken | None = None
|
|
26
|
+
balance: NearToken
|
|
27
|
+
method_names: List[str]
|
|
28
|
+
num_nonces: conint(ge=0, le=4294967295)
|
|
29
|
+
receiver_id: str
|
|
30
|
+
|
|
31
|
+
class AccessKeyPermissionViewGasKeyFunctionCall(StrictBaseModel):
|
|
32
|
+
GasKeyFunctionCall: AccessKeyPermissionViewGasKeyFunctionCallPayload
|
|
33
|
+
|
|
34
|
+
class AccessKeyPermissionViewGasKeyFullAccessPayload(BaseModel):
|
|
35
|
+
balance: NearToken
|
|
36
|
+
num_nonces: conint(ge=0, le=4294967295)
|
|
37
|
+
|
|
38
|
+
class AccessKeyPermissionViewGasKeyFullAccess(StrictBaseModel):
|
|
39
|
+
GasKeyFullAccess: AccessKeyPermissionViewGasKeyFullAccessPayload
|
|
40
|
+
|
|
41
|
+
class AccessKeyPermissionView(RootModel[Union[AccessKeyPermissionViewFullAccess, AccessKeyPermissionViewFunctionCall, AccessKeyPermissionViewGasKeyFunctionCall, AccessKeyPermissionViewGasKeyFullAccess]]):
|
|
24
42
|
pass
|
|
25
43
|
|
|
@@ -181,6 +181,24 @@ class ActionErrorKindGlobalContractDoesNotExistPayload(BaseModel):
|
|
|
181
181
|
class ActionErrorKindGlobalContractDoesNotExist(StrictBaseModel):
|
|
182
182
|
GlobalContractDoesNotExist: ActionErrorKindGlobalContractDoesNotExistPayload
|
|
183
183
|
|
|
184
|
-
class
|
|
184
|
+
class ActionErrorKindGasKeyDoesNotExistPayload(BaseModel):
|
|
185
|
+
account_id: AccountId
|
|
186
|
+
public_key: PublicKey
|
|
187
|
+
|
|
188
|
+
class ActionErrorKindGasKeyDoesNotExist(StrictBaseModel):
|
|
189
|
+
"""Gas key does not exist for the specified public key"""
|
|
190
|
+
GasKeyDoesNotExist: ActionErrorKindGasKeyDoesNotExistPayload
|
|
191
|
+
|
|
192
|
+
class ActionErrorKindInsufficientGasKeyBalancePayload(BaseModel):
|
|
193
|
+
account_id: AccountId
|
|
194
|
+
balance: NearToken
|
|
195
|
+
public_key: PublicKey
|
|
196
|
+
required: NearToken
|
|
197
|
+
|
|
198
|
+
class ActionErrorKindInsufficientGasKeyBalance(StrictBaseModel):
|
|
199
|
+
"""Gas key does not have sufficient balance for the requested withdrawal"""
|
|
200
|
+
InsufficientGasKeyBalance: ActionErrorKindInsufficientGasKeyBalancePayload
|
|
201
|
+
|
|
202
|
+
class ActionErrorKind(RootModel[Union[ActionErrorKindAccountAlreadyExists, ActionErrorKindAccountDoesNotExist, ActionErrorKindCreateAccountOnlyByRegistrar, ActionErrorKindCreateAccountNotAllowed, ActionErrorKindActorNoPermission, ActionErrorKindDeleteKeyDoesNotExist, ActionErrorKindAddKeyAlreadyExists, ActionErrorKindDeleteAccountStaking, ActionErrorKindLackBalanceForState, ActionErrorKindTriesToUnstake, ActionErrorKindTriesToStake, ActionErrorKindInsufficientStake, ActionErrorKindFunctionCallError, ActionErrorKindNewReceiptValidationError, ActionErrorKindOnlyImplicitAccountCreationAllowed, ActionErrorKindDeleteAccountWithLargeState, ActionErrorKindDelegateActionInvalidSignature, ActionErrorKindDelegateActionSenderDoesNotMatchTxReceiver, ActionErrorKindDelegateActionExpired, ActionErrorKindDelegateActionAccessKeyError, ActionErrorKindDelegateActionInvalidNonce, ActionErrorKindDelegateActionNonceTooLarge, ActionErrorKindGlobalContractDoesNotExist, ActionErrorKindGasKeyDoesNotExist, ActionErrorKindInsufficientGasKeyBalance]]):
|
|
185
203
|
pass
|
|
186
204
|
|
|
@@ -105,6 +105,20 @@ class ActionViewDeterministicStateInitPayload(BaseModel):
|
|
|
105
105
|
class ActionViewDeterministicStateInit(StrictBaseModel):
|
|
106
106
|
DeterministicStateInit: ActionViewDeterministicStateInitPayload
|
|
107
107
|
|
|
108
|
-
class
|
|
108
|
+
class ActionViewTransferToGasKeyPayload(BaseModel):
|
|
109
|
+
deposit: NearToken
|
|
110
|
+
public_key: PublicKey
|
|
111
|
+
|
|
112
|
+
class ActionViewTransferToGasKey(StrictBaseModel):
|
|
113
|
+
TransferToGasKey: ActionViewTransferToGasKeyPayload
|
|
114
|
+
|
|
115
|
+
class ActionViewWithdrawFromGasKeyPayload(BaseModel):
|
|
116
|
+
amount: NearToken
|
|
117
|
+
public_key: PublicKey
|
|
118
|
+
|
|
119
|
+
class ActionViewWithdrawFromGasKey(StrictBaseModel):
|
|
120
|
+
WithdrawFromGasKey: ActionViewWithdrawFromGasKeyPayload
|
|
121
|
+
|
|
122
|
+
class ActionView(RootModel[Union[ActionViewCreateAccount, ActionViewDeployContract, ActionViewFunctionCall, ActionViewTransfer, ActionViewStake, ActionViewAddKey, ActionViewDeleteKey, ActionViewDeleteAccount, ActionViewDelegate, ActionViewDeployGlobalContract, ActionViewDeployGlobalContractByAccountId, ActionViewUseGlobalContract, ActionViewUseGlobalContractByAccountId, ActionViewDeterministicStateInit, ActionViewTransferToGasKey, ActionViewWithdrawFromGasKey]]):
|
|
109
123
|
pass
|
|
110
124
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from near_jsonrpc_models.account_id import AccountId
|
|
4
4
|
from near_jsonrpc_models.near_gas import NearGas
|
|
5
|
+
from near_jsonrpc_models.near_token import NearToken
|
|
5
6
|
from near_jsonrpc_models.public_key import PublicKey
|
|
6
7
|
from near_jsonrpc_models.strict_model import StrictBaseModel
|
|
7
8
|
from pydantic import BaseModel
|
|
@@ -131,6 +132,23 @@ class ActionsValidationErrorDeterministicStateInitValueLengthExceededPayload(Bas
|
|
|
131
132
|
class ActionsValidationErrorDeterministicStateInitValueLengthExceeded(StrictBaseModel):
|
|
132
133
|
DeterministicStateInitValueLengthExceeded: ActionsValidationErrorDeterministicStateInitValueLengthExceededPayload
|
|
133
134
|
|
|
134
|
-
class
|
|
135
|
+
class ActionsValidationErrorGasKeyTooManyNoncesRequestedPayload(BaseModel):
|
|
136
|
+
limit: conint(ge=0, le=4294967295)
|
|
137
|
+
requested_nonces: conint(ge=0, le=4294967295)
|
|
138
|
+
|
|
139
|
+
class ActionsValidationErrorGasKeyTooManyNoncesRequested(StrictBaseModel):
|
|
140
|
+
GasKeyTooManyNoncesRequested: ActionsValidationErrorGasKeyTooManyNoncesRequestedPayload
|
|
141
|
+
|
|
142
|
+
class ActionsValidationErrorAddGasKeyWithNonZeroBalancePayload(BaseModel):
|
|
143
|
+
balance: NearToken
|
|
144
|
+
|
|
145
|
+
class ActionsValidationErrorAddGasKeyWithNonZeroBalance(StrictBaseModel):
|
|
146
|
+
AddGasKeyWithNonZeroBalance: ActionsValidationErrorAddGasKeyWithNonZeroBalancePayload
|
|
147
|
+
|
|
148
|
+
"""Gas keys with FunctionCall permission cannot have an allowance set."""
|
|
149
|
+
class ActionsValidationErrorGasKeyFunctionCallAllowanceNotAllowed(RootModel[Literal['GasKeyFunctionCallAllowanceNotAllowed']]):
|
|
150
|
+
pass
|
|
151
|
+
|
|
152
|
+
class ActionsValidationError(RootModel[Union[ActionsValidationErrorDeleteActionMustBeFinal, ActionsValidationErrorTotalPrepaidGasExceeded, ActionsValidationErrorTotalNumberOfActionsExceeded, ActionsValidationErrorAddKeyMethodNamesNumberOfBytesExceeded, ActionsValidationErrorAddKeyMethodNameLengthExceeded, ActionsValidationErrorIntegerOverflow, ActionsValidationErrorInvalidAccountId, ActionsValidationErrorContractSizeExceeded, ActionsValidationErrorFunctionCallMethodNameLengthExceeded, ActionsValidationErrorFunctionCallArgumentsLengthExceeded, ActionsValidationErrorUnsuitableStakingKey, ActionsValidationErrorFunctionCallZeroAttachedGas, ActionsValidationErrorDelegateActionMustBeOnlyOne, ActionsValidationErrorUnsupportedProtocolFeature, ActionsValidationErrorInvalidDeterministicStateInitReceiver, ActionsValidationErrorDeterministicStateInitKeyLengthExceeded, ActionsValidationErrorDeterministicStateInitValueLengthExceeded, ActionsValidationErrorGasKeyTooManyNoncesRequested, ActionsValidationErrorAddGasKeyWithNonZeroBalance, ActionsValidationErrorGasKeyFunctionCallAllowanceNotAllowed]]):
|
|
135
153
|
pass
|
|
136
154
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"""Contains main info about the block."""
|
|
2
2
|
|
|
3
|
+
from near_jsonrpc_models.account_id import AccountId
|
|
3
4
|
from near_jsonrpc_models.crypto_hash import CryptoHash
|
|
4
5
|
from near_jsonrpc_models.near_token import NearToken
|
|
6
|
+
from near_jsonrpc_models.shard_id import ShardId
|
|
5
7
|
from near_jsonrpc_models.signature import Signature
|
|
6
8
|
from near_jsonrpc_models.slashed_validator import SlashedValidator
|
|
7
9
|
from near_jsonrpc_models.validator_stake_view import ValidatorStakeView
|
|
@@ -9,6 +11,7 @@ from pydantic import BaseModel
|
|
|
9
11
|
from pydantic import Field
|
|
10
12
|
from pydantic import conint
|
|
11
13
|
from typing import List
|
|
14
|
+
from typing import Tuple
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
class BlockHeaderView(BaseModel):
|
|
@@ -42,6 +45,7 @@ class BlockHeaderView(BaseModel):
|
|
|
42
45
|
random_value: CryptoHash
|
|
43
46
|
# TODO(2271): deprecated.
|
|
44
47
|
rent_paid: NearToken = Field(default_factory=lambda: NearToken('0'))
|
|
48
|
+
shard_split: Tuple[ShardId, AccountId] | None = None
|
|
45
49
|
# Signature of the block producer.
|
|
46
50
|
signature: Signature
|
|
47
51
|
# Legacy json number. Should not be used.
|
|
@@ -11,7 +11,9 @@ from near_jsonrpc_models.function_call_action import FunctionCallAction
|
|
|
11
11
|
from near_jsonrpc_models.stake_action import StakeAction
|
|
12
12
|
from near_jsonrpc_models.strict_model import StrictBaseModel
|
|
13
13
|
from near_jsonrpc_models.transfer_action import TransferAction
|
|
14
|
+
from near_jsonrpc_models.transfer_to_gas_key_action import TransferToGasKeyAction
|
|
14
15
|
from near_jsonrpc_models.use_global_contract_action import UseGlobalContractAction
|
|
16
|
+
from near_jsonrpc_models.withdraw_from_gas_key_action import WithdrawFromGasKeyAction
|
|
15
17
|
from pydantic import BaseModel
|
|
16
18
|
from pydantic import RootModel
|
|
17
19
|
from typing import Union
|
|
@@ -54,6 +56,12 @@ class NonDelegateActionUseGlobalContract(StrictBaseModel):
|
|
|
54
56
|
class NonDelegateActionDeterministicStateInit(StrictBaseModel):
|
|
55
57
|
DeterministicStateInit: DeterministicStateInitAction
|
|
56
58
|
|
|
57
|
-
class
|
|
59
|
+
class NonDelegateActionTransferToGasKey(StrictBaseModel):
|
|
60
|
+
TransferToGasKey: TransferToGasKeyAction
|
|
61
|
+
|
|
62
|
+
class NonDelegateActionWithdrawFromGasKey(StrictBaseModel):
|
|
63
|
+
WithdrawFromGasKey: WithdrawFromGasKeyAction
|
|
64
|
+
|
|
65
|
+
class NonDelegateAction(RootModel[Union[NonDelegateActionCreateAccount, NonDelegateActionDeployContract, NonDelegateActionFunctionCall, NonDelegateActionTransfer, NonDelegateActionStake, NonDelegateActionAddKey, NonDelegateActionDeleteKey, NonDelegateActionDeleteAccount, NonDelegateActionDeployGlobalContract, NonDelegateActionUseGlobalContract, NonDelegateActionDeterministicStateInit, NonDelegateActionTransferToGasKey, NonDelegateActionWithdrawFromGasKey]]):
|
|
58
66
|
pass
|
|
59
67
|
|
|
@@ -40,6 +40,12 @@ class RpcQueryRequestViewAccessKeyListByBlockId(BaseModel):
|
|
|
40
40
|
account_id: AccountId
|
|
41
41
|
request_type: Literal['view_access_key_list']
|
|
42
42
|
|
|
43
|
+
class RpcQueryRequestViewGasKeyNoncesByBlockId(BaseModel):
|
|
44
|
+
block_id: BlockId
|
|
45
|
+
account_id: AccountId
|
|
46
|
+
public_key: PublicKey
|
|
47
|
+
request_type: Literal['view_gas_key_nonces']
|
|
48
|
+
|
|
43
49
|
class RpcQueryRequestCallFunctionByBlockId(BaseModel):
|
|
44
50
|
block_id: BlockId
|
|
45
51
|
account_id: AccountId
|
|
@@ -85,6 +91,12 @@ class RpcQueryRequestViewAccessKeyListByFinality(BaseModel):
|
|
|
85
91
|
account_id: AccountId
|
|
86
92
|
request_type: Literal['view_access_key_list']
|
|
87
93
|
|
|
94
|
+
class RpcQueryRequestViewGasKeyNoncesByFinality(BaseModel):
|
|
95
|
+
finality: Finality
|
|
96
|
+
account_id: AccountId
|
|
97
|
+
public_key: PublicKey
|
|
98
|
+
request_type: Literal['view_gas_key_nonces']
|
|
99
|
+
|
|
88
100
|
class RpcQueryRequestCallFunctionByFinality(BaseModel):
|
|
89
101
|
finality: Finality
|
|
90
102
|
account_id: AccountId
|
|
@@ -130,6 +142,12 @@ class RpcQueryRequestViewAccessKeyListBySyncCheckpoint(BaseModel):
|
|
|
130
142
|
account_id: AccountId
|
|
131
143
|
request_type: Literal['view_access_key_list']
|
|
132
144
|
|
|
145
|
+
class RpcQueryRequestViewGasKeyNoncesBySyncCheckpoint(BaseModel):
|
|
146
|
+
sync_checkpoint: SyncCheckpoint
|
|
147
|
+
account_id: AccountId
|
|
148
|
+
public_key: PublicKey
|
|
149
|
+
request_type: Literal['view_gas_key_nonces']
|
|
150
|
+
|
|
133
151
|
class RpcQueryRequestCallFunctionBySyncCheckpoint(BaseModel):
|
|
134
152
|
sync_checkpoint: SyncCheckpoint
|
|
135
153
|
account_id: AccountId
|
|
@@ -147,6 +165,6 @@ class RpcQueryRequestViewGlobalContractCodeByAccountIdBySyncCheckpoint(BaseModel
|
|
|
147
165
|
account_id: AccountId
|
|
148
166
|
request_type: Literal['view_global_contract_code_by_account_id']
|
|
149
167
|
|
|
150
|
-
class RpcQueryRequest(RootModel[Union[RpcQueryRequestViewAccountByBlockId, RpcQueryRequestViewCodeByBlockId, RpcQueryRequestViewStateByBlockId, RpcQueryRequestViewAccessKeyByBlockId, RpcQueryRequestViewAccessKeyListByBlockId, RpcQueryRequestCallFunctionByBlockId, RpcQueryRequestViewGlobalContractCodeByBlockId, RpcQueryRequestViewGlobalContractCodeByAccountIdByBlockId, RpcQueryRequestViewAccountByFinality, RpcQueryRequestViewCodeByFinality, RpcQueryRequestViewStateByFinality, RpcQueryRequestViewAccessKeyByFinality, RpcQueryRequestViewAccessKeyListByFinality, RpcQueryRequestCallFunctionByFinality, RpcQueryRequestViewGlobalContractCodeByFinality, RpcQueryRequestViewGlobalContractCodeByAccountIdByFinality, RpcQueryRequestViewAccountBySyncCheckpoint, RpcQueryRequestViewCodeBySyncCheckpoint, RpcQueryRequestViewStateBySyncCheckpoint, RpcQueryRequestViewAccessKeyBySyncCheckpoint, RpcQueryRequestViewAccessKeyListBySyncCheckpoint, RpcQueryRequestCallFunctionBySyncCheckpoint, RpcQueryRequestViewGlobalContractCodeBySyncCheckpoint, RpcQueryRequestViewGlobalContractCodeByAccountIdBySyncCheckpoint]]):
|
|
168
|
+
class RpcQueryRequest(RootModel[Union[RpcQueryRequestViewAccountByBlockId, RpcQueryRequestViewCodeByBlockId, RpcQueryRequestViewStateByBlockId, RpcQueryRequestViewAccessKeyByBlockId, RpcQueryRequestViewAccessKeyListByBlockId, RpcQueryRequestViewGasKeyNoncesByBlockId, RpcQueryRequestCallFunctionByBlockId, RpcQueryRequestViewGlobalContractCodeByBlockId, RpcQueryRequestViewGlobalContractCodeByAccountIdByBlockId, RpcQueryRequestViewAccountByFinality, RpcQueryRequestViewCodeByFinality, RpcQueryRequestViewStateByFinality, RpcQueryRequestViewAccessKeyByFinality, RpcQueryRequestViewAccessKeyListByFinality, RpcQueryRequestViewGasKeyNoncesByFinality, RpcQueryRequestCallFunctionByFinality, RpcQueryRequestViewGlobalContractCodeByFinality, RpcQueryRequestViewGlobalContractCodeByAccountIdByFinality, RpcQueryRequestViewAccountBySyncCheckpoint, RpcQueryRequestViewCodeBySyncCheckpoint, RpcQueryRequestViewStateBySyncCheckpoint, RpcQueryRequestViewAccessKeyBySyncCheckpoint, RpcQueryRequestViewAccessKeyListBySyncCheckpoint, RpcQueryRequestViewGasKeyNoncesBySyncCheckpoint, RpcQueryRequestCallFunctionBySyncCheckpoint, RpcQueryRequestViewGlobalContractCodeBySyncCheckpoint, RpcQueryRequestViewGlobalContractCodeByAccountIdBySyncCheckpoint]]):
|
|
151
169
|
pass
|
|
152
170
|
|
|
@@ -8,6 +8,7 @@ from near_jsonrpc_models.view_state_result import ViewStateResult
|
|
|
8
8
|
from pydantic import BaseModel
|
|
9
9
|
from pydantic import RootModel
|
|
10
10
|
from pydantic import conint
|
|
11
|
+
from typing import Any
|
|
11
12
|
from typing import Union
|
|
12
13
|
|
|
13
14
|
|
|
@@ -35,6 +36,6 @@ class RpcQueryResponseAccessKeyList(AccessKeyList):
|
|
|
35
36
|
block_hash: CryptoHash
|
|
36
37
|
block_height: conint(ge=0, le=18446744073709551615)
|
|
37
38
|
|
|
38
|
-
class RpcQueryResponse(RootModel[Union[RpcQueryResponseAccountView, RpcQueryResponseContractCodeView, RpcQueryResponseViewStateResult, RpcQueryResponseCallResult, RpcQueryResponseAccessKeyView, RpcQueryResponseAccessKeyList]]):
|
|
39
|
+
class RpcQueryResponse(RootModel[Union[RpcQueryResponseAccountView, RpcQueryResponseContractCodeView, RpcQueryResponseViewStateResult, RpcQueryResponseCallResult, RpcQueryResponseAccessKeyView, RpcQueryResponseAccessKeyList, Any]]):
|
|
39
40
|
pass
|
|
40
41
|
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from near_jsonrpc_models.account_creation_config_view import AccountCreationConfigView
|
|
4
4
|
from near_jsonrpc_models.congestion_control_config_view import CongestionControlConfigView
|
|
5
|
-
from near_jsonrpc_models.dynamic_resharding_config_view import DynamicReshardingConfigView
|
|
6
5
|
from near_jsonrpc_models.near_token import NearToken
|
|
7
6
|
from near_jsonrpc_models.runtime_fees_config_view import RuntimeFeesConfigView
|
|
8
7
|
from near_jsonrpc_models.vmconfig_view import VMConfigView
|
|
9
8
|
from near_jsonrpc_models.witness_config_view import WitnessConfigView
|
|
10
9
|
from pydantic import BaseModel
|
|
11
|
-
from pydantic import Field
|
|
12
10
|
|
|
13
11
|
|
|
14
12
|
class RuntimeConfigView(BaseModel):
|
|
@@ -16,8 +14,6 @@ class RuntimeConfigView(BaseModel):
|
|
|
16
14
|
account_creation_config: AccountCreationConfigView = None
|
|
17
15
|
# The configuration for congestion control.
|
|
18
16
|
congestion_control_config: CongestionControlConfigView = None
|
|
19
|
-
# Configuration for dynamic resharding feature.
|
|
20
|
-
dynamic_resharding_config: DynamicReshardingConfigView = Field(default_factory=lambda: DynamicReshardingConfigView(**{'block_split_shards': [], 'force_split_shards': [], 'max_number_of_shards': 999999999999999, 'memory_usage_threshold': 999999999999999, 'min_child_memory_usage': 999999999999999, 'min_epochs_between_resharding': 999999999999999}))
|
|
21
17
|
# Amount of yN per byte required to have on the account. See
|
|
22
18
|
# <https://nomicon.io/Economics/Economics.html#state-stake> for details.
|
|
23
19
|
storage_amount_per_byte: NearToken = None
|
|
@@ -12,6 +12,8 @@ class SignedTransactionView(BaseModel):
|
|
|
12
12
|
actions: List[ActionView]
|
|
13
13
|
hash: CryptoHash
|
|
14
14
|
nonce: conint(ge=0, le=18446744073709551615)
|
|
15
|
+
nonce_index: conint(ge=0, le=4294967295) | None = None
|
|
16
|
+
# Deprecated, retained for backward compatibility.
|
|
15
17
|
priority_fee: conint(ge=0, le=18446744073709551615) = 0
|
|
16
18
|
public_key: PublicKey
|
|
17
19
|
receiver_id: AccountId
|
|
@@ -57,6 +57,17 @@ class StateChangeWithCauseViewAccessKeyDeletion(BaseModel):
|
|
|
57
57
|
change: StateChangeWithCauseViewAccessKeyDeletionChange
|
|
58
58
|
type: Literal['access_key_deletion']
|
|
59
59
|
|
|
60
|
+
class StateChangeWithCauseViewGasKeyNonceUpdateChange(BaseModel):
|
|
61
|
+
account_id: AccountId
|
|
62
|
+
index: conint(ge=0, le=4294967295)
|
|
63
|
+
nonce: conint(ge=0, le=18446744073709551615)
|
|
64
|
+
public_key: PublicKey
|
|
65
|
+
|
|
66
|
+
class StateChangeWithCauseViewGasKeyNonceUpdate(BaseModel):
|
|
67
|
+
cause: StateChangeCauseView
|
|
68
|
+
change: StateChangeWithCauseViewGasKeyNonceUpdateChange
|
|
69
|
+
type: Literal['gas_key_nonce_update']
|
|
70
|
+
|
|
60
71
|
class StateChangeWithCauseViewDataUpdateChange(BaseModel):
|
|
61
72
|
account_id: AccountId
|
|
62
73
|
key_base64: StoreKey
|
|
@@ -93,6 +104,6 @@ class StateChangeWithCauseViewContractCodeDeletion(BaseModel):
|
|
|
93
104
|
change: StateChangeWithCauseViewContractCodeDeletionChange
|
|
94
105
|
type: Literal['contract_code_deletion']
|
|
95
106
|
|
|
96
|
-
class StateChangeWithCauseView(RootModel[Union[StateChangeWithCauseViewAccountUpdate, StateChangeWithCauseViewAccountDeletion, StateChangeWithCauseViewAccessKeyUpdate, StateChangeWithCauseViewAccessKeyDeletion, StateChangeWithCauseViewDataUpdate, StateChangeWithCauseViewDataDeletion, StateChangeWithCauseViewContractCodeUpdate, StateChangeWithCauseViewContractCodeDeletion]]):
|
|
107
|
+
class StateChangeWithCauseView(RootModel[Union[StateChangeWithCauseViewAccountUpdate, StateChangeWithCauseViewAccountDeletion, StateChangeWithCauseViewAccessKeyUpdate, StateChangeWithCauseViewAccessKeyDeletion, StateChangeWithCauseViewGasKeyNonceUpdate, StateChangeWithCauseViewDataUpdate, StateChangeWithCauseViewDataDeletion, StateChangeWithCauseViewContractCodeUpdate, StateChangeWithCauseViewContractCodeDeletion]]):
|
|
97
108
|
pass
|
|
98
109
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
"""Transfer NEAR to a gas key's balance"""
|
|
2
|
+
|
|
1
3
|
from near_jsonrpc_models.near_token import NearToken
|
|
2
4
|
from near_jsonrpc_models.public_key import PublicKey
|
|
3
5
|
from pydantic import BaseModel
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
class TransferToGasKeyAction(BaseModel):
|
|
9
|
+
# Amount of NEAR to transfer to the gas key
|
|
7
10
|
deposit: NearToken
|
|
11
|
+
# The public key of the gas key to fund
|
|
8
12
|
public_key: PublicKey
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Withdraw NEAR from a gas key's balance to the account"""
|
|
2
|
+
|
|
3
|
+
from near_jsonrpc_models.near_token import NearToken
|
|
4
|
+
from near_jsonrpc_models.public_key import PublicKey
|
|
5
|
+
from pydantic import BaseModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class WithdrawFromGasKeyAction(BaseModel):
|
|
9
|
+
# Amount of NEAR to transfer from the gas key
|
|
10
|
+
amount: NearToken
|
|
11
|
+
# The public key of the gas key to withdraw from
|
|
12
|
+
public_key: PublicKey
|
{near_jsonrpc_client-1.0.24.dist-info → near_jsonrpc_client-1.0.25.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|