@thru/sdk 0.2.22

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 (73) hide show
  1. package/README.abi.md +112 -0
  2. package/README.md +342 -0
  3. package/dist/abi/index.cjs +946 -0
  4. package/dist/abi/index.cjs.map +1 -0
  5. package/dist/abi/index.d.cts +331 -0
  6. package/dist/abi/index.d.ts +331 -0
  7. package/dist/abi/index.js +892 -0
  8. package/dist/abi/index.js.map +1 -0
  9. package/dist/abi/wasm/bundler/abi_reflect_wasm.d.ts +65 -0
  10. package/dist/abi/wasm/bundler/abi_reflect_wasm.js +5 -0
  11. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.js +412 -0
  12. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm +0 -0
  13. package/dist/abi/wasm/bundler/abi_reflect_wasm_bg.wasm.d.ts +24 -0
  14. package/dist/abi/wasm/bundler/package.json +17 -0
  15. package/dist/abi/wasm/node/abi_reflect_wasm.d.ts +65 -0
  16. package/dist/abi/wasm/node/abi_reflect_wasm.js +425 -0
  17. package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm +0 -0
  18. package/dist/abi/wasm/node/abi_reflect_wasm_bg.wasm.d.ts +24 -0
  19. package/dist/abi/wasm/node/package.json +11 -0
  20. package/dist/abi/wasm/web/abi_reflect_wasm.d.ts +114 -0
  21. package/dist/abi/wasm/web/abi_reflect_wasm.js +499 -0
  22. package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm +0 -0
  23. package/dist/abi/wasm/web/abi_reflect_wasm_bg.wasm.d.ts +24 -0
  24. package/dist/abi/wasm/web/package.json +15 -0
  25. package/dist/chunk-CVBQ4UPL.js +3614 -0
  26. package/dist/chunk-CVBQ4UPL.js.map +1 -0
  27. package/dist/chunk-NSBPE2FW.js +15 -0
  28. package/dist/chunk-NSBPE2FW.js.map +1 -0
  29. package/dist/chunk-RL3Q6FDE.js +105 -0
  30. package/dist/chunk-RL3Q6FDE.js.map +1 -0
  31. package/dist/chunk-UDIXYJXC.js +260 -0
  32. package/dist/chunk-UDIXYJXC.js.map +1 -0
  33. package/dist/chunk-YQDWOMNO.js +271 -0
  34. package/dist/chunk-YQDWOMNO.js.map +1 -0
  35. package/dist/client-Cfi7zRLm.d.cts +1247 -0
  36. package/dist/client-worIo0a3.d.ts +1247 -0
  37. package/dist/client.cjs +3791 -0
  38. package/dist/client.cjs.map +1 -0
  39. package/dist/client.d.cts +7 -0
  40. package/dist/client.d.ts +7 -0
  41. package/dist/client.js +7 -0
  42. package/dist/client.js.map +1 -0
  43. package/dist/crypto/index.cjs +170 -0
  44. package/dist/crypto/index.cjs.map +1 -0
  45. package/dist/crypto/index.d.cts +60 -0
  46. package/dist/crypto/index.d.ts +60 -0
  47. package/dist/crypto/index.js +5 -0
  48. package/dist/crypto/index.js.map +1 -0
  49. package/dist/helpers/index.cjs +270 -0
  50. package/dist/helpers/index.cjs.map +1 -0
  51. package/dist/helpers/index.d.cts +15 -0
  52. package/dist/helpers/index.d.ts +15 -0
  53. package/dist/helpers/index.js +4 -0
  54. package/dist/helpers/index.js.map +1 -0
  55. package/dist/metafile-cjs.json +1 -0
  56. package/dist/metafile-esm.json +1 -0
  57. package/dist/proto/index.cjs +433 -0
  58. package/dist/proto/index.cjs.map +1 -0
  59. package/dist/proto/index.d.cts +435 -0
  60. package/dist/proto/index.d.ts +435 -0
  61. package/dist/proto/index.js +4 -0
  62. package/dist/proto/index.js.map +1 -0
  63. package/dist/sdk.cjs +4137 -0
  64. package/dist/sdk.cjs.map +1 -0
  65. package/dist/sdk.d.cts +36 -0
  66. package/dist/sdk.d.ts +36 -0
  67. package/dist/sdk.js +7 -0
  68. package/dist/sdk.js.map +1 -0
  69. package/dist/streaming_service_pb-DvCdJiCr.d.cts +4877 -0
  70. package/dist/streaming_service_pb-DvCdJiCr.d.ts +4877 -0
  71. package/dist/webcrypto-LTajLAad.d.cts +3 -0
  72. package/dist/webcrypto-LTajLAad.d.ts +3 -0
  73. package/package.json +88 -0
