near-jsonrpc-client 1.0.13__py3-none-any.whl → 1.0.15__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.
@@ -37,7 +37,6 @@ def _parse_response(response_model: Type[BaseModel], response_json: dict):
37
37
  try:
38
38
  parsed = response_model.model_validate(response_json)
39
39
  except Exception as e:
40
- print(response_json)
41
40
 
42
41
  if response_json["result"]["error"] is not None:
43
42
  raise ClientError(response_json["result"]["error"]) from e
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: near-jsonrpc-client
3
- Version: 1.0.13
3
+ Version: 1.0.15
4
4
  Summary: A typed Python client for the NEAR JSON-RPC API with Pydantic models and async HTTP support
5
5
  Requires-Python: >=3.9
6
6
  Description-Content-Type: text/markdown
@@ -1,12 +1,12 @@
1
1
  near_jsonrpc_client/__init__.py,sha256=6xyJY-itvM0ZCgc14mM4plMpuZnfx_5jln-G539FYfg,489
2
2
  near_jsonrpc_client/api_methods_async.py,sha256=ELi7-hV3GugFlI7hLNhkjYStupO2LY3O1MxPysNJLmg,27606
3
3
  near_jsonrpc_client/api_methods_sync.py,sha256=XUtvoUmMeMRmq1XT-QNgvLWKEJ9mq1GAwM85j-xXE6g,27095
4
- near_jsonrpc_client/base_client.py,sha256=Iq_0-9KK3QcT0Os2G9b-_1jk6TWr90-4h5_IBCoKyz4,4342
4
+ near_jsonrpc_client/base_client.py,sha256=70KENuSAb7DN5zUM0uA_1pC2kVQ9n3Kt_R59m1c3j4w,4313
5
5
  near_jsonrpc_client/client.py,sha256=8gnY3tgUOGwUe4r8_mOedlLik8Zr6jxbNMVxwPlmHYo,453
6
6
  near_jsonrpc_client/errors.py,sha256=rbX0OsplhSKW9eYORGig3pu76ENz9mRyNKvPYpFsGYI,859
7
7
  near_jsonrpc_client/transport.py,sha256=r92Zf7r_4ggU_fKp4pR9WyeaUOVOyLEW7xqz8Ny1buY,1012
8
- near_jsonrpc_client-1.0.13.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
- near_jsonrpc_models/__init__.py,sha256=2QjeAHhjRUedD_aJ40LSBVYGW2nh0u3aVITHHV6Uhw0,225449
8
+ near_jsonrpc_client-1.0.15.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ near_jsonrpc_models/__init__.py,sha256=l7gDQiY4sNIibaz_KVMSS70kE5UrqVsjIrn9xNv-Hw4,225545
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
@@ -30,7 +30,7 @@ near_jsonrpc_models/add_gas_key_action.py,sha256=KlToqWU2ZEchHpN5qzizDpNcUVXG6xw
30
30
  near_jsonrpc_models/add_key_action.py,sha256=NW3IX9Z5CcmPyzDNOlfuWN5V7F22SGXdpiTglY0EcTI,383
31
31
  near_jsonrpc_models/bandwidth_request.py,sha256=EsiLcwYb5MKOoSV3Mfz8yIYk1CQ7RwUvNxKHwTSZ-xk,636
32
32
  near_jsonrpc_models/bandwidth_request_bitmap.py,sha256=YKnoUJdx5zmNk2dQ7XHoQb9ymFZTMHTjAOWgDHfIXI4,389
33
- near_jsonrpc_models/bandwidth_requests.py,sha256=XtWGaegGmWLFqt-E5fzviT3Prx-DrEF_novm9Fr8thg,481
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
36
  near_jsonrpc_models/block_header_view.py,sha256=E3ZrdQ3LBBjIaZ1p_VBGTtqTxD52W4QqOZltfQcDdto,2073
