near-kit 0.0.0 → 0.2.0

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 (132) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +473 -2
  3. package/dist/contracts/contract.d.ts +63 -0
  4. package/dist/contracts/contract.d.ts.map +1 -0
  5. package/dist/contracts/contract.js +42 -0
  6. package/dist/contracts/contract.js.map +1 -0
  7. package/dist/contracts/index.d.ts +5 -0
  8. package/dist/contracts/index.d.ts.map +1 -0
  9. package/dist/contracts/index.js +5 -0
  10. package/dist/contracts/index.js.map +1 -0
  11. package/dist/core/actions.d.ts +193 -0
  12. package/dist/core/actions.d.ts.map +1 -0
  13. package/dist/core/actions.js +195 -0
  14. package/dist/core/actions.js.map +1 -0
  15. package/dist/core/config-schemas.d.ts +179 -0
  16. package/dist/core/config-schemas.d.ts.map +1 -0
  17. package/dist/core/config-schemas.js +169 -0
  18. package/dist/core/config-schemas.js.map +1 -0
  19. package/dist/core/constants.d.ts +43 -0
  20. package/dist/core/constants.d.ts.map +1 -0
  21. package/dist/core/constants.js +49 -0
  22. package/dist/core/constants.js.map +1 -0
  23. package/dist/core/near.d.ts +301 -0
  24. package/dist/core/near.d.ts.map +1 -0
  25. package/dist/core/near.js +504 -0
  26. package/dist/core/near.js.map +1 -0
  27. package/dist/core/nonce-manager.d.ts +39 -0
  28. package/dist/core/nonce-manager.d.ts.map +1 -0
  29. package/dist/core/nonce-manager.js +73 -0
  30. package/dist/core/nonce-manager.js.map +1 -0
  31. package/dist/core/rpc/rpc-error-handler.d.ts +60 -0
  32. package/dist/core/rpc/rpc-error-handler.d.ts.map +1 -0
  33. package/dist/core/rpc/rpc-error-handler.js +324 -0
  34. package/dist/core/rpc/rpc-error-handler.js.map +1 -0
  35. package/dist/core/rpc/rpc-schemas.d.ts +1812 -0
  36. package/dist/core/rpc/rpc-schemas.d.ts.map +1 -0
  37. package/dist/core/rpc/rpc-schemas.js +424 -0
  38. package/dist/core/rpc/rpc-schemas.js.map +1 -0
  39. package/dist/core/rpc/rpc.d.ts +117 -0
  40. package/dist/core/rpc/rpc.d.ts.map +1 -0
  41. package/dist/core/rpc/rpc.js +325 -0
  42. package/dist/core/rpc/rpc.js.map +1 -0
  43. package/dist/core/schema.d.ts +1188 -0
  44. package/dist/core/schema.d.ts.map +1 -0
  45. package/dist/core/schema.js +396 -0
  46. package/dist/core/schema.js.map +1 -0
  47. package/dist/core/transaction.d.ts +390 -0
  48. package/dist/core/transaction.d.ts.map +1 -0
  49. package/dist/core/transaction.js +653 -0
  50. package/dist/core/transaction.js.map +1 -0
  51. package/dist/core/types.d.ts +271 -0
  52. package/dist/core/types.d.ts.map +1 -0
  53. package/dist/core/types.js +9 -0
  54. package/dist/core/types.js.map +1 -0
  55. package/dist/errors/index.d.ts +226 -0
  56. package/dist/errors/index.d.ts.map +1 -0
  57. package/dist/errors/index.js +366 -0
  58. package/dist/errors/index.js.map +1 -0
  59. package/dist/index.d.ts +16 -0
  60. package/dist/index.d.ts.map +1 -0
  61. package/dist/index.js +23 -0
  62. package/dist/index.js.map +1 -0
  63. package/dist/keys/credential-schemas.d.ts +98 -0
  64. package/dist/keys/credential-schemas.d.ts.map +1 -0
  65. package/dist/keys/credential-schemas.js +128 -0
  66. package/dist/keys/credential-schemas.js.map +1 -0
  67. package/dist/keys/file-keystore.d.ts +130 -0
  68. package/dist/keys/file-keystore.d.ts.map +1 -0
  69. package/dist/keys/file-keystore.js +266 -0
  70. package/dist/keys/file-keystore.js.map +1 -0
  71. package/dist/keys/in-memory-keystore.d.ts +71 -0
  72. package/dist/keys/in-memory-keystore.d.ts.map +1 -0
  73. package/dist/keys/in-memory-keystore.js +85 -0
  74. package/dist/keys/in-memory-keystore.js.map +1 -0
  75. package/dist/keys/index.d.ts +14 -0
  76. package/dist/keys/index.d.ts.map +1 -0
  77. package/dist/keys/index.js +20 -0
  78. package/dist/keys/index.js.map +1 -0
  79. package/dist/keys/native-keystore.d.ts +111 -0
  80. package/dist/keys/native-keystore.d.ts.map +1 -0
  81. package/dist/keys/native-keystore.js +167 -0
  82. package/dist/keys/native-keystore.js.map +1 -0
  83. package/dist/keys/rotating-keystore.d.ts +207 -0
  84. package/dist/keys/rotating-keystore.d.ts.map +1 -0
  85. package/dist/keys/rotating-keystore.js +240 -0
  86. package/dist/keys/rotating-keystore.js.map +1 -0
  87. package/dist/sandbox/index.d.ts +6 -0
  88. package/dist/sandbox/index.d.ts.map +1 -0
  89. package/dist/sandbox/index.js +5 -0
  90. package/dist/sandbox/index.js.map +1 -0
  91. package/dist/sandbox/sandbox.d.ts +55 -0
  92. package/dist/sandbox/sandbox.d.ts.map +1 -0
  93. package/dist/sandbox/sandbox.js +341 -0
  94. package/dist/sandbox/sandbox.js.map +1 -0
  95. package/dist/utils/amount.d.ts +76 -0
  96. package/dist/utils/amount.d.ts.map +1 -0
  97. package/dist/utils/amount.js +137 -0
  98. package/dist/utils/amount.js.map +1 -0
  99. package/dist/utils/gas.d.ts +69 -0
  100. package/dist/utils/gas.d.ts.map +1 -0
  101. package/dist/utils/gas.js +92 -0
  102. package/dist/utils/gas.js.map +1 -0
  103. package/dist/utils/index.d.ts +14 -0
  104. package/dist/utils/index.d.ts.map +1 -0
  105. package/dist/utils/index.js +14 -0
  106. package/dist/utils/index.js.map +1 -0
  107. package/dist/utils/key.d.ts +117 -0
  108. package/dist/utils/key.d.ts.map +1 -0
  109. package/dist/utils/key.js +270 -0
  110. package/dist/utils/key.js.map +1 -0
  111. package/dist/utils/nep413.d.ts +97 -0
  112. package/dist/utils/nep413.d.ts.map +1 -0
  113. package/dist/utils/nep413.js +154 -0
  114. package/dist/utils/nep413.js.map +1 -0
  115. package/dist/utils/validation.d.ts +114 -0
  116. package/dist/utils/validation.d.ts.map +1 -0
  117. package/dist/utils/validation.js +150 -0
  118. package/dist/utils/validation.js.map +1 -0
  119. package/dist/wallets/adapters.d.ts +119 -0
  120. package/dist/wallets/adapters.d.ts.map +1 -0
  121. package/dist/wallets/adapters.js +267 -0
  122. package/dist/wallets/adapters.js.map +1 -0
  123. package/dist/wallets/index.d.ts +11 -0
  124. package/dist/wallets/index.d.ts.map +1 -0
  125. package/dist/wallets/index.js +2 -0
  126. package/dist/wallets/index.js.map +1 -0
  127. package/dist/wallets/types.d.ts +99 -0
  128. package/dist/wallets/types.d.ts.map +1 -0
  129. package/dist/wallets/types.js +10 -0
  130. package/dist/wallets/types.js.map +1 -0
  131. package/package.json +78 -7
  132. package/index.js +0 -1
