@thru/thru-sdk 0.1.24 → 0.1.28

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.
@@ -115,82 +115,6 @@ declare enum ConsensusStatus {
115
115
  CLUSTER_EXECUTED = 5
116
116
  }
117
117
 
118
- /**
119
- * Filter represents a CEL-based expression applied to query or stream results.
120
- *
121
- * @generated from message thru.common.v1.Filter
122
- */
123
- type Filter$1 = Message<"thru.common.v1.Filter"> & {
124
- /**
125
- * CEL expression applied server-side. Empty expressions are treated as no-op.
126
- *
127
- * @generated from field: optional string expression = 1;
128
- */
129
- expression?: string;
130
- /**
131
- * Named parameter bindings for expression parameterization.
132
- *
133
- * @generated from field: map<string, thru.common.v1.FilterParamValue> params = 2;
134
- */
135
- params: {
136
- [key: string]: FilterParamValue$1;
137
- };
138
- };
139
- /**
140
- * Describes the message thru.common.v1.Filter.
141
- * Use `create(FilterSchema)` to create a new message.
142
- */
143
- declare const FilterSchema: GenMessage<Filter$1>;
144
- /**
145
- * FilterParamValue carries strongly-typed CEL parameter bindings.
146
- *
147
- * @generated from message thru.common.v1.FilterParamValue
148
- */
149
- type FilterParamValue$1 = Message<"thru.common.v1.FilterParamValue"> & {
150
- /**
151
- * @generated from oneof thru.common.v1.FilterParamValue.kind
152
- */
153
- kind: {
154
- /**
155
- * @generated from field: string string_value = 1;
156
- */
157
- value: string;
158
- case: "stringValue";
159
- } | {
160
- /**
161
- * @generated from field: bytes bytes_value = 2;
162
- */
163
- value: Uint8Array;
164
- case: "bytesValue";
165
- } | {
166
- /**
167
- * @generated from field: bool bool_value = 3;
168
- */
169
- value: boolean;
170
- case: "boolValue";
171
- } | {
172
- /**
173
- * @generated from field: sint64 int_value = 4;
174
- */
175
- value: bigint;
176
- case: "intValue";
177
- } | {
178
- /**
179
- * @generated from field: double double_value = 5;
180
- */
181
- value: number;
182
- case: "doubleValue";
183
- } | {
184
- case: undefined;
185
- value?: undefined;
186
- };
187
- };
188
- /**
189
- * Describes the message thru.common.v1.FilterParamValue.
190
- * Use `create(FilterParamValueSchema)` to create a new message.
191
- */
192
- declare const FilterParamValueSchema: GenMessage<FilterParamValue$1>;
193
-
194
118
  /**
195
119
  * Pubkey represents a 32-byte public key value.
196
120
  *
@@ -232,771 +156,847 @@ type Signature = Message<"thru.core.v1.Signature"> & {
232
156
  };
233
157
 
234
158
  /**
235
- * AccountFlags enumerates boolean account capability flags.
159
+ * TransactionHeader carries structured metadata for a transaction.
236
160
  *
237
- * @generated from message thru.core.v1.AccountFlags
161
+ * @generated from message thru.core.v1.TransactionHeader
238
162
  */