@@ -0,0 +1,435 @@
1
+ import { Message } from '@bufbuild/protobuf';
2
+ export { create } from '@bufbuild/protobuf';
3
+ import { bx as Pubkey, e as AccountMeta, bQ as Signature, cz as Transaction } from '../streaming_service_pb-DvCdJiCr.js';
4
+ export { A as Account, a as AccountData, b as AccountDataSchema, c as AccountFlags, d as AccountFlagsSchema, f as AccountMetaSchema, g as AccountPage, h as AccountPageSchema, i as AccountSchema, j as AccountUpdate, k as AccountUpdateSchema, l as AccountView, m as AccountViewSchema, n as ActiveStateHashEntry, o as ActiveStateHashEntrySchema, B as BatchSendTransactionsRequest, p as BatchSendTransactionsRequestSchema, q as BatchSendTransactionsResponse, r as BatchSendTransactionsResponseSchema, s as Block, t as BlockFinished, u as BlockFinishedSchema, v as BlockFooter, w as BlockFooterSchema, x as BlockHash, y as BlockHashSchema, z as BlockHeader, C as BlockHeaderSchema, D as BlockSchema, E as BlockView, F as BlockViewSchema, G as BytesList, H as BytesListSchema, I as CelFilterValidation, J as CelFilterValidationSchema, K as CommandService, L as ConsensusStatus, M as ConsensusStatusSchema, N as CurrentOrHistoricalVersion, O as CurrentOrHistoricalVersionSchema, P as CurrentVersion, Q as CurrentVersionSchema, R as DataSlice, S as DataSliceSchema, T as Event, U as EventSchema, V as ExecutionStatus, W as ExecutionStatusSchema, X as Filter, Y as FilterParamValue, Z as FilterParamValueSchema, _ as FilterSchema, $ as GenerateStateProofRequest, a0 as GenerateStateProofRequestSchema, a1 as GenerateStateProofResponse, a2 as GenerateStateProofResponseSchema, a3 as GetAccountRequest, a4 as GetAccountRequestSchema, a5 as GetActiveStateHashesRequest, a6 as GetActiveStateHashesRequestSchema, a7 as GetActiveStateHashesResponse, a8 as GetActiveStateHashesResponseSchema, a9 as GetBlockRequest, aa as GetBlockRequestSchema, ab as GetChainInfoRequest, ac as GetChainInfoRequestSchema, ad as GetChainInfoResponse, ae as GetChainInfoResponseSchema, af as GetEventRequest, ag as GetEventRequestSchema, ah as GetHeightRequest, ai as GetHeightRequestSchema, aj as GetHeightResponse, ak as GetHeightResponseSchema, al as GetNodePubkeyRequest, am as GetNodePubkeyRequestSchema, an as GetNodePubkeyResponse, ao as GetNodePubkeyResponseSchema, ap as GetNodeRecordsRequest, aq as GetNodeRecordsRequestSchema, ar as GetNodeRecordsResponse, as as GetNodeRecordsResponseSchema, at as GetNodeStatusRequest, au as GetNodeStatusRequestSchema, av as GetNodeStatusResponse, aw as GetNodeStatusResponseSchema, ax as GetRawAccountRequest, ay as GetRawAccountRequestSchema, az as GetRawBlockRequest, aA as GetRawBlockRequestSchema, aB as GetRawTransactionRequest, aC as GetRawTransactionRequestSchema, aD as GetSlotMetricsRequest, aE as GetSlotMetricsRequestSchema, aF as GetSlotMetricsResponse, aG as GetSlotMetricsResponseSchema, aH as GetStateRootsRequest, aI as GetStateRootsRequestSchema, aJ as GetStateRootsResponse, aK as GetStateRootsResponseSchema, aL as GetTransactionRequest, aM as GetTransactionRequestSchema, aN as GetTransactionStatusRequest, aO as GetTransactionStatusRequestSchema, aP as GetVersionRequest, aQ as GetVersionRequestSchema, aR as GetVersionResponse, aS as GetVersionResponseSchema, aT as Hash, aU as HashSchema, aV as ListAccountsRequest, aW as ListAccountsRequestSchema, aX as ListAccountsResponse, aY as ListAccountsResponseSchema, aZ as ListBlocksRequest, a_ as ListBlocksRequestSchema, a$ as ListBlocksResponse, b0 as ListBlocksResponseSchema, b1 as ListEventsRequest, b2 as ListEventsRequestSchema, b3 as ListEventsResponse, b4 as ListEventsResponseSchema, b5 as ListSlotMetricsRequest, b6 as ListSlotMetricsRequestSchema, b7 as ListSlotMetricsResponse, b8 as ListSlotMetricsResponseSchema, b9 as ListTransactionsForAccountRequest, ba as ListTransactionsForAccountRequestSchema, bb as ListTransactionsForAccountResponse, bc as ListTransactionsForAccountResponseSchema, bd as ListTransactionsRequest, be as ListTransactionsRequestSchema, bf as ListTransactionsResponse, bg as ListTransactionsResponseSchema, bh as NodeConsensusStatus, bi as NodeConsensusStatusSchema, bj as NodeContact, bk as NodeContactSchema, bl as NodeMode, bm as NodeModeSchema, bn as NodeProtocol, bo as NodeProtocolSchema, bp as NodeRecord, bq as NodeRecordSchema, br as NodeRepairStatus, bs as NodeRepairStatusSchema, bt as PageRequest, bu as PageRequestSchema, bv as PageResponse, bw as PageResponseSchema, by as PubkeyList, bz as PubkeyListSchema, bA as PubkeySchema, bB as QueryService, bC as RawAccount, bD as RawAccountSchema, bE as RawBlock, bF as RawBlockSchema, bG as RawTransaction, bH as RawTransactionSchema, bI as SendAndTrackTxnRequest, bJ as SendAndTrackTxnRequestSchema, bK as SendAndTrackTxnResponse, bL as SendAndTrackTxnResponseSchema, bM as SendTransactionRequest, bN as SendTransactionRequestSchema, bO as SendTransactionResponse, bP as SendTransactionResponseSchema, bR as SignatureSchema, bS as StateProof, bT as StateProofRequest, bU as StateProofRequestSchema, bV as StateProofSchema, bW as StateProofType, bX as StateProofTypeSchema, bY as StateRootEntry, bZ as StateRootEntrySchema, b_ as StreamAccountUpdatesRequest, b$ as StreamAccountUpdatesRequestSchema, c0 as StreamAccountUpdatesResponse, c1 as StreamAccountUpdatesResponseSchema, c2 as StreamBlocksRequest, c3 as StreamBlocksRequestSchema, c4 as StreamBlocksResponse, c5 as StreamBlocksResponseSchema, c6 as StreamEventsRequest, c7 as StreamEventsRequestSchema, c8 as StreamEventsResponse, c9 as StreamEventsResponseSchema, ca as StreamHeightRequest, cb as StreamHeightRequestSchema, cc as StreamHeightResponse, cd as StreamHeightResponseSchema, ce as StreamNodeRecordsRequest, cf as StreamNodeRecordsRequestSchema, cg as StreamNodeRecordsResponse, ch as StreamNodeRecordsResponseSchema, ci as StreamSlotMetricsRequest, cj as StreamSlotMetricsRequestSchema, ck as StreamSlotMetricsResponse, cl as StreamSlotMetricsResponseSchema, cm as StreamTransactionsRequest, cn as StreamTransactionsRequestSchema, co as StreamTransactionsResponse, cp as StreamTransactionsResponseSchema, cq as StreamingService, cr as SubmissionStatus, cs as SubmissionStatusSchema, ct as TaPubkey, cu as TaPubkeySchema, cv as TrackTransactionRequest, cw as TrackTransactionRequestSchema, cx as TrackTransactionResponse, cy as TrackTransactionResponseSchema, cA as TransactionEvent, cB as TransactionEventSchema, cC as TransactionExecutionResult, cD as TransactionExecutionResultSchema, cE as TransactionHeader, cF as TransactionHeaderSchema, cG as TransactionSchema, cH as TransactionStatus, cI as TransactionStatusSchema, cJ as TransactionView, cK as TransactionViewSchema, cL as TransactionVmError, cM as TransactionVmErrorSchema, cN as TsSignature, cO as TsSignatureSchema, cP as VersionContext, cQ as VersionContextMetadata, cR as VersionContextMetadataSchema, cS as VersionContextSchema, cT as file_thru_common_v1_consensus, cU as file_thru_common_v1_filters, cV as file_thru_common_v1_pagination, cW as file_thru_common_v1_primitives, cX as file_thru_core_v1_account, cY as file_thru_core_v1_block, cZ as file_thru_core_v1_node, c_ as file_thru_core_v1_state, c$ as file_thru_core_v1_transaction, d0 as file_thru_core_v1_types, d1 as file_thru_services_v1_command_service, d2 as file_thru_services_v1_query_service, d3 as file_thru_services_v1_streaming_service } from '../streaming_service_pb-DvCdJiCr.js';
5
+ import { GenMessage, GenEnum, GenFile, GenService } from '@bufbuild/protobuf/codegenv2';
6
+ import { Timestamp } from '@bufbuild/protobuf/wkt';
7
+
8
+ /**
9
+ * Describes the file thru/common/v1/errors.proto.
10
+ */
11
+ declare const file_thru_common_v1_errors: GenFile;
12
+ /**
13
+ * ErrorDetail provides structured error metadata attached to gRPC errors.
14
+ *
15
+ * @generated from message thru.common.v1.ErrorDetail
16
+ */
17
+ type ErrorDetail = Message<"thru.common.v1.ErrorDetail"> & {
18
+ /**
19
+ * High-level error category.
20
+ *
21
+ * @generated from field: thru.common.v1.ErrorType error_type = 1;
22
+ */
23
+ errorType: ErrorType;
24
+ /**
25
+ * Human-readable error summary.
26
+ *
27
+ * @generated from field: string message = 2;
28
+ */
29
+ message: string;
30
+ /**
31
+ * Optional retention window expressed in slots when applicable.
32
+ *
33
+ * @generated from field: optional uint64 retention_window_slots = 3;
34
+ */
35
+ retentionWindowSlots?: bigint | undefined;
36
+ /**
37
+ * Optional retention cutoff timestamp when applicable.
38
+ *
39
+ * @generated from field: optional google.protobuf.Timestamp retention_cutoff = 4;
40
+ */
41
+ retentionCutoff?: Timestamp | undefined;
42
+ /**
43
+ * Optional name of the field associated with the error.
44
+ *
45
+ * @generated from field: optional string field_name = 5;
46
+ */
47
+ fieldName?: string | undefined;
48
+ };
49
+ /**
50
+ * Describes the message thru.common.v1.ErrorDetail.
51
+ * Use `create(ErrorDetailSchema)` to create a new message.
52
+ */
53
+ declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
54
+ /**
55
+ * ErrorType captures structured error categories returned by the services.
56
+ *
57
+ * @generated from enum thru.common.v1.ErrorType
58
+ */
59
+ declare enum ErrorType {
60
+ /**
61
+ * ERROR_TYPE_UNSPECIFIED is an unknown error condition.
62
+ *
63
+ * @generated from enum value: ERROR_TYPE_UNSPECIFIED = 0;
64
+ */
65
+ UNSPECIFIED = 0,
66
+ /**
67
+ * ERROR_TYPE_NOT_FOUND indicates requested data does not exist.
68
+ *
69
+ * @generated from enum value: ERROR_TYPE_NOT_FOUND = 1;
70
+ */
71
+ NOT_FOUND = 1,
72
+ /**
73
+ * ERROR_TYPE_NOT_RETAINED indicates requested data was not retained under TTL.
74
+ *
75
+ * @generated from enum value: ERROR_TYPE_NOT_RETAINED = 2;
76
+ */
77
+ NOT_RETAINED = 2,
78
+ /**
79
+ * ERROR_TYPE_NOT_FOUND_OR_NOT_RETAINED indicates an ambiguous not found vs TTL case.
80
+ *
81
+ * @generated from enum value: ERROR_TYPE_NOT_FOUND_OR_NOT_RETAINED = 3;
82
+ */
83
+ NOT_FOUND_OR_NOT_RETAINED = 3,
84
+ /**
85
+ * ERROR_TYPE_INVALID_REQUEST indicates the request failed validation.
86
+ *
87
+ * @generated from enum value: ERROR_TYPE_INVALID_REQUEST = 4;
88
+ */
89
+ INVALID_REQUEST = 4,
90
+ /**
91
+ * ERROR_TYPE_CEL_VALIDATION_FAILED indicates a CEL filter failed validation.
92
+ *
93
+ * @generated from enum value: ERROR_TYPE_CEL_VALIDATION_FAILED = 5;
94
+ */
95
+ CEL_VALIDATION_FAILED = 5,
96
+ /**
97
+ * ERROR_TYPE_INTERNAL_ERROR indicates an internal server error occurred.
98
+ *
99
+ * @generated from enum value: ERROR_TYPE_INTERNAL_ERROR = 6;
100
+ */
101
+ INTERNAL_ERROR = 6
102
+ }
103
+ /**
104
+ * Describes the enum thru.common.v1.ErrorType.
105
+ */
106
+ declare const ErrorTypeSchema: GenEnum<ErrorType>;
107
+
108
+ /**
109
+ * Describes the file thru/services/v1/debug_service.proto.
110
+ */
111
+ declare const file_thru_services_v1_debug_service: GenFile;
112
+ /**
113
+ * CallFrame represents a single shadow stack frame from the VM.
114
+ *
115
+ * @generated from message thru.services.v1.CallFrame
116
+ */
117
+ type CallFrame = Message<"thru.services.v1.CallFrame"> & {
118
+ /**
119
+ * @generated from field: uint32 program_acc_idx = 1;
120
+ */
121
+ programAccIdx: number;
122
+ /**
123
+ * @generated from field: uint64 program_counter = 2;
124
+ */
125
+ programCounter: bigint;
126
+ /**
127
+ * @generated from field: uint64 stack_pointer = 3;
128
+ */
129
+ stackPointer: bigint;
130
+ /**
131
+ * @generated from field: repeated uint64 saved_registers = 4;
132
+ */
133
+ savedRegisters: bigint[];
134
+ /**
135
+ * Up to 1024 bytes above sp
136
+ *
137
+ * @generated from field: bytes stack_window = 5;
138
+ */
139
+ stackWindow: Uint8Array;
140
+ /**
141
+ * Virtual address of first byte (== stack_pointer)
142
+ *
143
+ * @generated from field: uint64 stack_window_base = 6;
144
+ */
145
+ stackWindowBase: bigint;
146
+ };
147
+ /**
148
+ * Describes the message thru.services.v1.CallFrame.
149
+ * Use `create(CallFrameSchema)` to create a new message.
150
+ */
151
+ declare const CallFrameSchema: GenMessage<CallFrame>;
152
+ /**
153
+ * MemoryPage represents a single allocated page of VM memory.
154
+ *
155
+ * @generated from message thru.services.v1.MemoryPage
156
+ */
157
+ type MemoryPage = Message<"thru.services.v1.MemoryPage"> & {
158
+ /**
159
+ * Index within the segment's page array
160
+ *
161
+ * @generated from field: uint32 page_index = 1;
162
+ */
163
+ pageIndex: number;
164
+ /**
165
+ * Page contents (4096 bytes)
166
+ *
167
+ * @generated from field: bytes data = 2;
168
+ */
169
+ data: Uint8Array;
170
+ };
171
+ /**
172
+ * Describes the message thru.services.v1.MemoryPage.
173
+ * Use `create(MemoryPageSchema)` to create a new message.
174
+ */
175
+ declare const MemoryPageSchema: GenMessage<MemoryPage>;
176
+ /**
177
+ * MemorySegment represents all allocated pages of a VM memory segment.
178
+ *
179
+ * @generated from message thru.services.v1.MemorySegment
180
+ */
181
+ type MemorySegment = Message<"thru.services.v1.MemorySegment"> & {
182
+ /**
183
+ * VM segment type (5=stack, 7=heap)
184
+ *
185
+ * @generated from field: uint32 segment_type = 1;
186
+ */
187
+ segmentType: number;
188
+ /**
189
+ * Total virtual size of segment in bytes
190
+ *
191
+ * @generated from field: uint64 segment_size = 2;
192
+ */
193
+ segmentSize: bigint;
194
+ /**
195
+ * @generated from field: repeated thru.services.v1.MemoryPage pages = 3;
196
+ */
197
+ pages: MemoryPage[];
198
+ };
199
+ /**
200
+ * Describes the message thru.services.v1.MemorySegment.
201
+ * Use `create(MemorySegmentSchema)` to create a new message.
202
+ */
203
+ declare const MemorySegmentSchema: GenMessage<MemorySegment>;
204
+ /**
205
+ * VmExecutionDetails contains detailed VM state after execution.
206
+ *
207
+ * @generated from message thru.services.v1.VmExecutionDetails
208
+ */
209
+ type VmExecutionDetails = Message<"thru.services.v1.VmExecutionDetails"> & {
210
+ /**
211
+ * @generated from field: uint64 execution_code = 1;
212
+ */
213
+ executionCode: bigint;
214
+ /**
215
+ * @generated from field: uint64 user_error_code = 2;
216
+ */
217
+ userErrorCode: bigint;
218
+ /**
219
+ * @generated from field: uint64 compute_units_consumed = 3;
220
+ */
221
+ computeUnitsConsumed: bigint;
222
+ /**
223
+ * @generated from field: uint64 state_units_consumed = 4;
224
+ */
225
+ stateUnitsConsumed: bigint;
226
+ /**
227
+ * @generated from field: uint64 pages_used = 5;
228
+ */
229
+ pagesUsed: bigint;
230
+ /**
231
+ * @generated from field: uint64 program_counter = 6;
232
+ */
233
+ programCounter: bigint;
234
+ /**
235
+ * @generated from field: uint64 instruction_counter = 7;
236
+ */
237
+ instructionCounter: bigint;
238
+ /**
239
+ * @generated from field: thru.services.v1.VmFaultCode fault_code = 8;
240
+ */
241
+ faultCode: VmFaultCode;
242
+ /**
243
+ * @generated from field: uint64 segv_vaddr = 9;
244
+ */
245
+ segvVaddr: bigint;
246
+ /**
247
+ * @generated from field: uint64 segv_size = 10;
248
+ */
249
+ segvSize: bigint;
250
+ /**
251
+ * @generated from field: bool segv_write = 11;
252
+ */
253
+ segvWrite: boolean;
254
+ /**
255
+ * @generated from field: repeated uint64 registers = 12;
256
+ */
257
+ registers: bigint[];
258
+ /**
259
+ * @generated from field: uint64 call_depth = 13;
260
+ */
261
+ callDepth: bigint;
262
+ /**
263
+ * @generated from field: uint64 max_call_depth = 14;
264
+ */
265
+ maxCallDepth: bigint;
266
+ /**
267
+ * @generated from field: repeated thru.services.v1.CallFrame call_frames = 15;
268
+ */
269
+ callFrames: CallFrame[];
270
+ };
271
+ /**
272
+ * Describes the message thru.services.v1.VmExecutionDetails.
273
+ * Use `create(VmExecutionDetailsSchema)` to create a new message.
274
+ */
275
+ declare const VmExecutionDetailsSchema: GenMessage<VmExecutionDetails>;
276
+ /**
277
+ * AccountSnapshot represents the state of an account at a point in time.
278
+ *
279
+ * @generated from message thru.services.v1.AccountSnapshot
280
+ */
281
+ type AccountSnapshot = Message<"thru.services.v1.AccountSnapshot"> & {
282
+ /**
283
+ * @generated from field: thru.common.v1.Pubkey address = 1;
284
+ */
285
+ address?: Pubkey | undefined;
286
+ /**
287
+ * @generated from field: thru.core.v1.AccountMeta meta = 2;
288
+ */
289
+ meta?: AccountMeta | undefined;
290
+ /**
291
+ * @generated from field: optional bytes data = 3;
292
+ */
293
+ data?: Uint8Array | undefined;
294
+ /**
295
+ * @generated from field: bool exists = 4;
296
+ */
297
+ exists: boolean;
298
+ };
299
+ /**
300
+ * Describes the message thru.services.v1.AccountSnapshot.
301
+ * Use `create(AccountSnapshotSchema)` to create a new message.
302
+ */
303
+ declare const AccountSnapshotSchema: GenMessage<AccountSnapshot>;
304
+ /**
305
+ * DebugReExecuteRequest is a request to re-execute a transaction in simulated environment.
306
+ *
307
+ * @generated from message thru.services.v1.DebugReExecuteRequest
308
+ */
309
+ type DebugReExecuteRequest = Message<"thru.services.v1.DebugReExecuteRequest"> & {
310
+ /**
311
+ * @generated from field: thru.common.v1.Signature signature = 1;
312
+ */
313
+ signature?: Signature | undefined;
314
+ /**
315
+ * @generated from field: bool include_state_before = 2;
316
+ */
317
+ includeStateBefore: boolean;
318
+ /**
319
+ * @generated from field: bool include_state_after = 3;
320
+ */
321
+ includeStateAfter: boolean;
322
+ /**
323
+ * @generated from field: bool include_account_data = 4;
324
+ */
325
+ includeAccountData: boolean;
326
+ /**
327
+ * Return all allocated stack+heap pages
328
+ *
329
+ * @generated from field: bool include_memory_dump = 5;
330
+ */
331
+ includeMemoryDump: boolean;
332
+ };
333
+ /**
334
+ * Describes the message thru.services.v1.DebugReExecuteRequest.
335
+ * Use `create(DebugReExecuteRequestSchema)` to create a new message.
336
+ */
337
+ declare const DebugReExecuteRequestSchema: GenMessage<DebugReExecuteRequest>;
338
+ /**
339
+ * DebugReExecuteResponse is a response from the debug service.
340
+ *
341
+ * @generated from message thru.services.v1.DebugReExecuteResponse
342
+ */
343
+ type DebugReExecuteResponse = Message<"thru.services.v1.DebugReExecuteResponse"> & {
344
+ /**
345
+ * @generated from field: thru.core.v1.Transaction transaction = 1;
346
+ */
347
+ transaction?: Transaction | undefined;
348
+ /**
349
+ * @generated from field: string stdout = 2;
350
+ */
351
+ stdout: string;
352
+ /**
353
+ * @generated from field: string log = 3;
354
+ */
355
+ log: string;
356
+ /**
357
+ * @generated from field: string trace = 4;
358
+ */
359
+ trace: string;
360
+ /**
361
+ * @generated from field: thru.services.v1.VmExecutionDetails execution_details = 5;
362
+ */
363
+ executionDetails?: VmExecutionDetails | undefined;
364
+ /**
365
+ * @generated from field: repeated thru.services.v1.AccountSnapshot state_before = 6;
366
+ */
367
+ stateBefore: AccountSnapshot[];
368
+ /**
369
+ * @generated from field: repeated thru.services.v1.AccountSnapshot state_after = 7;
370
+ */
371
+ stateAfter: AccountSnapshot[];
372
+ /**
373
+ * @generated from field: repeated thru.services.v1.MemorySegment memory_segments = 8;
374
+ */
375
+ memorySegments: MemorySegment[];
376
+ };
377
+ /**
378
+ * Describes the message thru.services.v1.DebugReExecuteResponse.
379
+ * Use `create(DebugReExecuteResponseSchema)` to create a new message.
380
+ */
381
+ declare const DebugReExecuteResponseSchema: GenMessage<DebugReExecuteResponse>;
382
+ /**
383
+ * VmFaultCode enumerates VM halt conditions.
384
+ *
385
+ * @generated from enum thru.services.v1.VmFaultCode
386
+ */
387
+ declare enum VmFaultCode {
388
+ /**
389
+ * No fault
390
+ *
391
+ * @generated from enum value: VM_FAULT_NONE = 0;
392
+ */
393
+ VM_FAULT_NONE = 0,
394
+ /**
395
+ * TN_VM_FAULT_REVERT — explicit revert by program
396
+ *
397
+ * @generated from enum value: VM_FAULT_REVERT = 1;
398
+ */
399
+ VM_FAULT_REVERT = 1,
400
+ /**
401
+ * TN_VM_FAULT_SIGCU — compute units exhausted
402
+ *
403
+ * @generated from enum value: VM_FAULT_SIGCU = 2;
404
+ */
405
+ VM_FAULT_SIGCU = 2,
406
+ /**
407
+ * TN_VM_FAULT_SIGSU — state units exhausted
408
+ *
409
+ * @generated from enum value: VM_FAULT_SIGSU = 3;
410
+ */
411
+ VM_FAULT_SIGSU = 3
412
+ }
413
+ /**
414
+ * Describes the enum thru.services.v1.VmFaultCode.
415
+ */
416
+ declare const VmFaultCodeSchema: GenEnum<VmFaultCode>;
417
+ /**
418
+ * DebugService defines unary RPCs helpful for debugging.
419
+ *
420
+ * @generated from service thru.services.v1.DebugService
421
+ */
422
+ declare const DebugService: GenService<{
423
+ /**
424
+ * DebugReExecute executes a transaction in simulated environment.
425
+ *
426
+ * @generated from rpc thru.services.v1.DebugService.DebugReExecute
427
+ */
428
+ debugReExecute: {
429
+ methodKind: "unary";
430
+ input: typeof DebugReExecuteRequestSchema;
431
+ output: typeof DebugReExecuteResponseSchema;
432
+ };
433
+ }>;
434
+
435
+ export { AccountMeta, type AccountSnapshot, AccountSnapshotSchema, type CallFrame, CallFrameSchema, type DebugReExecuteRequest, DebugReExecuteRequestSchema, type DebugReExecuteResponse, DebugReExecuteResponseSchema, DebugService, type ErrorDetail, ErrorDetailSchema, ErrorType, ErrorTypeSchema, type MemoryPage, MemoryPageSchema, type MemorySegment, MemorySegmentSchema, Pubkey, Signature, Transaction, type VmExecutionDetails, VmExecutionDetailsSchema, VmFaultCode, VmFaultCodeSchema, file_thru_common_v1_errors, file_thru_services_v1_debug_service };
@@ -0,0 +1,4 @@
1
+ export { AccountDataSchema, AccountFlagsSchema, AccountMetaSchema, AccountPageSchema, AccountSchema, AccountSnapshotSchema, AccountUpdateSchema, AccountView, AccountViewSchema, ActiveStateHashEntrySchema, BatchSendTransactionsRequestSchema, BatchSendTransactionsResponseSchema, BlockFinishedSchema, BlockFooterSchema, BlockHashSchema, BlockHeaderSchema, BlockSchema, BlockView, BlockViewSchema, BytesListSchema, CallFrameSchema, CelFilterValidationSchema, CommandService, ConsensusStatus, ConsensusStatusSchema, CurrentOrHistoricalVersionSchema, CurrentVersionSchema, DataSliceSchema, DebugReExecuteRequestSchema, DebugReExecuteResponseSchema, DebugService, ErrorDetailSchema, ErrorType, ErrorTypeSchema, EventSchema, ExecutionStatus, ExecutionStatusSchema, FilterParamValueSchema, FilterSchema, GenerateStateProofRequestSchema, GenerateStateProofResponseSchema, GetAccountRequestSchema, GetActiveStateHashesRequestSchema, GetActiveStateHashesResponseSchema, GetBlockRequestSchema, GetChainInfoRequestSchema, GetChainInfoResponseSchema, GetEventRequestSchema, GetHeightRequestSchema, GetHeightResponseSchema, GetNodePubkeyRequestSchema, GetNodePubkeyResponseSchema, GetNodeRecordsRequestSchema, GetNodeRecordsResponseSchema, GetNodeStatusRequestSchema, GetNodeStatusResponseSchema, GetRawAccountRequestSchema, GetRawBlockRequestSchema, GetRawTransactionRequestSchema, GetSlotMetricsRequestSchema, GetSlotMetricsResponseSchema, GetStateRootsRequestSchema, GetStateRootsResponseSchema, GetTransactionRequestSchema, GetTransactionStatusRequestSchema, GetVersionRequestSchema, GetVersionResponseSchema, HashSchema, ListAccountsRequestSchema, ListAccountsResponseSchema, ListBlocksRequestSchema, ListBlocksResponseSchema, ListEventsRequestSchema, ListEventsResponseSchema, ListSlotMetricsRequestSchema, ListSlotMetricsResponseSchema, ListTransactionsForAccountRequestSchema, ListTransactionsForAccountResponseSchema, ListTransactionsRequestSchema, ListTransactionsResponseSchema, MemoryPageSchema, MemorySegmentSchema, NodeConsensusStatusSchema, NodeContactSchema, NodeMode, NodeModeSchema, NodeProtocolSchema, NodeRecordSchema, NodeRepairStatusSchema, PageRequestSchema, PageResponseSchema, PubkeyListSchema, PubkeySchema, QueryService, RawAccountSchema, RawBlockSchema, RawTransactionSchema, SendAndTrackTxnRequestSchema, SendAndTrackTxnResponseSchema, SendTransactionRequestSchema, SendTransactionResponseSchema, SignatureSchema, StateProofRequestSchema, StateProofSchema, StateProofType, StateProofTypeSchema, StateRootEntrySchema, StreamAccountUpdatesRequestSchema, StreamAccountUpdatesResponseSchema, StreamBlocksRequestSchema, StreamBlocksResponseSchema, StreamEventsRequestSchema, StreamEventsResponseSchema, StreamHeightRequestSchema, StreamHeightResponseSchema, StreamNodeRecordsRequestSchema, StreamNodeRecordsResponseSchema, StreamSlotMetricsRequestSchema, StreamSlotMetricsResponseSchema, StreamTransactionsRequestSchema, StreamTransactionsResponseSchema, StreamingService, SubmissionStatus, SubmissionStatusSchema, TaPubkeySchema, TrackTransactionRequestSchema, TrackTransactionResponseSchema, TransactionEventSchema, TransactionExecutionResultSchema, TransactionHeaderSchema, TransactionSchema, TransactionStatusSchema, TransactionView, TransactionViewSchema, TransactionVmError, TransactionVmErrorSchema, TsSignatureSchema, VersionContextMetadataSchema, VersionContextSchema, VmExecutionDetailsSchema, VmFaultCode, VmFaultCodeSchema, create, file_thru_common_v1_consensus, file_thru_common_v1_errors, file_thru_common_v1_filters, file_thru_common_v1_pagination, file_thru_common_v1_primitives, file_thru_core_v1_account, file_thru_core_v1_block, file_thru_core_v1_node, file_thru_core_v1_state, file_thru_core_v1_transaction, file_thru_core_v1_types, file_thru_services_v1_command_service, file_thru_services_v1_debug_service, file_thru_services_v1_query_service, file_thru_services_v1_streaming_service } from '../chunk-YQDWOMNO.js';
2
+ import '../chunk-NSBPE2FW.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}