@orbitflare/sdk 0.5.0 → 0.5.1

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 (39) hide show
  1. package/dist/address.d.ts +2 -1
  2. package/dist/address.d.ts.map +1 -1
  3. package/dist/address.js +13 -1
  4. package/dist/address.js.map +1 -1
  5. package/dist/apex.d.ts.map +1 -1
  6. package/dist/apex.js.map +1 -1
  7. package/dist/grpc.d.ts +3 -0
  8. package/dist/grpc.d.ts.map +1 -1
  9. package/dist/grpc.js +8 -1
  10. package/dist/grpc.js.map +1 -1
  11. package/dist/jetstream/index.d.ts +3 -0
  12. package/dist/jetstream/index.d.ts.map +1 -1
  13. package/dist/jetstream/index.js +8 -1
  14. package/dist/jetstream/index.js.map +1 -1
  15. package/dist/jetstream/v2.d.ts +3 -0
  16. package/dist/jetstream/v2.d.ts.map +1 -1
  17. package/dist/jetstream/v2.js +8 -1
  18. package/dist/jetstream/v2.js.map +1 -1
  19. package/dist/proto/geyser.d.ts +2 -1
  20. package/dist/proto/geyser.d.ts.map +1 -1
  21. package/dist/proto/geyser.js +2281 -1681
  22. package/dist/proto/geyser.js.map +1 -1
  23. package/dist/proto/google/protobuf/timestamp.d.ts +2 -1
  24. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  25. package/dist/proto/google/protobuf/timestamp.js +61 -31
  26. package/dist/proto/google/protobuf/timestamp.js.map +1 -1
  27. package/dist/proto/jetstream.d.ts +2 -1
  28. package/dist/proto/jetstream.d.ts.map +1 -1
  29. package/dist/proto/jetstream.js +1328 -976
  30. package/dist/proto/jetstream.js.map +1 -1
  31. package/dist/proto/jetstream_v2.d.ts +2 -1
  32. package/dist/proto/jetstream_v2.d.ts.map +1 -1
  33. package/dist/proto/jetstream_v2.js +910 -689
  34. package/dist/proto/jetstream_v2.js.map +1 -1
  35. package/dist/proto/solana-storage.d.ts +2 -1
  36. package/dist/proto/solana-storage.d.ts.map +1 -1
  37. package/dist/proto/solana-storage.js +903 -681
  38. package/dist/proto/solana-storage.js.map +1 -1
  39. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.11.7
3
+ // protoc-gen-ts_proto v2.18.0
4
4
  // protoc v4.23.4
5
5
  // source: jetstream_v2.proto
6
6
  /* eslint-disable */
@@ -8,6 +8,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import { makeGenericClientConstructor, } from "@grpc/grpc-js";
9
9
  import { Timestamp } from "./google/protobuf/timestamp.js";
10
10
  export const protobufPackage = "jetstream.v2";
11
+ export const protobufFileName = "jetstream_v2.proto";
11
12
  export var SlotStatus;
