@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.
Files changed (84) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +42 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +4 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/interface/block_response.d.ts +47 -0
  7. package/dist/interface/block_response.js +3 -0
  8. package/dist/interface/block_response.js.map +1 -0
  9. package/dist/interface/block_response_block_chunks.d.ts +22 -0
  10. package/dist/interface/block_response_block_chunks.js +5 -0
  11. package/dist/interface/block_response_block_chunks.js.map +1 -0
  12. package/dist/interface/block_response_shards.d.ts +62 -0
  13. package/dist/interface/block_response_shards.js +3 -0
  14. package/dist/interface/block_response_shards.js.map +1 -0
  15. package/dist/interface/index.d.ts +11 -0
  16. package/dist/interface/index.js +3 -0
  17. package/dist/interface/index.js.map +1 -0
  18. package/dist/interface/receipts.d.ts +36 -0
  19. package/dist/interface/receipts.js +3 -0
  20. package/dist/interface/receipts.js.map +1 -0
  21. package/dist/interface/transactions.d.ts +29 -0
  22. package/dist/interface/transactions.js +3 -0
  23. package/dist/interface/transactions.js.map +1 -0
  24. package/dist/interface/transactions_actions_AddKey.d.ts +12 -0
  25. package/dist/interface/transactions_actions_AddKey.js +5 -0
  26. package/dist/interface/transactions_actions_AddKey.js.map +1 -0
  27. package/dist/interface/transactions_actions_CreateAccount.d.ts +2 -0
  28. package/dist/interface/transactions_actions_CreateAccount.js +11 -0
  29. package/dist/interface/transactions_actions_CreateAccount.js.map +1 -0
  30. package/dist/interface/transactions_actions_Delegate.d.ts +22 -0
  31. package/dist/interface/transactions_actions_Delegate.js +3 -0
  32. package/dist/interface/transactions_actions_Delegate.js.map +1 -0
  33. package/dist/interface/transactions_actions_DeleteAccount.d.ts +3 -0
  34. package/dist/interface/transactions_actions_DeleteAccount.js +5 -0
  35. package/dist/interface/transactions_actions_DeleteAccount.js.map +1 -0
  36. package/dist/interface/transactions_actions_FunctionCall.d.ts +6 -0
  37. package/dist/interface/transactions_actions_FunctionCall.js +5 -0
  38. package/dist/interface/transactions_actions_FunctionCall.js.map +1 -0
  39. package/dist/interface/transactions_actions_Transfer.d.ts +3 -0
  40. package/dist/interface/transactions_actions_Transfer.js +5 -0
  41. package/dist/interface/transactions_actions_Transfer.js.map +1 -0
  42. package/dist/interface/transactions_outcome_interface.d.ts +41 -0
  43. package/dist/interface/transactions_outcome_interface.js +3 -0
  44. package/dist/interface/transactions_outcome_interface.js.map +1 -0
  45. package/dist/zod/block_response.d.ts +508 -0
  46. package/dist/zod/block_response.js +56 -0
  47. package/dist/zod/block_response.js.map +1 -0
  48. package/dist/zod/block_response_block_chunks.d.ts +23 -0
  49. package/dist/zod/block_response_block_chunks.js +28 -0
  50. package/dist/zod/block_response_block_chunks.js.map +1 -0
  51. package/dist/zod/block_response_shards.d.ts +603 -0
  52. package/dist/zod/block_response_shards.js +73 -0
  53. package/dist/zod/block_response_shards.js.map +1 -0
  54. package/dist/zod/index.d.ts +11 -0
  55. package/dist/zod/index.js +21 -0
  56. package/dist/zod/index.js.map +1 -0
  57. package/dist/zod/receipts.d.ts +367 -0
  58. package/dist/zod/receipts.js +52 -0
  59. package/dist/zod/receipts.js.map +1 -0
  60. package/dist/zod/transactions.d.ts +240 -0
  61. package/dist/zod/transactions.js +42 -0
  62. package/dist/zod/transactions.js.map +1 -0
  63. package/dist/zod/transactions_actions_AddKey.d.ts +13 -0
  64. package/dist/zod/transactions_actions_AddKey.js +21 -0
  65. package/dist/zod/transactions_actions_AddKey.js.map +1 -0
  66. package/dist/zod/transactions_actions_CreateAccount.d.ts +2 -0
  67. package/dist/zod/transactions_actions_CreateAccount.js +7 -0
  68. package/dist/zod/transactions_actions_CreateAccount.js.map +1 -0
  69. package/dist/zod/transactions_actions_Delegate.d.ts +59 -0
  70. package/dist/zod/transactions_actions_Delegate.js +31 -0
  71. package/dist/zod/transactions_actions_Delegate.js.map +1 -0
  72. package/dist/zod/transactions_actions_DeleteAccount.d.ts +4 -0
  73. package/dist/zod/transactions_actions_DeleteAccount.js +9 -0
  74. package/dist/zod/transactions_actions_DeleteAccount.js.map +1 -0
  75. package/dist/zod/transactions_actions_FunctionCall.d.ts +7 -0
  76. package/dist/zod/transactions_actions_FunctionCall.js +12 -0
  77. package/dist/zod/transactions_actions_FunctionCall.js.map +1 -0
  78. package/dist/zod/transactions_actions_Transfer.d.ts +4 -0
  79. package/dist/zod/transactions_actions_Transfer.js +9 -0
  80. package/dist/zod/transactions_actions_Transfer.js.map +1 -0
  81. package/dist/zod/transactions_outcome_interface.d.ts +120 -0
  82. package/dist/zod/transactions_outcome_interface.js +55 -0
  83. package/dist/zod/transactions_outcome_interface.js.map +1 -0
  84. package/package.json +41 -0
