@sleet-js/neardata-types 0.0.2
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.
- package/LICENSE +9 -0
- package/README.md +42 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/block_response.d.ts +47 -0
- package/dist/interface/block_response.js +3 -0
- package/dist/interface/block_response.js.map +1 -0
- package/dist/interface/block_response_block_chunks.d.ts +22 -0
- package/dist/interface/block_response_block_chunks.js +5 -0
- package/dist/interface/block_response_block_chunks.js.map +1 -0
- package/dist/interface/block_response_shards.d.ts +62 -0
- package/dist/interface/block_response_shards.js +3 -0
- package/dist/interface/block_response_shards.js.map +1 -0
- package/dist/interface/index.d.ts +11 -0
- package/dist/interface/index.js +3 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/receipts.d.ts +36 -0
- package/dist/interface/receipts.js +3 -0
- package/dist/interface/receipts.js.map +1 -0
- package/dist/interface/transactions.d.ts +29 -0
- package/dist/interface/transactions.js +3 -0
- package/dist/interface/transactions.js.map +1 -0
- package/dist/interface/transactions_actions_AddKey.d.ts +12 -0
- package/dist/interface/transactions_actions_AddKey.js +5 -0
- package/dist/interface/transactions_actions_AddKey.js.map +1 -0
- package/dist/interface/transactions_actions_CreateAccount.d.ts +2 -0
- package/dist/interface/transactions_actions_CreateAccount.js +11 -0
- package/dist/interface/transactions_actions_CreateAccount.js.map +1 -0
- package/dist/interface/transactions_actions_Delegate.d.ts +22 -0
- package/dist/interface/transactions_actions_Delegate.js +3 -0
- package/dist/interface/transactions_actions_Delegate.js.map +1 -0
- package/dist/interface/transactions_actions_DeleteAccount.d.ts +3 -0
- package/dist/interface/transactions_actions_DeleteAccount.js +5 -0
- package/dist/interface/transactions_actions_DeleteAccount.js.map +1 -0
- package/dist/interface/transactions_actions_FunctionCall.d.ts +6 -0
- package/dist/interface/transactions_actions_FunctionCall.js +5 -0
- package/dist/interface/transactions_actions_FunctionCall.js.map +1 -0
- package/dist/interface/transactions_actions_Transfer.d.ts +3 -0
- package/dist/interface/transactions_actions_Transfer.js +5 -0
- package/dist/interface/transactions_actions_Transfer.js.map +1 -0
- package/dist/interface/transactions_outcome_interface.d.ts +41 -0
- package/dist/interface/transactions_outcome_interface.js +3 -0
- package/dist/interface/transactions_outcome_interface.js.map +1 -0
- package/dist/zod/block_response.d.ts +508 -0
- package/dist/zod/block_response.js +56 -0
- package/dist/zod/block_response.js.map +1 -0
- package/dist/zod/block_response_block_chunks.d.ts +23 -0
- package/dist/zod/block_response_block_chunks.js +28 -0
- package/dist/zod/block_response_block_chunks.js.map +1 -0
- package/dist/zod/block_response_shards.d.ts +603 -0
- package/dist/zod/block_response_shards.js +73 -0
- package/dist/zod/block_response_shards.js.map +1 -0
- package/dist/zod/index.d.ts +11 -0
- package/dist/zod/index.js +21 -0
- package/dist/zod/index.js.map +1 -0
- package/dist/zod/receipts.d.ts +367 -0
- package/dist/zod/receipts.js +52 -0
- package/dist/zod/receipts.js.map +1 -0
- package/dist/zod/transactions.d.ts +240 -0
- package/dist/zod/transactions.js +42 -0
- package/dist/zod/transactions.js.map +1 -0
- package/dist/zod/transactions_actions_AddKey.d.ts +13 -0
- package/dist/zod/transactions_actions_AddKey.js +21 -0
- package/dist/zod/transactions_actions_AddKey.js.map +1 -0
- package/dist/zod/transactions_actions_CreateAccount.d.ts +2 -0
- package/dist/zod/transactions_actions_CreateAccount.js +7 -0
- package/dist/zod/transactions_actions_CreateAccount.js.map +1 -0
- package/dist/zod/transactions_actions_Delegate.d.ts +59 -0
- package/dist/zod/transactions_actions_Delegate.js +31 -0
- package/dist/zod/transactions_actions_Delegate.js.map +1 -0
- package/dist/zod/transactions_actions_DeleteAccount.d.ts +4 -0
- package/dist/zod/transactions_actions_DeleteAccount.js +9 -0
- package/dist/zod/transactions_actions_DeleteAccount.js.map +1 -0
- package/dist/zod/transactions_actions_FunctionCall.d.ts +7 -0
- package/dist/zod/transactions_actions_FunctionCall.js +12 -0
- package/dist/zod/transactions_actions_FunctionCall.js.map +1 -0
- package/dist/zod/transactions_actions_Transfer.d.ts +4 -0
- package/dist/zod/transactions_actions_Transfer.js +9 -0
- package/dist/zod/transactions_actions_Transfer.js.map +1 -0
- package/dist/zod/transactions_outcome_interface.d.ts +120 -0
- package/dist/zod/transactions_outcome_interface.js +55 -0
- package/dist/zod/transactions_outcome_interface.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const neardata_block_response_interface_z_const: z.ZodObject<{
|
|
3
|
+
block: z.ZodLazy<z.ZodObject<{
|
|
4
|
+
author: z.ZodString;
|
|
5
|
+
header: z.ZodLazy<z.ZodObject<{
|
|
6
|
+
height: z.ZodNumber;
|
|
7
|
+
prev_height: z.ZodNumber;
|
|
8
|
+
epoch_id: z.ZodString;
|
|
9
|
+
next_epoch_id: z.ZodString;
|
|
10
|
+
hash: z.ZodString;
|
|
11
|
+
prev_hash: z.ZodString;
|
|
12
|
+
prev_state_root: z.ZodString;
|
|
13
|
+
block_body_hash: z.ZodString;
|
|
14
|
+
chunk_receipts_root: z.ZodString;
|
|
15
|
+
chunk_headers_root: z.ZodString;
|
|
16
|
+
chunk_tx_root: z.ZodString;
|
|
17
|
+
outcome_root: z.ZodString;
|
|
18
|
+
chunks_included: z.ZodNumber;
|
|
19
|
+
challenges_root: z.ZodString;
|
|
20
|
+
timestamp: z.ZodNumber;
|
|
21
|
+
timestamp_nanosec: z.ZodString;
|
|
22
|
+
random_value: z.ZodString;
|
|
23
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
24
|
+
chunk_mask: z.ZodArray<z.ZodBoolean>;
|
|
25
|
+
gas_price: z.ZodString;
|
|
26
|
+
block_ordinal: z.ZodNumber;
|
|
27
|
+
rent_paid: z.ZodString;
|
|
28
|
+
validator_reward: z.ZodString;
|
|
29
|
+
total_supply: z.ZodString;
|
|
30
|
+
challenges_result: z.ZodArray<z.ZodAny>;
|
|
31
|
+
last_final_block: z.ZodString;
|
|
32
|
+
last_ds_final_block: z.ZodString;
|
|
33
|
+
next_bp_hash: z.ZodString;
|
|
34
|
+
block_merkle_root: z.ZodString;
|
|
35
|
+
epoch_sync_data_hash: z.ZodNullable<z.ZodString>;
|
|
36
|
+
approvals: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
signature: z.ZodString;
|
|
38
|
+
latest_protocol_version: z.ZodNumber;
|
|
39
|
+
chunk_endorsements: z.ZodArray<z.ZodArray<z.ZodNumber>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
42
|
+
chunk_hash: z.ZodString;
|
|
43
|
+
prev_block_hash: z.ZodString;
|
|
44
|
+
outcome_root: z.ZodString;
|
|
45
|
+
prev_state_root: z.ZodString;
|
|
46
|
+
encoded_merkle_root: z.ZodString;
|
|
47
|
+
encoded_length: z.ZodNumber;
|
|
48
|
+
height_created: z.ZodNumber;
|
|
49
|
+
height_included: z.ZodNumber;
|
|
50
|
+
shard_id: z.ZodNumber;
|
|
51
|
+
gas_used: z.ZodNumber;
|
|
52
|
+
gas_limit: z.ZodNumber;
|
|
53
|
+
rent_paid: z.ZodString;
|
|
54
|
+
validator_reward: z.ZodString;
|
|
55
|
+
balance_burnt: z.ZodString;
|
|
56
|
+
outgoing_receipts_root: z.ZodString;
|
|
57
|
+
tx_root: z.ZodString;
|
|
58
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
59
|
+
congestion_info: z.ZodAny;
|
|
60
|
+
bandwidth_requests: z.ZodAny;
|
|
61
|
+
signature: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
shards: z.ZodArray<z.ZodObject<{
|
|
65
|
+
shard_id: z.ZodNumber;
|
|
66
|
+
chunk: z.ZodLazy<z.ZodObject<{
|
|
67
|
+
author: z.ZodString;
|
|
68
|
+
header: z.ZodObject<{
|
|
69
|
+
chunk_hash: z.ZodString;
|
|
70
|
+
prev_block_hash: z.ZodString;
|
|
71
|
+
outcome_root: z.ZodString;
|
|
72
|
+
prev_state_root: z.ZodString;
|
|
73
|
+
encoded_merkle_root: z.ZodString;
|
|
74
|
+
encoded_length: z.ZodNumber;
|
|
75
|
+
height_created: z.ZodNumber;
|
|
76
|
+
height_included: z.ZodNumber;
|
|
77
|
+
shard_id: z.ZodNumber;
|
|
78
|
+
gas_used: z.ZodNumber;
|
|
79
|
+
gas_limit: z.ZodNumber;
|
|
80
|
+
rent_paid: z.ZodString;
|
|
81
|
+
validator_reward: z.ZodString;
|
|
82
|
+
balance_burnt: z.ZodString;
|
|
83
|
+
outgoing_receipts_root: z.ZodString;
|
|
84
|
+
tx_root: z.ZodString;
|
|
85
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
86
|
+
congestion_info: z.ZodObject<{
|
|
87
|
+
delayed_receipts_gas: z.ZodString;
|
|
88
|
+
buffered_receipts_gas: z.ZodString;
|
|
89
|
+
receipt_bytes: z.ZodNumber;
|
|
90
|
+
allowed_shard: z.ZodNumber;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
bandwidth_requests: z.ZodObject<{
|
|
93
|
+
V1: z.ZodObject<{
|
|
94
|
+
requests: z.ZodArray<z.ZodAny>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
signature: z.ZodString;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
100
|
+
transaction: z.ZodLazy<z.ZodObject<{
|
|
101
|
+
signer_id: z.ZodString;
|
|
102
|
+
public_key: z.ZodString;
|
|
103
|
+
nonce: z.ZodNumber;
|
|
104
|
+
receiver_id: z.ZodString;
|
|
105
|
+
actions: z.ZodArray<z.ZodLazy<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
|
|
106
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
107
|
+
DeleteAccount: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
beneficiary_id: z.ZodString;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
public_key: z.ZodString;
|
|
112
|
+
access_key: z.ZodObject<{
|
|
113
|
+
nonce: z.ZodNumber;
|
|
114
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
115
|
+
permission_kind: z.ZodString;
|
|
116
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
117
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
118
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
}, z.core.$strip>]>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
method_name: z.ZodString;
|
|
124
|
+
args: z.ZodString;
|
|
125
|
+
gas: z.ZodNumber;
|
|
126
|
+
deposit: z.ZodString;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
deposit: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
Delegate: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
delegate_action: z.ZodObject<{
|
|
133
|
+
sender_id: z.ZodString;
|
|
134
|
+
receiver_id: z.ZodString;
|
|
135
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
136
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
137
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
public_key: z.ZodString;
|
|
139
|
+
access_key: z.ZodObject<{
|
|
140
|
+
nonce: z.ZodNumber;
|
|
141
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject</*elided*/ any, z.core.$strip>]>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
method_name: z.ZodString;
|
|
146
|
+
args: z.ZodString;
|
|
147
|
+
gas: z.ZodNumber;
|
|
148
|
+
deposit: z.ZodString;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
deposit: z.ZodString;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
154
|
+
nonce: z.ZodNumber;
|
|
155
|
+
max_block_height: z.ZodNumber;
|
|
156
|
+
public_key: z.ZodString;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
signature: z.ZodString;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
}, z.core.$catchall<z.ZodAny>>]>>>;
|
|
161
|
+
priority_fee: z.ZodNumber;
|
|
162
|
+
signature: z.ZodString;
|
|
163
|
+
hash: z.ZodString;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
outcome: z.ZodObject<{
|
|
166
|
+
execution_outcome: z.ZodLazy<z.ZodObject<{
|
|
167
|
+
proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
168
|
+
hash: z.ZodString;
|
|
169
|
+
direction: z.ZodEnum<{
|
|
170
|
+
Left: "Left";
|
|
171
|
+
Right: "Right";
|
|
172
|
+
}>;
|
|
173
|
+
}, z.core.$strip>>>;
|
|
174
|
+
block_hash: z.ZodString;
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
outcome: z.ZodLazy<z.ZodObject<{
|
|
177
|
+
logs: z.ZodArray<z.ZodString>;
|
|
178
|
+
receipt_ids: z.ZodArray<z.ZodString>;
|
|
179
|
+
gas_burnt: z.ZodNumber;
|
|
180
|
+
tokens_burnt: z.ZodString;
|
|
181
|
+
executor_id: z.ZodString;
|
|
182
|
+
status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
|
|
183
|
+
SuccessValue: z.ZodString;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
SuccessReceiptId: z.ZodString;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
188
|
+
}, z.core.$strip>]>>;
|
|
189
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
190
|
+
version: z.ZodNumber;
|
|
191
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
192
|
+
cost: z.ZodString;
|
|
193
|
+
cost_category: z.ZodString;
|
|
194
|
+
description: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>>>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
receipt: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
receipts: z.ZodArray<z.ZodObject<{
|
|
203
|
+
predecessor_id: z.ZodString;
|
|
204
|
+
receiver_id: z.ZodString;
|
|
205
|
+
receipt_id: z.ZodString;
|
|
206
|
+
receipt: z.ZodLazy<z.ZodObject<{
|
|
207
|
+
Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
208
|
+
signer_id: z.ZodString;
|
|
209
|
+
signer_public_key: z.ZodString;
|
|
210
|
+
gas_price: z.ZodString;
|
|
211
|
+
output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
212
|
+
data_id: z.ZodString;
|
|
213
|
+
receiver_id: z.ZodString;
|
|
214
|
+
}, z.core.$strip>>>;
|
|
215
|
+
input_data_ids: z.ZodArray<z.ZodString>;
|
|
216
|
+
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
|
|
217
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
218
|
+
DeleteAccount: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
beneficiary_id: z.ZodString;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
public_key: z.ZodString;
|
|
223
|
+
access_key: z.ZodObject<{
|
|
224
|
+
nonce: z.ZodNumber;
|
|
225
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
226
|
+
permission_kind: z.ZodString;
|
|
227
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
228
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
229
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
+
}, z.core.$strip>]>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
method_name: z.ZodString;
|
|
235
|
+
args: z.ZodString;
|
|
236
|
+
gas: z.ZodNumber;
|
|
237
|
+
deposit: z.ZodString;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
deposit: z.ZodString;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
Delegate: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
delegate_action: z.ZodObject<{
|
|
244
|
+
sender_id: z.ZodString;
|
|
245
|
+
receiver_id: z.ZodString;
|
|
246
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
247
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
248
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
public_key: z.ZodString;
|
|
250
|
+
access_key: z.ZodObject</*elided*/ any, z.core.$strip>;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
253
|
+
method_name: z.ZodString;
|
|
254
|
+
args: z.ZodString;
|
|
255
|
+
gas: z.ZodNumber;
|
|
256
|
+
deposit: z.ZodString;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
deposit: z.ZodString;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
262
|
+
nonce: z.ZodNumber;
|
|
263
|
+
max_block_height: z.ZodNumber;
|
|
264
|
+
public_key: z.ZodString;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
signature: z.ZodString;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
269
|
+
is_promise_yield: z.ZodBoolean;
|
|
270
|
+
}, z.core.$strip>>>;
|
|
271
|
+
Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
272
|
+
data_id: z.ZodString;
|
|
273
|
+
data: z.ZodNullable<z.ZodString>;
|
|
274
|
+
is_promise_resume: z.ZodBoolean;
|
|
275
|
+
}, z.core.$strip>>>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
|
+
priority: z.ZodNumber;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
local_receipts: z.ZodArray<z.ZodAny>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
receipt_execution_outcomes: z.ZodArray<z.ZodObject<{
|
|
282
|
+
execution_outcome: z.ZodObject<{
|
|
283
|
+
proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
284
|
+
hash: z.ZodString;
|
|
285
|
+
direction: z.ZodEnum<{
|
|
286
|
+
Left: "Left";
|
|
287
|
+
Right: "Right";
|
|
288
|
+
}>;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
block_hash: z.ZodString;
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
outcome: z.ZodLazy<z.ZodObject<{
|
|
293
|
+
logs: z.ZodArray<z.ZodString>;
|
|
294
|
+
receipt_ids: z.ZodArray<z.ZodString>;
|
|
295
|
+
gas_burnt: z.ZodNumber;
|
|
296
|
+
tokens_burnt: z.ZodString;
|
|
297
|
+
executor_id: z.ZodString;
|
|
298
|
+
status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
|
|
299
|
+
SuccessValue: z.ZodString;
|
|
300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
+
SuccessReceiptId: z.ZodString;
|
|
302
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
303
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
304
|
+
}, z.core.$strip>]>>;
|
|
305
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
306
|
+
version: z.ZodNumber;
|
|
307
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
308
|
+
cost: z.ZodString;
|
|
309
|
+
cost_category: z.ZodString;
|
|
310
|
+
description: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>>>>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
}, z.core.$strip>>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
receipt: z.ZodObject<{
|
|
316
|
+
predecessor_id: z.ZodString;
|
|
317
|
+
receiver_id: z.ZodString;
|
|
318
|
+
receipt_id: z.ZodString;
|
|
319
|
+
receipt: z.ZodLazy<z.ZodObject<{
|
|
320
|
+
Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
321
|
+
signer_id: z.ZodString;
|
|
322
|
+
signer_public_key: z.ZodString;
|
|
323
|
+
gas_price: z.ZodString;
|
|
324
|
+
output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
325
|
+
data_id: z.ZodString;
|
|
326
|
+
receiver_id: z.ZodString;
|
|
327
|
+
}, z.core.$strip>>>;
|
|
328
|
+
input_data_ids: z.ZodArray<z.ZodString>;
|
|
329
|
+
actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
|
|
330
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
331
|
+
DeleteAccount: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
beneficiary_id: z.ZodString;
|
|
333
|
+
}, z.core.$strip>>;
|
|
334
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
public_key: z.ZodString;
|
|
336
|
+
access_key: z.ZodObject<{
|
|
337
|
+
nonce: z.ZodNumber;
|
|
338
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
339
|
+
permission_kind: z.ZodString;
|
|
340
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
341
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
342
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
+
}, z.core.$strip>]>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
347
|
+
method_name: z.ZodString;
|
|
348
|
+
args: z.ZodString;
|
|
349
|
+
gas: z.ZodNumber;
|
|
350
|
+
deposit: z.ZodString;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
deposit: z.ZodString;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
Delegate: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
delegate_action: z.ZodObject<{
|
|
357
|
+
sender_id: z.ZodString;
|
|
358
|
+
receiver_id: z.ZodString;
|
|
359
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
360
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
361
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
public_key: z.ZodString;
|
|
363
|
+
access_key: z.ZodObject</*elided*/ any, z.core.$strip>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
method_name: z.ZodString;
|
|
367
|
+
args: z.ZodString;
|
|
368
|
+
gas: z.ZodNumber;
|
|
369
|
+
deposit: z.ZodString;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
deposit: z.ZodString;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
375
|
+
nonce: z.ZodNumber;
|
|
376
|
+
max_block_height: z.ZodNumber;
|
|
377
|
+
public_key: z.ZodString;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
signature: z.ZodString;
|
|
380
|
+
}, z.core.$strip>>;
|
|
381
|
+
}, z.core.$catchall<z.ZodAny>>]>>;
|
|
382
|
+
is_promise_yield: z.ZodBoolean;
|
|
383
|
+
}, z.core.$strip>>>;
|
|
384
|
+
Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
385
|
+
data_id: z.ZodString;
|
|
386
|
+
data: z.ZodNullable<z.ZodString>;
|
|
387
|
+
is_promise_resume: z.ZodBoolean;
|
|
388
|
+
}, z.core.$strip>>>;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
priority: z.ZodNumber;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
tx_hash: z.ZodString;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
state_changes: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
395
|
+
cause: z.ZodObject<{
|
|
396
|
+
receipt_hash: z.ZodOptional<z.ZodString>;
|
|
397
|
+
transaction_hash: z.ZodOptional<z.ZodString>;
|
|
398
|
+
type: z.ZodString;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
change: z.ZodObject<{
|
|
401
|
+
account_id: z.ZodOptional<z.ZodString>;
|
|
402
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
403
|
+
code_hash: z.ZodOptional<z.ZodString>;
|
|
404
|
+
locked: z.ZodOptional<z.ZodString>;
|
|
405
|
+
storage_paid_at: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
storage_usage: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
408
|
+
type: z.ZodString;
|
|
409
|
+
}, z.core.$strip>>>;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
export declare const neardata_block_interface_z_const: z.ZodObject<{
|
|
413
|
+
author: z.ZodString;
|
|
414
|
+
header: z.ZodLazy<z.ZodObject<{
|
|
415
|
+
height: z.ZodNumber;
|
|
416
|
+
prev_height: z.ZodNumber;
|
|
417
|
+
epoch_id: z.ZodString;
|
|
418
|
+
next_epoch_id: z.ZodString;
|
|
419
|
+
hash: z.ZodString;
|
|
420
|
+
prev_hash: z.ZodString;
|
|
421
|
+
prev_state_root: z.ZodString;
|
|
422
|
+
block_body_hash: z.ZodString;
|
|
423
|
+
chunk_receipts_root: z.ZodString;
|
|
424
|
+
chunk_headers_root: z.ZodString;
|
|
425
|
+
chunk_tx_root: z.ZodString;
|
|
426
|
+
outcome_root: z.ZodString;
|
|
427
|
+
chunks_included: z.ZodNumber;
|
|
428
|
+
challenges_root: z.ZodString;
|
|
429
|
+
timestamp: z.ZodNumber;
|
|
430
|
+
timestamp_nanosec: z.ZodString;
|
|
431
|
+
random_value: z.ZodString;
|
|
432
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
433
|
+
chunk_mask: z.ZodArray<z.ZodBoolean>;
|
|
434
|
+
gas_price: z.ZodString;
|
|
435
|
+
block_ordinal: z.ZodNumber;
|
|
436
|
+
rent_paid: z.ZodString;
|
|
437
|
+
validator_reward: z.ZodString;
|
|
438
|
+
total_supply: z.ZodString;
|
|
439
|
+
challenges_result: z.ZodArray<z.ZodAny>;
|
|
440
|
+
last_final_block: z.ZodString;
|
|
441
|
+
last_ds_final_block: z.ZodString;
|
|
442
|
+
next_bp_hash: z.ZodString;
|
|
443
|
+
block_merkle_root: z.ZodString;
|
|
444
|
+
epoch_sync_data_hash: z.ZodNullable<z.ZodString>;
|
|
445
|
+
approvals: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
446
|
+
signature: z.ZodString;
|
|
447
|
+
latest_protocol_version: z.ZodNumber;
|
|
448
|
+
chunk_endorsements: z.ZodArray<z.ZodArray<z.ZodNumber>>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
451
|
+
chunk_hash: z.ZodString;
|
|
452
|
+
prev_block_hash: z.ZodString;
|
|
453
|
+
outcome_root: z.ZodString;
|
|
454
|
+
prev_state_root: z.ZodString;
|
|
455
|
+
encoded_merkle_root: z.ZodString;
|
|
456
|
+
encoded_length: z.ZodNumber;
|
|
457
|
+
height_created: z.ZodNumber;
|
|
458
|
+
height_included: z.ZodNumber;
|
|
459
|
+
shard_id: z.ZodNumber;
|
|
460
|
+
gas_used: z.ZodNumber;
|
|
461
|
+
gas_limit: z.ZodNumber;
|
|
462
|
+
rent_paid: z.ZodString;
|
|
463
|
+
validator_reward: z.ZodString;
|
|
464
|
+
balance_burnt: z.ZodString;
|
|
465
|
+
outgoing_receipts_root: z.ZodString;
|
|
466
|
+
tx_root: z.ZodString;
|
|
467
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
468
|
+
congestion_info: z.ZodAny;
|
|
469
|
+
bandwidth_requests: z.ZodAny;
|
|
470
|
+
signature: z.ZodString;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
export declare const neardata_block_header_interface_z_const: z.ZodObject<{
|
|
474
|
+
height: z.ZodNumber;
|
|
475
|
+
prev_height: z.ZodNumber;
|
|
476
|
+
epoch_id: z.ZodString;
|
|
477
|
+
next_epoch_id: z.ZodString;
|
|
478
|
+
hash: z.ZodString;
|
|
479
|
+
prev_hash: z.ZodString;
|
|
480
|
+
prev_state_root: z.ZodString;
|
|
481
|
+
block_body_hash: z.ZodString;
|
|
482
|
+
chunk_receipts_root: z.ZodString;
|
|
483
|
+
chunk_headers_root: z.ZodString;
|
|
484
|
+
chunk_tx_root: z.ZodString;
|
|
485
|
+
outcome_root: z.ZodString;
|
|
486
|
+
chunks_included: z.ZodNumber;
|
|
487
|
+
challenges_root: z.ZodString;
|
|
488
|
+
timestamp: z.ZodNumber;
|
|
489
|
+
timestamp_nanosec: z.ZodString;
|
|
490
|
+
random_value: z.ZodString;
|
|
491
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
492
|
+
chunk_mask: z.ZodArray<z.ZodBoolean>;
|
|
493
|
+
gas_price: z.ZodString;
|
|
494
|
+
block_ordinal: z.ZodNumber;
|
|
495
|
+
rent_paid: z.ZodString;
|
|
496
|
+
validator_reward: z.ZodString;
|
|
497
|
+
total_supply: z.ZodString;
|
|
498
|
+
challenges_result: z.ZodArray<z.ZodAny>;
|
|
499
|
+
last_final_block: z.ZodString;
|
|
500
|
+
last_ds_final_block: z.ZodString;
|
|
501
|
+
next_bp_hash: z.ZodString;
|
|
502
|
+
block_merkle_root: z.ZodString;
|
|
503
|
+
epoch_sync_data_hash: z.ZodNullable<z.ZodString>;
|
|
504
|
+
approvals: z.ZodArray<z.ZodNullable<z.ZodString>>;
|
|
505
|
+
signature: z.ZodString;
|
|
506
|
+
latest_protocol_version: z.ZodNumber;
|
|
507
|
+
chunk_endorsements: z.ZodArray<z.ZodArray<z.ZodNumber>>;
|
|
508
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { neardata_block_chunks_interface_z_const } from "./block_response_block_chunks";
|
|
3
|
+
import { neardata_shard_interface_z_const } from "./block_response_shards";
|
|
4
|
+
// ===========================================
|
|
5
|
+
// ==== neardata_block_response_interface ====
|
|
6
|
+
export const neardata_block_response_interface_z_const = z.object({
|
|
7
|
+
block: z.lazy(() => neardata_block_interface_z_const),
|
|
8
|
+
shards: z.array(neardata_shard_interface_z_const),
|
|
9
|
+
});
|
|
10
|
+
// ===========================================
|
|
11
|
+
// ===========================================
|
|
12
|
+
export const neardata_block_interface_z_const = z.object({
|
|
13
|
+
author: z.string(),
|
|
14
|
+
header: z.lazy(() => neardata_block_header_interface_z_const),
|
|
15
|
+
chunks: z.array(neardata_block_chunks_interface_z_const),
|
|
16
|
+
});
|
|
17
|
+
// ===========================================
|
|
18
|
+
export const neardata_block_header_interface_z_const = z.object({
|
|
19
|
+
height: z.number(),
|
|
20
|
+
prev_height: z.number(),
|
|
21
|
+
epoch_id: z.string(),
|
|
22
|
+
next_epoch_id: z.string(),
|
|
23
|
+
hash: z.string(),
|
|
24
|
+
prev_hash: z.string(),
|
|
25
|
+
prev_state_root: z.string(),
|
|
26
|
+
block_body_hash: z.string(),
|
|
27
|
+
chunk_receipts_root: z.string(),
|
|
28
|
+
chunk_headers_root: z.string(),
|
|
29
|
+
chunk_tx_root: z.string(),
|
|
30
|
+
outcome_root: z.string(),
|
|
31
|
+
chunks_included: z.number(),
|
|
32
|
+
challenges_root: z.string(),
|
|
33
|
+
timestamp: z.number(),
|
|
34
|
+
timestamp_nanosec: z.string(),
|
|
35
|
+
random_value: z.string(),
|
|
36
|
+
validator_proposals: z.array(z.any()),
|
|
37
|
+
chunk_mask: z.array(z.boolean()),
|
|
38
|
+
gas_price: z.string(),
|
|
39
|
+
block_ordinal: z.number(),
|
|
40
|
+
rent_paid: z.string(),
|
|
41
|
+
validator_reward: z.string(),
|
|
42
|
+
total_supply: z.string(),
|
|
43
|
+
challenges_result: z.array(z.any()),
|
|
44
|
+
last_final_block: z.string(),
|
|
45
|
+
last_ds_final_block: z.string(),
|
|
46
|
+
next_bp_hash: z.string(),
|
|
47
|
+
block_merkle_root: z.string(),
|
|
48
|
+
epoch_sync_data_hash: z.string().nullable(),
|
|
49
|
+
approvals: z.array(z.string().nullable()),
|
|
50
|
+
signature: z.string(),
|
|
51
|
+
latest_protocol_version: z.number(),
|
|
52
|
+
chunk_endorsements: z.array(z.array(z.number())),
|
|
53
|
+
});
|
|
54
|
+
// ==============================================
|
|
55
|
+
// copyright 2025 by sleet.near
|
|
56
|
+
//# sourceMappingURL=block_response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_response.js","sourceRoot":"","sources":["../../src/zod/block_response.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const neardata_block_chunks_interface_z_const: z.ZodObject<{
|
|
3
|
+
chunk_hash: z.ZodString;
|
|
4
|
+
prev_block_hash: z.ZodString;
|
|
5
|
+
outcome_root: z.ZodString;
|
|
6
|
+
prev_state_root: z.ZodString;
|
|
7
|
+
encoded_merkle_root: z.ZodString;
|
|
8
|
+
encoded_length: z.ZodNumber;
|
|
9
|
+
height_created: z.ZodNumber;
|
|
10
|
+
height_included: z.ZodNumber;
|
|
11
|
+
shard_id: z.ZodNumber;
|
|
12
|
+
gas_used: z.ZodNumber;
|
|
13
|
+
gas_limit: z.ZodNumber;
|
|
14
|
+
rent_paid: z.ZodString;
|
|
15
|
+
validator_reward: z.ZodString;
|
|
16
|
+
balance_burnt: z.ZodString;
|
|
17
|
+
outgoing_receipts_root: z.ZodString;
|
|
18
|
+
tx_root: z.ZodString;
|
|
19
|
+
validator_proposals: z.ZodArray<z.ZodAny>;
|
|
20
|
+
congestion_info: z.ZodAny;
|
|
21
|
+
bandwidth_requests: z.ZodAny;
|
|
22
|
+
signature: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// ===========================================
|
|
3
|
+
// ==== neardata_block_chunks_interface ====
|
|
4
|
+
export const neardata_block_chunks_interface_z_const = z.object({
|
|
5
|
+
chunk_hash: z.string(),
|
|
6
|
+
prev_block_hash: z.string(),
|
|
7
|
+
outcome_root: z.string(),
|
|
8
|
+
prev_state_root: z.string(),
|
|
9
|
+
encoded_merkle_root: z.string(),
|
|
10
|
+
encoded_length: z.number(),
|
|
11
|
+
height_created: z.number(),
|
|
12
|
+
height_included: z.number(),
|
|
13
|
+
shard_id: z.number(),
|
|
14
|
+
gas_used: z.number(),
|
|
15
|
+
gas_limit: z.number(),
|
|
16
|
+
rent_paid: z.string(),
|
|
17
|
+
validator_reward: z.string(),
|
|
18
|
+
balance_burnt: z.string(),
|
|
19
|
+
outgoing_receipts_root: z.string(),
|
|
20
|
+
tx_root: z.string(),
|
|
21
|
+
validator_proposals: z.array(z.any()),
|
|
22
|
+
congestion_info: z.any(),
|
|
23
|
+
bandwidth_requests: z.any(),
|
|
24
|
+
signature: z.string(),
|
|
25
|
+
});
|
|
26
|
+
// ==============================================
|
|
27
|
+
// copyright 2025 by sleet.near
|
|
28
|
+
//# sourceMappingURL=block_response_block_chunks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_response_block_chunks.js","sourceRoot":"","sources":["../../src/zod/block_response_block_chunks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,8CAA8C;AAC9C,4CAA4C;AAE5C,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACrC,eAAe,EAAE,CAAC,CAAC,GAAG,EAAE;IACxB,kBAAkB,EAAE,CAAC,CAAC,GAAG,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAsD,CAAC;AAExD,iDAAiD;AACjD,+BAA+B"}
|