239
- type AccountFlags$1 = Message<"thru.core.v1.AccountFlags"> & {
163
+ type TransactionHeader = Message<"thru.core.v1.TransactionHeader"> & {
240
164
  /**
241
- * @generated from field: bool is_program = 1;
165
+ * @generated from field: thru.core.v1.Signature fee_payer_signature = 1;
242
166
  */
243
- isProgram: boolean;
167
+ feePayerSignature?: Signature;
244
168
  /**
245
- * @generated from field: bool is_privileged = 2;
169
+ * @generated from field: uint32 version = 2;
246
170
  */
247
- isPrivileged: boolean;
171
+ version: number;
248
172
  /**
249
- * @generated from field: bool is_uncompressable = 3;
173
+ * @generated from field: uint32 flags = 3;
250
174
  */
251
- isUncompressable: boolean;
175
+ flags: number;
252
176
  /**
253
- * @generated from field: bool is_ephemeral = 4;
177
+ * @generated from field: uint32 readwrite_accounts_count = 4;
254
178
  */
255
- isEphemeral: boolean;
179
+ readwriteAccountsCount: number;
256
180
  /**
257
- * @generated from field: bool is_deleted = 5;
181
+ * @generated from field: uint32 readonly_accounts_count = 5;
258
182
  */
259
- isDeleted: boolean;
183
+ readonlyAccountsCount: number;
260
184
  /**
261
- * @generated from field: bool is_new = 6;
185
+ * @generated from field: uint32 instruction_data_size = 6;
262
186
  */
263
- isNew: boolean;
187
+ instructionDataSize: number;
264
188
  /**
265
- * @generated from field: bool is_compressed = 7;
189
+ * @generated from field: uint32 requested_compute_units = 7;
266
190
  */
267
- isCompressed: boolean;
268
- };
269
- /**
270
- * AccountMeta captures metadata associated with an account.
271
- *
272
- * @generated from message thru.core.v1.AccountMeta
273
- */
274
- type AccountMeta$1 = Message<"thru.core.v1.AccountMeta"> & {
191
+ requestedComputeUnits: number;
275
192
  /**
276
- * @generated from field: uint32 version = 1;
193
+ * @generated from field: uint32 requested_state_units = 8;
277
194
  */
278
- version: number;
195
+ requestedStateUnits: number;
279
196
  /**
280
- * @generated from field: thru.core.v1.AccountFlags flags = 2;
197
+ * @generated from field: uint32 requested_memory_units = 9;
281
198
  */
282
- flags?: AccountFlags$1;
199
+ requestedMemoryUnits: number;
283
200
  /**
284
- * @generated from field: uint32 data_size = 3;
201
+ * @generated from field: uint32 expiry_after = 10;
285
202
  */
286
- dataSize: number;
203
+ expiryAfter: number;
287
204
  /**
288
- * Account sequence number
289
- *
290
- * @generated from field: uint64 seq = 4;
205
+ * @generated from field: uint64 fee = 11;
291
206
  */
292
- seq: bigint;
207
+ fee: bigint;
293
208
  /**
294
- * @generated from field: thru.core.v1.Pubkey owner = 5;
209
+ * @generated from field: uint64 nonce = 12;
295
210
  */
296
- owner?: Pubkey;
211
+ nonce: bigint;
297
212
  /**
298
- * @generated from field: uint64 balance = 6;
213
+ * @generated from field: uint64 start_slot = 13;
299
214
  */
300
- balance: bigint;
215
+ startSlot: bigint;
301
216
  /**
302
- * @generated from field: uint64 nonce = 7;
217
+ * @generated from field: thru.core.v1.Pubkey fee_payer_pubkey = 14;
303
218
  */
304
- nonce: bigint;
219
+ feePayerPubkey?: Pubkey;
220
+ /**
221
+ * @generated from field: thru.core.v1.Pubkey program_pubkey = 15;
222
+ */
223
+ programPubkey?: Pubkey;
305
224
  };
306
225
  /**
307
- * AccountData contains account data payloads.
226
+ * TransactionExecutionResult captures execution outcomes.
308
227
  *
309
- * @generated from message thru.core.v1.AccountData
228
+ * @generated from message thru.core.v1.TransactionExecutionResult
310
229
  */
311
- type AccountData$1 = Message<"thru.core.v1.AccountData"> & {
230
+ type TransactionExecutionResult = Message<"thru.core.v1.TransactionExecutionResult"> & {
312
231
  /**
313
- * @generated from field: optional bytes data = 1;
232
+ * @generated from field: uint32 consumed_compute_units = 1;
314
233
  */
315
- data?: Uint8Array;
234
+ consumedComputeUnits: number;
316
235
  /**
317
- * @generated from field: optional bool compressed = 2;
236
+ * @generated from field: uint32 consumed_memory_units = 2;
318
237
  */
319
- compressed?: boolean;
238
+ consumedMemoryUnits: number;
320
239
  /**
321
- * @generated from field: optional string compression_algorithm = 3;
240
+ * @generated from field: uint32 consumed_state_units = 3;
322
241
  */
323
- compressionAlgorithm?: string;
324
- };
325
- /**
326
- * DataSlice describes a contiguous range of account data to return.
327
- *
328
- * @generated from message thru.core.v1.DataSlice
329
- */
330
- type DataSlice = Message<"thru.core.v1.DataSlice"> & {
242
+ consumedStateUnits: number;
331
243
  /**
332
- * @generated from field: uint32 offset = 1;
244
+ * @generated from field: uint64 user_error_code = 4;
333
245
  */
334
- offset: number;
246
+ userErrorCode: bigint;
335
247
  /**
336
- * @generated from field: uint32 length = 2;
248
+ * @generated from field: thru.core.v1.TransactionVmError vm_error = 5;
337
249
  */
338
- length: number;
339
- };
340
- /**
341
- * VersionContextMetadata captures context for a returned account state.
342
- *
343
- * @generated from message thru.core.v1.VersionContextMetadata
344
- */
345
- type VersionContextMetadata = Message<"thru.core.v1.VersionContextMetadata"> & {
250
+ vmError: TransactionVmError;
346
251
  /**
347
- * @generated from field: optional uint64 slot = 1;
252
+ * @generated from field: uint64 execution_result = 6;
348
253
  */
349
- slot?: bigint;
254
+ executionResult: bigint;
350
255
  /**
351
- * @generated from field: optional google.protobuf.Timestamp block_timestamp = 2;
256
+ * @generated from field: uint32 pages_used = 7;
352
257
  */
353
- blockTimestamp?: Timestamp;
354
- };
355
- /**
356
- * Account models a fully decoded account resource.
357
- *
358
- * @generated from message thru.core.v1.Account
359
- */
360
- type Account$1 = Message<"thru.core.v1.Account"> & {
258
+ pagesUsed: number;
361
259
  /**
362
- * @generated from field: thru.core.v1.Pubkey address = 1;
260
+ * @generated from field: uint32 events_count = 8;
363
261
  */
364
- address?: Pubkey;
262
+ eventsCount: number;
365
263
  /**
366
- * @generated from field: optional thru.core.v1.AccountMeta meta = 2;
264
+ * @generated from field: uint32 events_size = 9;
367
265
  */
368
- meta?: AccountMeta$1;
266
+ eventsSize: number;
369
267
  /**
370
- * @generated from field: optional thru.core.v1.AccountData data = 3;
268
+ * @generated from field: repeated thru.core.v1.Pubkey readwrite_accounts = 10;
371
269
  */
372
- data?: AccountData$1;
270
+ readwriteAccounts: Pubkey[];
373
271
  /**
374
- * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
272
+ * @generated from field: repeated thru.core.v1.Pubkey readonly_accounts = 11;
375
273
  */
376
- versionContext?: VersionContextMetadata;
274
+ readonlyAccounts: Pubkey[];
377
275
  /**
378
- * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 5;
276
+ * @generated from field: repeated thru.core.v1.TransactionEvent events = 12;
379
277
  */
380
- consensusStatus?: ConsensusStatus;
278
+ events: TransactionEvent[];
381
279
  };
382
280
  /**
383
- * RawAccount captures raw serialized account bytes.
281
+ * TransactionEvent describes an event emitted during transaction execution.
384
282
  *
385
- * @generated from message thru.core.v1.RawAccount
283
+ * @generated from message thru.core.v1.TransactionEvent
386
284
  */
387
- type RawAccount = Message<"thru.core.v1.RawAccount"> & {
285
+ type TransactionEvent = Message<"thru.core.v1.TransactionEvent"> & {
388
286
  /**
389
- * @generated from field: thru.core.v1.Pubkey address = 1;
287
+ * @generated from field: string event_id = 1;
390
288
  */
391
- address?: Pubkey;
289
+ eventId: string;
392
290
  /**
393
- * @generated from field: bytes raw_meta = 2;
291
+ * @generated from field: uint32 call_idx = 2;
394
292
  */
395
- rawMeta: Uint8Array;
293
+ callIdx: number;
396
294
  /**
397
- * @generated from field: optional bytes raw_data = 3;
295
+ * @generated from field: uint32 program_idx = 3;
398
296
  */
399
- rawData?: Uint8Array;
297
+ programIdx: number;
400
298
  /**
401
- * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
299
+ * @generated from field: thru.core.v1.Pubkey program = 4;
402
300
  */
403
- versionContext?: VersionContextMetadata;
301
+ program?: Pubkey;
302
+ /**
303
+ * @generated from field: bytes payload = 5;
304
+ */
305
+ payload: Uint8Array;
404
306
  };
405
307
  /**
406
- * AccountView controls which sections of account resources are returned.
308
+ * Transaction describes a fully decoded transaction resource.
407
309
  *
408
- * @generated from enum thru.core.v1.AccountView
310
+ * @generated from message thru.core.v1.Transaction
409
311
  */
410
- declare enum AccountView {
312
+ type Transaction$1 = Message<"thru.core.v1.Transaction"> & {
411
313
  /**
412
- * ACCOUNT_VIEW_UNSPECIFIED uses service defaults.
413
- *
414
- * @generated from enum value: ACCOUNT_VIEW_UNSPECIFIED = 0;
314
+ * @generated from field: thru.core.v1.Signature signature = 1;
415
315
  */
416
- UNSPECIFIED = 0,
316
+ signature?: Signature;
417
317
  /**
418
- * ACCOUNT_VIEW_PUBKEY_ONLY returns only the account address.
419
- *
420
- * @generated from enum value: ACCOUNT_VIEW_PUBKEY_ONLY = 1;
318
+ * @generated from field: thru.core.v1.TransactionHeader header = 2;
421
319
  */
422
- PUBKEY_ONLY = 1,
320
+ header?: TransactionHeader;
423
321
  /**
424
- * ACCOUNT_VIEW_META_ONLY returns only account metadata.
425
- *
426
- * @generated from enum value: ACCOUNT_VIEW_META_ONLY = 2;
322
+ * @generated from field: optional bytes body = 3;
427
323
  */
428
- META_ONLY = 2,
324
+ body?: Uint8Array;
429
325
  /**
430
- * ACCOUNT_VIEW_DATA_ONLY returns only account data.
431
- *
432
- * @generated from enum value: ACCOUNT_VIEW_DATA_ONLY = 3;
326
+ * @generated from field: optional thru.core.v1.TransactionExecutionResult execution_result = 4;
433
327
  */
434
- DATA_ONLY = 3,
328
+ executionResult?: TransactionExecutionResult;
435
329
  /**
436
- * ACCOUNT_VIEW_FULL returns address, metadata, and data.
437
- *
438
- * @generated from enum value: ACCOUNT_VIEW_FULL = 4;
330
+ * @generated from field: optional uint64 slot = 5;
439
331
  */
440
- FULL = 4
441
- }
442
-
332
+ slot?: bigint;
333
+ /**
334
+ * @generated from field: optional uint32 block_offset = 6;
335
+ */
336
+ blockOffset?: number;
337
+ };
443
338
  /**
444
- * BlockHeader describes metadata about a block.
339
+ * RawTransaction provides direct access to serialized transaction bytes.
445
340
  *
446
- * @generated from message thru.core.v1.BlockHeader
341
+ * @generated from message thru.core.v1.RawTransaction
447
342
  */
448
- type BlockHeader$1 = Message<"thru.core.v1.BlockHeader"> & {
449
- /**
450
- * @generated from field: uint64 slot = 1;
451
- */
452
- slot: bigint;
453
- /**
454
- * @generated from field: thru.core.v1.BlockHash block_hash = 2;
455
- */
456
- blockHash?: BlockHash;
343
+ type RawTransaction = Message<"thru.core.v1.RawTransaction"> & {
457
344
  /**
458
- * @generated from field: thru.core.v1.Signature header_signature = 3;
345
+ * @generated from field: thru.core.v1.Signature signature = 1;
459
346
  */
460
- headerSignature?: Signature;
347
+ signature?: Signature;
461
348
  /**
462
- * @generated from field: uint32 version = 4;
349
+ * @generated from field: bytes raw_transaction = 2;
463
350
  */
464
- version: number;
351
+ rawTransaction: Uint8Array;
352
+ };
353
+ /**
354
+ * TransactionView controls how transactions are materialized in responses.
355
+ *
356
+ * @generated from enum thru.core.v1.TransactionView
357
+ */
358
+ declare enum TransactionView {
465
359
  /**
466
- * @generated from field: thru.core.v1.Pubkey producer = 5;
360
+ * @generated from enum value: TRANSACTION_VIEW_UNSPECIFIED = 0;
467
361
  */
468
- producer?: Pubkey;
362
+ UNSPECIFIED = 0,
469
363
  /**
470
- * @generated from field: google.protobuf.Timestamp expiry_timestamp = 6;
364
+ * @generated from enum value: TRANSACTION_VIEW_SIGNATURE_ONLY = 1;
471
365
  */
472
- expiryTimestamp?: Timestamp;
366
+ SIGNATURE_ONLY = 1,
473
367
  /**
474
- * @generated from field: uint64 start_slot = 7;
368
+ * @generated from enum value: TRANSACTION_VIEW_HEADER_ONLY = 2;
475
369
  */
476
- startSlot: bigint;
370
+ HEADER_ONLY = 2,
477
371
  /**
478
- * @generated from field: uint32 expiry_after = 8;
372
+ * @generated from enum value: TRANSACTION_VIEW_HEADER_AND_BODY = 3;
479
373
  */
480
- expiryAfter: number;
374
+ HEADER_AND_BODY = 3,
481
375
  /**
482
- * @generated from field: uint32 max_block_size = 9;
376
+ * @generated from enum value: TRANSACTION_VIEW_FULL = 4;
483
377
  */
484
- maxBlockSize: number;
378
+ FULL = 4
379
+ }
380
+ /**
381
+ * TransactionVmError enumerates runtime error codes returned by the executor.
382
+ *
383
+ * @generated from enum thru.core.v1.TransactionVmError
384
+ */
385
+ declare enum TransactionVmError {
485
386
  /**
486
- * @generated from field: uint64 max_compute_units = 10;
387
+ * TN_RUNTIME_TXN_EXECUTE_SUCCESS
388
+ *
389
+ * @generated from enum value: TRANSACTION_VM_EXECUTE_SUCCESS = 0;
487
390
  */
488
- maxComputeUnits: bigint;
391
+ TRANSACTION_VM_EXECUTE_SUCCESS = 0,
489
392
  /**
490
- * @generated from field: uint32 max_state_units = 11;
393
+ * TN_RUNTIME_TXN_ERR_INVALID_FORMAT
394
+ *
395
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FORMAT = -255;
491
396
  */
492
- maxStateUnits: number;
397
+ TRANSACTION_VM_ERROR_INVALID_FORMAT = -255,
493
398
  /**
494
- * @generated from field: uint64 price = 12;
399
+ * TN_RUNTIME_TXN_ERR_INVALID_VERSION
400
+ *
401
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_VERSION = -254;
495
402
  */
496
- price: bigint;
497
- };
498
- /**
499
- * BlockFooter captures execution result metadata for a block.
500
- *
501
- * @generated from message thru.core.v1.BlockFooter
502
- */
503
- type BlockFooter$1 = Message<"thru.core.v1.BlockFooter"> & {
403
+ TRANSACTION_VM_ERROR_INVALID_VERSION = -254,
504
404
  /**
505
- * @generated from field: thru.core.v1.Signature signature = 1;
405
+ * TN_RUNTIME_TXN_ERR_INVALID_FLAGS
406
+ *
407
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FLAGS = -253;
506
408
  */
507
- signature?: Signature;
409
+ TRANSACTION_VM_ERROR_INVALID_FLAGS = -253,
508
410
  /**
509
- * @generated from field: thru.core.v1.ExecutionStatus status = 2;
411
+ * TN_RUNTIME_TXN_ERR_INVALID_SIGNATURE
412
+ *
413
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_SIGNATURE = -252;
510
414
  */
511
- status: ExecutionStatus;
415
+ TRANSACTION_VM_ERROR_INVALID_SIGNATURE = -252,
512
416
  /**
513
- * @generated from field: uint64 consumed_compute_units = 3;
417
+ * TN_RUNTIME_TXN_ERR_DUPLICATE_ACCOUNT
418
+ *
419
+ * @generated from enum value: TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT = -251;
514
420
  */
515
- consumedComputeUnits: bigint;
421
+ TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT = -251,
516
422
  /**
517
- * @generated from field: uint32 consumed_state_units = 4;
423
+ * TN_RUNTIME_TXN_ERR_UNSORTED_ACCOUNTS
424
+ *
425
+ * @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS = -250;
518
426
  */
519
- consumedStateUnits: number;
520
- };
521
- /**
522
- * Block represents a fully decoded block resource.
523
- *
524
- * @generated from message thru.core.v1.Block
525
- */
526
- type Block$1 = Message<"thru.core.v1.Block"> & {
427
+ TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS = -250,
527
428
  /**
528
- * @generated from field: thru.core.v1.BlockHeader header = 1;
429
+ * TN_RUNTIME_TXN_ERR_UNSORTED_READWRITE_ACCOUNTS
430
+ *
431
+ * @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS = -249;
529
432
  */
530
- header?: BlockHeader$1;
433
+ TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS = -249,
531
434
  /**
532
- * @generated from field: optional thru.core.v1.BlockFooter footer = 2;
435
+ * TN_RUNTIME_TXN_ERR_UNSORTED_READONLY_ACCOUNTS
436
+ *
437
+ * @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS = -248;
533
438
  */
534
- footer?: BlockFooter$1;
439
+ TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS = -248,
535
440
  /**
536
- * @generated from field: optional bytes body = 3;
441
+ * TN_RUNTIME_TXN_ERR_ACCOUNT_COUNT_LIMIT_EXCEEDED
442
+ *
443
+ * @generated from enum value: TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED = -247;
537
444
  */
538
- body?: Uint8Array;
445
+ TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED = -247,
539
446
  /**
540
- * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 4;
447
+ * TN_RUNTIME_TXN_ERR_NONCE_TOO_LOW
448
+ *
449
+ * @generated from enum value: TRANSACTION_VM_ERROR_NONCE_TOO_LOW = -511;
541
450
  */
542
- consensusStatus?: ConsensusStatus;
543
- };
544
- /**
545
- * RawBlock captures raw block bytes for direct access.
546
- *
547
- * @generated from message thru.core.v1.RawBlock
548
- */
549
- type RawBlock = Message<"thru.core.v1.RawBlock"> & {
451
+ TRANSACTION_VM_ERROR_NONCE_TOO_LOW = -511,
550
452
  /**
551
- * @generated from field: uint64 slot = 1;
453
+ * TN_RUNTIME_TXN_ERR_NONCE_TOO_HIGH
454
+ *
455
+ * @generated from enum value: TRANSACTION_VM_ERROR_NONCE_TOO_HIGH = -510;
552
456
  */
553
- slot: bigint;
457
+ TRANSACTION_VM_ERROR_NONCE_TOO_HIGH = -510,
554
458
  /**
555
- * @generated from field: bytes raw_block = 2;
459
+ * TN_RUNTIME_TXN_ERR_INSUFFICIENT_FEE_PAYER_BALANCE
460
+ *
461
+ * @generated from enum value: TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE = -509;
556
462
  */
557
- rawBlock: Uint8Array;
558
- };
559
- /**
560
- * BlockView controls how much of a block resource is returned.
561
- *
562
- * @generated from enum thru.core.v1.BlockView
563
- */
564
- declare enum BlockView {
463
+ TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE = -509,
565
464
  /**
566
- * @generated from enum value: BLOCK_VIEW_UNSPECIFIED = 0;
465
+ * TN_RUNTIME_TXN_ERR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST
466
+ *
467
+ * @generated from enum value: TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST = -508;
567
468
  */
568
- UNSPECIFIED = 0,
469
+ TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST = -508,
569
470
  /**
570
- * @generated from enum value: BLOCK_VIEW_HEADER_ONLY = 1;
471
+ * TN_RUNTIME_TXN_ERR_NOT_LIVE_YET
472
+ *
473
+ * @generated from enum value: TRANSACTION_VM_ERROR_NOT_LIVE_YET = -507;
571
474
  */
572
- HEADER_ONLY = 1,
475
+ TRANSACTION_VM_ERROR_NOT_LIVE_YET = -507,
573
476
  /**
574
- * @generated from enum value: BLOCK_VIEW_HEADER_AND_FOOTER = 2;
477
+ * TN_RUNTIME_TXN_ERR_EXPIRED
478
+ *
479
+ * @generated from enum value: TRANSACTION_VM_ERROR_EXPIRED = -506;
575
480
  */
576
- HEADER_AND_FOOTER = 2,
481
+ TRANSACTION_VM_ERROR_EXPIRED = -506,
577
482
  /**
578
- * @generated from enum value: BLOCK_VIEW_BODY_ONLY = 3;
483
+ * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF
484
+ *
485
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF = -505;
579
486
  */
580
- BODY_ONLY = 3,
487
+ TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF = -505,
581
488
  /**
582
- * @generated from enum value: BLOCK_VIEW_FULL = 4;
489
+ * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_TYPE
490
+ *
491
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE = -504;
583
492
  */
584
- FULL = 4
585
- }
586
- /**
587
- * ExecutionStatus enumerates block execution results.
588
- *
589
- * @generated from enum thru.core.v1.ExecutionStatus
590
- */
591
- declare enum ExecutionStatus {
493
+ TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE = -504,
592
494
  /**
593
- * @generated from enum value: EXECUTION_STATUS_UNSPECIFIED = 0;
495
+ * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_SLOT
496
+ *
497
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT = -503;
594
498
  */
595
- UNSPECIFIED = 0,
499
+ TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT = -503,
596
500
  /**
597
- * @generated from enum value: EXECUTION_STATUS_PENDING = 1;
501
+ * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_ACCOUNT_OWNER
502
+ *
503
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER = -502;
598
504
  */
599
- PENDING = 1,
505
+ TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER = -502,
600
506
  /**
601
- * @generated from enum value: EXECUTION_STATUS_EXECUTED = 2;
507
+ * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER
508
+ *
509
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER = -501;
602
510
  */
603
- EXECUTED = 2,
511
+ TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER = -501,
604
512
  /**
605
- * @generated from enum value: EXECUTION_STATUS_FAILED = 3;
513
+ * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ
514
+ *
515
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ = -500;
606
516
  */
607
- FAILED = 3
608
- }
609
-
610
- /**
611
- * TransactionHeader carries structured metadata for a transaction.
612
- *
613
- * @generated from message thru.core.v1.TransactionHeader
614
- */
615
- type TransactionHeader = Message<"thru.core.v1.TransactionHeader"> & {
517
+ TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ = -500,
616
518
  /**
617
- * @generated from field: thru.core.v1.Signature fee_payer_signature = 1;
519
+ * TN_RUNTIME_TXN_ERR_VM_FAILED
520
+ *
521
+ * @generated from enum value: TRANSACTION_VM_ERROR_VM_FAILED = -767;
618
522
  */
619
- feePayerSignature?: Signature;
523
+ TRANSACTION_VM_ERROR_VM_FAILED = -767,
620
524
  /**
621
- * @generated from field: uint32 version = 2;
525
+ * TN_RUNTIME_TXN_ERR_INVALID_PROGRAM_ACCOUNT
526
+ *
527
+ * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT = -766;
622
528
  */
623
- version: number;
529
+ TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT = -766,
624
530
  /**
625
- * @generated from field: uint32 flags = 3;
531
+ * TN_RUNTIME_TXN_ERR_VM_REVERT
532
+ *
533
+ * @generated from enum value: TRANSACTION_VM_ERROR_VM_REVERT = -765;
626
534
  */
627
- flags: number;
535
+ TRANSACTION_VM_ERROR_VM_REVERT = -765,
628
536
  /**
629
- * @generated from field: uint32 readwrite_accounts_count = 4;
537
+ * TN_RUNTIME_TXN_ERR_CU_EXHAUSTED
538
+ *
539
+ * @generated from enum value: TRANSACTION_VM_ERROR_CU_EXHAUSTED = -764;
630
540
  */
631
- readwriteAccountsCount: number;
541
+ TRANSACTION_VM_ERROR_CU_EXHAUSTED = -764,
632
542
  /**
633
- * @generated from field: uint32 readonly_accounts_count = 5;
543
+ * TN_RUNTIME_TXN_ERR_SU_EXHAUSTED
544
+ *
545
+ * @generated from enum value: TRANSACTION_VM_ERROR_SU_EXHAUSTED = -763;
634
546
  */
635
- readonlyAccountsCount: number;
547
+ TRANSACTION_VM_ERROR_SU_EXHAUSTED = -763
548
+ }
549
+
550
+ /**
551
+ * Filter represents a CEL-based expression applied to query or stream results.
552
+ *
553
+ * @generated from message thru.common.v1.Filter
554
+ */
555
+ type Filter$1 = Message<"thru.common.v1.Filter"> & {
636
556
  /**
637
- * @generated from field: uint32 instruction_data_size = 6;
557
+ * CEL expression applied server-side. Empty expressions are treated as no-op.
558
+ *
559
+ * @generated from field: optional string expression = 1;
638
560
  */
639
- instructionDataSize: number;
561
+ expression?: string;
640
562
  /**
641
- * @generated from field: uint32 requested_compute_units = 7;
563
+ * Named parameter bindings for expression parameterization.
564
+ *
565
+ * @generated from field: map<string, thru.common.v1.FilterParamValue> params = 2;
642
566
  */
643
- requestedComputeUnits: number;
567
+ params: {
568
+ [key: string]: FilterParamValue$1;
569
+ };
570
+ };
571
+ /**
572
+ * Describes the message thru.common.v1.Filter.
573
+ * Use `create(FilterSchema)` to create a new message.
574
+ */
575
+ declare const FilterSchema: GenMessage<Filter$1>;
576
+ /**
577
+ * FilterParamValue carries strongly-typed CEL parameter bindings.
578
+ *
579
+ * @generated from message thru.common.v1.FilterParamValue
580
+ */
581
+ type FilterParamValue$1 = Message<"thru.common.v1.FilterParamValue"> & {
644
582
  /**
645
- * @generated from field: uint32 requested_state_units = 8;
583
+ * @generated from oneof thru.common.v1.FilterParamValue.kind
646
584
  */
647
- requestedStateUnits: number;
585
+ kind: {
586
+ /**
587
+ * @generated from field: string string_value = 1;
588
+ */
589
+ value: string;
590
+ case: "stringValue";
591
+ } | {
592
+ /**
593
+ * @generated from field: bytes bytes_value = 2;
594
+ */
595
+ value: Uint8Array;
596
+ case: "bytesValue";
597
+ } | {
598
+ /**
599
+ * @generated from field: bool bool_value = 3;
600
+ */
601
+ value: boolean;
602
+ case: "boolValue";
603
+ } | {
604
+ /**
605
+ * @generated from field: sint64 int_value = 4;
606
+ */
607
+ value: bigint;
608
+ case: "intValue";
609
+ } | {
610
+ /**
611
+ * @generated from field: double double_value = 5;
612
+ */
613
+ value: number;
614
+ case: "doubleValue";
615
+ } | {
616
+ case: undefined;
617
+ value?: undefined;
618
+ };
619
+ };
620
+ /**
621
+ * Describes the message thru.common.v1.FilterParamValue.
622
+ * Use `create(FilterParamValueSchema)` to create a new message.
623
+ */
624
+ declare const FilterParamValueSchema: GenMessage<FilterParamValue$1>;
625
+
626
+ /**
627
+ * AccountFlags enumerates boolean account capability flags.
628
+ *
629
+ * @generated from message thru.core.v1.AccountFlags
630
+ */
631
+ type AccountFlags$1 = Message<"thru.core.v1.AccountFlags"> & {
648
632
  /**
649
- * @generated from field: uint32 requested_memory_units = 9;
633
+ * @generated from field: bool is_program = 1;
650
634
  */
651
- requestedMemoryUnits: number;
635
+ isProgram: boolean;
652
636
  /**
653
- * @generated from field: uint32 expiry_after = 10;
637
+ * @generated from field: bool is_privileged = 2;
654
638
  */
655
- expiryAfter: number;
639
+ isPrivileged: boolean;
656
640
  /**
657
- * @generated from field: uint64 fee = 11;
641
+ * @generated from field: bool is_uncompressable = 3;
658
642
  */
659
- fee: bigint;
643
+ isUncompressable: boolean;
660
644
  /**
661
- * @generated from field: uint64 nonce = 12;
645
+ * @generated from field: bool is_ephemeral = 4;
662
646
  */
663
- nonce: bigint;
647
+ isEphemeral: boolean;
664
648
  /**
665
- * @generated from field: uint64 start_slot = 13;
649
+ * @generated from field: bool is_deleted = 5;
666
650
  */
667
- startSlot: bigint;
651
+ isDeleted: boolean;
668
652
  /**
669
- * @generated from field: thru.core.v1.Pubkey fee_payer_pubkey = 14;
653
+ * @generated from field: bool is_new = 6;
670
654
  */
671
- feePayerPubkey?: Pubkey;
655
+ isNew: boolean;
672
656
  /**
673
- * @generated from field: thru.core.v1.Pubkey program_pubkey = 15;
657
+ * @generated from field: bool is_compressed = 7;
674
658
  */
675
- programPubkey?: Pubkey;
659
+ isCompressed: boolean;
676
660
  };
677
661
  /**
678
- * TransactionExecutionResult captures execution outcomes.
662
+ * AccountMeta captures metadata associated with an account.
679
663
  *
680
- * @generated from message thru.core.v1.TransactionExecutionResult
664
+ * @generated from message thru.core.v1.AccountMeta
681
665
  */
682
- type TransactionExecutionResult = Message<"thru.core.v1.TransactionExecutionResult"> & {
683
- /**
684
- * @generated from field: uint32 consumed_compute_units = 1;
685
- */
686
- consumedComputeUnits: number;
687
- /**
688
- * @generated from field: uint32 consumed_memory_units = 2;
689
- */
690
- consumedMemoryUnits: number;
666
+ type AccountMeta$1 = Message<"thru.core.v1.AccountMeta"> & {
691
667
  /**
692
- * @generated from field: uint32 consumed_state_units = 3;
668
+ * @generated from field: uint32 version = 1;
693
669
  */
694
- consumedStateUnits: number;
670
+ version: number;
695
671
  /**
696
- * @generated from field: uint64 user_error_code = 4;
672
+ * @generated from field: thru.core.v1.AccountFlags flags = 2;
697
673
  */
698
- userErrorCode: bigint;
674
+ flags?: AccountFlags$1;
699
675
  /**
700
- * @generated from field: thru.core.v1.TransactionVmError vm_error = 5;
676
+ * @generated from field: uint32 data_size = 3;
701
677
  */
702
- vmError: TransactionVmError;
678
+ dataSize: number;
703
679
  /**
704
- * @generated from field: uint64 execution_result = 6;
680
+ * Account sequence number
681
+ *
682
+ * @generated from field: uint64 seq = 4;
705
683
  */
706
- executionResult: bigint;
684
+ seq: bigint;
707
685
  /**
708
- * @generated from field: uint32 pages_used = 7;
686
+ * @generated from field: thru.core.v1.Pubkey owner = 5;
709
687
  */
710
- pagesUsed: number;
688
+ owner?: Pubkey;
711
689
  /**
712
- * @generated from field: uint32 events_count = 8;
690
+ * @generated from field: uint64 balance = 6;
713
691
  */
714
- eventsCount: number;
692
+ balance: bigint;
715
693
  /**
716
- * @generated from field: uint32 events_size = 9;
694
+ * @generated from field: uint64 nonce = 7;
717
695
  */
718
- eventsSize: number;
696
+ nonce: bigint;
697
+ };
698
+ /**
699
+ * AccountData contains account data payloads.
700
+ *
701
+ * @generated from message thru.core.v1.AccountData
702
+ */
703
+ type AccountData$1 = Message<"thru.core.v1.AccountData"> & {
719
704
  /**
720
- * @generated from field: repeated thru.core.v1.Pubkey readwrite_accounts = 10;
705
+ * @generated from field: optional bytes data = 1;
721
706
  */
722
- readwriteAccounts: Pubkey[];
707
+ data?: Uint8Array;
723
708
  /**
724
- * @generated from field: repeated thru.core.v1.Pubkey readonly_accounts = 11;
709
+ * @generated from field: optional bool compressed = 2;
725
710
  */
726
- readonlyAccounts: Pubkey[];
711
+ compressed?: boolean;
727
712
  /**
728
- * @generated from field: repeated thru.core.v1.TransactionEvent events = 12;
713
+ * @generated from field: optional string compression_algorithm = 3;
729
714
  */
730
- events: TransactionEvent[];
715
+ compressionAlgorithm?: string;
731
716
  };
732
717
  /**
733
- * TransactionEvent describes an event emitted during transaction execution.
718
+ * DataSlice describes a contiguous range of account data to return.
734
719
  *
735
- * @generated from message thru.core.v1.TransactionEvent
720
+ * @generated from message thru.core.v1.DataSlice
736
721
  */
737
- type TransactionEvent = Message<"thru.core.v1.TransactionEvent"> & {
738
- /**
739
- * @generated from field: string event_id = 1;
740
- */
741
- eventId: string;
722
+ type DataSlice = Message<"thru.core.v1.DataSlice"> & {
742
723
  /**
743
- * @generated from field: uint32 call_idx = 2;
724
+ * @generated from field: uint32 offset = 1;
744
725
  */
745
- callIdx: number;
726
+ offset: number;
746
727
  /**
747
- * @generated from field: uint32 program_idx = 3;
728
+ * @generated from field: uint32 length = 2;
748
729
  */
749
- programIdx: number;
730
+ length: number;
731
+ };
732
+ /**
733
+ * VersionContextMetadata captures context for a returned account state.
734
+ *
735
+ * @generated from message thru.core.v1.VersionContextMetadata
736
+ */
737
+ type VersionContextMetadata = Message<"thru.core.v1.VersionContextMetadata"> & {
750
738
  /**
751
- * @generated from field: thru.core.v1.Pubkey program = 4;
739
+ * @generated from field: optional uint64 slot = 1;
752
740
  */
753
- program?: Pubkey;
741
+ slot?: bigint;
754
742
  /**
755
- * @generated from field: bytes payload = 5;
743
+ * @generated from field: optional google.protobuf.Timestamp block_timestamp = 2;
756
744
  */
757
- payload: Uint8Array;
745
+ blockTimestamp?: Timestamp;
758
746
  };
759
747
  /**
760
- * Transaction describes a fully decoded transaction resource.
748
+ * Account models a fully decoded account resource.
761
749
  *
762
- * @generated from message thru.core.v1.Transaction
750
+ * @generated from message thru.core.v1.Account
763
751
  */
764
- type Transaction$1 = Message<"thru.core.v1.Transaction"> & {
765
- /**
766
- * @generated from field: thru.core.v1.Signature signature = 1;
767
- */
768
- signature?: Signature;
752
+ type Account$1 = Message<"thru.core.v1.Account"> & {
769
753
  /**
770
- * @generated from field: thru.core.v1.TransactionHeader header = 2;
754
+ * @generated from field: thru.core.v1.Pubkey address = 1;
771
755
  */
772
- header?: TransactionHeader;
756
+ address?: Pubkey;
773
757
  /**
774
- * @generated from field: optional bytes body = 3;
758
+ * @generated from field: optional thru.core.v1.AccountMeta meta = 2;
775
759
  */
776
- body?: Uint8Array;
760
+ meta?: AccountMeta$1;
777
761
  /**
778
- * @generated from field: optional thru.core.v1.TransactionExecutionResult execution_result = 4;
762
+ * @generated from field: optional thru.core.v1.AccountData data = 3;
779
763
  */
780
- executionResult?: TransactionExecutionResult;
764
+ data?: AccountData$1;
781
765
  /**
782
- * @generated from field: optional uint64 slot = 5;
766
+ * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
783
767
  */
784
- slot?: bigint;
768
+ versionContext?: VersionContextMetadata;
785
769
  /**
786
- * @generated from field: optional uint32 block_offset = 6;
770
+ * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 5;
787
771
  */
788
- blockOffset?: number;
772
+ consensusStatus?: ConsensusStatus;
789
773
  };
790
774
  /**
791
- * RawTransaction provides direct access to serialized transaction bytes.
775
+ * RawAccount captures raw serialized account bytes.
792
776
  *
793
- * @generated from message thru.core.v1.RawTransaction
777
+ * @generated from message thru.core.v1.RawAccount
794
778
  */
795
- type RawTransaction = Message<"thru.core.v1.RawTransaction"> & {
779
+ type RawAccount = Message<"thru.core.v1.RawAccount"> & {
796
780
  /**
797
- * @generated from field: thru.core.v1.Signature signature = 1;
781
+ * @generated from field: thru.core.v1.Pubkey address = 1;
798
782
  */
799
- signature?: Signature;
783
+ address?: Pubkey;
800
784
  /**
801
- * @generated from field: bytes raw_transaction = 2;
785
+ * @generated from field: bytes raw_meta = 2;
802
786
  */
803
- rawTransaction: Uint8Array;
787
+ rawMeta: Uint8Array;
788
+ /**
789
+ * @generated from field: optional bytes raw_data = 3;
790
+ */
791
+ rawData?: Uint8Array;
792
+ /**
793
+ * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
794
+ */
795
+ versionContext?: VersionContextMetadata;
804
796
  };
805
797
  /**
806
- * TransactionView controls how transactions are materialized in responses.
798
+ * AccountView controls which sections of account resources are returned.
807
799
  *
808
- * @generated from enum thru.core.v1.TransactionView
800
+ * @generated from enum thru.core.v1.AccountView
809
801
  */
810
- declare enum TransactionView {
802
+ declare enum AccountView {
811
803
  /**
812
- * @generated from enum value: TRANSACTION_VIEW_UNSPECIFIED = 0;
804
+ * ACCOUNT_VIEW_UNSPECIFIED uses service defaults.
805
+ *
806
+ * @generated from enum value: ACCOUNT_VIEW_UNSPECIFIED = 0;
813
807
  */
814
808
  UNSPECIFIED = 0,
815
809
  /**
816
- * @generated from enum value: TRANSACTION_VIEW_SIGNATURE_ONLY = 1;
810
+ * ACCOUNT_VIEW_PUBKEY_ONLY returns only the account address.
811
+ *
812
+ * @generated from enum value: ACCOUNT_VIEW_PUBKEY_ONLY = 1;
817
813
  */
818
- SIGNATURE_ONLY = 1,
814
+ PUBKEY_ONLY = 1,
819
815
  /**
820
- * @generated from enum value: TRANSACTION_VIEW_HEADER_ONLY = 2;
816
+ * ACCOUNT_VIEW_META_ONLY returns only account metadata.
817
+ *
818
+ * @generated from enum value: ACCOUNT_VIEW_META_ONLY = 2;
821
819
  */
822
- HEADER_ONLY = 2,
820
+ META_ONLY = 2,
823
821
  /**
824
- * @generated from enum value: TRANSACTION_VIEW_HEADER_AND_BODY = 3;
822
+ * ACCOUNT_VIEW_DATA_ONLY returns only account data.
823
+ *
824
+ * @generated from enum value: ACCOUNT_VIEW_DATA_ONLY = 3;
825
825
  */
826
- HEADER_AND_BODY = 3,
826
+ DATA_ONLY = 3,
827
827
  /**
828
- * @generated from enum value: TRANSACTION_VIEW_FULL = 4;
828
+ * ACCOUNT_VIEW_FULL returns address, metadata, and data.
829
+ *
830
+ * @generated from enum value: ACCOUNT_VIEW_FULL = 4;
829
831
  */
830
832
  FULL = 4
831
833
  }
834
+
832
835
  /**
833
- * TransactionVmError enumerates runtime error codes returned by the executor.
836
+ * BlockHeader describes metadata about a block.
834
837
  *
835
- * @generated from enum thru.core.v1.TransactionVmError
838
+ * @generated from message thru.core.v1.BlockHeader
836
839
  */
837
- declare enum TransactionVmError {
840
+ type BlockHeader$1 = Message<"thru.core.v1.BlockHeader"> & {
838
841
  /**
839
- * TN_RUNTIME_TXN_EXECUTE_SUCCESS
840
- *
841
- * @generated from enum value: TRANSACTION_VM_EXECUTE_SUCCESS = 0;
842
+ * @generated from field: uint64 slot = 1;
842
843
  */
843
- TRANSACTION_VM_EXECUTE_SUCCESS = 0,
844
+ slot: bigint;
844
845
  /**
845
- * TN_RUNTIME_TXN_ERR_INVALID_FORMAT
846
- *
847
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FORMAT = -255;
846
+ * @generated from field: thru.core.v1.BlockHash block_hash = 2;
848
847
  */
849
- TRANSACTION_VM_ERROR_INVALID_FORMAT = -255,
848
+ blockHash?: BlockHash;
850
849
  /**
851
- * TN_RUNTIME_TXN_ERR_INVALID_VERSION
852
- *
853
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_VERSION = -254;
850
+ * @generated from field: thru.core.v1.Signature header_signature = 3;
854
851
  */
855
- TRANSACTION_VM_ERROR_INVALID_VERSION = -254,
852
+ headerSignature?: Signature;
856
853
  /**
857
- * TN_RUNTIME_TXN_ERR_INVALID_FLAGS
858
- *
859
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FLAGS = -253;
854
+ * @generated from field: uint32 version = 4;
860
855
  */
861
- TRANSACTION_VM_ERROR_INVALID_FLAGS = -253,
856
+ version: number;
862
857
  /**
863
- * TN_RUNTIME_TXN_ERR_INVALID_SIGNATURE
864
- *
865
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_SIGNATURE = -252;
858
+ * @generated from field: thru.core.v1.Pubkey producer = 5;
866
859
  */
867
- TRANSACTION_VM_ERROR_INVALID_SIGNATURE = -252,
860
+ producer?: Pubkey;
868
861
  /**
869
- * TN_RUNTIME_TXN_ERR_DUPLICATE_ACCOUNT
870
- *
871
- * @generated from enum value: TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT = -251;
862
+ * @generated from field: google.protobuf.Timestamp expiry_timestamp = 6;
872
863
  */
873
- TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT = -251,
864
+ expiryTimestamp?: Timestamp;
874
865
  /**
875
- * TN_RUNTIME_TXN_ERR_UNSORTED_ACCOUNTS
876
- *
877
- * @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS = -250;
866
+ * @generated from field: uint64 start_slot = 7;
878
867
  */
879
- TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS = -250,
868
+ startSlot: bigint;
880
869
  /**
881
- * TN_RUNTIME_TXN_ERR_UNSORTED_READWRITE_ACCOUNTS
882
- *
883
- * @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS = -249;
870
+ * @generated from field: uint32 expiry_after = 8;
884
871
  */
885
- TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS = -249,
872
+ expiryAfter: number;
886
873
  /**
887
- * TN_RUNTIME_TXN_ERR_UNSORTED_READONLY_ACCOUNTS
888
- *
889
- * @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS = -248;
874
+ * @generated from field: uint32 max_block_size = 9;
890
875
  */
891
- TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS = -248,
876
+ maxBlockSize: number;
892
877
  /**
893
- * TN_RUNTIME_TXN_ERR_ACCOUNT_COUNT_LIMIT_EXCEEDED
894
- *
895
- * @generated from enum value: TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED = -247;
878
+ * @generated from field: uint64 max_compute_units = 10;
896
879
  */
897
- TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED = -247,
880
+ maxComputeUnits: bigint;
898
881
  /**
899
- * TN_RUNTIME_TXN_ERR_NONCE_TOO_LOW
900
- *
901
- * @generated from enum value: TRANSACTION_VM_ERROR_NONCE_TOO_LOW = -511;
882
+ * @generated from field: uint32 max_state_units = 11;
902
883
  */
903
- TRANSACTION_VM_ERROR_NONCE_TOO_LOW = -511,
884
+ maxStateUnits: number;
904
885
  /**
905
- * TN_RUNTIME_TXN_ERR_NONCE_TOO_HIGH
906
- *
907
- * @generated from enum value: TRANSACTION_VM_ERROR_NONCE_TOO_HIGH = -510;
886
+ * @generated from field: uint64 price = 12;
908
887
  */
909
- TRANSACTION_VM_ERROR_NONCE_TOO_HIGH = -510,
888
+ price: bigint;
889
+ };
890
+ /**
891
+ * BlockFooter captures execution result metadata for a block.
892
+ *
893
+ * @generated from message thru.core.v1.BlockFooter
894
+ */
895
+ type BlockFooter$1 = Message<"thru.core.v1.BlockFooter"> & {
910
896
  /**
911
- * TN_RUNTIME_TXN_ERR_INSUFFICIENT_FEE_PAYER_BALANCE
912
- *
913
- * @generated from enum value: TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE = -509;
897
+ * @generated from field: thru.core.v1.Signature signature = 1;
914
898
  */
915
- TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE = -509,
899
+ signature?: Signature;
916
900
  /**
917
- * TN_RUNTIME_TXN_ERR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST
918
- *
919
- * @generated from enum value: TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST = -508;
901
+ * @generated from field: thru.core.v1.ExecutionStatus status = 2;
920
902
  */
921
- TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST = -508,
903
+ status: ExecutionStatus;
922
904
  /**
923
- * TN_RUNTIME_TXN_ERR_NOT_LIVE_YET
924
- *
925
- * @generated from enum value: TRANSACTION_VM_ERROR_NOT_LIVE_YET = -507;
905
+ * @generated from field: uint64 consumed_compute_units = 3;
926
906
  */
927
- TRANSACTION_VM_ERROR_NOT_LIVE_YET = -507,
907
+ consumedComputeUnits: bigint;
928
908
  /**
929
- * TN_RUNTIME_TXN_ERR_EXPIRED
930
- *
931
- * @generated from enum value: TRANSACTION_VM_ERROR_EXPIRED = -506;
909
+ * @generated from field: uint32 consumed_state_units = 4;
932
910
  */
933
- TRANSACTION_VM_ERROR_EXPIRED = -506,
911
+ consumedStateUnits: number;
912
+ };
913
+ /**
914
+ * Block represents a fully decoded block resource.
915
+ *
916
+ * @generated from message thru.core.v1.Block
917
+ */
918
+ type Block$1 = Message<"thru.core.v1.Block"> & {
934
919
  /**
935
- * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF
936
- *
937
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF = -505;
920
+ * @generated from field: thru.core.v1.BlockHeader header = 1;
938
921
  */
939
- TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF = -505,
922
+ header?: BlockHeader$1;
940
923
  /**
941
- * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_TYPE
942
- *
943
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE = -504;
924
+ * @generated from field: optional thru.core.v1.BlockFooter footer = 2;
944
925
  */
945
- TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE = -504,
926
+ footer?: BlockFooter$1;
946
927
  /**
947
- * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_SLOT
948
- *
949
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT = -503;
928
+ * @generated from field: optional bytes body = 3;
950
929
  */
951
- TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT = -503,
930
+ body?: Uint8Array;
952
931
  /**
953
- * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_ACCOUNT_OWNER
954
- *
955
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER = -502;
932
+ * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 4;
956
933
  */
957
- TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER = -502,
934
+ consensusStatus?: ConsensusStatus;
935
+ };
936
+ /**
937
+ * RawBlock captures raw block bytes for direct access.
938
+ *
939
+ * @generated from message thru.core.v1.RawBlock
940
+ */
941
+ type RawBlock = Message<"thru.core.v1.RawBlock"> & {
958
942
  /**
959
- * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER
960
- *
961
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER = -501;
943
+ * @generated from field: uint64 slot = 1;
962
944
  */
963
- TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER = -501,
945
+ slot: bigint;
964
946
  /**
965
- * TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ
966
- *
967
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ = -500;
947
+ * @generated from field: bytes raw_block = 2;
968
948
  */
969
- TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ = -500,
949
+ rawBlock: Uint8Array;
950
+ };
951
+ /**
952
+ * BlockView controls how much of a block resource is returned.
953
+ *
954
+ * @generated from enum thru.core.v1.BlockView
955
+ */
956
+ declare enum BlockView {
970
957
  /**
971
- * TN_RUNTIME_TXN_ERR_VM_FAILED
972
- *
973
- * @generated from enum value: TRANSACTION_VM_ERROR_VM_FAILED = -767;
958
+ * @generated from enum value: BLOCK_VIEW_UNSPECIFIED = 0;
974
959
  */
975
- TRANSACTION_VM_ERROR_VM_FAILED = -767,
960
+ UNSPECIFIED = 0,
976
961
  /**
977
- * TN_RUNTIME_TXN_ERR_INVALID_PROGRAM_ACCOUNT
978
- *
979
- * @generated from enum value: TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT = -766;
962
+ * @generated from enum value: BLOCK_VIEW_HEADER_ONLY = 1;
980
963
  */
981
- TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT = -766,
964
+ HEADER_ONLY = 1,
982
965
  /**
983
- * TN_RUNTIME_TXN_ERR_VM_REVERT
984
- *
985
- * @generated from enum value: TRANSACTION_VM_ERROR_VM_REVERT = -765;
966
+ * @generated from enum value: BLOCK_VIEW_HEADER_AND_FOOTER = 2;
986
967
  */
987
- TRANSACTION_VM_ERROR_VM_REVERT = -765,
968
+ HEADER_AND_FOOTER = 2,
988
969
  /**
989
- * TN_RUNTIME_TXN_ERR_CU_EXHAUSTED
990
- *
991
- * @generated from enum value: TRANSACTION_VM_ERROR_CU_EXHAUSTED = -764;
970
+ * @generated from enum value: BLOCK_VIEW_BODY_ONLY = 3;
992
971
  */
993
- TRANSACTION_VM_ERROR_CU_EXHAUSTED = -764,
972
+ BODY_ONLY = 3,
994
973
  /**
995
- * TN_RUNTIME_TXN_ERR_SU_EXHAUSTED
996
- *
997
- * @generated from enum value: TRANSACTION_VM_ERROR_SU_EXHAUSTED = -763;
974
+ * @generated from enum value: BLOCK_VIEW_FULL = 4;
998
975
  */
999
- TRANSACTION_VM_ERROR_SU_EXHAUSTED = -763
976
+ FULL = 4
977
+ }
978
+ /**
979
+ * ExecutionStatus enumerates block execution results.
980
+ *
981
+ * @generated from enum thru.core.v1.ExecutionStatus
982
+ */
983
+ declare enum ExecutionStatus {
984
+ /**
985
+ * @generated from enum value: EXECUTION_STATUS_UNSPECIFIED = 0;
986
+ */
987
+ UNSPECIFIED = 0,
988
+ /**
989
+ * @generated from enum value: EXECUTION_STATUS_PENDING = 1;
990
+ */
991
+ PENDING = 1,
992
+ /**
993
+ * @generated from enum value: EXECUTION_STATUS_EXECUTED = 2;
994
+ */
995
+ EXECUTED = 2,
996
+ /**
997
+ * @generated from enum value: EXECUTION_STATUS_FAILED = 3;
998
+ */
999
+ FAILED = 3
1000
1000
  }
1001
1001
 
1002
1002
  /**
@@ -1129,6 +1129,7 @@ declare class Transaction {
1129
1129
  readonly readWriteAccounts: AccountAddress[];
1130
1130
  readonly readOnlyAccounts: AccountAddress[];
1131
1131
  readonly instructionData?: Uint8Array;
1132
+ readonly instructionDataSize?: number;
1132
1133
  readonly feePayerStateProof?: Uint8Array;
1133
1134
  readonly feePayerAccountMetaRaw?: Uint8Array;
1134
1135
  executionResult?: TransactionExecutionResultData;
@@ -1142,6 +1143,7 @@ declare class Transaction {
1142
1143
  header: TransactionHeaderInput;
1143
1144
  accounts?: TransactionAccountsInput;
1144
1145
  instructionData?: Uint8Array;
1146
+ instructionDataSize?: number;
1145
1147
  proofs?: OptionalProofs;
1146
1148
  });
1147
1149
  static fromWire(data: Uint8Array): Transaction;
@@ -1166,6 +1168,15 @@ declare class Transaction {
1166
1168
  private static convertExecutionResultToProto;
1167
1169
  }
1168
1170
 
1171
+ type StreamTransactionUpdate = {
1172
+ kind: "partial";
1173
+ signature: Uint8Array;
1174
+ slot?: bigint;
1175
+ executionResult?: ReturnType<typeof Transaction.executionResultFromProto>;
1176
+ } | {
1177
+ kind: "full";
1178
+ transaction: Transaction;
1179
+ };
1169
1180
  interface TrackTransactionUpdate {
1170
1181
  signature?: Uint8Array;
1171
1182
  status: string;
@@ -1844,9 +1855,7 @@ interface StreamTransactionsOptions {
1844
1855
  minConsensus?: ConsensusStatus;
1845
1856
  signal?: AbortSignal;
1846
1857
  }
1847
- interface StreamTransactionsResult {
1848
- transaction: Transaction;
1849
- }
1858
+ type StreamTransactionsResult = StreamTransactionUpdate;
1850
1859
  declare function streamTransactions(ctx: ThruClientContext, options?: StreamTransactionsOptions): AsyncIterable<StreamTransactionsResult>;
1851
1860
  interface StreamEventsOptions {
1852
1861
  filter?: Filter;
@@ -1864,6 +1873,7 @@ type streaming_StreamBlocksOptions = StreamBlocksOptions;
1864
1873
  type streaming_StreamBlocksResult = StreamBlocksResult;
1865
1874
  type streaming_StreamEventsOptions = StreamEventsOptions;
1866
1875
  type streaming_StreamEventsResult = StreamEventsResult;
1876
+ type streaming_StreamTransactionUpdate = StreamTransactionUpdate;
1867
1877
  type streaming_StreamTransactionsOptions = StreamTransactionsOptions;
1868
1878
  type streaming_StreamTransactionsResult = StreamTransactionsResult;
1869
1879
  type streaming_TrackTransactionOptions = TrackTransactionOptions;
@@ -1874,7 +1884,7 @@ declare const streaming_streamEvents: typeof streamEvents;
1874
1884
  declare const streaming_streamTransactions: typeof streamTransactions;
1875
1885
  declare const streaming_trackTransaction: typeof trackTransaction;
1876
1886
  declare namespace streaming {
1877
- export { type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
1887
+ export { type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamTransactionUpdate as StreamTransactionUpdate, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
1878
1888
  }
1879
1889
 
1880
1890
  interface TransactionFeePayerConfig {
@@ -1975,4 +1985,4 @@ declare class VersionInfo {
1975
1985
  get(component: string): string | undefined;
1976
1986
  }
1977
1987
 
1978
- export { type TrackTransactionOptions as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, type RawBlockQueryOptions as D, type BlockSelector as E, Filter as F, type GetEventOptions as G, HeightSnapshot as H, type DeriveProgramAddressOptions as I, type DeriveProgramAddressResult as J, type GeneratedKeyPair as K, type ListAccountsOptions as L, type StreamAccountUpdate as M, type HeightSnapshotParams as N, type StreamAccountUpdatesOptions as O, PageRequest as P, type StreamAccountUpdatesResult as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type StreamBlocksOptions as U, VersionInfo as V, type StreamBlocksResult as W, type StreamEventsOptions as X, type StreamEventsResult as Y, type StreamTransactionsOptions as Z, type StreamTransactionsResult as _, accounts as a, type TrackTransactionUpdate as a0, type TransactionExecutionEvent as a1, type TransactionExecutionResultData as a2, type InstructionContext as a3, type ProgramIdentifier as a4, type BatchSendTransactionsOptions as a5, type BuildAndSignTransactionOptions as a6, type BuildTransactionOptions as a7, type InstructionData as a8, type ListTransactionsForAccountOptions as a9, batchSendTransactions as aA, trackTransaction as aB, getEvent as aC, streamEvents as aD, generateStateProof as aE, generateKeyPair as aF, fromPrivateKey as aG, type Signature as aH, type Pubkey as aI, type BlockHash as aJ, type ThruClientConfig as aK, type RawTransactionQueryOptions as aa, type TransactionAccountsConfig as ab, type TransactionFeePayerConfig as ac, type TransactionHeaderConfig as ad, type TransactionList as ae, type TransactionQueryOptions as af, type GenerateStateProofOptions as ag, type ThruClientContext as ah, getBlock as ai, getRawBlock as aj, listBlocks as ak, streamBlocks as al, getBlockHeight as am, getAccount as an, getRawAccount as ao, listAccounts as ap, streamAccountUpdates as aq, createAccount as ar, getTransaction as as, getRawTransaction as at, getTransactionStatus as au, listTransactionsForAccount as av, streamTransactions as aw, buildTransaction as ax, buildAndSignTransaction as ay, sendTransaction as az, blocks as b, Block as c, FilterParamValue as d, events as e, PageResponse as f, StateProof as g, height as h, TransactionStatusSnapshot as i, deriveProgramAddress as j, keys as k, toPubkey as l, ConsensusStatus as m, FilterParamValueSchema as n, FilterSchema as o, proofs as p, type PageRequestParams as q, type PageResponseParams as r, streaming as s, transactions as t, type AccountList as u, type AccountQueryOptions as v, type CreateAccountOptions as w, type BlockList as x, type BlockQueryOptions as y, type ListBlocksOptions as z };
1988
+ export { type StreamEventsOptions as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, type BlockList as D, ExecutionStatus as E, Filter as F, type BlockQueryOptions as G, HeightSnapshot as H, type ListBlocksOptions as I, type RawBlockQueryOptions as J, type GetEventOptions as K, type ListAccountsOptions as L, type BlockSelector as M, type DeriveProgramAddressOptions as N, type DeriveProgramAddressResult as O, PageRequest as P, type GeneratedKeyPair as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type StreamAccountUpdate as U, VersionInfo as V, type HeightSnapshotParams as W, type StreamAccountUpdatesOptions as X, type StreamAccountUpdatesResult as Y, type StreamBlocksOptions as Z, type StreamBlocksResult as _, accounts as a, type StreamEventsResult as a0, type StreamTransactionsOptions as a1, type StreamTransactionsResult as a2, type StreamTransactionUpdate as a3, type TrackTransactionOptions as a4, type TrackTransactionUpdate as a5, type TransactionExecutionEvent as a6, type TransactionExecutionResultData as a7, type InstructionContext as a8, type ProgramIdentifier as a9, listTransactionsForAccount as aA, streamTransactions as aB, buildTransaction as aC, buildAndSignTransaction as aD, sendTransaction as aE, batchSendTransactions as aF, trackTransaction as aG, getEvent as aH, streamEvents as aI, generateStateProof as aJ, generateKeyPair as aK, fromPrivateKey as aL, type Signature as aM, type Pubkey as aN, type BlockHash as aO, type ThruClientConfig as aP, type BatchSendTransactionsOptions as aa, type BuildAndSignTransactionOptions as ab, type BuildTransactionOptions as ac, type InstructionData as ad, type ListTransactionsForAccountOptions as ae, type RawTransactionQueryOptions as af, type TransactionAccountsConfig as ag, type TransactionFeePayerConfig as ah, type TransactionHeaderConfig as ai, type TransactionList as aj, type TransactionQueryOptions as ak, type GenerateStateProofOptions as al, type ThruClientContext as am, getBlock as an, getRawBlock as ao, listBlocks as ap, streamBlocks as aq, getBlockHeight as ar, getAccount as as, getRawAccount as at, listAccounts as au, streamAccountUpdates as av, createAccount as aw, getTransaction as ax, getRawTransaction as ay, getTransactionStatus as az, blocks as b, Block as c, FilterParamValue as d, events as e, PageResponse as f, StateProof as g, height as h, TransactionStatusSnapshot as i, deriveProgramAddress as j, keys as k, toPubkey as l, ConsensusStatus as m, FilterParamValueSchema as n, FilterSchema as o, proofs as p, AccountView as q, BlockView as r, streaming as s, transactions as t, TransactionView as u, TransactionVmError as v, type PageRequestParams as w, type PageResponseParams as x, type AccountQueryOptions as y, type CreateAccountOptions as z };