@@ -61,7 +61,7 @@ near_jsonrpc_models/delete_key_action.py,sha256=nTtPVzSf5u0hUlaQf569SktIhCYtxVC5
61
61
  near_jsonrpc_models/deploy_contract_action.py,sha256=dsHksqEkeOaMB2xAPo-kKDf06NsGGgZ0udmhlk5KTX4,141
62
62
  near_jsonrpc_models/deploy_global_contract_action.py,sha256=7Hk5H5o8gf7HCR-4Utu6rq-Wj-sV5FV8GoSawX22TnI,281
63
63
  near_jsonrpc_models/detailed_debug_status.py,sha256=tA3Vg2PK4cbu1LA6SVKjqohqEEQdgNAR2N035A22Pvo,586
64
- near_jsonrpc_models/deterministic_account_state_init.py,sha256=wfWRPE11dW-4mfb97mMfvsr-J0laoHPDjqVqd00Jxek,445
64
+ near_jsonrpc_models/deterministic_account_state_init.py,sha256=EufvvahL7fL1FW7X0Zfbvrc66KWD_S_Y-SHuVXPS18Q,457
65
65
  near_jsonrpc_models/deterministic_account_state_init_v1.py,sha256=khzGINpztcQNAvBQYQnDDHOljSR2JIpr-Xkk7w6jBB4,251
66
66
  near_jsonrpc_models/deterministic_state_init_action.py,sha256=zYRxiLHt3oLRkuO9-KYgC8tV8TvrocXk2i9_amwt9x4,297
67
67
  near_jsonrpc_models/direction.py,sha256=IBTozgwUQ2VwESQc41VNj2BG8kSvhiLiFqy2Z5eF6d0,124
@@ -226,12 +226,12 @@ near_jsonrpc_models/rpc_call_function_error.py,sha256=rkTwBv_AFICoLZtcDDebsCLZ5q
226
226
  near_jsonrpc_models/rpc_call_function_request.py,sha256=8pK6Ad1xgPQoiCCl9m7dIFvahA3YKw6Tv8mvqv7oWh0,989
227
227
  near_jsonrpc_models/rpc_call_function_response.py,sha256=Jj4SxY-vNhyYyFpN0MhyE86-CddNalCQZpt_WeC9GcY,368
228
228
  near_jsonrpc_models/rpc_chunk_error.py,sha256=FJxBUzLo8AMWQ3LEo5yXvc05UMAiVnk7zZ-qDh3NuS8,1121
229
- near_jsonrpc_models/rpc_chunk_request.py,sha256=XTK7v6g4yQzDSILlER8KY4Z_JiKhMofv6Cls2nzGrWw,512
229
+ near_jsonrpc_models/rpc_chunk_request.py,sha256=6-yE1V0dmiCWm7rLx_4q-w_O7IkbLmY7U1cbl7jeBJ4,508
230
230
  near_jsonrpc_models/rpc_chunk_response.py,sha256=vwUI9cp9X37R5gxwYzywo1l3rSzh9BAkdW_IVcfQWV8,474
231
231
  near_jsonrpc_models/rpc_client_config_error.py,sha256=gEdgg1h2HDSm57jWDT0oN2KKymqvzOcdSzrIIcohL2c,424
232
232
  near_jsonrpc_models/rpc_client_config_request.py,sha256=VTQ_hU6uz9msvcrd5izwn7Ak7DAyXq0DiDU0uC2e5bk,121
233
233
  near_jsonrpc_models/rpc_client_config_response.py,sha256=-LWhtNpbMu0ERS0ckdKqeCVc3qWfl15DH1wqiH13jis,12215
234
- near_jsonrpc_models/rpc_congestion_level_request.py,sha256=akAqCov8Q0nVvGyME8fIDVtehBFCAarEJNgMQrSwkDs,562
234
+ near_jsonrpc_models/rpc_congestion_level_request.py,sha256=PJNMDpwvnTJUSksR84v_dsk1Ut4Vq0BCzWxQO_sKL4A,558
235
235
  near_jsonrpc_models/rpc_congestion_level_response.py,sha256=VKMgUAOzHoxkBfANs2sVyT-pZLQts2jNxdpH5D_aKEE,106