12
13
  (function (SlotStatus) {
13
14
  SlotStatus[SlotStatus["SLOT_STATUS_UNSPECIFIED"] = 0] = "SLOT_STATUS_UNSPECIFIED";
@@ -72,39 +73,49 @@ export const SubscribeTransactionsRequest = {
72
73
  },
73
74
  decode(input, length) {
74
75
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
75
- const end = length === undefined ? reader.len : reader.pos + length;
76
- const message = createBaseSubscribeTransactionsRequest();
77
- while (reader.pos < end) {
78
- const tag = reader.uint32();
79
- switch (tag >>> 3) {
80
- case 1: {
81
- if (tag !== 10) {
82
- break;
83
- }
84
- message.ping = Ping.decode(reader, reader.uint32());
85
- continue;
86
- }
87
- case 2: {
88
- if (tag !== 18) {
89
- break;
90
- }
91
- message.addFilters = AddFilters.decode(reader, reader.uint32());
92
- continue;
93
- }
94
- case 3: {
95
- if (tag !== 26) {
96
- break;
97
- }
98
- message.removeFilters = RemoveFilters.decode(reader, reader.uint32());
99
- continue;
100
- }
101
- }
102
- if ((tag & 7) === 4 || tag === 0) {
103
- break;
76
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
77
+ if (previousRecursionDepth >= 100) {
78
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
79
+ }
80
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
81
+ try {
82
+ const end = length === undefined ? reader.len : reader.pos + length;
83
+ const message = createBaseSubscribeTransactionsRequest();
84
+ while (reader.pos < end) {
85
+ const tag = reader.uint32();
86
+ switch (tag >>> 3) {
87
+ case 1: {
88
+ if (tag !== 10) {
89
+ break;
90
+ }
91
+ message.ping = Ping.decode(reader, reader.uint32());
92
+ continue;
93
+ }
94
+ case 2: {
95
+ if (tag !== 18) {
96
+ break;
97
+ }
98
+ message.addFilters = AddFilters.decode(reader, reader.uint32());
99
+ continue;
100
+ }
101
+ case 3: {
102
+ if (tag !== 26) {
103
+ break;
104
+ }
105
+ message.removeFilters = RemoveFilters.decode(reader, reader.uint32());
106
+ continue;
107
+ }
108
+ }
109
+ if ((tag & 7) === 4 || tag === 0) {
110
+ break;
111
+ }
112
+ reader.skip(tag & 7);
104
113
  }
105
- reader.skip(tag & 7);
114
+ return message;
115
+ }
116
+ finally {
117
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
106
118
  }
107
- return message;
108
119
  },
109
120
  fromJSON(object) {
110
121
  return {
@@ -161,25 +172,35 @@ export const Ping = {
161
172
  },
162
173
  decode(input, length) {
163
174
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
164
- const end = length === undefined ? reader.len : reader.pos + length;
165
- const message = createBasePing();
166
- while (reader.pos < end) {
167
- const tag = reader.uint32();
168
- switch (tag >>> 3) {
169
- case 1: {
170
- if (tag !== 8) {
171
- break;
172
- }
173
- message.pingId = reader.int32();
174
- continue;
175
- }
176
- }
177
- if ((tag & 7) === 4 || tag === 0) {
178
- break;
175
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
176
+ if (previousRecursionDepth >= 100) {
177
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
178
+ }
179
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
180
+ try {
181
+ const end = length === undefined ? reader.len : reader.pos + length;
182
+ const message = createBasePing();
183
+ while (reader.pos < end) {
184
+ const tag = reader.uint32();
185
+ switch (tag >>> 3) {
186
+ case 1: {
187
+ if (tag !== 8) {
188
+ break;
189
+ }
190
+ message.pingId = reader.int32();
191
+ continue;
192
+ }
193
+ }
194
+ if ((tag & 7) === 4 || tag === 0) {
195
+ break;
196
+ }
197
+ reader.skip(tag & 7);
179
198
  }
180
- reader.skip(tag & 7);
199
+ return message;
200
+ }
201
+ finally {
202
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
181
203
  }
182
- return message;
183
204
  },
184
205
  fromJSON(object) {
185
206
  return {
@@ -218,25 +239,35 @@ export const AddFilters = {
218
239
  },
219
240
  decode(input, length) {
220
241
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
221
- const end = length === undefined ? reader.len : reader.pos + length;
222
- const message = createBaseAddFilters();
223
- while (reader.pos < end) {
224
- const tag = reader.uint32();
225
- switch (tag >>> 3) {
226
- case 1: {
227
- if (tag !== 10) {
228
- break;
229
- }
230
- message.filters.push(TxFilter.decode(reader, reader.uint32()));
231
- continue;
232
- }
233
- }
234
- if ((tag & 7) === 4 || tag === 0) {
235
- break;
242
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
243
+ if (previousRecursionDepth >= 100) {
244
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
245
+ }
246
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
247
+ try {
248
+ const end = length === undefined ? reader.len : reader.pos + length;
249
+ const message = createBaseAddFilters();
250
+ while (reader.pos < end) {
251
+ const tag = reader.uint32();
252
+ switch (tag >>> 3) {
253
+ case 1: {
254
+ if (tag !== 10) {
255
+ break;
256
+ }
257
+ message.filters.push(TxFilter.decode(reader, reader.uint32()));
258
+ continue;
259
+ }
260
+ }
261
+ if ((tag & 7) === 4 || tag === 0) {
262
+ break;
263
+ }
264
+ reader.skip(tag & 7);
236
265
  }
237
- reader.skip(tag & 7);
266
+ return message;
267
+ }
268
+ finally {
269
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
238
270
  }
239
- return message;
240
271
  },
241
272
  fromJSON(object) {
242
273
  return {
@@ -274,32 +305,42 @@ export const TxFilter = {
274
305
  },
275
306
  decode(input, length) {
276
307
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
277
- const end = length === undefined ? reader.len : reader.pos + length;
278
- const message = createBaseTxFilter();
279
- while (reader.pos < end) {
280
- const tag = reader.uint32();
281
- switch (tag >>> 3) {
282
- case 1: {
283
- if (tag !== 10) {
284
- break;
285
- }
286
- message.filterId = reader.string();
287
- continue;
288
- }
289
- case 2: {
290
- if (tag !== 18) {
291
- break;
292
- }
293
- message.filter = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
294
- continue;
295
- }
308
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
309
+ if (previousRecursionDepth >= 100) {
310
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
311
+ }
312
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
313
+ try {
314
+ const end = length === undefined ? reader.len : reader.pos + length;
315
+ const message = createBaseTxFilter();
316
+ while (reader.pos < end) {
317
+ const tag = reader.uint32();
318
+ switch (tag >>> 3) {
319
+ case 1: {
320
+ if (tag !== 10) {
321
+ break;
322
+ }
323
+ message.filterId = reader.string();
324
+ continue;
325
+ }
326
+ case 2: {
327
+ if (tag !== 18) {
328
+ break;
329
+ }
330
+ message.filter = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
331
+ continue;
332
+ }
333
+ }
334
+ if ((tag & 7) === 4 || tag === 0) {
335
+ break;
336
+ }
337
+ reader.skip(tag & 7);
296
338
  }
297
- if ((tag & 7) === 4 || tag === 0) {
298
- break;
299
- }
300
- reader.skip(tag & 7);
339
+ return message;
340
+ }
341
+ finally {
342
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
301
343
  }
302
- return message;
303
344
  },
304
345
  fromJSON(object) {
305
346
  return {
@@ -354,46 +395,56 @@ export const SubscribeRequestFilterTransactions = {
354
395
  },
355
396
  decode(input, length) {
356
397
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
357
- const end = length === undefined ? reader.len : reader.pos + length;
358
- const message = createBaseSubscribeRequestFilterTransactions();
359
- while (reader.pos < end) {
360
- const tag = reader.uint32();
361
- switch (tag >>> 3) {
362
- case 1: {
363
- if (tag !== 10) {
364
- break;
365
- }
366
- message.accountInclude.push(reader.string());
367
- continue;
368
- }
369
- case 2: {
370
- if (tag !== 18) {
371
- break;
372
- }
373
- message.accountExclude.push(reader.string());
374
- continue;
375
- }
376
- case 3: {
377
- if (tag !== 26) {
378
- break;
379
- }
380
- message.accountRequired.push(reader.string());
381
- continue;
382
- }
383
- case 4: {
384
- if (tag !== 32) {
385
- break;
386
- }
387
- message.includeEnrichment = reader.bool();
388
- continue;
389
- }
390
- }
391
- if ((tag & 7) === 4 || tag === 0) {
392
- break;
398
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
399
+ if (previousRecursionDepth >= 100) {
400
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
401
+ }
402
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
403
+ try {
404
+ const end = length === undefined ? reader.len : reader.pos + length;
405
+ const message = createBaseSubscribeRequestFilterTransactions();
406
+ while (reader.pos < end) {
407
+ const tag = reader.uint32();
408
+ switch (tag >>> 3) {
409
+ case 1: {
410
+ if (tag !== 10) {
411
+ break;
412
+ }
413
+ message.accountInclude.push(reader.string());
414
+ continue;
415
+ }
416
+ case 2: {
417
+ if (tag !== 18) {
418
+ break;
419
+ }
420
+ message.accountExclude.push(reader.string());
421
+ continue;
422
+ }
423
+ case 3: {
424
+ if (tag !== 26) {
425
+ break;
426
+ }
427
+ message.accountRequired.push(reader.string());
428
+ continue;
429
+ }
430
+ case 4: {
431
+ if (tag !== 32) {
432
+ break;
433
+ }
434
+ message.includeEnrichment = reader.bool();
435
+ continue;
436
+ }
437
+ }
438
+ if ((tag & 7) === 4 || tag === 0) {
439
+ break;
440
+ }
441
+ reader.skip(tag & 7);
393
442
  }
394
- reader.skip(tag & 7);
443
+ return message;
444
+ }
445
+ finally {
446
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
395
447
  }
396
- return message;
397
448
  },
398
449
  fromJSON(object) {
399
450
  return {
@@ -459,25 +510,35 @@ export const RemoveFilters = {
459
510
  },
460
511
  decode(input, length) {
461
512
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
462
- const end = length === undefined ? reader.len : reader.pos + length;
463
- const message = createBaseRemoveFilters();
464
- while (reader.pos < end) {
465
- const tag = reader.uint32();
466
- switch (tag >>> 3) {
467
- case 1: {
468
- if (tag !== 10) {
469
- break;
470
- }
471
- message.filterIds.push(reader.string());
472
- continue;
473
- }
513
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
514
+ if (previousRecursionDepth >= 100) {
515
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
516
+ }
517
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
518
+ try {
519
+ const end = length === undefined ? reader.len : reader.pos + length;
520
+ const message = createBaseRemoveFilters();
521
+ while (reader.pos < end) {
522
+ const tag = reader.uint32();
523
+ switch (tag >>> 3) {
524
+ case 1: {
525
+ if (tag !== 10) {
526
+ break;
527
+ }
528
+ message.filterIds.push(reader.string());
529
+ continue;
530
+ }
531
+ }
532
+ if ((tag & 7) === 4 || tag === 0) {
533
+ break;
534
+ }
535
+ reader.skip(tag & 7);
474
536
  }
475
- if ((tag & 7) === 4 || tag === 0) {
476
- break;
477
- }
478
- reader.skip(tag & 7);
537
+ return message;
538
+ }
539
+ finally {
540
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
479
541
  }
480
- return message;
481
542
  },
482
543
  fromJSON(object) {
483
544
  return {
@@ -541,60 +602,70 @@ export const SubscribeTransactionsResponse = {
541
602
  },
542
603
  decode(input, length) {
543
604
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
544
- const end = length === undefined ? reader.len : reader.pos + length;
545
- const message = createBaseSubscribeTransactionsResponse();
546
- while (reader.pos < end) {
547
- const tag = reader.uint32();
548
- switch (tag >>> 3) {
549
- case 1: {
550
- if (tag !== 10) {
551
- break;
552
- }
553
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
554
- continue;
555
- }
556
- case 2: {
557
- if (tag !== 18) {
558
- break;
559
- }
560
- message.transaction = FilteredTransaction.decode(reader, reader.uint32());
561
- continue;
562
- }
563
- case 3: {
564
- if (tag !== 26) {
565
- break;
566
- }
567
- message.pong = Pong.decode(reader, reader.uint32());
568
- continue;
569
- }
570
- case 5: {
571
- if (tag !== 42) {
572
- break;
573
- }
574
- message.filterValidation = FilterResult.decode(reader, reader.uint32());
575
- continue;
576
- }
577
- case 6: {
578
- if (tag !== 50) {
579
- break;
580
- }
581
- message.heartbeat = Heartbeat.decode(reader, reader.uint32());
582
- continue;
583
- }
584
- case 4: {
585
- if (tag !== 32) {
586
- break;
587
- }
588
- message.sequence = reader.uint64();
589
- continue;
590
- }
591
- }
592
- if ((tag & 7) === 4 || tag === 0) {
593
- break;
605
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
606
+ if (previousRecursionDepth >= 100) {
607
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
608
+ }
609
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
610
+ try {
611
+ const end = length === undefined ? reader.len : reader.pos + length;
612
+ const message = createBaseSubscribeTransactionsResponse();
613
+ while (reader.pos < end) {
614
+ const tag = reader.uint32();
615
+ switch (tag >>> 3) {
616
+ case 1: {
617
+ if (tag !== 10) {
618
+ break;
619
+ }
620
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
621
+ continue;
622
+ }
623
+ case 2: {
624
+ if (tag !== 18) {
625
+ break;
626
+ }
627
+ message.transaction = FilteredTransaction.decode(reader, reader.uint32());
628
+ continue;
629
+ }
630
+ case 3: {
631
+ if (tag !== 26) {
632
+ break;
633
+ }
634
+ message.pong = Pong.decode(reader, reader.uint32());
635
+ continue;
636
+ }
637
+ case 5: {
638
+ if (tag !== 42) {
639
+ break;
640
+ }
641
+ message.filterValidation = FilterResult.decode(reader, reader.uint32());
642
+ continue;
643
+ }
644
+ case 6: {
645
+ if (tag !== 50) {
646
+ break;
647
+ }
648
+ message.heartbeat = Heartbeat.decode(reader, reader.uint32());
649
+ continue;
650
+ }
651
+ case 4: {
652
+ if (tag !== 32) {
653
+ break;
654
+ }
655
+ message.sequence = reader.uint64();
656
+ continue;
657
+ }
658
+ }
659
+ if ((tag & 7) === 4 || tag === 0) {
660
+ break;
661
+ }
662
+ reader.skip(tag & 7);
594
663
  }
595
- reader.skip(tag & 7);
664
+ return message;
665
+ }
666
+ finally {
667
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
596
668
  }
597
- return message;
598
669
  },
599
670
  fromJSON(object) {
600
671
  return {
@@ -652,7 +723,7 @@ export const SubscribeTransactionsResponse = {
652
723
  message.heartbeat = (object.heartbeat !== undefined && object.heartbeat !== null)
653
724
  ? Heartbeat.fromPartial(object.heartbeat)
654
725
  : undefined;
655
- message.sequence = object.sequence ?? 0n;
726
+ message.sequence = (object.sequence !== undefined && object.sequence !== null) ? BigInt(object.sequence) : 0n;
656
727
  return message;
657
728
  },
658
729
  };
@@ -668,25 +739,35 @@ export const Pong = {
668
739
  },
669
740
  decode(input, length) {
670
741
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
671
- const end = length === undefined ? reader.len : reader.pos + length;
672
- const message = createBasePong();
673
- while (reader.pos < end) {
674
- const tag = reader.uint32();
675
- switch (tag >>> 3) {
676
- case 1: {
677
- if (tag !== 8) {
678
- break;
679
- }
680
- message.pingId = reader.int32();
681
- continue;
682
- }
683
- }
684
- if ((tag & 7) === 4 || tag === 0) {
685
- break;
742
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
743
+ if (previousRecursionDepth >= 100) {
744
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
745
+ }
746
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
747
+ try {
748
+ const end = length === undefined ? reader.len : reader.pos + length;
749
+ const message = createBasePong();
750
+ while (reader.pos < end) {
751
+ const tag = reader.uint32();
752
+ switch (tag >>> 3) {
753
+ case 1: {
754
+ if (tag !== 8) {
755
+ break;
756
+ }
757
+ message.pingId = reader.int32();
758
+ continue;
759
+ }
760
+ }
761
+ if ((tag & 7) === 4 || tag === 0) {
762
+ break;
763
+ }
764
+ reader.skip(tag & 7);
686
765
  }
687
- reader.skip(tag & 7);
766
+ return message;
767
+ }
768
+ finally {
769
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
688
770
  }
689
- return message;
690
771
  },
691
772
  fromJSON(object) {
692
773
  return {
@@ -731,39 +812,49 @@ export const FilterResult = {
731
812
  },
732
813
  decode(input, length) {
733
814
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
734
- const end = length === undefined ? reader.len : reader.pos + length;
735
- const message = createBaseFilterResult();
736
- while (reader.pos < end) {
737
- const tag = reader.uint32();
738
- switch (tag >>> 3) {
739
- case 1: {
740
- if (tag !== 10) {
741
- break;
742
- }
743
- message.filterId = reader.string();
744
- continue;
745
- }
746
- case 2: {
747
- if (tag !== 16) {
748
- break;
749
- }
750
- message.accepted = reader.bool();
751
- continue;
752
- }
753
- case 3: {
754
- if (tag !== 26) {
755
- break;
756
- }
757
- message.rejectionReason = reader.string();
758
- continue;
759
- }
760
- }
761
- if ((tag & 7) === 4 || tag === 0) {
762
- break;
815
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
816
+ if (previousRecursionDepth >= 100) {
817
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
818
+ }
819
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
820
+ try {
821
+ const end = length === undefined ? reader.len : reader.pos + length;
822
+ const message = createBaseFilterResult();
823
+ while (reader.pos < end) {
824
+ const tag = reader.uint32();
825
+ switch (tag >>> 3) {
826
+ case 1: {
827
+ if (tag !== 10) {
828
+ break;
829
+ }
830
+ message.filterId = reader.string();
831
+ continue;
832
+ }
833
+ case 2: {
834
+ if (tag !== 16) {
835
+ break;
836
+ }
837
+ message.accepted = reader.bool();
838
+ continue;
839
+ }
840
+ case 3: {
841
+ if (tag !== 26) {
842
+ break;
843
+ }
844
+ message.rejectionReason = reader.string();
845
+ continue;
846
+ }
847
+ }
848
+ if ((tag & 7) === 4 || tag === 0) {
849
+ break;
850
+ }
851
+ reader.skip(tag & 7);
763
852
  }
764
- reader.skip(tag & 7);
853
+ return message;
854
+ }
855
+ finally {
856
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
765
857
  }
766
- return message;
767
858
  },
768
859
  fromJSON(object) {
769
860
  return {
@@ -819,25 +910,35 @@ export const Heartbeat = {
819
910
  },
820
911
  decode(input, length) {
821
912
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
822
- const end = length === undefined ? reader.len : reader.pos + length;
823
- const message = createBaseHeartbeat();
824
- while (reader.pos < end) {
825
- const tag = reader.uint32();
826
- switch (tag >>> 3) {
827
- case 1: {
828
- if (tag !== 8) {
829
- break;
830
- }
831
- message.serverTsMs = reader.uint64();
832
- continue;
833
- }
913
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
914
+ if (previousRecursionDepth >= 100) {
915
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
916
+ }
917
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
918
+ try {
919
+ const end = length === undefined ? reader.len : reader.pos + length;
920
+ const message = createBaseHeartbeat();
921
+ while (reader.pos < end) {
922
+ const tag = reader.uint32();
923
+ switch (tag >>> 3) {
924
+ case 1: {
925
+ if (tag !== 8) {
926
+ break;
927
+ }
928
+ message.serverTsMs = reader.uint64();
929
+ continue;
930
+ }
931
+ }
932
+ if ((tag & 7) === 4 || tag === 0) {
933
+ break;
934
+ }
935
+ reader.skip(tag & 7);
834
936
  }
835
- if ((tag & 7) === 4 || tag === 0) {
836
- break;
837
- }
838
- reader.skip(tag & 7);
937
+ return message;
938
+ }
939
+ finally {
940
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
839
941
  }
840
- return message;
841
942
  },
842
943
  fromJSON(object) {
843
944
  return {
@@ -860,7 +961,9 @@ export const Heartbeat = {
860
961
  },
861
962
  fromPartial(object) {
862
963
  const message = createBaseHeartbeat();
863
- message.serverTsMs = object.serverTsMs ?? 0n;
964
+ message.serverTsMs = (object.serverTsMs !== undefined && object.serverTsMs !== null)
965
+ ? BigInt(object.serverTsMs)
966
+ : 0n;
864
967
  return message;
865
968
  },
866
969
  };
@@ -879,32 +982,42 @@ export const FilteredTransaction = {
879
982
  },
880
983
  decode(input, length) {
881
984
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
882
- const end = length === undefined ? reader.len : reader.pos + length;
883
- const message = createBaseFilteredTransaction();
884
- while (reader.pos < end) {
885
- const tag = reader.uint32();
886
- switch (tag >>> 3) {
887
- case 1: {
888
- if (tag !== 10) {
889
- break;
890
- }
891
- message.filterIds.push(reader.string());
892
- continue;
893
- }
894
- case 2: {
895
- if (tag !== 18) {
896
- break;
897
- }
898
- message.transaction = TransactionMessage.decode(reader, reader.uint32());
899
- continue;
900
- }
985
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
986
+ if (previousRecursionDepth >= 100) {
987
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
988
+ }
989
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
990
+ try {
991
+ const end = length === undefined ? reader.len : reader.pos + length;
992
+ const message = createBaseFilteredTransaction();
993
+ while (reader.pos < end) {
994
+ const tag = reader.uint32();
995
+ switch (tag >>> 3) {
996
+ case 1: {
997
+ if (tag !== 10) {
998
+ break;
999
+ }
1000
+ message.filterIds.push(reader.string());
1001
+ continue;
1002
+ }
1003
+ case 2: {
1004
+ if (tag !== 18) {
1005
+ break;
1006
+ }
1007
+ message.transaction = TransactionMessage.decode(reader, reader.uint32());
1008
+ continue;
1009
+ }
1010
+ }
1011
+ if ((tag & 7) === 4 || tag === 0) {
1012
+ break;
1013
+ }
1014
+ reader.skip(tag & 7);
901
1015
  }
902
- if ((tag & 7) === 4 || tag === 0) {
903
- break;
904
- }
905
- reader.skip(tag & 7);
1016
+ return message;
1017
+ }
1018
+ finally {
1019
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
906
1020
  }
907
- return message;
908
1021
  },
909
1022
  fromJSON(object) {
910
1023
  return {
@@ -1053,186 +1166,196 @@ export const TransactionMessage = {
1053
1166
  },
1054
1167
  decode(input, length) {
1055
1168
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1056
- const end = length === undefined ? reader.len : reader.pos + length;
1057
- const message = createBaseTransactionMessage();
1058
- while (reader.pos < end) {
1059
- const tag = reader.uint32();
1060
- switch (tag >>> 3) {
1061
- case 1: {
1062
- if (tag !== 8) {
1063
- break;
1064
- }
1065
- message.slot = reader.uint64();
1066
- continue;
1067
- }
1068
- case 2: {
1069
- if (tag !== 18) {
1070
- break;
1071
- }
1072
- message.signature = reader.bytes();
1073
- continue;
1074
- }
1075
- case 3: {
1076
- if (tag !== 24) {
1077
- break;
1078
- }
1079
- message.txIndex = reader.uint32();
1080
- continue;
1081
- }
1082
- case 4: {
1083
- if (tag !== 34) {
1084
- break;
1085
- }
1086
- message.signatures.push(reader.bytes());
1087
- continue;
1088
- }
1089
- case 5: {
1090
- if (tag !== 40) {
1091
- break;
1092
- }
1093
- message.isVote = reader.bool();
1094
- continue;
1095
- }
1096
- case 6: {
1097
- if (tag !== 48) {
1098
- break;
1099
- }
1100
- message.numRequiredSignatures = reader.uint32();
1101
- continue;
1102
- }
1103
- case 7: {
1104
- if (tag !== 56) {
1105
- break;
1106
- }
1107
- message.numReadonlySignedAccounts = reader.uint32();
1108
- continue;
1109
- }
1110
- case 8: {
1111
- if (tag !== 64) {
1112
- break;
1113
- }
1114
- message.numReadonlyUnsignedAccounts = reader.uint32();
1115
- continue;
1116
- }
1117
- case 9: {
1118
- if (tag !== 74) {
1119
- break;
1120
- }
1121
- message.recentBlockhash = reader.bytes();
1122
- continue;
1123
- }
1124
- case 10: {
1125
- if (tag !== 80) {
1126
- break;
1127
- }
1128
- message.versioned = reader.bool();
1129
- continue;
1130
- }
1131
- case 11: {
1132
- if (tag !== 90) {
1133
- break;
1134
- }
1135
- message.accountKeys.push(reader.bytes());
1136
- continue;
1137
- }
1138
- case 12: {
1139
- if (tag !== 98) {
1140
- break;
1141
- }
1142
- message.instructions.push(CompiledInstruction.decode(reader, reader.uint32()));
1143
- continue;
1144
- }
1145
- case 13: {
1146
- if (tag !== 106) {
1147
- break;
1148
- }
1149
- message.addressTableLookups.push(MessageAddressTableLookup.decode(reader, reader.uint32()));
1150
- continue;
1151
- }
1152
- case 14: {
1153
- if (tag !== 114) {
1154
- break;
1155
- }
1156
- message.feePayer = reader.bytes();
1157
- continue;
1158
- }
1159
- case 15: {
1160
- if (tag !== 122) {
1161
- break;
1162
- }
1163
- message.writableAccounts.push(reader.bytes());
1164
- continue;
1165
- }
1166
- case 16: {
1167
- if (tag !== 130) {
1168
- break;
1169
- }
1170
- message.programIds.push(reader.bytes());
1171
- continue;
1172
- }
1173
- case 17: {
1174
- if (tag !== 136) {
1175
- break;
1176
- }
1177
- message.computeUnitPrice = reader.uint64();
1178
- continue;
1179
- }
1180
- case 18: {
1181
- if (tag !== 144) {
1182
- break;
1183
- }
1184
- message.computeLimit = reader.uint32();
1185
- continue;
1186
- }
1187
- case 19: {
1188
- if (tag !== 152) {
1189
- break;
1190
- }
1191
- message.txSize = reader.uint32();
1192
- continue;
1193
- }
1194
- case 20: {
1195
- if (tag !== 162) {
1196
- break;
1197
- }
1198
- message.loadedWritableAddresses.push(reader.bytes());
1199
- continue;
1200
- }
1201
- case 21: {
1202
- if (tag !== 170) {
1203
- break;
1204
- }
1205
- message.loadedReadonlyAddresses.push(reader.bytes());
1206
- continue;
1207
- }
1208
- case 22: {
1209
- if (tag !== 176) {
1210
- break;
1211
- }
1212
- message.altResolutionIncomplete = reader.bool();
1213
- continue;
1214
- }
1215
- case 23: {
1216
- if (tag !== 186) {
1217
- break;
1218
- }
1219
- message.config = TransactionConfig.decode(reader, reader.uint32());
1220
- continue;
1221
- }
1222
- case 24: {
1223
- if (tag !== 192) {
1224
- break;
1225
- }
1226
- message.priorityFeeLamports = reader.uint64();
1227
- continue;
1228
- }
1229
- }
1230
- if ((tag & 7) === 4 || tag === 0) {
1231
- break;
1169
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1170
+ if (previousRecursionDepth >= 100) {
1171
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1172
+ }
1173
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1174
+ try {
1175
+ const end = length === undefined ? reader.len : reader.pos + length;
1176
+ const message = createBaseTransactionMessage();
1177
+ while (reader.pos < end) {
1178
+ const tag = reader.uint32();
1179
+ switch (tag >>> 3) {
1180
+ case 1: {
1181
+ if (tag !== 8) {
1182
+ break;
1183
+ }
1184
+ message.slot = reader.uint64();
1185
+ continue;
1186
+ }
1187
+ case 2: {
1188
+ if (tag !== 18) {
1189
+ break;
1190
+ }
1191
+ message.signature = reader.bytes();
1192
+ continue;
1193
+ }
1194
+ case 3: {
1195
+ if (tag !== 24) {
1196
+ break;
1197
+ }
1198
+ message.txIndex = reader.uint32();
1199
+ continue;
1200
+ }
1201
+ case 4: {
1202
+ if (tag !== 34) {
1203
+ break;
1204
+ }
1205
+ message.signatures.push(reader.bytes());
1206
+ continue;
1207
+ }
1208
+ case 5: {
1209
+ if (tag !== 40) {
1210
+ break;
1211
+ }
1212
+ message.isVote = reader.bool();
1213
+ continue;
1214
+ }
1215
+ case 6: {
1216
+ if (tag !== 48) {
1217
+ break;
1218
+ }
1219
+ message.numRequiredSignatures = reader.uint32();
1220
+ continue;
1221
+ }
1222
+ case 7: {
1223
+ if (tag !== 56) {
1224
+ break;
1225
+ }
1226
+ message.numReadonlySignedAccounts = reader.uint32();
1227
+ continue;
1228
+ }
1229
+ case 8: {
1230
+ if (tag !== 64) {
1231
+ break;
1232
+ }
1233
+ message.numReadonlyUnsignedAccounts = reader.uint32();
1234
+ continue;
1235
+ }
1236
+ case 9: {
1237
+ if (tag !== 74) {
1238
+ break;
1239
+ }
1240
+ message.recentBlockhash = reader.bytes();
1241
+ continue;
1242
+ }
1243
+ case 10: {
1244
+ if (tag !== 80) {
1245
+ break;
1246
+ }
1247
+ message.versioned = reader.bool();
1248
+ continue;
1249
+ }
1250
+ case 11: {
1251
+ if (tag !== 90) {
1252
+ break;
1253
+ }
1254
+ message.accountKeys.push(reader.bytes());
1255
+ continue;
1256
+ }
1257
+ case 12: {
1258
+ if (tag !== 98) {
1259
+ break;
1260
+ }
1261
+ message.instructions.push(CompiledInstruction.decode(reader, reader.uint32()));
1262
+ continue;
1263
+ }
1264
+ case 13: {
1265
+ if (tag !== 106) {
1266
+ break;
1267
+ }
1268
+ message.addressTableLookups.push(MessageAddressTableLookup.decode(reader, reader.uint32()));
1269
+ continue;
1270
+ }
1271
+ case 14: {
1272
+ if (tag !== 114) {
1273
+ break;
1274
+ }
1275
+ message.feePayer = reader.bytes();
1276
+ continue;
1277
+ }
1278
+ case 15: {
1279
+ if (tag !== 122) {
1280
+ break;
1281
+ }
1282
+ message.writableAccounts.push(reader.bytes());
1283
+ continue;
1284
+ }
1285
+ case 16: {
1286
+ if (tag !== 130) {
1287
+ break;
1288
+ }
1289
+ message.programIds.push(reader.bytes());
1290
+ continue;
1291
+ }
1292
+ case 17: {
1293
+ if (tag !== 136) {
1294
+ break;
1295
+ }
1296
+ message.computeUnitPrice = reader.uint64();
1297
+ continue;
1298
+ }
1299
+ case 18: {
1300
+ if (tag !== 144) {
1301
+ break;
1302
+ }
1303
+ message.computeLimit = reader.uint32();
1304
+ continue;
1305
+ }
1306
+ case 19: {
1307
+ if (tag !== 152) {
1308
+ break;
1309
+ }
1310
+ message.txSize = reader.uint32();
1311
+ continue;
1312
+ }
1313
+ case 20: {
1314
+ if (tag !== 162) {
1315
+ break;
1316
+ }
1317
+ message.loadedWritableAddresses.push(reader.bytes());
1318
+ continue;
1319
+ }
1320
+ case 21: {
1321
+ if (tag !== 170) {
1322
+ break;
1323
+ }
1324
+ message.loadedReadonlyAddresses.push(reader.bytes());
1325
+ continue;
1326
+ }
1327
+ case 22: {
1328
+ if (tag !== 176) {
1329
+ break;
1330
+ }
1331
+ message.altResolutionIncomplete = reader.bool();
1332
+ continue;
1333
+ }
1334
+ case 23: {
1335
+ if (tag !== 186) {
1336
+ break;
1337
+ }
1338
+ message.config = TransactionConfig.decode(reader, reader.uint32());
1339
+ continue;
1340
+ }
1341
+ case 24: {
1342
+ if (tag !== 192) {
1343
+ break;
1344
+ }
1345
+ message.priorityFeeLamports = reader.uint64();
1346
+ continue;
1347
+ }
1348
+ }
1349
+ if ((tag & 7) === 4 || tag === 0) {
1350
+ break;
1351
+ }
1352
+ reader.skip(tag & 7);
1232
1353
  }
1233
- reader.skip(tag & 7);
1354
+ return message;
1355
+ }
1356
+ finally {
1357
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1234
1358
  }
1235
- return message;
1236
1359
  },
1237
1360
  fromJSON(object) {
1238
1361
  return {
@@ -1419,7 +1542,7 @@ export const TransactionMessage = {
1419
1542
  },
1420
1543
  fromPartial(object) {
1421
1544
  const message = createBaseTransactionMessage();
1422
- message.slot = object.slot ?? 0n;
1545
+ message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
1423
1546
  message.signature = object.signature ?? new Uint8Array(0);
1424
1547
  message.txIndex = object.txIndex ?? 0;
1425
1548
  message.signatures = object.signatures?.map((e) => e) || [];
@@ -1436,7 +1559,9 @@ export const TransactionMessage = {
1436
1559
  message.feePayer = object.feePayer ?? new Uint8Array(0);
1437
1560
  message.writableAccounts = object.writableAccounts?.map((e) => e) || [];
1438
1561
  message.programIds = object.programIds?.map((e) => e) || [];
1439
- message.computeUnitPrice = object.computeUnitPrice ?? 0n;
1562
+ message.computeUnitPrice = (object.computeUnitPrice !== undefined && object.computeUnitPrice !== null)
1563
+ ? BigInt(object.computeUnitPrice)
1564
+ : 0n;
1440
1565
  message.computeLimit = object.computeLimit ?? 0;
1441
1566
  message.txSize = object.txSize ?? 0;
1442
1567
  message.loadedWritableAddresses = object.loadedWritableAddresses?.map((e) => e) || [];
@@ -1445,7 +1570,9 @@ export const TransactionMessage = {
1445
1570
  message.config = (object.config !== undefined && object.config !== null)
1446
1571
  ? TransactionConfig.fromPartial(object.config)
1447
1572
  : undefined;
1448
- message.priorityFeeLamports = object.priorityFeeLamports ?? undefined;
1573
+ message.priorityFeeLamports = (object.priorityFeeLamports !== undefined && object.priorityFeeLamports !== null)
1574
+ ? BigInt(object.priorityFeeLamports)
1575
+ : undefined;
1449
1576
  return message;
1450
1577
  },
1451
1578
  };
@@ -1478,46 +1605,56 @@ export const TransactionConfig = {
1478
1605
  },
1479
1606
  decode(input, length) {
1480
1607
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1481
- const end = length === undefined ? reader.len : reader.pos + length;
1482
- const message = createBaseTransactionConfig();
1483
- while (reader.pos < end) {
1484
- const tag = reader.uint32();
1485
- switch (tag >>> 3) {
1486
- case 1: {
1487
- if (tag !== 8) {
1488
- break;
1489
- }
1490
- message.priorityFee = reader.uint64();
1491
- continue;
1492
- }
1493
- case 2: {
1494
- if (tag !== 16) {
1495
- break;
1496
- }
1497
- message.computeUnitLimit = reader.uint32();
1498
- continue;
1499
- }
1500
- case 3: {
1501
- if (tag !== 24) {
1502
- break;
1503
- }
1504
- message.loadedAccountsDataSizeLimit = reader.uint32();
1505
- continue;
1506
- }
1507
- case 4: {
1508
- if (tag !== 32) {
1509
- break;
1510
- }
1511
- message.heapSize = reader.uint32();
1512
- continue;
1513
- }
1514
- }
1515
- if ((tag & 7) === 4 || tag === 0) {
1516
- break;
1608
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1609
+ if (previousRecursionDepth >= 100) {
1610
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1611
+ }
1612
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1613
+ try {
1614
+ const end = length === undefined ? reader.len : reader.pos + length;
1615
+ const message = createBaseTransactionConfig();
1616
+ while (reader.pos < end) {
1617
+ const tag = reader.uint32();
1618
+ switch (tag >>> 3) {
1619
+ case 1: {
1620
+ if (tag !== 8) {
1621
+ break;
1622
+ }
1623
+ message.priorityFee = reader.uint64();
1624
+ continue;
1625
+ }
1626
+ case 2: {
1627
+ if (tag !== 16) {
1628
+ break;
1629
+ }
1630
+ message.computeUnitLimit = reader.uint32();
1631
+ continue;
1632
+ }
1633
+ case 3: {
1634
+ if (tag !== 24) {
1635
+ break;
1636
+ }
1637
+ message.loadedAccountsDataSizeLimit = reader.uint32();
1638
+ continue;
1639
+ }
1640
+ case 4: {
1641
+ if (tag !== 32) {
1642
+ break;
1643
+ }
1644
+ message.heapSize = reader.uint32();
1645
+ continue;
1646
+ }
1647
+ }
1648
+ if ((tag & 7) === 4 || tag === 0) {
1649
+ break;
1650
+ }
1651
+ reader.skip(tag & 7);
1517
1652
  }
1518
- reader.skip(tag & 7);
1653
+ return message;
1654
+ }
1655
+ finally {
1656
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1519
1657
  }
1520
- return message;
1521
1658
  },
1522
1659
  fromJSON(object) {
1523
1660
  return {
@@ -1564,7 +1701,9 @@ export const TransactionConfig = {
1564
1701
  },
1565
1702
  fromPartial(object) {
1566
1703
  const message = createBaseTransactionConfig();
1567
- message.priorityFee = object.priorityFee ?? undefined;
1704
+ message.priorityFee = (object.priorityFee !== undefined && object.priorityFee !== null)
1705
+ ? BigInt(object.priorityFee)
1706
+ : undefined;
1568
1707
  message.computeUnitLimit = object.computeUnitLimit ?? undefined;
1569
1708
  message.loadedAccountsDataSizeLimit = object.loadedAccountsDataSizeLimit ?? undefined;
1570
1709
  message.heapSize = object.heapSize ?? undefined;
@@ -1589,39 +1728,49 @@ export const CompiledInstruction = {
1589
1728
  },
1590
1729
  decode(input, length) {
1591
1730
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1592
- const end = length === undefined ? reader.len : reader.pos + length;
1593
- const message = createBaseCompiledInstruction();
1594
- while (reader.pos < end) {
1595
- const tag = reader.uint32();
1596
- switch (tag >>> 3) {
1597
- case 1: {
1598
- if (tag !== 8) {
1599
- break;
1600
- }
1601
- message.programIdIndex = reader.uint32();
1602
- continue;
1603
- }
1604
- case 2: {
1605
- if (tag !== 18) {
1606
- break;
1607
- }
1608
- message.accounts = reader.bytes();
1609
- continue;
1610
- }
1611
- case 3: {
1612
- if (tag !== 26) {
1613
- break;
1614
- }
1615
- message.data = reader.bytes();
1616
- continue;
1617
- }
1731
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1732
+ if (previousRecursionDepth >= 100) {
1733
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1734
+ }
1735
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1736
+ try {
1737
+ const end = length === undefined ? reader.len : reader.pos + length;
1738
+ const message = createBaseCompiledInstruction();
1739
+ while (reader.pos < end) {
1740
+ const tag = reader.uint32();
1741
+ switch (tag >>> 3) {
1742
+ case 1: {
1743
+ if (tag !== 8) {
1744
+ break;
1745
+ }
1746
+ message.programIdIndex = reader.uint32();
1747
+ continue;
1748
+ }
1749
+ case 2: {
1750
+ if (tag !== 18) {
1751
+ break;
1752
+ }
1753
+ message.accounts = reader.bytes();
1754
+ continue;
1755
+ }
1756
+ case 3: {
1757
+ if (tag !== 26) {
1758
+ break;
1759
+ }
1760
+ message.data = reader.bytes();
1761
+ continue;
1762
+ }
1763
+ }
1764
+ if ((tag & 7) === 4 || tag === 0) {
1765
+ break;
1766
+ }
1767
+ reader.skip(tag & 7);
1618
1768
  }
1619
- if ((tag & 7) === 4 || tag === 0) {
1620
- break;
1621
- }
1622
- reader.skip(tag & 7);
1769
+ return message;
1770
+ }
1771
+ finally {
1772
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1623
1773
  }
1624
- return message;
1625
1774
  },
1626
1775
  fromJSON(object) {
1627
1776
  return {
@@ -1676,39 +1825,49 @@ export const MessageAddressTableLookup = {
1676
1825
  },
1677
1826
  decode(input, length) {
1678
1827
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1679
- const end = length === undefined ? reader.len : reader.pos + length;
1680
- const message = createBaseMessageAddressTableLookup();
1681
- while (reader.pos < end) {
1682
- const tag = reader.uint32();
1683
- switch (tag >>> 3) {
1684
- case 1: {
1685
- if (tag !== 10) {
1686
- break;
1687
- }
1688
- message.accountKey = reader.bytes();
1689
- continue;
1690
- }
1691
- case 2: {
1692
- if (tag !== 18) {
1693
- break;
1694
- }
1695
- message.writableIndexes = reader.bytes();
1696
- continue;
1697
- }
1698
- case 3: {
1699
- if (tag !== 26) {
1700
- break;
1701
- }
1702
- message.readonlyIndexes = reader.bytes();
1703
- continue;
1704
- }
1705
- }
1706
- if ((tag & 7) === 4 || tag === 0) {
1707
- break;
1828
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1829
+ if (previousRecursionDepth >= 100) {
1830
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1831
+ }
1832
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1833
+ try {
1834
+ const end = length === undefined ? reader.len : reader.pos + length;
1835
+ const message = createBaseMessageAddressTableLookup();
1836
+ while (reader.pos < end) {
1837
+ const tag = reader.uint32();
1838
+ switch (tag >>> 3) {
1839
+ case 1: {
1840
+ if (tag !== 10) {
1841
+ break;
1842
+ }
1843
+ message.accountKey = reader.bytes();
1844
+ continue;
1845
+ }
1846
+ case 2: {
1847
+ if (tag !== 18) {
1848
+ break;
1849
+ }
1850
+ message.writableIndexes = reader.bytes();
1851
+ continue;
1852
+ }
1853
+ case 3: {
1854
+ if (tag !== 26) {
1855
+ break;
1856
+ }
1857
+ message.readonlyIndexes = reader.bytes();
1858
+ continue;
1859
+ }
1860
+ }
1861
+ if ((tag & 7) === 4 || tag === 0) {
1862
+ break;
1863
+ }
1864
+ reader.skip(tag & 7);
1708
1865
  }
1709
- reader.skip(tag & 7);
1866
+ return message;
1867
+ }
1868
+ finally {
1869
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1710
1870
  }
1711
- return message;
1712
1871
  },
1713
1872
  fromJSON(object) {
1714
1873
  return {
@@ -1762,18 +1921,28 @@ export const SubscribeSlotsRequest = {
1762
1921
  },
1763
1922
  decode(input, length) {
1764
1923
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1765
- const end = length === undefined ? reader.len : reader.pos + length;
1766
- const message = createBaseSubscribeSlotsRequest();
1767
- while (reader.pos < end) {
1768
- const tag = reader.uint32();
1769
- switch (tag >>> 3) {
1770
- }
1771
- if ((tag & 7) === 4 || tag === 0) {
1772
- break;
1924
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1925
+ if (previousRecursionDepth >= 100) {
1926
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1927
+ }
1928
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
1929
+ try {
1930
+ const end = length === undefined ? reader.len : reader.pos + length;
1931
+ const message = createBaseSubscribeSlotsRequest();
1932
+ while (reader.pos < end) {
1933
+ const tag = reader.uint32();
1934
+ switch (tag >>> 3) {
1935
+ }
1936
+ if ((tag & 7) === 4 || tag === 0) {
1937
+ break;
1938
+ }
1939
+ reader.skip(tag & 7);
1773
1940
  }
1774
- reader.skip(tag & 7);
1941
+ return message;
1942
+ }
1943
+ finally {
1944
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1775
1945
  }
1776
- return message;
1777
1946
  },
1778
1947
  fromJSON(_) {
1779
1948
  return {};
@@ -1823,53 +1992,63 @@ export const SlotEvent = {
1823
1992
  },
1824
1993
  decode(input, length) {
1825
1994
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1826
- const end = length === undefined ? reader.len : reader.pos + length;
1827
- const message = createBaseSlotEvent();
1828
- while (reader.pos < end) {
1829
- const tag = reader.uint32();
1830
- switch (tag >>> 3) {
1831
- case 1: {
1832
- if (tag !== 8) {
1833
- break;
1834
- }
1835
- message.slot = reader.uint64();
1836
- continue;
1837
- }
1838
- case 2: {
1839
- if (tag !== 16) {
1840
- break;
1841
- }
1842
- message.status = reader.int32();
1843
- continue;
1844
- }
1845
- case 3: {
1846
- if (tag !== 26) {
1847
- break;
1848
- }
1849
- message.currentLeader = reader.bytes();
1850
- continue;
1851
- }
1852
- case 4: {
1853
- if (tag !== 32) {
1854
- break;
1855
- }
1856
- message.parentSlot = reader.uint64();
1857
- continue;
1858
- }
1859
- case 5: {
1860
- if (tag !== 40) {
1861
- break;
1862
- }
1863
- message.sequence = reader.uint64();
1864
- continue;
1865
- }
1866
- }
1867
- if ((tag & 7) === 4 || tag === 0) {
1868
- break;
1995
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
1996
+ if (previousRecursionDepth >= 100) {
1997
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1998
+ }
1999
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2000
+ try {
2001
+ const end = length === undefined ? reader.len : reader.pos + length;
2002
+ const message = createBaseSlotEvent();
2003
+ while (reader.pos < end) {
2004
+ const tag = reader.uint32();
2005
+ switch (tag >>> 3) {
2006
+ case 1: {
2007
+ if (tag !== 8) {
2008
+ break;
2009
+ }
2010
+ message.slot = reader.uint64();
2011
+ continue;
2012
+ }
2013
+ case 2: {
2014
+ if (tag !== 16) {
2015
+ break;
2016
+ }
2017
+ message.status = reader.int32();
2018
+ continue;
2019
+ }
2020
+ case 3: {
2021
+ if (tag !== 26) {
2022
+ break;
2023
+ }
2024
+ message.currentLeader = reader.bytes();
2025
+ continue;
2026
+ }
2027
+ case 4: {
2028
+ if (tag !== 32) {
2029
+ break;
2030
+ }
2031
+ message.parentSlot = reader.uint64();
2032
+ continue;
2033
+ }
2034
+ case 5: {
2035
+ if (tag !== 40) {
2036
+ break;
2037
+ }
2038
+ message.sequence = reader.uint64();
2039
+ continue;
2040
+ }
2041
+ }
2042
+ if ((tag & 7) === 4 || tag === 0) {
2043
+ break;
2044
+ }
2045
+ reader.skip(tag & 7);
1869
2046
  }
1870
- reader.skip(tag & 7);
2047
+ return message;
2048
+ }
2049
+ finally {
2050
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1871
2051
  }
1872
- return message;
1873
2052
  },
1874
2053
  fromJSON(object) {
1875
2054
  return {
@@ -1912,11 +2091,13 @@ export const SlotEvent = {
1912
2091
  },
1913
2092
  fromPartial(object) {
1914
2093
  const message = createBaseSlotEvent();
1915
- message.slot = object.slot ?? 0n;
2094
+ message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
1916
2095
  message.status = object.status ?? 0;
1917
2096
  message.currentLeader = object.currentLeader ?? new Uint8Array(0);
1918
- message.parentSlot = object.parentSlot ?? 0n;
1919
- message.sequence = object.sequence ?? 0n;
2097
+ message.parentSlot = (object.parentSlot !== undefined && object.parentSlot !== null)
2098
+ ? BigInt(object.parentSlot)
2099
+ : 0n;
2100
+ message.sequence = (object.sequence !== undefined && object.sequence !== null) ? BigInt(object.sequence) : 0n;
1920
2101
  return message;
1921
2102
  },
1922
2103
  };
@@ -1932,25 +2113,35 @@ export const PingRequest = {
1932
2113
  },
1933
2114
  decode(input, length) {
1934
2115
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1935
- const end = length === undefined ? reader.len : reader.pos + length;
1936
- const message = createBasePingRequest();
1937
- while (reader.pos < end) {
1938
- const tag = reader.uint32();
1939
- switch (tag >>> 3) {
1940
- case 1: {
1941
- if (tag !== 8) {
1942
- break;
1943
- }
1944
- message.count = reader.int32();
1945
- continue;
1946
- }
1947
- }
1948
- if ((tag & 7) === 4 || tag === 0) {
1949
- break;
2116
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2117
+ if (previousRecursionDepth >= 100) {
2118
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2119
+ }
2120
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2121
+ try {
2122
+ const end = length === undefined ? reader.len : reader.pos + length;
2123
+ const message = createBasePingRequest();
2124
+ while (reader.pos < end) {
2125
+ const tag = reader.uint32();
2126
+ switch (tag >>> 3) {
2127
+ case 1: {
2128
+ if (tag !== 8) {
2129
+ break;
2130
+ }
2131
+ message.count = reader.int32();
2132
+ continue;
2133
+ }
2134
+ }
2135
+ if ((tag & 7) === 4 || tag === 0) {
2136
+ break;
2137
+ }
2138
+ reader.skip(tag & 7);
1950
2139
  }
1951
- reader.skip(tag & 7);
2140
+ return message;
2141
+ }
2142
+ finally {
2143
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
1952
2144
  }
1953
- return message;
1954
2145
  },
1955
2146
  fromJSON(object) {
1956
2147
  return { count: isSet(object.count) ? globalThis.Number(object.count) : 0 };
@@ -1983,25 +2174,35 @@ export const PongResponse = {
1983
2174
  },
1984
2175
  decode(input, length) {
1985
2176
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1986
- const end = length === undefined ? reader.len : reader.pos + length;
1987
- const message = createBasePongResponse();
1988
- while (reader.pos < end) {
1989
- const tag = reader.uint32();
1990
- switch (tag >>> 3) {
1991
- case 1: {
1992
- if (tag !== 8) {
1993
- break;
1994
- }
1995
- message.count = reader.int32();
1996
- continue;
1997
- }
2177
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2178
+ if (previousRecursionDepth >= 100) {
2179
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2180
+ }
2181
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2182
+ try {
2183
+ const end = length === undefined ? reader.len : reader.pos + length;
2184
+ const message = createBasePongResponse();
2185
+ while (reader.pos < end) {
2186
+ const tag = reader.uint32();
2187
+ switch (tag >>> 3) {
2188
+ case 1: {
2189
+ if (tag !== 8) {
2190
+ break;
2191
+ }
2192
+ message.count = reader.int32();
2193
+ continue;
2194
+ }
2195
+ }
2196
+ if ((tag & 7) === 4 || tag === 0) {
2197
+ break;
2198
+ }
2199
+ reader.skip(tag & 7);
1998
2200
  }
1999
- if ((tag & 7) === 4 || tag === 0) {
2000
- break;
2001
- }
2002
- reader.skip(tag & 7);
2201
+ return message;
2202
+ }
2203
+ finally {
2204
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2003
2205
  }
2004
- return message;
2005
2206
  },
2006
2207
  fromJSON(object) {
2007
2208
  return { count: isSet(object.count) ? globalThis.Number(object.count) : 0 };
@@ -2031,18 +2232,28 @@ export const GetVersionRequest = {
2031
2232
  },
2032
2233
  decode(input, length) {
2033
2234
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2034
- const end = length === undefined ? reader.len : reader.pos + length;
2035
- const message = createBaseGetVersionRequest();
2036
- while (reader.pos < end) {
2037
- const tag = reader.uint32();
2038
- switch (tag >>> 3) {
2039
- }
2040
- if ((tag & 7) === 4 || tag === 0) {
2041
- break;
2235
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2236
+ if (previousRecursionDepth >= 100) {
2237
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2238
+ }
2239
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2240
+ try {
2241
+ const end = length === undefined ? reader.len : reader.pos + length;
2242
+ const message = createBaseGetVersionRequest();
2243
+ while (reader.pos < end) {
2244
+ const tag = reader.uint32();
2245
+ switch (tag >>> 3) {
2246
+ }
2247
+ if ((tag & 7) === 4 || tag === 0) {
2248
+ break;
2249
+ }
2250
+ reader.skip(tag & 7);
2042
2251
  }
2043
- reader.skip(tag & 7);
2252
+ return message;
2253
+ }
2254
+ finally {
2255
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2044
2256
  }
2045
- return message;
2046
2257
  },
2047
2258
  fromJSON(_) {
2048
2259
  return {};
@@ -2071,25 +2282,35 @@ export const GetVersionResponse = {
2071
2282
  },
2072
2283
  decode(input, length) {
2073
2284
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2074
- const end = length === undefined ? reader.len : reader.pos + length;
2075
- const message = createBaseGetVersionResponse();
2076
- while (reader.pos < end) {
2077
- const tag = reader.uint32();
2078
- switch (tag >>> 3) {
2079
- case 1: {
2080
- if (tag !== 10) {
2081
- break;
2082
- }
2083
- message.version = reader.string();
2084
- continue;
2085
- }
2285
+ const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
2286
+ if (previousRecursionDepth >= 100) {
2287
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2288
+ }
2289
+ reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
2290
+ try {
2291
+ const end = length === undefined ? reader.len : reader.pos + length;
2292
+ const message = createBaseGetVersionResponse();
2293
+ while (reader.pos < end) {
2294
+ const tag = reader.uint32();
2295
+ switch (tag >>> 3) {
2296
+ case 1: {
2297
+ if (tag !== 10) {
2298
+ break;
2299
+ }
2300
+ message.version = reader.string();
2301
+ continue;
2302
+ }
2303
+ }
2304
+ if ((tag & 7) === 4 || tag === 0) {
2305
+ break;
2306
+ }
2307
+ reader.skip(tag & 7);
2086
2308
  }
2087
- if ((tag & 7) === 4 || tag === 0) {
2088
- break;
2089
- }
2090
- reader.skip(tag & 7);
2309
+ return message;
2310
+ }
2311
+ finally {
2312
+ reader.__tsProtoDecodeDepth = previousRecursionDepth;
2091
2313
  }
2092
- return message;
2093
2314
  },
2094
2315
  fromJSON(object) {
2095
2316
  return { version: isSet(object.version) ? globalThis.String(object.version) : "" };