@@ -0,0 +1,1812 @@
1
+ /**
2
+ * Zod schemas for NEAR RPC responses
3
+ * Provides runtime validation and type inference
4
+ */
5
+ import { z } from "zod";
6
+ /**
7
+ * Function call permission details schema
8
+ */
9
+ export declare const FunctionCallPermissionDetailsSchema: z.ZodObject<{
10
+ receiver_id: z.ZodString;
11
+ method_names: z.ZodArray<z.ZodString>;
12
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ /**
15
+ * Access key permission schema
16
+ * Either "FullAccess" string or object with FunctionCall details
17
+ */
18
+ export declare const AccessKeyPermissionSchema: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
19
+ FunctionCall: z.ZodObject<{
20
+ receiver_id: z.ZodString;
21
+ method_names: z.ZodArray<z.ZodString>;
22
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$strip>;
24
+ }, z.core.$strip>]>;
25
+ /**
26
+ * View function call result schema
27
+ */
28
+ export declare const ViewFunctionCallResultSchema: z.ZodObject<{
29
+ result: z.ZodArray<z.ZodNumber>;
30
+ logs: z.ZodArray<z.ZodString>;
31
+ block_height: z.ZodNumber;
32
+ block_hash: z.ZodString;
33
+ }, z.core.$strip>;
34
+ /**
35
+ * Account view schema
36
+ */
37
+ export declare const AccountViewSchema: z.ZodObject<{
38
+ amount: z.ZodString;
39
+ locked: z.ZodString;
40
+ code_hash: z.ZodString;
41
+ storage_usage: z.ZodNumber;
42
+ storage_paid_at: z.ZodNumber;
43
+ block_height: z.ZodNumber;
44
+ block_hash: z.ZodString;
45
+ }, z.core.$strip>;
46
+ /**
47
+ * Access key view schema
48
+ */
49
+ export declare const AccessKeyViewSchema: z.ZodObject<{
50
+ nonce: z.ZodNumber;
51
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
52
+ FunctionCall: z.ZodObject<{
53
+ receiver_id: z.ZodString;
54
+ method_names: z.ZodArray<z.ZodString>;
55
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ }, z.core.$strip>;
57
+ }, z.core.$strip>]>;
58
+ block_height: z.ZodNumber;
59
+ block_hash: z.ZodString;
60
+ }, z.core.$strip>;
61
+ /**
62
+ * Access key info view schema
63
+ */
64
+ export declare const AccessKeyInfoViewSchema: z.ZodObject<{
65
+ public_key: z.ZodString;
66
+ access_key: z.ZodObject<{
67
+ nonce: z.ZodNumber;
68
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
69
+ FunctionCall: z.ZodObject<{
70
+ receiver_id: z.ZodString;
71
+ method_names: z.ZodArray<z.ZodString>;
72
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>]>;
75
+ block_height: z.ZodNumber;
76
+ block_hash: z.ZodString;
77
+ }, z.core.$strip>;
78
+ }, z.core.$strip>;
79
+ /**
80
+ * Status response schema
81
+ */
82
+ export declare const StatusResponseSchema: z.ZodObject<{
83
+ version: z.ZodObject<{
84
+ version: z.ZodString;
85
+ build: z.ZodString;
86
+ commit: z.ZodOptional<z.ZodString>;
87
+ rustc_version: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>;
89
+ chain_id: z.ZodString;
90
+ genesis_hash: z.ZodString;
91
+ protocol_version: z.ZodNumber;
92
+ latest_protocol_version: z.ZodNumber;
93
+ rpc_addr: z.ZodString;
94
+ node_public_key: z.ZodString;
95
+ node_key: z.ZodNullable<z.ZodString>;
96
+ validator_account_id: z.ZodNullable<z.ZodString>;
97
+ validator_public_key: z.ZodNullable<z.ZodString>;
98
+ validators: z.ZodArray<z.ZodObject<{
99
+ account_id: z.ZodString;
100
+ }, z.core.$strip>>;
101
+ sync_info: z.ZodObject<{
102
+ latest_block_hash: z.ZodString;
103
+ latest_block_height: z.ZodNumber;
104
+ latest_state_root: z.ZodString;
105
+ latest_block_time: z.ZodString;
106
+ syncing: z.ZodBoolean;
107
+ earliest_block_hash: z.ZodOptional<z.ZodString>;
108
+ earliest_block_height: z.ZodOptional<z.ZodNumber>;
109
+ earliest_block_time: z.ZodOptional<z.ZodString>;
110
+ epoch_id: z.ZodOptional<z.ZodString>;
111
+ epoch_start_height: z.ZodOptional<z.ZodNumber>;
112
+ }, z.core.$strip>;
113
+ uptime_sec: z.ZodOptional<z.ZodNumber>;
114
+ }, z.core.$strip>;
115
+ /**
116
+ * Gas price response schema
117
+ */
118
+ export declare const GasPriceResponseSchema: z.ZodObject<{
119
+ gas_price: z.ZodString;
120
+ }, z.core.$strip>;
121
+ /**
122
+ * Access key list response schema
123
+ */
124
+ export declare const AccessKeyListResponseSchema: z.ZodObject<{
125
+ block_hash: z.ZodString;
126
+ block_height: z.ZodNumber;
127
+ keys: z.ZodArray<z.ZodObject<{
128
+ public_key: z.ZodString;
129
+ access_key: z.ZodObject<{
130
+ nonce: z.ZodNumber;
131
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
132
+ FunctionCall: z.ZodObject<{
133
+ receiver_id: z.ZodString;
134
+ method_names: z.ZodArray<z.ZodString>;
135
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ }, z.core.$strip>;
137
+ }, z.core.$strip>]>;
138
+ }, z.core.$strip>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>;
141
+ /**
142
+ * RPC error response schema
143
+ * Follows the NEAR RPC error structure with name, cause, code, message, and data
144
+ */
145
+ export declare const RpcErrorResponseSchema: z.ZodObject<{
146
+ name: z.ZodString;
147
+ code: z.ZodNumber;
148
+ message: z.ZodString;
149
+ data: z.ZodOptional<z.ZodAny>;
150
+ cause: z.ZodOptional<z.ZodObject<{
151
+ name: z.ZodString;
152
+ info: z.ZodOptional<z.ZodObject<{
153
+ requested_account_id: z.ZodOptional<z.ZodString>;
154
+ contract_id: z.ZodOptional<z.ZodString>;
155
+ method_name: z.ZodOptional<z.ZodString>;
156
+ ShardCongested: z.ZodOptional<z.ZodBoolean>;
157
+ ShardStuck: z.ZodOptional<z.ZodBoolean>;
158
+ }, z.core.$catchall<z.ZodAny>>>;
159
+ }, z.core.$strip>>;
160
+ }, z.core.$strip>;
161
+ /**
162
+ * Transaction execution status enum
163
+ */
164
+ export declare const TxExecutionStatusSchema: z.ZodEnum<{
165
+ NONE: "NONE";
166
+ INCLUDED: "INCLUDED";
167
+ EXECUTED_OPTIMISTIC: "EXECUTED_OPTIMISTIC";
168
+ INCLUDED_FINAL: "INCLUDED_FINAL";
169
+ EXECUTED: "EXECUTED";
170
+ FINAL: "FINAL";
171
+ }>;
172
+ /**
173
+ * Execution status - can be success with value/receipt or failure
174
+ *
175
+ * Variants returned depend on waitUntil level:
176
+ * - NONE/INCLUDED: Unknown or Pending (execution not started/incomplete)
177
+ * - EXECUTED_OPTIMISTIC/EXECUTED/FINAL: SuccessValue, SuccessReceiptId, or Failure
178
+ */
179
+ export declare const ExecutionStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
180
+ SuccessValue: z.ZodString;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ SuccessReceiptId: z.ZodString;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ Failure: z.ZodObject<{
185
+ error_message: z.ZodOptional<z.ZodString>;
186
+ error_type: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$catchall<z.ZodAny>>;
188
+ }, z.core.$strip>]>;
189
+ /**
190
+ * Gas profile entry (for metadata)
191
+ */
192
+ export declare const GasProfileEntrySchema: z.ZodObject<{
193
+ cost: z.ZodOptional<z.ZodString>;
194
+ cost_category: z.ZodOptional<z.ZodString>;
195
+ gas_used: z.ZodOptional<z.ZodString>;
196
+ }, z.core.$catchall<z.ZodAny>>;
197
+ /**
198
+ * Execution metadata
199
+ */
200
+ export declare const ExecutionMetadataSchema: z.ZodObject<{
201
+ version: z.ZodNumber;
202
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
203
+ cost: z.ZodOptional<z.ZodString>;
204
+ cost_category: z.ZodOptional<z.ZodString>;
205
+ gas_used: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$catchall<z.ZodAny>>>>>;
207
+ }, z.core.$strip>;
208
+ /**
209
+ * Execution outcome
210
+ */
211
+ export declare const ExecutionOutcomeSchema: z.ZodObject<{
212
+ logs: z.ZodArray<z.ZodString>;
213
+ receipt_ids: z.ZodArray<z.ZodString>;
214
+ gas_burnt: z.ZodNumber;
215
+ tokens_burnt: z.ZodString;
216
+ executor_id: z.ZodString;
217
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
218
+ SuccessValue: z.ZodString;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ SuccessReceiptId: z.ZodString;
221
+ }, z.core.$strip>, z.ZodObject<{
222
+ Failure: z.ZodObject<{
223
+ error_message: z.ZodOptional<z.ZodString>;
224
+ error_type: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$catchall<z.ZodAny>>;
226
+ }, z.core.$strip>]>;
227
+ metadata: z.ZodOptional<z.ZodObject<{
228
+ version: z.ZodNumber;
229
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
230
+ cost: z.ZodOptional<z.ZodString>;
231
+ cost_category: z.ZodOptional<z.ZodString>;
232
+ gas_used: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$catchall<z.ZodAny>>>>>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>;
236
+ /**
237
+ * Merkle path item for cryptographic proofs
238
+ */
239
+ export declare const MerklePathItemSchema: z.ZodObject<{
240
+ hash: z.ZodString;
241
+ direction: z.ZodEnum<{
242
+ Left: "Left";
243
+ Right: "Right";
244
+ }>;
245
+ }, z.core.$strip>;
246
+ /**
247
+ * Execution outcome with ID (used in transaction results)
248
+ */
249
+ export declare const ExecutionOutcomeWithIdSchema: z.ZodObject<{
250
+ id: z.ZodString;
251
+ outcome: z.ZodObject<{
252
+ logs: z.ZodArray<z.ZodString>;
253
+ receipt_ids: z.ZodArray<z.ZodString>;
254
+ gas_burnt: z.ZodNumber;
255
+ tokens_burnt: z.ZodString;
256
+ executor_id: z.ZodString;
257
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
258
+ SuccessValue: z.ZodString;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ SuccessReceiptId: z.ZodString;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ Failure: z.ZodObject<{
263
+ error_message: z.ZodOptional<z.ZodString>;
264
+ error_type: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$catchall<z.ZodAny>>;
266
+ }, z.core.$strip>]>;
267
+ metadata: z.ZodOptional<z.ZodObject<{
268
+ version: z.ZodNumber;
269
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
270
+ cost: z.ZodOptional<z.ZodString>;
271
+ cost_category: z.ZodOptional<z.ZodString>;
272
+ gas_used: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$catchall<z.ZodAny>>>>>;
274
+ }, z.core.$strip>>;
275
+ }, z.core.$strip>;
276
+ block_hash: z.ZodString;
277
+ proof: z.ZodArray<z.ZodObject<{
278
+ hash: z.ZodString;
279
+ direction: z.ZodEnum<{
280
+ Left: "Left";
281
+ Right: "Right";
282
+ }>;
283
+ }, z.core.$strip>>;
284
+ }, z.core.$strip>;
285
+ /**
286
+ * Action schemas - matches RPC response format
287
+ * Note: RPC returns actions with no parameters as strings (e.g., "CreateAccount")
288
+ * instead of objects (e.g., { "CreateAccount": {} })
289
+ */
290
+ export declare const ActionSchema: z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
291
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
292
+ }, z.core.$strip>, z.ZodObject<{
293
+ Transfer: z.ZodObject<{
294
+ deposit: z.ZodString;
295
+ }, z.core.$strip>;
296
+ }, z.core.$strip>, z.ZodObject<{
297
+ FunctionCall: z.ZodObject<{
298
+ method_name: z.ZodString;
299
+ args: z.ZodString;
300
+ gas: z.ZodNumber;
301
+ deposit: z.ZodString;
302
+ }, z.core.$strip>;
303
+ }, z.core.$strip>, z.ZodObject<{
304
+ DeployContract: z.ZodObject<{
305
+ code: z.ZodString;
306
+ }, z.core.$strip>;
307
+ }, z.core.$strip>, z.ZodObject<{
308
+ DeployGlobalContractByAccountId: z.ZodObject<{
309
+ code: z.ZodString;
310
+ }, z.core.$strip>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ DeployGlobalContractByCodeHash: z.ZodObject<{
313
+ code: z.ZodString;
314
+ }, z.core.$strip>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ Stake: z.ZodObject<{
317
+ stake: z.ZodString;
318
+ public_key: z.ZodString;
319
+ }, z.core.$strip>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ AddKey: z.ZodObject<{
322
+ public_key: z.ZodString;
323
+ access_key: z.ZodObject<{
324
+ nonce: z.ZodNumber;
325
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
326
+ FunctionCall: z.ZodObject<{
327
+ receiver_id: z.ZodString;
328
+ method_names: z.ZodArray<z.ZodString>;
329
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ }, z.core.$strip>;
331
+ }, z.core.$strip>]>;
332
+ }, z.core.$strip>;
333
+ }, z.core.$strip>;
334
+ }, z.core.$strip>, z.ZodObject<{
335
+ DeleteKey: z.ZodObject<{
336
+ public_key: z.ZodString;
337
+ }, z.core.$strip>;
338
+ }, z.core.$strip>, z.ZodObject<{
339
+ DeleteAccount: z.ZodObject<{
340
+ beneficiary_id: z.ZodString;
341
+ }, z.core.$strip>;
342
+ }, z.core.$strip>, z.ZodObject<{
343
+ UseGlobalContractByAccountId: z.ZodObject<{
344
+ account_id: z.ZodString;
345
+ }, z.core.$strip>;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ UseGlobalContractByCodeHash: z.ZodObject<{
348
+ code_hash: z.ZodString;
349
+ }, z.core.$strip>;
350
+ }, z.core.$strip>, z.ZodObject<{
351
+ Delegate: z.ZodObject<{
352
+ delegate_action: z.ZodObject<{
353
+ sender_id: z.ZodString;
354
+ receiver_id: z.ZodString;
355
+ actions: z.ZodArray<z.ZodAny>;
356
+ nonce: z.ZodNumber;
357
+ max_block_height: z.ZodNumber;
358
+ public_key: z.ZodString;
359
+ }, z.core.$strip>;
360
+ signature: z.ZodString;
361
+ }, z.core.$strip>;
362
+ }, z.core.$strip>]>;
363
+ /**
364
+ * Transaction schema (as returned by RPC)
365
+ */
366
+ export declare const TransactionSchema: z.ZodObject<{
367
+ signer_id: z.ZodString;
368
+ public_key: z.ZodString;
369
+ nonce: z.ZodNumber;
370
+ receiver_id: z.ZodString;
371
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
372
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
373
+ }, z.core.$strip>, z.ZodObject<{
374
+ Transfer: z.ZodObject<{
375
+ deposit: z.ZodString;
376
+ }, z.core.$strip>;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ FunctionCall: z.ZodObject<{
379
+ method_name: z.ZodString;
380
+ args: z.ZodString;
381
+ gas: z.ZodNumber;
382
+ deposit: z.ZodString;
383
+ }, z.core.$strip>;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ DeployContract: z.ZodObject<{
386
+ code: z.ZodString;
387
+ }, z.core.$strip>;
388
+ }, z.core.$strip>, z.ZodObject<{
389
+ DeployGlobalContractByAccountId: z.ZodObject<{
390
+ code: z.ZodString;
391
+ }, z.core.$strip>;
392
+ }, z.core.$strip>, z.ZodObject<{
393
+ DeployGlobalContractByCodeHash: z.ZodObject<{
394
+ code: z.ZodString;
395
+ }, z.core.$strip>;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ Stake: z.ZodObject<{
398
+ stake: z.ZodString;
399
+ public_key: z.ZodString;
400
+ }, z.core.$strip>;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ AddKey: z.ZodObject<{
403
+ public_key: z.ZodString;
404
+ access_key: z.ZodObject<{
405
+ nonce: z.ZodNumber;
406
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
407
+ FunctionCall: z.ZodObject<{
408
+ receiver_id: z.ZodString;
409
+ method_names: z.ZodArray<z.ZodString>;
410
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ }, z.core.$strip>;
412
+ }, z.core.$strip>]>;
413
+ }, z.core.$strip>;
414
+ }, z.core.$strip>;
415
+ }, z.core.$strip>, z.ZodObject<{
416
+ DeleteKey: z.ZodObject<{
417
+ public_key: z.ZodString;
418
+ }, z.core.$strip>;
419
+ }, z.core.$strip>, z.ZodObject<{
420
+ DeleteAccount: z.ZodObject<{
421
+ beneficiary_id: z.ZodString;
422
+ }, z.core.$strip>;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ UseGlobalContractByAccountId: z.ZodObject<{
425
+ account_id: z.ZodString;
426
+ }, z.core.$strip>;
427
+ }, z.core.$strip>, z.ZodObject<{
428
+ UseGlobalContractByCodeHash: z.ZodObject<{
429
+ code_hash: z.ZodString;
430
+ }, z.core.$strip>;
431
+ }, z.core.$strip>, z.ZodObject<{
432
+ Delegate: z.ZodObject<{
433
+ delegate_action: z.ZodObject<{
434
+ sender_id: z.ZodString;
435
+ receiver_id: z.ZodString;
436
+ actions: z.ZodArray<z.ZodAny>;
437
+ nonce: z.ZodNumber;
438
+ max_block_height: z.ZodNumber;
439
+ public_key: z.ZodString;
440
+ }, z.core.$strip>;
441
+ signature: z.ZodString;
442
+ }, z.core.$strip>;
443
+ }, z.core.$strip>]>>;
444
+ signature: z.ZodString;
445
+ hash: z.ZodString;
446
+ priority_fee: z.ZodOptional<z.ZodNumber>;
447
+ }, z.core.$strip>;
448
+ /**
449
+ * Minimal transaction schema for NONE/INCLUDED/INCLUDED_FINAL responses.
450
+ *
451
+ * This contains just enough information for transaction tracking:
452
+ * - hash: Transaction hash for lookups
453
+ * - signer_id: Account that signed the transaction
454
+ * - receiver_id: Account receiving the transaction
455
+ * - nonce: Transaction nonce for debugging
456
+ *
457
+ * Note: The client library injects this object for NONE/INCLUDED/INCLUDED_FINAL
458
+ * responses to ensure transaction.hash is always available.
459
+ */
460
+ export declare const MinimalTransactionSchema: z.ZodObject<{
461
+ hash: z.ZodString;
462
+ signer_id: z.ZodString;
463
+ receiver_id: z.ZodString;
464
+ nonce: z.ZodNumber;
465
+ }, z.core.$strip>;
466
+ /**
467
+ * Final execution outcome schema - the response from send_tx
468
+ *
469
+ * Uses discriminated union based on final_execution_status for type safety:
470
+ * - NONE: Transaction submitted but not executed yet (minimal response with transaction hash)
471
+ * - INCLUDED: Transaction included in block (minimal response with transaction hash)
472
+ * - EXECUTED_OPTIMISTIC/EXECUTED/FINAL: Transaction executed (full response)
473
+ *
474
+ * Note: For NONE/INCLUDED/INCLUDED_FINAL, the RPC doesn't return transaction details,
475
+ * but the client library injects a minimal transaction object to ensure hash tracking.
476
+ */
477
+ export declare const FinalExecutionOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
478
+ final_execution_status: z.ZodLiteral<"NONE">;
479
+ transaction: z.ZodOptional<z.ZodObject<{
480
+ hash: z.ZodString;
481
+ signer_id: z.ZodString;
482
+ receiver_id: z.ZodString;
483
+ nonce: z.ZodNumber;
484
+ }, z.core.$strip>>;
485
+ }, z.core.$strip>, z.ZodObject<{
486
+ final_execution_status: z.ZodLiteral<"INCLUDED">;
487
+ transaction: z.ZodOptional<z.ZodObject<{
488
+ hash: z.ZodString;
489
+ signer_id: z.ZodString;
490
+ receiver_id: z.ZodString;
491
+ nonce: z.ZodNumber;
492
+ }, z.core.$strip>>;
493
+ }, z.core.$strip>, z.ZodObject<{
494
+ final_execution_status: z.ZodLiteral<"INCLUDED_FINAL">;
495
+ transaction: z.ZodOptional<z.ZodObject<{
496
+ hash: z.ZodString;
497
+ signer_id: z.ZodString;
498
+ receiver_id: z.ZodString;
499
+ nonce: z.ZodNumber;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ final_execution_status: z.ZodLiteral<"EXECUTED_OPTIMISTIC">;
503
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
504
+ SuccessValue: z.ZodString;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ SuccessReceiptId: z.ZodString;
507
+ }, z.core.$strip>, z.ZodObject<{
508
+ Failure: z.ZodObject<{
509
+ error_message: z.ZodOptional<z.ZodString>;
510
+ error_type: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$catchall<z.ZodAny>>;
512
+ }, z.core.$strip>]>;
513
+ transaction: z.ZodObject<{
514
+ signer_id: z.ZodString;
515
+ public_key: z.ZodString;
516
+ nonce: z.ZodNumber;
517
+ receiver_id: z.ZodString;
518
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
519
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ Transfer: z.ZodObject<{
522
+ deposit: z.ZodString;
523
+ }, z.core.$strip>;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ FunctionCall: z.ZodObject<{
526
+ method_name: z.ZodString;
527
+ args: z.ZodString;
528
+ gas: z.ZodNumber;
529
+ deposit: z.ZodString;
530
+ }, z.core.$strip>;
531
+ }, z.core.$strip>, z.ZodObject<{
532
+ DeployContract: z.ZodObject<{
533
+ code: z.ZodString;
534
+ }, z.core.$strip>;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ DeployGlobalContractByAccountId: z.ZodObject<{
537
+ code: z.ZodString;
538
+ }, z.core.$strip>;
539
+ }, z.core.$strip>, z.ZodObject<{
540
+ DeployGlobalContractByCodeHash: z.ZodObject<{
541
+ code: z.ZodString;
542
+ }, z.core.$strip>;
543
+ }, z.core.$strip>, z.ZodObject<{
544
+ Stake: z.ZodObject<{
545
+ stake: z.ZodString;
546
+ public_key: z.ZodString;
547
+ }, z.core.$strip>;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ AddKey: z.ZodObject<{
550
+ public_key: z.ZodString;
551
+ access_key: z.ZodObject<{
552
+ nonce: z.ZodNumber;
553
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
554
+ FunctionCall: z.ZodObject<{
555
+ receiver_id: z.ZodString;
556
+ method_names: z.ZodArray<z.ZodString>;
557
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
+ }, z.core.$strip>;
559
+ }, z.core.$strip>]>;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>;
562
+ }, z.core.$strip>, z.ZodObject<{
563
+ DeleteKey: z.ZodObject<{
564
+ public_key: z.ZodString;
565
+ }, z.core.$strip>;
566
+ }, z.core.$strip>, z.ZodObject<{
567
+ DeleteAccount: z.ZodObject<{
568
+ beneficiary_id: z.ZodString;
569
+ }, z.core.$strip>;
570
+ }, z.core.$strip>, z.ZodObject<{
571
+ UseGlobalContractByAccountId: z.ZodObject<{
572
+ account_id: z.ZodString;
573
+ }, z.core.$strip>;
574
+ }, z.core.$strip>, z.ZodObject<{
575
+ UseGlobalContractByCodeHash: z.ZodObject<{
576
+ code_hash: z.ZodString;
577
+ }, z.core.$strip>;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ Delegate: z.ZodObject<{
580
+ delegate_action: z.ZodObject<{
581
+ sender_id: z.ZodString;
582
+ receiver_id: z.ZodString;
583
+ actions: z.ZodArray<z.ZodAny>;
584
+ nonce: z.ZodNumber;
585
+ max_block_height: z.ZodNumber;
586
+ public_key: z.ZodString;
587
+ }, z.core.$strip>;
588
+ signature: z.ZodString;
589
+ }, z.core.$strip>;
590
+ }, z.core.$strip>]>>;
591
+ signature: z.ZodString;
592
+ hash: z.ZodString;
593
+ priority_fee: z.ZodOptional<z.ZodNumber>;
594
+ }, z.core.$strip>;
595
+ transaction_outcome: z.ZodObject<{
596
+ id: z.ZodString;
597
+ outcome: z.ZodObject<{
598
+ logs: z.ZodArray<z.ZodString>;
599
+ receipt_ids: z.ZodArray<z.ZodString>;
600
+ gas_burnt: z.ZodNumber;
601
+ tokens_burnt: z.ZodString;
602
+ executor_id: z.ZodString;
603
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
604
+ SuccessValue: z.ZodString;
605
+ }, z.core.$strip>, z.ZodObject<{
606
+ SuccessReceiptId: z.ZodString;
607
+ }, z.core.$strip>, z.ZodObject<{
608
+ Failure: z.ZodObject<{
609
+ error_message: z.ZodOptional<z.ZodString>;
610
+ error_type: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$catchall<z.ZodAny>>;
612
+ }, z.core.$strip>]>;
613
+ metadata: z.ZodOptional<z.ZodObject<{
614
+ version: z.ZodNumber;
615
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
616
+ cost: z.ZodOptional<z.ZodString>;
617
+ cost_category: z.ZodOptional<z.ZodString>;
618
+ gas_used: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$catchall<z.ZodAny>>>>>;
620
+ }, z.core.$strip>>;
621
+ }, z.core.$strip>;
622
+ block_hash: z.ZodString;
623
+ proof: z.ZodArray<z.ZodObject<{
624
+ hash: z.ZodString;
625
+ direction: z.ZodEnum<{
626
+ Left: "Left";
627
+ Right: "Right";
628
+ }>;
629
+ }, z.core.$strip>>;
630
+ }, z.core.$strip>;
631
+ receipts_outcome: z.ZodArray<z.ZodObject<{
632
+ id: z.ZodString;
633
+ outcome: z.ZodObject<{
634
+ logs: z.ZodArray<z.ZodString>;
635
+ receipt_ids: z.ZodArray<z.ZodString>;
636
+ gas_burnt: z.ZodNumber;
637
+ tokens_burnt: z.ZodString;
638
+ executor_id: z.ZodString;
639
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
640
+ SuccessValue: z.ZodString;
641
+ }, z.core.$strip>, z.ZodObject<{
642
+ SuccessReceiptId: z.ZodString;
643
+ }, z.core.$strip>, z.ZodObject<{
644
+ Failure: z.ZodObject<{
645
+ error_message: z.ZodOptional<z.ZodString>;
646
+ error_type: z.ZodOptional<z.ZodString>;
647
+ }, z.core.$catchall<z.ZodAny>>;
648
+ }, z.core.$strip>]>;
649
+ metadata: z.ZodOptional<z.ZodObject<{
650
+ version: z.ZodNumber;
651
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
652
+ cost: z.ZodOptional<z.ZodString>;
653
+ cost_category: z.ZodOptional<z.ZodString>;
654
+ gas_used: z.ZodOptional<z.ZodString>;
655
+ }, z.core.$catchall<z.ZodAny>>>>>;
656
+ }, z.core.$strip>>;
657
+ }, z.core.$strip>;
658
+ block_hash: z.ZodString;
659
+ proof: z.ZodArray<z.ZodObject<{
660
+ hash: z.ZodString;
661
+ direction: z.ZodEnum<{
662
+ Left: "Left";
663
+ Right: "Right";
664
+ }>;
665
+ }, z.core.$strip>>;
666
+ }, z.core.$strip>>;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ final_execution_status: z.ZodLiteral<"EXECUTED">;
669
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
670
+ SuccessValue: z.ZodString;
671
+ }, z.core.$strip>, z.ZodObject<{
672
+ SuccessReceiptId: z.ZodString;
673
+ }, z.core.$strip>, z.ZodObject<{
674
+ Failure: z.ZodObject<{
675
+ error_message: z.ZodOptional<z.ZodString>;
676
+ error_type: z.ZodOptional<z.ZodString>;
677
+ }, z.core.$catchall<z.ZodAny>>;
678
+ }, z.core.$strip>]>;
679
+ transaction: z.ZodObject<{
680
+ signer_id: z.ZodString;
681
+ public_key: z.ZodString;
682
+ nonce: z.ZodNumber;
683
+ receiver_id: z.ZodString;
684
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
685
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
686
+ }, z.core.$strip>, z.ZodObject<{
687
+ Transfer: z.ZodObject<{
688
+ deposit: z.ZodString;
689
+ }, z.core.$strip>;
690
+ }, z.core.$strip>, z.ZodObject<{
691
+ FunctionCall: z.ZodObject<{
692
+ method_name: z.ZodString;
693
+ args: z.ZodString;
694
+ gas: z.ZodNumber;
695
+ deposit: z.ZodString;
696
+ }, z.core.$strip>;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ DeployContract: z.ZodObject<{
699
+ code: z.ZodString;
700
+ }, z.core.$strip>;
701
+ }, z.core.$strip>, z.ZodObject<{
702
+ DeployGlobalContractByAccountId: z.ZodObject<{
703
+ code: z.ZodString;
704
+ }, z.core.$strip>;
705
+ }, z.core.$strip>, z.ZodObject<{
706
+ DeployGlobalContractByCodeHash: z.ZodObject<{
707
+ code: z.ZodString;
708
+ }, z.core.$strip>;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ Stake: z.ZodObject<{
711
+ stake: z.ZodString;
712
+ public_key: z.ZodString;
713
+ }, z.core.$strip>;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ AddKey: z.ZodObject<{
716
+ public_key: z.ZodString;
717
+ access_key: z.ZodObject<{
718
+ nonce: z.ZodNumber;
719
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
720
+ FunctionCall: z.ZodObject<{
721
+ receiver_id: z.ZodString;
722
+ method_names: z.ZodArray<z.ZodString>;
723
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
724
+ }, z.core.$strip>;
725
+ }, z.core.$strip>]>;
726
+ }, z.core.$strip>;
727
+ }, z.core.$strip>;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ DeleteKey: z.ZodObject<{
730
+ public_key: z.ZodString;
731
+ }, z.core.$strip>;
732
+ }, z.core.$strip>, z.ZodObject<{
733
+ DeleteAccount: z.ZodObject<{
734
+ beneficiary_id: z.ZodString;
735
+ }, z.core.$strip>;
736
+ }, z.core.$strip>, z.ZodObject<{
737
+ UseGlobalContractByAccountId: z.ZodObject<{
738
+ account_id: z.ZodString;
739
+ }, z.core.$strip>;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ UseGlobalContractByCodeHash: z.ZodObject<{
742
+ code_hash: z.ZodString;
743
+ }, z.core.$strip>;
744
+ }, z.core.$strip>, z.ZodObject<{
745
+ Delegate: z.ZodObject<{
746
+ delegate_action: z.ZodObject<{
747
+ sender_id: z.ZodString;
748
+ receiver_id: z.ZodString;
749
+ actions: z.ZodArray<z.ZodAny>;
750
+ nonce: z.ZodNumber;
751
+ max_block_height: z.ZodNumber;
752
+ public_key: z.ZodString;
753
+ }, z.core.$strip>;
754
+ signature: z.ZodString;
755
+ }, z.core.$strip>;
756
+ }, z.core.$strip>]>>;
757
+ signature: z.ZodString;
758
+ hash: z.ZodString;
759
+ priority_fee: z.ZodOptional<z.ZodNumber>;
760
+ }, z.core.$strip>;
761
+ transaction_outcome: z.ZodObject<{
762
+ id: z.ZodString;
763
+ outcome: z.ZodObject<{
764
+ logs: z.ZodArray<z.ZodString>;
765
+ receipt_ids: z.ZodArray<z.ZodString>;
766
+ gas_burnt: z.ZodNumber;
767
+ tokens_burnt: z.ZodString;
768
+ executor_id: z.ZodString;
769
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
770
+ SuccessValue: z.ZodString;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ SuccessReceiptId: z.ZodString;
773
+ }, z.core.$strip>, z.ZodObject<{
774
+ Failure: z.ZodObject<{
775
+ error_message: z.ZodOptional<z.ZodString>;
776
+ error_type: z.ZodOptional<z.ZodString>;
777
+ }, z.core.$catchall<z.ZodAny>>;
778
+ }, z.core.$strip>]>;
779
+ metadata: z.ZodOptional<z.ZodObject<{
780
+ version: z.ZodNumber;
781
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
782
+ cost: z.ZodOptional<z.ZodString>;
783
+ cost_category: z.ZodOptional<z.ZodString>;
784
+ gas_used: z.ZodOptional<z.ZodString>;
785
+ }, z.core.$catchall<z.ZodAny>>>>>;
786
+ }, z.core.$strip>>;
787
+ }, z.core.$strip>;
788
+ block_hash: z.ZodString;
789
+ proof: z.ZodArray<z.ZodObject<{
790
+ hash: z.ZodString;
791
+ direction: z.ZodEnum<{
792
+ Left: "Left";
793
+ Right: "Right";
794
+ }>;
795
+ }, z.core.$strip>>;
796
+ }, z.core.$strip>;
797
+ receipts_outcome: z.ZodArray<z.ZodObject<{
798
+ id: z.ZodString;
799
+ outcome: z.ZodObject<{
800
+ logs: z.ZodArray<z.ZodString>;
801
+ receipt_ids: z.ZodArray<z.ZodString>;
802
+ gas_burnt: z.ZodNumber;
803
+ tokens_burnt: z.ZodString;
804
+ executor_id: z.ZodString;
805
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
806
+ SuccessValue: z.ZodString;
807
+ }, z.core.$strip>, z.ZodObject<{
808
+ SuccessReceiptId: z.ZodString;
809
+ }, z.core.$strip>, z.ZodObject<{
810
+ Failure: z.ZodObject<{
811
+ error_message: z.ZodOptional<z.ZodString>;
812
+ error_type: z.ZodOptional<z.ZodString>;
813
+ }, z.core.$catchall<z.ZodAny>>;
814
+ }, z.core.$strip>]>;
815
+ metadata: z.ZodOptional<z.ZodObject<{
816
+ version: z.ZodNumber;
817
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
818
+ cost: z.ZodOptional<z.ZodString>;
819
+ cost_category: z.ZodOptional<z.ZodString>;
820
+ gas_used: z.ZodOptional<z.ZodString>;
821
+ }, z.core.$catchall<z.ZodAny>>>>>;
822
+ }, z.core.$strip>>;
823
+ }, z.core.$strip>;
824
+ block_hash: z.ZodString;
825
+ proof: z.ZodArray<z.ZodObject<{
826
+ hash: z.ZodString;
827
+ direction: z.ZodEnum<{
828
+ Left: "Left";
829
+ Right: "Right";
830
+ }>;
831
+ }, z.core.$strip>>;
832
+ }, z.core.$strip>>;
833
+ }, z.core.$strip>, z.ZodObject<{
834
+ final_execution_status: z.ZodLiteral<"FINAL">;
835
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
836
+ SuccessValue: z.ZodString;
837
+ }, z.core.$strip>, z.ZodObject<{
838
+ SuccessReceiptId: z.ZodString;
839
+ }, z.core.$strip>, z.ZodObject<{
840
+ Failure: z.ZodObject<{
841
+ error_message: z.ZodOptional<z.ZodString>;
842
+ error_type: z.ZodOptional<z.ZodString>;
843
+ }, z.core.$catchall<z.ZodAny>>;
844
+ }, z.core.$strip>]>;
845
+ transaction: z.ZodObject<{
846
+ signer_id: z.ZodString;
847
+ public_key: z.ZodString;
848
+ nonce: z.ZodNumber;
849
+ receiver_id: z.ZodString;
850
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
851
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ Transfer: z.ZodObject<{
854
+ deposit: z.ZodString;
855
+ }, z.core.$strip>;
856
+ }, z.core.$strip>, z.ZodObject<{
857
+ FunctionCall: z.ZodObject<{
858
+ method_name: z.ZodString;
859
+ args: z.ZodString;
860
+ gas: z.ZodNumber;
861
+ deposit: z.ZodString;
862
+ }, z.core.$strip>;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ DeployContract: z.ZodObject<{
865
+ code: z.ZodString;
866
+ }, z.core.$strip>;
867
+ }, z.core.$strip>, z.ZodObject<{
868
+ DeployGlobalContractByAccountId: z.ZodObject<{
869
+ code: z.ZodString;
870
+ }, z.core.$strip>;
871
+ }, z.core.$strip>, z.ZodObject<{
872
+ DeployGlobalContractByCodeHash: z.ZodObject<{
873
+ code: z.ZodString;
874
+ }, z.core.$strip>;
875
+ }, z.core.$strip>, z.ZodObject<{
876
+ Stake: z.ZodObject<{
877
+ stake: z.ZodString;
878
+ public_key: z.ZodString;
879
+ }, z.core.$strip>;
880
+ }, z.core.$strip>, z.ZodObject<{
881
+ AddKey: z.ZodObject<{
882
+ public_key: z.ZodString;
883
+ access_key: z.ZodObject<{
884
+ nonce: z.ZodNumber;
885
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
886
+ FunctionCall: z.ZodObject<{
887
+ receiver_id: z.ZodString;
888
+ method_names: z.ZodArray<z.ZodString>;
889
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
890
+ }, z.core.$strip>;
891
+ }, z.core.$strip>]>;
892
+ }, z.core.$strip>;
893
+ }, z.core.$strip>;
894
+ }, z.core.$strip>, z.ZodObject<{
895
+ DeleteKey: z.ZodObject<{
896
+ public_key: z.ZodString;
897
+ }, z.core.$strip>;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ DeleteAccount: z.ZodObject<{
900
+ beneficiary_id: z.ZodString;
901
+ }, z.core.$strip>;
902
+ }, z.core.$strip>, z.ZodObject<{
903
+ UseGlobalContractByAccountId: z.ZodObject<{
904
+ account_id: z.ZodString;
905
+ }, z.core.$strip>;
906
+ }, z.core.$strip>, z.ZodObject<{
907
+ UseGlobalContractByCodeHash: z.ZodObject<{
908
+ code_hash: z.ZodString;
909
+ }, z.core.$strip>;
910
+ }, z.core.$strip>, z.ZodObject<{
911
+ Delegate: z.ZodObject<{
912
+ delegate_action: z.ZodObject<{
913
+ sender_id: z.ZodString;
914
+ receiver_id: z.ZodString;
915
+ actions: z.ZodArray<z.ZodAny>;
916
+ nonce: z.ZodNumber;
917
+ max_block_height: z.ZodNumber;
918
+ public_key: z.ZodString;
919
+ }, z.core.$strip>;
920
+ signature: z.ZodString;
921
+ }, z.core.$strip>;
922
+ }, z.core.$strip>]>>;
923
+ signature: z.ZodString;
924
+ hash: z.ZodString;
925
+ priority_fee: z.ZodOptional<z.ZodNumber>;
926
+ }, z.core.$strip>;
927
+ transaction_outcome: z.ZodObject<{
928
+ id: z.ZodString;
929
+ outcome: z.ZodObject<{
930
+ logs: z.ZodArray<z.ZodString>;
931
+ receipt_ids: z.ZodArray<z.ZodString>;
932
+ gas_burnt: z.ZodNumber;
933
+ tokens_burnt: z.ZodString;
934
+ executor_id: z.ZodString;
935
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
936
+ SuccessValue: z.ZodString;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ SuccessReceiptId: z.ZodString;
939
+ }, z.core.$strip>, z.ZodObject<{
940
+ Failure: z.ZodObject<{
941
+ error_message: z.ZodOptional<z.ZodString>;
942
+ error_type: z.ZodOptional<z.ZodString>;
943
+ }, z.core.$catchall<z.ZodAny>>;
944
+ }, z.core.$strip>]>;
945
+ metadata: z.ZodOptional<z.ZodObject<{
946
+ version: z.ZodNumber;
947
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
948
+ cost: z.ZodOptional<z.ZodString>;
949
+ cost_category: z.ZodOptional<z.ZodString>;
950
+ gas_used: z.ZodOptional<z.ZodString>;
951
+ }, z.core.$catchall<z.ZodAny>>>>>;
952
+ }, z.core.$strip>>;
953
+ }, z.core.$strip>;
954
+ block_hash: z.ZodString;
955
+ proof: z.ZodArray<z.ZodObject<{
956
+ hash: z.ZodString;
957
+ direction: z.ZodEnum<{
958
+ Left: "Left";
959
+ Right: "Right";
960
+ }>;
961
+ }, z.core.$strip>>;
962
+ }, z.core.$strip>;
963
+ receipts_outcome: z.ZodArray<z.ZodObject<{
964
+ id: z.ZodString;
965
+ outcome: z.ZodObject<{
966
+ logs: z.ZodArray<z.ZodString>;
967
+ receipt_ids: z.ZodArray<z.ZodString>;
968
+ gas_burnt: z.ZodNumber;
969
+ tokens_burnt: z.ZodString;
970
+ executor_id: z.ZodString;
971
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
972
+ SuccessValue: z.ZodString;
973
+ }, z.core.$strip>, z.ZodObject<{
974
+ SuccessReceiptId: z.ZodString;
975
+ }, z.core.$strip>, z.ZodObject<{
976
+ Failure: z.ZodObject<{
977
+ error_message: z.ZodOptional<z.ZodString>;
978
+ error_type: z.ZodOptional<z.ZodString>;
979
+ }, z.core.$catchall<z.ZodAny>>;
980
+ }, z.core.$strip>]>;
981
+ metadata: z.ZodOptional<z.ZodObject<{
982
+ version: z.ZodNumber;
983
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
984
+ cost: z.ZodOptional<z.ZodString>;
985
+ cost_category: z.ZodOptional<z.ZodString>;
986
+ gas_used: z.ZodOptional<z.ZodString>;
987
+ }, z.core.$catchall<z.ZodAny>>>>>;
988
+ }, z.core.$strip>>;
989
+ }, z.core.$strip>;
990
+ block_hash: z.ZodString;
991
+ proof: z.ZodArray<z.ZodObject<{
992
+ hash: z.ZodString;
993
+ direction: z.ZodEnum<{
994
+ Left: "Left";
995
+ Right: "Right";
996
+ }>;
997
+ }, z.core.$strip>>;
998
+ }, z.core.$strip>>;
999
+ }, z.core.$strip>], "final_execution_status">;
1000
+ /**
1001
+ * Receipt schema (for EXPERIMENTAL_tx_status)
1002
+ */
1003
+ export declare const ReceiptSchema: z.ZodObject<{
1004
+ predecessor_id: z.ZodString;
1005
+ receiver_id: z.ZodString;
1006
+ receipt_id: z.ZodString;
1007
+ receipt: z.ZodUnion<readonly [z.ZodObject<{
1008
+ Action: z.ZodObject<{
1009
+ signer_id: z.ZodString;
1010
+ signer_public_key: z.ZodString;
1011
+ gas_price: z.ZodString;
1012
+ output_data_receivers: z.ZodArray<z.ZodAny>;
1013
+ input_data_ids: z.ZodArray<z.ZodString>;
1014
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
1015
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
1016
+ }, z.core.$strip>, z.ZodObject<{
1017
+ Transfer: z.ZodObject<{
1018
+ deposit: z.ZodString;
1019
+ }, z.core.$strip>;
1020
+ }, z.core.$strip>, z.ZodObject<{
1021
+ FunctionCall: z.ZodObject<{
1022
+ method_name: z.ZodString;
1023
+ args: z.ZodString;
1024
+ gas: z.ZodNumber;
1025
+ deposit: z.ZodString;
1026
+ }, z.core.$strip>;
1027
+ }, z.core.$strip>, z.ZodObject<{
1028
+ DeployContract: z.ZodObject<{
1029
+ code: z.ZodString;
1030
+ }, z.core.$strip>;
1031
+ }, z.core.$strip>, z.ZodObject<{
1032
+ DeployGlobalContractByAccountId: z.ZodObject<{
1033
+ code: z.ZodString;
1034
+ }, z.core.$strip>;
1035
+ }, z.core.$strip>, z.ZodObject<{
1036
+ DeployGlobalContractByCodeHash: z.ZodObject<{
1037
+ code: z.ZodString;
1038
+ }, z.core.$strip>;
1039
+ }, z.core.$strip>, z.ZodObject<{
1040
+ Stake: z.ZodObject<{
1041
+ stake: z.ZodString;
1042
+ public_key: z.ZodString;
1043
+ }, z.core.$strip>;
1044
+ }, z.core.$strip>, z.ZodObject<{
1045
+ AddKey: z.ZodObject<{
1046
+ public_key: z.ZodString;
1047
+ access_key: z.ZodObject<{
1048
+ nonce: z.ZodNumber;
1049
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
1050
+ FunctionCall: z.ZodObject<{
1051
+ receiver_id: z.ZodString;
1052
+ method_names: z.ZodArray<z.ZodString>;
1053
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ }, z.core.$strip>;
1055
+ }, z.core.$strip>]>;
1056
+ }, z.core.$strip>;
1057
+ }, z.core.$strip>;
1058
+ }, z.core.$strip>, z.ZodObject<{
1059
+ DeleteKey: z.ZodObject<{
1060
+ public_key: z.ZodString;
1061
+ }, z.core.$strip>;
1062
+ }, z.core.$strip>, z.ZodObject<{
1063
+ DeleteAccount: z.ZodObject<{
1064
+ beneficiary_id: z.ZodString;
1065
+ }, z.core.$strip>;
1066
+ }, z.core.$strip>, z.ZodObject<{
1067
+ UseGlobalContractByAccountId: z.ZodObject<{
1068
+ account_id: z.ZodString;
1069
+ }, z.core.$strip>;
1070
+ }, z.core.$strip>, z.ZodObject<{
1071
+ UseGlobalContractByCodeHash: z.ZodObject<{
1072
+ code_hash: z.ZodString;
1073
+ }, z.core.$strip>;
1074
+ }, z.core.$strip>, z.ZodObject<{
1075
+ Delegate: z.ZodObject<{
1076
+ delegate_action: z.ZodObject<{
1077
+ sender_id: z.ZodString;
1078
+ receiver_id: z.ZodString;
1079
+ actions: z.ZodArray<z.ZodAny>;
1080
+ nonce: z.ZodNumber;
1081
+ max_block_height: z.ZodNumber;
1082
+ public_key: z.ZodString;
1083
+ }, z.core.$strip>;
1084
+ signature: z.ZodString;
1085
+ }, z.core.$strip>;
1086
+ }, z.core.$strip>]>>;
1087
+ is_promise_yield: z.ZodOptional<z.ZodBoolean>;
1088
+ }, z.core.$strip>;
1089
+ }, z.core.$strip>, z.ZodObject<{
1090
+ Data: z.ZodObject<{
1091
+ data_id: z.ZodString;
1092
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1093
+ }, z.core.$strip>;
1094
+ }, z.core.$strip>]>;
1095
+ priority: z.ZodOptional<z.ZodNumber>;
1096
+ }, z.core.$strip>;
1097
+ /**
1098
+ * Final execution outcome with receipts (EXPERIMENTAL_tx_status response)
1099
+ * Uses intersection since we can't extend discriminated unions
1100
+ */
1101
+ export declare const FinalExecutionOutcomeWithReceiptsSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
1102
+ final_execution_status: z.ZodLiteral<"NONE">;
1103
+ transaction: z.ZodOptional<z.ZodObject<{
1104
+ hash: z.ZodString;
1105
+ signer_id: z.ZodString;
1106
+ receiver_id: z.ZodString;
1107
+ nonce: z.ZodNumber;
1108
+ }, z.core.$strip>>;
1109
+ }, z.core.$strip>, z.ZodObject<{
1110
+ final_execution_status: z.ZodLiteral<"INCLUDED">;
1111
+ transaction: z.ZodOptional<z.ZodObject<{
1112
+ hash: z.ZodString;
1113
+ signer_id: z.ZodString;
1114
+ receiver_id: z.ZodString;
1115
+ nonce: z.ZodNumber;
1116
+ }, z.core.$strip>>;
1117
+ }, z.core.$strip>, z.ZodObject<{
1118
+ final_execution_status: z.ZodLiteral<"INCLUDED_FINAL">;
1119
+ transaction: z.ZodOptional<z.ZodObject<{
1120
+ hash: z.ZodString;
1121
+ signer_id: z.ZodString;
1122
+ receiver_id: z.ZodString;
1123
+ nonce: z.ZodNumber;
1124
+ }, z.core.$strip>>;
1125
+ }, z.core.$strip>, z.ZodObject<{
1126
+ final_execution_status: z.ZodLiteral<"EXECUTED_OPTIMISTIC">;
1127
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1128
+ SuccessValue: z.ZodString;
1129
+ }, z.core.$strip>, z.ZodObject<{
1130
+ SuccessReceiptId: z.ZodString;
1131
+ }, z.core.$strip>, z.ZodObject<{
1132
+ Failure: z.ZodObject<{
1133
+ error_message: z.ZodOptional<z.ZodString>;
1134
+ error_type: z.ZodOptional<z.ZodString>;
1135
+ }, z.core.$catchall<z.ZodAny>>;
1136
+ }, z.core.$strip>]>;
1137
+ transaction: z.ZodObject<{
1138
+ signer_id: z.ZodString;
1139
+ public_key: z.ZodString;
1140
+ nonce: z.ZodNumber;
1141
+ receiver_id: z.ZodString;
1142
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
1143
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
1144
+ }, z.core.$strip>, z.ZodObject<{
1145
+ Transfer: z.ZodObject<{
1146
+ deposit: z.ZodString;
1147
+ }, z.core.$strip>;
1148
+ }, z.core.$strip>, z.ZodObject<{
1149
+ FunctionCall: z.ZodObject<{
1150
+ method_name: z.ZodString;
1151
+ args: z.ZodString;
1152
+ gas: z.ZodNumber;
1153
+ deposit: z.ZodString;
1154
+ }, z.core.$strip>;
1155
+ }, z.core.$strip>, z.ZodObject<{
1156
+ DeployContract: z.ZodObject<{
1157
+ code: z.ZodString;
1158
+ }, z.core.$strip>;
1159
+ }, z.core.$strip>, z.ZodObject<{
1160
+ DeployGlobalContractByAccountId: z.ZodObject<{
1161
+ code: z.ZodString;
1162
+ }, z.core.$strip>;
1163
+ }, z.core.$strip>, z.ZodObject<{
1164
+ DeployGlobalContractByCodeHash: z.ZodObject<{
1165
+ code: z.ZodString;
1166
+ }, z.core.$strip>;
1167
+ }, z.core.$strip>, z.ZodObject<{
1168
+ Stake: z.ZodObject<{
1169
+ stake: z.ZodString;
1170
+ public_key: z.ZodString;
1171
+ }, z.core.$strip>;
1172
+ }, z.core.$strip>, z.ZodObject<{
1173
+ AddKey: z.ZodObject<{
1174
+ public_key: z.ZodString;
1175
+ access_key: z.ZodObject<{
1176
+ nonce: z.ZodNumber;
1177
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
1178
+ FunctionCall: z.ZodObject<{
1179
+ receiver_id: z.ZodString;
1180
+ method_names: z.ZodArray<z.ZodString>;
1181
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1182
+ }, z.core.$strip>;
1183
+ }, z.core.$strip>]>;
1184
+ }, z.core.$strip>;
1185
+ }, z.core.$strip>;
1186
+ }, z.core.$strip>, z.ZodObject<{
1187
+ DeleteKey: z.ZodObject<{
1188
+ public_key: z.ZodString;
1189
+ }, z.core.$strip>;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ DeleteAccount: z.ZodObject<{
1192
+ beneficiary_id: z.ZodString;
1193
+ }, z.core.$strip>;
1194
+ }, z.core.$strip>, z.ZodObject<{
1195
+ UseGlobalContractByAccountId: z.ZodObject<{
1196
+ account_id: z.ZodString;
1197
+ }, z.core.$strip>;
1198
+ }, z.core.$strip>, z.ZodObject<{
1199
+ UseGlobalContractByCodeHash: z.ZodObject<{
1200
+ code_hash: z.ZodString;
1201
+ }, z.core.$strip>;
1202
+ }, z.core.$strip>, z.ZodObject<{
1203
+ Delegate: z.ZodObject<{
1204
+ delegate_action: z.ZodObject<{
1205
+ sender_id: z.ZodString;
1206
+ receiver_id: z.ZodString;
1207
+ actions: z.ZodArray<z.ZodAny>;
1208
+ nonce: z.ZodNumber;
1209
+ max_block_height: z.ZodNumber;
1210
+ public_key: z.ZodString;
1211
+ }, z.core.$strip>;
1212
+ signature: z.ZodString;
1213
+ }, z.core.$strip>;
1214
+ }, z.core.$strip>]>>;
1215
+ signature: z.ZodString;
1216
+ hash: z.ZodString;
1217
+ priority_fee: z.ZodOptional<z.ZodNumber>;
1218
+ }, z.core.$strip>;
1219
+ transaction_outcome: z.ZodObject<{
1220
+ id: z.ZodString;
1221
+ outcome: z.ZodObject<{
1222
+ logs: z.ZodArray<z.ZodString>;
1223
+ receipt_ids: z.ZodArray<z.ZodString>;
1224
+ gas_burnt: z.ZodNumber;
1225
+ tokens_burnt: z.ZodString;
1226
+ executor_id: z.ZodString;
1227
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1228
+ SuccessValue: z.ZodString;
1229
+ }, z.core.$strip>, z.ZodObject<{
1230
+ SuccessReceiptId: z.ZodString;
1231
+ }, z.core.$strip>, z.ZodObject<{
1232
+ Failure: z.ZodObject<{
1233
+ error_message: z.ZodOptional<z.ZodString>;
1234
+ error_type: z.ZodOptional<z.ZodString>;
1235
+ }, z.core.$catchall<z.ZodAny>>;
1236
+ }, z.core.$strip>]>;
1237
+ metadata: z.ZodOptional<z.ZodObject<{
1238
+ version: z.ZodNumber;
1239
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1240
+ cost: z.ZodOptional<z.ZodString>;
1241
+ cost_category: z.ZodOptional<z.ZodString>;
1242
+ gas_used: z.ZodOptional<z.ZodString>;
1243
+ }, z.core.$catchall<z.ZodAny>>>>>;
1244
+ }, z.core.$strip>>;
1245
+ }, z.core.$strip>;
1246
+ block_hash: z.ZodString;
1247
+ proof: z.ZodArray<z.ZodObject<{
1248
+ hash: z.ZodString;
1249
+ direction: z.ZodEnum<{
1250
+ Left: "Left";
1251
+ Right: "Right";
1252
+ }>;
1253
+ }, z.core.$strip>>;
1254
+ }, z.core.$strip>;
1255
+ receipts_outcome: z.ZodArray<z.ZodObject<{
1256
+ id: z.ZodString;
1257
+ outcome: z.ZodObject<{
1258
+ logs: z.ZodArray<z.ZodString>;
1259
+ receipt_ids: z.ZodArray<z.ZodString>;
1260
+ gas_burnt: z.ZodNumber;
1261
+ tokens_burnt: z.ZodString;
1262
+ executor_id: z.ZodString;
1263
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1264
+ SuccessValue: z.ZodString;
1265
+ }, z.core.$strip>, z.ZodObject<{
1266
+ SuccessReceiptId: z.ZodString;
1267
+ }, z.core.$strip>, z.ZodObject<{
1268
+ Failure: z.ZodObject<{
1269
+ error_message: z.ZodOptional<z.ZodString>;
1270
+ error_type: z.ZodOptional<z.ZodString>;
1271
+ }, z.core.$catchall<z.ZodAny>>;
1272
+ }, z.core.$strip>]>;
1273
+ metadata: z.ZodOptional<z.ZodObject<{
1274
+ version: z.ZodNumber;
1275
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1276
+ cost: z.ZodOptional<z.ZodString>;
1277
+ cost_category: z.ZodOptional<z.ZodString>;
1278
+ gas_used: z.ZodOptional<z.ZodString>;
1279
+ }, z.core.$catchall<z.ZodAny>>>>>;
1280
+ }, z.core.$strip>>;
1281
+ }, z.core.$strip>;
1282
+ block_hash: z.ZodString;
1283
+ proof: z.ZodArray<z.ZodObject<{
1284
+ hash: z.ZodString;
1285
+ direction: z.ZodEnum<{
1286
+ Left: "Left";
1287
+ Right: "Right";
1288
+ }>;
1289
+ }, z.core.$strip>>;
1290
+ }, z.core.$strip>>;
1291
+ }, z.core.$strip>, z.ZodObject<{
1292
+ final_execution_status: z.ZodLiteral<"EXECUTED">;
1293
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1294
+ SuccessValue: z.ZodString;
1295
+ }, z.core.$strip>, z.ZodObject<{
1296
+ SuccessReceiptId: z.ZodString;
1297
+ }, z.core.$strip>, z.ZodObject<{
1298
+ Failure: z.ZodObject<{
1299
+ error_message: z.ZodOptional<z.ZodString>;
1300
+ error_type: z.ZodOptional<z.ZodString>;
1301
+ }, z.core.$catchall<z.ZodAny>>;
1302
+ }, z.core.$strip>]>;
1303
+ transaction: z.ZodObject<{
1304
+ signer_id: z.ZodString;
1305
+ public_key: z.ZodString;
1306
+ nonce: z.ZodNumber;
1307
+ receiver_id: z.ZodString;
1308
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
1309
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
1310
+ }, z.core.$strip>, z.ZodObject<{
1311
+ Transfer: z.ZodObject<{
1312
+ deposit: z.ZodString;
1313
+ }, z.core.$strip>;
1314
+ }, z.core.$strip>, z.ZodObject<{
1315
+ FunctionCall: z.ZodObject<{
1316
+ method_name: z.ZodString;
1317
+ args: z.ZodString;
1318
+ gas: z.ZodNumber;
1319
+ deposit: z.ZodString;
1320
+ }, z.core.$strip>;
1321
+ }, z.core.$strip>, z.ZodObject<{
1322
+ DeployContract: z.ZodObject<{
1323
+ code: z.ZodString;
1324
+ }, z.core.$strip>;
1325
+ }, z.core.$strip>, z.ZodObject<{
1326
+ DeployGlobalContractByAccountId: z.ZodObject<{
1327
+ code: z.ZodString;
1328
+ }, z.core.$strip>;
1329
+ }, z.core.$strip>, z.ZodObject<{
1330
+ DeployGlobalContractByCodeHash: z.ZodObject<{
1331
+ code: z.ZodString;
1332
+ }, z.core.$strip>;
1333
+ }, z.core.$strip>, z.ZodObject<{
1334
+ Stake: z.ZodObject<{
1335
+ stake: z.ZodString;
1336
+ public_key: z.ZodString;
1337
+ }, z.core.$strip>;
1338
+ }, z.core.$strip>, z.ZodObject<{
1339
+ AddKey: z.ZodObject<{
1340
+ public_key: z.ZodString;
1341
+ access_key: z.ZodObject<{
1342
+ nonce: z.ZodNumber;
1343
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
1344
+ FunctionCall: z.ZodObject<{
1345
+ receiver_id: z.ZodString;
1346
+ method_names: z.ZodArray<z.ZodString>;
1347
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
+ }, z.core.$strip>;
1349
+ }, z.core.$strip>]>;
1350
+ }, z.core.$strip>;
1351
+ }, z.core.$strip>;
1352
+ }, z.core.$strip>, z.ZodObject<{
1353
+ DeleteKey: z.ZodObject<{
1354
+ public_key: z.ZodString;
1355
+ }, z.core.$strip>;
1356
+ }, z.core.$strip>, z.ZodObject<{
1357
+ DeleteAccount: z.ZodObject<{
1358
+ beneficiary_id: z.ZodString;
1359
+ }, z.core.$strip>;
1360
+ }, z.core.$strip>, z.ZodObject<{
1361
+ UseGlobalContractByAccountId: z.ZodObject<{
1362
+ account_id: z.ZodString;
1363
+ }, z.core.$strip>;
1364
+ }, z.core.$strip>, z.ZodObject<{
1365
+ UseGlobalContractByCodeHash: z.ZodObject<{
1366
+ code_hash: z.ZodString;
1367
+ }, z.core.$strip>;
1368
+ }, z.core.$strip>, z.ZodObject<{
1369
+ Delegate: z.ZodObject<{
1370
+ delegate_action: z.ZodObject<{
1371
+ sender_id: z.ZodString;
1372
+ receiver_id: z.ZodString;
1373
+ actions: z.ZodArray<z.ZodAny>;
1374
+ nonce: z.ZodNumber;
1375
+ max_block_height: z.ZodNumber;
1376
+ public_key: z.ZodString;
1377
+ }, z.core.$strip>;
1378
+ signature: z.ZodString;
1379
+ }, z.core.$strip>;
1380
+ }, z.core.$strip>]>>;
1381
+ signature: z.ZodString;
1382
+ hash: z.ZodString;
1383
+ priority_fee: z.ZodOptional<z.ZodNumber>;
1384
+ }, z.core.$strip>;
1385
+ transaction_outcome: z.ZodObject<{
1386
+ id: z.ZodString;
1387
+ outcome: z.ZodObject<{
1388
+ logs: z.ZodArray<z.ZodString>;
1389
+ receipt_ids: z.ZodArray<z.ZodString>;
1390
+ gas_burnt: z.ZodNumber;
1391
+ tokens_burnt: z.ZodString;
1392
+ executor_id: z.ZodString;
1393
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1394
+ SuccessValue: z.ZodString;
1395
+ }, z.core.$strip>, z.ZodObject<{
1396
+ SuccessReceiptId: z.ZodString;
1397
+ }, z.core.$strip>, z.ZodObject<{
1398
+ Failure: z.ZodObject<{
1399
+ error_message: z.ZodOptional<z.ZodString>;
1400
+ error_type: z.ZodOptional<z.ZodString>;
1401
+ }, z.core.$catchall<z.ZodAny>>;
1402
+ }, z.core.$strip>]>;
1403
+ metadata: z.ZodOptional<z.ZodObject<{
1404
+ version: z.ZodNumber;
1405
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1406
+ cost: z.ZodOptional<z.ZodString>;
1407
+ cost_category: z.ZodOptional<z.ZodString>;
1408
+ gas_used: z.ZodOptional<z.ZodString>;
1409
+ }, z.core.$catchall<z.ZodAny>>>>>;
1410
+ }, z.core.$strip>>;
1411
+ }, z.core.$strip>;
1412
+ block_hash: z.ZodString;
1413
+ proof: z.ZodArray<z.ZodObject<{
1414
+ hash: z.ZodString;
1415
+ direction: z.ZodEnum<{
1416
+ Left: "Left";
1417
+ Right: "Right";
1418
+ }>;
1419
+ }, z.core.$strip>>;
1420
+ }, z.core.$strip>;
1421
+ receipts_outcome: z.ZodArray<z.ZodObject<{
1422
+ id: z.ZodString;
1423
+ outcome: z.ZodObject<{
1424
+ logs: z.ZodArray<z.ZodString>;
1425
+ receipt_ids: z.ZodArray<z.ZodString>;
1426
+ gas_burnt: z.ZodNumber;
1427
+ tokens_burnt: z.ZodString;
1428
+ executor_id: z.ZodString;
1429
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1430
+ SuccessValue: z.ZodString;
1431
+ }, z.core.$strip>, z.ZodObject<{
1432
+ SuccessReceiptId: z.ZodString;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ Failure: z.ZodObject<{
1435
+ error_message: z.ZodOptional<z.ZodString>;
1436
+ error_type: z.ZodOptional<z.ZodString>;
1437
+ }, z.core.$catchall<z.ZodAny>>;
1438
+ }, z.core.$strip>]>;
1439
+ metadata: z.ZodOptional<z.ZodObject<{
1440
+ version: z.ZodNumber;
1441
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1442
+ cost: z.ZodOptional<z.ZodString>;
1443
+ cost_category: z.ZodOptional<z.ZodString>;
1444
+ gas_used: z.ZodOptional<z.ZodString>;
1445
+ }, z.core.$catchall<z.ZodAny>>>>>;
1446
+ }, z.core.$strip>>;
1447
+ }, z.core.$strip>;
1448
+ block_hash: z.ZodString;
1449
+ proof: z.ZodArray<z.ZodObject<{
1450
+ hash: z.ZodString;
1451
+ direction: z.ZodEnum<{
1452
+ Left: "Left";
1453
+ Right: "Right";
1454
+ }>;
1455
+ }, z.core.$strip>>;
1456
+ }, z.core.$strip>>;
1457
+ }, z.core.$strip>, z.ZodObject<{
1458
+ final_execution_status: z.ZodLiteral<"FINAL">;
1459
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1460
+ SuccessValue: z.ZodString;
1461
+ }, z.core.$strip>, z.ZodObject<{
1462
+ SuccessReceiptId: z.ZodString;
1463
+ }, z.core.$strip>, z.ZodObject<{
1464
+ Failure: z.ZodObject<{
1465
+ error_message: z.ZodOptional<z.ZodString>;
1466
+ error_type: z.ZodOptional<z.ZodString>;
1467
+ }, z.core.$catchall<z.ZodAny>>;
1468
+ }, z.core.$strip>]>;
1469
+ transaction: z.ZodObject<{
1470
+ signer_id: z.ZodString;
1471
+ public_key: z.ZodString;
1472
+ nonce: z.ZodNumber;
1473
+ receiver_id: z.ZodString;
1474
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
1475
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
1476
+ }, z.core.$strip>, z.ZodObject<{
1477
+ Transfer: z.ZodObject<{
1478
+ deposit: z.ZodString;
1479
+ }, z.core.$strip>;
1480
+ }, z.core.$strip>, z.ZodObject<{
1481
+ FunctionCall: z.ZodObject<{
1482
+ method_name: z.ZodString;
1483
+ args: z.ZodString;
1484
+ gas: z.ZodNumber;
1485
+ deposit: z.ZodString;
1486
+ }, z.core.$strip>;
1487
+ }, z.core.$strip>, z.ZodObject<{
1488
+ DeployContract: z.ZodObject<{
1489
+ code: z.ZodString;
1490
+ }, z.core.$strip>;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ DeployGlobalContractByAccountId: z.ZodObject<{
1493
+ code: z.ZodString;
1494
+ }, z.core.$strip>;
1495
+ }, z.core.$strip>, z.ZodObject<{
1496
+ DeployGlobalContractByCodeHash: z.ZodObject<{
1497
+ code: z.ZodString;
1498
+ }, z.core.$strip>;
1499
+ }, z.core.$strip>, z.ZodObject<{
1500
+ Stake: z.ZodObject<{
1501
+ stake: z.ZodString;
1502
+ public_key: z.ZodString;
1503
+ }, z.core.$strip>;
1504
+ }, z.core.$strip>, z.ZodObject<{
1505
+ AddKey: z.ZodObject<{
1506
+ public_key: z.ZodString;
1507
+ access_key: z.ZodObject<{
1508
+ nonce: z.ZodNumber;
1509
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
1510
+ FunctionCall: z.ZodObject<{
1511
+ receiver_id: z.ZodString;
1512
+ method_names: z.ZodArray<z.ZodString>;
1513
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
+ }, z.core.$strip>;
1515
+ }, z.core.$strip>]>;
1516
+ }, z.core.$strip>;
1517
+ }, z.core.$strip>;
1518
+ }, z.core.$strip>, z.ZodObject<{
1519
+ DeleteKey: z.ZodObject<{
1520
+ public_key: z.ZodString;
1521
+ }, z.core.$strip>;
1522
+ }, z.core.$strip>, z.ZodObject<{
1523
+ DeleteAccount: z.ZodObject<{
1524
+ beneficiary_id: z.ZodString;
1525
+ }, z.core.$strip>;
1526
+ }, z.core.$strip>, z.ZodObject<{
1527
+ UseGlobalContractByAccountId: z.ZodObject<{
1528
+ account_id: z.ZodString;
1529
+ }, z.core.$strip>;
1530
+ }, z.core.$strip>, z.ZodObject<{
1531
+ UseGlobalContractByCodeHash: z.ZodObject<{
1532
+ code_hash: z.ZodString;
1533
+ }, z.core.$strip>;
1534
+ }, z.core.$strip>, z.ZodObject<{
1535
+ Delegate: z.ZodObject<{
1536
+ delegate_action: z.ZodObject<{
1537
+ sender_id: z.ZodString;
1538
+ receiver_id: z.ZodString;
1539
+ actions: z.ZodArray<z.ZodAny>;
1540
+ nonce: z.ZodNumber;
1541
+ max_block_height: z.ZodNumber;
1542
+ public_key: z.ZodString;
1543
+ }, z.core.$strip>;
1544
+ signature: z.ZodString;
1545
+ }, z.core.$strip>;
1546
+ }, z.core.$strip>]>>;
1547
+ signature: z.ZodString;
1548
+ hash: z.ZodString;
1549
+ priority_fee: z.ZodOptional<z.ZodNumber>;
1550
+ }, z.core.$strip>;
1551
+ transaction_outcome: z.ZodObject<{
1552
+ id: z.ZodString;
1553
+ outcome: z.ZodObject<{
1554
+ logs: z.ZodArray<z.ZodString>;
1555
+ receipt_ids: z.ZodArray<z.ZodString>;
1556
+ gas_burnt: z.ZodNumber;
1557
+ tokens_burnt: z.ZodString;
1558
+ executor_id: z.ZodString;
1559
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1560
+ SuccessValue: z.ZodString;
1561
+ }, z.core.$strip>, z.ZodObject<{
1562
+ SuccessReceiptId: z.ZodString;
1563
+ }, z.core.$strip>, z.ZodObject<{
1564
+ Failure: z.ZodObject<{
1565
+ error_message: z.ZodOptional<z.ZodString>;
1566
+ error_type: z.ZodOptional<z.ZodString>;
1567
+ }, z.core.$catchall<z.ZodAny>>;
1568
+ }, z.core.$strip>]>;
1569
+ metadata: z.ZodOptional<z.ZodObject<{
1570
+ version: z.ZodNumber;
1571
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1572
+ cost: z.ZodOptional<z.ZodString>;
1573
+ cost_category: z.ZodOptional<z.ZodString>;
1574
+ gas_used: z.ZodOptional<z.ZodString>;
1575
+ }, z.core.$catchall<z.ZodAny>>>>>;
1576
+ }, z.core.$strip>>;
1577
+ }, z.core.$strip>;
1578
+ block_hash: z.ZodString;
1579
+ proof: z.ZodArray<z.ZodObject<{
1580
+ hash: z.ZodString;
1581
+ direction: z.ZodEnum<{
1582
+ Left: "Left";
1583
+ Right: "Right";
1584
+ }>;
1585
+ }, z.core.$strip>>;
1586
+ }, z.core.$strip>;
1587
+ receipts_outcome: z.ZodArray<z.ZodObject<{
1588
+ id: z.ZodString;
1589
+ outcome: z.ZodObject<{
1590
+ logs: z.ZodArray<z.ZodString>;
1591
+ receipt_ids: z.ZodArray<z.ZodString>;
1592
+ gas_burnt: z.ZodNumber;
1593
+ tokens_burnt: z.ZodString;
1594
+ executor_id: z.ZodString;
1595
+ status: z.ZodUnion<readonly [z.ZodLiteral<"Unknown">, z.ZodLiteral<"Pending">, z.ZodObject<{
1596
+ SuccessValue: z.ZodString;
1597
+ }, z.core.$strip>, z.ZodObject<{
1598
+ SuccessReceiptId: z.ZodString;
1599
+ }, z.core.$strip>, z.ZodObject<{
1600
+ Failure: z.ZodObject<{
1601
+ error_message: z.ZodOptional<z.ZodString>;
1602
+ error_type: z.ZodOptional<z.ZodString>;
1603
+ }, z.core.$catchall<z.ZodAny>>;
1604
+ }, z.core.$strip>]>;
1605
+ metadata: z.ZodOptional<z.ZodObject<{
1606
+ version: z.ZodNumber;
1607
+ gas_profile: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1608
+ cost: z.ZodOptional<z.ZodString>;
1609
+ cost_category: z.ZodOptional<z.ZodString>;
1610
+ gas_used: z.ZodOptional<z.ZodString>;
1611
+ }, z.core.$catchall<z.ZodAny>>>>>;
1612
+ }, z.core.$strip>>;
1613
+ }, z.core.$strip>;
1614
+ block_hash: z.ZodString;
1615
+ proof: z.ZodArray<z.ZodObject<{
1616
+ hash: z.ZodString;
1617
+ direction: z.ZodEnum<{
1618
+ Left: "Left";
1619
+ Right: "Right";
1620
+ }>;
1621
+ }, z.core.$strip>>;
1622
+ }, z.core.$strip>>;
1623
+ }, z.core.$strip>], "final_execution_status">, z.ZodObject<{
1624
+ receipts: z.ZodArray<z.ZodObject<{
1625
+ predecessor_id: z.ZodString;
1626
+ receiver_id: z.ZodString;
1627
+ receipt_id: z.ZodString;
1628
+ receipt: z.ZodUnion<readonly [z.ZodObject<{
1629
+ Action: z.ZodObject<{
1630
+ signer_id: z.ZodString;
1631
+ signer_public_key: z.ZodString;
1632
+ gas_price: z.ZodString;
1633
+ output_data_receivers: z.ZodArray<z.ZodAny>;
1634
+ input_data_ids: z.ZodArray<z.ZodString>;
1635
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodObject<{
1636
+ CreateAccount: z.ZodObject<{}, z.core.$strip>;
1637
+ }, z.core.$strip>, z.ZodObject<{
1638
+ Transfer: z.ZodObject<{
1639
+ deposit: z.ZodString;
1640
+ }, z.core.$strip>;
1641
+ }, z.core.$strip>, z.ZodObject<{
1642
+ FunctionCall: z.ZodObject<{
1643
+ method_name: z.ZodString;
1644
+ args: z.ZodString;
1645
+ gas: z.ZodNumber;
1646
+ deposit: z.ZodString;
1647
+ }, z.core.$strip>;
1648
+ }, z.core.$strip>, z.ZodObject<{
1649
+ DeployContract: z.ZodObject<{
1650
+ code: z.ZodString;
1651
+ }, z.core.$strip>;
1652
+ }, z.core.$strip>, z.ZodObject<{
1653
+ DeployGlobalContractByAccountId: z.ZodObject<{
1654
+ code: z.ZodString;
1655
+ }, z.core.$strip>;
1656
+ }, z.core.$strip>, z.ZodObject<{
1657
+ DeployGlobalContractByCodeHash: z.ZodObject<{
1658
+ code: z.ZodString;
1659
+ }, z.core.$strip>;
1660
+ }, z.core.$strip>, z.ZodObject<{
1661
+ Stake: z.ZodObject<{
1662
+ stake: z.ZodString;
1663
+ public_key: z.ZodString;
1664
+ }, z.core.$strip>;
1665
+ }, z.core.$strip>, z.ZodObject<{
1666
+ AddKey: z.ZodObject<{
1667
+ public_key: z.ZodString;
1668
+ access_key: z.ZodObject<{
1669
+ nonce: z.ZodNumber;
1670
+ permission: z.ZodUnion<readonly [z.ZodLiteral<"FullAccess">, z.ZodObject<{
1671
+ FunctionCall: z.ZodObject<{
1672
+ receiver_id: z.ZodString;
1673
+ method_names: z.ZodArray<z.ZodString>;
1674
+ allowance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1675
+ }, z.core.$strip>;
1676
+ }, z.core.$strip>]>;
1677
+ }, z.core.$strip>;
1678
+ }, z.core.$strip>;
1679
+ }, z.core.$strip>, z.ZodObject<{
1680
+ DeleteKey: z.ZodObject<{
1681
+ public_key: z.ZodString;
1682
+ }, z.core.$strip>;
1683
+ }, z.core.$strip>, z.ZodObject<{
1684
+ DeleteAccount: z.ZodObject<{
1685
+ beneficiary_id: z.ZodString;
1686
+ }, z.core.$strip>;
1687
+ }, z.core.$strip>, z.ZodObject<{
1688
+ UseGlobalContractByAccountId: z.ZodObject<{
1689
+ account_id: z.ZodString;
1690
+ }, z.core.$strip>;
1691
+ }, z.core.$strip>, z.ZodObject<{
1692
+ UseGlobalContractByCodeHash: z.ZodObject<{
1693
+ code_hash: z.ZodString;
1694
+ }, z.core.$strip>;
1695
+ }, z.core.$strip>, z.ZodObject<{
1696
+ Delegate: z.ZodObject<{
1697
+ delegate_action: z.ZodObject<{
1698
+ sender_id: z.ZodString;
1699
+ receiver_id: z.ZodString;
1700
+ actions: z.ZodArray<z.ZodAny>;
1701
+ nonce: z.ZodNumber;
1702
+ max_block_height: z.ZodNumber;
1703
+ public_key: z.ZodString;
1704
+ }, z.core.$strip>;
1705
+ signature: z.ZodString;
1706
+ }, z.core.$strip>;
1707
+ }, z.core.$strip>]>>;
1708
+ is_promise_yield: z.ZodOptional<z.ZodBoolean>;
1709
+ }, z.core.$strip>;
1710
+ }, z.core.$strip>, z.ZodObject<{
1711
+ Data: z.ZodObject<{
1712
+ data_id: z.ZodString;
1713
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1714
+ }, z.core.$strip>;
1715
+ }, z.core.$strip>]>;
1716
+ priority: z.ZodOptional<z.ZodNumber>;
1717
+ }, z.core.$strip>>;
1718
+ }, z.core.$strip>>;
1719
+ /**
1720
+ * Infer TypeScript types from schemas
1721
+ */
1722
+ export type FunctionCallPermissionDetails = z.infer<typeof FunctionCallPermissionDetailsSchema>;
1723
+ export type AccessKeyPermission = z.infer<typeof AccessKeyPermissionSchema>;
1724
+ export type ViewFunctionCallResult = z.infer<typeof ViewFunctionCallResultSchema>;
1725
+ export type AccountView = z.infer<typeof AccountViewSchema>;
1726
+ export type AccessKeyView = z.infer<typeof AccessKeyViewSchema>;
1727
+ export type AccessKeyInfoView = z.infer<typeof AccessKeyInfoViewSchema>;
1728
+ export type StatusResponse = z.infer<typeof StatusResponseSchema>;
1729
+ export type GasPriceResponse = z.infer<typeof GasPriceResponseSchema>;
1730
+ export type AccessKeyListResponse = z.infer<typeof AccessKeyListResponseSchema>;
1731
+ export type RpcErrorResponse = z.infer<typeof RpcErrorResponseSchema>;
1732
+ /**
1733
+ * Transaction-related types
1734
+ */
1735
+ export type TxExecutionStatus = z.infer<typeof TxExecutionStatusSchema>;
1736
+ export type ExecutionStatus = z.infer<typeof ExecutionStatusSchema>;
1737
+ export type ExecutionMetadata = z.infer<typeof ExecutionMetadataSchema>;
1738
+ export type ExecutionOutcome = z.infer<typeof ExecutionOutcomeSchema>;
1739
+ export type MerklePathItem = z.infer<typeof MerklePathItemSchema>;
1740
+ export type ExecutionOutcomeWithId = z.infer<typeof ExecutionOutcomeWithIdSchema>;
1741
+ export type RpcAction = z.infer<typeof ActionSchema>;
1742
+ export type RpcTransaction = z.infer<typeof TransactionSchema>;
1743
+ export type FinalExecutionOutcome = z.infer<typeof FinalExecutionOutcomeSchema>;
1744
+ export type Receipt = z.infer<typeof ReceiptSchema>;
1745
+ export type FinalExecutionOutcomeWithReceipts = z.infer<typeof FinalExecutionOutcomeWithReceiptsSchema>;
1746
+ /**
1747
+ * Mapped type for looking up the specific FinalExecutionOutcome variant based on wait mode.
1748
+ * This enables precise type inference when using waitUntil parameter.
1749
+ *
1750
+ * @example
1751
+ * ```typescript
1752
+ * type NoneResult = FinalExecutionOutcomeMap["NONE"]
1753
+ * // { final_execution_status: "NONE" }
1754
+ *
1755
+ * type FinalResult = FinalExecutionOutcomeMap["FINAL"]
1756
+ * // { final_execution_status: "FINAL"; status: ...; transaction: ...; ... }
1757
+ * ```
1758
+ */
1759
+ export type FinalExecutionOutcomeMap = {
1760
+ NONE: Extract<FinalExecutionOutcome, {
1761
+ final_execution_status: "NONE";
1762
+ }>;
1763
+ INCLUDED: Extract<FinalExecutionOutcome, {
1764
+ final_execution_status: "INCLUDED";
1765
+ }>;
1766
+ INCLUDED_FINAL: Extract<FinalExecutionOutcome, {
1767
+ final_execution_status: "INCLUDED_FINAL";
1768
+ }>;
1769
+ EXECUTED_OPTIMISTIC: Extract<FinalExecutionOutcome, {
1770
+ final_execution_status: "EXECUTED_OPTIMISTIC";
1771
+ }>;
1772
+ EXECUTED: Extract<FinalExecutionOutcome, {
1773
+ final_execution_status: "EXECUTED";
1774
+ }>;
1775
+ FINAL: Extract<FinalExecutionOutcome, {
1776
+ final_execution_status: "FINAL";
1777
+ }>;
1778
+ };
1779
+ /**
1780
+ * Mapped type for looking up the specific FinalExecutionOutcomeWithReceipts variant based on wait mode.
1781
+ * This enables precise type inference when using waitUntil parameter with EXPERIMENTAL_tx_status.
1782
+ *
1783
+ * @example
1784
+ * ```typescript
1785
+ * type NoneResult = FinalExecutionOutcomeWithReceiptsMap["NONE"]
1786
+ * // { final_execution_status: "NONE"; receipts: Receipt[] }
1787
+ *
1788
+ * type FinalResult = FinalExecutionOutcomeWithReceiptsMap["FINAL"]
1789
+ * // { final_execution_status: "FINAL"; status: ...; transaction: ...; receipts: Receipt[]; ... }
1790
+ * ```
1791
+ */
1792
+ export type FinalExecutionOutcomeWithReceiptsMap = {
1793
+ NONE: Extract<FinalExecutionOutcomeWithReceipts, {
1794
+ final_execution_status: "NONE";
1795
+ }>;
1796
+ INCLUDED: Extract<FinalExecutionOutcomeWithReceipts, {
1797
+ final_execution_status: "INCLUDED";
1798
+ }>;
1799
+ INCLUDED_FINAL: Extract<FinalExecutionOutcomeWithReceipts, {
1800
+ final_execution_status: "INCLUDED_FINAL";
1801
+ }>;
1802
+ EXECUTED_OPTIMISTIC: Extract<FinalExecutionOutcomeWithReceipts, {
1803
+ final_execution_status: "EXECUTED_OPTIMISTIC";
1804
+ }>;
1805
+ EXECUTED: Extract<FinalExecutionOutcomeWithReceipts, {
1806
+ final_execution_status: "EXECUTED";
1807
+ }>;
1808
+ FINAL: Extract<FinalExecutionOutcomeWithReceipts, {
1809
+ final_execution_status: "FINAL";
1810
+ }>;
1811
+ };
1812
+ //# sourceMappingURL=rpc-schemas.d.ts.map