236
236
  near_jsonrpc_models/rpc_gas_price_error.py,sha256=O6BO4NKrt44Fho0RFcanfc6OAkqHjYZqaiq5chw4V8c,589
237
237
  near_jsonrpc_models/rpc_gas_price_request.py,sha256=kQ9c-VHb-QXRlIRgibx4z_enXudZ47cdeOBPKVJbYu8,155
@@ -306,7 +306,7 @@ near_jsonrpc_models/rpc_view_state_response.py,sha256=GgZv8V6m8lrx-lV7tbteHNrT9U
306
306
  near_jsonrpc_models/runtime_config_view.py,sha256=oh5_sX_Z7yy3eDHpRHWjW7pgv6LWbZeq28NQSbWuAu8,1797
307
307
  near_jsonrpc_models/runtime_fees_config_view.py,sha256=stmMEjLjoEn87xiQ4Ois_BGSw_Nbkgrjpo2WjH5n57g,1581
308
308
  near_jsonrpc_models/shard_id.py,sha256=BGs5Po_GSyiHz9jfTNUc6gwMg1tcXH1AJ4IMz-1SMAc,572
309
- near_jsonrpc_models/shard_layout.py,sha256=LCUIpBIUgNMdoMHOFlZ9-OJUmHswoq3IcifOCFNZiIk,1323
309
+ near_jsonrpc_models/shard_layout.py,sha256=cQn_buHJBpUINWXwYS1HbKo_vZvFECpRkyiLt3vc4vM,1371
310
310
  near_jsonrpc_models/shard_layout_v0.py,sha256=i15ZmJ6mb9r1J8Al9j5ID6USH7O6Ko-rOM6-W-zmcgY,691
311
311
  near_jsonrpc_models/shard_layout_v1.py,sha256=XpgXIkrSZqbO7NdvVnyDXbhVZj1OIbjdDbQ9Wuzyz-U,1134
312
312
  near_jsonrpc_models/shard_layout_v2.py,sha256=ElCRrvL65C6ByKiNLHk2dwwBDpuaidhtKc8Jhs7TIjc,669
@@ -351,7 +351,7 @@ near_jsonrpc_models/vmconfig_view.py,sha256=QeAQQ2kV67KQTCTKevbAn5h6jWYVUdJyfbZs
351
351
  near_jsonrpc_models/vmkind.py,sha256=tCxyZlDaGn3bz-lThkbUj0oO6qxoQP7lGANMusstpC8,252
352
352
  near_jsonrpc_models/wasm_trap.py,sha256=y0nay7ulaHOGpHPRnKIU0FWxHeWfwnrYiYvllLry3Mw,791
353
353
  near_jsonrpc_models/witness_config_view.py,sha256=kTeYTx1mtk0IT6ary63awFk5hIGn8mS8UlOCMaqhr2Q,912
354
- near_jsonrpc_client-1.0.13.dist-info/METADATA,sha256=ot3QG5O0t-OWS7a5DaD9lKTpq-kpE6m29P3INOwErYk,6303
355
- near_jsonrpc_client-1.0.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
- near_jsonrpc_client-1.0.13.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
357
- near_jsonrpc_client-1.0.13.dist-info/RECORD,,
354
+ near_jsonrpc_client-1.0.15.dist-info/METADATA,sha256=5-8M0HiPN8Jyn9P2kzTQjM9byFey3vryrWKIKY8PWzI,6303
355
+ near_jsonrpc_client-1.0.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
+ near_jsonrpc_client-1.0.15.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
357
+ near_jsonrpc_client-1.0.15.dist-info/RECORD,,
@@ -422,8 +422,8 @@ if TYPE_CHECKING:
422
422
  from .sync_concurrency import SyncConcurrency
423
423
  from .rpc_validator_response import RpcValidatorResponse
424
424
  from .final_execution_outcome_with_receipt_view import FinalExecutionOutcomeWithReceiptView
