@orbitflare/sdk 0.4.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.
- package/README.md +52 -1
- package/dist/address.d.ts +2 -1
- package/dist/address.d.ts.map +1 -1
- package/dist/address.js +13 -1
- package/dist/address.js.map +1 -1
- package/dist/apex.d.ts.map +1 -1
- package/dist/apex.js.map +1 -1
- package/dist/das.d.ts +413 -0
- package/dist/das.d.ts.map +1 -0
- package/dist/das.js +113 -0
- package/dist/das.js.map +1 -0
- package/dist/grpc.d.ts +3 -0
- package/dist/grpc.d.ts.map +1 -1
- package/dist/grpc.js +8 -1
- package/dist/grpc.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jetstream/index.d.ts +3 -0
- package/dist/jetstream/index.d.ts.map +1 -1
- package/dist/jetstream/index.js +8 -1
- package/dist/jetstream/index.js.map +1 -1
- package/dist/jetstream/v2.d.ts +3 -0
- package/dist/jetstream/v2.d.ts.map +1 -1
- package/dist/jetstream/v2.js +8 -1
- package/dist/jetstream/v2.js.map +1 -1
- package/dist/proto/geyser.d.ts +2 -1
- package/dist/proto/geyser.d.ts.map +1 -1
- package/dist/proto/geyser.js +2281 -1681
- package/dist/proto/geyser.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +2 -1
- package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto/google/protobuf/timestamp.js +61 -31
- package/dist/proto/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto/jetstream.d.ts +2 -1
- package/dist/proto/jetstream.d.ts.map +1 -1
- package/dist/proto/jetstream.js +1328 -976
- package/dist/proto/jetstream.js.map +1 -1
- package/dist/proto/jetstream_v2.d.ts +2 -1
- package/dist/proto/jetstream_v2.d.ts.map +1 -1
- package/dist/proto/jetstream_v2.js +910 -689
- package/dist/proto/jetstream_v2.js.map +1 -1
- package/dist/proto/solana-storage.d.ts +2 -1
- package/dist/proto/solana-storage.d.ts.map +1 -1
- package/dist/proto/solana-storage.js +903 -681
- package/dist/proto/solana-storage.js.map +1 -1
- package/dist/rpc.d.ts +31 -0
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +84 -0
- package/dist/rpc.js.map +1 -1
- package/package.json +10 -5
package/dist/proto/geyser.js
CHANGED
|
@@ -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.
|
|
3
|
+
// protoc-gen-ts_proto v2.18.0
|
|
4
4
|
// protoc v4.23.4
|
|
5
5
|
// source: geyser.proto
|
|
6
6
|
/* eslint-disable */
|
|
@@ -9,6 +9,7 @@ import { makeGenericClientConstructor, } from "@grpc/grpc-js";
|
|
|
9
9
|
import { Timestamp } from "./google/protobuf/timestamp.js";
|
|
10
10
|
import { BlockHeight, Rewards, Transaction, TransactionError, TransactionStatusMeta, UnixTimestamp, } from "./solana-storage.js";
|
|
11
11
|
export const protobufPackage = "geyser";
|
|
12
|
+
export const protobufFileName = "geyser.proto";
|
|
12
13
|
export var CommitmentLevel;
|
|
13
14
|
(function (CommitmentLevel) {
|
|
14
15
|
CommitmentLevel[CommitmentLevel["PROCESSED"] = 0] = "PROCESSED";
|
|
@@ -164,168 +165,223 @@ export const SubscribeRequest = {
|
|
|
164
165
|
},
|
|
165
166
|
decode(input, length) {
|
|
166
167
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
168
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
169
|
+
if (previousRecursionDepth >= 100) {
|
|
170
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
171
|
+
}
|
|
172
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
173
|
+
try {
|
|
174
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
175
|
+
const message = createBaseSubscribeRequest();
|
|
176
|
+
while (reader.pos < end) {
|
|
177
|
+
const tag = reader.uint32();
|
|
178
|
+
switch (tag >>> 3) {
|
|
179
|
+
case 1: {
|
|
180
|
+
if (tag !== 10) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
const entry1 = SubscribeRequest_AccountsEntry.decode(reader, reader.uint32());
|
|
184
|
+
if (entry1.value !== undefined) {
|
|
185
|
+
message.accounts[entry1.key] = entry1.value;
|
|
186
|
+
}
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
case 2: {
|
|
190
|
+
if (tag !== 18) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
const entry2 = SubscribeRequest_SlotsEntry.decode(reader, reader.uint32());
|
|
194
|
+
if (entry2.value !== undefined) {
|
|
195
|
+
message.slots[entry2.key] = entry2.value;
|
|
196
|
+
}
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
case 3: {
|
|
200
|
+
if (tag !== 26) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
const entry3 = SubscribeRequest_TransactionsEntry.decode(reader, reader.uint32());
|
|
204
|
+
if (entry3.value !== undefined) {
|
|
205
|
+
message.transactions[entry3.key] = entry3.value;
|
|
206
|
+
}
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
case 10: {
|
|
210
|
+
if (tag !== 82) {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
const entry10 = SubscribeRequest_TransactionsStatusEntry.decode(reader, reader.uint32());
|
|
214
|
+
if (entry10.value !== undefined) {
|
|
215
|
+
message.transactionsStatus[entry10.key] = entry10.value;
|
|
216
|
+
}
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
case 4: {
|
|
220
|
+
if (tag !== 34) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
const entry4 = SubscribeRequest_BlocksEntry.decode(reader, reader.uint32());
|
|
224
|
+
if (entry4.value !== undefined) {
|
|
225
|
+
message.blocks[entry4.key] = entry4.value;
|
|
226
|
+
}
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
case 5: {
|
|
230
|
+
if (tag !== 42) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
const entry5 = SubscribeRequest_BlocksMetaEntry.decode(reader, reader.uint32());
|
|
234
|
+
if (entry5.value !== undefined) {
|
|
235
|
+
message.blocksMeta[entry5.key] = entry5.value;
|
|
236
|
+
}
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 8: {
|
|
240
|
+
if (tag !== 66) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
const entry8 = SubscribeRequest_EntryEntry.decode(reader, reader.uint32());
|
|
244
|
+
if (entry8.value !== undefined) {
|
|
245
|
+
message.entry[entry8.key] = entry8.value;
|
|
246
|
+
}
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
case 6: {
|
|
250
|
+
if (tag !== 48) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
message.commitment = reader.int32();
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
case 7: {
|
|
257
|
+
if (tag !== 58) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
message.accountsDataSlice.push(SubscribeRequestAccountsDataSlice.decode(reader, reader.uint32()));
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
case 9: {
|
|
264
|
+
if (tag !== 74) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.ping = SubscribeRequestPing.decode(reader, reader.uint32());
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
case 11: {
|
|
271
|
+
if (tag !== 88) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
message.fromSlot = reader.uint64();
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
reader.skip(tag & 7);
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
}
|
|
285
|
+
finally {
|
|
286
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
275
287
|
}
|
|
276
|
-
return message;
|
|
277
288
|
},
|
|
278
289
|
fromJSON(object) {
|
|
279
290
|
return {
|
|
280
291
|
accounts: isObject(object.accounts)
|
|
281
292
|
? globalThis.Object.entries(object.accounts).reduce((acc, [key, value]) => {
|
|
282
|
-
acc
|
|
293
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
294
|
+
value: SubscribeRequestFilterAccounts.fromJSON(value),
|
|
295
|
+
enumerable: true,
|
|
296
|
+
configurable: true,
|
|
297
|
+
writable: true,
|
|
298
|
+
});
|
|
283
299
|
return acc;
|
|
284
300
|
}, {})
|
|
285
301
|
: {},
|
|
286
302
|
slots: isObject(object.slots)
|
|
287
303
|
? globalThis.Object.entries(object.slots).reduce((acc, [key, value]) => {
|
|
288
|
-
acc
|
|
304
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
305
|
+
value: SubscribeRequestFilterSlots.fromJSON(value),
|
|
306
|
+
enumerable: true,
|
|
307
|
+
configurable: true,
|
|
308
|
+
writable: true,
|
|
309
|
+
});
|
|
289
310
|
return acc;
|
|
290
311
|
}, {})
|
|
291
312
|
: {},
|
|
292
313
|
transactions: isObject(object.transactions)
|
|
293
314
|
? globalThis.Object.entries(object.transactions).reduce((acc, [key, value]) => {
|
|
294
|
-
acc
|
|
315
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
316
|
+
value: SubscribeRequestFilterTransactions.fromJSON(value),
|
|
317
|
+
enumerable: true,
|
|
318
|
+
configurable: true,
|
|
319
|
+
writable: true,
|
|
320
|
+
});
|
|
295
321
|
return acc;
|
|
296
322
|
}, {})
|
|
297
323
|
: {},
|
|
298
324
|
transactionsStatus: isObject(object.transactionsStatus)
|
|
299
325
|
? globalThis.Object.entries(object.transactionsStatus).reduce((acc, [key, value]) => {
|
|
300
|
-
acc
|
|
326
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
327
|
+
value: SubscribeRequestFilterTransactions.fromJSON(value),
|
|
328
|
+
enumerable: true,
|
|
329
|
+
configurable: true,
|
|
330
|
+
writable: true,
|
|
331
|
+
});
|
|
301
332
|
return acc;
|
|
302
333
|
}, {})
|
|
303
334
|
: isObject(object.transactions_status)
|
|
304
335
|
? globalThis.Object.entries(object.transactions_status).reduce((acc, [key, value]) => {
|
|
305
|
-
acc
|
|
336
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
337
|
+
value: SubscribeRequestFilterTransactions.fromJSON(value),
|
|
338
|
+
enumerable: true,
|
|
339
|
+
configurable: true,
|
|
340
|
+
writable: true,
|
|
341
|
+
});
|
|
306
342
|
return acc;
|
|
307
343
|
}, {})
|
|
308
344
|
: {},
|
|
309
345
|
blocks: isObject(object.blocks)
|
|
310
346
|
? globalThis.Object.entries(object.blocks).reduce((acc, [key, value]) => {
|
|
311
|
-
acc
|
|
347
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
348
|
+
value: SubscribeRequestFilterBlocks.fromJSON(value),
|
|
349
|
+
enumerable: true,
|
|
350
|
+
configurable: true,
|
|
351
|
+
writable: true,
|
|
352
|
+
});
|
|
312
353
|
return acc;
|
|
313
354
|
}, {})
|
|
314
355
|
: {},
|
|
315
356
|
blocksMeta: isObject(object.blocksMeta)
|
|
316
357
|
? globalThis.Object.entries(object.blocksMeta).reduce((acc, [key, value]) => {
|
|
317
|
-
acc
|
|
358
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
359
|
+
value: SubscribeRequestFilterBlocksMeta.fromJSON(value),
|
|
360
|
+
enumerable: true,
|
|
361
|
+
configurable: true,
|
|
362
|
+
writable: true,
|
|
363
|
+
});
|
|
318
364
|
return acc;
|
|
319
365
|
}, {})
|
|
320
366
|
: isObject(object.blocks_meta)
|
|
321
367
|
? globalThis.Object.entries(object.blocks_meta).reduce((acc, [key, value]) => {
|
|
322
|
-
acc
|
|
368
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
369
|
+
value: SubscribeRequestFilterBlocksMeta.fromJSON(value),
|
|
370
|
+
enumerable: true,
|
|
371
|
+
configurable: true,
|
|
372
|
+
writable: true,
|
|
373
|
+
});
|
|
323
374
|
return acc;
|
|
324
375
|
}, {})
|
|
325
376
|
: {},
|
|
326
377
|
entry: isObject(object.entry)
|
|
327
378
|
? globalThis.Object.entries(object.entry).reduce((acc, [key, value]) => {
|
|
328
|
-
acc
|
|
379
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
380
|
+
value: SubscribeRequestFilterEntry.fromJSON(value),
|
|
381
|
+
enumerable: true,
|
|
382
|
+
configurable: true,
|
|
383
|
+
writable: true,
|
|
384
|
+
});
|
|
329
385
|
return acc;
|
|
330
386
|
}, {})
|
|
331
387
|
: {},
|
|
@@ -481,7 +537,9 @@ export const SubscribeRequest = {
|
|
|
481
537
|
message.ping = (object.ping !== undefined && object.ping !== null)
|
|
482
538
|
? SubscribeRequestPing.fromPartial(object.ping)
|
|
483
539
|
: undefined;
|
|
484
|
-
message.fromSlot = object.fromSlot
|
|
540
|
+
message.fromSlot = (object.fromSlot !== undefined && object.fromSlot !== null)
|
|
541
|
+
? BigInt(object.fromSlot)
|
|
542
|
+
: undefined;
|
|
485
543
|
return message;
|
|
486
544
|
},
|
|
487
545
|
};
|
|
@@ -500,32 +558,42 @@ export const SubscribeRequest_AccountsEntry = {
|
|
|
500
558
|
},
|
|
501
559
|
decode(input, length) {
|
|
502
560
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
503
|
-
const
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
561
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
562
|
+
if (previousRecursionDepth >= 100) {
|
|
563
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
564
|
+
}
|
|
565
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
566
|
+
try {
|
|
567
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
568
|
+
const message = createBaseSubscribeRequest_AccountsEntry();
|
|
569
|
+
while (reader.pos < end) {
|
|
570
|
+
const tag = reader.uint32();
|
|
571
|
+
switch (tag >>> 3) {
|
|
572
|
+
case 1: {
|
|
573
|
+
if (tag !== 10) {
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
message.key = reader.string();
|
|
577
|
+
continue;
|
|
578
|
+
}
|
|
579
|
+
case 2: {
|
|
580
|
+
if (tag !== 18) {
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
message.value = SubscribeRequestFilterAccounts.decode(reader, reader.uint32());
|
|
584
|
+
continue;
|
|
518
585
|
}
|
|
519
|
-
message.value = SubscribeRequestFilterAccounts.decode(reader, reader.uint32());
|
|
520
|
-
continue;
|
|
521
586
|
}
|
|
587
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
reader.skip(tag & 7);
|
|
522
591
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
reader.
|
|
592
|
+
return message;
|
|
593
|
+
}
|
|
594
|
+
finally {
|
|
595
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
527
596
|
}
|
|
528
|
-
return message;
|
|
529
597
|
},
|
|
530
598
|
fromJSON(object) {
|
|
531
599
|
return {
|
|
@@ -570,32 +638,42 @@ export const SubscribeRequest_SlotsEntry = {
|
|
|
570
638
|
},
|
|
571
639
|
decode(input, length) {
|
|
572
640
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
641
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
642
|
+
if (previousRecursionDepth >= 100) {
|
|
643
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
644
|
+
}
|
|
645
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
646
|
+
try {
|
|
647
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
648
|
+
const message = createBaseSubscribeRequest_SlotsEntry();
|
|
649
|
+
while (reader.pos < end) {
|
|
650
|
+
const tag = reader.uint32();
|
|
651
|
+
switch (tag >>> 3) {
|
|
652
|
+
case 1: {
|
|
653
|
+
if (tag !== 10) {
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
message.key = reader.string();
|
|
657
|
+
continue;
|
|
658
|
+
}
|
|
659
|
+
case 2: {
|
|
660
|
+
if (tag !== 18) {
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
message.value = SubscribeRequestFilterSlots.decode(reader, reader.uint32());
|
|
664
|
+
continue;
|
|
588
665
|
}
|
|
589
|
-
message.value = SubscribeRequestFilterSlots.decode(reader, reader.uint32());
|
|
590
|
-
continue;
|
|
591
666
|
}
|
|
667
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
670
|
+
reader.skip(tag & 7);
|
|
592
671
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
reader.
|
|
672
|
+
return message;
|
|
673
|
+
}
|
|
674
|
+
finally {
|
|
675
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
597
676
|
}
|
|
598
|
-
return message;
|
|
599
677
|
},
|
|
600
678
|
fromJSON(object) {
|
|
601
679
|
return {
|
|
@@ -640,32 +718,42 @@ export const SubscribeRequest_TransactionsEntry = {
|
|
|
640
718
|
},
|
|
641
719
|
decode(input, length) {
|
|
642
720
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
643
|
-
const
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
721
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
722
|
+
if (previousRecursionDepth >= 100) {
|
|
723
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
724
|
+
}
|
|
725
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
726
|
+
try {
|
|
727
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
728
|
+
const message = createBaseSubscribeRequest_TransactionsEntry();
|
|
729
|
+
while (reader.pos < end) {
|
|
730
|
+
const tag = reader.uint32();
|
|
731
|
+
switch (tag >>> 3) {
|
|
732
|
+
case 1: {
|
|
733
|
+
if (tag !== 10) {
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
736
|
+
message.key = reader.string();
|
|
737
|
+
continue;
|
|
738
|
+
}
|
|
739
|
+
case 2: {
|
|
740
|
+
if (tag !== 18) {
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
message.value = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
|
|
744
|
+
continue;
|
|
658
745
|
}
|
|
659
|
-
message.value = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
|
|
660
|
-
continue;
|
|
661
746
|
}
|
|
747
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
748
|
+
break;
|
|
749
|
+
}
|
|
750
|
+
reader.skip(tag & 7);
|
|
662
751
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
reader.
|
|
752
|
+
return message;
|
|
753
|
+
}
|
|
754
|
+
finally {
|
|
755
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
667
756
|
}
|
|
668
|
-
return message;
|
|
669
757
|
},
|
|
670
758
|
fromJSON(object) {
|
|
671
759
|
return {
|
|
@@ -710,32 +798,42 @@ export const SubscribeRequest_TransactionsStatusEntry = {
|
|
|
710
798
|
},
|
|
711
799
|
decode(input, length) {
|
|
712
800
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
801
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
802
|
+
if (previousRecursionDepth >= 100) {
|
|
803
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
804
|
+
}
|
|
805
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
806
|
+
try {
|
|
807
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
808
|
+
const message = createBaseSubscribeRequest_TransactionsStatusEntry();
|
|
809
|
+
while (reader.pos < end) {
|
|
810
|
+
const tag = reader.uint32();
|
|
811
|
+
switch (tag >>> 3) {
|
|
812
|
+
case 1: {
|
|
813
|
+
if (tag !== 10) {
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
816
|
+
message.key = reader.string();
|
|
817
|
+
continue;
|
|
818
|
+
}
|
|
819
|
+
case 2: {
|
|
820
|
+
if (tag !== 18) {
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
823
|
+
message.value = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
|
|
824
|
+
continue;
|
|
728
825
|
}
|
|
729
|
-
message.value = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
|
|
730
|
-
continue;
|
|
731
826
|
}
|
|
827
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
reader.skip(tag & 7);
|
|
732
831
|
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
reader.
|
|
832
|
+
return message;
|
|
833
|
+
}
|
|
834
|
+
finally {
|
|
835
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
737
836
|
}
|
|
738
|
-
return message;
|
|
739
837
|
},
|
|
740
838
|
fromJSON(object) {
|
|
741
839
|
return {
|
|
@@ -780,32 +878,42 @@ export const SubscribeRequest_BlocksEntry = {
|
|
|
780
878
|
},
|
|
781
879
|
decode(input, length) {
|
|
782
880
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
783
|
-
const
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
881
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
882
|
+
if (previousRecursionDepth >= 100) {
|
|
883
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
884
|
+
}
|
|
885
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
886
|
+
try {
|
|
887
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
888
|
+
const message = createBaseSubscribeRequest_BlocksEntry();
|
|
889
|
+
while (reader.pos < end) {
|
|
890
|
+
const tag = reader.uint32();
|
|
891
|
+
switch (tag >>> 3) {
|
|
892
|
+
case 1: {
|
|
893
|
+
if (tag !== 10) {
|
|
894
|
+
break;
|
|
895
|
+
}
|
|
896
|
+
message.key = reader.string();
|
|
897
|
+
continue;
|
|
898
|
+
}
|
|
899
|
+
case 2: {
|
|
900
|
+
if (tag !== 18) {
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
message.value = SubscribeRequestFilterBlocks.decode(reader, reader.uint32());
|
|
904
|
+
continue;
|
|
798
905
|
}
|
|
799
|
-
message.value = SubscribeRequestFilterBlocks.decode(reader, reader.uint32());
|
|
800
|
-
continue;
|
|
801
906
|
}
|
|
907
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
908
|
+
break;
|
|
909
|
+
}
|
|
910
|
+
reader.skip(tag & 7);
|
|
802
911
|
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
reader.
|
|
912
|
+
return message;
|
|
913
|
+
}
|
|
914
|
+
finally {
|
|
915
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
807
916
|
}
|
|
808
|
-
return message;
|
|
809
917
|
},
|
|
810
918
|
fromJSON(object) {
|
|
811
919
|
return {
|
|
@@ -850,32 +958,42 @@ export const SubscribeRequest_BlocksMetaEntry = {
|
|
|
850
958
|
},
|
|
851
959
|
decode(input, length) {
|
|
852
960
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
961
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
962
|
+
if (previousRecursionDepth >= 100) {
|
|
963
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
964
|
+
}
|
|
965
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
966
|
+
try {
|
|
967
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
968
|
+
const message = createBaseSubscribeRequest_BlocksMetaEntry();
|
|
969
|
+
while (reader.pos < end) {
|
|
970
|
+
const tag = reader.uint32();
|
|
971
|
+
switch (tag >>> 3) {
|
|
972
|
+
case 1: {
|
|
973
|
+
if (tag !== 10) {
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
message.key = reader.string();
|
|
977
|
+
continue;
|
|
978
|
+
}
|
|
979
|
+
case 2: {
|
|
980
|
+
if (tag !== 18) {
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
message.value = SubscribeRequestFilterBlocksMeta.decode(reader, reader.uint32());
|
|
984
|
+
continue;
|
|
868
985
|
}
|
|
869
|
-
message.value = SubscribeRequestFilterBlocksMeta.decode(reader, reader.uint32());
|
|
870
|
-
continue;
|
|
871
986
|
}
|
|
987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
reader.skip(tag & 7);
|
|
872
991
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
reader.
|
|
992
|
+
return message;
|
|
993
|
+
}
|
|
994
|
+
finally {
|
|
995
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
877
996
|
}
|
|
878
|
-
return message;
|
|
879
997
|
},
|
|
880
998
|
fromJSON(object) {
|
|
881
999
|
return {
|
|
@@ -920,32 +1038,42 @@ export const SubscribeRequest_EntryEntry = {
|
|
|
920
1038
|
},
|
|
921
1039
|
decode(input, length) {
|
|
922
1040
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1041
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1042
|
+
if (previousRecursionDepth >= 100) {
|
|
1043
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1044
|
+
}
|
|
1045
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1046
|
+
try {
|
|
1047
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1048
|
+
const message = createBaseSubscribeRequest_EntryEntry();
|
|
1049
|
+
while (reader.pos < end) {
|
|
1050
|
+
const tag = reader.uint32();
|
|
1051
|
+
switch (tag >>> 3) {
|
|
1052
|
+
case 1: {
|
|
1053
|
+
if (tag !== 10) {
|
|
1054
|
+
break;
|
|
1055
|
+
}
|
|
1056
|
+
message.key = reader.string();
|
|
1057
|
+
continue;
|
|
1058
|
+
}
|
|
1059
|
+
case 2: {
|
|
1060
|
+
if (tag !== 18) {
|
|
1061
|
+
break;
|
|
1062
|
+
}
|
|
1063
|
+
message.value = SubscribeRequestFilterEntry.decode(reader, reader.uint32());
|
|
1064
|
+
continue;
|
|
938
1065
|
}
|
|
939
|
-
message.value = SubscribeRequestFilterEntry.decode(reader, reader.uint32());
|
|
940
|
-
continue;
|
|
941
1066
|
}
|
|
1067
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1068
|
+
break;
|
|
1069
|
+
}
|
|
1070
|
+
reader.skip(tag & 7);
|
|
942
1071
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
reader.
|
|
1072
|
+
return message;
|
|
1073
|
+
}
|
|
1074
|
+
finally {
|
|
1075
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
947
1076
|
}
|
|
948
|
-
return message;
|
|
949
1077
|
},
|
|
950
1078
|
fromJSON(object) {
|
|
951
1079
|
return {
|
|
@@ -996,46 +1124,56 @@ export const SubscribeRequestFilterAccounts = {
|
|
|
996
1124
|
},
|
|
997
1125
|
decode(input, length) {
|
|
998
1126
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
999
|
-
const
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1127
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1128
|
+
if (previousRecursionDepth >= 100) {
|
|
1129
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1130
|
+
}
|
|
1131
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1132
|
+
try {
|
|
1133
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1134
|
+
const message = createBaseSubscribeRequestFilterAccounts();
|
|
1135
|
+
while (reader.pos < end) {
|
|
1136
|
+
const tag = reader.uint32();
|
|
1137
|
+
switch (tag >>> 3) {
|
|
1138
|
+
case 2: {
|
|
1139
|
+
if (tag !== 18) {
|
|
1140
|
+
break;
|
|
1141
|
+
}
|
|
1142
|
+
message.account.push(reader.string());
|
|
1143
|
+
continue;
|
|
1144
|
+
}
|
|
1145
|
+
case 3: {
|
|
1146
|
+
if (tag !== 26) {
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
message.owner.push(reader.string());
|
|
1150
|
+
continue;
|
|
1151
|
+
}
|
|
1152
|
+
case 4: {
|
|
1153
|
+
if (tag !== 34) {
|
|
1154
|
+
break;
|
|
1155
|
+
}
|
|
1156
|
+
message.filters.push(SubscribeRequestFilterAccountsFilter.decode(reader, reader.uint32()));
|
|
1157
|
+
continue;
|
|
1158
|
+
}
|
|
1159
|
+
case 5: {
|
|
1160
|
+
if (tag !== 40) {
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
message.nonemptyTxnSignature = reader.bool();
|
|
1164
|
+
continue;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
reader.skip(tag & 7);
|
|
1171
|
+
}
|
|
1172
|
+
return message;
|
|
1173
|
+
}
|
|
1174
|
+
finally {
|
|
1175
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1037
1176
|
}
|
|
1038
|
-
return message;
|
|
1039
1177
|
},
|
|
1040
1178
|
fromJSON(object) {
|
|
1041
1179
|
return {
|
|
@@ -1103,46 +1241,56 @@ export const SubscribeRequestFilterAccountsFilter = {
|
|
|
1103
1241
|
},
|
|
1104
1242
|
decode(input, length) {
|
|
1105
1243
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1106
|
-
const
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1244
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1245
|
+
if (previousRecursionDepth >= 100) {
|
|
1246
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1247
|
+
}
|
|
1248
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1249
|
+
try {
|
|
1250
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1251
|
+
const message = createBaseSubscribeRequestFilterAccountsFilter();
|
|
1252
|
+
while (reader.pos < end) {
|
|
1253
|
+
const tag = reader.uint32();
|
|
1254
|
+
switch (tag >>> 3) {
|
|
1255
|
+
case 1: {
|
|
1256
|
+
if (tag !== 10) {
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1259
|
+
message.memcmp = SubscribeRequestFilterAccountsFilterMemcmp.decode(reader, reader.uint32());
|
|
1260
|
+
continue;
|
|
1261
|
+
}
|
|
1262
|
+
case 2: {
|
|
1263
|
+
if (tag !== 16) {
|
|
1264
|
+
break;
|
|
1265
|
+
}
|
|
1266
|
+
message.datasize = reader.uint64();
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
case 3: {
|
|
1270
|
+
if (tag !== 24) {
|
|
1271
|
+
break;
|
|
1272
|
+
}
|
|
1273
|
+
message.tokenAccountState = reader.bool();
|
|
1274
|
+
continue;
|
|
1275
|
+
}
|
|
1276
|
+
case 4: {
|
|
1277
|
+
if (tag !== 34) {
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
1280
|
+
message.lamports = SubscribeRequestFilterAccountsFilterLamports.decode(reader, reader.uint32());
|
|
1281
|
+
continue;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1285
|
+
break;
|
|
1286
|
+
}
|
|
1287
|
+
reader.skip(tag & 7);
|
|
1288
|
+
}
|
|
1289
|
+
return message;
|
|
1290
|
+
}
|
|
1291
|
+
finally {
|
|
1292
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1144
1293
|
}
|
|
1145
|
-
return message;
|
|
1146
1294
|
},
|
|
1147
1295
|
fromJSON(object) {
|
|
1148
1296
|
return {
|
|
@@ -1182,7 +1330,9 @@ export const SubscribeRequestFilterAccountsFilter = {
|
|
|
1182
1330
|
message.memcmp = (object.memcmp !== undefined && object.memcmp !== null)
|
|
1183
1331
|
? SubscribeRequestFilterAccountsFilterMemcmp.fromPartial(object.memcmp)
|
|
1184
1332
|
: undefined;
|
|
1185
|
-
message.datasize = object.datasize
|
|
1333
|
+
message.datasize = (object.datasize !== undefined && object.datasize !== null)
|
|
1334
|
+
? BigInt(object.datasize)
|
|
1335
|
+
: undefined;
|
|
1186
1336
|
message.tokenAccountState = object.tokenAccountState ?? undefined;
|
|
1187
1337
|
message.lamports = (object.lamports !== undefined && object.lamports !== null)
|
|
1188
1338
|
? SubscribeRequestFilterAccountsFilterLamports.fromPartial(object.lamports)
|
|
@@ -1214,46 +1364,56 @@ export const SubscribeRequestFilterAccountsFilterMemcmp = {
|
|
|
1214
1364
|
},
|
|
1215
1365
|
decode(input, length) {
|
|
1216
1366
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1367
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1368
|
+
if (previousRecursionDepth >= 100) {
|
|
1369
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1370
|
+
}
|
|
1371
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1372
|
+
try {
|
|
1373
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1374
|
+
const message = createBaseSubscribeRequestFilterAccountsFilterMemcmp();
|
|
1375
|
+
while (reader.pos < end) {
|
|
1376
|
+
const tag = reader.uint32();
|
|
1377
|
+
switch (tag >>> 3) {
|
|
1378
|
+
case 1: {
|
|
1379
|
+
if (tag !== 8) {
|
|
1380
|
+
break;
|
|
1381
|
+
}
|
|
1382
|
+
message.offset = reader.uint64();
|
|
1383
|
+
continue;
|
|
1384
|
+
}
|
|
1385
|
+
case 2: {
|
|
1386
|
+
if (tag !== 18) {
|
|
1387
|
+
break;
|
|
1388
|
+
}
|
|
1389
|
+
message.bytes = reader.bytes();
|
|
1390
|
+
continue;
|
|
1391
|
+
}
|
|
1392
|
+
case 3: {
|
|
1393
|
+
if (tag !== 26) {
|
|
1394
|
+
break;
|
|
1395
|
+
}
|
|
1396
|
+
message.base58 = reader.string();
|
|
1397
|
+
continue;
|
|
1398
|
+
}
|
|
1399
|
+
case 4: {
|
|
1400
|
+
if (tag !== 34) {
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
message.base64 = reader.string();
|
|
1404
|
+
continue;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1408
|
+
break;
|
|
1409
|
+
}
|
|
1410
|
+
reader.skip(tag & 7);
|
|
1411
|
+
}
|
|
1412
|
+
return message;
|
|
1413
|
+
}
|
|
1414
|
+
finally {
|
|
1415
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1255
1416
|
}
|
|
1256
|
-
return message;
|
|
1257
1417
|
},
|
|
1258
1418
|
fromJSON(object) {
|
|
1259
1419
|
return {
|
|
@@ -1284,7 +1444,7 @@ export const SubscribeRequestFilterAccountsFilterMemcmp = {
|
|
|
1284
1444
|
},
|
|
1285
1445
|
fromPartial(object) {
|
|
1286
1446
|
const message = createBaseSubscribeRequestFilterAccountsFilterMemcmp();
|
|
1287
|
-
message.offset = object.offset
|
|
1447
|
+
message.offset = (object.offset !== undefined && object.offset !== null) ? BigInt(object.offset) : 0n;
|
|
1288
1448
|
message.bytes = object.bytes ?? undefined;
|
|
1289
1449
|
message.base58 = object.base58 ?? undefined;
|
|
1290
1450
|
message.base64 = object.base64 ?? undefined;
|
|
@@ -1324,46 +1484,56 @@ export const SubscribeRequestFilterAccountsFilterLamports = {
|
|
|
1324
1484
|
},
|
|
1325
1485
|
decode(input, length) {
|
|
1326
1486
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1487
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1488
|
+
if (previousRecursionDepth >= 100) {
|
|
1489
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1490
|
+
}
|
|
1491
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1492
|
+
try {
|
|
1493
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1494
|
+
const message = createBaseSubscribeRequestFilterAccountsFilterLamports();
|
|
1495
|
+
while (reader.pos < end) {
|
|
1496
|
+
const tag = reader.uint32();
|
|
1497
|
+
switch (tag >>> 3) {
|
|
1498
|
+
case 1: {
|
|
1499
|
+
if (tag !== 8) {
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
message.eq = reader.uint64();
|
|
1503
|
+
continue;
|
|
1504
|
+
}
|
|
1505
|
+
case 2: {
|
|
1506
|
+
if (tag !== 16) {
|
|
1507
|
+
break;
|
|
1508
|
+
}
|
|
1509
|
+
message.ne = reader.uint64();
|
|
1510
|
+
continue;
|
|
1511
|
+
}
|
|
1512
|
+
case 3: {
|
|
1513
|
+
if (tag !== 24) {
|
|
1514
|
+
break;
|
|
1515
|
+
}
|
|
1516
|
+
message.lt = reader.uint64();
|
|
1517
|
+
continue;
|
|
1518
|
+
}
|
|
1519
|
+
case 4: {
|
|
1520
|
+
if (tag !== 32) {
|
|
1521
|
+
break;
|
|
1522
|
+
}
|
|
1523
|
+
message.gt = reader.uint64();
|
|
1524
|
+
continue;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1528
|
+
break;
|
|
1529
|
+
}
|
|
1530
|
+
reader.skip(tag & 7);
|
|
1531
|
+
}
|
|
1532
|
+
return message;
|
|
1533
|
+
}
|
|
1534
|
+
finally {
|
|
1535
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1365
1536
|
}
|
|
1366
|
-
return message;
|
|
1367
1537
|
},
|
|
1368
1538
|
fromJSON(object) {
|
|
1369
1539
|
return {
|
|
@@ -1394,10 +1564,10 @@ export const SubscribeRequestFilterAccountsFilterLamports = {
|
|
|
1394
1564
|
},
|
|
1395
1565
|
fromPartial(object) {
|
|
1396
1566
|
const message = createBaseSubscribeRequestFilterAccountsFilterLamports();
|
|
1397
|
-
message.eq = object.eq
|
|
1398
|
-
message.ne = object.ne
|
|
1399
|
-
message.lt = object.lt
|
|
1400
|
-
message.gt = object.gt
|
|
1567
|
+
message.eq = (object.eq !== undefined && object.eq !== null) ? BigInt(object.eq) : undefined;
|
|
1568
|
+
message.ne = (object.ne !== undefined && object.ne !== null) ? BigInt(object.ne) : undefined;
|
|
1569
|
+
message.lt = (object.lt !== undefined && object.lt !== null) ? BigInt(object.lt) : undefined;
|
|
1570
|
+
message.gt = (object.gt !== undefined && object.gt !== null) ? BigInt(object.gt) : undefined;
|
|
1401
1571
|
return message;
|
|
1402
1572
|
},
|
|
1403
1573
|
};
|
|
@@ -1416,32 +1586,42 @@ export const SubscribeRequestFilterSlots = {
|
|
|
1416
1586
|
},
|
|
1417
1587
|
decode(input, length) {
|
|
1418
1588
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1589
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1590
|
+
if (previousRecursionDepth >= 100) {
|
|
1591
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1592
|
+
}
|
|
1593
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1594
|
+
try {
|
|
1595
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1596
|
+
const message = createBaseSubscribeRequestFilterSlots();
|
|
1597
|
+
while (reader.pos < end) {
|
|
1598
|
+
const tag = reader.uint32();
|
|
1599
|
+
switch (tag >>> 3) {
|
|
1600
|
+
case 1: {
|
|
1601
|
+
if (tag !== 8) {
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
message.filterByCommitment = reader.bool();
|
|
1605
|
+
continue;
|
|
1606
|
+
}
|
|
1607
|
+
case 2: {
|
|
1608
|
+
if (tag !== 16) {
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
message.interslotUpdates = reader.bool();
|
|
1612
|
+
continue;
|
|
1434
1613
|
}
|
|
1435
|
-
message.interslotUpdates = reader.bool();
|
|
1436
|
-
continue;
|
|
1437
1614
|
}
|
|
1615
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
reader.skip(tag & 7);
|
|
1438
1619
|
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
reader.
|
|
1620
|
+
return message;
|
|
1621
|
+
}
|
|
1622
|
+
finally {
|
|
1623
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1443
1624
|
}
|
|
1444
|
-
return message;
|
|
1445
1625
|
},
|
|
1446
1626
|
fromJSON(object) {
|
|
1447
1627
|
return {
|
|
@@ -1511,60 +1691,70 @@ export const SubscribeRequestFilterTransactions = {
|
|
|
1511
1691
|
},
|
|
1512
1692
|
decode(input, length) {
|
|
1513
1693
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1694
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1695
|
+
if (previousRecursionDepth >= 100) {
|
|
1696
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1697
|
+
}
|
|
1698
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1699
|
+
try {
|
|
1700
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1701
|
+
const message = createBaseSubscribeRequestFilterTransactions();
|
|
1702
|
+
while (reader.pos < end) {
|
|
1703
|
+
const tag = reader.uint32();
|
|
1704
|
+
switch (tag >>> 3) {
|
|
1705
|
+
case 1: {
|
|
1706
|
+
if (tag !== 8) {
|
|
1707
|
+
break;
|
|
1708
|
+
}
|
|
1709
|
+
message.vote = reader.bool();
|
|
1710
|
+
continue;
|
|
1711
|
+
}
|
|
1712
|
+
case 2: {
|
|
1713
|
+
if (tag !== 16) {
|
|
1714
|
+
break;
|
|
1715
|
+
}
|
|
1716
|
+
message.failed = reader.bool();
|
|
1717
|
+
continue;
|
|
1718
|
+
}
|
|
1719
|
+
case 5: {
|
|
1720
|
+
if (tag !== 42) {
|
|
1721
|
+
break;
|
|
1722
|
+
}
|
|
1723
|
+
message.signature = reader.string();
|
|
1724
|
+
continue;
|
|
1725
|
+
}
|
|
1726
|
+
case 3: {
|
|
1727
|
+
if (tag !== 26) {
|
|
1728
|
+
break;
|
|
1729
|
+
}
|
|
1730
|
+
message.accountInclude.push(reader.string());
|
|
1731
|
+
continue;
|
|
1732
|
+
}
|
|
1733
|
+
case 4: {
|
|
1734
|
+
if (tag !== 34) {
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
message.accountExclude.push(reader.string());
|
|
1738
|
+
continue;
|
|
1739
|
+
}
|
|
1740
|
+
case 6: {
|
|
1741
|
+
if (tag !== 50) {
|
|
1742
|
+
break;
|
|
1743
|
+
}
|
|
1744
|
+
message.accountRequired.push(reader.string());
|
|
1745
|
+
continue;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
reader.skip(tag & 7);
|
|
1752
|
+
}
|
|
1753
|
+
return message;
|
|
1754
|
+
}
|
|
1755
|
+
finally {
|
|
1756
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1566
1757
|
}
|
|
1567
|
-
return message;
|
|
1568
1758
|
},
|
|
1569
1759
|
fromJSON(object) {
|
|
1570
1760
|
return {
|
|
@@ -1645,46 +1835,56 @@ export const SubscribeRequestFilterBlocks = {
|
|
|
1645
1835
|
},
|
|
1646
1836
|
decode(input, length) {
|
|
1647
1837
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1648
|
-
const
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1838
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1839
|
+
if (previousRecursionDepth >= 100) {
|
|
1840
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1841
|
+
}
|
|
1842
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1843
|
+
try {
|
|
1844
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1845
|
+
const message = createBaseSubscribeRequestFilterBlocks();
|
|
1846
|
+
while (reader.pos < end) {
|
|
1847
|
+
const tag = reader.uint32();
|
|
1848
|
+
switch (tag >>> 3) {
|
|
1849
|
+
case 1: {
|
|
1850
|
+
if (tag !== 10) {
|
|
1851
|
+
break;
|
|
1852
|
+
}
|
|
1853
|
+
message.accountInclude.push(reader.string());
|
|
1854
|
+
continue;
|
|
1855
|
+
}
|
|
1856
|
+
case 2: {
|
|
1857
|
+
if (tag !== 16) {
|
|
1858
|
+
break;
|
|
1859
|
+
}
|
|
1860
|
+
message.includeTransactions = reader.bool();
|
|
1861
|
+
continue;
|
|
1862
|
+
}
|
|
1863
|
+
case 3: {
|
|
1864
|
+
if (tag !== 24) {
|
|
1865
|
+
break;
|
|
1866
|
+
}
|
|
1867
|
+
message.includeAccounts = reader.bool();
|
|
1868
|
+
continue;
|
|
1869
|
+
}
|
|
1870
|
+
case 4: {
|
|
1871
|
+
if (tag !== 32) {
|
|
1872
|
+
break;
|
|
1873
|
+
}
|
|
1874
|
+
message.includeEntries = reader.bool();
|
|
1875
|
+
continue;
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1879
|
+
break;
|
|
1880
|
+
}
|
|
1881
|
+
reader.skip(tag & 7);
|
|
1882
|
+
}
|
|
1883
|
+
return message;
|
|
1884
|
+
}
|
|
1885
|
+
finally {
|
|
1886
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1686
1887
|
}
|
|
1687
|
-
return message;
|
|
1688
1888
|
},
|
|
1689
1889
|
fromJSON(object) {
|
|
1690
1890
|
return {
|
|
@@ -1747,18 +1947,28 @@ export const SubscribeRequestFilterBlocksMeta = {
|
|
|
1747
1947
|
},
|
|
1748
1948
|
decode(input, length) {
|
|
1749
1949
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1950
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1951
|
+
if (previousRecursionDepth >= 100) {
|
|
1952
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1953
|
+
}
|
|
1954
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1955
|
+
try {
|
|
1956
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1957
|
+
const message = createBaseSubscribeRequestFilterBlocksMeta();
|
|
1958
|
+
while (reader.pos < end) {
|
|
1959
|
+
const tag = reader.uint32();
|
|
1960
|
+
switch (tag >>> 3) {
|
|
1961
|
+
}
|
|
1962
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1963
|
+
break;
|
|
1964
|
+
}
|
|
1965
|
+
reader.skip(tag & 7);
|
|
1758
1966
|
}
|
|
1759
|
-
|
|
1967
|
+
return message;
|
|
1968
|
+
}
|
|
1969
|
+
finally {
|
|
1970
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1760
1971
|
}
|
|
1761
|
-
return message;
|
|
1762
1972
|
},
|
|
1763
1973
|
fromJSON(_) {
|
|
1764
1974
|
return {};
|
|
@@ -1784,18 +1994,28 @@ export const SubscribeRequestFilterEntry = {
|
|
|
1784
1994
|
},
|
|
1785
1995
|
decode(input, length) {
|
|
1786
1996
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1997
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1998
|
+
if (previousRecursionDepth >= 100) {
|
|
1999
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2000
|
+
}
|
|
2001
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2002
|
+
try {
|
|
2003
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2004
|
+
const message = createBaseSubscribeRequestFilterEntry();
|
|
2005
|
+
while (reader.pos < end) {
|
|
2006
|
+
const tag = reader.uint32();
|
|
2007
|
+
switch (tag >>> 3) {
|
|
2008
|
+
}
|
|
2009
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2010
|
+
break;
|
|
2011
|
+
}
|
|
2012
|
+
reader.skip(tag & 7);
|
|
1795
2013
|
}
|
|
1796
|
-
|
|
2014
|
+
return message;
|
|
2015
|
+
}
|
|
2016
|
+
finally {
|
|
2017
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1797
2018
|
}
|
|
1798
|
-
return message;
|
|
1799
2019
|
},
|
|
1800
2020
|
fromJSON(_) {
|
|
1801
2021
|
return {};
|
|
@@ -1833,46 +2053,56 @@ export const SubscribeRequestFilterDeshredTransactions = {
|
|
|
1833
2053
|
},
|
|
1834
2054
|
decode(input, length) {
|
|
1835
2055
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1836
|
-
const
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
2056
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2057
|
+
if (previousRecursionDepth >= 100) {
|
|
2058
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2059
|
+
}
|
|
2060
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2061
|
+
try {
|
|
2062
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2063
|
+
const message = createBaseSubscribeRequestFilterDeshredTransactions();
|
|
2064
|
+
while (reader.pos < end) {
|
|
2065
|
+
const tag = reader.uint32();
|
|
2066
|
+
switch (tag >>> 3) {
|
|
2067
|
+
case 1: {
|
|
2068
|
+
if (tag !== 8) {
|
|
2069
|
+
break;
|
|
2070
|
+
}
|
|
2071
|
+
message.vote = reader.bool();
|
|
2072
|
+
continue;
|
|
2073
|
+
}
|
|
2074
|
+
case 2: {
|
|
2075
|
+
if (tag !== 18) {
|
|
2076
|
+
break;
|
|
2077
|
+
}
|
|
2078
|
+
message.accountInclude.push(reader.string());
|
|
2079
|
+
continue;
|
|
2080
|
+
}
|
|
2081
|
+
case 3: {
|
|
2082
|
+
if (tag !== 26) {
|
|
2083
|
+
break;
|
|
2084
|
+
}
|
|
2085
|
+
message.accountExclude.push(reader.string());
|
|
2086
|
+
continue;
|
|
2087
|
+
}
|
|
2088
|
+
case 4: {
|
|
2089
|
+
if (tag !== 34) {
|
|
2090
|
+
break;
|
|
2091
|
+
}
|
|
2092
|
+
message.accountRequired.push(reader.string());
|
|
2093
|
+
continue;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
reader.skip(tag & 7);
|
|
2100
|
+
}
|
|
2101
|
+
return message;
|
|
2102
|
+
}
|
|
2103
|
+
finally {
|
|
2104
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1874
2105
|
}
|
|
1875
|
-
return message;
|
|
1876
2106
|
},
|
|
1877
2107
|
fromJSON(object) {
|
|
1878
2108
|
return {
|
|
@@ -1943,32 +2173,42 @@ export const SubscribeRequestAccountsDataSlice = {
|
|
|
1943
2173
|
},
|
|
1944
2174
|
decode(input, length) {
|
|
1945
2175
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
2176
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2177
|
+
if (previousRecursionDepth >= 100) {
|
|
2178
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2179
|
+
}
|
|
2180
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2181
|
+
try {
|
|
2182
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2183
|
+
const message = createBaseSubscribeRequestAccountsDataSlice();
|
|
2184
|
+
while (reader.pos < end) {
|
|
2185
|
+
const tag = reader.uint32();
|
|
2186
|
+
switch (tag >>> 3) {
|
|
2187
|
+
case 1: {
|
|
2188
|
+
if (tag !== 8) {
|
|
2189
|
+
break;
|
|
2190
|
+
}
|
|
2191
|
+
message.offset = reader.uint64();
|
|
2192
|
+
continue;
|
|
2193
|
+
}
|
|
2194
|
+
case 2: {
|
|
2195
|
+
if (tag !== 16) {
|
|
2196
|
+
break;
|
|
2197
|
+
}
|
|
2198
|
+
message.length = reader.uint64();
|
|
2199
|
+
continue;
|
|
1961
2200
|
}
|
|
1962
|
-
message.length = reader.uint64();
|
|
1963
|
-
continue;
|
|
1964
2201
|
}
|
|
2202
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2203
|
+
break;
|
|
2204
|
+
}
|
|
2205
|
+
reader.skip(tag & 7);
|
|
1965
2206
|
}
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
reader.
|
|
2207
|
+
return message;
|
|
2208
|
+
}
|
|
2209
|
+
finally {
|
|
2210
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1970
2211
|
}
|
|
1971
|
-
return message;
|
|
1972
2212
|
},
|
|
1973
2213
|
fromJSON(object) {
|
|
1974
2214
|
return {
|
|
@@ -1991,8 +2231,8 @@ export const SubscribeRequestAccountsDataSlice = {
|
|
|
1991
2231
|
},
|
|
1992
2232
|
fromPartial(object) {
|
|
1993
2233
|
const message = createBaseSubscribeRequestAccountsDataSlice();
|
|
1994
|
-
message.offset = object.offset
|
|
1995
|
-
message.length = object.length
|
|
2234
|
+
message.offset = (object.offset !== undefined && object.offset !== null) ? BigInt(object.offset) : 0n;
|
|
2235
|
+
message.length = (object.length !== undefined && object.length !== null) ? BigInt(object.length) : 0n;
|
|
1996
2236
|
return message;
|
|
1997
2237
|
},
|
|
1998
2238
|
};
|
|
@@ -2008,25 +2248,35 @@ export const SubscribeRequestPing = {
|
|
|
2008
2248
|
},
|
|
2009
2249
|
decode(input, length) {
|
|
2010
2250
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2011
|
-
const
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2251
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2252
|
+
if (previousRecursionDepth >= 100) {
|
|
2253
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2254
|
+
}
|
|
2255
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2256
|
+
try {
|
|
2257
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2258
|
+
const message = createBaseSubscribeRequestPing();
|
|
2259
|
+
while (reader.pos < end) {
|
|
2260
|
+
const tag = reader.uint32();
|
|
2261
|
+
switch (tag >>> 3) {
|
|
2262
|
+
case 1: {
|
|
2263
|
+
if (tag !== 8) {
|
|
2264
|
+
break;
|
|
2265
|
+
}
|
|
2266
|
+
message.id = reader.int32();
|
|
2267
|
+
continue;
|
|
2268
|
+
}
|
|
2022
2269
|
}
|
|
2270
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2271
|
+
break;
|
|
2272
|
+
}
|
|
2273
|
+
reader.skip(tag & 7);
|
|
2023
2274
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
reader.
|
|
2275
|
+
return message;
|
|
2276
|
+
}
|
|
2277
|
+
finally {
|
|
2278
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2028
2279
|
}
|
|
2029
|
-
return message;
|
|
2030
2280
|
},
|
|
2031
2281
|
fromJSON(object) {
|
|
2032
2282
|
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
@@ -2063,46 +2313,66 @@ export const SubscribeDeshredRequest = {
|
|
|
2063
2313
|
},
|
|
2064
2314
|
decode(input, length) {
|
|
2065
2315
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2316
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2317
|
+
if (previousRecursionDepth >= 100) {
|
|
2318
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2319
|
+
}
|
|
2320
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2321
|
+
try {
|
|
2322
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2323
|
+
const message = createBaseSubscribeDeshredRequest();
|
|
2324
|
+
while (reader.pos < end) {
|
|
2325
|
+
const tag = reader.uint32();
|
|
2326
|
+
switch (tag >>> 3) {
|
|
2327
|
+
case 1: {
|
|
2328
|
+
if (tag !== 10) {
|
|
2329
|
+
break;
|
|
2330
|
+
}
|
|
2331
|
+
const entry1 = SubscribeDeshredRequest_DeshredTransactionsEntry.decode(reader, reader.uint32());
|
|
2332
|
+
if (entry1.value !== undefined) {
|
|
2333
|
+
message.deshredTransactions[entry1.key] = entry1.value;
|
|
2334
|
+
}
|
|
2335
|
+
continue;
|
|
2336
|
+
}
|
|
2337
|
+
case 2: {
|
|
2338
|
+
if (tag !== 18) {
|
|
2339
|
+
break;
|
|
2340
|
+
}
|
|
2341
|
+
message.ping = SubscribeRequestPing.decode(reader, reader.uint32());
|
|
2342
|
+
continue;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2346
|
+
break;
|
|
2347
|
+
}
|
|
2348
|
+
reader.skip(tag & 7);
|
|
2349
|
+
}
|
|
2350
|
+
return message;
|
|
2351
|
+
}
|
|
2352
|
+
finally {
|
|
2353
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2093
2354
|
}
|
|
2094
|
-
return message;
|
|
2095
2355
|
},
|
|
2096
2356
|
fromJSON(object) {
|
|
2097
2357
|
return {
|
|
2098
2358
|
deshredTransactions: isObject(object.deshredTransactions)
|
|
2099
2359
|
? globalThis.Object.entries(object.deshredTransactions).reduce((acc, [key, value]) => {
|
|
2100
|
-
acc
|
|
2360
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
2361
|
+
value: SubscribeRequestFilterDeshredTransactions.fromJSON(value),
|
|
2362
|
+
enumerable: true,
|
|
2363
|
+
configurable: true,
|
|
2364
|
+
writable: true,
|
|
2365
|
+
});
|
|
2101
2366
|
return acc;
|
|
2102
2367
|
}, {})
|
|
2103
2368
|
: isObject(object.deshred_transactions)
|
|
2104
2369
|
? globalThis.Object.entries(object.deshred_transactions).reduce((acc, [key, value]) => {
|
|
2105
|
-
acc
|
|
2370
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
2371
|
+
value: SubscribeRequestFilterDeshredTransactions.fromJSON(value),
|
|
2372
|
+
enumerable: true,
|
|
2373
|
+
configurable: true,
|
|
2374
|
+
writable: true,
|
|
2375
|
+
});
|
|
2106
2376
|
return acc;
|
|
2107
2377
|
}, {})
|
|
2108
2378
|
: {},
|
|
@@ -2158,32 +2428,42 @@ export const SubscribeDeshredRequest_DeshredTransactionsEntry = {
|
|
|
2158
2428
|
},
|
|
2159
2429
|
decode(input, length) {
|
|
2160
2430
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2431
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2432
|
+
if (previousRecursionDepth >= 100) {
|
|
2433
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2434
|
+
}
|
|
2435
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2436
|
+
try {
|
|
2437
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2438
|
+
const message = createBaseSubscribeDeshredRequest_DeshredTransactionsEntry();
|
|
2439
|
+
while (reader.pos < end) {
|
|
2440
|
+
const tag = reader.uint32();
|
|
2441
|
+
switch (tag >>> 3) {
|
|
2442
|
+
case 1: {
|
|
2443
|
+
if (tag !== 10) {
|
|
2444
|
+
break;
|
|
2445
|
+
}
|
|
2446
|
+
message.key = reader.string();
|
|
2447
|
+
continue;
|
|
2448
|
+
}
|
|
2449
|
+
case 2: {
|
|
2450
|
+
if (tag !== 18) {
|
|
2451
|
+
break;
|
|
2452
|
+
}
|
|
2453
|
+
message.value = SubscribeRequestFilterDeshredTransactions.decode(reader, reader.uint32());
|
|
2454
|
+
continue;
|
|
2176
2455
|
}
|
|
2177
|
-
message.value = SubscribeRequestFilterDeshredTransactions.decode(reader, reader.uint32());
|
|
2178
|
-
continue;
|
|
2179
2456
|
}
|
|
2457
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2458
|
+
break;
|
|
2459
|
+
}
|
|
2460
|
+
reader.skip(tag & 7);
|
|
2180
2461
|
}
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
reader.
|
|
2462
|
+
return message;
|
|
2463
|
+
}
|
|
2464
|
+
finally {
|
|
2465
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2185
2466
|
}
|
|
2186
|
-
return message;
|
|
2187
2467
|
},
|
|
2188
2468
|
fromJSON(object) {
|
|
2189
2469
|
return {
|
|
@@ -2267,95 +2547,105 @@ export const SubscribeUpdate = {
|
|
|
2267
2547
|
},
|
|
2268
2548
|
decode(input, length) {
|
|
2269
2549
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2550
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2551
|
+
if (previousRecursionDepth >= 100) {
|
|
2552
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2553
|
+
}
|
|
2554
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2555
|
+
try {
|
|
2556
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2557
|
+
const message = createBaseSubscribeUpdate();
|
|
2558
|
+
while (reader.pos < end) {
|
|
2559
|
+
const tag = reader.uint32();
|
|
2560
|
+
switch (tag >>> 3) {
|
|
2561
|
+
case 1: {
|
|
2562
|
+
if (tag !== 10) {
|
|
2563
|
+
break;
|
|
2564
|
+
}
|
|
2565
|
+
message.filters.push(reader.string());
|
|
2566
|
+
continue;
|
|
2567
|
+
}
|
|
2568
|
+
case 2: {
|
|
2569
|
+
if (tag !== 18) {
|
|
2570
|
+
break;
|
|
2571
|
+
}
|
|
2572
|
+
message.account = SubscribeUpdateAccount.decode(reader, reader.uint32());
|
|
2573
|
+
continue;
|
|
2574
|
+
}
|
|
2575
|
+
case 3: {
|
|
2576
|
+
if (tag !== 26) {
|
|
2577
|
+
break;
|
|
2578
|
+
}
|
|
2579
|
+
message.slot = SubscribeUpdateSlot.decode(reader, reader.uint32());
|
|
2580
|
+
continue;
|
|
2581
|
+
}
|
|
2582
|
+
case 4: {
|
|
2583
|
+
if (tag !== 34) {
|
|
2584
|
+
break;
|
|
2585
|
+
}
|
|
2586
|
+
message.transaction = SubscribeUpdateTransaction.decode(reader, reader.uint32());
|
|
2587
|
+
continue;
|
|
2588
|
+
}
|
|
2589
|
+
case 10: {
|
|
2590
|
+
if (tag !== 82) {
|
|
2591
|
+
break;
|
|
2592
|
+
}
|
|
2593
|
+
message.transactionStatus = SubscribeUpdateTransactionStatus.decode(reader, reader.uint32());
|
|
2594
|
+
continue;
|
|
2595
|
+
}
|
|
2596
|
+
case 5: {
|
|
2597
|
+
if (tag !== 42) {
|
|
2598
|
+
break;
|
|
2599
|
+
}
|
|
2600
|
+
message.block = SubscribeUpdateBlock.decode(reader, reader.uint32());
|
|
2601
|
+
continue;
|
|
2602
|
+
}
|
|
2603
|
+
case 6: {
|
|
2604
|
+
if (tag !== 50) {
|
|
2605
|
+
break;
|
|
2606
|
+
}
|
|
2607
|
+
message.ping = SubscribeUpdatePing.decode(reader, reader.uint32());
|
|
2608
|
+
continue;
|
|
2609
|
+
}
|
|
2610
|
+
case 9: {
|
|
2611
|
+
if (tag !== 74) {
|
|
2612
|
+
break;
|
|
2613
|
+
}
|
|
2614
|
+
message.pong = SubscribeUpdatePong.decode(reader, reader.uint32());
|
|
2615
|
+
continue;
|
|
2616
|
+
}
|
|
2617
|
+
case 7: {
|
|
2618
|
+
if (tag !== 58) {
|
|
2619
|
+
break;
|
|
2620
|
+
}
|
|
2621
|
+
message.blockMeta = SubscribeUpdateBlockMeta.decode(reader, reader.uint32());
|
|
2622
|
+
continue;
|
|
2623
|
+
}
|
|
2624
|
+
case 8: {
|
|
2625
|
+
if (tag !== 66) {
|
|
2626
|
+
break;
|
|
2627
|
+
}
|
|
2628
|
+
message.entry = SubscribeUpdateEntry.decode(reader, reader.uint32());
|
|
2629
|
+
continue;
|
|
2630
|
+
}
|
|
2631
|
+
case 11: {
|
|
2632
|
+
if (tag !== 90) {
|
|
2633
|
+
break;
|
|
2634
|
+
}
|
|
2635
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2636
|
+
continue;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2640
|
+
break;
|
|
2641
|
+
}
|
|
2642
|
+
reader.skip(tag & 7);
|
|
2643
|
+
}
|
|
2644
|
+
return message;
|
|
2645
|
+
}
|
|
2646
|
+
finally {
|
|
2647
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2357
2648
|
}
|
|
2358
|
-
return message;
|
|
2359
2649
|
},
|
|
2360
2650
|
fromJSON(object) {
|
|
2361
2651
|
return {
|
|
@@ -2479,39 +2769,49 @@ export const SubscribeUpdateAccount = {
|
|
|
2479
2769
|
},
|
|
2480
2770
|
decode(input, length) {
|
|
2481
2771
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2772
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2773
|
+
if (previousRecursionDepth >= 100) {
|
|
2774
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2775
|
+
}
|
|
2776
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2777
|
+
try {
|
|
2778
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2779
|
+
const message = createBaseSubscribeUpdateAccount();
|
|
2780
|
+
while (reader.pos < end) {
|
|
2781
|
+
const tag = reader.uint32();
|
|
2782
|
+
switch (tag >>> 3) {
|
|
2783
|
+
case 1: {
|
|
2784
|
+
if (tag !== 10) {
|
|
2785
|
+
break;
|
|
2786
|
+
}
|
|
2787
|
+
message.account = SubscribeUpdateAccountInfo.decode(reader, reader.uint32());
|
|
2788
|
+
continue;
|
|
2789
|
+
}
|
|
2790
|
+
case 2: {
|
|
2791
|
+
if (tag !== 16) {
|
|
2792
|
+
break;
|
|
2793
|
+
}
|
|
2794
|
+
message.slot = reader.uint64();
|
|
2795
|
+
continue;
|
|
2796
|
+
}
|
|
2797
|
+
case 3: {
|
|
2798
|
+
if (tag !== 24) {
|
|
2799
|
+
break;
|
|
2800
|
+
}
|
|
2801
|
+
message.isStartup = reader.bool();
|
|
2802
|
+
continue;
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2806
|
+
break;
|
|
2807
|
+
}
|
|
2808
|
+
reader.skip(tag & 7);
|
|
2809
|
+
}
|
|
2810
|
+
return message;
|
|
2811
|
+
}
|
|
2812
|
+
finally {
|
|
2813
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2513
2814
|
}
|
|
2514
|
-
return message;
|
|
2515
2815
|
},
|
|
2516
2816
|
fromJSON(object) {
|
|
2517
2817
|
return {
|
|
@@ -2545,7 +2845,7 @@ export const SubscribeUpdateAccount = {
|
|
|
2545
2845
|
message.account = (object.account !== undefined && object.account !== null)
|
|
2546
2846
|
? SubscribeUpdateAccountInfo.fromPartial(object.account)
|
|
2547
2847
|
: undefined;
|
|
2548
|
-
message.slot = object.slot
|
|
2848
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
2549
2849
|
message.isStartup = object.isStartup ?? false;
|
|
2550
2850
|
return message;
|
|
2551
2851
|
},
|
|
@@ -2601,74 +2901,84 @@ export const SubscribeUpdateAccountInfo = {
|
|
|
2601
2901
|
},
|
|
2602
2902
|
decode(input, length) {
|
|
2603
2903
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2604
|
-
const
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2904
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2905
|
+
if (previousRecursionDepth >= 100) {
|
|
2906
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2907
|
+
}
|
|
2908
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2909
|
+
try {
|
|
2910
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2911
|
+
const message = createBaseSubscribeUpdateAccountInfo();
|
|
2912
|
+
while (reader.pos < end) {
|
|
2913
|
+
const tag = reader.uint32();
|
|
2914
|
+
switch (tag >>> 3) {
|
|
2915
|
+
case 1: {
|
|
2916
|
+
if (tag !== 10) {
|
|
2917
|
+
break;
|
|
2918
|
+
}
|
|
2919
|
+
message.pubkey = reader.bytes();
|
|
2920
|
+
continue;
|
|
2921
|
+
}
|
|
2922
|
+
case 2: {
|
|
2923
|
+
if (tag !== 16) {
|
|
2924
|
+
break;
|
|
2925
|
+
}
|
|
2926
|
+
message.lamports = reader.uint64();
|
|
2927
|
+
continue;
|
|
2928
|
+
}
|
|
2929
|
+
case 3: {
|
|
2930
|
+
if (tag !== 26) {
|
|
2931
|
+
break;
|
|
2932
|
+
}
|
|
2933
|
+
message.owner = reader.bytes();
|
|
2934
|
+
continue;
|
|
2935
|
+
}
|
|
2936
|
+
case 4: {
|
|
2937
|
+
if (tag !== 32) {
|
|
2938
|
+
break;
|
|
2939
|
+
}
|
|
2940
|
+
message.executable = reader.bool();
|
|
2941
|
+
continue;
|
|
2942
|
+
}
|
|
2943
|
+
case 5: {
|
|
2944
|
+
if (tag !== 40) {
|
|
2945
|
+
break;
|
|
2946
|
+
}
|
|
2947
|
+
message.rentEpoch = reader.uint64();
|
|
2948
|
+
continue;
|
|
2949
|
+
}
|
|
2950
|
+
case 6: {
|
|
2951
|
+
if (tag !== 50) {
|
|
2952
|
+
break;
|
|
2953
|
+
}
|
|
2954
|
+
message.data = reader.bytes();
|
|
2955
|
+
continue;
|
|
2956
|
+
}
|
|
2957
|
+
case 7: {
|
|
2958
|
+
if (tag !== 56) {
|
|
2959
|
+
break;
|
|
2960
|
+
}
|
|
2961
|
+
message.writeVersion = reader.uint64();
|
|
2962
|
+
continue;
|
|
2963
|
+
}
|
|
2964
|
+
case 8: {
|
|
2965
|
+
if (tag !== 66) {
|
|
2966
|
+
break;
|
|
2967
|
+
}
|
|
2968
|
+
message.txnSignature = reader.bytes();
|
|
2969
|
+
continue;
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2973
|
+
break;
|
|
2974
|
+
}
|
|
2975
|
+
reader.skip(tag & 7);
|
|
2976
|
+
}
|
|
2977
|
+
return message;
|
|
2978
|
+
}
|
|
2979
|
+
finally {
|
|
2980
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2670
2981
|
}
|
|
2671
|
-
return message;
|
|
2672
2982
|
},
|
|
2673
2983
|
fromJSON(object) {
|
|
2674
2984
|
return {
|
|
@@ -2728,12 +3038,14 @@ export const SubscribeUpdateAccountInfo = {
|
|
|
2728
3038
|
fromPartial(object) {
|
|
2729
3039
|
const message = createBaseSubscribeUpdateAccountInfo();
|
|
2730
3040
|
message.pubkey = object.pubkey ?? new Uint8Array(0);
|
|
2731
|
-
message.lamports = object.lamports
|
|
3041
|
+
message.lamports = (object.lamports !== undefined && object.lamports !== null) ? BigInt(object.lamports) : 0n;
|
|
2732
3042
|
message.owner = object.owner ?? new Uint8Array(0);
|
|
2733
3043
|
message.executable = object.executable ?? false;
|
|
2734
|
-
message.rentEpoch = object.rentEpoch
|
|
3044
|
+
message.rentEpoch = (object.rentEpoch !== undefined && object.rentEpoch !== null) ? BigInt(object.rentEpoch) : 0n;
|
|
2735
3045
|
message.data = object.data ?? new Uint8Array(0);
|
|
2736
|
-
message.writeVersion = object.writeVersion
|
|
3046
|
+
message.writeVersion = (object.writeVersion !== undefined && object.writeVersion !== null)
|
|
3047
|
+
? BigInt(object.writeVersion)
|
|
3048
|
+
: 0n;
|
|
2737
3049
|
message.txnSignature = object.txnSignature ?? undefined;
|
|
2738
3050
|
return message;
|
|
2739
3051
|
},
|
|
@@ -2765,46 +3077,56 @@ export const SubscribeUpdateSlot = {
|
|
|
2765
3077
|
},
|
|
2766
3078
|
decode(input, length) {
|
|
2767
3079
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2768
|
-
const
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
3080
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3081
|
+
if (previousRecursionDepth >= 100) {
|
|
3082
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3083
|
+
}
|
|
3084
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3085
|
+
try {
|
|
3086
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3087
|
+
const message = createBaseSubscribeUpdateSlot();
|
|
3088
|
+
while (reader.pos < end) {
|
|
3089
|
+
const tag = reader.uint32();
|
|
3090
|
+
switch (tag >>> 3) {
|
|
3091
|
+
case 1: {
|
|
3092
|
+
if (tag !== 8) {
|
|
3093
|
+
break;
|
|
3094
|
+
}
|
|
3095
|
+
message.slot = reader.uint64();
|
|
3096
|
+
continue;
|
|
3097
|
+
}
|
|
3098
|
+
case 2: {
|
|
3099
|
+
if (tag !== 16) {
|
|
3100
|
+
break;
|
|
3101
|
+
}
|
|
3102
|
+
message.parent = reader.uint64();
|
|
3103
|
+
continue;
|
|
3104
|
+
}
|
|
3105
|
+
case 3: {
|
|
3106
|
+
if (tag !== 24) {
|
|
3107
|
+
break;
|
|
3108
|
+
}
|
|
3109
|
+
message.status = reader.int32();
|
|
3110
|
+
continue;
|
|
3111
|
+
}
|
|
3112
|
+
case 4: {
|
|
3113
|
+
if (tag !== 34) {
|
|
3114
|
+
break;
|
|
3115
|
+
}
|
|
3116
|
+
message.deadError = reader.string();
|
|
3117
|
+
continue;
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3121
|
+
break;
|
|
3122
|
+
}
|
|
3123
|
+
reader.skip(tag & 7);
|
|
3124
|
+
}
|
|
3125
|
+
return message;
|
|
3126
|
+
}
|
|
3127
|
+
finally {
|
|
3128
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2806
3129
|
}
|
|
2807
|
-
return message;
|
|
2808
3130
|
},
|
|
2809
3131
|
fromJSON(object) {
|
|
2810
3132
|
return {
|
|
@@ -2839,8 +3161,8 @@ export const SubscribeUpdateSlot = {
|
|
|
2839
3161
|
},
|
|
2840
3162
|
fromPartial(object) {
|
|
2841
3163
|
const message = createBaseSubscribeUpdateSlot();
|
|
2842
|
-
message.slot = object.slot
|
|
2843
|
-
message.parent = object.parent
|
|
3164
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
3165
|
+
message.parent = (object.parent !== undefined && object.parent !== null) ? BigInt(object.parent) : undefined;
|
|
2844
3166
|
message.status = object.status ?? 0;
|
|
2845
3167
|
message.deadError = object.deadError ?? undefined;
|
|
2846
3168
|
return message;
|
|
@@ -2864,32 +3186,42 @@ export const SubscribeUpdateTransaction = {
|
|
|
2864
3186
|
},
|
|
2865
3187
|
decode(input, length) {
|
|
2866
3188
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2867
|
-
const
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
3189
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3190
|
+
if (previousRecursionDepth >= 100) {
|
|
3191
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3192
|
+
}
|
|
3193
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3194
|
+
try {
|
|
3195
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3196
|
+
const message = createBaseSubscribeUpdateTransaction();
|
|
3197
|
+
while (reader.pos < end) {
|
|
3198
|
+
const tag = reader.uint32();
|
|
3199
|
+
switch (tag >>> 3) {
|
|
3200
|
+
case 1: {
|
|
3201
|
+
if (tag !== 10) {
|
|
3202
|
+
break;
|
|
3203
|
+
}
|
|
3204
|
+
message.transaction = SubscribeUpdateTransactionInfo.decode(reader, reader.uint32());
|
|
3205
|
+
continue;
|
|
3206
|
+
}
|
|
3207
|
+
case 2: {
|
|
3208
|
+
if (tag !== 16) {
|
|
3209
|
+
break;
|
|
3210
|
+
}
|
|
3211
|
+
message.slot = reader.uint64();
|
|
3212
|
+
continue;
|
|
2882
3213
|
}
|
|
2883
|
-
message.slot = reader.uint64();
|
|
2884
|
-
continue;
|
|
2885
3214
|
}
|
|
3215
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3216
|
+
break;
|
|
3217
|
+
}
|
|
3218
|
+
reader.skip(tag & 7);
|
|
2886
3219
|
}
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
reader.
|
|
3220
|
+
return message;
|
|
3221
|
+
}
|
|
3222
|
+
finally {
|
|
3223
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2891
3224
|
}
|
|
2892
|
-
return message;
|
|
2893
3225
|
},
|
|
2894
3226
|
fromJSON(object) {
|
|
2895
3227
|
return {
|
|
@@ -2915,7 +3247,7 @@ export const SubscribeUpdateTransaction = {
|
|
|
2915
3247
|
message.transaction = (object.transaction !== undefined && object.transaction !== null)
|
|
2916
3248
|
? SubscribeUpdateTransactionInfo.fromPartial(object.transaction)
|
|
2917
3249
|
: undefined;
|
|
2918
|
-
message.slot = object.slot
|
|
3250
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
2919
3251
|
return message;
|
|
2920
3252
|
},
|
|
2921
3253
|
};
|
|
@@ -2946,53 +3278,63 @@ export const SubscribeUpdateTransactionInfo = {
|
|
|
2946
3278
|
},
|
|
2947
3279
|
decode(input, length) {
|
|
2948
3280
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2949
|
-
const
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
3281
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3282
|
+
if (previousRecursionDepth >= 100) {
|
|
3283
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3284
|
+
}
|
|
3285
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3286
|
+
try {
|
|
3287
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3288
|
+
const message = createBaseSubscribeUpdateTransactionInfo();
|
|
3289
|
+
while (reader.pos < end) {
|
|
3290
|
+
const tag = reader.uint32();
|
|
3291
|
+
switch (tag >>> 3) {
|
|
3292
|
+
case 1: {
|
|
3293
|
+
if (tag !== 10) {
|
|
3294
|
+
break;
|
|
3295
|
+
}
|
|
3296
|
+
message.signature = reader.bytes();
|
|
3297
|
+
continue;
|
|
3298
|
+
}
|
|
3299
|
+
case 2: {
|
|
3300
|
+
if (tag !== 16) {
|
|
3301
|
+
break;
|
|
3302
|
+
}
|
|
3303
|
+
message.isVote = reader.bool();
|
|
3304
|
+
continue;
|
|
3305
|
+
}
|
|
3306
|
+
case 3: {
|
|
3307
|
+
if (tag !== 26) {
|
|
3308
|
+
break;
|
|
3309
|
+
}
|
|
3310
|
+
message.transaction = Transaction.decode(reader, reader.uint32());
|
|
3311
|
+
continue;
|
|
3312
|
+
}
|
|
3313
|
+
case 4: {
|
|
3314
|
+
if (tag !== 34) {
|
|
3315
|
+
break;
|
|
3316
|
+
}
|
|
3317
|
+
message.meta = TransactionStatusMeta.decode(reader, reader.uint32());
|
|
3318
|
+
continue;
|
|
3319
|
+
}
|
|
3320
|
+
case 5: {
|
|
3321
|
+
if (tag !== 40) {
|
|
3322
|
+
break;
|
|
3323
|
+
}
|
|
3324
|
+
message.index = reader.uint64();
|
|
3325
|
+
continue;
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3329
|
+
break;
|
|
3330
|
+
}
|
|
3331
|
+
reader.skip(tag & 7);
|
|
3332
|
+
}
|
|
3333
|
+
return message;
|
|
3334
|
+
}
|
|
3335
|
+
finally {
|
|
3336
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2994
3337
|
}
|
|
2995
|
-
return message;
|
|
2996
3338
|
},
|
|
2997
3339
|
fromJSON(object) {
|
|
2998
3340
|
return {
|
|
@@ -3039,7 +3381,7 @@ export const SubscribeUpdateTransactionInfo = {
|
|
|
3039
3381
|
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
3040
3382
|
? TransactionStatusMeta.fromPartial(object.meta)
|
|
3041
3383
|
: undefined;
|
|
3042
|
-
message.index = object.index
|
|
3384
|
+
message.index = (object.index !== undefined && object.index !== null) ? BigInt(object.index) : 0n;
|
|
3043
3385
|
return message;
|
|
3044
3386
|
},
|
|
3045
3387
|
};
|
|
@@ -3073,53 +3415,63 @@ export const SubscribeUpdateTransactionStatus = {
|
|
|
3073
3415
|
},
|
|
3074
3416
|
decode(input, length) {
|
|
3075
3417
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3076
|
-
const
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3418
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3419
|
+
if (previousRecursionDepth >= 100) {
|
|
3420
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3421
|
+
}
|
|
3422
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3423
|
+
try {
|
|
3424
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3425
|
+
const message = createBaseSubscribeUpdateTransactionStatus();
|
|
3426
|
+
while (reader.pos < end) {
|
|
3427
|
+
const tag = reader.uint32();
|
|
3428
|
+
switch (tag >>> 3) {
|
|
3429
|
+
case 1: {
|
|
3430
|
+
if (tag !== 8) {
|
|
3431
|
+
break;
|
|
3432
|
+
}
|
|
3433
|
+
message.slot = reader.uint64();
|
|
3434
|
+
continue;
|
|
3435
|
+
}
|
|
3436
|
+
case 2: {
|
|
3437
|
+
if (tag !== 18) {
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
message.signature = reader.bytes();
|
|
3441
|
+
continue;
|
|
3442
|
+
}
|
|
3443
|
+
case 3: {
|
|
3444
|
+
if (tag !== 24) {
|
|
3445
|
+
break;
|
|
3446
|
+
}
|
|
3447
|
+
message.isVote = reader.bool();
|
|
3448
|
+
continue;
|
|
3449
|
+
}
|
|
3450
|
+
case 4: {
|
|
3451
|
+
if (tag !== 32) {
|
|
3452
|
+
break;
|
|
3453
|
+
}
|
|
3454
|
+
message.index = reader.uint64();
|
|
3455
|
+
continue;
|
|
3456
|
+
}
|
|
3457
|
+
case 5: {
|
|
3458
|
+
if (tag !== 42) {
|
|
3459
|
+
break;
|
|
3460
|
+
}
|
|
3461
|
+
message.err = TransactionError.decode(reader, reader.uint32());
|
|
3462
|
+
continue;
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3466
|
+
break;
|
|
3467
|
+
}
|
|
3468
|
+
reader.skip(tag & 7);
|
|
3469
|
+
}
|
|
3470
|
+
return message;
|
|
3471
|
+
}
|
|
3472
|
+
finally {
|
|
3473
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3121
3474
|
}
|
|
3122
|
-
return message;
|
|
3123
3475
|
},
|
|
3124
3476
|
fromJSON(object) {
|
|
3125
3477
|
return {
|
|
@@ -3158,10 +3510,10 @@ export const SubscribeUpdateTransactionStatus = {
|
|
|
3158
3510
|
},
|
|
3159
3511
|
fromPartial(object) {
|
|
3160
3512
|
const message = createBaseSubscribeUpdateTransactionStatus();
|
|
3161
|
-
message.slot = object.slot
|
|
3513
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
3162
3514
|
message.signature = object.signature ?? new Uint8Array(0);
|
|
3163
3515
|
message.isVote = object.isVote ?? false;
|
|
3164
|
-
message.index = object.index
|
|
3516
|
+
message.index = (object.index !== undefined && object.index !== null) ? BigInt(object.index) : 0n;
|
|
3165
3517
|
message.err = (object.err !== undefined && object.err !== null)
|
|
3166
3518
|
? TransactionError.fromPartial(object.err)
|
|
3167
3519
|
: undefined;
|
|
@@ -3245,109 +3597,119 @@ export const SubscribeUpdateBlock = {
|
|
|
3245
3597
|
},
|
|
3246
3598
|
decode(input, length) {
|
|
3247
3599
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3248
|
-
const
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3600
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3601
|
+
if (previousRecursionDepth >= 100) {
|
|
3602
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3603
|
+
}
|
|
3604
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3605
|
+
try {
|
|
3606
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3607
|
+
const message = createBaseSubscribeUpdateBlock();
|
|
3608
|
+
while (reader.pos < end) {
|
|
3609
|
+
const tag = reader.uint32();
|
|
3610
|
+
switch (tag >>> 3) {
|
|
3611
|
+
case 1: {
|
|
3612
|
+
if (tag !== 8) {
|
|
3613
|
+
break;
|
|
3614
|
+
}
|
|
3615
|
+
message.slot = reader.uint64();
|
|
3616
|
+
continue;
|
|
3617
|
+
}
|
|
3618
|
+
case 2: {
|
|
3619
|
+
if (tag !== 18) {
|
|
3620
|
+
break;
|
|
3621
|
+
}
|
|
3622
|
+
message.blockhash = reader.string();
|
|
3623
|
+
continue;
|
|
3624
|
+
}
|
|
3625
|
+
case 3: {
|
|
3626
|
+
if (tag !== 26) {
|
|
3627
|
+
break;
|
|
3628
|
+
}
|
|
3629
|
+
message.rewards = Rewards.decode(reader, reader.uint32());
|
|
3630
|
+
continue;
|
|
3631
|
+
}
|
|
3632
|
+
case 4: {
|
|
3633
|
+
if (tag !== 34) {
|
|
3634
|
+
break;
|
|
3635
|
+
}
|
|
3636
|
+
message.blockTime = UnixTimestamp.decode(reader, reader.uint32());
|
|
3637
|
+
continue;
|
|
3638
|
+
}
|
|
3639
|
+
case 5: {
|
|
3640
|
+
if (tag !== 42) {
|
|
3641
|
+
break;
|
|
3642
|
+
}
|
|
3643
|
+
message.blockHeight = BlockHeight.decode(reader, reader.uint32());
|
|
3644
|
+
continue;
|
|
3645
|
+
}
|
|
3646
|
+
case 7: {
|
|
3647
|
+
if (tag !== 56) {
|
|
3648
|
+
break;
|
|
3649
|
+
}
|
|
3650
|
+
message.parentSlot = reader.uint64();
|
|
3651
|
+
continue;
|
|
3652
|
+
}
|
|
3653
|
+
case 8: {
|
|
3654
|
+
if (tag !== 66) {
|
|
3655
|
+
break;
|
|
3656
|
+
}
|
|
3657
|
+
message.parentBlockhash = reader.string();
|
|
3658
|
+
continue;
|
|
3659
|
+
}
|
|
3660
|
+
case 9: {
|
|
3661
|
+
if (tag !== 72) {
|
|
3662
|
+
break;
|
|
3663
|
+
}
|
|
3664
|
+
message.executedTransactionCount = reader.uint64();
|
|
3665
|
+
continue;
|
|
3666
|
+
}
|
|
3667
|
+
case 6: {
|
|
3668
|
+
if (tag !== 50) {
|
|
3669
|
+
break;
|
|
3670
|
+
}
|
|
3671
|
+
message.transactions.push(SubscribeUpdateTransactionInfo.decode(reader, reader.uint32()));
|
|
3672
|
+
continue;
|
|
3673
|
+
}
|
|
3674
|
+
case 10: {
|
|
3675
|
+
if (tag !== 80) {
|
|
3676
|
+
break;
|
|
3677
|
+
}
|
|
3678
|
+
message.updatedAccountCount = reader.uint64();
|
|
3679
|
+
continue;
|
|
3680
|
+
}
|
|
3681
|
+
case 11: {
|
|
3682
|
+
if (tag !== 90) {
|
|
3683
|
+
break;
|
|
3684
|
+
}
|
|
3685
|
+
message.accounts.push(SubscribeUpdateAccountInfo.decode(reader, reader.uint32()));
|
|
3686
|
+
continue;
|
|
3687
|
+
}
|
|
3688
|
+
case 12: {
|
|
3689
|
+
if (tag !== 96) {
|
|
3690
|
+
break;
|
|
3691
|
+
}
|
|
3692
|
+
message.entriesCount = reader.uint64();
|
|
3693
|
+
continue;
|
|
3694
|
+
}
|
|
3695
|
+
case 13: {
|
|
3696
|
+
if (tag !== 106) {
|
|
3697
|
+
break;
|
|
3698
|
+
}
|
|
3699
|
+
message.entries.push(SubscribeUpdateEntry.decode(reader, reader.uint32()));
|
|
3700
|
+
continue;
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3704
|
+
break;
|
|
3705
|
+
}
|
|
3706
|
+
reader.skip(tag & 7);
|
|
3707
|
+
}
|
|
3708
|
+
return message;
|
|
3709
|
+
}
|
|
3710
|
+
finally {
|
|
3711
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3349
3712
|
}
|
|
3350
|
-
return message;
|
|
3351
3713
|
},
|
|
3352
3714
|
fromJSON(object) {
|
|
3353
3715
|
return {
|
|
@@ -3448,7 +3810,7 @@ export const SubscribeUpdateBlock = {
|
|
|
3448
3810
|
},
|
|
3449
3811
|
fromPartial(object) {
|
|
3450
3812
|
const message = createBaseSubscribeUpdateBlock();
|
|
3451
|
-
message.slot = object.slot
|
|
3813
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
3452
3814
|
message.blockhash = object.blockhash ?? "";
|
|
3453
3815
|
message.rewards = (object.rewards !== undefined && object.rewards !== null)
|
|
3454
3816
|
? Rewards.fromPartial(object.rewards)
|
|
@@ -3459,13 +3821,22 @@ export const SubscribeUpdateBlock = {
|
|
|
3459
3821
|
message.blockHeight = (object.blockHeight !== undefined && object.blockHeight !== null)
|
|
3460
3822
|
? BlockHeight.fromPartial(object.blockHeight)
|
|
3461
3823
|
: undefined;
|
|
3462
|
-
message.parentSlot = object.parentSlot
|
|
3824
|
+
message.parentSlot = (object.parentSlot !== undefined && object.parentSlot !== null)
|
|
3825
|
+
? BigInt(object.parentSlot)
|
|
3826
|
+
: 0n;
|
|
3463
3827
|
message.parentBlockhash = object.parentBlockhash ?? "";
|
|
3464
|
-
message.executedTransactionCount =
|
|
3828
|
+
message.executedTransactionCount =
|
|
3829
|
+
(object.executedTransactionCount !== undefined && object.executedTransactionCount !== null)
|
|
3830
|
+
? BigInt(object.executedTransactionCount)
|
|
3831
|
+
: 0n;
|
|
3465
3832
|
message.transactions = object.transactions?.map((e) => SubscribeUpdateTransactionInfo.fromPartial(e)) || [];
|
|
3466
|
-
message.updatedAccountCount = object.updatedAccountCount
|
|
3833
|
+
message.updatedAccountCount = (object.updatedAccountCount !== undefined && object.updatedAccountCount !== null)
|
|
3834
|
+
? BigInt(object.updatedAccountCount)
|
|
3835
|
+
: 0n;
|
|
3467
3836
|
message.accounts = object.accounts?.map((e) => SubscribeUpdateAccountInfo.fromPartial(e)) || [];
|
|
3468
|
-
message.entriesCount = object.entriesCount
|
|
3837
|
+
message.entriesCount = (object.entriesCount !== undefined && object.entriesCount !== null)
|
|
3838
|
+
? BigInt(object.entriesCount)
|
|
3839
|
+
: 0n;
|
|
3469
3840
|
message.entries = object.entries?.map((e) => SubscribeUpdateEntry.fromPartial(e)) || [];
|
|
3470
3841
|
return message;
|
|
3471
3842
|
},
|
|
@@ -3528,81 +3899,91 @@ export const SubscribeUpdateBlockMeta = {
|
|
|
3528
3899
|
},
|
|
3529
3900
|
decode(input, length) {
|
|
3530
3901
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3902
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3903
|
+
if (previousRecursionDepth >= 100) {
|
|
3904
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3905
|
+
}
|
|
3906
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3907
|
+
try {
|
|
3908
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3909
|
+
const message = createBaseSubscribeUpdateBlockMeta();
|
|
3910
|
+
while (reader.pos < end) {
|
|
3911
|
+
const tag = reader.uint32();
|
|
3912
|
+
switch (tag >>> 3) {
|
|
3913
|
+
case 1: {
|
|
3914
|
+
if (tag !== 8) {
|
|
3915
|
+
break;
|
|
3916
|
+
}
|
|
3917
|
+
message.slot = reader.uint64();
|
|
3918
|
+
continue;
|
|
3919
|
+
}
|
|
3920
|
+
case 2: {
|
|
3921
|
+
if (tag !== 18) {
|
|
3922
|
+
break;
|
|
3923
|
+
}
|
|
3924
|
+
message.blockhash = reader.string();
|
|
3925
|
+
continue;
|
|
3926
|
+
}
|
|
3927
|
+
case 3: {
|
|
3928
|
+
if (tag !== 26) {
|
|
3929
|
+
break;
|
|
3930
|
+
}
|
|
3931
|
+
message.rewards = Rewards.decode(reader, reader.uint32());
|
|
3932
|
+
continue;
|
|
3933
|
+
}
|
|
3934
|
+
case 4: {
|
|
3935
|
+
if (tag !== 34) {
|
|
3936
|
+
break;
|
|
3937
|
+
}
|
|
3938
|
+
message.blockTime = UnixTimestamp.decode(reader, reader.uint32());
|
|
3939
|
+
continue;
|
|
3940
|
+
}
|
|
3941
|
+
case 5: {
|
|
3942
|
+
if (tag !== 42) {
|
|
3943
|
+
break;
|
|
3944
|
+
}
|
|
3945
|
+
message.blockHeight = BlockHeight.decode(reader, reader.uint32());
|
|
3946
|
+
continue;
|
|
3947
|
+
}
|
|
3948
|
+
case 6: {
|
|
3949
|
+
if (tag !== 48) {
|
|
3950
|
+
break;
|
|
3951
|
+
}
|
|
3952
|
+
message.parentSlot = reader.uint64();
|
|
3953
|
+
continue;
|
|
3954
|
+
}
|
|
3955
|
+
case 7: {
|
|
3956
|
+
if (tag !== 58) {
|
|
3957
|
+
break;
|
|
3958
|
+
}
|
|
3959
|
+
message.parentBlockhash = reader.string();
|
|
3960
|
+
continue;
|
|
3961
|
+
}
|
|
3962
|
+
case 8: {
|
|
3963
|
+
if (tag !== 64) {
|
|
3964
|
+
break;
|
|
3965
|
+
}
|
|
3966
|
+
message.executedTransactionCount = reader.uint64();
|
|
3967
|
+
continue;
|
|
3968
|
+
}
|
|
3969
|
+
case 9: {
|
|
3970
|
+
if (tag !== 72) {
|
|
3971
|
+
break;
|
|
3972
|
+
}
|
|
3973
|
+
message.entriesCount = reader.uint64();
|
|
3974
|
+
continue;
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3977
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3978
|
+
break;
|
|
3979
|
+
}
|
|
3980
|
+
reader.skip(tag & 7);
|
|
3981
|
+
}
|
|
3982
|
+
return message;
|
|
3983
|
+
}
|
|
3984
|
+
finally {
|
|
3985
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3604
3986
|
}
|
|
3605
|
-
return message;
|
|
3606
3987
|
},
|
|
3607
3988
|
fromJSON(object) {
|
|
3608
3989
|
return {
|
|
@@ -3677,7 +4058,7 @@ export const SubscribeUpdateBlockMeta = {
|
|
|
3677
4058
|
},
|
|
3678
4059
|
fromPartial(object) {
|
|
3679
4060
|
const message = createBaseSubscribeUpdateBlockMeta();
|
|
3680
|
-
message.slot = object.slot
|
|
4061
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
3681
4062
|
message.blockhash = object.blockhash ?? "";
|
|
3682
4063
|
message.rewards = (object.rewards !== undefined && object.rewards !== null)
|
|
3683
4064
|
? Rewards.fromPartial(object.rewards)
|
|
@@ -3688,10 +4069,17 @@ export const SubscribeUpdateBlockMeta = {
|
|
|
3688
4069
|
message.blockHeight = (object.blockHeight !== undefined && object.blockHeight !== null)
|
|
3689
4070
|
? BlockHeight.fromPartial(object.blockHeight)
|
|
3690
4071
|
: undefined;
|
|
3691
|
-
message.parentSlot = object.parentSlot
|
|
4072
|
+
message.parentSlot = (object.parentSlot !== undefined && object.parentSlot !== null)
|
|
4073
|
+
? BigInt(object.parentSlot)
|
|
4074
|
+
: 0n;
|
|
3692
4075
|
message.parentBlockhash = object.parentBlockhash ?? "";
|
|
3693
|
-
message.executedTransactionCount =
|
|
3694
|
-
|
|
4076
|
+
message.executedTransactionCount =
|
|
4077
|
+
(object.executedTransactionCount !== undefined && object.executedTransactionCount !== null)
|
|
4078
|
+
? BigInt(object.executedTransactionCount)
|
|
4079
|
+
: 0n;
|
|
4080
|
+
message.entriesCount = (object.entriesCount !== undefined && object.entriesCount !== null)
|
|
4081
|
+
? BigInt(object.entriesCount)
|
|
4082
|
+
: 0n;
|
|
3695
4083
|
return message;
|
|
3696
4084
|
},
|
|
3697
4085
|
};
|
|
@@ -3744,60 +4132,70 @@ export const SubscribeUpdateEntry = {
|
|
|
3744
4132
|
},
|
|
3745
4133
|
decode(input, length) {
|
|
3746
4134
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3747
|
-
const
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
4135
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4136
|
+
if (previousRecursionDepth >= 100) {
|
|
4137
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4138
|
+
}
|
|
4139
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4140
|
+
try {
|
|
4141
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4142
|
+
const message = createBaseSubscribeUpdateEntry();
|
|
4143
|
+
while (reader.pos < end) {
|
|
4144
|
+
const tag = reader.uint32();
|
|
4145
|
+
switch (tag >>> 3) {
|
|
4146
|
+
case 1: {
|
|
4147
|
+
if (tag !== 8) {
|
|
4148
|
+
break;
|
|
4149
|
+
}
|
|
4150
|
+
message.slot = reader.uint64();
|
|
4151
|
+
continue;
|
|
4152
|
+
}
|
|
4153
|
+
case 2: {
|
|
4154
|
+
if (tag !== 16) {
|
|
4155
|
+
break;
|
|
4156
|
+
}
|
|
4157
|
+
message.index = reader.uint64();
|
|
4158
|
+
continue;
|
|
4159
|
+
}
|
|
4160
|
+
case 3: {
|
|
4161
|
+
if (tag !== 24) {
|
|
4162
|
+
break;
|
|
4163
|
+
}
|
|
4164
|
+
message.numHashes = reader.uint64();
|
|
4165
|
+
continue;
|
|
4166
|
+
}
|
|
4167
|
+
case 4: {
|
|
4168
|
+
if (tag !== 34) {
|
|
4169
|
+
break;
|
|
4170
|
+
}
|
|
4171
|
+
message.hash = reader.bytes();
|
|
4172
|
+
continue;
|
|
4173
|
+
}
|
|
4174
|
+
case 5: {
|
|
4175
|
+
if (tag !== 40) {
|
|
4176
|
+
break;
|
|
4177
|
+
}
|
|
4178
|
+
message.executedTransactionCount = reader.uint64();
|
|
4179
|
+
continue;
|
|
4180
|
+
}
|
|
4181
|
+
case 6: {
|
|
4182
|
+
if (tag !== 48) {
|
|
4183
|
+
break;
|
|
4184
|
+
}
|
|
4185
|
+
message.startingTransactionIndex = reader.uint64();
|
|
4186
|
+
continue;
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4190
|
+
break;
|
|
4191
|
+
}
|
|
4192
|
+
reader.skip(tag & 7);
|
|
4193
|
+
}
|
|
4194
|
+
return message;
|
|
4195
|
+
}
|
|
4196
|
+
finally {
|
|
4197
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3799
4198
|
}
|
|
3800
|
-
return message;
|
|
3801
4199
|
},
|
|
3802
4200
|
fromJSON(object) {
|
|
3803
4201
|
return {
|
|
@@ -3848,12 +4246,18 @@ export const SubscribeUpdateEntry = {
|
|
|
3848
4246
|
},
|
|
3849
4247
|
fromPartial(object) {
|
|
3850
4248
|
const message = createBaseSubscribeUpdateEntry();
|
|
3851
|
-
message.slot = object.slot
|
|
3852
|
-
message.index = object.index
|
|
3853
|
-
message.numHashes = object.numHashes
|
|
4249
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
4250
|
+
message.index = (object.index !== undefined && object.index !== null) ? BigInt(object.index) : 0n;
|
|
4251
|
+
message.numHashes = (object.numHashes !== undefined && object.numHashes !== null) ? BigInt(object.numHashes) : 0n;
|
|
3854
4252
|
message.hash = object.hash ?? new Uint8Array(0);
|
|
3855
|
-
message.executedTransactionCount =
|
|
3856
|
-
|
|
4253
|
+
message.executedTransactionCount =
|
|
4254
|
+
(object.executedTransactionCount !== undefined && object.executedTransactionCount !== null)
|
|
4255
|
+
? BigInt(object.executedTransactionCount)
|
|
4256
|
+
: 0n;
|
|
4257
|
+
message.startingTransactionIndex =
|
|
4258
|
+
(object.startingTransactionIndex !== undefined && object.startingTransactionIndex !== null)
|
|
4259
|
+
? BigInt(object.startingTransactionIndex)
|
|
4260
|
+
: 0n;
|
|
3857
4261
|
return message;
|
|
3858
4262
|
},
|
|
3859
4263
|
};
|
|
@@ -3875,32 +4279,42 @@ export const SubscribeUpdateDeshredTransaction = {
|
|
|
3875
4279
|
},
|
|
3876
4280
|
decode(input, length) {
|
|
3877
4281
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3878
|
-
const
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
4282
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4283
|
+
if (previousRecursionDepth >= 100) {
|
|
4284
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4285
|
+
}
|
|
4286
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4287
|
+
try {
|
|
4288
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4289
|
+
const message = createBaseSubscribeUpdateDeshredTransaction();
|
|
4290
|
+
while (reader.pos < end) {
|
|
4291
|
+
const tag = reader.uint32();
|
|
4292
|
+
switch (tag >>> 3) {
|
|
4293
|
+
case 1: {
|
|
4294
|
+
if (tag !== 10) {
|
|
4295
|
+
break;
|
|
4296
|
+
}
|
|
4297
|
+
message.transaction = SubscribeUpdateDeshredTransactionInfo.decode(reader, reader.uint32());
|
|
4298
|
+
continue;
|
|
4299
|
+
}
|
|
4300
|
+
case 2: {
|
|
4301
|
+
if (tag !== 16) {
|
|
4302
|
+
break;
|
|
4303
|
+
}
|
|
4304
|
+
message.slot = reader.uint64();
|
|
4305
|
+
continue;
|
|
3893
4306
|
}
|
|
3894
|
-
message.slot = reader.uint64();
|
|
3895
|
-
continue;
|
|
3896
4307
|
}
|
|
4308
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4309
|
+
break;
|
|
4310
|
+
}
|
|
4311
|
+
reader.skip(tag & 7);
|
|
3897
4312
|
}
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
reader.
|
|
4313
|
+
return message;
|
|
4314
|
+
}
|
|
4315
|
+
finally {
|
|
4316
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3902
4317
|
}
|
|
3903
|
-
return message;
|
|
3904
4318
|
},
|
|
3905
4319
|
fromJSON(object) {
|
|
3906
4320
|
return {
|
|
@@ -3928,7 +4342,7 @@ export const SubscribeUpdateDeshredTransaction = {
|
|
|
3928
4342
|
message.transaction = (object.transaction !== undefined && object.transaction !== null)
|
|
3929
4343
|
? SubscribeUpdateDeshredTransactionInfo.fromPartial(object.transaction)
|
|
3930
4344
|
: undefined;
|
|
3931
|
-
message.slot = object.slot
|
|
4345
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
3932
4346
|
return message;
|
|
3933
4347
|
},
|
|
3934
4348
|
};
|
|
@@ -3962,53 +4376,63 @@ export const SubscribeUpdateDeshredTransactionInfo = {
|
|
|
3962
4376
|
},
|
|
3963
4377
|
decode(input, length) {
|
|
3964
4378
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3965
|
-
const
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4379
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4380
|
+
if (previousRecursionDepth >= 100) {
|
|
4381
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4382
|
+
}
|
|
4383
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4384
|
+
try {
|
|
4385
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4386
|
+
const message = createBaseSubscribeUpdateDeshredTransactionInfo();
|
|
4387
|
+
while (reader.pos < end) {
|
|
4388
|
+
const tag = reader.uint32();
|
|
4389
|
+
switch (tag >>> 3) {
|
|
4390
|
+
case 1: {
|
|
4391
|
+
if (tag !== 10) {
|
|
4392
|
+
break;
|
|
4393
|
+
}
|
|
4394
|
+
message.signature = reader.bytes();
|
|
4395
|
+
continue;
|
|
4396
|
+
}
|
|
4397
|
+
case 2: {
|
|
4398
|
+
if (tag !== 16) {
|
|
4399
|
+
break;
|
|
4400
|
+
}
|
|
4401
|
+
message.isVote = reader.bool();
|
|
4402
|
+
continue;
|
|
4403
|
+
}
|
|
4404
|
+
case 3: {
|
|
4405
|
+
if (tag !== 26) {
|
|
4406
|
+
break;
|
|
4407
|
+
}
|
|
4408
|
+
message.transaction = Transaction.decode(reader, reader.uint32());
|
|
4409
|
+
continue;
|
|
4410
|
+
}
|
|
4411
|
+
case 4: {
|
|
4412
|
+
if (tag !== 34) {
|
|
4413
|
+
break;
|
|
4414
|
+
}
|
|
4415
|
+
message.loadedWritableAddresses.push(reader.bytes());
|
|
4416
|
+
continue;
|
|
4417
|
+
}
|
|
4418
|
+
case 5: {
|
|
4419
|
+
if (tag !== 42) {
|
|
4420
|
+
break;
|
|
4421
|
+
}
|
|
4422
|
+
message.loadedReadonlyAddresses.push(reader.bytes());
|
|
4423
|
+
continue;
|
|
4424
|
+
}
|
|
4425
|
+
}
|
|
4426
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4427
|
+
break;
|
|
4428
|
+
}
|
|
4429
|
+
reader.skip(tag & 7);
|
|
4430
|
+
}
|
|
4431
|
+
return message;
|
|
4432
|
+
}
|
|
4433
|
+
finally {
|
|
4434
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4010
4435
|
}
|
|
4011
|
-
return message;
|
|
4012
4436
|
},
|
|
4013
4437
|
fromJSON(object) {
|
|
4014
4438
|
return {
|
|
@@ -4074,18 +4498,28 @@ export const SubscribeUpdatePing = {
|
|
|
4074
4498
|
},
|
|
4075
4499
|
decode(input, length) {
|
|
4076
4500
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4077
|
-
const
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4501
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4502
|
+
if (previousRecursionDepth >= 100) {
|
|
4503
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4504
|
+
}
|
|
4505
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4506
|
+
try {
|
|
4507
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4508
|
+
const message = createBaseSubscribeUpdatePing();
|
|
4509
|
+
while (reader.pos < end) {
|
|
4510
|
+
const tag = reader.uint32();
|
|
4511
|
+
switch (tag >>> 3) {
|
|
4512
|
+
}
|
|
4513
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4514
|
+
break;
|
|
4515
|
+
}
|
|
4516
|
+
reader.skip(tag & 7);
|
|
4085
4517
|
}
|
|
4086
|
-
|
|
4518
|
+
return message;
|
|
4519
|
+
}
|
|
4520
|
+
finally {
|
|
4521
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4087
4522
|
}
|
|
4088
|
-
return message;
|
|
4089
4523
|
},
|
|
4090
4524
|
fromJSON(_) {
|
|
4091
4525
|
return {};
|
|
@@ -4114,25 +4548,35 @@ export const SubscribeUpdatePong = {
|
|
|
4114
4548
|
},
|
|
4115
4549
|
decode(input, length) {
|
|
4116
4550
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4117
|
-
const
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4551
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4552
|
+
if (previousRecursionDepth >= 100) {
|
|
4553
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4554
|
+
}
|
|
4555
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4556
|
+
try {
|
|
4557
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4558
|
+
const message = createBaseSubscribeUpdatePong();
|
|
4559
|
+
while (reader.pos < end) {
|
|
4560
|
+
const tag = reader.uint32();
|
|
4561
|
+
switch (tag >>> 3) {
|
|
4562
|
+
case 1: {
|
|
4563
|
+
if (tag !== 8) {
|
|
4564
|
+
break;
|
|
4565
|
+
}
|
|
4566
|
+
message.id = reader.int32();
|
|
4567
|
+
continue;
|
|
4568
|
+
}
|
|
4128
4569
|
}
|
|
4570
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4571
|
+
break;
|
|
4572
|
+
}
|
|
4573
|
+
reader.skip(tag & 7);
|
|
4129
4574
|
}
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
reader.
|
|
4575
|
+
return message;
|
|
4576
|
+
}
|
|
4577
|
+
finally {
|
|
4578
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4134
4579
|
}
|
|
4135
|
-
return message;
|
|
4136
4580
|
},
|
|
4137
4581
|
fromJSON(object) {
|
|
4138
4582
|
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
@@ -4177,53 +4621,63 @@ export const SubscribeUpdateDeshred = {
|
|
|
4177
4621
|
},
|
|
4178
4622
|
decode(input, length) {
|
|
4179
4623
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4180
|
-
const
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4624
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4625
|
+
if (previousRecursionDepth >= 100) {
|
|
4626
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4627
|
+
}
|
|
4628
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4629
|
+
try {
|
|
4630
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4631
|
+
const message = createBaseSubscribeUpdateDeshred();
|
|
4632
|
+
while (reader.pos < end) {
|
|
4633
|
+
const tag = reader.uint32();
|
|
4634
|
+
switch (tag >>> 3) {
|
|
4635
|
+
case 1: {
|
|
4636
|
+
if (tag !== 10) {
|
|
4637
|
+
break;
|
|
4638
|
+
}
|
|
4639
|
+
message.filters.push(reader.string());
|
|
4640
|
+
continue;
|
|
4641
|
+
}
|
|
4642
|
+
case 2: {
|
|
4643
|
+
if (tag !== 18) {
|
|
4644
|
+
break;
|
|
4645
|
+
}
|
|
4646
|
+
message.deshredTransaction = SubscribeUpdateDeshredTransaction.decode(reader, reader.uint32());
|
|
4647
|
+
continue;
|
|
4648
|
+
}
|
|
4649
|
+
case 3: {
|
|
4650
|
+
if (tag !== 26) {
|
|
4651
|
+
break;
|
|
4652
|
+
}
|
|
4653
|
+
message.ping = SubscribeUpdatePing.decode(reader, reader.uint32());
|
|
4654
|
+
continue;
|
|
4655
|
+
}
|
|
4656
|
+
case 4: {
|
|
4657
|
+
if (tag !== 34) {
|
|
4658
|
+
break;
|
|
4659
|
+
}
|
|
4660
|
+
message.pong = SubscribeUpdatePong.decode(reader, reader.uint32());
|
|
4661
|
+
continue;
|
|
4662
|
+
}
|
|
4663
|
+
case 5: {
|
|
4664
|
+
if (tag !== 42) {
|
|
4665
|
+
break;
|
|
4666
|
+
}
|
|
4667
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
4668
|
+
continue;
|
|
4669
|
+
}
|
|
4670
|
+
}
|
|
4671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4672
|
+
break;
|
|
4673
|
+
}
|
|
4674
|
+
reader.skip(tag & 7);
|
|
4675
|
+
}
|
|
4676
|
+
return message;
|
|
4677
|
+
}
|
|
4678
|
+
finally {
|
|
4679
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4225
4680
|
}
|
|
4226
|
-
return message;
|
|
4227
4681
|
},
|
|
4228
4682
|
fromJSON(object) {
|
|
4229
4683
|
return {
|
|
@@ -4289,18 +4743,28 @@ export const SubscribeReplayInfoRequest = {
|
|
|
4289
4743
|
},
|
|
4290
4744
|
decode(input, length) {
|
|
4291
4745
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4292
|
-
const
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4746
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4747
|
+
if (previousRecursionDepth >= 100) {
|
|
4748
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4749
|
+
}
|
|
4750
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4751
|
+
try {
|
|
4752
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4753
|
+
const message = createBaseSubscribeReplayInfoRequest();
|
|
4754
|
+
while (reader.pos < end) {
|
|
4755
|
+
const tag = reader.uint32();
|
|
4756
|
+
switch (tag >>> 3) {
|
|
4757
|
+
}
|
|
4758
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4759
|
+
break;
|
|
4760
|
+
}
|
|
4761
|
+
reader.skip(tag & 7);
|
|
4300
4762
|
}
|
|
4301
|
-
|
|
4763
|
+
return message;
|
|
4764
|
+
}
|
|
4765
|
+
finally {
|
|
4766
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4302
4767
|
}
|
|
4303
|
-
return message;
|
|
4304
4768
|
},
|
|
4305
4769
|
fromJSON(_) {
|
|
4306
4770
|
return {};
|
|
@@ -4332,25 +4796,35 @@ export const SubscribeReplayInfoResponse = {
|
|
|
4332
4796
|
},
|
|
4333
4797
|
decode(input, length) {
|
|
4334
4798
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4335
|
-
const
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4799
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4800
|
+
if (previousRecursionDepth >= 100) {
|
|
4801
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4802
|
+
}
|
|
4803
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4804
|
+
try {
|
|
4805
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4806
|
+
const message = createBaseSubscribeReplayInfoResponse();
|
|
4807
|
+
while (reader.pos < end) {
|
|
4808
|
+
const tag = reader.uint32();
|
|
4809
|
+
switch (tag >>> 3) {
|
|
4810
|
+
case 1: {
|
|
4811
|
+
if (tag !== 8) {
|
|
4812
|
+
break;
|
|
4813
|
+
}
|
|
4814
|
+
message.firstAvailable = reader.uint64();
|
|
4815
|
+
continue;
|
|
4816
|
+
}
|
|
4346
4817
|
}
|
|
4818
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4819
|
+
break;
|
|
4820
|
+
}
|
|
4821
|
+
reader.skip(tag & 7);
|
|
4347
4822
|
}
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
reader.
|
|
4823
|
+
return message;
|
|
4824
|
+
}
|
|
4825
|
+
finally {
|
|
4826
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4352
4827
|
}
|
|
4353
|
-
return message;
|
|
4354
4828
|
},
|
|
4355
4829
|
fromJSON(object) {
|
|
4356
4830
|
return {
|
|
@@ -4373,7 +4847,9 @@ export const SubscribeReplayInfoResponse = {
|
|
|
4373
4847
|
},
|
|
4374
4848
|
fromPartial(object) {
|
|
4375
4849
|
const message = createBaseSubscribeReplayInfoResponse();
|
|
4376
|
-
message.firstAvailable = object.firstAvailable
|
|
4850
|
+
message.firstAvailable = (object.firstAvailable !== undefined && object.firstAvailable !== null)
|
|
4851
|
+
? BigInt(object.firstAvailable)
|
|
4852
|
+
: undefined;
|
|
4377
4853
|
return message;
|
|
4378
4854
|
},
|
|
4379
4855
|
};
|
|
@@ -4389,25 +4865,35 @@ export const PingRequest = {
|
|
|
4389
4865
|
},
|
|
4390
4866
|
decode(input, length) {
|
|
4391
4867
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4392
|
-
const
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4868
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4869
|
+
if (previousRecursionDepth >= 100) {
|
|
4870
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4871
|
+
}
|
|
4872
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4873
|
+
try {
|
|
4874
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4875
|
+
const message = createBasePingRequest();
|
|
4876
|
+
while (reader.pos < end) {
|
|
4877
|
+
const tag = reader.uint32();
|
|
4878
|
+
switch (tag >>> 3) {
|
|
4879
|
+
case 1: {
|
|
4880
|
+
if (tag !== 8) {
|
|
4881
|
+
break;
|
|
4882
|
+
}
|
|
4883
|
+
message.count = reader.int32();
|
|
4884
|
+
continue;
|
|
4885
|
+
}
|
|
4403
4886
|
}
|
|
4887
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4888
|
+
break;
|
|
4889
|
+
}
|
|
4890
|
+
reader.skip(tag & 7);
|
|
4404
4891
|
}
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
reader.
|
|
4892
|
+
return message;
|
|
4893
|
+
}
|
|
4894
|
+
finally {
|
|
4895
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4409
4896
|
}
|
|
4410
|
-
return message;
|
|
4411
4897
|
},
|
|
4412
4898
|
fromJSON(object) {
|
|
4413
4899
|
return { count: isSet(object.count) ? globalThis.Number(object.count) : 0 };
|
|
@@ -4440,25 +4926,35 @@ export const PongResponse = {
|
|
|
4440
4926
|
},
|
|
4441
4927
|
decode(input, length) {
|
|
4442
4928
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4443
|
-
const
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4929
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4930
|
+
if (previousRecursionDepth >= 100) {
|
|
4931
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4932
|
+
}
|
|
4933
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4934
|
+
try {
|
|
4935
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4936
|
+
const message = createBasePongResponse();
|
|
4937
|
+
while (reader.pos < end) {
|
|
4938
|
+
const tag = reader.uint32();
|
|
4939
|
+
switch (tag >>> 3) {
|
|
4940
|
+
case 1: {
|
|
4941
|
+
if (tag !== 8) {
|
|
4942
|
+
break;
|
|
4943
|
+
}
|
|
4944
|
+
message.count = reader.int32();
|
|
4945
|
+
continue;
|
|
4946
|
+
}
|
|
4454
4947
|
}
|
|
4948
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4949
|
+
break;
|
|
4950
|
+
}
|
|
4951
|
+
reader.skip(tag & 7);
|
|
4455
4952
|
}
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
reader.
|
|
4953
|
+
return message;
|
|
4954
|
+
}
|
|
4955
|
+
finally {
|
|
4956
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4460
4957
|
}
|
|
4461
|
-
return message;
|
|
4462
4958
|
},
|
|
4463
4959
|
fromJSON(object) {
|
|
4464
4960
|
return { count: isSet(object.count) ? globalThis.Number(object.count) : 0 };
|
|
@@ -4491,25 +4987,35 @@ export const GetLatestBlockhashRequest = {
|
|
|
4491
4987
|
},
|
|
4492
4988
|
decode(input, length) {
|
|
4493
4989
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4494
|
-
const
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4990
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4991
|
+
if (previousRecursionDepth >= 100) {
|
|
4992
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4993
|
+
}
|
|
4994
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4995
|
+
try {
|
|
4996
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4997
|
+
const message = createBaseGetLatestBlockhashRequest();
|
|
4998
|
+
while (reader.pos < end) {
|
|
4999
|
+
const tag = reader.uint32();
|
|
5000
|
+
switch (tag >>> 3) {
|
|
5001
|
+
case 1: {
|
|
5002
|
+
if (tag !== 8) {
|
|
5003
|
+
break;
|
|
5004
|
+
}
|
|
5005
|
+
message.commitment = reader.int32();
|
|
5006
|
+
continue;
|
|
5007
|
+
}
|
|
4505
5008
|
}
|
|
5009
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5010
|
+
break;
|
|
5011
|
+
}
|
|
5012
|
+
reader.skip(tag & 7);
|
|
4506
5013
|
}
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
reader.
|
|
5014
|
+
return message;
|
|
5015
|
+
}
|
|
5016
|
+
finally {
|
|
5017
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4511
5018
|
}
|
|
4512
|
-
return message;
|
|
4513
5019
|
},
|
|
4514
5020
|
fromJSON(object) {
|
|
4515
5021
|
return { commitment: isSet(object.commitment) ? commitmentLevelFromJSON(object.commitment) : undefined };
|
|
@@ -4554,39 +5060,49 @@ export const GetLatestBlockhashResponse = {
|
|
|
4554
5060
|
},
|
|
4555
5061
|
decode(input, length) {
|
|
4556
5062
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4557
|
-
const
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
5063
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5064
|
+
if (previousRecursionDepth >= 100) {
|
|
5065
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5066
|
+
}
|
|
5067
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5068
|
+
try {
|
|
5069
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5070
|
+
const message = createBaseGetLatestBlockhashResponse();
|
|
5071
|
+
while (reader.pos < end) {
|
|
5072
|
+
const tag = reader.uint32();
|
|
5073
|
+
switch (tag >>> 3) {
|
|
5074
|
+
case 1: {
|
|
5075
|
+
if (tag !== 8) {
|
|
5076
|
+
break;
|
|
5077
|
+
}
|
|
5078
|
+
message.slot = reader.uint64();
|
|
5079
|
+
continue;
|
|
5080
|
+
}
|
|
5081
|
+
case 2: {
|
|
5082
|
+
if (tag !== 18) {
|
|
5083
|
+
break;
|
|
5084
|
+
}
|
|
5085
|
+
message.blockhash = reader.string();
|
|
5086
|
+
continue;
|
|
5087
|
+
}
|
|
5088
|
+
case 3: {
|
|
5089
|
+
if (tag !== 24) {
|
|
5090
|
+
break;
|
|
5091
|
+
}
|
|
5092
|
+
message.lastValidBlockHeight = reader.uint64();
|
|
5093
|
+
continue;
|
|
5094
|
+
}
|
|
5095
|
+
}
|
|
5096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5097
|
+
break;
|
|
5098
|
+
}
|
|
5099
|
+
reader.skip(tag & 7);
|
|
5100
|
+
}
|
|
5101
|
+
return message;
|
|
5102
|
+
}
|
|
5103
|
+
finally {
|
|
5104
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4588
5105
|
}
|
|
4589
|
-
return message;
|
|
4590
5106
|
},
|
|
4591
5107
|
fromJSON(object) {
|
|
4592
5108
|
return {
|
|
@@ -4617,9 +5133,11 @@ export const GetLatestBlockhashResponse = {
|
|
|
4617
5133
|
},
|
|
4618
5134
|
fromPartial(object) {
|
|
4619
5135
|
const message = createBaseGetLatestBlockhashResponse();
|
|
4620
|
-
message.slot = object.slot
|
|
5136
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
4621
5137
|
message.blockhash = object.blockhash ?? "";
|
|
4622
|
-
message.lastValidBlockHeight = object.lastValidBlockHeight
|
|
5138
|
+
message.lastValidBlockHeight = (object.lastValidBlockHeight !== undefined && object.lastValidBlockHeight !== null)
|
|
5139
|
+
? BigInt(object.lastValidBlockHeight)
|
|
5140
|
+
: 0n;
|
|
4623
5141
|
return message;
|
|
4624
5142
|
},
|
|
4625
5143
|
};
|
|
@@ -4635,25 +5153,35 @@ export const GetBlockHeightRequest = {
|
|
|
4635
5153
|
},
|
|
4636
5154
|
decode(input, length) {
|
|
4637
5155
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4638
|
-
const
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
5156
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5157
|
+
if (previousRecursionDepth >= 100) {
|
|
5158
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5159
|
+
}
|
|
5160
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5161
|
+
try {
|
|
5162
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5163
|
+
const message = createBaseGetBlockHeightRequest();
|
|
5164
|
+
while (reader.pos < end) {
|
|
5165
|
+
const tag = reader.uint32();
|
|
5166
|
+
switch (tag >>> 3) {
|
|
5167
|
+
case 1: {
|
|
5168
|
+
if (tag !== 8) {
|
|
5169
|
+
break;
|
|
5170
|
+
}
|
|
5171
|
+
message.commitment = reader.int32();
|
|
5172
|
+
continue;
|
|
5173
|
+
}
|
|
4649
5174
|
}
|
|
5175
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5176
|
+
break;
|
|
5177
|
+
}
|
|
5178
|
+
reader.skip(tag & 7);
|
|
4650
5179
|
}
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
reader.
|
|
5180
|
+
return message;
|
|
5181
|
+
}
|
|
5182
|
+
finally {
|
|
5183
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4655
5184
|
}
|
|
4656
|
-
return message;
|
|
4657
5185
|
},
|
|
4658
5186
|
fromJSON(object) {
|
|
4659
5187
|
return { commitment: isSet(object.commitment) ? commitmentLevelFromJSON(object.commitment) : undefined };
|
|
@@ -4689,25 +5217,35 @@ export const GetBlockHeightResponse = {
|
|
|
4689
5217
|
},
|
|
4690
5218
|
decode(input, length) {
|
|
4691
5219
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4692
|
-
const
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
5220
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5221
|
+
if (previousRecursionDepth >= 100) {
|
|
5222
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5223
|
+
}
|
|
5224
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5225
|
+
try {
|
|
5226
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5227
|
+
const message = createBaseGetBlockHeightResponse();
|
|
5228
|
+
while (reader.pos < end) {
|
|
5229
|
+
const tag = reader.uint32();
|
|
5230
|
+
switch (tag >>> 3) {
|
|
5231
|
+
case 1: {
|
|
5232
|
+
if (tag !== 8) {
|
|
5233
|
+
break;
|
|
5234
|
+
}
|
|
5235
|
+
message.blockHeight = reader.uint64();
|
|
5236
|
+
continue;
|
|
5237
|
+
}
|
|
4703
5238
|
}
|
|
5239
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5240
|
+
break;
|
|
5241
|
+
}
|
|
5242
|
+
reader.skip(tag & 7);
|
|
4704
5243
|
}
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
reader.
|
|
5244
|
+
return message;
|
|
5245
|
+
}
|
|
5246
|
+
finally {
|
|
5247
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4709
5248
|
}
|
|
4710
|
-
return message;
|
|
4711
5249
|
},
|
|
4712
5250
|
fromJSON(object) {
|
|
4713
5251
|
return {
|
|
@@ -4730,7 +5268,9 @@ export const GetBlockHeightResponse = {
|
|
|
4730
5268
|
},
|
|
4731
5269
|
fromPartial(object) {
|
|
4732
5270
|
const message = createBaseGetBlockHeightResponse();
|
|
4733
|
-
message.blockHeight = object.blockHeight
|
|
5271
|
+
message.blockHeight = (object.blockHeight !== undefined && object.blockHeight !== null)
|
|
5272
|
+
? BigInt(object.blockHeight)
|
|
5273
|
+
: 0n;
|
|
4734
5274
|
return message;
|
|
4735
5275
|
},
|
|
4736
5276
|
};
|
|
@@ -4746,25 +5286,35 @@ export const GetSlotRequest = {
|
|
|
4746
5286
|
},
|
|
4747
5287
|
decode(input, length) {
|
|
4748
5288
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4749
|
-
const
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
5289
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5290
|
+
if (previousRecursionDepth >= 100) {
|
|
5291
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5292
|
+
}
|
|
5293
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5294
|
+
try {
|
|
5295
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5296
|
+
const message = createBaseGetSlotRequest();
|
|
5297
|
+
while (reader.pos < end) {
|
|
5298
|
+
const tag = reader.uint32();
|
|
5299
|
+
switch (tag >>> 3) {
|
|
5300
|
+
case 1: {
|
|
5301
|
+
if (tag !== 8) {
|
|
5302
|
+
break;
|
|
5303
|
+
}
|
|
5304
|
+
message.commitment = reader.int32();
|
|
5305
|
+
continue;
|
|
5306
|
+
}
|
|
4760
5307
|
}
|
|
5308
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5309
|
+
break;
|
|
5310
|
+
}
|
|
5311
|
+
reader.skip(tag & 7);
|
|
4761
5312
|
}
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
reader.
|
|
5313
|
+
return message;
|
|
5314
|
+
}
|
|
5315
|
+
finally {
|
|
5316
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4766
5317
|
}
|
|
4767
|
-
return message;
|
|
4768
5318
|
},
|
|
4769
5319
|
fromJSON(object) {
|
|
4770
5320
|
return { commitment: isSet(object.commitment) ? commitmentLevelFromJSON(object.commitment) : undefined };
|
|
@@ -4800,25 +5350,35 @@ export const GetSlotResponse = {
|
|
|
4800
5350
|
},
|
|
4801
5351
|
decode(input, length) {
|
|
4802
5352
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4803
|
-
const
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
5353
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5354
|
+
if (previousRecursionDepth >= 100) {
|
|
5355
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5356
|
+
}
|
|
5357
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5358
|
+
try {
|
|
5359
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5360
|
+
const message = createBaseGetSlotResponse();
|
|
5361
|
+
while (reader.pos < end) {
|
|
5362
|
+
const tag = reader.uint32();
|
|
5363
|
+
switch (tag >>> 3) {
|
|
5364
|
+
case 1: {
|
|
5365
|
+
if (tag !== 8) {
|
|
5366
|
+
break;
|
|
5367
|
+
}
|
|
5368
|
+
message.slot = reader.uint64();
|
|
5369
|
+
continue;
|
|
5370
|
+
}
|
|
4814
5371
|
}
|
|
5372
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5373
|
+
break;
|
|
5374
|
+
}
|
|
5375
|
+
reader.skip(tag & 7);
|
|
4815
5376
|
}
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
reader.
|
|
5377
|
+
return message;
|
|
5378
|
+
}
|
|
5379
|
+
finally {
|
|
5380
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4820
5381
|
}
|
|
4821
|
-
return message;
|
|
4822
5382
|
},
|
|
4823
5383
|
fromJSON(object) {
|
|
4824
5384
|
return { slot: isSet(object.slot) ? BigInt(object.slot) : 0n };
|
|
@@ -4835,7 +5395,7 @@ export const GetSlotResponse = {
|
|
|
4835
5395
|
},
|
|
4836
5396
|
fromPartial(object) {
|
|
4837
5397
|
const message = createBaseGetSlotResponse();
|
|
4838
|
-
message.slot = object.slot
|
|
5398
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
4839
5399
|
return message;
|
|
4840
5400
|
},
|
|
4841
5401
|
};
|
|
@@ -4848,18 +5408,28 @@ export const GetVersionRequest = {
|
|
|
4848
5408
|
},
|
|
4849
5409
|
decode(input, length) {
|
|
4850
5410
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4851
|
-
const
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
5411
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5412
|
+
if (previousRecursionDepth >= 100) {
|
|
5413
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5414
|
+
}
|
|
5415
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5416
|
+
try {
|
|
5417
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5418
|
+
const message = createBaseGetVersionRequest();
|
|
5419
|
+
while (reader.pos < end) {
|
|
5420
|
+
const tag = reader.uint32();
|
|
5421
|
+
switch (tag >>> 3) {
|
|
5422
|
+
}
|
|
5423
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5424
|
+
break;
|
|
5425
|
+
}
|
|
5426
|
+
reader.skip(tag & 7);
|
|
4859
5427
|
}
|
|
4860
|
-
|
|
5428
|
+
return message;
|
|
5429
|
+
}
|
|
5430
|
+
finally {
|
|
5431
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4861
5432
|
}
|
|
4862
|
-
return message;
|
|
4863
5433
|
},
|
|
4864
5434
|
fromJSON(_) {
|
|
4865
5435
|
return {};
|
|
@@ -4888,25 +5458,35 @@ export const GetVersionResponse = {
|
|
|
4888
5458
|
},
|
|
4889
5459
|
decode(input, length) {
|
|
4890
5460
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4891
|
-
const
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
5461
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5462
|
+
if (previousRecursionDepth >= 100) {
|
|
5463
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5464
|
+
}
|
|
5465
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5466
|
+
try {
|
|
5467
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5468
|
+
const message = createBaseGetVersionResponse();
|
|
5469
|
+
while (reader.pos < end) {
|
|
5470
|
+
const tag = reader.uint32();
|
|
5471
|
+
switch (tag >>> 3) {
|
|
5472
|
+
case 1: {
|
|
5473
|
+
if (tag !== 10) {
|
|
5474
|
+
break;
|
|
5475
|
+
}
|
|
5476
|
+
message.version = reader.string();
|
|
5477
|
+
continue;
|
|
5478
|
+
}
|
|
4902
5479
|
}
|
|
5480
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5481
|
+
break;
|
|
5482
|
+
}
|
|
5483
|
+
reader.skip(tag & 7);
|
|
4903
5484
|
}
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
reader.
|
|
5485
|
+
return message;
|
|
5486
|
+
}
|
|
5487
|
+
finally {
|
|
5488
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4908
5489
|
}
|
|
4909
|
-
return message;
|
|
4910
5490
|
},
|
|
4911
5491
|
fromJSON(object) {
|
|
4912
5492
|
return { version: isSet(object.version) ? globalThis.String(object.version) : "" };
|
|
@@ -4942,32 +5522,42 @@ export const IsBlockhashValidRequest = {
|
|
|
4942
5522
|
},
|
|
4943
5523
|
decode(input, length) {
|
|
4944
5524
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4945
|
-
const
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
5525
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5526
|
+
if (previousRecursionDepth >= 100) {
|
|
5527
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5528
|
+
}
|
|
5529
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5530
|
+
try {
|
|
5531
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5532
|
+
const message = createBaseIsBlockhashValidRequest();
|
|
5533
|
+
while (reader.pos < end) {
|
|
5534
|
+
const tag = reader.uint32();
|
|
5535
|
+
switch (tag >>> 3) {
|
|
5536
|
+
case 1: {
|
|
5537
|
+
if (tag !== 10) {
|
|
5538
|
+
break;
|
|
5539
|
+
}
|
|
5540
|
+
message.blockhash = reader.string();
|
|
5541
|
+
continue;
|
|
5542
|
+
}
|
|
5543
|
+
case 2: {
|
|
5544
|
+
if (tag !== 16) {
|
|
5545
|
+
break;
|
|
5546
|
+
}
|
|
5547
|
+
message.commitment = reader.int32();
|
|
5548
|
+
continue;
|
|
4960
5549
|
}
|
|
4961
|
-
message.commitment = reader.int32();
|
|
4962
|
-
continue;
|
|
4963
5550
|
}
|
|
5551
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5552
|
+
break;
|
|
5553
|
+
}
|
|
5554
|
+
reader.skip(tag & 7);
|
|
4964
5555
|
}
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
reader.
|
|
5556
|
+
return message;
|
|
5557
|
+
}
|
|
5558
|
+
finally {
|
|
5559
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4969
5560
|
}
|
|
4970
|
-
return message;
|
|
4971
5561
|
},
|
|
4972
5562
|
fromJSON(object) {
|
|
4973
5563
|
return {
|
|
@@ -5013,32 +5603,42 @@ export const IsBlockhashValidResponse = {
|
|
|
5013
5603
|
},
|
|
5014
5604
|
decode(input, length) {
|
|
5015
5605
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5016
|
-
const
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5606
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5607
|
+
if (previousRecursionDepth >= 100) {
|
|
5608
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5609
|
+
}
|
|
5610
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5611
|
+
try {
|
|
5612
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5613
|
+
const message = createBaseIsBlockhashValidResponse();
|
|
5614
|
+
while (reader.pos < end) {
|
|
5615
|
+
const tag = reader.uint32();
|
|
5616
|
+
switch (tag >>> 3) {
|
|
5617
|
+
case 1: {
|
|
5618
|
+
if (tag !== 8) {
|
|
5619
|
+
break;
|
|
5620
|
+
}
|
|
5621
|
+
message.slot = reader.uint64();
|
|
5622
|
+
continue;
|
|
5623
|
+
}
|
|
5624
|
+
case 2: {
|
|
5625
|
+
if (tag !== 16) {
|
|
5626
|
+
break;
|
|
5627
|
+
}
|
|
5628
|
+
message.valid = reader.bool();
|
|
5629
|
+
continue;
|
|
5031
5630
|
}
|
|
5032
|
-
message.valid = reader.bool();
|
|
5033
|
-
continue;
|
|
5034
5631
|
}
|
|
5632
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5633
|
+
break;
|
|
5634
|
+
}
|
|
5635
|
+
reader.skip(tag & 7);
|
|
5035
5636
|
}
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
reader.
|
|
5637
|
+
return message;
|
|
5638
|
+
}
|
|
5639
|
+
finally {
|
|
5640
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5040
5641
|
}
|
|
5041
|
-
return message;
|
|
5042
5642
|
},
|
|
5043
5643
|
fromJSON(object) {
|
|
5044
5644
|
return {
|
|
@@ -5061,7 +5661,7 @@ export const IsBlockhashValidResponse = {
|
|
|
5061
5661
|
},
|
|
5062
5662
|
fromPartial(object) {
|
|
5063
5663
|
const message = createBaseIsBlockhashValidResponse();
|
|
5064
|
-
message.slot = object.slot
|
|
5664
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
5065
5665
|
message.valid = object.valid ?? false;
|
|
5066
5666
|
return message;
|
|
5067
5667
|
},
|