near-jsonrpc-client 1.0.22__py3-none-any.whl → 1.0.23__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: near-jsonrpc-client
3
- Version: 1.0.22
3
+ Version: 1.0.23
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
@@ -5,7 +5,7 @@ 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.22.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
8
+ near_jsonrpc_client-1.0.23.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
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
@@ -67,7 +67,7 @@ near_jsonrpc_models/deterministic_state_init_action.py,sha256=zYRxiLHt3oLRkuO9-K
67
67
  near_jsonrpc_models/direction.py,sha256=IBTozgwUQ2VwESQc41VNj2BG8kSvhiLiFqy2Z5eF6d0,124
68
68
  near_jsonrpc_models/dump_config.py,sha256=lsvXa66JMOUMtLnX7IfQ0FBFME2mM0mhTzj5MVhik6M,905
69
69
  near_jsonrpc_models/duration_as_std_schema_provider.py,sha256=sQsSNAiZj61nVXe3SfCzXkJVQ7XQFpzoQPWa_KhU0M4,170
70
- near_jsonrpc_models/dynamic_resharding_config_view.py,sha256=rA6Hq2pb67LPm_NWj53Vy2PkO2dFBLFfBcoB8_BjZV8,908
70
+ near_jsonrpc_models/dynamic_resharding_config_view.py,sha256=Srmi4HWILUTEEupmhqCV8SHbqNHRzT51_73eJb7EJ0Y,1033
71
71
  near_jsonrpc_models/epoch_id.py,sha256=PhzEnxhfsr4KF3PJYYk62iXRWUhoyNQvFOBwzTWACeg,238
72
72
  near_jsonrpc_models/epoch_sync_config.py,sha256=mvI-SS2IhWixV2wYciKJSQbTg235L8UQmlfPt14EpYY,1636
73
73
  near_jsonrpc_models/error_wrapper_for_genesis_config_error.py,sha256=Fy8v8wHg2qkmjfNaAr64XPWY8VHt3yJjkcMtJdv1rp8,985
@@ -303,7 +303,7 @@ near_jsonrpc_models/rpc_view_gas_key_response.py,sha256=Wnymph7cwmVIJITV-UgECT82
303
303
  near_jsonrpc_models/rpc_view_state_error.py,sha256=XM-6-poRLwcSdfqwbxVeXQRvevV-erHF8NCIvPYbjNw,1915
304
304
  near_jsonrpc_models/rpc_view_state_request.py,sha256=QZjrAJSaT5gc-oq3G-5HqKBcuiD4OMTpnnOhS4B1mC8,987
305
305
  near_jsonrpc_models/rpc_view_state_response.py,sha256=GgZv8V6m8lrx-lV7tbteHNrT9UiculhU2SNzOYQSnpE,432
306
- near_jsonrpc_models/runtime_config_view.py,sha256=oh5_sX_Z7yy3eDHpRHWjW7pgv6LWbZeq28NQSbWuAu8,1797
306
+ near_jsonrpc_models/runtime_config_view.py,sha256=SZJklyVA7GjhIuPEAsJa3a4tvDjUKs_q-qY2LS5YzC4,1849
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
309
  near_jsonrpc_models/shard_layout.py,sha256=cQn_buHJBpUINWXwYS1HbKo_vZvFECpRkyiLt3vc4vM,1371
@@ -351,7 +351,7 @@ near_jsonrpc_models/vmconfig_view.py,sha256=LiW1t0jqnCiSdb8uuUBMaGzGg2NAudUo9kcO
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.22.dist-info/METADATA,sha256=DRpnXaMgTBh00UAUF06zz32NT9D9htVLId2gEYoNcoI,6309
355
- near_jsonrpc_client-1.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
- near_jsonrpc_client-1.0.22.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
357
- near_jsonrpc_client-1.0.22.dist-info/RECORD,,
354
+ near_jsonrpc_client-1.0.23.dist-info/METADATA,sha256=7Dtm_XeYiNu4xcKbGqBD0ZCWbAe3759QeEheywnS0KI,6309
355
+ near_jsonrpc_client-1.0.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
+ near_jsonrpc_client-1.0.23.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
357
+ near_jsonrpc_client-1.0.23.dist-info/RECORD,,
@@ -1,23 +1,22 @@
1
- """Configuration for dynamic resharding feature"""
1
+ """Configuration for dynamic resharding feature
2
+ See [`DynamicReshardingConfig`] for more details."""
2
3
 
4
+ from near_jsonrpc_models.shard_id import ShardId
3
5
  from pydantic import BaseModel
4
6
  from pydantic import conint
7
+ from typing import List
5
8
 
6
9
 
7
10
  class DynamicReshardingConfigView(BaseModel):
11
+ # Shards that should **not** be split even when they meet the regular split criteria.
12
+ block_split_shards: List[ShardId]
13
+ # Shards that should be split even when they don't meet the regular split criteria.
14
+ force_split_shards: List[ShardId]
8
15
  # Maximum number of shards in the network.
9
- #
10
- # See [`CongestionControlConfig`] for more details.
11
16
  max_number_of_shards: conint(ge=0, le=18446744073709551615)
12
17
  # Memory threshold over which a shard is marked for a split.
13
- #
14
- # See [`CongestionControlConfig`] for more details.
15
18
  memory_usage_threshold: conint(ge=0, le=18446744073709551615)
16
19
  # Minimum memory usage of a child shard.
17
- #
18
- # See [`CongestionControlConfig`] for more details.
19
20
  min_child_memory_usage: conint(ge=0, le=18446744073709551615)
20
21
  # Minimum number of epochs until next resharding can be scheduled.
21
- #
22
- # See [`CongestionControlConfig`] for more details.
23
22
  min_epochs_between_resharding: conint(ge=0, le=18446744073709551615)
@@ -17,7 +17,7 @@ class RuntimeConfigView(BaseModel):
17
17
  # The configuration for congestion control.
18
18
  congestion_control_config: CongestionControlConfigView = None
19
19
  # Configuration for dynamic resharding feature.
20
- dynamic_resharding_config: DynamicReshardingConfigView = Field(default_factory=lambda: DynamicReshardingConfigView(**{'max_number_of_shards': 999999999999999, 'memory_usage_threshold': 999999999999999, 'min_child_memory_usage': 999999999999999, 'min_epochs_between_resharding': 999999999999999}))
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
21
  # Amount of yN per byte required to have on the account. See
22
22
  # <https://nomicon.io/Economics/Economics.html#state-stake> for details.
23
23
  storage_amount_per_byte: NearToken = None