425
- from .rpc_chunk_request import RpcChunkRequestBlockShardId1
426
- from .rpc_chunk_request import RpcChunkRequestChunkHash1
425
+ from .rpc_chunk_request import RpcChunkRequestBlockShardId
426
+ from .rpc_chunk_request import RpcChunkRequestChunkHash
427
427
  from .rpc_chunk_request import RpcChunkRequest
428
428
  from .runtime_config_view import RuntimeConfigView
429
429
  from .catchup_status_view import CatchupStatusView
@@ -840,7 +840,7 @@ if TYPE_CHECKING:
840
840
  from .error_wrapper_for_rpc_call_function_error import ErrorWrapperForRpcCallFunctionErrorHandlerError
841
841
  from .error_wrapper_for_rpc_call_function_error import ErrorWrapperForRpcCallFunctionErrorInternalError
842
842
  from .error_wrapper_for_rpc_call_function_error import ErrorWrapperForRpcCallFunctionError
843
- from .deterministic_account_state_init import DeterministicAccountStateInitV2
843
+ from .deterministic_account_state_init import DeterministicAccountStateInitV1Option
844
844
  from .deterministic_account_state_init import DeterministicAccountStateInit
845
845
  from .rpc_transaction_status_request import RpcTransactionStatusRequestSignedTxBase64
846
846
  from .rpc_transaction_status_request import RpcTransactionStatusRequestSenderAccountIdTxHash
@@ -913,7 +913,7 @@ if TYPE_CHECKING:
913
913
  from .deterministic_state_init_action import DeterministicStateInitAction
914
914
  from .rpc_status_response import RpcStatusResponse
915
915
  from .near_token import NearToken
916
- from .bandwidth_requests import BandwidthRequestsV2
916
+ from .bandwidth_requests import BandwidthRequestsV1Option
917
917
  from .bandwidth_requests import BandwidthRequests
918
918
  from .validator_stake_view_v1 import ValidatorStakeViewV1
919
919
  from .global_contract_identifier_view import GlobalContractIdentifierViewHash
@@ -929,10 +929,10 @@ if TYPE_CHECKING:
929
929
  from .rpc_view_state_request import RpcViewStateRequest
930
930
  from .rpc_gas_price_response import RpcGasPriceResponse
931
931
  from .vmconfig_view import VMConfigView
932
- from .shard_layout import ShardLayoutV4
933
- from .shard_layout import ShardLayoutV5
934
- from .shard_layout import ShardLayoutV6
935
- from .shard_layout import ShardLayoutV7
932
+ from .shard_layout import ShardLayoutV0Option
933
+ from .shard_layout import ShardLayoutV1Option
934
+ from .shard_layout import ShardLayoutV2Option
935
+ from .shard_layout import ShardLayoutV3Option
936
936
  from .shard_layout import ShardLayout
937
937
  from .rpc_query_request import RpcQueryRequestViewAccountByBlockId
938
938
  from .rpc_query_request import RpcQueryRequestViewCodeByBlockId
@@ -1051,8 +1051,8 @@ if TYPE_CHECKING:
1051
1051
  from .action_view import ActionViewTransferToGasKeyPayload
1052
1052
  from .action_view import ActionViewTransferToGasKey
1053
1053
  from .action_view import ActionView
1054
- from .rpc_congestion_level_request import RpcCongestionLevelRequestBlockShardId1
1055
- from .rpc_congestion_level_request import RpcCongestionLevelRequestChunkHash1
1054
+ from .rpc_congestion_level_request import RpcCongestionLevelRequestBlockShardId
1055
+ from .rpc_congestion_level_request import RpcCongestionLevelRequestChunkHash
1056
1056
  from .rpc_congestion_level_request import RpcCongestionLevelRequest
1057
1057
  from .delete_account_action import DeleteAccountAction
1058
1058
  from .function_args import FunctionArgs