@@ -0,0 +1,603 @@
1
+ import { z } from "zod";
2
+ export declare const neardata_shard_interface_z_const: z.ZodObject<{
3
+ shard_id: z.ZodNumber;
4
+ chunk: z.ZodLazy<z.ZodObject<{
5
+ author: z.ZodString;
6
+ header: z.ZodObject<{
7
+ chunk_hash: z.ZodString;
8
+ prev_block_hash: z.ZodString;
9
+ outcome_root: z.ZodString;
10
+ prev_state_root: z.ZodString;
11
+ encoded_merkle_root: z.ZodString;
12
+ encoded_length: z.ZodNumber;
13
+ height_created: z.ZodNumber;
14
+ height_included: z.ZodNumber;
15
+ shard_id: z.ZodNumber;
16
+ gas_used: z.ZodNumber;
17
+ gas_limit: z.ZodNumber;
18
+ rent_paid: z.ZodString;
19
+ validator_reward: z.ZodString;
20
+ balance_burnt: z.ZodString;
21
+ outgoing_receipts_root: z.ZodString;
22
+ tx_root: z.ZodString;
23
+ validator_proposals: z.ZodArray<z.ZodAny>;
24
+ congestion_info: z.ZodObject<{
25
+ delayed_receipts_gas: z.ZodString;
26
+ buffered_receipts_gas: z.ZodString;
27
+ receipt_bytes: z.ZodNumber;
28
+ allowed_shard: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ bandwidth_requests: z.ZodObject<{
31
+ V1: z.ZodObject<{
32
+ requests: z.ZodArray<z.ZodAny>;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
35
+ signature: z.ZodString;
36
+ }, z.core.$strip>;
37
+ transactions: z.ZodArray<z.ZodObject<{
38
+ transaction: z.ZodLazy<z.ZodObject<{
39
+ signer_id: z.ZodString;
40
+ public_key: z.ZodString;
41
+ nonce: z.ZodNumber;
42
+ receiver_id: z.ZodString;
43
+ actions: z.ZodArray<z.ZodLazy<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
44
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
45
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
46
+ beneficiary_id: z.ZodString;
47
+ }, z.core.$strip>>;
48
+ AddKey: z.ZodOptional<z.ZodObject<{
49
+ public_key: z.ZodString;
50
+ access_key: z.ZodObject<{
51
+ nonce: z.ZodNumber;
52
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
53
+ permission_kind: z.ZodString;
54
+ allowance: z.ZodOptional<z.ZodString>;
55
+ receiver_id: z.ZodOptional<z.ZodString>;
56
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ }, z.core.$strip>]>;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>>;
60
+ FunctionCall: z.ZodOptional<z.ZodObject<{
61
+ method_name: z.ZodString;
62
+ args: z.ZodString;
63
+ gas: z.ZodNumber;
64
+ deposit: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ Transfer: z.ZodOptional<z.ZodObject<{
67
+ deposit: z.ZodString;
68
+ }, z.core.$strip>>;
69
+ Delegate: z.ZodOptional<z.ZodObject<{
70
+ delegate_action: z.ZodObject<{
71
+ sender_id: z.ZodString;
72
+ receiver_id: z.ZodString;
73
+ actions: z.ZodArray<z.ZodObject<{
74
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
75
+ AddKey: z.ZodOptional<z.ZodObject<{
76
+ public_key: z.ZodString;
77
+ access_key: z.ZodObject<{
78
+ nonce: z.ZodNumber;
79
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
80
+ permission_kind: z.ZodString;
81
+ allowance: z.ZodOptional<z.ZodString>;
82
+ receiver_id: z.ZodOptional<z.ZodString>;
83
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ }, z.core.$strip>]>;
85
+ }, z.core.$strip>;
86
+ }, z.core.$strip>>;
87
+ FunctionCall: z.ZodOptional<z.ZodObject<{
88
+ method_name: z.ZodString;
89
+ args: z.ZodString;
90
+ gas: z.ZodNumber;
91
+ deposit: z.ZodString;
92
+ }, z.core.$strip>>;
93
+ Transfer: z.ZodOptional<z.ZodObject<{
94
+ deposit: z.ZodString;
95
+ }, z.core.$strip>>;
96
+ }, z.core.$catchall<z.ZodAny>>>;
97
+ nonce: z.ZodNumber;
98
+ max_block_height: z.ZodNumber;
99
+ public_key: z.ZodString;
100
+ }, z.core.$strip>;
101
+ signature: z.ZodString;
102
+ }, z.core.$strip>>;
103
+ }, z.core.$catchall<z.ZodAny>>]>>>;
104
+ priority_fee: z.ZodNumber;
105
+ signature: z.ZodString;
106
+ hash: z.ZodString;
107
+ }, z.core.$strip>>;
108
+ outcome: z.ZodObject<{
109
+ execution_outcome: z.ZodLazy<z.ZodObject<{
110
+ proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
111
+ hash: z.ZodString;
112
+ direction: z.ZodEnum<{
113
+ Left: "Left";
114
+ Right: "Right";
115
+ }>;
116
+ }, z.core.$strip>>>;
117
+ block_hash: z.ZodString;
118
+ id: z.ZodString;
119
+ outcome: z.ZodLazy<z.ZodObject<{
120
+ logs: z.ZodArray<z.ZodString>;
121
+ receipt_ids: z.ZodArray<z.ZodString>;
122
+ gas_burnt: z.ZodNumber;
123
+ tokens_burnt: z.ZodString;
124
+ executor_id: z.ZodString;
125
+ status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
126
+ SuccessValue: z.ZodString;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ SuccessReceiptId: z.ZodString;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
131
+ }, z.core.$strip>]>>;
132
+ metadata: z.ZodLazy<z.ZodObject<{
133
+ version: z.ZodNumber;
134
+ gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
135
+ cost: z.ZodString;
136
+ cost_category: z.ZodString;
137
+ description: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>>>>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>>;
141
+ }, z.core.$strip>>;
142
+ receipt: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
143
+ }, z.core.$strip>;
144
+ }, z.core.$strip>>;
145
+ receipts: z.ZodArray<z.ZodObject<{
146
+ predecessor_id: z.ZodString;
147
+ receiver_id: z.ZodString;
148
+ receipt_id: z.ZodString;
149
+ receipt: z.ZodLazy<z.ZodObject<{
150
+ Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
151
+ signer_id: z.ZodString;
152
+ signer_public_key: z.ZodString;
153
+ gas_price: z.ZodString;
154
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
155
+ data_id: z.ZodString;
156
+ receiver_id: z.ZodString;
157
+ }, z.core.$strip>>>;
158
+ input_data_ids: z.ZodArray<z.ZodString>;
159
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
160
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
161
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
162
+ beneficiary_id: z.ZodString;
163
+ }, z.core.$strip>>;
164
+ AddKey: z.ZodOptional<z.ZodObject<{
165
+ public_key: z.ZodString;
166
+ access_key: z.ZodObject<{
167
+ nonce: z.ZodNumber;
168
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
169
+ permission_kind: z.ZodString;
170
+ allowance: z.ZodOptional<z.ZodString>;
171
+ receiver_id: z.ZodOptional<z.ZodString>;
172
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
+ }, z.core.$strip>]>;
174
+ }, z.core.$strip>;
175
+ }, z.core.$strip>>;
176
+ FunctionCall: z.ZodOptional<z.ZodObject<{
177
+ method_name: z.ZodString;
178
+ args: z.ZodString;
179
+ gas: z.ZodNumber;
180
+ deposit: z.ZodString;
181
+ }, z.core.$strip>>;
182
+ Transfer: z.ZodOptional<z.ZodObject<{
183
+ deposit: z.ZodString;
184
+ }, z.core.$strip>>;
185
+ Delegate: z.ZodOptional<z.ZodObject<{
186
+ delegate_action: z.ZodObject<{
187
+ sender_id: z.ZodString;
188
+ receiver_id: z.ZodString;
189
+ actions: z.ZodArray<z.ZodObject<{
190
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
191
+ AddKey: z.ZodOptional<z.ZodObject<{
192
+ public_key: z.ZodString;
193
+ access_key: z.ZodObject<{
194
+ nonce: z.ZodNumber;
195
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject</*elided*/ any, z.core.$strip>]>;
196
+ }, z.core.$strip>;
197
+ }, z.core.$strip>>;
198
+ FunctionCall: z.ZodOptional<z.ZodObject<{
199
+ method_name: z.ZodString;
200
+ args: z.ZodString;
201
+ gas: z.ZodNumber;
202
+ deposit: z.ZodString;
203
+ }, z.core.$strip>>;
204
+ Transfer: z.ZodOptional<z.ZodObject<{
205
+ deposit: z.ZodString;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$catchall<z.ZodAny>>>;
208
+ nonce: z.ZodNumber;
209
+ max_block_height: z.ZodNumber;
210
+ public_key: z.ZodString;
211
+ }, z.core.$strip>;
212
+ signature: z.ZodString;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$catchall<z.ZodAny>>]>>;
215
+ is_promise_yield: z.ZodBoolean;
216
+ }, z.core.$strip>>>;
217
+ Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
218
+ data_id: z.ZodString;
219
+ data: z.ZodNullable<z.ZodString>;
220
+ is_promise_resume: z.ZodBoolean;
221
+ }, z.core.$strip>>>;
222
+ }, z.core.$strip>>;
223
+ priority: z.ZodNumber;
224
+ }, z.core.$strip>>;
225
+ local_receipts: z.ZodArray<z.ZodAny>;
226
+ }, z.core.$strip>>;
227
+ receipt_execution_outcomes: z.ZodArray<z.ZodObject<{
228
+ execution_outcome: z.ZodObject<{
229
+ proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
230
+ hash: z.ZodString;
231
+ direction: z.ZodEnum<{
232
+ Left: "Left";
233
+ Right: "Right";
234
+ }>;
235
+ }, z.core.$strip>>>;
236
+ block_hash: z.ZodString;
237
+ id: z.ZodString;
238
+ outcome: z.ZodLazy<z.ZodObject<{
239
+ logs: z.ZodArray<z.ZodString>;
240
+ receipt_ids: z.ZodArray<z.ZodString>;
241
+ gas_burnt: z.ZodNumber;
242
+ tokens_burnt: z.ZodString;
243
+ executor_id: z.ZodString;
244
+ status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
245
+ SuccessValue: z.ZodString;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ SuccessReceiptId: z.ZodString;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
250
+ }, z.core.$strip>]>>;
251
+ metadata: z.ZodLazy<z.ZodObject<{
252
+ version: z.ZodNumber;
253
+ gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
254
+ cost: z.ZodString;
255
+ cost_category: z.ZodString;
256
+ description: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>>>;
258
+ }, z.core.$strip>>;
259
+ }, z.core.$strip>>;
260
+ }, z.core.$strip>;
261
+ receipt: z.ZodObject<{
262
+ predecessor_id: z.ZodString;
263
+ receiver_id: z.ZodString;
264
+ receipt_id: z.ZodString;
265
+ receipt: z.ZodLazy<z.ZodObject<{
266
+ Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
267
+ signer_id: z.ZodString;
268
+ signer_public_key: z.ZodString;
269
+ gas_price: z.ZodString;
270
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
271
+ data_id: z.ZodString;
272
+ receiver_id: z.ZodString;
273
+ }, z.core.$strip>>>;
274
+ input_data_ids: z.ZodArray<z.ZodString>;
275
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
276
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
277
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
278
+ beneficiary_id: z.ZodString;
279
+ }, z.core.$strip>>;
280
+ AddKey: z.ZodOptional<z.ZodObject<{
281
+ public_key: z.ZodString;
282
+ access_key: z.ZodObject<{
283
+ nonce: z.ZodNumber;
284
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
285
+ permission_kind: z.ZodString;
286
+ allowance: z.ZodOptional<z.ZodString>;
287
+ receiver_id: z.ZodOptional<z.ZodString>;
288
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
+ }, z.core.$strip>]>;
290
+ }, z.core.$strip>;
291
+ }, z.core.$strip>>;
292
+ FunctionCall: z.ZodOptional<z.ZodObject<{
293
+ method_name: z.ZodString;
294
+ args: z.ZodString;
295
+ gas: z.ZodNumber;
296
+ deposit: z.ZodString;
297
+ }, z.core.$strip>>;
298
+ Transfer: z.ZodOptional<z.ZodObject<{
299
+ deposit: z.ZodString;
300
+ }, z.core.$strip>>;
301
+ Delegate: z.ZodOptional<z.ZodObject<{
302
+ delegate_action: z.ZodObject<{
303
+ sender_id: z.ZodString;
304
+ receiver_id: z.ZodString;
305
+ actions: z.ZodArray<z.ZodObject<{
306
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
307
+ AddKey: z.ZodOptional<z.ZodObject<{
308
+ public_key: z.ZodString;
309
+ access_key: z.ZodObject<{
310
+ nonce: z.ZodNumber;
311
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject</*elided*/ any, z.core.$strip>]>;
312
+ }, z.core.$strip>;
313
+ }, z.core.$strip>>;
314
+ FunctionCall: z.ZodOptional<z.ZodObject<{
315
+ method_name: z.ZodString;
316
+ args: z.ZodString;
317
+ gas: z.ZodNumber;
318
+ deposit: z.ZodString;
319
+ }, z.core.$strip>>;
320
+ Transfer: z.ZodOptional<z.ZodObject<{
321
+ deposit: z.ZodString;
322
+ }, z.core.$strip>>;
323
+ }, z.core.$catchall<z.ZodAny>>>;
324
+ nonce: z.ZodNumber;
325
+ max_block_height: z.ZodNumber;
326
+ public_key: z.ZodString;
327
+ }, z.core.$strip>;
328
+ signature: z.ZodString;
329
+ }, z.core.$strip>>;
330
+ }, z.core.$catchall<z.ZodAny>>]>>;
331
+ is_promise_yield: z.ZodBoolean;
332
+ }, z.core.$strip>>>;
333
+ Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
334
+ data_id: z.ZodString;
335
+ data: z.ZodNullable<z.ZodString>;
336
+ is_promise_resume: z.ZodBoolean;
337
+ }, z.core.$strip>>>;
338
+ }, z.core.$strip>>;
339
+ priority: z.ZodNumber;
340
+ }, z.core.$strip>;
341
+ tx_hash: z.ZodString;
342
+ }, z.core.$strip>>;
343
+ state_changes: z.ZodArray<z.ZodLazy<z.ZodObject<{
344
+ cause: z.ZodObject<{
345
+ receipt_hash: z.ZodOptional<z.ZodString>;
346
+ transaction_hash: z.ZodOptional<z.ZodString>;
347
+ type: z.ZodString;
348
+ }, z.core.$strip>;
349
+ change: z.ZodObject<{
350
+ account_id: z.ZodOptional<z.ZodString>;
351
+ amount: z.ZodOptional<z.ZodString>;
352
+ code_hash: z.ZodOptional<z.ZodString>;
353
+ locked: z.ZodOptional<z.ZodString>;
354
+ storage_paid_at: z.ZodOptional<z.ZodNumber>;
355
+ storage_usage: z.ZodOptional<z.ZodNumber>;
356
+ }, z.core.$catchall<z.ZodUnknown>>;
357
+ type: z.ZodString;
358
+ }, z.core.$strip>>>;
359
+ }, z.core.$strip>;
360
+ export declare const neardata_state_change_interface_z_const: z.ZodObject<{
361
+ cause: z.ZodObject<{
362
+ receipt_hash: z.ZodOptional<z.ZodString>;
363
+ transaction_hash: z.ZodOptional<z.ZodString>;
364
+ type: z.ZodString;
365
+ }, z.core.$strip>;
366
+ change: z.ZodObject<{
367
+ account_id: z.ZodOptional<z.ZodString>;
368
+ amount: z.ZodOptional<z.ZodString>;
369
+ code_hash: z.ZodOptional<z.ZodString>;
370
+ locked: z.ZodOptional<z.ZodString>;
371
+ storage_paid_at: z.ZodOptional<z.ZodNumber>;
372
+ storage_usage: z.ZodOptional<z.ZodNumber>;
373
+ }, z.core.$catchall<z.ZodUnknown>>;
374
+ type: z.ZodString;
375
+ }, z.core.$strip>;
376
+ export declare const neardata_shard_chunk_interface_z_const: z.ZodObject<{
377
+ author: z.ZodString;
378
+ header: z.ZodObject<{
379
+ chunk_hash: z.ZodString;
380
+ prev_block_hash: z.ZodString;
381
+ outcome_root: z.ZodString;
382
+ prev_state_root: z.ZodString;
383
+ encoded_merkle_root: z.ZodString;
384
+ encoded_length: z.ZodNumber;
385
+ height_created: z.ZodNumber;
386
+ height_included: z.ZodNumber;
387
+ shard_id: z.ZodNumber;
388
+ gas_used: z.ZodNumber;
389
+ gas_limit: z.ZodNumber;
390
+ rent_paid: z.ZodString;
391
+ validator_reward: z.ZodString;
392
+ balance_burnt: z.ZodString;
393
+ outgoing_receipts_root: z.ZodString;
394
+ tx_root: z.ZodString;
395
+ validator_proposals: z.ZodArray<z.ZodAny>;
396
+ congestion_info: z.ZodObject<{
397
+ delayed_receipts_gas: z.ZodString;
398
+ buffered_receipts_gas: z.ZodString;
399
+ receipt_bytes: z.ZodNumber;
400
+ allowed_shard: z.ZodNumber;
401
+ }, z.core.$strip>;
402
+ bandwidth_requests: z.ZodObject<{
403
+ V1: z.ZodObject<{
404
+ requests: z.ZodArray<z.ZodAny>;
405
+ }, z.core.$strip>;
406
+ }, z.core.$strip>;
407
+ signature: z.ZodString;
408
+ }, z.core.$strip>;
409
+ transactions: z.ZodArray<z.ZodObject<{
410
+ transaction: z.ZodLazy<z.ZodObject<{
411
+ signer_id: z.ZodString;
412
+ public_key: z.ZodString;
413
+ nonce: z.ZodNumber;
414
+ receiver_id: z.ZodString;
415
+ actions: z.ZodArray<z.ZodLazy<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
416
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
417
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
418
+ beneficiary_id: z.ZodString;
419
+ }, z.core.$strip>>;
420
+ AddKey: z.ZodOptional<z.ZodObject<{
421
+ public_key: z.ZodString;
422
+ access_key: z.ZodObject<{
423
+ nonce: z.ZodNumber;
424
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
425
+ permission_kind: z.ZodString;
426
+ allowance: z.ZodOptional<z.ZodString>;
427
+ receiver_id: z.ZodOptional<z.ZodString>;
428
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
429
+ }, z.core.$strip>]>;
430
+ }, z.core.$strip>;
431
+ }, z.core.$strip>>;
432
+ FunctionCall: z.ZodOptional<z.ZodObject<{
433
+ method_name: z.ZodString;
434
+ args: z.ZodString;
435
+ gas: z.ZodNumber;
436
+ deposit: z.ZodString;
437
+ }, z.core.$strip>>;
438
+ Transfer: z.ZodOptional<z.ZodObject<{
439
+ deposit: z.ZodString;
440
+ }, z.core.$strip>>;
441
+ Delegate: z.ZodOptional<z.ZodObject<{
442
+ delegate_action: z.ZodObject<{
443
+ sender_id: z.ZodString;
444
+ receiver_id: z.ZodString;
445
+ actions: z.ZodArray<z.ZodObject<{
446
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
447
+ AddKey: z.ZodOptional<z.ZodObject<{
448
+ public_key: z.ZodString;
449
+ access_key: z.ZodObject<{
450
+ nonce: z.ZodNumber;
451
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
452
+ permission_kind: z.ZodString;
453
+ allowance: z.ZodOptional<z.ZodString>;
454
+ receiver_id: z.ZodOptional<z.ZodString>;
455
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
456
+ }, z.core.$strip>]>;
457
+ }, z.core.$strip>;
458
+ }, z.core.$strip>>;
459
+ FunctionCall: z.ZodOptional<z.ZodObject<{
460
+ method_name: z.ZodString;
461
+ args: z.ZodString;
462
+ gas: z.ZodNumber;
463
+ deposit: z.ZodString;
464
+ }, z.core.$strip>>;
465
+ Transfer: z.ZodOptional<z.ZodObject<{
466
+ deposit: z.ZodString;
467
+ }, z.core.$strip>>;
468
+ }, z.core.$catchall<z.ZodAny>>>;
469
+ nonce: z.ZodNumber;
470
+ max_block_height: z.ZodNumber;
471
+ public_key: z.ZodString;
472
+ }, z.core.$strip>;
473
+ signature: z.ZodString;
474
+ }, z.core.$strip>>;
475
+ }, z.core.$catchall<z.ZodAny>>]>>>;
476
+ priority_fee: z.ZodNumber;
477
+ signature: z.ZodString;
478
+ hash: z.ZodString;
479
+ }, z.core.$strip>>;
480
+ outcome: z.ZodObject<{
481
+ execution_outcome: z.ZodLazy<z.ZodObject<{
482
+ proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
483
+ hash: z.ZodString;
484
+ direction: z.ZodEnum<{
485
+ Left: "Left";
486
+ Right: "Right";
487
+ }>;
488
+ }, z.core.$strip>>>;
489
+ block_hash: z.ZodString;
490
+ id: z.ZodString;
491
+ outcome: z.ZodLazy<z.ZodObject<{
492
+ logs: z.ZodArray<z.ZodString>;
493
+ receipt_ids: z.ZodArray<z.ZodString>;
494
+ gas_burnt: z.ZodNumber;
495
+ tokens_burnt: z.ZodString;
496
+ executor_id: z.ZodString;
497
+ status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
498
+ SuccessValue: z.ZodString;
499
+ }, z.core.$strip>, z.ZodObject<{
500
+ SuccessReceiptId: z.ZodString;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
503
+ }, z.core.$strip>]>>;
504
+ metadata: z.ZodLazy<z.ZodObject<{
505
+ version: z.ZodNumber;
506
+ gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
507
+ cost: z.ZodString;
508
+ cost_category: z.ZodString;
509
+ description: z.ZodOptional<z.ZodString>;
510
+ }, z.core.$strip>>>>;
511
+ }, z.core.$strip>>;
512
+ }, z.core.$strip>>;
513
+ }, z.core.$strip>>;
514
+ receipt: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
515
+ }, z.core.$strip>;
516
+ }, z.core.$strip>>;
517
+ receipts: z.ZodArray<z.ZodObject<{
518
+ predecessor_id: z.ZodString;
519
+ receiver_id: z.ZodString;
520
+ receipt_id: z.ZodString;
521
+ receipt: z.ZodLazy<z.ZodObject<{
522
+ Action: z.ZodOptional<z.ZodLazy<z.ZodObject<{
523
+ signer_id: z.ZodString;
524
+ signer_public_key: z.ZodString;
525
+ gas_price: z.ZodString;
526
+ output_data_receivers: z.ZodArray<z.ZodLazy<z.ZodObject<{
527
+ data_id: z.ZodString;
528
+ receiver_id: z.ZodString;
529
+ }, z.core.$strip>>>;
530
+ input_data_ids: z.ZodArray<z.ZodString>;
531
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
532
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
533
+ DeleteAccount: z.ZodOptional<z.ZodObject<{
534
+ beneficiary_id: z.ZodString;
535
+ }, z.core.$strip>>;
536
+ AddKey: z.ZodOptional<z.ZodObject<{
537
+ public_key: z.ZodString;
538
+ access_key: z.ZodObject<{
539
+ nonce: z.ZodNumber;
540
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
541
+ permission_kind: z.ZodString;
542
+ allowance: z.ZodOptional<z.ZodString>;
543
+ receiver_id: z.ZodOptional<z.ZodString>;
544
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
545
+ }, z.core.$strip>]>;
546
+ }, z.core.$strip>;
547
+ }, z.core.$strip>>;
548
+ FunctionCall: z.ZodOptional<z.ZodObject<{
549
+ method_name: z.ZodString;
550
+ args: z.ZodString;
551
+ gas: z.ZodNumber;
552
+ deposit: z.ZodString;
553
+ }, z.core.$strip>>;
554
+ Transfer: z.ZodOptional<z.ZodObject<{
555
+ deposit: z.ZodString;
556
+ }, z.core.$strip>>;
557
+ Delegate: z.ZodOptional<z.ZodObject<{
558
+ delegate_action: z.ZodObject<{
559
+ sender_id: z.ZodString;
560
+ receiver_id: z.ZodString;
561
+ actions: z.ZodArray<z.ZodObject<{
562
+ CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
563
+ AddKey: z.ZodOptional<z.ZodObject<{
564
+ public_key: z.ZodString;
565
+ access_key: z.ZodObject<{
566
+ nonce: z.ZodNumber;
567
+ permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
568
+ permission_kind: z.ZodString;
569
+ allowance: z.ZodOptional<z.ZodString>;
570
+ receiver_id: z.ZodOptional<z.ZodString>;
571
+ method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
572
+ }, z.core.$strip>]>;
573
+ }, z.core.$strip>;
574
+ }, z.core.$strip>>;
575
+ FunctionCall: z.ZodOptional<z.ZodObject<{
576
+ method_name: z.ZodString;
577
+ args: z.ZodString;
578
+ gas: z.ZodNumber;
579
+ deposit: z.ZodString;
580
+ }, z.core.$strip>>;
581
+ Transfer: z.ZodOptional<z.ZodObject<{
582
+ deposit: z.ZodString;
583
+ }, z.core.$strip>>;
584
+ }, z.core.$catchall<z.ZodAny>>>;
585
+ nonce: z.ZodNumber;
586
+ max_block_height: z.ZodNumber;
587
+ public_key: z.ZodString;
588
+ }, z.core.$strip>;
589
+ signature: z.ZodString;
590
+ }, z.core.$strip>>;
591
+ }, z.core.$catchall<z.ZodAny>>]>>;
592
+ is_promise_yield: z.ZodBoolean;
593
+ }, z.core.$strip>>>;
594
+ Data: z.ZodOptional<z.ZodLazy<z.ZodObject<{
595
+ data_id: z.ZodString;
596
+ data: z.ZodNullable<z.ZodString>;
597
+ is_promise_resume: z.ZodBoolean;
598
+ }, z.core.$strip>>>;
599
+ }, z.core.$strip>>;
600
+ priority: z.ZodNumber;
601
+ }, z.core.$strip>>;
602
+ local_receipts: z.ZodArray<z.ZodAny>;
603
+ }, z.core.$strip>;
@@ -0,0 +1,73 @@
1
+ import { z } from "zod";
2
+ import { neardata_transactions_interface_z_const } from "./transactions";
3
+ import { neardata_receipt_interface_z_const, neardata_receipt_execution_outcome_interface_z_const, } from "./receipts";
4
+ // ==================================
5
+ // ==== neardata_shard_interface ====
6
+ export const neardata_shard_interface_z_const = z.object({
7
+ shard_id: z.number(),
8
+ chunk: z.lazy(() => neardata_shard_chunk_interface_z_const),
9
+ receipt_execution_outcomes: z.array(neardata_receipt_execution_outcome_interface_z_const),
10
+ state_changes: z.array(z.lazy(() => neardata_state_change_interface_z_const)),
11
+ });
12
+ // ========================================
13
+ // ==== neardata_state_change_interface ====
14
+ export const neardata_state_change_interface_z_const = z.object({
15
+ cause: z.object({
16
+ receipt_hash: z.string().optional(),
17
+ transaction_hash: z.string().optional(),
18
+ type: z.string(),
19
+ }),
20
+ change: z
21
+ .object({
22
+ account_id: z.string().optional(),
23
+ amount: z.string().optional(),
24
+ code_hash: z.string().optional(),
25
+ locked: z.string().optional(),
26
+ storage_paid_at: z.number().optional(),
27
+ storage_usage: z.number().optional(),
28
+ })
29
+ .catchall(z.unknown()),
30
+ type: z.string(),
31
+ });
32
+ // ========================================
33
+ // ==== neardata_shard_chunk_interface ====
34
+ export const neardata_shard_chunk_interface_z_const = z.object({
35
+ author: z.string(),
36
+ header: z.object({
37
+ chunk_hash: z.string(),
38
+ prev_block_hash: z.string(),
39
+ outcome_root: z.string(),
40
+ prev_state_root: z.string(),
41
+ encoded_merkle_root: z.string(),
42
+ encoded_length: z.number(),
43
+ height_created: z.number(),
44
+ height_included: z.number(),
45
+ shard_id: z.number(),
46
+ gas_used: z.number(),
47
+ gas_limit: z.number(),
48
+ rent_paid: z.string(),
49
+ validator_reward: z.string(),
50
+ balance_burnt: z.string(),
51
+ outgoing_receipts_root: z.string(),
52
+ tx_root: z.string(),
53
+ validator_proposals: z.array(z.any()),
54
+ congestion_info: z.object({
55
+ delayed_receipts_gas: z.string(),
56
+ buffered_receipts_gas: z.string(),
57
+ receipt_bytes: z.number(),
58
+ allowed_shard: z.number(),
59
+ }),
60
+ bandwidth_requests: z.object({
61
+ V1: z.object({
62
+ requests: z.array(z.any()),
63
+ }),
64
+ }),
65
+ signature: z.string(),
66
+ }),
67
+ transactions: z.array(neardata_transactions_interface_z_const),
68
+ receipts: z.array(neardata_receipt_interface_z_const),
69
+ local_receipts: z.array(z.any()),
70
+ });
71
+ // ==============================================
72
+ // copyright 2025 by sleet.near
73
+ //# sourceMappingURL=block_response_shards.js.map