near-jsonrpc-client 1.0.5__py3-none-any.whl → 1.0.14__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,6 +37,11 @@ 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
+
42
+ if response_json["result"]["error"] is not None:
43
+ raise ClientError(response_json["result"]["error"]) from e
44
+
40
45
  raise ClientError("Invalid response format") from e
41
46
 
42
47
  inner = parsed.root
@@ -0,0 +1,232 @@
1
+ Metadata-Version: 2.4
2
+ Name: near-jsonrpc-client
3
+ Version: 1.0.14
4
+ Summary: A typed Python client for the NEAR JSON-RPC API with Pydantic models and async HTTP support
5
+ Requires-Python: >=3.9
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: httpx
9
+ Requires-Dist: pydantic>=2
10
+ Dynamic: license-file
11
+ Dynamic: requires-python
12
+
13
+ # NEAR JSON-RPC Python Client
14
+
15
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/near/near-jsonrpc-client-kotlin/ci-cd.yml?branch=main)](https://github.com/hosseinkarami-dev/near-jsonrpc-client-py/actions)
16
+ ![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)
17
+ ![Python](https://img.shields.io/badge/python-3.9%2B-blue.svg)
18
+ ![Type Safe](https://img.shields.io/badge/type--safe-yes-success.svg)
19
+ ![Release Badge](https://img.shields.io/github/tag/hosseinkarami-dev/near-jsonrpc-client-py.svg?label=release)
20
+
21
+ A **type-safe**, Pythonic client for the NEAR Protocol JSON-RPC API.
22
+
23
+ ---
24
+
25
+ ## Table of contents
26
+
27
+ * [Overview](#-overview)
28
+ * [Features](#-features)
29
+ * [Requirements](#-requirements)
30
+ * [Installation](#-installation)
31
+ * [Quickstart](#-quickstart)
32
+ * [Basic Usage](#-basic-usage)
33
+ * [Handling Responses & Errors](#-handling-responses--errors)
34
+ * [Testing](#-testing)
35
+ * [Contributing](#-contributing)
36
+ * [Deployment Guide](#-deployment-guide)
37
+ * [License](#-license)
38
+ * [References](#-references)
39
+
40
+ ---
41
+
42
+ ## 📖 Overview
43
+
44
+ This library provides a **type-safe**, developer-friendly Python interface for interacting with the NEAR Protocol JSON-RPC API.
45
+
46
+ * Fully typed request & response models
47
+ * Clean separation between transport, RPC layer, and domain models
48
+ * Designed for both scripting and production use
49
+
50
+ The client is inspired by official NEAR JSON-RPC client in [Kotlin](https://github.com/near/near-jsonrpc-client-kotlin).
51
+
52
+ | Module | Description |
53
+ |--------------|----------------------------------------------------------------------------------|
54
+ | `client` | Python JSON-RPC client supporting both sync and async usage, with full NEAR RPC method wrappers (auto-generated) |
55
+ | `models` | Typed Python classes for RPC requests and responses using Pydantic (auto-generated) |
56
+ | `generator` | Tools for generating Python client and Pydantic models from NEAR’s OpenAPI specification |
57
+
58
+ ---
59
+
60
+ ## ✨ Features
61
+
62
+ 🎯 **Type-Safe API**
63
+ All RPC requests and responses are represented as typed Python models (dataclasses / Pydantic), reducing runtime errors.
64
+
65
+ ⚡ **Simple & Explicit Design**
66
+ No magic. Each RPC method maps directly to a NEAR JSON-RPC endpoint.
67
+
68
+ 🛡️ **Structured Error Handling**
69
+ Clear distinction between:
70
+
71
+ * JSON-RPC errors
72
+ * HTTP errors
73
+ * Network failures
74
+ * Serialization issues
75
+
76
+ 🔄 **Sync & Async Friendly**
77
+
78
+ * Synchronous client for scripts & backend services using `httpx.Client`
79
+ * Optional async client for asyncio-based applications using `httpx.AsyncClient`
80
+
81
+ 📦 **Minimal Dependencies**
82
+ Built on top of well-known Python libraries (`httpx` and `pydantic`).
83
+
84
+
85
+ 🧪 **Testable by Design**
86
+ Easy to mock transport layer for unit & integration tests.
87
+
88
+ ---
89
+
90
+ ## ⚙️ Requirements
91
+
92
+ * Python **3.9+**
93
+ * `httpx` (used for both sync and async transports)
94
+ * `pydantic` (for type-safe request/response models)
95
+
96
+ ---
97
+
98
+ ## 📦 Installation
99
+
100
+ ```bash
101
+ pip install near-jsonrpc-client httpx pydantic
102
+ ```
103
+
104
+ ---
105
+
106
+ ## 🚀 Quickstart
107
+
108
+ ### Async Client
109
+
110
+ ```python
111
+ import asyncio
112
+ from near_jsonrpc_client import NearClientAsync
113
+ from near_jsonrpc_models import RpcBlockRequest, BlockId, RpcBlockRequestBlockId, BlockIdBlockHeight
114
+
115
+
116
+ async def main():
117
+ client = NearClientAsync(base_url="https://rpc.mainnet.near.org")
118
+
119
+ params = RpcBlockRequest(
120
+ RpcBlockRequestBlockId(
121
+ block_id=BlockId(BlockIdBlockHeight(178682261))
122
+ )
123
+ )
124
+
125
+ block = await client.block(params=params)
126
+ print(block)
127
+
128
+ await client.close()
129
+
130
+
131
+ asyncio.run(main())
132
+ ```
133
+
134
+ ### Sync Client
135
+
136
+ ```python
137
+ from near_jsonrpc_client import NearClientSync
138
+ from near_jsonrpc_models import RpcBlockRequest, BlockId, RpcBlockRequestBlockId, BlockIdBlockHeight
139
+
140
+ client = NearClientSync(base_url="https://rpc.mainnet.near.org")
141
+
142
+ params = RpcBlockRequest(
143
+ RpcBlockRequestBlockId(
144
+ block_id=BlockId(BlockIdBlockHeight(178682261))
145
+ )
146
+ )
147
+
148
+ block = client.block(params=params)
149
+ print(block)
150
+
151
+ client.close()
152
+ ```
153
+
154
+ ---
155
+
156
+ ## 📝 Basic Usage
157
+
158
+ * Create request models for each RPC method.
159
+ * Call the method on the appropriate client (async or sync).
160
+ * Receive typed response models.
161
+
162
+ ```python
163
+ from near_jsonrpc_models import RpcBlockRequest, RpcBlockRequestBlockId, BlockIdBlockHeight, BlockId
164
+
165
+ params = RpcBlockRequest(RpcBlockRequestBlockId(block_id=BlockId(BlockIdBlockHeight(178682261))))
166
+ response = client.block(params=params)
167
+ print(response)
168
+ ```
169
+
170
+ ---
171
+
172
+ ## ⚠️ Handling Responses & Errors
173
+
174
+ The client raises structured exceptions:
175
+
176
+ * `RpcError` – returned from NEAR JSON-RPC
177
+ * `HttpError` – HTTP errors with status code and body
178
+ * `RequestTimeoutError` – request timeout
179
+ * `ClientError` – unexpected or invalid responses
180
+
181
+ Example:
182
+
183
+ ```python
184
+ from near_jsonrpc_client import RpcError, HttpError, RequestTimeoutError, ClientError
185
+
186
+ try:
187
+ block = client.block(params=params)
188
+ except RpcError as e:
189
+ print(f"RPC error: {e.error}")
190
+ except HttpError as e:
191
+ print(f"HTTP error: {e.status_code}, {e.body}")
192
+ except RequestTimeoutError as e:
193
+ print("Request timed out")
194
+ except ClientError as e:
195
+ print("Invalid response", e)
196
+ ```
197
+
198
+ ---
199
+
200
+ ## 🧪 Testing
201
+
202
+ * Simply run `pytest` to execute all tests.
203
+ * The transport layer (`HttpTransportAsync` or `HttpTransportSync`) is mocked internally, so no actual network calls are made.
204
+
205
+ ---
206
+
207
+ ## 🤝 Contributing
208
+
209
+ * Fork the repository
210
+ * Create a feature branch
211
+ * Submit a pull request with tests
212
+
213
+ ---
214
+
215
+ ## 📜 License
216
+
217
+ This project is licensed under the Apache-2.0 License. See LICENSE for details.
218
+
219
+ ---
220
+
221
+ ## 📦 Deployment Guide
222
+
223
+ For detailed instructions on project structure, CI/CD workflow, versioning, and deployment steps, see the [DEPLOYMENT.md](./DEPLOYMENT.md) file.
224
+
225
+ ---
226
+
227
+ ## 📚 References
228
+
229
+ * [NEAR Protocol JSON-RPC](https://docs.near.org/docs/api/rpc)
230
+ * [httpx Documentation](https://www.python-httpx.org/)
231
+ * [Pydantic Documentation](https://docs.pydantic.dev/)
232
+
@@ -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=Rn0Qrr0AK77j-FskwKXUXhTB9j_3rohJTmrPeJtyoI0,4183
4
+ near_jsonrpc_client/base_client.py,sha256=Iq_0-9KK3QcT0Os2G9b-_1jk6TWr90-4h5_IBCoKyz4,4342
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.5.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
- near_jsonrpc_models/__init__.py,sha256=LN4dy6QLrgpjZZmqmbTSE_y_5b_aqwHu6RMkSltcCbM,224672
8
+ near_jsonrpc_client-1.0.14.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
@@ -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=La-itvafyFTAkhRufDH1YripY_jfDHkcv2l3zVQr08o,532
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=iYtMwIIOsTeabl3Pu1kR3CXI7CoV4OwAaEoUnf0DPwE,582
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
@@ -241,7 +241,7 @@ near_jsonrpc_models/rpc_health_response.py,sha256=nwOp_Gs3yW9vhPH48O-PoxftWX_FeH
241
241
  near_jsonrpc_models/rpc_known_producer.py,sha256=2-IjbJuj1jcIP6gBbR6DzG25gQr9vWg_oeUWWqgTaUY,242
242
242
  near_jsonrpc_models/rpc_light_client_block_proof_request.py,sha256=XbmDm65mkDW7O-7jPm0Pkj8erddUOWdbxWucx0jjJdo,199
243
243
  near_jsonrpc_models/rpc_light_client_block_proof_response.py,sha256=ZF1c3Ta_ZS5MXS2TnJiHip3tmEvDrniXeuhfjsSo6DU,344
244
- near_jsonrpc_models/rpc_light_client_execution_proof_request.py,sha256=ec5y9ZmvpeUDCMwIFtbY37ADgcMPdvsoEn3hNXpgD10,755
244
+ near_jsonrpc_models/rpc_light_client_execution_proof_request.py,sha256=YnzZfCHp_arKvq0N6H_uXGRXb5AxPiVmyhgwtzna87Q,757
245
245
  near_jsonrpc_models/rpc_light_client_execution_proof_response.py,sha256=gpOVjbUiNRUaDyF8QIx1zvI60DLjFYC1i56b-Gk63bk,529
246
246
  near_jsonrpc_models/rpc_light_client_next_block_error.py,sha256=t3_OqNNATRrRT0lKnjen2Ce_-Aazl0Z6GxOsjPqXWLU,1022
247
247
  near_jsonrpc_models/rpc_light_client_next_block_request.py,sha256=Rt_Io6vw-DO7b_IobK23q0ldMueH3oCkgbheL6znCw0,169
@@ -277,7 +277,7 @@ near_jsonrpc_models/rpc_status_request.py,sha256=AzGeQ34Tdpxsond8X9nvs9lbhQ4ewIZ
277
277
  near_jsonrpc_models/rpc_status_response.py,sha256=qaZ5ES8rfDENmnjT7cSBcnxvriqd284levxBQzbgadc,1647
278
278
  near_jsonrpc_models/rpc_transaction_error.py,sha256=FvAaWA8kLO7-IxdkM6Ag1Qd0xzZlmIPXtz653yY98hs,1486
279
279
  near_jsonrpc_models/rpc_transaction_response.py,sha256=u-xeR_w18aSIr4iCujNn5r9zGKtZKV9VJ9Kp2gzO6Ao,804
280
- near_jsonrpc_models/rpc_transaction_status_request.py,sha256=ORKExOqeplZGjGdZsR_Fgkk-3t3YoswGkAHmrxrn-h4,816
280
+ near_jsonrpc_models/rpc_transaction_status_request.py,sha256=6RZRXWJGY54JQbuUOP9L9JCLPB0glWYP00_KeLBhy4c,834
281
281
  near_jsonrpc_models/rpc_validator_error.py,sha256=KXdAammM2dK_ZG_s5jOVB1tidqEWqPr7LNJ_TE78QuI,676
282
282
  near_jsonrpc_models/rpc_validator_request.py,sha256=junNkex-fqHewHwwMGhd6JCiE2mD8fcPlHKgJD0sbPE,561
283
283
  near_jsonrpc_models/rpc_validator_response.py,sha256=HaVtUKMu9RVMJmSHXaFkPfwntMbnmUXF0YS5yYFunU8,1200
@@ -318,9 +318,9 @@ near_jsonrpc_models/signed_transaction.py,sha256=y1MhWDYQM-Pfyad2T1TkUshqeG4uQX0
318
318
  near_jsonrpc_models/signed_transaction_view.py,sha256=v6joSKtANnrUqdY3kWhL295K7mxJpMBvp3T0TcvEiEQ,656
319
319
  near_jsonrpc_models/slashed_validator.py,sha256=S0-BRM_6ye9NPlP9dwv2xFlTbLis7f2bbsUoa6_Xkjo,172
320
320
  near_jsonrpc_models/stake_action.py,sha256=uQGmreww68WARsQmwpg3fVGoh1zzadJ69YYY7iHXh-I,412
321
- near_jsonrpc_models/state_change_cause_view.py,sha256=0YUJk87gSlvQ6T-JGY7XLPA_xV5aq0B89TNZesf72Lk,1768
322
- near_jsonrpc_models/state_change_kind_view.py,sha256=Z-MHUS8AExbFfbeFTm3R59RucQSoYtsr0xfxTbOb68c,962
323
- near_jsonrpc_models/state_change_with_cause_view.py,sha256=aXRM3Fq2V7fvb4Ff9baPatBJ03JXqkJXUEPkAPJhN2I,4614
321
+ near_jsonrpc_models/state_change_cause_view.py,sha256=366L6NI8vThzQHYya8UcORxIS2o3czoG_QRZY6PkFGo,2020
322
+ near_jsonrpc_models/state_change_kind_view.py,sha256=vHRm-vlzk0rflryZxmD0nWkRLrMTOKayP75Ray4qP1Y,994
323
+ near_jsonrpc_models/state_change_with_cause_view.py,sha256=EVtnwuXLYL9UMXlhh7dfd-8w-xSYM0laJa4cP9Vb5KA,4940
324
324
  near_jsonrpc_models/state_item.py,sha256=s17-HpPeaDYhbTUywml4MhG6ptTgq9Ku1geMx8N7S34,317
325
325
  near_jsonrpc_models/state_sync_config.py,sha256=Did7b1-Bt-eeWpHgJvGqmM1t2s7O0-XqTypWHEr6hjc,548
326
326
  near_jsonrpc_models/status_sync_info.py,sha256=vPMJiA0As1X2bAwlJb_0R3ddw-nOMifRHv37r9WbGzw,658
@@ -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.5.dist-info/METADATA,sha256=ymLegryL1EdfPTkxD-xeNeeOrrmDFJTNJt7Xpox1wz0,304
355
- near_jsonrpc_client-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
- near_jsonrpc_client-1.0.5.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
357
- near_jsonrpc_client-1.0.5.dist-info/RECORD,,
354
+ near_jsonrpc_client-1.0.14.dist-info/METADATA,sha256=wLuO8rI4yWh_ZQW-wj12AERt7UCBif6KgJAn4nsssdQ,6303
355
+ near_jsonrpc_client-1.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
356
+ near_jsonrpc_client-1.0.14.dist-info/top_level.txt,sha256=uMGb9-6Ckd8WvQ5-m1l9mVFmM5lCORE6YybUIOimSuc,40
357
+ near_jsonrpc_client-1.0.14.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 RpcChunkRequestBlockShardIdOption
426
- from .rpc_chunk_request import RpcChunkRequestChunkHashOption
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
@@ -496,28 +496,28 @@ if TYPE_CHECKING:
496
496
  from .function_call_error import FunctionCallErrorHostError
497
497
  from .function_call_error import FunctionCallErrorExecutionError
498
498
  from .function_call_error import FunctionCallError
499
- from .state_change_with_cause_view import StateChangeWithCauseViewChangePayload
500
- from .state_change_with_cause_view import StateChangeWithCauseViewChange
501
- from .state_change_with_cause_view import StateChangeWithCauseViewChangeOptionChange
502
- from .state_change_with_cause_view import StateChangeWithCauseViewChangeOption
503
- from .state_change_with_cause_view import StateChangeWithCauseViewChange1Change
504
- from .state_change_with_cause_view import StateChangeWithCauseViewChange1
505
- from .state_change_with_cause_view import StateChangeWithCauseViewChange2Change
506
- from .state_change_with_cause_view import StateChangeWithCauseViewChange2
507
- from .state_change_with_cause_view import StateChangeWithCauseViewChange3Change
508
- from .state_change_with_cause_view import StateChangeWithCauseViewChange3
509
- from .state_change_with_cause_view import StateChangeWithCauseViewChange4Change
510
- from .state_change_with_cause_view import StateChangeWithCauseViewChange4
511
- from .state_change_with_cause_view import StateChangeWithCauseViewChange5Change
512
- from .state_change_with_cause_view import StateChangeWithCauseViewChange5
513
- from .state_change_with_cause_view import StateChangeWithCauseViewChange6Change
514
- from .state_change_with_cause_view import StateChangeWithCauseViewChange6
515
- from .state_change_with_cause_view import StateChangeWithCauseViewChange7Change
516
- from .state_change_with_cause_view import StateChangeWithCauseViewChange7
517
- from .state_change_with_cause_view import StateChangeWithCauseViewChange8Change
518
- from .state_change_with_cause_view import StateChangeWithCauseViewChange8
519
- from .state_change_with_cause_view import StateChangeWithCauseViewChange9Change
520
- from .state_change_with_cause_view import StateChangeWithCauseViewChange9
499
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccountUpdateChange
500
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccountUpdate
501
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccountDeletionChange
502
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccountDeletion
503
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyUpdateChange
504
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyUpdate
505
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyDeletionChange
506
+ from .state_change_with_cause_view import StateChangeWithCauseViewAccessKeyDeletion
507
+ from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyUpdateChange
508
+ from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyUpdate
509
+ from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyNonceUpdateChange
510
+ from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyNonceUpdate
511
+ from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyDeletionChange
512
+ from .state_change_with_cause_view import StateChangeWithCauseViewGasKeyDeletion
513
+ from .state_change_with_cause_view import StateChangeWithCauseViewDataUpdateChange
514
+ from .state_change_with_cause_view import StateChangeWithCauseViewDataUpdate
515
+ from .state_change_with_cause_view import StateChangeWithCauseViewDataDeletionChange
516
+ from .state_change_with_cause_view import StateChangeWithCauseViewDataDeletion
517
+ from .state_change_with_cause_view import StateChangeWithCauseViewContractCodeUpdateChange
518
+ from .state_change_with_cause_view import StateChangeWithCauseViewContractCodeUpdate
519
+ from .state_change_with_cause_view import StateChangeWithCauseViewContractCodeDeletionChange
520
+ from .state_change_with_cause_view import StateChangeWithCauseViewContractCodeDeletion
521
521
  from .state_change_with_cause_view import StateChangeWithCauseView
522
522
  from .receipt_enum_view import ReceiptEnumViewActionPayload
523
523
  from .receipt_enum_view import ReceiptEnumViewAction
@@ -634,10 +634,10 @@ if TYPE_CHECKING:
634
634
  from .rpc_protocol_config_response import s
635
635
  from .current_epoch_validator_info import CurrentEpochValidatorInfo
636
636
  from .rpc_view_account_response import RpcViewAccountResponse
637
- from .state_change_kind_view import StateChangeKindViewAccountId
638
- from .state_change_kind_view import StateChangeKindViewAccountIdOption
639
- from .state_change_kind_view import StateChangeKindViewAccountId1
640
- from .state_change_kind_view import StateChangeKindViewAccountId2
637
+ from .state_change_kind_view import StateChangeKindViewAccountTouched
638
+ from .state_change_kind_view import StateChangeKindViewAccessKeyTouched
639
+ from .state_change_kind_view import StateChangeKindViewDataTouched
640
+ from .state_change_kind_view import StateChangeKindViewContractCodeTouched
641
641
  from .state_change_kind_view import StateChangeKindView
642
642
  from .rpc_query_response import RpcQueryResponseAccountView
643
643
  from .rpc_query_response import RpcQueryResponseContractCodeView
@@ -842,8 +842,8 @@ if TYPE_CHECKING:
842
842
  from .error_wrapper_for_rpc_call_function_error import ErrorWrapperForRpcCallFunctionError
843
843
  from .deterministic_account_state_init import DeterministicAccountStateInitV1Option
844
844
  from .deterministic_account_state_init import DeterministicAccountStateInit
845
- from .rpc_transaction_status_request import RpcTransactionStatusRequestOption1Option
846
- from .rpc_transaction_status_request import RpcTransactionStatusRequestOption2Option
845
+ from .rpc_transaction_status_request import RpcTransactionStatusRequestSignedTxBase64
846
+ from .rpc_transaction_status_request import RpcTransactionStatusRequestSenderAccountIdTxHash
847
847
  from .rpc_transaction_status_request import RpcTransactionStatusRequest
848
848
  from .signed_delegate_action import SignedDelegateAction
849
849
  from .account_data_view import AccountDataView
@@ -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 RpcCongestionLevelRequestBlockShardIdOption
1055
- from .rpc_congestion_level_request import RpcCongestionLevelRequestChunkHashOption
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
@@ -1072,17 +1072,17 @@ if TYPE_CHECKING:
1072
1072
  from .error_wrapper_for_rpc_split_storage_info_error import ErrorWrapperForRpcSplitStorageInfoErrorInternalError
1073
1073
  from .error_wrapper_for_rpc_split_storage_info_error import ErrorWrapperForRpcSplitStorageInfoError
1074
1074
  from .deploy_global_contract_action import DeployGlobalContractAction
1075
- from .state_change_cause_view import StateChangeCauseViewType
1076
- from .state_change_cause_view import StateChangeCauseViewTypeOption
1077
- from .state_change_cause_view import StateChangeCauseViewTxHash
1078
- from .state_change_cause_view import StateChangeCauseViewReceiptHash
1079
- from .state_change_cause_view import StateChangeCauseViewReceiptHashOption
1080
- from .state_change_cause_view import StateChangeCauseViewReceiptHash1
1081
- from .state_change_cause_view import StateChangeCauseViewReceiptHash2
1082
- from .state_change_cause_view import StateChangeCauseViewType1
1083
- from .state_change_cause_view import StateChangeCauseViewType2
1084
- from .state_change_cause_view import StateChangeCauseViewType3
1085
- from .state_change_cause_view import StateChangeCauseViewType4
1075
+ from .state_change_cause_view import StateChangeCauseViewNotWritableToDisk
1076
+ from .state_change_cause_view import StateChangeCauseViewInitialState
1077
+ from .state_change_cause_view import StateChangeCauseViewTransactionProcessing
1078
+ from .state_change_cause_view import StateChangeCauseViewActionReceiptProcessingStarted
1079
+ from .state_change_cause_view import StateChangeCauseViewActionReceiptGasReward
1080
+ from .state_change_cause_view import StateChangeCauseViewReceiptProcessing
1081
+ from .state_change_cause_view import StateChangeCauseViewPostponedReceipt
1082
+ from .state_change_cause_view import StateChangeCauseViewUpdatedDelayedReceipts
1083
+ from .state_change_cause_view import StateChangeCauseViewValidatorAccountsUpdate
1084
+ from .state_change_cause_view import StateChangeCauseViewMigration
1085
+ from .state_change_cause_view import StateChangeCauseViewBandwidthSchedulerStateUpdate
1086
1086
  from .state_change_cause_view import StateChangeCauseView
1087
1087
  from .transfer_action import TransferAction
1088
1088
  from .public_key import PublicKey
@@ -1099,8 +1099,8 @@ if TYPE_CHECKING:
1099
1099
  from .genesis_config import s
1100
1100
  from .dump_config import DumpConfig
1101
1101
  from .json_rpc_request_for_experimental_validators_ordered import JsonRpcRequestForExperimentalValidatorsOrdered
1102
- from .rpc_light_client_execution_proof_request import RpcLightClientExecutionProofRequestSenderId
1103
- from .rpc_light_client_execution_proof_request import RpcLightClientExecutionProofRequestReceiptId
1102
+ from .rpc_light_client_execution_proof_request import RpcLightClientExecutionProofRequestTransaction
1103
+ from .rpc_light_client_execution_proof_request import RpcLightClientExecutionProofRequestReceipt
1104
1104
  from .rpc_light_client_execution_proof_request import RpcLightClientExecutionProofRequest
1105
1105
  from .error_wrapper_for_rpc_state_changes_error import ErrorWrapperForRpcStateChangesErrorRequestValidationError
1106
1106
  from .error_wrapper_for_rpc_state_changes_error import ErrorWrapperForRpcStateChangesErrorHandlerError
@@ -1794,8 +1794,8 @@ __all__ = [
1794
1794
  'RpcChunkErrorUnknownChunk',
1795
1795
  'RpcChunkErrorUnknownChunkInfo',
1796
1796
  'RpcChunkRequest',
1797
- 'RpcChunkRequestBlockShardIdOption',
1798
- 'RpcChunkRequestChunkHashOption',
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
- 'RpcCongestionLevelRequestBlockShardIdOption',
1807
- 'RpcCongestionLevelRequestChunkHashOption',
1806
+ 'RpcCongestionLevelRequestBlockShardId',
1807
+ 'RpcCongestionLevelRequestChunkHash',
1808
1808
  'RpcCongestionLevelResponse',
1809
1809
  'RpcGasPriceError',
1810
1810
  'RpcGasPriceErrorInternalError',
@@ -1818,8 +1818,8 @@ __all__ = [
1818
1818
  'RpcLightClientBlockProofRequest',
1819
1819
  'RpcLightClientBlockProofResponse',
1820
1820
  'RpcLightClientExecutionProofRequest',
1821
- 'RpcLightClientExecutionProofRequestReceiptId',
1822
- 'RpcLightClientExecutionProofRequestSenderId',
1821
+ 'RpcLightClientExecutionProofRequestReceipt',
1822
+ 'RpcLightClientExecutionProofRequestTransaction',
1823
1823
  'RpcLightClientExecutionProofResponse',
1824
1824
  'RpcLightClientNextBlockError',
1825
1825
  'RpcLightClientNextBlockErrorEpochOutOfBounds',
@@ -2001,8 +2001,8 @@ __all__ = [
2001
2001
  'RpcTransactionResponseFinalExecutionOutcomeView',
2002
2002
  'RpcTransactionResponseFinalExecutionOutcomeWithReceiptView',
2003
2003
  'RpcTransactionStatusRequest',
2004
- 'RpcTransactionStatusRequestOption1Option',
2005
- 'RpcTransactionStatusRequestOption2Option',
2004
+ 'RpcTransactionStatusRequestSenderAccountIdTxHash',
2005
+ 'RpcTransactionStatusRequestSignedTxBase64',
2006
2006
  'RpcValidatorError',
2007
2007
  'RpcValidatorErrorInternalError',
2008
2008
  'RpcValidatorErrorInternalErrorInfo',
@@ -2140,45 +2140,45 @@ __all__ = [
2140
2140
  'SlashedValidator',
2141
2141
  'StakeAction',
2142
2142
  'StateChangeCauseView',
2143
- 'StateChangeCauseViewReceiptHash',
2144
- 'StateChangeCauseViewReceiptHash1',
2145
- 'StateChangeCauseViewReceiptHash2',
2146
- 'StateChangeCauseViewReceiptHashOption',
2147
- 'StateChangeCauseViewTxHash',
2148
- 'StateChangeCauseViewType',
2149
- 'StateChangeCauseViewType1',
2150
- 'StateChangeCauseViewType2',
2151
- 'StateChangeCauseViewType3',
2152
- 'StateChangeCauseViewType4',
2153
- 'StateChangeCauseViewTypeOption',
2143
+ 'StateChangeCauseViewActionReceiptGasReward',
2144
+ 'StateChangeCauseViewActionReceiptProcessingStarted',
2145
+ 'StateChangeCauseViewBandwidthSchedulerStateUpdate',
2146
+ 'StateChangeCauseViewInitialState',
2147
+ 'StateChangeCauseViewMigration',
2148
+ 'StateChangeCauseViewNotWritableToDisk',
2149
+ 'StateChangeCauseViewPostponedReceipt',
2150
+ 'StateChangeCauseViewReceiptProcessing',
2151
+ 'StateChangeCauseViewTransactionProcessing',
2152
+ 'StateChangeCauseViewUpdatedDelayedReceipts',
2153
+ 'StateChangeCauseViewValidatorAccountsUpdate',
2154
2154
  'StateChangeKindView',
2155
- 'StateChangeKindViewAccountId',
2156
- 'StateChangeKindViewAccountId1',
2157
- 'StateChangeKindViewAccountId2',
2158
- 'StateChangeKindViewAccountIdOption',
2155
+ 'StateChangeKindViewAccessKeyTouched',
2156
+ 'StateChangeKindViewAccountTouched',
2157
+ 'StateChangeKindViewContractCodeTouched',
2158
+ 'StateChangeKindViewDataTouched',
2159
2159
  'StateChangeWithCauseView',
2160
- 'StateChangeWithCauseViewChange',
2161
- 'StateChangeWithCauseViewChange1',
2162
- 'StateChangeWithCauseViewChange1Change',
2163
- 'StateChangeWithCauseViewChange2',
2164
- 'StateChangeWithCauseViewChange2Change',
2165
- 'StateChangeWithCauseViewChange3',
2166
- 'StateChangeWithCauseViewChange3Change',
2167
- 'StateChangeWithCauseViewChange4',
2168
- 'StateChangeWithCauseViewChange4Change',
2169
- 'StateChangeWithCauseViewChange5',
2170
- 'StateChangeWithCauseViewChange5Change',
2171
- 'StateChangeWithCauseViewChange6',
2172
- 'StateChangeWithCauseViewChange6Change',
2173
- 'StateChangeWithCauseViewChange7',
2174
- 'StateChangeWithCauseViewChange7Change',
2175
- 'StateChangeWithCauseViewChange8',
2176
- 'StateChangeWithCauseViewChange8Change',
2177
- 'StateChangeWithCauseViewChange9',
2178
- 'StateChangeWithCauseViewChange9Change',
2179
- 'StateChangeWithCauseViewChangeOption',
2180
- 'StateChangeWithCauseViewChangeOptionChange',
2181
- 'StateChangeWithCauseViewChangePayload',
2160
+ 'StateChangeWithCauseViewAccessKeyDeletion',
2161
+ 'StateChangeWithCauseViewAccessKeyDeletionChange',
2162
+ 'StateChangeWithCauseViewAccessKeyUpdate',
2163
+ 'StateChangeWithCauseViewAccessKeyUpdateChange',
2164
+ 'StateChangeWithCauseViewAccountDeletion',
2165
+ 'StateChangeWithCauseViewAccountDeletionChange',
2166
+ 'StateChangeWithCauseViewAccountUpdate',
2167
+ 'StateChangeWithCauseViewAccountUpdateChange',
2168
+ 'StateChangeWithCauseViewContractCodeDeletion',
2169
+ 'StateChangeWithCauseViewContractCodeDeletionChange',
2170
+ 'StateChangeWithCauseViewContractCodeUpdate',
2171
+ 'StateChangeWithCauseViewContractCodeUpdateChange',
2172
+ 'StateChangeWithCauseViewDataDeletion',
2173
+ 'StateChangeWithCauseViewDataDeletionChange',
2174
+ 'StateChangeWithCauseViewDataUpdate',
2175
+ 'StateChangeWithCauseViewDataUpdateChange',
2176
+ 'StateChangeWithCauseViewGasKeyDeletion',
2177
+ 'StateChangeWithCauseViewGasKeyDeletionChange',
2178
+ 'StateChangeWithCauseViewGasKeyNonceUpdate',
2179
+ 'StateChangeWithCauseViewGasKeyNonceUpdateChange',
2180
+ 'StateChangeWithCauseViewGasKeyUpdate',
2181
+ 'StateChangeWithCauseViewGasKeyUpdateChange',
2182
2182
  'StateItem',
2183
2183
  'StateSyncConfig',
2184
2184
  'StatusSyncInfo',
@@ -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
- 'RpcChunkRequestBlockShardIdOption': 'rpc_chunk_request',
2667
- 'RpcChunkRequestChunkHashOption': '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',
@@ -2737,28 +2737,28 @@ _CLASS_TO_MODULE = {
2737
2737
  'FunctionCallErrorHostError': 'function_call_error',
2738
2738
  'FunctionCallErrorExecutionError': 'function_call_error',
2739
2739
  'FunctionCallError': 'function_call_error',
2740
- 'StateChangeWithCauseViewChangePayload': 'state_change_with_cause_view',
2741
- 'StateChangeWithCauseViewChange': 'state_change_with_cause_view',
2742
- 'StateChangeWithCauseViewChangeOptionChange': 'state_change_with_cause_view',
2743
- 'StateChangeWithCauseViewChangeOption': 'state_change_with_cause_view',
2744
- 'StateChangeWithCauseViewChange1Change': 'state_change_with_cause_view',
2745
- 'StateChangeWithCauseViewChange1': 'state_change_with_cause_view',
2746
- 'StateChangeWithCauseViewChange2Change': 'state_change_with_cause_view',
2747
- 'StateChangeWithCauseViewChange2': 'state_change_with_cause_view',
2748
- 'StateChangeWithCauseViewChange3Change': 'state_change_with_cause_view',
2749
- 'StateChangeWithCauseViewChange3': 'state_change_with_cause_view',
2750
- 'StateChangeWithCauseViewChange4Change': 'state_change_with_cause_view',
2751
- 'StateChangeWithCauseViewChange4': 'state_change_with_cause_view',
2752
- 'StateChangeWithCauseViewChange5Change': 'state_change_with_cause_view',
2753
- 'StateChangeWithCauseViewChange5': 'state_change_with_cause_view',
2754
- 'StateChangeWithCauseViewChange6Change': 'state_change_with_cause_view',
2755
- 'StateChangeWithCauseViewChange6': 'state_change_with_cause_view',
2756
- 'StateChangeWithCauseViewChange7Change': 'state_change_with_cause_view',
2757
- 'StateChangeWithCauseViewChange7': 'state_change_with_cause_view',
2758
- 'StateChangeWithCauseViewChange8Change': 'state_change_with_cause_view',
2759
- 'StateChangeWithCauseViewChange8': 'state_change_with_cause_view',
2760
- 'StateChangeWithCauseViewChange9Change': 'state_change_with_cause_view',
2761
- 'StateChangeWithCauseViewChange9': 'state_change_with_cause_view',
2740
+ 'StateChangeWithCauseViewAccountUpdateChange': 'state_change_with_cause_view',
2741
+ 'StateChangeWithCauseViewAccountUpdate': 'state_change_with_cause_view',
2742
+ 'StateChangeWithCauseViewAccountDeletionChange': 'state_change_with_cause_view',
2743
+ 'StateChangeWithCauseViewAccountDeletion': 'state_change_with_cause_view',
2744
+ 'StateChangeWithCauseViewAccessKeyUpdateChange': 'state_change_with_cause_view',
2745
+ 'StateChangeWithCauseViewAccessKeyUpdate': 'state_change_with_cause_view',
2746
+ 'StateChangeWithCauseViewAccessKeyDeletionChange': 'state_change_with_cause_view',
2747
+ 'StateChangeWithCauseViewAccessKeyDeletion': 'state_change_with_cause_view',
2748
+ 'StateChangeWithCauseViewGasKeyUpdateChange': 'state_change_with_cause_view',
2749
+ 'StateChangeWithCauseViewGasKeyUpdate': 'state_change_with_cause_view',
2750
+ 'StateChangeWithCauseViewGasKeyNonceUpdateChange': 'state_change_with_cause_view',
2751
+ 'StateChangeWithCauseViewGasKeyNonceUpdate': 'state_change_with_cause_view',
2752
+ 'StateChangeWithCauseViewGasKeyDeletionChange': 'state_change_with_cause_view',
2753
+ 'StateChangeWithCauseViewGasKeyDeletion': 'state_change_with_cause_view',
2754
+ 'StateChangeWithCauseViewDataUpdateChange': 'state_change_with_cause_view',
2755
+ 'StateChangeWithCauseViewDataUpdate': 'state_change_with_cause_view',
2756
+ 'StateChangeWithCauseViewDataDeletionChange': 'state_change_with_cause_view',
2757
+ 'StateChangeWithCauseViewDataDeletion': 'state_change_with_cause_view',
2758
+ 'StateChangeWithCauseViewContractCodeUpdateChange': 'state_change_with_cause_view',
2759
+ 'StateChangeWithCauseViewContractCodeUpdate': 'state_change_with_cause_view',
2760
+ 'StateChangeWithCauseViewContractCodeDeletionChange': 'state_change_with_cause_view',
2761
+ 'StateChangeWithCauseViewContractCodeDeletion': 'state_change_with_cause_view',
2762
2762
  'StateChangeWithCauseView': 'state_change_with_cause_view',
2763
2763
  'ReceiptEnumViewActionPayload': 'receipt_enum_view',
2764
2764
  'ReceiptEnumViewAction': 'receipt_enum_view',
@@ -2875,10 +2875,10 @@ _CLASS_TO_MODULE = {
2875
2875
  's': 'rpc_protocol_config_response',
2876
2876
  'CurrentEpochValidatorInfo': 'current_epoch_validator_info',
2877
2877
  'RpcViewAccountResponse': 'rpc_view_account_response',
2878
- 'StateChangeKindViewAccountId': 'state_change_kind_view',
2879
- 'StateChangeKindViewAccountIdOption': 'state_change_kind_view',
2880
- 'StateChangeKindViewAccountId1': 'state_change_kind_view',
2881
- 'StateChangeKindViewAccountId2': 'state_change_kind_view',
2878
+ 'StateChangeKindViewAccountTouched': 'state_change_kind_view',
2879
+ 'StateChangeKindViewAccessKeyTouched': 'state_change_kind_view',
2880
+ 'StateChangeKindViewDataTouched': 'state_change_kind_view',
2881
+ 'StateChangeKindViewContractCodeTouched': 'state_change_kind_view',
2882
2882
  'StateChangeKindView': 'state_change_kind_view',
2883
2883
  'RpcQueryResponseAccountView': 'rpc_query_response',
2884
2884
  'RpcQueryResponseContractCodeView': 'rpc_query_response',
@@ -3083,8 +3083,8 @@ _CLASS_TO_MODULE = {
3083
3083
  'ErrorWrapperForRpcCallFunctionError': 'error_wrapper_for_rpc_call_function_error',
3084
3084
  'DeterministicAccountStateInitV1Option': 'deterministic_account_state_init',
3085
3085
  'DeterministicAccountStateInit': 'deterministic_account_state_init',
3086
- 'RpcTransactionStatusRequestOption1Option': 'rpc_transaction_status_request',
3087
- 'RpcTransactionStatusRequestOption2Option': 'rpc_transaction_status_request',
3086
+ 'RpcTransactionStatusRequestSignedTxBase64': 'rpc_transaction_status_request',
3087
+ 'RpcTransactionStatusRequestSenderAccountIdTxHash': 'rpc_transaction_status_request',
3088
3088
  'RpcTransactionStatusRequest': 'rpc_transaction_status_request',
3089
3089
  'SignedDelegateAction': 'signed_delegate_action',
3090
3090
  'AccountDataView': 'account_data_view',
@@ -3292,8 +3292,8 @@ _CLASS_TO_MODULE = {
3292
3292
  'ActionViewTransferToGasKeyPayload': 'action_view',
3293
3293
  'ActionViewTransferToGasKey': 'action_view',
3294
3294
  'ActionView': 'action_view',
3295
- 'RpcCongestionLevelRequestBlockShardIdOption': 'rpc_congestion_level_request',
3296
- 'RpcCongestionLevelRequestChunkHashOption': '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',
@@ -3313,17 +3313,17 @@ _CLASS_TO_MODULE = {
3313
3313
  'ErrorWrapperForRpcSplitStorageInfoErrorInternalError': 'error_wrapper_for_rpc_split_storage_info_error',
3314
3314
  'ErrorWrapperForRpcSplitStorageInfoError': 'error_wrapper_for_rpc_split_storage_info_error',
3315
3315
  'DeployGlobalContractAction': 'deploy_global_contract_action',
3316
- 'StateChangeCauseViewType': 'state_change_cause_view',
3317
- 'StateChangeCauseViewTypeOption': 'state_change_cause_view',
3318
- 'StateChangeCauseViewTxHash': 'state_change_cause_view',
3319
- 'StateChangeCauseViewReceiptHash': 'state_change_cause_view',
3320
- 'StateChangeCauseViewReceiptHashOption': 'state_change_cause_view',
3321
- 'StateChangeCauseViewReceiptHash1': 'state_change_cause_view',
3322
- 'StateChangeCauseViewReceiptHash2': 'state_change_cause_view',
3323
- 'StateChangeCauseViewType1': 'state_change_cause_view',
3324
- 'StateChangeCauseViewType2': 'state_change_cause_view',
3325
- 'StateChangeCauseViewType3': 'state_change_cause_view',
3326
- 'StateChangeCauseViewType4': 'state_change_cause_view',
3316
+ 'StateChangeCauseViewNotWritableToDisk': 'state_change_cause_view',
3317
+ 'StateChangeCauseViewInitialState': 'state_change_cause_view',
3318
+ 'StateChangeCauseViewTransactionProcessing': 'state_change_cause_view',
3319
+ 'StateChangeCauseViewActionReceiptProcessingStarted': 'state_change_cause_view',
3320
+ 'StateChangeCauseViewActionReceiptGasReward': 'state_change_cause_view',
3321
+ 'StateChangeCauseViewReceiptProcessing': 'state_change_cause_view',
3322
+ 'StateChangeCauseViewPostponedReceipt': 'state_change_cause_view',
3323
+ 'StateChangeCauseViewUpdatedDelayedReceipts': 'state_change_cause_view',
3324
+ 'StateChangeCauseViewValidatorAccountsUpdate': 'state_change_cause_view',
3325
+ 'StateChangeCauseViewMigration': 'state_change_cause_view',
3326
+ 'StateChangeCauseViewBandwidthSchedulerStateUpdate': 'state_change_cause_view',
3327
3327
  'StateChangeCauseView': 'state_change_cause_view',
3328
3328
  'TransferAction': 'transfer_action',
3329
3329
  'PublicKey': 'public_key',
@@ -3340,8 +3340,8 @@ _CLASS_TO_MODULE = {
3340
3340
  's': 'genesis_config',
3341
3341
  'DumpConfig': 'dump_config',
3342
3342
  'JsonRpcRequestForExperimentalValidatorsOrdered': 'json_rpc_request_for_experimental_validators_ordered',
3343
- 'RpcLightClientExecutionProofRequestSenderId': 'rpc_light_client_execution_proof_request',
3344
- 'RpcLightClientExecutionProofRequestReceiptId': 'rpc_light_client_execution_proof_request',
3343
+ 'RpcLightClientExecutionProofRequestTransaction': 'rpc_light_client_execution_proof_request',
3344
+ 'RpcLightClientExecutionProofRequestReceipt': 'rpc_light_client_execution_proof_request',
3345
3345
  'RpcLightClientExecutionProofRequest': 'rpc_light_client_execution_proof_request',
3346
3346
  'ErrorWrapperForRpcStateChangesErrorRequestValidationError': 'error_wrapper_for_rpc_state_changes_error',
3347
3347
  'ErrorWrapperForRpcStateChangesErrorHandlerError': 'error_wrapper_for_rpc_state_changes_error',
@@ -6,13 +6,13 @@ from pydantic import RootModel
6
6
  from typing import Union
7
7
 
8
8
 
9
- class RpcChunkRequestBlockShardIdOption(BaseModel):
9
+ class RpcChunkRequestBlockShardId(BaseModel):
10
10
  block_id: BlockId
11
11
  shard_id: ShardId
12
12
 
13
- class RpcChunkRequestChunkHashOption(BaseModel):
13
+ class RpcChunkRequestChunkHash(BaseModel):
14
14
  chunk_id: CryptoHash
15
15
 
16
- class RpcChunkRequest(RootModel[Union[RpcChunkRequestBlockShardIdOption, RpcChunkRequestChunkHashOption]]):
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 RpcCongestionLevelRequestBlockShardIdOption(BaseModel):
9
+ class RpcCongestionLevelRequestBlockShardId(BaseModel):
10
10
  block_id: BlockId
11
11
  shard_id: ShardId
12
12
 
13
- class RpcCongestionLevelRequestChunkHashOption(BaseModel):
13
+ class RpcCongestionLevelRequestChunkHash(BaseModel):
14
14
  chunk_id: CryptoHash
15
15
 
16
- class RpcCongestionLevelRequest(RootModel[Union[RpcCongestionLevelRequestBlockShardIdOption, RpcCongestionLevelRequestChunkHashOption]]):
16
+ class RpcCongestionLevelRequest(RootModel[Union[RpcCongestionLevelRequestBlockShardId, RpcCongestionLevelRequestChunkHash]]):
17
17
  pass
18
18
 
@@ -6,18 +6,18 @@ from typing import Literal
6
6
  from typing import Union
7
7
 
8
8
 
9
- class RpcLightClientExecutionProofRequestSenderId(BaseModel):
9
+ class RpcLightClientExecutionProofRequestTransaction(BaseModel):
10
10
  light_client_head: CryptoHash
11
11
  sender_id: AccountId
12
12
  transaction_hash: CryptoHash
13
13
  type: Literal['transaction']
14
14
 
15
- class RpcLightClientExecutionProofRequestReceiptId(BaseModel):
15
+ class RpcLightClientExecutionProofRequestReceipt(BaseModel):
16
16
  light_client_head: CryptoHash
17
17
  receipt_id: CryptoHash
18
18
  receiver_id: AccountId
19
19
  type: Literal['receipt']
20
20
 
21
- class RpcLightClientExecutionProofRequest(RootModel[Union[RpcLightClientExecutionProofRequestSenderId, RpcLightClientExecutionProofRequestReceiptId]]):
21
+ class RpcLightClientExecutionProofRequest(RootModel[Union[RpcLightClientExecutionProofRequestTransaction, RpcLightClientExecutionProofRequestReceipt]]):
22
22
  pass
23
23
 
@@ -7,15 +7,15 @@ from pydantic import RootModel
7
7
  from typing import Union
8
8
 
9
9
 
10
- class RpcTransactionStatusRequestOption1Option(BaseModel):
10
+ class RpcTransactionStatusRequestSignedTxBase64(BaseModel):
11
11
  wait_until: TxExecutionStatus = 'EXECUTED_OPTIMISTIC'
12
12
  signed_tx_base64: SignedTransaction
13
13
 
14
- class RpcTransactionStatusRequestOption2Option(BaseModel):
14
+ class RpcTransactionStatusRequestSenderAccountIdTxHash(BaseModel):
15
15
  wait_until: TxExecutionStatus = 'EXECUTED_OPTIMISTIC'
16
16
  sender_account_id: AccountId
17
17
  tx_hash: CryptoHash
18
18
 
19
- class RpcTransactionStatusRequest(RootModel[Union[RpcTransactionStatusRequestOption1Option, RpcTransactionStatusRequestOption2Option]]):
19
+ class RpcTransactionStatusRequest(RootModel[Union[RpcTransactionStatusRequestSignedTxBase64, RpcTransactionStatusRequestSenderAccountIdTxHash]]):
20
20
  pass
21
21
 
@@ -7,44 +7,44 @@ from typing import Literal
7
7
  from typing import Union
8
8
 
9
9
 
10
- class StateChangeCauseViewType(BaseModel):
10
+ class StateChangeCauseViewNotWritableToDisk(BaseModel):
11
11
  type: Literal['not_writable_to_disk']
12
12
 
13
- class StateChangeCauseViewTypeOption(BaseModel):
13
+ class StateChangeCauseViewInitialState(BaseModel):
14
14
  type: Literal['initial_state']
15
15
 
16
- class StateChangeCauseViewTxHash(BaseModel):
16
+ class StateChangeCauseViewTransactionProcessing(BaseModel):
17
17
  tx_hash: CryptoHash
18
18
  type: Literal['transaction_processing']
19
19
 
20
- class StateChangeCauseViewReceiptHash(BaseModel):
20
+ class StateChangeCauseViewActionReceiptProcessingStarted(BaseModel):
21
21
  receipt_hash: CryptoHash
22
22
  type: Literal['action_receipt_processing_started']
23
23
 
24
- class StateChangeCauseViewReceiptHashOption(BaseModel):
24
+ class StateChangeCauseViewActionReceiptGasReward(BaseModel):
25
25
  receipt_hash: CryptoHash
26
26
  type: Literal['action_receipt_gas_reward']
27
27
 
28
- class StateChangeCauseViewReceiptHash1(BaseModel):
28
+ class StateChangeCauseViewReceiptProcessing(BaseModel):
29
29
  receipt_hash: CryptoHash
30
30
  type: Literal['receipt_processing']
31
31
 
32
- class StateChangeCauseViewReceiptHash2(BaseModel):
32
+ class StateChangeCauseViewPostponedReceipt(BaseModel):
33
33
  receipt_hash: CryptoHash
34
34
  type: Literal['postponed_receipt']
35
35
 
36
- class StateChangeCauseViewType1(BaseModel):
36
+ class StateChangeCauseViewUpdatedDelayedReceipts(BaseModel):
37
37
  type: Literal['updated_delayed_receipts']
38
38
 
39
- class StateChangeCauseViewType2(BaseModel):
39
+ class StateChangeCauseViewValidatorAccountsUpdate(BaseModel):
40
40
  type: Literal['validator_accounts_update']
41
41
 
42
- class StateChangeCauseViewType3(BaseModel):
42
+ class StateChangeCauseViewMigration(BaseModel):
43
43
  type: Literal['migration']
44
44
 
45
- class StateChangeCauseViewType4(BaseModel):
45
+ class StateChangeCauseViewBandwidthSchedulerStateUpdate(BaseModel):
46
46
  type: Literal['bandwidth_scheduler_state_update']
47
47
 
48
- class StateChangeCauseView(RootModel[Union[StateChangeCauseViewType, StateChangeCauseViewTypeOption, StateChangeCauseViewTxHash, StateChangeCauseViewReceiptHash, StateChangeCauseViewReceiptHashOption, StateChangeCauseViewReceiptHash1, StateChangeCauseViewReceiptHash2, StateChangeCauseViewType1, StateChangeCauseViewType2, StateChangeCauseViewType3, StateChangeCauseViewType4]]):
48
+ class StateChangeCauseView(RootModel[Union[StateChangeCauseViewNotWritableToDisk, StateChangeCauseViewInitialState, StateChangeCauseViewTransactionProcessing, StateChangeCauseViewActionReceiptProcessingStarted, StateChangeCauseViewActionReceiptGasReward, StateChangeCauseViewReceiptProcessing, StateChangeCauseViewPostponedReceipt, StateChangeCauseViewUpdatedDelayedReceipts, StateChangeCauseViewValidatorAccountsUpdate, StateChangeCauseViewMigration, StateChangeCauseViewBandwidthSchedulerStateUpdate]]):
49
49
  pass
50
50
 
@@ -10,22 +10,22 @@ from typing import Literal
10
10
  from typing import Union
11
11
 
12
12
 
13
- class StateChangeKindViewAccountId(BaseModel):
13
+ class StateChangeKindViewAccountTouched(BaseModel):
14
14
  account_id: AccountId
15
15
  type: Literal['account_touched']
16
16
 
17
- class StateChangeKindViewAccountIdOption(BaseModel):
17
+ class StateChangeKindViewAccessKeyTouched(BaseModel):
18
18
  account_id: AccountId
19
19
  type: Literal['access_key_touched']
20
20
 
21
- class StateChangeKindViewAccountId1(BaseModel):
21
+ class StateChangeKindViewDataTouched(BaseModel):
22
22
  account_id: AccountId
23
23
  type: Literal['data_touched']
24
24
 
25
- class StateChangeKindViewAccountId2(BaseModel):
25
+ class StateChangeKindViewContractCodeTouched(BaseModel):
26
26
  account_id: AccountId
27
27
  type: Literal['contract_code_touched']
28
28
 
29
- class StateChangeKindView(RootModel[Union[StateChangeKindViewAccountId, StateChangeKindViewAccountIdOption, StateChangeKindViewAccountId1, StateChangeKindViewAccountId2]]):
29
+ class StateChangeKindView(RootModel[Union[StateChangeKindViewAccountTouched, StateChangeKindViewAccessKeyTouched, StateChangeKindViewDataTouched, StateChangeKindViewContractCodeTouched]]):
30
30
  pass
31
31
 
@@ -14,7 +14,7 @@ from typing import Literal
14
14
  from typing import Union
15
15
 
16
16
 
17
- class StateChangeWithCauseViewChangePayload(BaseModel):
17
+ class StateChangeWithCauseViewAccountUpdateChange(BaseModel):
18
18
  account_id: AccountId
19
19
  amount: NearToken
20
20
  code_hash: CryptoHash
@@ -25,105 +25,105 @@ class StateChangeWithCauseViewChangePayload(BaseModel):
25
25
  storage_paid_at: conint(ge=0, le=18446744073709551615) = 0
26
26
  storage_usage: conint(ge=0, le=18446744073709551615)
27
27
 
28
- class StateChangeWithCauseViewChange(BaseModel):
28
+ class StateChangeWithCauseViewAccountUpdate(BaseModel):
29
29
  cause: StateChangeCauseView
30
30
  # A view of the account
31
- change: StateChangeWithCauseViewChangePayload
31
+ change: StateChangeWithCauseViewAccountUpdateChange
32
32
  type: Literal['account_update']
33
33
 
34
- class StateChangeWithCauseViewChangeOptionChange(BaseModel):
34
+ class StateChangeWithCauseViewAccountDeletionChange(BaseModel):
35
35
  account_id: AccountId
36
36
 
37
- class StateChangeWithCauseViewChangeOption(BaseModel):
37
+ class StateChangeWithCauseViewAccountDeletion(BaseModel):
38
38
  cause: StateChangeCauseView
39
- change: StateChangeWithCauseViewChangeOptionChange
39
+ change: StateChangeWithCauseViewAccountDeletionChange
40
40
  type: Literal['account_deletion']
41
41
 
42
- class StateChangeWithCauseViewChange1Change(BaseModel):
42
+ class StateChangeWithCauseViewAccessKeyUpdateChange(BaseModel):
43
43
  access_key: AccessKeyView
44
44
  account_id: AccountId
45
45
  public_key: PublicKey
46
46
 
47
- class StateChangeWithCauseViewChange1(BaseModel):
47
+ class StateChangeWithCauseViewAccessKeyUpdate(BaseModel):
48
48
  cause: StateChangeCauseView
49
- change: StateChangeWithCauseViewChange1Change
49
+ change: StateChangeWithCauseViewAccessKeyUpdateChange
50
50
  type: Literal['access_key_update']
51
51
 
52
- class StateChangeWithCauseViewChange2Change(BaseModel):
52
+ class StateChangeWithCauseViewAccessKeyDeletionChange(BaseModel):
53
53
  account_id: AccountId
54
54
  public_key: PublicKey
55
55
 
56
- class StateChangeWithCauseViewChange2(BaseModel):
56
+ class StateChangeWithCauseViewAccessKeyDeletion(BaseModel):
57
57
  cause: StateChangeCauseView
58
- change: StateChangeWithCauseViewChange2Change
58
+ change: StateChangeWithCauseViewAccessKeyDeletionChange
59
59
  type: Literal['access_key_deletion']
60
60
 
61
- class StateChangeWithCauseViewChange3Change(BaseModel):
61
+ class StateChangeWithCauseViewGasKeyUpdateChange(BaseModel):
62
62
  account_id: AccountId
63
63
  gas_key: GasKey
64
64
  public_key: PublicKey
65
65
 
66
- class StateChangeWithCauseViewChange3(BaseModel):
66
+ class StateChangeWithCauseViewGasKeyUpdate(BaseModel):
67
67
  cause: StateChangeCauseView
68
- change: StateChangeWithCauseViewChange3Change
68
+ change: StateChangeWithCauseViewGasKeyUpdateChange
69
69
  type: Literal['gas_key_update']
70
70
 
71
- class StateChangeWithCauseViewChange4Change(BaseModel):
71
+ class StateChangeWithCauseViewGasKeyNonceUpdateChange(BaseModel):
72
72
  account_id: AccountId
73
73
  index: conint(ge=0, le=4294967295)
74
74
  nonce: conint(ge=0, le=18446744073709551615)
75
75
  public_key: PublicKey
76
76
 
77
- class StateChangeWithCauseViewChange4(BaseModel):
77
+ class StateChangeWithCauseViewGasKeyNonceUpdate(BaseModel):
78
78
  cause: StateChangeCauseView
79
- change: StateChangeWithCauseViewChange4Change
79
+ change: StateChangeWithCauseViewGasKeyNonceUpdateChange
80
80
  type: Literal['gas_key_nonce_update']
81
81
 
82
- class StateChangeWithCauseViewChange5Change(BaseModel):
82
+ class StateChangeWithCauseViewGasKeyDeletionChange(BaseModel):
83
83
  account_id: AccountId
84
84
  public_key: PublicKey
85
85
 
86
- class StateChangeWithCauseViewChange5(BaseModel):
86
+ class StateChangeWithCauseViewGasKeyDeletion(BaseModel):
87
87
  cause: StateChangeCauseView
88
- change: StateChangeWithCauseViewChange5Change
88
+ change: StateChangeWithCauseViewGasKeyDeletionChange
89
89
  type: Literal['gas_key_deletion']
90
90
 
91
- class StateChangeWithCauseViewChange6Change(BaseModel):
91
+ class StateChangeWithCauseViewDataUpdateChange(BaseModel):
92
92
  account_id: AccountId
93
93
  key_base64: StoreKey
94
94
  value_base64: StoreValue
95
95
 
96
- class StateChangeWithCauseViewChange6(BaseModel):
96
+ class StateChangeWithCauseViewDataUpdate(BaseModel):
97
97
  cause: StateChangeCauseView
98
- change: StateChangeWithCauseViewChange6Change
98
+ change: StateChangeWithCauseViewDataUpdateChange
99
99
  type: Literal['data_update']
100
100
 
101
- class StateChangeWithCauseViewChange7Change(BaseModel):
101
+ class StateChangeWithCauseViewDataDeletionChange(BaseModel):
102
102
  account_id: AccountId
103
103
  key_base64: StoreKey
104
104
 
105
- class StateChangeWithCauseViewChange7(BaseModel):
105
+ class StateChangeWithCauseViewDataDeletion(BaseModel):
106
106
  cause: StateChangeCauseView
107
- change: StateChangeWithCauseViewChange7Change
107
+ change: StateChangeWithCauseViewDataDeletionChange
108
108
  type: Literal['data_deletion']
109
109
 
110
- class StateChangeWithCauseViewChange8Change(BaseModel):
110
+ class StateChangeWithCauseViewContractCodeUpdateChange(BaseModel):
111
111
  account_id: AccountId
112
112
  code_base64: str
113
113
 
114
- class StateChangeWithCauseViewChange8(BaseModel):
114
+ class StateChangeWithCauseViewContractCodeUpdate(BaseModel):
115
115
  cause: StateChangeCauseView
116
- change: StateChangeWithCauseViewChange8Change
116
+ change: StateChangeWithCauseViewContractCodeUpdateChange
117
117
  type: Literal['contract_code_update']
118
118
 
119
- class StateChangeWithCauseViewChange9Change(BaseModel):
119
+ class StateChangeWithCauseViewContractCodeDeletionChange(BaseModel):
120
120
  account_id: AccountId
121
121
 
122
- class StateChangeWithCauseViewChange9(BaseModel):
122
+ class StateChangeWithCauseViewContractCodeDeletion(BaseModel):
123
123
  cause: StateChangeCauseView
124
- change: StateChangeWithCauseViewChange9Change
124
+ change: StateChangeWithCauseViewContractCodeDeletionChange
125
125
  type: Literal['contract_code_deletion']
126
126
 
127
- class StateChangeWithCauseView(RootModel[Union[StateChangeWithCauseViewChange, StateChangeWithCauseViewChangeOption, StateChangeWithCauseViewChange1, StateChangeWithCauseViewChange2, StateChangeWithCauseViewChange3, StateChangeWithCauseViewChange4, StateChangeWithCauseViewChange5, StateChangeWithCauseViewChange6, StateChangeWithCauseViewChange7, StateChangeWithCauseViewChange8, StateChangeWithCauseViewChange9]]):
127
+ class StateChangeWithCauseView(RootModel[Union[StateChangeWithCauseViewAccountUpdate, StateChangeWithCauseViewAccountDeletion, StateChangeWithCauseViewAccessKeyUpdate, StateChangeWithCauseViewAccessKeyDeletion, StateChangeWithCauseViewGasKeyUpdate, StateChangeWithCauseViewGasKeyNonceUpdate, StateChangeWithCauseViewGasKeyDeletion, StateChangeWithCauseViewDataUpdate, StateChangeWithCauseViewDataDeletion, StateChangeWithCauseViewContractCodeUpdate, StateChangeWithCauseViewContractCodeDeletion]]):
128
128
  pass
129
129
 
@@ -1,10 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: near-jsonrpc-client
3
- Version: 1.0.5
4
- Summary: A typed Python client for the NEAR JSON-RPC API with Pydantic models and async HTTP support
5
- Requires-Python: >=3.9
6
- License-File: LICENSE
7
- Requires-Dist: httpx
8
- Requires-Dist: pydantic>=2
9
- Dynamic: license-file
10
- Dynamic: requires-python