@@ -1265,7 +1265,7 @@ __all__ = [
1265
1265
  'BandwidthRequestBitmap',
1266
1266
  'BandwidthRequests',
1267
1267
  'BandwidthRequestsV1',
1268
- 'BandwidthRequestsV2',
1268
+ 'BandwidthRequestsV1Option',
1269
1269
  'BlockHeaderInnerLiteView',
1270
1270
  'BlockHeaderView',
1271
1271
  'BlockId',
@@ -1307,7 +1307,7 @@ __all__ = [
1307
1307
  'DetailedDebugStatus',
1308
1308
  'DeterministicAccountStateInit',
1309
1309
  'DeterministicAccountStateInitV1',
1310
- 'DeterministicAccountStateInitV2',
1310
+ 'DeterministicAccountStateInitV1Option',
1311
1311
  'DeterministicStateInitAction',
1312
1312
  'Direction',
1313
1313
  'DumpConfig',
@@ -1794,8 +1794,8 @@ __all__ = [
1794
1794
  'RpcChunkErrorUnknownChunk',
1795
1795
  'RpcChunkErrorUnknownChunkInfo',
1796
1796
  'RpcChunkRequest',
1797
- 'RpcChunkRequestBlockShardId1',
1798
- 'RpcChunkRequestChunkHash1',
1797
+ 'RpcChunkRequestBlockShardId',
1798
+ 'RpcChunkRequestChunkHash',
1799
1799
  'RpcChunkResponse',
1800
1800
  'RpcClientConfigError',
1801
1801
  'RpcClientConfigErrorInternalError',
@@ -1803,8 +1803,8 @@ __all__ = [
1803
1803
  'RpcClientConfigRequest',
1804
1804
  'RpcClientConfigResponse',
1805
1805
  'RpcCongestionLevelRequest',
1806
- 'RpcCongestionLevelRequestBlockShardId1',
1807
- 'RpcCongestionLevelRequestChunkHash1',
1806
+ 'RpcCongestionLevelRequestBlockShardId',
1807
+ 'RpcCongestionLevelRequestChunkHash',
1808
1808
  'RpcCongestionLevelResponse',
1809
1809
  'RpcGasPriceError',
1810
1810
  'RpcGasPriceErrorInternalError',
@@ -2125,13 +2125,13 @@ __all__ = [
2125
2125
  'ShardId',
2126
2126
  'ShardLayout',
2127
2127
  'ShardLayoutV0',
2128
+ 'ShardLayoutV0Option',
2128
2129
  'ShardLayoutV1',
2130
+ 'ShardLayoutV1Option',
2129
2131
  'ShardLayoutV2',
2132
+ 'ShardLayoutV2Option',
2130
2133
  'ShardLayoutV3',
2131
- 'ShardLayoutV4',
2132
- 'ShardLayoutV5',
2133
- 'ShardLayoutV6',
2134
- 'ShardLayoutV7',
2134
+ 'ShardLayoutV3Option',
2135
2135
  'ShardUId',
2136
2136
  'Signature',
2137
2137
  'SignedDelegateAction',
@@ -2663,8 +2663,8 @@ _CLASS_TO_MODULE = {
2663
2663
  'SyncConcurrency': 'sync_concurrency',
2664
2664
  'RpcValidatorResponse': 'rpc_validator_response',
2665
2665
  'FinalExecutionOutcomeWithReceiptView': 'final_execution_outcome_with_receipt_view',
2666
- 'RpcChunkRequestBlockShardId1': 'rpc_chunk_request',
2667
- 'RpcChunkRequestChunkHash1': 'rpc_chunk_request',
2666
+ 'RpcChunkRequestBlockShardId': 'rpc_chunk_request',
2667
+ 'RpcChunkRequestChunkHash': 'rpc_chunk_request',
2668
2668
  'RpcChunkRequest': 'rpc_chunk_request',
2669
2669
  'RuntimeConfigView': 'runtime_config_view',
2670
2670
  'CatchupStatusView': 'catchup_status_view',
@@ -3081,7 +3081,7 @@ _CLASS_TO_MODULE = {
3081
3081
  'ErrorWrapperForRpcCallFunctionErrorHandlerError': 'error_wrapper_for_rpc_call_function_error',
3082
3082
  'ErrorWrapperForRpcCallFunctionErrorInternalError': 'error_wrapper_for_rpc_call_function_error',
3083
3083
  'ErrorWrapperForRpcCallFunctionError': 'error_wrapper_for_rpc_call_function_error',
3084
- 'DeterministicAccountStateInitV2': 'deterministic_account_state_init',
3084
+ 'DeterministicAccountStateInitV1Option': 'deterministic_account_state_init',
3085
3085
  'DeterministicAccountStateInit': 'deterministic_account_state_init',
3086
3086
  'RpcTransactionStatusRequestSignedTxBase64': 'rpc_transaction_status_request',
3087
3087
  'RpcTransactionStatusRequestSenderAccountIdTxHash': 'rpc_transaction_status_request',
@@ -3154,7 +3154,7 @@ _CLASS_TO_MODULE = {
3154
3154
  'DeterministicStateInitAction': 'deterministic_state_init_action',
3155
3155
  'RpcStatusResponse': 'rpc_status_response',
3156
3156
  'NearToken': 'near_token',
3157
- 'BandwidthRequestsV2': 'bandwidth_requests',
3157
+ 'BandwidthRequestsV1Option': 'bandwidth_requests',
3158
3158
  'BandwidthRequests': 'bandwidth_requests',
3159
3159
  'ValidatorStakeViewV1': 'validator_stake_view_v1',
3160
3160
  'GlobalContractIdentifierViewHash': 'global_contract_identifier_view',
@@ -3170,10 +3170,10 @@ _CLASS_TO_MODULE = {
3170
3170
  'RpcViewStateRequest': 'rpc_view_state_request',
3171
3171
  'RpcGasPriceResponse': 'rpc_gas_price_response',
3172
3172
  'VMConfigView': 'vmconfig_view',
3173
- 'ShardLayoutV4': 'shard_layout',
3174
- 'ShardLayoutV5': 'shard_layout',
3175
- 'ShardLayoutV6': 'shard_layout',
3176
- 'ShardLayoutV7': 'shard_layout',
3173
+ 'ShardLayoutV0Option': 'shard_layout',
3174
+ 'ShardLayoutV1Option': 'shard_layout',
3175
+ 'ShardLayoutV2Option': 'shard_layout',
3176
+ 'ShardLayoutV3Option': 'shard_layout',
3177
3177
  'ShardLayout': 'shard_layout',
3178
3178
  'RpcQueryRequestViewAccountByBlockId': 'rpc_query_request',
3179
3179
  'RpcQueryRequestViewCodeByBlockId': 'rpc_query_request',
@@ -3292,8 +3292,8 @@ _CLASS_TO_MODULE = {
3292
3292
  'ActionViewTransferToGasKeyPayload': 'action_view',
3293
3293
  'ActionViewTransferToGasKey': 'action_view',
3294
3294
  'ActionView': 'action_view',
3295
- 'RpcCongestionLevelRequestBlockShardId1': 'rpc_congestion_level_request',
3296
- 'RpcCongestionLevelRequestChunkHash1': 'rpc_congestion_level_request',
3295
+ 'RpcCongestionLevelRequestBlockShardId': 'rpc_congestion_level_request',
3296
+ 'RpcCongestionLevelRequestChunkHash': 'rpc_congestion_level_request',
3297
3297
  'RpcCongestionLevelRequest': 'rpc_congestion_level_request',
3298
3298
  'DeleteAccountAction': 'delete_account_action',
3299
3299
  'FunctionArgs': 'function_args',
@@ -8,9 +8,9 @@ from pydantic import RootModel
8
8
  from typing import Union
9
9
 
10
10
 
11
- class BandwidthRequestsV2(StrictBaseModel):
11
+ class BandwidthRequestsV1Option(StrictBaseModel):
12
12
  V1: BandwidthRequestsV1
13
13
 
14
- class BandwidthRequests(RootModel[Union[BandwidthRequestsV2]]):
14
+ class BandwidthRequests(RootModel[Union[BandwidthRequestsV1Option]]):
15
15
  pass
16
16
 
@@ -5,9 +5,9 @@ from pydantic import RootModel
5
5
  from typing import Union
6
6
 
7
7
 
8
- class DeterministicAccountStateInitV2(StrictBaseModel):
8
+ class DeterministicAccountStateInitV1Option(StrictBaseModel):
9
9
  V1: DeterministicAccountStateInitV1
10
10
 
11
- class DeterministicAccountStateInit(RootModel[Union[DeterministicAccountStateInitV2]]):
11
+ class DeterministicAccountStateInit(RootModel[Union[DeterministicAccountStateInitV1Option]]):
12
12
  pass
13
13
 
@@ -6,13 +6,13 @@ from pydantic import RootModel
6
6
  from typing import Union
7
7
 
8
8
 
9
- class RpcChunkRequestBlockShardId1(BaseModel):
9
+ class RpcChunkRequestBlockShardId(BaseModel):
10
10
  block_id: BlockId
11
11
  shard_id: ShardId
12
12
 
13
- class RpcChunkRequestChunkHash1(BaseModel):
13
+ class RpcChunkRequestChunkHash(BaseModel):
14
14
  chunk_id: CryptoHash
15
15
 
16
- class RpcChunkRequest(RootModel[Union[RpcChunkRequestBlockShardId1, RpcChunkRequestChunkHash1]]):
16
+ class RpcChunkRequest(RootModel[Union[RpcChunkRequestBlockShardId, RpcChunkRequestChunkHash]]):
17
17
  pass
18
18
 
@@ -6,13 +6,13 @@ from pydantic import RootModel
6
6
  from typing import Union
7
7
 
8
8
 
9
- class RpcCongestionLevelRequestBlockShardId1(BaseModel):
9
+ class RpcCongestionLevelRequestBlockShardId(BaseModel):
10
10
  block_id: BlockId
11
11
  shard_id: ShardId
12
12
 
13
- class RpcCongestionLevelRequestChunkHash1(BaseModel):
13
+ class RpcCongestionLevelRequestChunkHash(BaseModel):
14
14
  chunk_id: CryptoHash
15
15
 
16
- class RpcCongestionLevelRequest(RootModel[Union[RpcCongestionLevelRequestBlockShardId1, RpcCongestionLevelRequestChunkHash1]]):
16
+ class RpcCongestionLevelRequest(RootModel[Union[RpcCongestionLevelRequestBlockShardId, RpcCongestionLevelRequestChunkHash]]):
17
17
  pass
18
18
 
@@ -17,18 +17,18 @@ from pydantic import RootModel
17
17
  from typing import Union
18
18
 
19
19
 
20
- class ShardLayoutV4(StrictBaseModel):
20
+ class ShardLayoutV0Option(StrictBaseModel):
21
21
  V0: ShardLayoutV0
22
22
 
23
- class ShardLayoutV5(StrictBaseModel):
23
+ class ShardLayoutV1Option(StrictBaseModel):
24
24
  V1: ShardLayoutV1
25
25
 
26
- class ShardLayoutV6(StrictBaseModel):
26
+ class ShardLayoutV2Option(StrictBaseModel):
27
27
  V2: ShardLayoutV2
28
28
 
29
- class ShardLayoutV7(StrictBaseModel):
29
+ class ShardLayoutV3Option(StrictBaseModel):
30
30
  V3: ShardLayoutV3
31
31
 
32
- class ShardLayout(RootModel[Union[ShardLayoutV4, ShardLayoutV5, ShardLayoutV6, ShardLayoutV7]]):
32
+ class ShardLayout(RootModel[Union[ShardLayoutV0Option, ShardLayoutV1Option, ShardLayoutV2Option, ShardLayoutV3Option]]):
33
33
  pass
34
34