near-jsonrpc-client 1.0.5__py3-none-any.whl → 1.0.13__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/base_client.py +5 -0
- near_jsonrpc_client-1.0.13.dist-info/METADATA +232 -0
- {near_jsonrpc_client-1.0.5.dist-info → near_jsonrpc_client-1.0.13.dist-info}/RECORD +17 -17
- near_jsonrpc_models/__init__.py +153 -153
- near_jsonrpc_models/bandwidth_requests.py +2 -2
- near_jsonrpc_models/deterministic_account_state_init.py +2 -2
- near_jsonrpc_models/rpc_chunk_request.py +3 -3
- near_jsonrpc_models/rpc_congestion_level_request.py +3 -3
- near_jsonrpc_models/rpc_light_client_execution_proof_request.py +3 -3
- near_jsonrpc_models/rpc_transaction_status_request.py +3 -3
- near_jsonrpc_models/shard_layout.py +5 -5
- near_jsonrpc_models/state_change_cause_view.py +12 -12
- near_jsonrpc_models/state_change_kind_view.py +5 -5
- near_jsonrpc_models/state_change_with_cause_view.py +34 -34
- near_jsonrpc_client-1.0.5.dist-info/METADATA +0 -10
- {near_jsonrpc_client-1.0.5.dist-info → near_jsonrpc_client-1.0.13.dist-info}/WHEEL +0 -0
- {near_jsonrpc_client-1.0.5.dist-info → near_jsonrpc_client-1.0.13.dist-info}/licenses/LICENSE +0 -0
- {near_jsonrpc_client-1.0.5.dist-info → near_jsonrpc_client-1.0.13.dist-info}/top_level.txt +0 -0
|
@@ -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.13
|
|
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
|
+
[](https://github.com/hosseinkarami-dev/near-jsonrpc-client-py/actions)
|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
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=
|
|
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.
|
|
9
|
-
near_jsonrpc_models/__init__.py,sha256=
|
|
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
|
|
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=
|
|
33
|
+
near_jsonrpc_models/bandwidth_requests.py,sha256=XtWGaegGmWLFqt-E5fzviT3Prx-DrEF_novm9Fr8thg,481
|
|
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=
|
|
64
|
+
near_jsonrpc_models/deterministic_account_state_init.py,sha256=wfWRPE11dW-4mfb97mMfvsr-J0laoHPDjqVqd00Jxek,445
|
|
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=
|
|
229
|
+
near_jsonrpc_models/rpc_chunk_request.py,sha256=XTK7v6g4yQzDSILlER8KY4Z_JiKhMofv6Cls2nzGrWw,512
|
|
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=
|
|
234
|
+
near_jsonrpc_models/rpc_congestion_level_request.py,sha256=akAqCov8Q0nVvGyME8fIDVtehBFCAarEJNgMQrSwkDs,562
|
|
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=
|
|
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=
|
|
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
|
|
@@ -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=
|
|
309
|
+
near_jsonrpc_models/shard_layout.py,sha256=LCUIpBIUgNMdoMHOFlZ9-OJUmHswoq3IcifOCFNZiIk,1323
|
|
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
|
|
@@ -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=
|
|
322
|
-
near_jsonrpc_models/state_change_kind_view.py,sha256=
|
|
323
|
-
near_jsonrpc_models/state_change_with_cause_view.py,sha256=
|
|
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.
|
|
355
|
-
near_jsonrpc_client-1.0.
|
|
356
|
-
near_jsonrpc_client-1.0.
|
|
357
|
-
near_jsonrpc_client-1.0.
|
|
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,,
|
near_jsonrpc_models/__init__.py
CHANGED
|
@@ -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
|
|
426
|
-
from .rpc_chunk_request import
|
|
425
|
+
from .rpc_chunk_request import RpcChunkRequestBlockShardId1
|
|
426
|
+
from .rpc_chunk_request import RpcChunkRequestChunkHash1
|
|
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
|
|
500
|
-
from .state_change_with_cause_view import
|
|
501
|
-
from .state_change_with_cause_view import
|
|
502
|
-
from .state_change_with_cause_view import
|
|
503
|
-
from .state_change_with_cause_view import
|
|
504
|
-
from .state_change_with_cause_view import
|
|
505
|
-
from .state_change_with_cause_view import
|
|
506
|
-
from .state_change_with_cause_view import
|
|
507
|
-
from .state_change_with_cause_view import
|
|
508
|
-
from .state_change_with_cause_view import
|
|
509
|
-
from .state_change_with_cause_view import
|
|
510
|
-
from .state_change_with_cause_view import
|
|
511
|
-
from .state_change_with_cause_view import
|
|
512
|
-
from .state_change_with_cause_view import
|
|
513
|
-
from .state_change_with_cause_view import
|
|
514
|
-
from .state_change_with_cause_view import
|
|
515
|
-
from .state_change_with_cause_view import
|
|
516
|
-
from .state_change_with_cause_view import
|
|
517
|
-
from .state_change_with_cause_view import
|
|
518
|
-
from .state_change_with_cause_view import
|
|
519
|
-
from .state_change_with_cause_view import
|
|
520
|
-
from .state_change_with_cause_view import
|
|
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
|
|
638
|
-
from .state_change_kind_view import
|
|
639
|
-
from .state_change_kind_view import
|
|
640
|
-
from .state_change_kind_view import
|
|
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
|
|
@@ -840,10 +840,10 @@ 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
|
|
843
|
+
from .deterministic_account_state_init import DeterministicAccountStateInitV2
|
|
844
844
|
from .deterministic_account_state_init import DeterministicAccountStateInit
|
|
845
|
-
from .rpc_transaction_status_request import
|
|
846
|
-
from .rpc_transaction_status_request import
|
|
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
|
|
@@ -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
|
|
916
|
+
from .bandwidth_requests import BandwidthRequestsV2
|
|
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
|
|
933
|
-
from .shard_layout import
|
|
934
|
-
from .shard_layout import
|
|
935
|
-
from .shard_layout import
|
|
932
|
+
from .shard_layout import ShardLayoutV4
|
|
933
|
+
from .shard_layout import ShardLayoutV5
|
|
934
|
+
from .shard_layout import ShardLayoutV6
|
|
935
|
+
from .shard_layout import ShardLayoutV7
|
|
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
|
|
1055
|
-
from .rpc_congestion_level_request import
|
|
1054
|
+
from .rpc_congestion_level_request import RpcCongestionLevelRequestBlockShardId1
|
|
1055
|
+
from .rpc_congestion_level_request import RpcCongestionLevelRequestChunkHash1
|
|
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
|
|
1076
|
-
from .state_change_cause_view import
|
|
1077
|
-
from .state_change_cause_view import
|
|
1078
|
-
from .state_change_cause_view import
|
|
1079
|
-
from .state_change_cause_view import
|
|
1080
|
-
from .state_change_cause_view import
|
|
1081
|
-
from .state_change_cause_view import
|
|
1082
|
-
from .state_change_cause_view import
|
|
1083
|
-
from .state_change_cause_view import
|
|
1084
|
-
from .state_change_cause_view import
|
|
1085
|
-
from .state_change_cause_view import
|
|
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
|
|
1103
|
-
from .rpc_light_client_execution_proof_request import
|
|
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
|
|
@@ -1265,7 +1265,7 @@ __all__ = [
|
|
|
1265
1265
|
'BandwidthRequestBitmap',
|
|
1266
1266
|
'BandwidthRequests',
|
|
1267
1267
|
'BandwidthRequestsV1',
|
|
1268
|
-
'
|
|
1268
|
+
'BandwidthRequestsV2',
|
|
1269
1269
|
'BlockHeaderInnerLiteView',
|
|
1270
1270
|
'BlockHeaderView',
|
|
1271
1271
|
'BlockId',
|
|
@@ -1307,7 +1307,7 @@ __all__ = [
|
|
|
1307
1307
|
'DetailedDebugStatus',
|
|
1308
1308
|
'DeterministicAccountStateInit',
|
|
1309
1309
|
'DeterministicAccountStateInitV1',
|
|
1310
|
-
'
|
|
1310
|
+
'DeterministicAccountStateInitV2',
|
|
1311
1311
|
'DeterministicStateInitAction',
|
|
1312
1312
|
'Direction',
|
|
1313
1313
|
'DumpConfig',
|
|
@@ -1794,8 +1794,8 @@ __all__ = [
|
|
|
1794
1794
|
'RpcChunkErrorUnknownChunk',
|
|
1795
1795
|
'RpcChunkErrorUnknownChunkInfo',
|
|
1796
1796
|
'RpcChunkRequest',
|
|
1797
|
-
'
|
|
1798
|
-
'
|
|
1797
|
+
'RpcChunkRequestBlockShardId1',
|
|
1798
|
+
'RpcChunkRequestChunkHash1',
|
|
1799
1799
|
'RpcChunkResponse',
|
|
1800
1800
|
'RpcClientConfigError',
|
|
1801
1801
|
'RpcClientConfigErrorInternalError',
|
|
@@ -1803,8 +1803,8 @@ __all__ = [
|
|
|
1803
1803
|
'RpcClientConfigRequest',
|
|
1804
1804
|
'RpcClientConfigResponse',
|
|
1805
1805
|
'RpcCongestionLevelRequest',
|
|
1806
|
-
'
|
|
1807
|
-
'
|
|
1806
|
+
'RpcCongestionLevelRequestBlockShardId1',
|
|
1807
|
+
'RpcCongestionLevelRequestChunkHash1',
|
|
1808
1808
|
'RpcCongestionLevelResponse',
|
|
1809
1809
|
'RpcGasPriceError',
|
|
1810
1810
|
'RpcGasPriceErrorInternalError',
|
|
@@ -1818,8 +1818,8 @@ __all__ = [
|
|
|
1818
1818
|
'RpcLightClientBlockProofRequest',
|
|
1819
1819
|
'RpcLightClientBlockProofResponse',
|
|
1820
1820
|
'RpcLightClientExecutionProofRequest',
|
|
1821
|
-
'
|
|
1822
|
-
'
|
|
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
|
-
'
|
|
2005
|
-
'
|
|
2004
|
+
'RpcTransactionStatusRequestSenderAccountIdTxHash',
|
|
2005
|
+
'RpcTransactionStatusRequestSignedTxBase64',
|
|
2006
2006
|
'RpcValidatorError',
|
|
2007
2007
|
'RpcValidatorErrorInternalError',
|
|
2008
2008
|
'RpcValidatorErrorInternalErrorInfo',
|
|
@@ -2125,13 +2125,13 @@ __all__ = [
|
|
|
2125
2125
|
'ShardId',
|
|
2126
2126
|
'ShardLayout',
|
|
2127
2127
|
'ShardLayoutV0',
|
|
2128
|
-
'ShardLayoutV0Option',
|
|
2129
2128
|
'ShardLayoutV1',
|
|
2130
|
-
'ShardLayoutV1Option',
|
|
2131
2129
|
'ShardLayoutV2',
|
|
2132
|
-
'ShardLayoutV2Option',
|
|
2133
2130
|
'ShardLayoutV3',
|
|
2134
|
-
'
|
|
2131
|
+
'ShardLayoutV4',
|
|
2132
|
+
'ShardLayoutV5',
|
|
2133
|
+
'ShardLayoutV6',
|
|
2134
|
+
'ShardLayoutV7',
|
|
2135
2135
|
'ShardUId',
|
|
2136
2136
|
'Signature',
|
|
2137
2137
|
'SignedDelegateAction',
|
|
@@ -2140,45 +2140,45 @@ __all__ = [
|
|
|
2140
2140
|
'SlashedValidator',
|
|
2141
2141
|
'StakeAction',
|
|
2142
2142
|
'StateChangeCauseView',
|
|
2143
|
-
'
|
|
2144
|
-
'
|
|
2145
|
-
'
|
|
2146
|
-
'
|
|
2147
|
-
'
|
|
2148
|
-
'
|
|
2149
|
-
'
|
|
2150
|
-
'
|
|
2151
|
-
'
|
|
2152
|
-
'
|
|
2153
|
-
'
|
|
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
|
-
'
|
|
2156
|
-
'
|
|
2157
|
-
'
|
|
2158
|
-
'
|
|
2155
|
+
'StateChangeKindViewAccessKeyTouched',
|
|
2156
|
+
'StateChangeKindViewAccountTouched',
|
|
2157
|
+
'StateChangeKindViewContractCodeTouched',
|
|
2158
|
+
'StateChangeKindViewDataTouched',
|
|
2159
2159
|
'StateChangeWithCauseView',
|
|
2160
|
-
'
|
|
2161
|
-
'
|
|
2162
|
-
'
|
|
2163
|
-
'
|
|
2164
|
-
'
|
|
2165
|
-
'
|
|
2166
|
-
'
|
|
2167
|
-
'
|
|
2168
|
-
'
|
|
2169
|
-
'
|
|
2170
|
-
'
|
|
2171
|
-
'
|
|
2172
|
-
'
|
|
2173
|
-
'
|
|
2174
|
-
'
|
|
2175
|
-
'
|
|
2176
|
-
'
|
|
2177
|
-
'
|
|
2178
|
-
'
|
|
2179
|
-
'
|
|
2180
|
-
'
|
|
2181
|
-
'
|
|
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
|
-
'
|
|
2667
|
-
'
|
|
2666
|
+
'RpcChunkRequestBlockShardId1': 'rpc_chunk_request',
|
|
2667
|
+
'RpcChunkRequestChunkHash1': '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
|
-
'
|
|
2741
|
-
'
|
|
2742
|
-
'
|
|
2743
|
-
'
|
|
2744
|
-
'
|
|
2745
|
-
'
|
|
2746
|
-
'
|
|
2747
|
-
'
|
|
2748
|
-
'
|
|
2749
|
-
'
|
|
2750
|
-
'
|
|
2751
|
-
'
|
|
2752
|
-
'
|
|
2753
|
-
'
|
|
2754
|
-
'
|
|
2755
|
-
'
|
|
2756
|
-
'
|
|
2757
|
-
'
|
|
2758
|
-
'
|
|
2759
|
-
'
|
|
2760
|
-
'
|
|
2761
|
-
'
|
|
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
|
-
'
|
|
2879
|
-
'
|
|
2880
|
-
'
|
|
2881
|
-
'
|
|
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',
|
|
@@ -3081,10 +3081,10 @@ _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
|
-
'
|
|
3084
|
+
'DeterministicAccountStateInitV2': 'deterministic_account_state_init',
|
|
3085
3085
|
'DeterministicAccountStateInit': 'deterministic_account_state_init',
|
|
3086
|
-
'
|
|
3087
|
-
'
|
|
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',
|
|
@@ -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
|
-
'
|
|
3157
|
+
'BandwidthRequestsV2': '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
|
-
'
|
|
3174
|
-
'
|
|
3175
|
-
'
|
|
3176
|
-
'
|
|
3173
|
+
'ShardLayoutV4': 'shard_layout',
|
|
3174
|
+
'ShardLayoutV5': 'shard_layout',
|
|
3175
|
+
'ShardLayoutV6': 'shard_layout',
|
|
3176
|
+
'ShardLayoutV7': '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
|
-
'
|
|
3296
|
-
'
|
|
3295
|
+
'RpcCongestionLevelRequestBlockShardId1': 'rpc_congestion_level_request',
|
|
3296
|
+
'RpcCongestionLevelRequestChunkHash1': '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
|
-
'
|
|
3317
|
-
'
|
|
3318
|
-
'
|
|
3319
|
-
'
|
|
3320
|
-
'
|
|
3321
|
-
'
|
|
3322
|
-
'
|
|
3323
|
-
'
|
|
3324
|
-
'
|
|
3325
|
-
'
|
|
3326
|
-
'
|
|
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
|
-
'
|
|
3344
|
-
'
|
|
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',
|
|
@@ -8,9 +8,9 @@ from pydantic import RootModel
|
|
|
8
8
|
from typing import Union
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BandwidthRequestsV2(StrictBaseModel):
|
|
12
12
|
V1: BandwidthRequestsV1
|
|
13
13
|
|
|
14
|
-
class BandwidthRequests(RootModel[Union[
|
|
14
|
+
class BandwidthRequests(RootModel[Union[BandwidthRequestsV2]]):
|
|
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
|
|
8
|
+
class DeterministicAccountStateInitV2(StrictBaseModel):
|
|
9
9
|
V1: DeterministicAccountStateInitV1
|
|
10
10
|
|
|
11
|
-
class DeterministicAccountStateInit(RootModel[Union[
|
|
11
|
+
class DeterministicAccountStateInit(RootModel[Union[DeterministicAccountStateInitV2]]):
|
|
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
|
|
9
|
+
class RpcChunkRequestBlockShardId1(BaseModel):
|
|
10
10
|
block_id: BlockId
|
|
11
11
|
shard_id: ShardId
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class RpcChunkRequestChunkHash1(BaseModel):
|
|
14
14
|
chunk_id: CryptoHash
|
|
15
15
|
|
|
16
|
-
class RpcChunkRequest(RootModel[Union[
|
|
16
|
+
class RpcChunkRequest(RootModel[Union[RpcChunkRequestBlockShardId1, RpcChunkRequestChunkHash1]]):
|
|
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
|
|
9
|
+
class RpcCongestionLevelRequestBlockShardId1(BaseModel):
|
|
10
10
|
block_id: BlockId
|
|
11
11
|
shard_id: ShardId
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class RpcCongestionLevelRequestChunkHash1(BaseModel):
|
|
14
14
|
chunk_id: CryptoHash
|
|
15
15
|
|
|
16
|
-
class RpcCongestionLevelRequest(RootModel[Union[
|
|
16
|
+
class RpcCongestionLevelRequest(RootModel[Union[RpcCongestionLevelRequestBlockShardId1, RpcCongestionLevelRequestChunkHash1]]):
|
|
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
|
|
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
|
|
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[
|
|
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
|
|
10
|
+
class RpcTransactionStatusRequestSignedTxBase64(BaseModel):
|
|
11
11
|
wait_until: TxExecutionStatus = 'EXECUTED_OPTIMISTIC'
|
|
12
12
|
signed_tx_base64: SignedTransaction
|
|
13
13
|
|
|
14
|
-
class
|
|
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[
|
|
19
|
+
class RpcTransactionStatusRequest(RootModel[Union[RpcTransactionStatusRequestSignedTxBase64, RpcTransactionStatusRequestSenderAccountIdTxHash]]):
|
|
20
20
|
pass
|
|
21
21
|
|
|
@@ -17,18 +17,18 @@ from pydantic import RootModel
|
|
|
17
17
|
from typing import Union
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class ShardLayoutV4(StrictBaseModel):
|
|
21
21
|
V0: ShardLayoutV0
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class ShardLayoutV5(StrictBaseModel):
|
|
24
24
|
V1: ShardLayoutV1
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class ShardLayoutV6(StrictBaseModel):
|
|
27
27
|
V2: ShardLayoutV2
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class ShardLayoutV7(StrictBaseModel):
|
|
30
30
|
V3: ShardLayoutV3
|
|
31
31
|
|
|
32
|
-
class ShardLayout(RootModel[Union[
|
|
32
|
+
class ShardLayout(RootModel[Union[ShardLayoutV4, ShardLayoutV5, ShardLayoutV6, ShardLayoutV7]]):
|
|
33
33
|
pass
|
|
34
34
|
|
|
@@ -7,44 +7,44 @@ from typing import Literal
|
|
|
7
7
|
from typing import Union
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class StateChangeCauseViewNotWritableToDisk(BaseModel):
|
|
11
11
|
type: Literal['not_writable_to_disk']
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class StateChangeCauseViewInitialState(BaseModel):
|
|
14
14
|
type: Literal['initial_state']
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class StateChangeCauseViewTransactionProcessing(BaseModel):
|
|
17
17
|
tx_hash: CryptoHash
|
|
18
18
|
type: Literal['transaction_processing']
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class StateChangeCauseViewActionReceiptProcessingStarted(BaseModel):
|
|
21
21
|
receipt_hash: CryptoHash
|
|
22
22
|
type: Literal['action_receipt_processing_started']
|
|
23
23
|
|
|
24
|
-
class
|
|
24
|
+
class StateChangeCauseViewActionReceiptGasReward(BaseModel):
|
|
25
25
|
receipt_hash: CryptoHash
|
|
26
26
|
type: Literal['action_receipt_gas_reward']
|
|
27
27
|
|
|
28
|
-
class
|
|
28
|
+
class StateChangeCauseViewReceiptProcessing(BaseModel):
|
|
29
29
|
receipt_hash: CryptoHash
|
|
30
30
|
type: Literal['receipt_processing']
|
|
31
31
|
|
|
32
|
-
class
|
|
32
|
+
class StateChangeCauseViewPostponedReceipt(BaseModel):
|
|
33
33
|
receipt_hash: CryptoHash
|
|
34
34
|
type: Literal['postponed_receipt']
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class StateChangeCauseViewUpdatedDelayedReceipts(BaseModel):
|
|
37
37
|
type: Literal['updated_delayed_receipts']
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class StateChangeCauseViewValidatorAccountsUpdate(BaseModel):
|
|
40
40
|
type: Literal['validator_accounts_update']
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class StateChangeCauseViewMigration(BaseModel):
|
|
43
43
|
type: Literal['migration']
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class StateChangeCauseViewBandwidthSchedulerStateUpdate(BaseModel):
|
|
46
46
|
type: Literal['bandwidth_scheduler_state_update']
|
|
47
47
|
|
|
48
|
-
class StateChangeCauseView(RootModel[Union[
|
|
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
|
|
13
|
+
class StateChangeKindViewAccountTouched(BaseModel):
|
|
14
14
|
account_id: AccountId
|
|
15
15
|
type: Literal['account_touched']
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class StateChangeKindViewAccessKeyTouched(BaseModel):
|
|
18
18
|
account_id: AccountId
|
|
19
19
|
type: Literal['access_key_touched']
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class StateChangeKindViewDataTouched(BaseModel):
|
|
22
22
|
account_id: AccountId
|
|
23
23
|
type: Literal['data_touched']
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class StateChangeKindViewContractCodeTouched(BaseModel):
|
|
26
26
|
account_id: AccountId
|
|
27
27
|
type: Literal['contract_code_touched']
|
|
28
28
|
|
|
29
|
-
class StateChangeKindView(RootModel[Union[
|
|
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
|
|
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
|
|
28
|
+
class StateChangeWithCauseViewAccountUpdate(BaseModel):
|
|
29
29
|
cause: StateChangeCauseView
|
|
30
30
|
# A view of the account
|
|
31
|
-
change:
|
|
31
|
+
change: StateChangeWithCauseViewAccountUpdateChange
|
|
32
32
|
type: Literal['account_update']
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class StateChangeWithCauseViewAccountDeletionChange(BaseModel):
|
|
35
35
|
account_id: AccountId
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class StateChangeWithCauseViewAccountDeletion(BaseModel):
|
|
38
38
|
cause: StateChangeCauseView
|
|
39
|
-
change:
|
|
39
|
+
change: StateChangeWithCauseViewAccountDeletionChange
|
|
40
40
|
type: Literal['account_deletion']
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class StateChangeWithCauseViewAccessKeyUpdateChange(BaseModel):
|
|
43
43
|
access_key: AccessKeyView
|
|
44
44
|
account_id: AccountId
|
|
45
45
|
public_key: PublicKey
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class StateChangeWithCauseViewAccessKeyUpdate(BaseModel):
|
|
48
48
|
cause: StateChangeCauseView
|
|
49
|
-
change:
|
|
49
|
+
change: StateChangeWithCauseViewAccessKeyUpdateChange
|
|
50
50
|
type: Literal['access_key_update']
|
|
51
51
|
|
|
52
|
-
class
|
|
52
|
+
class StateChangeWithCauseViewAccessKeyDeletionChange(BaseModel):
|
|
53
53
|
account_id: AccountId
|
|
54
54
|
public_key: PublicKey
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class StateChangeWithCauseViewAccessKeyDeletion(BaseModel):
|
|
57
57
|
cause: StateChangeCauseView
|
|
58
|
-
change:
|
|
58
|
+
change: StateChangeWithCauseViewAccessKeyDeletionChange
|
|
59
59
|
type: Literal['access_key_deletion']
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class StateChangeWithCauseViewGasKeyUpdateChange(BaseModel):
|
|
62
62
|
account_id: AccountId
|
|
63
63
|
gas_key: GasKey
|
|
64
64
|
public_key: PublicKey
|
|
65
65
|
|
|
66
|
-
class
|
|
66
|
+
class StateChangeWithCauseViewGasKeyUpdate(BaseModel):
|
|
67
67
|
cause: StateChangeCauseView
|
|
68
|
-
change:
|
|
68
|
+
change: StateChangeWithCauseViewGasKeyUpdateChange
|
|
69
69
|
type: Literal['gas_key_update']
|
|
70
70
|
|
|
71
|
-
class
|
|
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
|
|
77
|
+
class StateChangeWithCauseViewGasKeyNonceUpdate(BaseModel):
|
|
78
78
|
cause: StateChangeCauseView
|
|
79
|
-
change:
|
|
79
|
+
change: StateChangeWithCauseViewGasKeyNonceUpdateChange
|
|
80
80
|
type: Literal['gas_key_nonce_update']
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class StateChangeWithCauseViewGasKeyDeletionChange(BaseModel):
|
|
83
83
|
account_id: AccountId
|
|
84
84
|
public_key: PublicKey
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class StateChangeWithCauseViewGasKeyDeletion(BaseModel):
|
|
87
87
|
cause: StateChangeCauseView
|
|
88
|
-
change:
|
|
88
|
+
change: StateChangeWithCauseViewGasKeyDeletionChange
|
|
89
89
|
type: Literal['gas_key_deletion']
|
|
90
90
|
|
|
91
|
-
class
|
|
91
|
+
class StateChangeWithCauseViewDataUpdateChange(BaseModel):
|
|
92
92
|
account_id: AccountId
|
|
93
93
|
key_base64: StoreKey
|
|
94
94
|
value_base64: StoreValue
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class StateChangeWithCauseViewDataUpdate(BaseModel):
|
|
97
97
|
cause: StateChangeCauseView
|
|
98
|
-
change:
|
|
98
|
+
change: StateChangeWithCauseViewDataUpdateChange
|
|
99
99
|
type: Literal['data_update']
|
|
100
100
|
|
|
101
|
-
class
|
|
101
|
+
class StateChangeWithCauseViewDataDeletionChange(BaseModel):
|
|
102
102
|
account_id: AccountId
|
|
103
103
|
key_base64: StoreKey
|
|
104
104
|
|
|
105
|
-
class
|
|
105
|
+
class StateChangeWithCauseViewDataDeletion(BaseModel):
|
|
106
106
|
cause: StateChangeCauseView
|
|
107
|
-
change:
|
|
107
|
+
change: StateChangeWithCauseViewDataDeletionChange
|
|
108
108
|
type: Literal['data_deletion']
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class StateChangeWithCauseViewContractCodeUpdateChange(BaseModel):
|
|
111
111
|
account_id: AccountId
|
|
112
112
|
code_base64: str
|
|
113
113
|
|
|
114
|
-
class
|
|
114
|
+
class StateChangeWithCauseViewContractCodeUpdate(BaseModel):
|
|
115
115
|
cause: StateChangeCauseView
|
|
116
|
-
change:
|
|
116
|
+
change: StateChangeWithCauseViewContractCodeUpdateChange
|
|
117
117
|
type: Literal['contract_code_update']
|
|
118
118
|
|
|
119
|
-
class
|
|
119
|
+
class StateChangeWithCauseViewContractCodeDeletionChange(BaseModel):
|
|
120
120
|
account_id: AccountId
|
|
121
121
|
|
|
122
|
-
class
|
|
122
|
+
class StateChangeWithCauseViewContractCodeDeletion(BaseModel):
|
|
123
123
|
cause: StateChangeCauseView
|
|
124
|
-
change:
|
|
124
|
+
change: StateChangeWithCauseViewContractCodeDeletionChange
|
|
125
125
|
type: Literal['contract_code_deletion']
|
|
126
126
|
|
|
127
|
-
class StateChangeWithCauseView(RootModel[Union[
|
|
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
|
|
File without changes
|
{near_jsonrpc_client-1.0.5.dist-info → near_jsonrpc_client-1.0.13.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|