@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/jetstream.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: jetstream.proto
|
|
6
6
|
/* eslint-disable */
|
|
@@ -8,6 +8,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
8
8
|
import { makeGenericClientConstructor, } from "@grpc/grpc-js";
|
|
9
9
|
import { Timestamp } from "./google/protobuf/timestamp.js";
|
|
10
10
|
export const protobufPackage = "jetstream";
|
|
11
|
+
export const protobufFileName = "jetstream.proto";
|
|
11
12
|
function createBaseSubscribeRequest() {
|
|
12
13
|
return { transactions: {}, accounts: {}, ping: undefined };
|
|
13
14
|
}
|
|
@@ -26,57 +27,77 @@ export const SubscribeRequest = {
|
|
|
26
27
|
},
|
|
27
28
|
decode(input, length) {
|
|
28
29
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
30
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
31
|
+
if (previousRecursionDepth >= 100) {
|
|
32
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
33
|
+
}
|
|
34
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
35
|
+
try {
|
|
36
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBaseSubscribeRequest();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1: {
|
|
42
|
+
if (tag !== 10) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
const entry1 = SubscribeRequest_TransactionsEntry.decode(reader, reader.uint32());
|
|
46
|
+
if (entry1.value !== undefined) {
|
|
47
|
+
message.transactions[entry1.key] = entry1.value;
|
|
48
|
+
}
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
case 2: {
|
|
52
|
+
if (tag !== 18) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
const entry2 = SubscribeRequest_AccountsEntry.decode(reader, reader.uint32());
|
|
56
|
+
if (entry2.value !== undefined) {
|
|
57
|
+
message.accounts[entry2.key] = entry2.value;
|
|
58
|
+
}
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
case 4: {
|
|
62
|
+
if (tag !== 34) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
message.ping = SubscribeRequestPing.decode(reader, reader.uint32());
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
reader.skip(tag & 7);
|
|
73
|
+
}
|
|
74
|
+
return message;
|
|
75
|
+
}
|
|
76
|
+
finally {
|
|
77
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
66
78
|
}
|
|
67
|
-
return message;
|
|
68
79
|
},
|
|
69
80
|
fromJSON(object) {
|
|
70
81
|
return {
|
|
71
82
|
transactions: isObject(object.transactions)
|
|
72
83
|
? globalThis.Object.entries(object.transactions).reduce((acc, [key, value]) => {
|
|
73
|
-
acc
|
|
84
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
85
|
+
value: SubscribeRequestFilterTransactions.fromJSON(value),
|
|
86
|
+
enumerable: true,
|
|
87
|
+
configurable: true,
|
|
88
|
+
writable: true,
|
|
89
|
+
});
|
|
74
90
|
return acc;
|
|
75
91
|
}, {})
|
|
76
92
|
: {},
|
|
77
93
|
accounts: isObject(object.accounts)
|
|
78
94
|
? globalThis.Object.entries(object.accounts).reduce((acc, [key, value]) => {
|
|
79
|
-
acc
|
|
95
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
96
|
+
value: SubscribeRequestFilterAccounts.fromJSON(value),
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true,
|
|
100
|
+
});
|
|
80
101
|
return acc;
|
|
81
102
|
}, {})
|
|
82
103
|
: {},
|
|
@@ -148,32 +169,42 @@ export const SubscribeRequest_TransactionsEntry = {
|
|
|
148
169
|
},
|
|
149
170
|
decode(input, length) {
|
|
150
171
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
172
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
173
|
+
if (previousRecursionDepth >= 100) {
|
|
174
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
175
|
+
}
|
|
176
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
177
|
+
try {
|
|
178
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
179
|
+
const message = createBaseSubscribeRequest_TransactionsEntry();
|
|
180
|
+
while (reader.pos < end) {
|
|
181
|
+
const tag = reader.uint32();
|
|
182
|
+
switch (tag >>> 3) {
|
|
183
|
+
case 1: {
|
|
184
|
+
if (tag !== 10) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.key = reader.string();
|
|
188
|
+
continue;
|
|
159
189
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
190
|
+
case 2: {
|
|
191
|
+
if (tag !== 18) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.value = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
|
|
195
|
+
continue;
|
|
166
196
|
}
|
|
167
|
-
message.value = SubscribeRequestFilterTransactions.decode(reader, reader.uint32());
|
|
168
|
-
continue;
|
|
169
197
|
}
|
|
198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
reader.skip(tag & 7);
|
|
170
202
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
reader.
|
|
203
|
+
return message;
|
|
204
|
+
}
|
|
205
|
+
finally {
|
|
206
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
175
207
|
}
|
|
176
|
-
return message;
|
|
177
208
|
},
|
|
178
209
|
fromJSON(object) {
|
|
179
210
|
return {
|
|
@@ -218,32 +249,42 @@ export const SubscribeRequest_AccountsEntry = {
|
|
|
218
249
|
},
|
|
219
250
|
decode(input, length) {
|
|
220
251
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
252
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
253
|
+
if (previousRecursionDepth >= 100) {
|
|
254
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
255
|
+
}
|
|
256
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
257
|
+
try {
|
|
258
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
259
|
+
const message = createBaseSubscribeRequest_AccountsEntry();
|
|
260
|
+
while (reader.pos < end) {
|
|
261
|
+
const tag = reader.uint32();
|
|
262
|
+
switch (tag >>> 3) {
|
|
263
|
+
case 1: {
|
|
264
|
+
if (tag !== 10) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.key = reader.string();
|
|
268
|
+
continue;
|
|
229
269
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
270
|
+
case 2: {
|
|
271
|
+
if (tag !== 18) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
message.value = SubscribeRequestFilterAccounts.decode(reader, reader.uint32());
|
|
275
|
+
continue;
|
|
236
276
|
}
|
|
237
|
-
message.value = SubscribeRequestFilterAccounts.decode(reader, reader.uint32());
|
|
238
|
-
continue;
|
|
239
277
|
}
|
|
278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
reader.skip(tag & 7);
|
|
240
282
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
reader.
|
|
283
|
+
return message;
|
|
284
|
+
}
|
|
285
|
+
finally {
|
|
286
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
245
287
|
}
|
|
246
|
-
return message;
|
|
247
288
|
},
|
|
248
289
|
fromJSON(object) {
|
|
249
290
|
return {
|
|
@@ -291,39 +332,49 @@ export const SubscribeRequestFilterTransactions = {
|
|
|
291
332
|
},
|
|
292
333
|
decode(input, length) {
|
|
293
334
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
335
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
336
|
+
if (previousRecursionDepth >= 100) {
|
|
337
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
338
|
+
}
|
|
339
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
340
|
+
try {
|
|
341
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
342
|
+
const message = createBaseSubscribeRequestFilterTransactions();
|
|
343
|
+
while (reader.pos < end) {
|
|
344
|
+
const tag = reader.uint32();
|
|
345
|
+
switch (tag >>> 3) {
|
|
346
|
+
case 1: {
|
|
347
|
+
if (tag !== 10) {
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
message.accountInclude.push(reader.string());
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
case 2: {
|
|
354
|
+
if (tag !== 18) {
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
message.accountExclude.push(reader.string());
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
case 3: {
|
|
361
|
+
if (tag !== 26) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
message.accountRequired.push(reader.string());
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
reader.skip(tag & 7);
|
|
372
|
+
}
|
|
373
|
+
return message;
|
|
374
|
+
}
|
|
375
|
+
finally {
|
|
376
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
325
377
|
}
|
|
326
|
-
return message;
|
|
327
378
|
},
|
|
328
379
|
fromJSON(object) {
|
|
329
380
|
return {
|
|
@@ -386,39 +437,49 @@ export const SubscribeRequestFilterAccounts = {
|
|
|
386
437
|
},
|
|
387
438
|
decode(input, length) {
|
|
388
439
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
440
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
441
|
+
if (previousRecursionDepth >= 100) {
|
|
442
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
443
|
+
}
|
|
444
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
445
|
+
try {
|
|
446
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
447
|
+
const message = createBaseSubscribeRequestFilterAccounts();
|
|
448
|
+
while (reader.pos < end) {
|
|
449
|
+
const tag = reader.uint32();
|
|
450
|
+
switch (tag >>> 3) {
|
|
451
|
+
case 1: {
|
|
452
|
+
if (tag !== 10) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
message.account.push(reader.string());
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
case 2: {
|
|
459
|
+
if (tag !== 18) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
message.owner.push(reader.string());
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
case 3: {
|
|
466
|
+
if (tag !== 26) {
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
message.filters.push(SubscribeRequestFilterAccountsFilter.decode(reader, reader.uint32()));
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
reader.skip(tag & 7);
|
|
477
|
+
}
|
|
478
|
+
return message;
|
|
479
|
+
}
|
|
480
|
+
finally {
|
|
481
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
420
482
|
}
|
|
421
|
-
return message;
|
|
422
483
|
},
|
|
423
484
|
fromJSON(object) {
|
|
424
485
|
return {
|
|
@@ -474,39 +535,49 @@ export const SubscribeRequestFilterAccountsFilter = {
|
|
|
474
535
|
},
|
|
475
536
|
decode(input, length) {
|
|
476
537
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
538
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
539
|
+
if (previousRecursionDepth >= 100) {
|
|
540
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
541
|
+
}
|
|
542
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
543
|
+
try {
|
|
544
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
545
|
+
const message = createBaseSubscribeRequestFilterAccountsFilter();
|
|
546
|
+
while (reader.pos < end) {
|
|
547
|
+
const tag = reader.uint32();
|
|
548
|
+
switch (tag >>> 3) {
|
|
549
|
+
case 1: {
|
|
550
|
+
if (tag !== 10) {
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
message.memcmp = SubscribeRequestFilterAccountsFilterMemcmp.decode(reader, reader.uint32());
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
case 2: {
|
|
557
|
+
if (tag !== 16) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
message.datasize = reader.uint64();
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
case 3: {
|
|
564
|
+
if (tag !== 26) {
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
message.lamports = SubscribeRequestFilterAccountsFilterLamports.decode(reader, reader.uint32());
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
reader.skip(tag & 7);
|
|
575
|
+
}
|
|
576
|
+
return message;
|
|
577
|
+
}
|
|
578
|
+
finally {
|
|
579
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
508
580
|
}
|
|
509
|
-
return message;
|
|
510
581
|
},
|
|
511
582
|
fromJSON(object) {
|
|
512
583
|
return {
|
|
@@ -538,7 +609,9 @@ export const SubscribeRequestFilterAccountsFilter = {
|
|
|
538
609
|
message.memcmp = (object.memcmp !== undefined && object.memcmp !== null)
|
|
539
610
|
? SubscribeRequestFilterAccountsFilterMemcmp.fromPartial(object.memcmp)
|
|
540
611
|
: undefined;
|
|
541
|
-
message.datasize = object.datasize
|
|
612
|
+
message.datasize = (object.datasize !== undefined && object.datasize !== null)
|
|
613
|
+
? BigInt(object.datasize)
|
|
614
|
+
: undefined;
|
|
542
615
|
message.lamports = (object.lamports !== undefined && object.lamports !== null)
|
|
543
616
|
? SubscribeRequestFilterAccountsFilterLamports.fromPartial(object.lamports)
|
|
544
617
|
: undefined;
|
|
@@ -569,46 +642,56 @@ export const SubscribeRequestFilterAccountsFilterMemcmp = {
|
|
|
569
642
|
},
|
|
570
643
|
decode(input, length) {
|
|
571
644
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
645
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
646
|
+
if (previousRecursionDepth >= 100) {
|
|
647
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
648
|
+
}
|
|
649
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
650
|
+
try {
|
|
651
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
652
|
+
const message = createBaseSubscribeRequestFilterAccountsFilterMemcmp();
|
|
653
|
+
while (reader.pos < end) {
|
|
654
|
+
const tag = reader.uint32();
|
|
655
|
+
switch (tag >>> 3) {
|
|
656
|
+
case 1: {
|
|
657
|
+
if (tag !== 8) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.offset = reader.uint64();
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
case 2: {
|
|
664
|
+
if (tag !== 18) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
message.bytes = reader.bytes();
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
case 3: {
|
|
671
|
+
if (tag !== 26) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
message.base58 = reader.string();
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
case 4: {
|
|
678
|
+
if (tag !== 34) {
|
|
679
|
+
break;
|
|
680
|
+
}
|
|
681
|
+
message.base64 = reader.string();
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
686
|
+
break;
|
|
687
|
+
}
|
|
688
|
+
reader.skip(tag & 7);
|
|
689
|
+
}
|
|
690
|
+
return message;
|
|
691
|
+
}
|
|
692
|
+
finally {
|
|
693
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
610
694
|
}
|
|
611
|
-
return message;
|
|
612
695
|
},
|
|
613
696
|
fromJSON(object) {
|
|
614
697
|
return {
|
|
@@ -639,7 +722,7 @@ export const SubscribeRequestFilterAccountsFilterMemcmp = {
|
|
|
639
722
|
},
|
|
640
723
|
fromPartial(object) {
|
|
641
724
|
const message = createBaseSubscribeRequestFilterAccountsFilterMemcmp();
|
|
642
|
-
message.offset = object.offset
|
|
725
|
+
message.offset = (object.offset !== undefined && object.offset !== null) ? BigInt(object.offset) : 0n;
|
|
643
726
|
message.bytes = object.bytes ?? undefined;
|
|
644
727
|
message.base58 = object.base58 ?? undefined;
|
|
645
728
|
message.base64 = object.base64 ?? undefined;
|
|
@@ -679,46 +762,56 @@ export const SubscribeRequestFilterAccountsFilterLamports = {
|
|
|
679
762
|
},
|
|
680
763
|
decode(input, length) {
|
|
681
764
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
765
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
766
|
+
if (previousRecursionDepth >= 100) {
|
|
767
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
768
|
+
}
|
|
769
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
770
|
+
try {
|
|
771
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
772
|
+
const message = createBaseSubscribeRequestFilterAccountsFilterLamports();
|
|
773
|
+
while (reader.pos < end) {
|
|
774
|
+
const tag = reader.uint32();
|
|
775
|
+
switch (tag >>> 3) {
|
|
776
|
+
case 1: {
|
|
777
|
+
if (tag !== 8) {
|
|
778
|
+
break;
|
|
779
|
+
}
|
|
780
|
+
message.eq = reader.uint64();
|
|
781
|
+
continue;
|
|
782
|
+
}
|
|
783
|
+
case 2: {
|
|
784
|
+
if (tag !== 16) {
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
message.ne = reader.uint64();
|
|
788
|
+
continue;
|
|
789
|
+
}
|
|
790
|
+
case 3: {
|
|
791
|
+
if (tag !== 24) {
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
message.lt = reader.uint64();
|
|
795
|
+
continue;
|
|
796
|
+
}
|
|
797
|
+
case 4: {
|
|
798
|
+
if (tag !== 32) {
|
|
799
|
+
break;
|
|
800
|
+
}
|
|
801
|
+
message.gt = reader.uint64();
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
806
|
+
break;
|
|
807
|
+
}
|
|
808
|
+
reader.skip(tag & 7);
|
|
809
|
+
}
|
|
810
|
+
return message;
|
|
811
|
+
}
|
|
812
|
+
finally {
|
|
813
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
720
814
|
}
|
|
721
|
-
return message;
|
|
722
815
|
},
|
|
723
816
|
fromJSON(object) {
|
|
724
817
|
return {
|
|
@@ -749,10 +842,10 @@ export const SubscribeRequestFilterAccountsFilterLamports = {
|
|
|
749
842
|
},
|
|
750
843
|
fromPartial(object) {
|
|
751
844
|
const message = createBaseSubscribeRequestFilterAccountsFilterLamports();
|
|
752
|
-
message.eq = object.eq
|
|
753
|
-
message.ne = object.ne
|
|
754
|
-
message.lt = object.lt
|
|
755
|
-
message.gt = object.gt
|
|
845
|
+
message.eq = (object.eq !== undefined && object.eq !== null) ? BigInt(object.eq) : undefined;
|
|
846
|
+
message.ne = (object.ne !== undefined && object.ne !== null) ? BigInt(object.ne) : undefined;
|
|
847
|
+
message.lt = (object.lt !== undefined && object.lt !== null) ? BigInt(object.lt) : undefined;
|
|
848
|
+
message.gt = (object.gt !== undefined && object.gt !== null) ? BigInt(object.gt) : undefined;
|
|
756
849
|
return message;
|
|
757
850
|
},
|
|
758
851
|
};
|
|
@@ -768,25 +861,35 @@ export const SubscribeRequestPing = {
|
|
|
768
861
|
},
|
|
769
862
|
decode(input, length) {
|
|
770
863
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
864
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
865
|
+
if (previousRecursionDepth >= 100) {
|
|
866
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
867
|
+
}
|
|
868
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
869
|
+
try {
|
|
870
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
871
|
+
const message = createBaseSubscribeRequestPing();
|
|
872
|
+
while (reader.pos < end) {
|
|
873
|
+
const tag = reader.uint32();
|
|
874
|
+
switch (tag >>> 3) {
|
|
875
|
+
case 1: {
|
|
876
|
+
if (tag !== 8) {
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
message.id = reader.int32();
|
|
880
|
+
continue;
|
|
779
881
|
}
|
|
780
|
-
message.id = reader.int32();
|
|
781
|
-
continue;
|
|
782
882
|
}
|
|
883
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
reader.skip(tag & 7);
|
|
783
887
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
reader.
|
|
888
|
+
return message;
|
|
889
|
+
}
|
|
890
|
+
finally {
|
|
891
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
788
892
|
}
|
|
789
|
-
return message;
|
|
790
893
|
},
|
|
791
894
|
fromJSON(object) {
|
|
792
895
|
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
@@ -841,60 +944,70 @@ export const SubscribeUpdate = {
|
|
|
841
944
|
},
|
|
842
945
|
decode(input, length) {
|
|
843
946
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
844
|
-
const
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
947
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
948
|
+
if (previousRecursionDepth >= 100) {
|
|
949
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
950
|
+
}
|
|
951
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
952
|
+
try {
|
|
953
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
954
|
+
const message = createBaseSubscribeUpdate();
|
|
955
|
+
while (reader.pos < end) {
|
|
956
|
+
const tag = reader.uint32();
|
|
957
|
+
switch (tag >>> 3) {
|
|
958
|
+
case 1: {
|
|
959
|
+
if (tag !== 10) {
|
|
960
|
+
break;
|
|
961
|
+
}
|
|
962
|
+
message.filters.push(reader.string());
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
case 2: {
|
|
966
|
+
if (tag !== 18) {
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
case 3: {
|
|
973
|
+
if (tag !== 26) {
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
message.transaction = SubscribeUpdateTransaction.decode(reader, reader.uint32());
|
|
977
|
+
continue;
|
|
978
|
+
}
|
|
979
|
+
case 4: {
|
|
980
|
+
if (tag !== 34) {
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
message.account = SubscribeUpdateAccount.decode(reader, reader.uint32());
|
|
984
|
+
continue;
|
|
985
|
+
}
|
|
986
|
+
case 5: {
|
|
987
|
+
if (tag !== 42) {
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
message.ping = SubscribeUpdatePing.decode(reader, reader.uint32());
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
case 6: {
|
|
994
|
+
if (tag !== 50) {
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
message.pong = SubscribeUpdatePong.decode(reader, reader.uint32());
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1002
|
+
break;
|
|
1003
|
+
}
|
|
1004
|
+
reader.skip(tag & 7);
|
|
1005
|
+
}
|
|
1006
|
+
return message;
|
|
1007
|
+
}
|
|
1008
|
+
finally {
|
|
1009
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
896
1010
|
}
|
|
897
|
-
return message;
|
|
898
1011
|
},
|
|
899
1012
|
fromJSON(object) {
|
|
900
1013
|
return {
|
|
@@ -972,32 +1085,42 @@ export const SubscribeUpdateTransaction = {
|
|
|
972
1085
|
},
|
|
973
1086
|
decode(input, length) {
|
|
974
1087
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
975
|
-
const
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1088
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1089
|
+
if (previousRecursionDepth >= 100) {
|
|
1090
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1091
|
+
}
|
|
1092
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1093
|
+
try {
|
|
1094
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1095
|
+
const message = createBaseSubscribeUpdateTransaction();
|
|
1096
|
+
while (reader.pos < end) {
|
|
1097
|
+
const tag = reader.uint32();
|
|
1098
|
+
switch (tag >>> 3) {
|
|
1099
|
+
case 1: {
|
|
1100
|
+
if (tag !== 10) {
|
|
1101
|
+
break;
|
|
1102
|
+
}
|
|
1103
|
+
message.transaction = SubscribeUpdateTransactionInfo.decode(reader, reader.uint32());
|
|
1104
|
+
continue;
|
|
983
1105
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1106
|
+
case 2: {
|
|
1107
|
+
if (tag !== 16) {
|
|
1108
|
+
break;
|
|
1109
|
+
}
|
|
1110
|
+
message.slot = reader.uint64();
|
|
1111
|
+
continue;
|
|
990
1112
|
}
|
|
991
|
-
message.slot = reader.uint64();
|
|
992
|
-
continue;
|
|
993
1113
|
}
|
|
1114
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1115
|
+
break;
|
|
1116
|
+
}
|
|
1117
|
+
reader.skip(tag & 7);
|
|
994
1118
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
reader.
|
|
1119
|
+
return message;
|
|
1120
|
+
}
|
|
1121
|
+
finally {
|
|
1122
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
999
1123
|
}
|
|
1000
|
-
return message;
|
|
1001
1124
|
},
|
|
1002
1125
|
fromJSON(object) {
|
|
1003
1126
|
return {
|
|
@@ -1023,7 +1146,7 @@ export const SubscribeUpdateTransaction = {
|
|
|
1023
1146
|
message.transaction = (object.transaction !== undefined && object.transaction !== null)
|
|
1024
1147
|
? SubscribeUpdateTransactionInfo.fromPartial(object.transaction)
|
|
1025
1148
|
: undefined;
|
|
1026
|
-
message.slot = object.slot
|
|
1149
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
1027
1150
|
return message;
|
|
1028
1151
|
},
|
|
1029
1152
|
};
|
|
@@ -1080,88 +1203,98 @@ export const SubscribeUpdateTransactionInfo = {
|
|
|
1080
1203
|
},
|
|
1081
1204
|
decode(input, length) {
|
|
1082
1205
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
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
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1206
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1207
|
+
if (previousRecursionDepth >= 100) {
|
|
1208
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1209
|
+
}
|
|
1210
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1211
|
+
try {
|
|
1212
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1213
|
+
const message = createBaseSubscribeUpdateTransactionInfo();
|
|
1214
|
+
while (reader.pos < end) {
|
|
1215
|
+
const tag = reader.uint32();
|
|
1216
|
+
switch (tag >>> 3) {
|
|
1217
|
+
case 1: {
|
|
1218
|
+
if (tag !== 10) {
|
|
1219
|
+
break;
|
|
1220
|
+
}
|
|
1221
|
+
message.signature = reader.bytes();
|
|
1222
|
+
continue;
|
|
1223
|
+
}
|
|
1224
|
+
case 2: {
|
|
1225
|
+
if (tag !== 16) {
|
|
1226
|
+
break;
|
|
1227
|
+
}
|
|
1228
|
+
message.slot = reader.uint64();
|
|
1229
|
+
continue;
|
|
1230
|
+
}
|
|
1231
|
+
case 3: {
|
|
1232
|
+
if (tag !== 24) {
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
message.numRequiredSignatures = reader.uint32();
|
|
1236
|
+
continue;
|
|
1237
|
+
}
|
|
1238
|
+
case 4: {
|
|
1239
|
+
if (tag !== 32) {
|
|
1240
|
+
break;
|
|
1241
|
+
}
|
|
1242
|
+
message.numReadonlySignedAccounts = reader.uint32();
|
|
1243
|
+
continue;
|
|
1244
|
+
}
|
|
1245
|
+
case 5: {
|
|
1246
|
+
if (tag !== 40) {
|
|
1247
|
+
break;
|
|
1248
|
+
}
|
|
1249
|
+
message.numReadonlyUnsignedAccounts = reader.uint32();
|
|
1250
|
+
continue;
|
|
1251
|
+
}
|
|
1252
|
+
case 6: {
|
|
1253
|
+
if (tag !== 50) {
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1256
|
+
message.recentBlockhash = reader.bytes();
|
|
1257
|
+
continue;
|
|
1258
|
+
}
|
|
1259
|
+
case 7: {
|
|
1260
|
+
if (tag !== 58) {
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
message.signatures.push(reader.bytes());
|
|
1264
|
+
continue;
|
|
1265
|
+
}
|
|
1266
|
+
case 8: {
|
|
1267
|
+
if (tag !== 66) {
|
|
1268
|
+
break;
|
|
1269
|
+
}
|
|
1270
|
+
message.accountKeys.push(reader.bytes());
|
|
1271
|
+
continue;
|
|
1272
|
+
}
|
|
1273
|
+
case 9: {
|
|
1274
|
+
if (tag !== 74) {
|
|
1275
|
+
break;
|
|
1276
|
+
}
|
|
1277
|
+
message.instructions.push(CompiledInstruction.decode(reader, reader.uint32()));
|
|
1278
|
+
continue;
|
|
1279
|
+
}
|
|
1280
|
+
case 10: {
|
|
1281
|
+
if (tag !== 82) {
|
|
1282
|
+
break;
|
|
1283
|
+
}
|
|
1284
|
+
message.addressTableLookups.push(MessageAddressTableLookup.decode(reader, reader.uint32()));
|
|
1285
|
+
continue;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1289
|
+
break;
|
|
1290
|
+
}
|
|
1291
|
+
reader.skip(tag & 7);
|
|
1292
|
+
}
|
|
1293
|
+
return message;
|
|
1294
|
+
}
|
|
1295
|
+
finally {
|
|
1296
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1163
1297
|
}
|
|
1164
|
-
return message;
|
|
1165
1298
|
},
|
|
1166
1299
|
fromJSON(object) {
|
|
1167
1300
|
return {
|
|
@@ -1245,7 +1378,7 @@ export const SubscribeUpdateTransactionInfo = {
|
|
|
1245
1378
|
fromPartial(object) {
|
|
1246
1379
|
const message = createBaseSubscribeUpdateTransactionInfo();
|
|
1247
1380
|
message.signature = object.signature ?? new Uint8Array(0);
|
|
1248
|
-
message.slot = object.slot
|
|
1381
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
1249
1382
|
message.numRequiredSignatures = object.numRequiredSignatures ?? 0;
|
|
1250
1383
|
message.numReadonlySignedAccounts = object.numReadonlySignedAccounts ?? 0;
|
|
1251
1384
|
message.numReadonlyUnsignedAccounts = object.numReadonlyUnsignedAccounts ?? 0;
|
|
@@ -1279,39 +1412,49 @@ export const SubscribeUpdateAccount = {
|
|
|
1279
1412
|
},
|
|
1280
1413
|
decode(input, length) {
|
|
1281
1414
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1282
|
-
const
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1415
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1416
|
+
if (previousRecursionDepth >= 100) {
|
|
1417
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1418
|
+
}
|
|
1419
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1420
|
+
try {
|
|
1421
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1422
|
+
const message = createBaseSubscribeUpdateAccount();
|
|
1423
|
+
while (reader.pos < end) {
|
|
1424
|
+
const tag = reader.uint32();
|
|
1425
|
+
switch (tag >>> 3) {
|
|
1426
|
+
case 1: {
|
|
1427
|
+
if (tag !== 10) {
|
|
1428
|
+
break;
|
|
1429
|
+
}
|
|
1430
|
+
message.account = SubscribeUpdateAccountInfo.decode(reader, reader.uint32());
|
|
1431
|
+
continue;
|
|
1432
|
+
}
|
|
1433
|
+
case 2: {
|
|
1434
|
+
if (tag !== 16) {
|
|
1435
|
+
break;
|
|
1436
|
+
}
|
|
1437
|
+
message.slot = reader.uint64();
|
|
1438
|
+
continue;
|
|
1439
|
+
}
|
|
1440
|
+
case 3: {
|
|
1441
|
+
if (tag !== 24) {
|
|
1442
|
+
break;
|
|
1443
|
+
}
|
|
1444
|
+
message.isStartup = reader.bool();
|
|
1445
|
+
continue;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1449
|
+
break;
|
|
1450
|
+
}
|
|
1451
|
+
reader.skip(tag & 7);
|
|
1452
|
+
}
|
|
1453
|
+
return message;
|
|
1454
|
+
}
|
|
1455
|
+
finally {
|
|
1456
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1313
1457
|
}
|
|
1314
|
-
return message;
|
|
1315
1458
|
},
|
|
1316
1459
|
fromJSON(object) {
|
|
1317
1460
|
return {
|
|
@@ -1345,7 +1488,7 @@ export const SubscribeUpdateAccount = {
|
|
|
1345
1488
|
message.account = (object.account !== undefined && object.account !== null)
|
|
1346
1489
|
? SubscribeUpdateAccountInfo.fromPartial(object.account)
|
|
1347
1490
|
: undefined;
|
|
1348
|
-
message.slot = object.slot
|
|
1491
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
1349
1492
|
message.isStartup = object.isStartup ?? false;
|
|
1350
1493
|
return message;
|
|
1351
1494
|
},
|
|
@@ -1401,74 +1544,84 @@ export const SubscribeUpdateAccountInfo = {
|
|
|
1401
1544
|
},
|
|
1402
1545
|
decode(input, length) {
|
|
1403
1546
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1547
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1548
|
+
if (previousRecursionDepth >= 100) {
|
|
1549
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1550
|
+
}
|
|
1551
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1552
|
+
try {
|
|
1553
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1554
|
+
const message = createBaseSubscribeUpdateAccountInfo();
|
|
1555
|
+
while (reader.pos < end) {
|
|
1556
|
+
const tag = reader.uint32();
|
|
1557
|
+
switch (tag >>> 3) {
|
|
1558
|
+
case 1: {
|
|
1559
|
+
if (tag !== 10) {
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
message.pubkey = reader.bytes();
|
|
1563
|
+
continue;
|
|
1564
|
+
}
|
|
1565
|
+
case 2: {
|
|
1566
|
+
if (tag !== 16) {
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
message.lamports = reader.uint64();
|
|
1570
|
+
continue;
|
|
1571
|
+
}
|
|
1572
|
+
case 3: {
|
|
1573
|
+
if (tag !== 26) {
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
|
+
message.owner = reader.bytes();
|
|
1577
|
+
continue;
|
|
1578
|
+
}
|
|
1579
|
+
case 4: {
|
|
1580
|
+
if (tag !== 32) {
|
|
1581
|
+
break;
|
|
1582
|
+
}
|
|
1583
|
+
message.executable = reader.bool();
|
|
1584
|
+
continue;
|
|
1585
|
+
}
|
|
1586
|
+
case 5: {
|
|
1587
|
+
if (tag !== 40) {
|
|
1588
|
+
break;
|
|
1589
|
+
}
|
|
1590
|
+
message.rentEpoch = reader.uint64();
|
|
1591
|
+
continue;
|
|
1592
|
+
}
|
|
1593
|
+
case 6: {
|
|
1594
|
+
if (tag !== 50) {
|
|
1595
|
+
break;
|
|
1596
|
+
}
|
|
1597
|
+
message.data = reader.bytes();
|
|
1598
|
+
continue;
|
|
1599
|
+
}
|
|
1600
|
+
case 7: {
|
|
1601
|
+
if (tag !== 56) {
|
|
1602
|
+
break;
|
|
1603
|
+
}
|
|
1604
|
+
message.writeVersion = reader.uint64();
|
|
1605
|
+
continue;
|
|
1606
|
+
}
|
|
1607
|
+
case 8: {
|
|
1608
|
+
if (tag !== 66) {
|
|
1609
|
+
break;
|
|
1610
|
+
}
|
|
1611
|
+
message.txnSignature = reader.bytes();
|
|
1612
|
+
continue;
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
reader.skip(tag & 7);
|
|
1619
|
+
}
|
|
1620
|
+
return message;
|
|
1621
|
+
}
|
|
1622
|
+
finally {
|
|
1623
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1470
1624
|
}
|
|
1471
|
-
return message;
|
|
1472
1625
|
},
|
|
1473
1626
|
fromJSON(object) {
|
|
1474
1627
|
return {
|
|
@@ -1528,12 +1681,14 @@ export const SubscribeUpdateAccountInfo = {
|
|
|
1528
1681
|
fromPartial(object) {
|
|
1529
1682
|
const message = createBaseSubscribeUpdateAccountInfo();
|
|
1530
1683
|
message.pubkey = object.pubkey ?? new Uint8Array(0);
|
|
1531
|
-
message.lamports = object.lamports
|
|
1684
|
+
message.lamports = (object.lamports !== undefined && object.lamports !== null) ? BigInt(object.lamports) : 0n;
|
|
1532
1685
|
message.owner = object.owner ?? new Uint8Array(0);
|
|
1533
1686
|
message.executable = object.executable ?? false;
|
|
1534
|
-
message.rentEpoch = object.rentEpoch
|
|
1687
|
+
message.rentEpoch = (object.rentEpoch !== undefined && object.rentEpoch !== null) ? BigInt(object.rentEpoch) : 0n;
|
|
1535
1688
|
message.data = object.data ?? new Uint8Array(0);
|
|
1536
|
-
message.writeVersion = object.writeVersion
|
|
1689
|
+
message.writeVersion = (object.writeVersion !== undefined && object.writeVersion !== null)
|
|
1690
|
+
? BigInt(object.writeVersion)
|
|
1691
|
+
: 0n;
|
|
1537
1692
|
message.txnSignature = object.txnSignature ?? new Uint8Array(0);
|
|
1538
1693
|
return message;
|
|
1539
1694
|
},
|
|
@@ -1547,18 +1702,28 @@ export const SubscribeUpdatePing = {
|
|
|
1547
1702
|
},
|
|
1548
1703
|
decode(input, length) {
|
|
1549
1704
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1705
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1706
|
+
if (previousRecursionDepth >= 100) {
|
|
1707
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1708
|
+
}
|
|
1709
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1710
|
+
try {
|
|
1711
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1712
|
+
const message = createBaseSubscribeUpdatePing();
|
|
1713
|
+
while (reader.pos < end) {
|
|
1714
|
+
const tag = reader.uint32();
|
|
1715
|
+
switch (tag >>> 3) {
|
|
1716
|
+
}
|
|
1717
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1718
|
+
break;
|
|
1719
|
+
}
|
|
1720
|
+
reader.skip(tag & 7);
|
|
1558
1721
|
}
|
|
1559
|
-
|
|
1722
|
+
return message;
|
|
1723
|
+
}
|
|
1724
|
+
finally {
|
|
1725
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1560
1726
|
}
|
|
1561
|
-
return message;
|
|
1562
1727
|
},
|
|
1563
1728
|
fromJSON(_) {
|
|
1564
1729
|
return {};
|
|
@@ -1587,25 +1752,35 @@ export const SubscribeUpdatePong = {
|
|
|
1587
1752
|
},
|
|
1588
1753
|
decode(input, length) {
|
|
1589
1754
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1755
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1756
|
+
if (previousRecursionDepth >= 100) {
|
|
1757
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1758
|
+
}
|
|
1759
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1760
|
+
try {
|
|
1761
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1762
|
+
const message = createBaseSubscribeUpdatePong();
|
|
1763
|
+
while (reader.pos < end) {
|
|
1764
|
+
const tag = reader.uint32();
|
|
1765
|
+
switch (tag >>> 3) {
|
|
1766
|
+
case 1: {
|
|
1767
|
+
if (tag !== 8) {
|
|
1768
|
+
break;
|
|
1769
|
+
}
|
|
1770
|
+
message.id = reader.int32();
|
|
1771
|
+
continue;
|
|
1598
1772
|
}
|
|
1599
|
-
message.id = reader.int32();
|
|
1600
|
-
continue;
|
|
1601
1773
|
}
|
|
1774
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1775
|
+
break;
|
|
1776
|
+
}
|
|
1777
|
+
reader.skip(tag & 7);
|
|
1602
1778
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
reader.
|
|
1779
|
+
return message;
|
|
1780
|
+
}
|
|
1781
|
+
finally {
|
|
1782
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1607
1783
|
}
|
|
1608
|
-
return message;
|
|
1609
1784
|
},
|
|
1610
1785
|
fromJSON(object) {
|
|
1611
1786
|
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
@@ -1644,39 +1819,49 @@ export const MessageAddressTableLookup = {
|
|
|
1644
1819
|
},
|
|
1645
1820
|
decode(input, length) {
|
|
1646
1821
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1647
|
-
const
|
|
1648
|
-
|
|
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
|
-
|
|
1822
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1823
|
+
if (previousRecursionDepth >= 100) {
|
|
1824
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1825
|
+
}
|
|
1826
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1827
|
+
try {
|
|
1828
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1829
|
+
const message = createBaseMessageAddressTableLookup();
|
|
1830
|
+
while (reader.pos < end) {
|
|
1831
|
+
const tag = reader.uint32();
|
|
1832
|
+
switch (tag >>> 3) {
|
|
1833
|
+
case 1: {
|
|
1834
|
+
if (tag !== 10) {
|
|
1835
|
+
break;
|
|
1836
|
+
}
|
|
1837
|
+
message.accountKey = reader.bytes();
|
|
1838
|
+
continue;
|
|
1839
|
+
}
|
|
1840
|
+
case 2: {
|
|
1841
|
+
if (tag !== 18) {
|
|
1842
|
+
break;
|
|
1843
|
+
}
|
|
1844
|
+
message.writableIndexes = reader.bytes();
|
|
1845
|
+
continue;
|
|
1846
|
+
}
|
|
1847
|
+
case 3: {
|
|
1848
|
+
if (tag !== 26) {
|
|
1849
|
+
break;
|
|
1850
|
+
}
|
|
1851
|
+
message.readonlyIndexes = reader.bytes();
|
|
1852
|
+
continue;
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1856
|
+
break;
|
|
1857
|
+
}
|
|
1858
|
+
reader.skip(tag & 7);
|
|
1859
|
+
}
|
|
1860
|
+
return message;
|
|
1861
|
+
}
|
|
1862
|
+
finally {
|
|
1863
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1678
1864
|
}
|
|
1679
|
-
return message;
|
|
1680
1865
|
},
|
|
1681
1866
|
fromJSON(object) {
|
|
1682
1867
|
return {
|
|
@@ -1739,39 +1924,49 @@ export const CompiledInstruction = {
|
|
|
1739
1924
|
},
|
|
1740
1925
|
decode(input, length) {
|
|
1741
1926
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1742
|
-
const
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1927
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1928
|
+
if (previousRecursionDepth >= 100) {
|
|
1929
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1930
|
+
}
|
|
1931
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1932
|
+
try {
|
|
1933
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1934
|
+
const message = createBaseCompiledInstruction();
|
|
1935
|
+
while (reader.pos < end) {
|
|
1936
|
+
const tag = reader.uint32();
|
|
1937
|
+
switch (tag >>> 3) {
|
|
1938
|
+
case 1: {
|
|
1939
|
+
if (tag !== 8) {
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
message.programIdIndex = reader.uint32();
|
|
1943
|
+
continue;
|
|
1944
|
+
}
|
|
1945
|
+
case 2: {
|
|
1946
|
+
if (tag !== 18) {
|
|
1947
|
+
break;
|
|
1948
|
+
}
|
|
1949
|
+
message.accounts = reader.bytes();
|
|
1950
|
+
continue;
|
|
1951
|
+
}
|
|
1952
|
+
case 3: {
|
|
1953
|
+
if (tag !== 26) {
|
|
1954
|
+
break;
|
|
1955
|
+
}
|
|
1956
|
+
message.data = reader.bytes();
|
|
1957
|
+
continue;
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1961
|
+
break;
|
|
1962
|
+
}
|
|
1963
|
+
reader.skip(tag & 7);
|
|
1964
|
+
}
|
|
1965
|
+
return message;
|
|
1966
|
+
}
|
|
1967
|
+
finally {
|
|
1968
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1773
1969
|
}
|
|
1774
|
-
return message;
|
|
1775
1970
|
},
|
|
1776
1971
|
fromJSON(object) {
|
|
1777
1972
|
return {
|
|
@@ -1820,25 +2015,35 @@ export const SubscribeParsedRequest = {
|
|
|
1820
2015
|
},
|
|
1821
2016
|
decode(input, length) {
|
|
1822
2017
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
2018
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2019
|
+
if (previousRecursionDepth >= 100) {
|
|
2020
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2021
|
+
}
|
|
2022
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2023
|
+
try {
|
|
2024
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2025
|
+
const message = createBaseSubscribeParsedRequest();
|
|
2026
|
+
while (reader.pos < end) {
|
|
2027
|
+
const tag = reader.uint32();
|
|
2028
|
+
switch (tag >>> 3) {
|
|
2029
|
+
case 1: {
|
|
2030
|
+
if (tag !== 10) {
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
message.ping = SubscribeRequestPing.decode(reader, reader.uint32());
|
|
2034
|
+
continue;
|
|
1831
2035
|
}
|
|
1832
|
-
message.ping = SubscribeRequestPing.decode(reader, reader.uint32());
|
|
1833
|
-
continue;
|
|
1834
2036
|
}
|
|
2037
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2038
|
+
break;
|
|
2039
|
+
}
|
|
2040
|
+
reader.skip(tag & 7);
|
|
1835
2041
|
}
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
reader.
|
|
2042
|
+
return message;
|
|
2043
|
+
}
|
|
2044
|
+
finally {
|
|
2045
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1840
2046
|
}
|
|
1841
|
-
return message;
|
|
1842
2047
|
},
|
|
1843
2048
|
fromJSON(object) {
|
|
1844
2049
|
return { ping: isSet(object.ping) ? SubscribeRequestPing.fromJSON(object.ping) : undefined };
|
|
@@ -1895,60 +2100,70 @@ export const Instruction = {
|
|
|
1895
2100
|
},
|
|
1896
2101
|
decode(input, length) {
|
|
1897
2102
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1898
|
-
const
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
2103
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2104
|
+
if (previousRecursionDepth >= 100) {
|
|
2105
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2106
|
+
}
|
|
2107
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2108
|
+
try {
|
|
2109
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2110
|
+
const message = createBaseInstruction();
|
|
2111
|
+
while (reader.pos < end) {
|
|
2112
|
+
const tag = reader.uint32();
|
|
2113
|
+
switch (tag >>> 3) {
|
|
2114
|
+
case 1: {
|
|
2115
|
+
if (tag !== 10) {
|
|
2116
|
+
break;
|
|
2117
|
+
}
|
|
2118
|
+
message.initialize = Initialize.decode(reader, reader.uint32());
|
|
2119
|
+
continue;
|
|
2120
|
+
}
|
|
2121
|
+
case 2: {
|
|
2122
|
+
if (tag !== 18) {
|
|
2123
|
+
break;
|
|
2124
|
+
}
|
|
2125
|
+
message.setParams = SetParams.decode(reader, reader.uint32());
|
|
2126
|
+
continue;
|
|
2127
|
+
}
|
|
2128
|
+
case 3: {
|
|
2129
|
+
if (tag !== 26) {
|
|
2130
|
+
break;
|
|
2131
|
+
}
|
|
2132
|
+
message.create = Create.decode(reader, reader.uint32());
|
|
2133
|
+
continue;
|
|
2134
|
+
}
|
|
2135
|
+
case 4: {
|
|
2136
|
+
if (tag !== 34) {
|
|
2137
|
+
break;
|
|
2138
|
+
}
|
|
2139
|
+
message.buy = Buy.decode(reader, reader.uint32());
|
|
2140
|
+
continue;
|
|
2141
|
+
}
|
|
2142
|
+
case 5: {
|
|
2143
|
+
if (tag !== 42) {
|
|
2144
|
+
break;
|
|
2145
|
+
}
|
|
2146
|
+
message.sell = Sell.decode(reader, reader.uint32());
|
|
2147
|
+
continue;
|
|
2148
|
+
}
|
|
2149
|
+
case 6: {
|
|
2150
|
+
if (tag !== 50) {
|
|
2151
|
+
break;
|
|
2152
|
+
}
|
|
2153
|
+
message.withdraw = Withdraw.decode(reader, reader.uint32());
|
|
2154
|
+
continue;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2158
|
+
break;
|
|
2159
|
+
}
|
|
2160
|
+
reader.skip(tag & 7);
|
|
2161
|
+
}
|
|
2162
|
+
return message;
|
|
2163
|
+
}
|
|
2164
|
+
finally {
|
|
2165
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1950
2166
|
}
|
|
1951
|
-
return message;
|
|
1952
2167
|
},
|
|
1953
2168
|
fromJSON(object) {
|
|
1954
2169
|
return {
|
|
@@ -2017,18 +2232,28 @@ export const Initialize = {
|
|
|
2017
2232
|
},
|
|
2018
2233
|
decode(input, length) {
|
|
2019
2234
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2235
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2236
|
+
if (previousRecursionDepth >= 100) {
|
|
2237
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2238
|
+
}
|
|
2239
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2240
|
+
try {
|
|
2241
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2242
|
+
const message = createBaseInitialize();
|
|
2243
|
+
while (reader.pos < end) {
|
|
2244
|
+
const tag = reader.uint32();
|
|
2245
|
+
switch (tag >>> 3) {
|
|
2246
|
+
}
|
|
2247
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2248
|
+
break;
|
|
2249
|
+
}
|
|
2250
|
+
reader.skip(tag & 7);
|
|
2028
2251
|
}
|
|
2029
|
-
|
|
2252
|
+
return message;
|
|
2253
|
+
}
|
|
2254
|
+
finally {
|
|
2255
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2030
2256
|
}
|
|
2031
|
-
return message;
|
|
2032
2257
|
},
|
|
2033
2258
|
fromJSON(_) {
|
|
2034
2259
|
return {};
|
|
@@ -2094,60 +2319,70 @@ export const SetParams = {
|
|
|
2094
2319
|
},
|
|
2095
2320
|
decode(input, length) {
|
|
2096
2321
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2322
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2323
|
+
if (previousRecursionDepth >= 100) {
|
|
2324
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2325
|
+
}
|
|
2326
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2327
|
+
try {
|
|
2328
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2329
|
+
const message = createBaseSetParams();
|
|
2330
|
+
while (reader.pos < end) {
|
|
2331
|
+
const tag = reader.uint32();
|
|
2332
|
+
switch (tag >>> 3) {
|
|
2333
|
+
case 1: {
|
|
2334
|
+
if (tag !== 10) {
|
|
2335
|
+
break;
|
|
2336
|
+
}
|
|
2337
|
+
message.feeRecipient = reader.bytes();
|
|
2338
|
+
continue;
|
|
2339
|
+
}
|
|
2340
|
+
case 2: {
|
|
2341
|
+
if (tag !== 16) {
|
|
2342
|
+
break;
|
|
2343
|
+
}
|
|
2344
|
+
message.initialVirtualTokenReserves = reader.uint64();
|
|
2345
|
+
continue;
|
|
2346
|
+
}
|
|
2347
|
+
case 3: {
|
|
2348
|
+
if (tag !== 24) {
|
|
2349
|
+
break;
|
|
2350
|
+
}
|
|
2351
|
+
message.initialVirtualSolReserves = reader.uint64();
|
|
2352
|
+
continue;
|
|
2353
|
+
}
|
|
2354
|
+
case 4: {
|
|
2355
|
+
if (tag !== 32) {
|
|
2356
|
+
break;
|
|
2357
|
+
}
|
|
2358
|
+
message.initialRealTokenReserves = reader.uint64();
|
|
2359
|
+
continue;
|
|
2360
|
+
}
|
|
2361
|
+
case 5: {
|
|
2362
|
+
if (tag !== 40) {
|
|
2363
|
+
break;
|
|
2364
|
+
}
|
|
2365
|
+
message.tokenTotalSupply = reader.uint64();
|
|
2366
|
+
continue;
|
|
2367
|
+
}
|
|
2368
|
+
case 6: {
|
|
2369
|
+
if (tag !== 48) {
|
|
2370
|
+
break;
|
|
2371
|
+
}
|
|
2372
|
+
message.feeBasisPoints = reader.uint64();
|
|
2373
|
+
continue;
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2377
|
+
break;
|
|
2378
|
+
}
|
|
2379
|
+
reader.skip(tag & 7);
|
|
2380
|
+
}
|
|
2381
|
+
return message;
|
|
2382
|
+
}
|
|
2383
|
+
finally {
|
|
2384
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2149
2385
|
}
|
|
2150
|
-
return message;
|
|
2151
2386
|
},
|
|
2152
2387
|
fromJSON(object) {
|
|
2153
2388
|
return {
|
|
@@ -2211,11 +2446,24 @@ export const SetParams = {
|
|
|
2211
2446
|
fromPartial(object) {
|
|
2212
2447
|
const message = createBaseSetParams();
|
|
2213
2448
|
message.feeRecipient = object.feeRecipient ?? new Uint8Array(0);
|
|
2214
|
-
message.initialVirtualTokenReserves =
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
message.
|
|
2449
|
+
message.initialVirtualTokenReserves =
|
|
2450
|
+
(object.initialVirtualTokenReserves !== undefined && object.initialVirtualTokenReserves !== null)
|
|
2451
|
+
? BigInt(object.initialVirtualTokenReserves)
|
|
2452
|
+
: 0n;
|
|
2453
|
+
message.initialVirtualSolReserves =
|
|
2454
|
+
(object.initialVirtualSolReserves !== undefined && object.initialVirtualSolReserves !== null)
|
|
2455
|
+
? BigInt(object.initialVirtualSolReserves)
|
|
2456
|
+
: 0n;
|
|
2457
|
+
message.initialRealTokenReserves =
|
|
2458
|
+
(object.initialRealTokenReserves !== undefined && object.initialRealTokenReserves !== null)
|
|
2459
|
+
? BigInt(object.initialRealTokenReserves)
|
|
2460
|
+
: 0n;
|
|
2461
|
+
message.tokenTotalSupply = (object.tokenTotalSupply !== undefined && object.tokenTotalSupply !== null)
|
|
2462
|
+
? BigInt(object.tokenTotalSupply)
|
|
2463
|
+
: 0n;
|
|
2464
|
+
message.feeBasisPoints = (object.feeBasisPoints !== undefined && object.feeBasisPoints !== null)
|
|
2465
|
+
? BigInt(object.feeBasisPoints)
|
|
2466
|
+
: 0n;
|
|
2219
2467
|
return message;
|
|
2220
2468
|
},
|
|
2221
2469
|
};
|
|
@@ -2237,39 +2485,49 @@ export const Create = {
|
|
|
2237
2485
|
},
|
|
2238
2486
|
decode(input, length) {
|
|
2239
2487
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2488
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2489
|
+
if (previousRecursionDepth >= 100) {
|
|
2490
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2491
|
+
}
|
|
2492
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2493
|
+
try {
|
|
2494
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2495
|
+
const message = createBaseCreate();
|
|
2496
|
+
while (reader.pos < end) {
|
|
2497
|
+
const tag = reader.uint32();
|
|
2498
|
+
switch (tag >>> 3) {
|
|
2499
|
+
case 1: {
|
|
2500
|
+
if (tag !== 10) {
|
|
2501
|
+
break;
|
|
2502
|
+
}
|
|
2503
|
+
message.name = reader.string();
|
|
2504
|
+
continue;
|
|
2505
|
+
}
|
|
2506
|
+
case 2: {
|
|
2507
|
+
if (tag !== 18) {
|
|
2508
|
+
break;
|
|
2509
|
+
}
|
|
2510
|
+
message.symbol = reader.string();
|
|
2511
|
+
continue;
|
|
2512
|
+
}
|
|
2513
|
+
case 3: {
|
|
2514
|
+
if (tag !== 26) {
|
|
2515
|
+
break;
|
|
2516
|
+
}
|
|
2517
|
+
message.uri = reader.string();
|
|
2518
|
+
continue;
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2522
|
+
break;
|
|
2523
|
+
}
|
|
2524
|
+
reader.skip(tag & 7);
|
|
2525
|
+
}
|
|
2526
|
+
return message;
|
|
2527
|
+
}
|
|
2528
|
+
finally {
|
|
2529
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2271
2530
|
}
|
|
2272
|
-
return message;
|
|
2273
2531
|
},
|
|
2274
2532
|
fromJSON(object) {
|
|
2275
2533
|
return {
|
|
@@ -2323,32 +2581,42 @@ export const Buy = {
|
|
|
2323
2581
|
},
|
|
2324
2582
|
decode(input, length) {
|
|
2325
2583
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2326
|
-
const
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2584
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2585
|
+
if (previousRecursionDepth >= 100) {
|
|
2586
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2587
|
+
}
|
|
2588
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2589
|
+
try {
|
|
2590
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2591
|
+
const message = createBaseBuy();
|
|
2592
|
+
while (reader.pos < end) {
|
|
2593
|
+
const tag = reader.uint32();
|
|
2594
|
+
switch (tag >>> 3) {
|
|
2595
|
+
case 1: {
|
|
2596
|
+
if (tag !== 8) {
|
|
2597
|
+
break;
|
|
2598
|
+
}
|
|
2599
|
+
message.amount = reader.uint64();
|
|
2600
|
+
continue;
|
|
2334
2601
|
}
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2602
|
+
case 2: {
|
|
2603
|
+
if (tag !== 16) {
|
|
2604
|
+
break;
|
|
2605
|
+
}
|
|
2606
|
+
message.maxSolCost = reader.uint64();
|
|
2607
|
+
continue;
|
|
2341
2608
|
}
|
|
2342
|
-
message.maxSolCost = reader.uint64();
|
|
2343
|
-
continue;
|
|
2344
2609
|
}
|
|
2610
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2611
|
+
break;
|
|
2612
|
+
}
|
|
2613
|
+
reader.skip(tag & 7);
|
|
2345
2614
|
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
reader.
|
|
2615
|
+
return message;
|
|
2616
|
+
}
|
|
2617
|
+
finally {
|
|
2618
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2350
2619
|
}
|
|
2351
|
-
return message;
|
|
2352
2620
|
},
|
|
2353
2621
|
fromJSON(object) {
|
|
2354
2622
|
return {
|
|
@@ -2375,8 +2643,10 @@ export const Buy = {
|
|
|
2375
2643
|
},
|
|
2376
2644
|
fromPartial(object) {
|
|
2377
2645
|
const message = createBaseBuy();
|
|
2378
|
-
message.amount = object.amount
|
|
2379
|
-
message.maxSolCost = object.maxSolCost
|
|
2646
|
+
message.amount = (object.amount !== undefined && object.amount !== null) ? BigInt(object.amount) : 0n;
|
|
2647
|
+
message.maxSolCost = (object.maxSolCost !== undefined && object.maxSolCost !== null)
|
|
2648
|
+
? BigInt(object.maxSolCost)
|
|
2649
|
+
: 0n;
|
|
2380
2650
|
return message;
|
|
2381
2651
|
},
|
|
2382
2652
|
};
|
|
@@ -2401,32 +2671,42 @@ export const Sell = {
|
|
|
2401
2671
|
},
|
|
2402
2672
|
decode(input, length) {
|
|
2403
2673
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2674
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2675
|
+
if (previousRecursionDepth >= 100) {
|
|
2676
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2677
|
+
}
|
|
2678
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2679
|
+
try {
|
|
2680
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2681
|
+
const message = createBaseSell();
|
|
2682
|
+
while (reader.pos < end) {
|
|
2683
|
+
const tag = reader.uint32();
|
|
2684
|
+
switch (tag >>> 3) {
|
|
2685
|
+
case 1: {
|
|
2686
|
+
if (tag !== 8) {
|
|
2687
|
+
break;
|
|
2688
|
+
}
|
|
2689
|
+
message.amount = reader.uint64();
|
|
2690
|
+
continue;
|
|
2412
2691
|
}
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2692
|
+
case 2: {
|
|
2693
|
+
if (tag !== 16) {
|
|
2694
|
+
break;
|
|
2695
|
+
}
|
|
2696
|
+
message.minSolOutput = reader.uint64();
|
|
2697
|
+
continue;
|
|
2419
2698
|
}
|
|
2420
|
-
message.minSolOutput = reader.uint64();
|
|
2421
|
-
continue;
|
|
2422
2699
|
}
|
|
2700
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2701
|
+
break;
|
|
2702
|
+
}
|
|
2703
|
+
reader.skip(tag & 7);
|
|
2423
2704
|
}
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
reader.
|
|
2705
|
+
return message;
|
|
2706
|
+
}
|
|
2707
|
+
finally {
|
|
2708
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2428
2709
|
}
|
|
2429
|
-
return message;
|
|
2430
2710
|
},
|
|
2431
2711
|
fromJSON(object) {
|
|
2432
2712
|
return {
|
|
@@ -2453,8 +2733,10 @@ export const Sell = {
|
|
|
2453
2733
|
},
|
|
2454
2734
|
fromPartial(object) {
|
|
2455
2735
|
const message = createBaseSell();
|
|
2456
|
-
message.amount = object.amount
|
|
2457
|
-
message.minSolOutput = object.minSolOutput
|
|
2736
|
+
message.amount = (object.amount !== undefined && object.amount !== null) ? BigInt(object.amount) : 0n;
|
|
2737
|
+
message.minSolOutput = (object.minSolOutput !== undefined && object.minSolOutput !== null)
|
|
2738
|
+
? BigInt(object.minSolOutput)
|
|
2739
|
+
: 0n;
|
|
2458
2740
|
return message;
|
|
2459
2741
|
},
|
|
2460
2742
|
};
|
|
@@ -2467,18 +2749,28 @@ export const Withdraw = {
|
|
|
2467
2749
|
},
|
|
2468
2750
|
decode(input, length) {
|
|
2469
2751
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2470
|
-
const
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2752
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2753
|
+
if (previousRecursionDepth >= 100) {
|
|
2754
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2755
|
+
}
|
|
2756
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2757
|
+
try {
|
|
2758
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2759
|
+
const message = createBaseWithdraw();
|
|
2760
|
+
while (reader.pos < end) {
|
|
2761
|
+
const tag = reader.uint32();
|
|
2762
|
+
switch (tag >>> 3) {
|
|
2763
|
+
}
|
|
2764
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2765
|
+
break;
|
|
2766
|
+
}
|
|
2767
|
+
reader.skip(tag & 7);
|
|
2478
2768
|
}
|
|
2479
|
-
|
|
2769
|
+
return message;
|
|
2770
|
+
}
|
|
2771
|
+
finally {
|
|
2772
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2480
2773
|
}
|
|
2481
|
-
return message;
|
|
2482
2774
|
},
|
|
2483
2775
|
fromJSON(_) {
|
|
2484
2776
|
return {};
|
|
@@ -2532,60 +2824,70 @@ export const SubscribeUpdateParsedTransaction = {
|
|
|
2532
2824
|
},
|
|
2533
2825
|
decode(input, length) {
|
|
2534
2826
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2535
|
-
const
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2827
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2828
|
+
if (previousRecursionDepth >= 100) {
|
|
2829
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2830
|
+
}
|
|
2831
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2832
|
+
try {
|
|
2833
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2834
|
+
const message = createBaseSubscribeUpdateParsedTransaction();
|
|
2835
|
+
while (reader.pos < end) {
|
|
2836
|
+
const tag = reader.uint32();
|
|
2837
|
+
switch (tag >>> 3) {
|
|
2838
|
+
case 1: {
|
|
2839
|
+
if (tag !== 10) {
|
|
2840
|
+
break;
|
|
2841
|
+
}
|
|
2842
|
+
message.signature = reader.bytes();
|
|
2843
|
+
continue;
|
|
2844
|
+
}
|
|
2845
|
+
case 2: {
|
|
2846
|
+
if (tag !== 16) {
|
|
2847
|
+
break;
|
|
2848
|
+
}
|
|
2849
|
+
message.slot = reader.uint64();
|
|
2850
|
+
continue;
|
|
2851
|
+
}
|
|
2852
|
+
case 3: {
|
|
2853
|
+
if (tag !== 26) {
|
|
2854
|
+
break;
|
|
2855
|
+
}
|
|
2856
|
+
message.account = SubscribeUpdateAccount.decode(reader, reader.uint32());
|
|
2857
|
+
continue;
|
|
2858
|
+
}
|
|
2859
|
+
case 4: {
|
|
2860
|
+
if (tag !== 34) {
|
|
2861
|
+
break;
|
|
2862
|
+
}
|
|
2863
|
+
message.recentBlockhash = reader.bytes();
|
|
2864
|
+
continue;
|
|
2865
|
+
}
|
|
2866
|
+
case 5: {
|
|
2867
|
+
if (tag !== 42) {
|
|
2868
|
+
break;
|
|
2869
|
+
}
|
|
2870
|
+
message.signatures.push(reader.bytes());
|
|
2871
|
+
continue;
|
|
2872
|
+
}
|
|
2873
|
+
case 6: {
|
|
2874
|
+
if (tag !== 50) {
|
|
2875
|
+
break;
|
|
2876
|
+
}
|
|
2877
|
+
message.instructions.push(Instruction.decode(reader, reader.uint32()));
|
|
2878
|
+
continue;
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2882
|
+
break;
|
|
2883
|
+
}
|
|
2884
|
+
reader.skip(tag & 7);
|
|
2885
|
+
}
|
|
2886
|
+
return message;
|
|
2887
|
+
}
|
|
2888
|
+
finally {
|
|
2889
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2587
2890
|
}
|
|
2588
|
-
return message;
|
|
2589
2891
|
},
|
|
2590
2892
|
fromJSON(object) {
|
|
2591
2893
|
return {
|
|
@@ -2633,7 +2935,7 @@ export const SubscribeUpdateParsedTransaction = {
|
|
|
2633
2935
|
fromPartial(object) {
|
|
2634
2936
|
const message = createBaseSubscribeUpdateParsedTransaction();
|
|
2635
2937
|
message.signature = object.signature ?? new Uint8Array(0);
|
|
2636
|
-
message.slot = object.slot
|
|
2938
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
2637
2939
|
message.account = (object.account !== undefined && object.account !== null)
|
|
2638
2940
|
? SubscribeUpdateAccount.fromPartial(object.account)
|
|
2639
2941
|
: undefined;
|
|
@@ -2655,25 +2957,35 @@ export const PingRequest = {
|
|
|
2655
2957
|
},
|
|
2656
2958
|
decode(input, length) {
|
|
2657
2959
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2658
|
-
const
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2960
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2961
|
+
if (previousRecursionDepth >= 100) {
|
|
2962
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2963
|
+
}
|
|
2964
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2965
|
+
try {
|
|
2966
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2967
|
+
const message = createBasePingRequest();
|
|
2968
|
+
while (reader.pos < end) {
|
|
2969
|
+
const tag = reader.uint32();
|
|
2970
|
+
switch (tag >>> 3) {
|
|
2971
|
+
case 1: {
|
|
2972
|
+
if (tag !== 8) {
|
|
2973
|
+
break;
|
|
2974
|
+
}
|
|
2975
|
+
message.count = reader.int32();
|
|
2976
|
+
continue;
|
|
2666
2977
|
}
|
|
2667
|
-
message.count = reader.int32();
|
|
2668
|
-
continue;
|
|
2669
2978
|
}
|
|
2979
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2980
|
+
break;
|
|
2981
|
+
}
|
|
2982
|
+
reader.skip(tag & 7);
|
|
2670
2983
|
}
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
reader.
|
|
2984
|
+
return message;
|
|
2985
|
+
}
|
|
2986
|
+
finally {
|
|
2987
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2675
2988
|
}
|
|
2676
|
-
return message;
|
|
2677
2989
|
},
|
|
2678
2990
|
fromJSON(object) {
|
|
2679
2991
|
return { count: isSet(object.count) ? globalThis.Number(object.count) : 0 };
|
|
@@ -2706,25 +3018,35 @@ export const PongResponse = {
|
|
|
2706
3018
|
},
|
|
2707
3019
|
decode(input, length) {
|
|
2708
3020
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
3021
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3022
|
+
if (previousRecursionDepth >= 100) {
|
|
3023
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3024
|
+
}
|
|
3025
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3026
|
+
try {
|
|
3027
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3028
|
+
const message = createBasePongResponse();
|
|
3029
|
+
while (reader.pos < end) {
|
|
3030
|
+
const tag = reader.uint32();
|
|
3031
|
+
switch (tag >>> 3) {
|
|
3032
|
+
case 1: {
|
|
3033
|
+
if (tag !== 8) {
|
|
3034
|
+
break;
|
|
3035
|
+
}
|
|
3036
|
+
message.count = reader.int32();
|
|
3037
|
+
continue;
|
|
2717
3038
|
}
|
|
2718
|
-
message.count = reader.int32();
|
|
2719
|
-
continue;
|
|
2720
3039
|
}
|
|
3040
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3041
|
+
break;
|
|
3042
|
+
}
|
|
3043
|
+
reader.skip(tag & 7);
|
|
2721
3044
|
}
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
reader.
|
|
3045
|
+
return message;
|
|
3046
|
+
}
|
|
3047
|
+
finally {
|
|
3048
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2726
3049
|
}
|
|
2727
|
-
return message;
|
|
2728
3050
|
},
|
|
2729
3051
|
fromJSON(object) {
|
|
2730
3052
|
return { count: isSet(object.count) ? globalThis.Number(object.count) : 0 };
|
|
@@ -2754,18 +3076,28 @@ export const GetVersionRequest = {
|
|
|
2754
3076
|
},
|
|
2755
3077
|
decode(input, length) {
|
|
2756
3078
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2757
|
-
const
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
3079
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3080
|
+
if (previousRecursionDepth >= 100) {
|
|
3081
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3082
|
+
}
|
|
3083
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3084
|
+
try {
|
|
3085
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3086
|
+
const message = createBaseGetVersionRequest();
|
|
3087
|
+
while (reader.pos < end) {
|
|
3088
|
+
const tag = reader.uint32();
|
|
3089
|
+
switch (tag >>> 3) {
|
|
3090
|
+
}
|
|
3091
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3092
|
+
break;
|
|
3093
|
+
}
|
|
3094
|
+
reader.skip(tag & 7);
|
|
2765
3095
|
}
|
|
2766
|
-
|
|
3096
|
+
return message;
|
|
3097
|
+
}
|
|
3098
|
+
finally {
|
|
3099
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2767
3100
|
}
|
|
2768
|
-
return message;
|
|
2769
3101
|
},
|
|
2770
3102
|
fromJSON(_) {
|
|
2771
3103
|
return {};
|
|
@@ -2794,25 +3126,35 @@ export const GetVersionResponse = {
|
|
|
2794
3126
|
},
|
|
2795
3127
|
decode(input, length) {
|
|
2796
3128
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2797
|
-
const
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
3129
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3130
|
+
if (previousRecursionDepth >= 100) {
|
|
3131
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3132
|
+
}
|
|
3133
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3134
|
+
try {
|
|
3135
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3136
|
+
const message = createBaseGetVersionResponse();
|
|
3137
|
+
while (reader.pos < end) {
|
|
3138
|
+
const tag = reader.uint32();
|
|
3139
|
+
switch (tag >>> 3) {
|
|
3140
|
+
case 1: {
|
|
3141
|
+
if (tag !== 10) {
|
|
3142
|
+
break;
|
|
3143
|
+
}
|
|
3144
|
+
message.version = reader.string();
|
|
3145
|
+
continue;
|
|
2805
3146
|
}
|
|
2806
|
-
message.version = reader.string();
|
|
2807
|
-
continue;
|
|
2808
3147
|
}
|
|
3148
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3149
|
+
break;
|
|
3150
|
+
}
|
|
3151
|
+
reader.skip(tag & 7);
|
|
2809
3152
|
}
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
reader.
|
|
3153
|
+
return message;
|
|
3154
|
+
}
|
|
3155
|
+
finally {
|
|
3156
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2814
3157
|
}
|
|
2815
|
-
return message;
|
|
2816
3158
|
},
|
|
2817
3159
|
fromJSON(object) {
|
|
2818
3160
|
return { version: isSet(object.version) ? globalThis.String(object.version) : "" };
|
|
@@ -2848,25 +3190,35 @@ export const GetSlotResponse = {
|
|
|
2848
3190
|
},
|
|
2849
3191
|
decode(input, length) {
|
|
2850
3192
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2851
|
-
const
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
3193
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3194
|
+
if (previousRecursionDepth >= 100) {
|
|
3195
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3196
|
+
}
|
|
3197
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3198
|
+
try {
|
|
3199
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3200
|
+
const message = createBaseGetSlotResponse();
|
|
3201
|
+
while (reader.pos < end) {
|
|
3202
|
+
const tag = reader.uint32();
|
|
3203
|
+
switch (tag >>> 3) {
|
|
3204
|
+
case 1: {
|
|
3205
|
+
if (tag !== 8) {
|
|
3206
|
+
break;
|
|
3207
|
+
}
|
|
3208
|
+
message.slot = reader.uint64();
|
|
3209
|
+
continue;
|
|
2859
3210
|
}
|
|
2860
|
-
message.slot = reader.uint64();
|
|
2861
|
-
continue;
|
|
2862
3211
|
}
|
|
3212
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3213
|
+
break;
|
|
3214
|
+
}
|
|
3215
|
+
reader.skip(tag & 7);
|
|
2863
3216
|
}
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
reader.
|
|
3217
|
+
return message;
|
|
3218
|
+
}
|
|
3219
|
+
finally {
|
|
3220
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2868
3221
|
}
|
|
2869
|
-
return message;
|
|
2870
3222
|
},
|
|
2871
3223
|
fromJSON(object) {
|
|
2872
3224
|
return { slot: isSet(object.slot) ? BigInt(object.slot) : 0n };
|
|
@@ -2883,7 +3235,7 @@ export const GetSlotResponse = {
|
|
|
2883
3235
|
},
|
|
2884
3236
|
fromPartial(object) {
|
|
2885
3237
|
const message = createBaseGetSlotResponse();
|
|
2886
|
-
message.slot = object.slot
|
|
3238
|
+
message.slot = (object.slot !== undefined && object.slot !== null) ? BigInt(object.slot) : 0n;
|
|
2887
3239
|
return message;
|
|
2888
3240
|
},
|
|
2889
3241
|
};
|