@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
|
@@ -1,11 +1,12 @@
|
|
|
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: solana-storage.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
8
|
export const protobufPackage = "solana.storage.ConfirmedBlock";
|
|
9
|
+
export const protobufFileName = "solana-storage.proto";
|
|
9
10
|
export var RewardType;
|
|
10
11
|
(function (RewardType) {
|
|
11
12
|
RewardType[RewardType["Unspecified"] = 0] = "Unspecified";
|
|
@@ -106,74 +107,84 @@ export const ConfirmedBlock = {
|
|
|
106
107
|
},
|
|
107
108
|
decode(input, length) {
|
|
108
109
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
111
|
+
if (previousRecursionDepth >= 100) {
|
|
112
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
113
|
+
}
|
|
114
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
115
|
+
try {
|
|
116
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
117
|
+
const message = createBaseConfirmedBlock();
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
const tag = reader.uint32();
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
case 1: {
|
|
122
|
+
if (tag !== 10) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
message.previousBlockhash = reader.string();
|
|
126
|
+
continue;
|
|
117
127
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
case 2: {
|
|
129
|
+
if (tag !== 18) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.blockhash = reader.string();
|
|
133
|
+
continue;
|
|
124
134
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
case 3: {
|
|
136
|
+
if (tag !== 24) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.parentSlot = reader.uint64();
|
|
140
|
+
continue;
|
|
131
141
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
142
|
+
case 4: {
|
|
143
|
+
if (tag !== 34) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
message.transactions.push(ConfirmedTransaction.decode(reader, reader.uint32()));
|
|
147
|
+
continue;
|
|
138
148
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
case 5: {
|
|
150
|
+
if (tag !== 42) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.rewards.push(Reward.decode(reader, reader.uint32()));
|
|
154
|
+
continue;
|
|
145
155
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
156
|
+
case 6: {
|
|
157
|
+
if (tag !== 50) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
message.blockTime = UnixTimestamp.decode(reader, reader.uint32());
|
|
161
|
+
continue;
|
|
152
162
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
163
|
+
case 7: {
|
|
164
|
+
if (tag !== 58) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.blockHeight = BlockHeight.decode(reader, reader.uint32());
|
|
168
|
+
continue;
|
|
159
169
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
170
|
+
case 8: {
|
|
171
|
+
if (tag !== 66) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
message.numPartitions = NumPartitions.decode(reader, reader.uint32());
|
|
175
|
+
continue;
|
|
166
176
|
}
|
|
167
|
-
message.numPartitions = NumPartitions.decode(reader, reader.uint32());
|
|
168
|
-
continue;
|
|
169
177
|
}
|
|
178
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
reader.skip(tag & 7);
|
|
170
182
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
reader.
|
|
183
|
+
return message;
|
|
184
|
+
}
|
|
185
|
+
finally {
|
|
186
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
175
187
|
}
|
|
176
|
-
return message;
|
|
177
188
|
},
|
|
178
189
|
fromJSON(object) {
|
|
179
190
|
return {
|
|
@@ -244,7 +255,9 @@ export const ConfirmedBlock = {
|
|
|
244
255
|
const message = createBaseConfirmedBlock();
|
|
245
256
|
message.previousBlockhash = object.previousBlockhash ?? "";
|
|
246
257
|
message.blockhash = object.blockhash ?? "";
|
|
247
|
-
message.parentSlot = object.parentSlot
|
|
258
|
+
message.parentSlot = (object.parentSlot !== undefined && object.parentSlot !== null)
|
|
259
|
+
? BigInt(object.parentSlot)
|
|
260
|
+
: 0n;
|
|
248
261
|
message.transactions = object.transactions?.map((e) => ConfirmedTransaction.fromPartial(e)) || [];
|
|
249
262
|
message.rewards = object.rewards?.map((e) => Reward.fromPartial(e)) || [];
|
|
250
263
|
message.blockTime = (object.blockTime !== undefined && object.blockTime !== null)
|
|
@@ -274,32 +287,42 @@ export const ConfirmedTransaction = {
|
|
|
274
287
|
},
|
|
275
288
|
decode(input, length) {
|
|
276
289
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
290
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
291
|
+
if (previousRecursionDepth >= 100) {
|
|
292
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
293
|
+
}
|
|
294
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
295
|
+
try {
|
|
296
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
297
|
+
const message = createBaseConfirmedTransaction();
|
|
298
|
+
while (reader.pos < end) {
|
|
299
|
+
const tag = reader.uint32();
|
|
300
|
+
switch (tag >>> 3) {
|
|
301
|
+
case 1: {
|
|
302
|
+
if (tag !== 10) {
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
message.transaction = Transaction.decode(reader, reader.uint32());
|
|
306
|
+
continue;
|
|
285
307
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
308
|
+
case 2: {
|
|
309
|
+
if (tag !== 18) {
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
message.meta = TransactionStatusMeta.decode(reader, reader.uint32());
|
|
313
|
+
continue;
|
|
292
314
|
}
|
|
293
|
-
message.meta = TransactionStatusMeta.decode(reader, reader.uint32());
|
|
294
|
-
continue;
|
|
295
315
|
}
|
|
316
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
reader.skip(tag & 7);
|
|
296
320
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
reader.
|
|
321
|
+
return message;
|
|
322
|
+
}
|
|
323
|
+
finally {
|
|
324
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
301
325
|
}
|
|
302
|
-
return message;
|
|
303
326
|
},
|
|
304
327
|
fromJSON(object) {
|
|
305
328
|
return {
|
|
@@ -346,32 +369,42 @@ export const Transaction = {
|
|
|
346
369
|
},
|
|
347
370
|
decode(input, length) {
|
|
348
371
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
372
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
373
|
+
if (previousRecursionDepth >= 100) {
|
|
374
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
375
|
+
}
|
|
376
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
377
|
+
try {
|
|
378
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
379
|
+
const message = createBaseTransaction();
|
|
380
|
+
while (reader.pos < end) {
|
|
381
|
+
const tag = reader.uint32();
|
|
382
|
+
switch (tag >>> 3) {
|
|
383
|
+
case 1: {
|
|
384
|
+
if (tag !== 10) {
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
message.signatures.push(reader.bytes());
|
|
388
|
+
continue;
|
|
357
389
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
390
|
+
case 2: {
|
|
391
|
+
if (tag !== 18) {
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
message.message = Message.decode(reader, reader.uint32());
|
|
395
|
+
continue;
|
|
364
396
|
}
|
|
365
|
-
message.message = Message.decode(reader, reader.uint32());
|
|
366
|
-
continue;
|
|
367
397
|
}
|
|
398
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
reader.skip(tag & 7);
|
|
368
402
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
reader.
|
|
403
|
+
return message;
|
|
404
|
+
}
|
|
405
|
+
finally {
|
|
406
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
373
407
|
}
|
|
374
|
-
return message;
|
|
375
408
|
},
|
|
376
409
|
fromJSON(object) {
|
|
377
410
|
return {
|
|
@@ -441,67 +474,77 @@ export const Message = {
|
|
|
441
474
|
},
|
|
442
475
|
decode(input, length) {
|
|
443
476
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
444
|
-
const
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
477
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
478
|
+
if (previousRecursionDepth >= 100) {
|
|
479
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
480
|
+
}
|
|
481
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
482
|
+
try {
|
|
483
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
484
|
+
const message = createBaseMessage();
|
|
485
|
+
while (reader.pos < end) {
|
|
486
|
+
const tag = reader.uint32();
|
|
487
|
+
switch (tag >>> 3) {
|
|
488
|
+
case 1: {
|
|
489
|
+
if (tag !== 10) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
message.header = MessageHeader.decode(reader, reader.uint32());
|
|
493
|
+
continue;
|
|
452
494
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
495
|
+
case 2: {
|
|
496
|
+
if (tag !== 18) {
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
message.accountKeys.push(reader.bytes());
|
|
500
|
+
continue;
|
|
459
501
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
502
|
+
case 3: {
|
|
503
|
+
if (tag !== 26) {
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
message.recentBlockhash = reader.bytes();
|
|
507
|
+
continue;
|
|
466
508
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
509
|
+
case 4: {
|
|
510
|
+
if (tag !== 34) {
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
513
|
+
message.instructions.push(CompiledInstruction.decode(reader, reader.uint32()));
|
|
514
|
+
continue;
|
|
473
515
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
516
|
+
case 5: {
|
|
517
|
+
if (tag !== 40) {
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
message.versioned = reader.bool();
|
|
521
|
+
continue;
|
|
480
522
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
523
|
+
case 6: {
|
|
524
|
+
if (tag !== 50) {
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
527
|
+
message.addressTableLookups.push(MessageAddressTableLookup.decode(reader, reader.uint32()));
|
|
528
|
+
continue;
|
|
487
529
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
530
|
+
case 7: {
|
|
531
|
+
if (tag !== 58) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
message.config = TransactionConfig.decode(reader, reader.uint32());
|
|
535
|
+
continue;
|
|
494
536
|
}
|
|
495
|
-
message.config = TransactionConfig.decode(reader, reader.uint32());
|
|
496
|
-
continue;
|
|
497
537
|
}
|
|
538
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
reader.skip(tag & 7);
|
|
498
542
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
reader.
|
|
543
|
+
return message;
|
|
544
|
+
}
|
|
545
|
+
finally {
|
|
546
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
503
547
|
}
|
|
504
|
-
return message;
|
|
505
548
|
},
|
|
506
549
|
fromJSON(object) {
|
|
507
550
|
return {
|
|
@@ -602,46 +645,56 @@ export const TransactionConfig = {
|
|
|
602
645
|
},
|
|
603
646
|
decode(input, length) {
|
|
604
647
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
648
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
649
|
+
if (previousRecursionDepth >= 100) {
|
|
650
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
651
|
+
}
|
|
652
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
653
|
+
try {
|
|
654
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
655
|
+
const message = createBaseTransactionConfig();
|
|
656
|
+
while (reader.pos < end) {
|
|
657
|
+
const tag = reader.uint32();
|
|
658
|
+
switch (tag >>> 3) {
|
|
659
|
+
case 1: {
|
|
660
|
+
if (tag !== 8) {
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
message.priorityFee = reader.uint64();
|
|
664
|
+
continue;
|
|
613
665
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
666
|
+
case 2: {
|
|
667
|
+
if (tag !== 16) {
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
670
|
+
message.computeUnitLimit = reader.uint32();
|
|
671
|
+
continue;
|
|
620
672
|
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
673
|
+
case 3: {
|
|
674
|
+
if (tag !== 24) {
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
message.loadedAccountsDataSizeLimit = reader.uint32();
|
|
678
|
+
continue;
|
|
627
679
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
680
|
+
case 4: {
|
|
681
|
+
if (tag !== 32) {
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
message.heapSize = reader.uint32();
|
|
685
|
+
continue;
|
|
634
686
|
}
|
|
635
|
-
message.heapSize = reader.uint32();
|
|
636
|
-
continue;
|
|
637
687
|
}
|
|
688
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
reader.skip(tag & 7);
|
|
638
692
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
reader.
|
|
693
|
+
return message;
|
|
694
|
+
}
|
|
695
|
+
finally {
|
|
696
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
643
697
|
}
|
|
644
|
-
return message;
|
|
645
698
|
},
|
|
646
699
|
fromJSON(object) {
|
|
647
700
|
return {
|
|
@@ -688,7 +741,9 @@ export const TransactionConfig = {
|
|
|
688
741
|
},
|
|
689
742
|
fromPartial(object) {
|
|
690
743
|
const message = createBaseTransactionConfig();
|
|
691
|
-
message.priorityFee = object.priorityFee
|
|
744
|
+
message.priorityFee = (object.priorityFee !== undefined && object.priorityFee !== null)
|
|
745
|
+
? BigInt(object.priorityFee)
|
|
746
|
+
: undefined;
|
|
692
747
|
message.computeUnitLimit = object.computeUnitLimit ?? undefined;
|
|
693
748
|
message.loadedAccountsDataSizeLimit = object.loadedAccountsDataSizeLimit ?? undefined;
|
|
694
749
|
message.heapSize = object.heapSize ?? undefined;
|
|
@@ -713,39 +768,49 @@ export const MessageHeader = {
|
|
|
713
768
|
},
|
|
714
769
|
decode(input, length) {
|
|
715
770
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
771
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
772
|
+
if (previousRecursionDepth >= 100) {
|
|
773
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
774
|
+
}
|
|
775
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
776
|
+
try {
|
|
777
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
778
|
+
const message = createBaseMessageHeader();
|
|
779
|
+
while (reader.pos < end) {
|
|
780
|
+
const tag = reader.uint32();
|
|
781
|
+
switch (tag >>> 3) {
|
|
782
|
+
case 1: {
|
|
783
|
+
if (tag !== 8) {
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
message.numRequiredSignatures = reader.uint32();
|
|
787
|
+
continue;
|
|
724
788
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
789
|
+
case 2: {
|
|
790
|
+
if (tag !== 16) {
|
|
791
|
+
break;
|
|
792
|
+
}
|
|
793
|
+
message.numReadonlySignedAccounts = reader.uint32();
|
|
794
|
+
continue;
|
|
731
795
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
796
|
+
case 3: {
|
|
797
|
+
if (tag !== 24) {
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
message.numReadonlyUnsignedAccounts = reader.uint32();
|
|
801
|
+
continue;
|
|
738
802
|
}
|
|
739
|
-
message.numReadonlyUnsignedAccounts = reader.uint32();
|
|
740
|
-
continue;
|
|
741
803
|
}
|
|
804
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
reader.skip(tag & 7);
|
|
742
808
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
reader.
|
|
809
|
+
return message;
|
|
810
|
+
}
|
|
811
|
+
finally {
|
|
812
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
747
813
|
}
|
|
748
|
-
return message;
|
|
749
814
|
},
|
|
750
815
|
fromJSON(object) {
|
|
751
816
|
return {
|
|
@@ -808,39 +873,49 @@ export const MessageAddressTableLookup = {
|
|
|
808
873
|
},
|
|
809
874
|
decode(input, length) {
|
|
810
875
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
876
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
877
|
+
if (previousRecursionDepth >= 100) {
|
|
878
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
879
|
+
}
|
|
880
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
881
|
+
try {
|
|
882
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
883
|
+
const message = createBaseMessageAddressTableLookup();
|
|
884
|
+
while (reader.pos < end) {
|
|
885
|
+
const tag = reader.uint32();
|
|
886
|
+
switch (tag >>> 3) {
|
|
887
|
+
case 1: {
|
|
888
|
+
if (tag !== 10) {
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
message.accountKey = reader.bytes();
|
|
892
|
+
continue;
|
|
819
893
|
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
894
|
+
case 2: {
|
|
895
|
+
if (tag !== 18) {
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
message.writableIndexes = reader.bytes();
|
|
899
|
+
continue;
|
|
826
900
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
901
|
+
case 3: {
|
|
902
|
+
if (tag !== 26) {
|
|
903
|
+
break;
|
|
904
|
+
}
|
|
905
|
+
message.readonlyIndexes = reader.bytes();
|
|
906
|
+
continue;
|
|
833
907
|
}
|
|
834
|
-
message.readonlyIndexes = reader.bytes();
|
|
835
|
-
continue;
|
|
836
908
|
}
|
|
909
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
912
|
+
reader.skip(tag & 7);
|
|
837
913
|
}
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
reader.
|
|
914
|
+
return message;
|
|
915
|
+
}
|
|
916
|
+
finally {
|
|
917
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
842
918
|
}
|
|
843
|
-
return message;
|
|
844
919
|
},
|
|
845
920
|
fromJSON(object) {
|
|
846
921
|
return {
|
|
@@ -917,22 +992,26 @@ export const TransactionStatusMeta = {
|
|
|
917
992
|
}
|
|
918
993
|
writer.uint32(16).uint64(message.fee);
|
|
919
994
|
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
995
|
+
if (message.preBalances.length !== 0) {
|
|
996
|
+
writer.uint32(26).fork();
|
|
997
|
+
for (const v of message.preBalances) {
|
|
998
|
+
if (BigInt.asUintN(64, v) !== v) {
|
|
999
|
+
throw new globalThis.Error("a value provided in array field preBalances of type uint64 is too large");
|
|
1000
|
+
}
|
|
1001
|
+
writer.uint64(v);
|
|
924
1002
|
}
|
|
925
|
-
writer.
|
|
1003
|
+
writer.join();
|
|
926
1004
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1005
|
+
if (message.postBalances.length !== 0) {
|
|
1006
|
+
writer.uint32(34).fork();
|
|
1007
|
+
for (const v of message.postBalances) {
|
|
1008
|
+
if (BigInt.asUintN(64, v) !== v) {
|
|
1009
|
+
throw new globalThis.Error("a value provided in array field postBalances of type uint64 is too large");
|
|
1010
|
+
}
|
|
1011
|
+
writer.uint64(v);
|
|
932
1012
|
}
|
|
933
|
-
writer.
|
|
1013
|
+
writer.join();
|
|
934
1014
|
}
|
|
935
|
-
writer.join();
|
|
936
1015
|
for (const v of message.innerInstructions) {
|
|
937
1016
|
InnerInstructions.encode(v, writer.uint32(42).fork()).join();
|
|
938
1017
|
}
|
|
@@ -982,151 +1061,161 @@ export const TransactionStatusMeta = {
|
|
|
982
1061
|
},
|
|
983
1062
|
decode(input, length) {
|
|
984
1063
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985
|
-
const
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1064
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1065
|
+
if (previousRecursionDepth >= 100) {
|
|
1066
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1067
|
+
}
|
|
1068
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1069
|
+
try {
|
|
1070
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1071
|
+
const message = createBaseTransactionStatusMeta();
|
|
1072
|
+
while (reader.pos < end) {
|
|
1073
|
+
const tag = reader.uint32();
|
|
1074
|
+
switch (tag >>> 3) {
|
|
1075
|
+
case 1: {
|
|
1076
|
+
if (tag !== 10) {
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
message.err = TransactionError.decode(reader, reader.uint32());
|
|
1080
|
+
continue;
|
|
1081
|
+
}
|
|
1082
|
+
case 2: {
|
|
1083
|
+
if (tag !== 16) {
|
|
1084
|
+
break;
|
|
1085
|
+
}
|
|
1086
|
+
message.fee = reader.uint64();
|
|
1087
|
+
continue;
|
|
1088
|
+
}
|
|
1089
|
+
case 3: {
|
|
1090
|
+
if (tag === 24) {
|
|
1091
|
+
message.preBalances.push(reader.uint64());
|
|
1092
|
+
continue;
|
|
1093
|
+
}
|
|
1094
|
+
if (tag === 26) {
|
|
1095
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1096
|
+
while (reader.pos < end2) {
|
|
1097
|
+
message.preBalances.push(reader.uint64());
|
|
1098
|
+
}
|
|
1099
|
+
continue;
|
|
1100
|
+
}
|
|
992
1101
|
break;
|
|
993
1102
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1103
|
+
case 4: {
|
|
1104
|
+
if (tag === 32) {
|
|
1105
|
+
message.postBalances.push(reader.uint64());
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
if (tag === 34) {
|
|
1109
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1110
|
+
while (reader.pos < end2) {
|
|
1111
|
+
message.postBalances.push(reader.uint64());
|
|
1112
|
+
}
|
|
1113
|
+
continue;
|
|
1114
|
+
}
|
|
999
1115
|
break;
|
|
1000
1116
|
}
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
message.preBalances.push(reader.uint64());
|
|
1117
|
+
case 5: {
|
|
1118
|
+
if (tag !== 42) {
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
message.innerInstructions.push(InnerInstructions.decode(reader, reader.uint32()));
|
|
1007
1122
|
continue;
|
|
1008
1123
|
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
message.preBalances.push(reader.uint64());
|
|
1124
|
+
case 10: {
|
|
1125
|
+
if (tag !== 80) {
|
|
1126
|
+
break;
|
|
1013
1127
|
}
|
|
1128
|
+
message.innerInstructionsNone = reader.bool();
|
|
1014
1129
|
continue;
|
|
1015
1130
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
message.
|
|
1131
|
+
case 6: {
|
|
1132
|
+
if (tag !== 50) {
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
1135
|
+
message.logMessages.push(reader.string());
|
|
1021
1136
|
continue;
|
|
1022
1137
|
}
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
message.postBalances.push(reader.uint64());
|
|
1138
|
+
case 11: {
|
|
1139
|
+
if (tag !== 88) {
|
|
1140
|
+
break;
|
|
1027
1141
|
}
|
|
1142
|
+
message.logMessagesNone = reader.bool();
|
|
1028
1143
|
continue;
|
|
1029
1144
|
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
message.innerInstructions.push(InnerInstructions.decode(reader, reader.uint32()));
|
|
1037
|
-
continue;
|
|
1038
|
-
}
|
|
1039
|
-
case 10: {
|
|
1040
|
-
if (tag !== 80) {
|
|
1041
|
-
break;
|
|
1042
|
-
}
|
|
1043
|
-
message.innerInstructionsNone = reader.bool();
|
|
1044
|
-
continue;
|
|
1045
|
-
}
|
|
1046
|
-
case 6: {
|
|
1047
|
-
if (tag !== 50) {
|
|
1048
|
-
break;
|
|
1049
|
-
}
|
|
1050
|
-
message.logMessages.push(reader.string());
|
|
1051
|
-
continue;
|
|
1052
|
-
}
|
|
1053
|
-
case 11: {
|
|
1054
|
-
if (tag !== 88) {
|
|
1055
|
-
break;
|
|
1145
|
+
case 7: {
|
|
1146
|
+
if (tag !== 58) {
|
|
1147
|
+
break;
|
|
1148
|
+
}
|
|
1149
|
+
message.preTokenBalances.push(TokenBalance.decode(reader, reader.uint32()));
|
|
1150
|
+
continue;
|
|
1056
1151
|
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1152
|
+
case 8: {
|
|
1153
|
+
if (tag !== 66) {
|
|
1154
|
+
break;
|
|
1155
|
+
}
|
|
1156
|
+
message.postTokenBalances.push(TokenBalance.decode(reader, reader.uint32()));
|
|
1157
|
+
continue;
|
|
1063
1158
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1159
|
+
case 9: {
|
|
1160
|
+
if (tag !== 74) {
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
message.rewards.push(Reward.decode(reader, reader.uint32()));
|
|
1164
|
+
continue;
|
|
1070
1165
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1166
|
+
case 12: {
|
|
1167
|
+
if (tag !== 98) {
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
message.loadedWritableAddresses.push(reader.bytes());
|
|
1171
|
+
continue;
|
|
1077
1172
|
}
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1173
|
+
case 13: {
|
|
1174
|
+
if (tag !== 106) {
|
|
1175
|
+
break;
|
|
1176
|
+
}
|
|
1177
|
+
message.loadedReadonlyAddresses.push(reader.bytes());
|
|
1178
|
+
continue;
|
|
1084
1179
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1180
|
+
case 14: {
|
|
1181
|
+
if (tag !== 114) {
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
message.returnData = ReturnData.decode(reader, reader.uint32());
|
|
1185
|
+
continue;
|
|
1091
1186
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1187
|
+
case 15: {
|
|
1188
|
+
if (tag !== 120) {
|
|
1189
|
+
break;
|
|
1190
|
+
}
|
|
1191
|
+
message.returnDataNone = reader.bool();
|
|
1192
|
+
continue;
|
|
1098
1193
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1194
|
+
case 16: {
|
|
1195
|
+
if (tag !== 128) {
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
message.computeUnitsConsumed = reader.uint64();
|
|
1199
|
+
continue;
|
|
1105
1200
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1201
|
+
case 17: {
|
|
1202
|
+
if (tag !== 136) {
|
|
1203
|
+
break;
|
|
1204
|
+
}
|
|
1205
|
+
message.costUnits = reader.uint64();
|
|
1206
|
+
continue;
|
|
1112
1207
|
}
|
|
1113
|
-
message.computeUnitsConsumed = reader.uint64();
|
|
1114
|
-
continue;
|
|
1115
1208
|
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
break;
|
|
1119
|
-
}
|
|
1120
|
-
message.costUnits = reader.uint64();
|
|
1121
|
-
continue;
|
|
1209
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1210
|
+
break;
|
|
1122
1211
|
}
|
|
1212
|
+
reader.skip(tag & 7);
|
|
1123
1213
|
}
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
reader.
|
|
1214
|
+
return message;
|
|
1215
|
+
}
|
|
1216
|
+
finally {
|
|
1217
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1128
1218
|
}
|
|
1129
|
-
return message;
|
|
1130
1219
|
},
|
|
1131
1220
|
fromJSON(object) {
|
|
1132
1221
|
return {
|
|
@@ -1268,9 +1357,9 @@ export const TransactionStatusMeta = {
|
|
|
1268
1357
|
message.err = (object.err !== undefined && object.err !== null)
|
|
1269
1358
|
? TransactionError.fromPartial(object.err)
|
|
1270
1359
|
: undefined;
|
|
1271
|
-
message.fee = object.fee
|
|
1272
|
-
message.preBalances = object.preBalances?.map((e) => e) || [];
|
|
1273
|
-
message.postBalances = object.postBalances?.map((e) => e) || [];
|
|
1360
|
+
message.fee = (object.fee !== undefined && object.fee !== null) ? BigInt(object.fee) : 0n;
|
|
1361
|
+
message.preBalances = object.preBalances?.map((e) => BigInt(e)) || [];
|
|
1362
|
+
message.postBalances = object.postBalances?.map((e) => BigInt(e)) || [];
|
|
1274
1363
|
message.innerInstructions = object.innerInstructions?.map((e) => InnerInstructions.fromPartial(e)) || [];
|
|
1275
1364
|
message.innerInstructionsNone = object.innerInstructionsNone ?? false;
|
|
1276
1365
|
message.logMessages = object.logMessages?.map((e) => e) || [];
|
|
@@ -1284,8 +1373,12 @@ export const TransactionStatusMeta = {
|
|
|
1284
1373
|
? ReturnData.fromPartial(object.returnData)
|
|
1285
1374
|
: undefined;
|
|
1286
1375
|
message.returnDataNone = object.returnDataNone ?? false;
|
|
1287
|
-
message.computeUnitsConsumed = object.computeUnitsConsumed
|
|
1288
|
-
|
|
1376
|
+
message.computeUnitsConsumed = (object.computeUnitsConsumed !== undefined && object.computeUnitsConsumed !== null)
|
|
1377
|
+
? BigInt(object.computeUnitsConsumed)
|
|
1378
|
+
: undefined;
|
|
1379
|
+
message.costUnits = (object.costUnits !== undefined && object.costUnits !== null)
|
|
1380
|
+
? BigInt(object.costUnits)
|
|
1381
|
+
: undefined;
|
|
1289
1382
|
return message;
|
|
1290
1383
|
},
|
|
1291
1384
|
};
|
|
@@ -1301,25 +1394,35 @@ export const TransactionError = {
|
|
|
1301
1394
|
},
|
|
1302
1395
|
decode(input, length) {
|
|
1303
1396
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1304
|
-
const
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1397
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1398
|
+
if (previousRecursionDepth >= 100) {
|
|
1399
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1400
|
+
}
|
|
1401
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1402
|
+
try {
|
|
1403
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1404
|
+
const message = createBaseTransactionError();
|
|
1405
|
+
while (reader.pos < end) {
|
|
1406
|
+
const tag = reader.uint32();
|
|
1407
|
+
switch (tag >>> 3) {
|
|
1408
|
+
case 1: {
|
|
1409
|
+
if (tag !== 10) {
|
|
1410
|
+
break;
|
|
1411
|
+
}
|
|
1412
|
+
message.err = reader.bytes();
|
|
1413
|
+
continue;
|
|
1312
1414
|
}
|
|
1313
|
-
message.err = reader.bytes();
|
|
1314
|
-
continue;
|
|
1315
1415
|
}
|
|
1416
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
reader.skip(tag & 7);
|
|
1316
1420
|
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
reader.
|
|
1421
|
+
return message;
|
|
1422
|
+
}
|
|
1423
|
+
finally {
|
|
1424
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1321
1425
|
}
|
|
1322
|
-
return message;
|
|
1323
1426
|
},
|
|
1324
1427
|
fromJSON(object) {
|
|
1325
1428
|
return { err: isSet(object.err) ? bytesFromBase64(object.err) : new Uint8Array(0) };
|
|
@@ -1355,32 +1458,42 @@ export const InnerInstructions = {
|
|
|
1355
1458
|
},
|
|
1356
1459
|
decode(input, length) {
|
|
1357
1460
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1461
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1462
|
+
if (previousRecursionDepth >= 100) {
|
|
1463
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1464
|
+
}
|
|
1465
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1466
|
+
try {
|
|
1467
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1468
|
+
const message = createBaseInnerInstructions();
|
|
1469
|
+
while (reader.pos < end) {
|
|
1470
|
+
const tag = reader.uint32();
|
|
1471
|
+
switch (tag >>> 3) {
|
|
1472
|
+
case 1: {
|
|
1473
|
+
if (tag !== 8) {
|
|
1474
|
+
break;
|
|
1475
|
+
}
|
|
1476
|
+
message.index = reader.uint32();
|
|
1477
|
+
continue;
|
|
1366
1478
|
}
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1479
|
+
case 2: {
|
|
1480
|
+
if (tag !== 18) {
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
message.instructions.push(InnerInstruction.decode(reader, reader.uint32()));
|
|
1484
|
+
continue;
|
|
1373
1485
|
}
|
|
1374
|
-
message.instructions.push(InnerInstruction.decode(reader, reader.uint32()));
|
|
1375
|
-
continue;
|
|
1376
1486
|
}
|
|
1487
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1488
|
+
break;
|
|
1489
|
+
}
|
|
1490
|
+
reader.skip(tag & 7);
|
|
1377
1491
|
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
reader.
|
|
1492
|
+
return message;
|
|
1493
|
+
}
|
|
1494
|
+
finally {
|
|
1495
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1382
1496
|
}
|
|
1383
|
-
return message;
|
|
1384
1497
|
},
|
|
1385
1498
|
fromJSON(object) {
|
|
1386
1499
|
return {
|
|
@@ -1431,46 +1544,56 @@ export const InnerInstruction = {
|
|
|
1431
1544
|
},
|
|
1432
1545
|
decode(input, length) {
|
|
1433
1546
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
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 = createBaseInnerInstruction();
|
|
1555
|
+
while (reader.pos < end) {
|
|
1556
|
+
const tag = reader.uint32();
|
|
1557
|
+
switch (tag >>> 3) {
|
|
1558
|
+
case 1: {
|
|
1559
|
+
if (tag !== 8) {
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
message.programIdIndex = reader.uint32();
|
|
1563
|
+
continue;
|
|
1442
1564
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1565
|
+
case 2: {
|
|
1566
|
+
if (tag !== 18) {
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
message.accounts = reader.bytes();
|
|
1570
|
+
continue;
|
|
1449
1571
|
}
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1572
|
+
case 3: {
|
|
1573
|
+
if (tag !== 26) {
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
|
+
message.data = reader.bytes();
|
|
1577
|
+
continue;
|
|
1456
1578
|
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1579
|
+
case 4: {
|
|
1580
|
+
if (tag !== 32) {
|
|
1581
|
+
break;
|
|
1582
|
+
}
|
|
1583
|
+
message.stackHeight = reader.uint32();
|
|
1584
|
+
continue;
|
|
1463
1585
|
}
|
|
1464
|
-
message.stackHeight = reader.uint32();
|
|
1465
|
-
continue;
|
|
1466
1586
|
}
|
|
1587
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1588
|
+
break;
|
|
1589
|
+
}
|
|
1590
|
+
reader.skip(tag & 7);
|
|
1467
1591
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
reader.
|
|
1592
|
+
return message;
|
|
1593
|
+
}
|
|
1594
|
+
finally {
|
|
1595
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1472
1596
|
}
|
|
1473
|
-
return message;
|
|
1474
1597
|
},
|
|
1475
1598
|
fromJSON(object) {
|
|
1476
1599
|
return {
|
|
@@ -1534,39 +1657,49 @@ export const CompiledInstruction = {
|
|
|
1534
1657
|
},
|
|
1535
1658
|
decode(input, length) {
|
|
1536
1659
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1660
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1661
|
+
if (previousRecursionDepth >= 100) {
|
|
1662
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1663
|
+
}
|
|
1664
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1665
|
+
try {
|
|
1666
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1667
|
+
const message = createBaseCompiledInstruction();
|
|
1668
|
+
while (reader.pos < end) {
|
|
1669
|
+
const tag = reader.uint32();
|
|
1670
|
+
switch (tag >>> 3) {
|
|
1671
|
+
case 1: {
|
|
1672
|
+
if (tag !== 8) {
|
|
1673
|
+
break;
|
|
1674
|
+
}
|
|
1675
|
+
message.programIdIndex = reader.uint32();
|
|
1676
|
+
continue;
|
|
1545
1677
|
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1678
|
+
case 2: {
|
|
1679
|
+
if (tag !== 18) {
|
|
1680
|
+
break;
|
|
1681
|
+
}
|
|
1682
|
+
message.accounts = reader.bytes();
|
|
1683
|
+
continue;
|
|
1552
1684
|
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1685
|
+
case 3: {
|
|
1686
|
+
if (tag !== 26) {
|
|
1687
|
+
break;
|
|
1688
|
+
}
|
|
1689
|
+
message.data = reader.bytes();
|
|
1690
|
+
continue;
|
|
1559
1691
|
}
|
|
1560
|
-
message.data = reader.bytes();
|
|
1561
|
-
continue;
|
|
1562
1692
|
}
|
|
1693
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1694
|
+
break;
|
|
1695
|
+
}
|
|
1696
|
+
reader.skip(tag & 7);
|
|
1563
1697
|
}
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
reader.
|
|
1698
|
+
return message;
|
|
1699
|
+
}
|
|
1700
|
+
finally {
|
|
1701
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1568
1702
|
}
|
|
1569
|
-
return message;
|
|
1570
1703
|
},
|
|
1571
1704
|
fromJSON(object) {
|
|
1572
1705
|
return {
|
|
@@ -1627,53 +1760,63 @@ export const TokenBalance = {
|
|
|
1627
1760
|
},
|
|
1628
1761
|
decode(input, length) {
|
|
1629
1762
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1630
|
-
const
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1763
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1764
|
+
if (previousRecursionDepth >= 100) {
|
|
1765
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1766
|
+
}
|
|
1767
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1768
|
+
try {
|
|
1769
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1770
|
+
const message = createBaseTokenBalance();
|
|
1771
|
+
while (reader.pos < end) {
|
|
1772
|
+
const tag = reader.uint32();
|
|
1773
|
+
switch (tag >>> 3) {
|
|
1774
|
+
case 1: {
|
|
1775
|
+
if (tag !== 8) {
|
|
1776
|
+
break;
|
|
1777
|
+
}
|
|
1778
|
+
message.accountIndex = reader.uint32();
|
|
1779
|
+
continue;
|
|
1638
1780
|
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1781
|
+
case 2: {
|
|
1782
|
+
if (tag !== 18) {
|
|
1783
|
+
break;
|
|
1784
|
+
}
|
|
1785
|
+
message.mint = reader.string();
|
|
1786
|
+
continue;
|
|
1645
1787
|
}
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1788
|
+
case 3: {
|
|
1789
|
+
if (tag !== 26) {
|
|
1790
|
+
break;
|
|
1791
|
+
}
|
|
1792
|
+
message.uiTokenAmount = UiTokenAmount.decode(reader, reader.uint32());
|
|
1793
|
+
continue;
|
|
1652
1794
|
}
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1795
|
+
case 4: {
|
|
1796
|
+
if (tag !== 34) {
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1799
|
+
message.owner = reader.string();
|
|
1800
|
+
continue;
|
|
1659
1801
|
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1802
|
+
case 5: {
|
|
1803
|
+
if (tag !== 42) {
|
|
1804
|
+
break;
|
|
1805
|
+
}
|
|
1806
|
+
message.programId = reader.string();
|
|
1807
|
+
continue;
|
|
1666
1808
|
}
|
|
1667
|
-
message.programId = reader.string();
|
|
1668
|
-
continue;
|
|
1669
1809
|
}
|
|
1810
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1811
|
+
break;
|
|
1812
|
+
}
|
|
1813
|
+
reader.skip(tag & 7);
|
|
1670
1814
|
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
reader.
|
|
1815
|
+
return message;
|
|
1816
|
+
}
|
|
1817
|
+
finally {
|
|
1818
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1675
1819
|
}
|
|
1676
|
-
return message;
|
|
1677
1820
|
},
|
|
1678
1821
|
fromJSON(object) {
|
|
1679
1822
|
return {
|
|
@@ -1751,46 +1894,56 @@ export const UiTokenAmount = {
|
|
|
1751
1894
|
},
|
|
1752
1895
|
decode(input, length) {
|
|
1753
1896
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1754
|
-
const
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1897
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1898
|
+
if (previousRecursionDepth >= 100) {
|
|
1899
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1900
|
+
}
|
|
1901
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1902
|
+
try {
|
|
1903
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1904
|
+
const message = createBaseUiTokenAmount();
|
|
1905
|
+
while (reader.pos < end) {
|
|
1906
|
+
const tag = reader.uint32();
|
|
1907
|
+
switch (tag >>> 3) {
|
|
1908
|
+
case 1: {
|
|
1909
|
+
if (tag !== 9) {
|
|
1910
|
+
break;
|
|
1911
|
+
}
|
|
1912
|
+
message.uiAmount = reader.double();
|
|
1913
|
+
continue;
|
|
1762
1914
|
}
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1915
|
+
case 2: {
|
|
1916
|
+
if (tag !== 16) {
|
|
1917
|
+
break;
|
|
1918
|
+
}
|
|
1919
|
+
message.decimals = reader.uint32();
|
|
1920
|
+
continue;
|
|
1769
1921
|
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1922
|
+
case 3: {
|
|
1923
|
+
if (tag !== 26) {
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
message.amount = reader.string();
|
|
1927
|
+
continue;
|
|
1776
1928
|
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1929
|
+
case 4: {
|
|
1930
|
+
if (tag !== 34) {
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
message.uiAmountString = reader.string();
|
|
1934
|
+
continue;
|
|
1783
1935
|
}
|
|
1784
|
-
message.uiAmountString = reader.string();
|
|
1785
|
-
continue;
|
|
1786
1936
|
}
|
|
1937
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1938
|
+
break;
|
|
1939
|
+
}
|
|
1940
|
+
reader.skip(tag & 7);
|
|
1787
1941
|
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
reader.
|
|
1942
|
+
return message;
|
|
1943
|
+
}
|
|
1944
|
+
finally {
|
|
1945
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1792
1946
|
}
|
|
1793
|
-
return message;
|
|
1794
1947
|
},
|
|
1795
1948
|
fromJSON(object) {
|
|
1796
1949
|
return {
|
|
@@ -1811,7 +1964,7 @@ export const UiTokenAmount = {
|
|
|
1811
1964
|
toJSON(message) {
|
|
1812
1965
|
const obj = {};
|
|
1813
1966
|
if (message.uiAmount !== 0) {
|
|
1814
|
-
obj.uiAmount = message.uiAmount;
|
|
1967
|
+
obj.uiAmount = floatToJson(message.uiAmount);
|
|
1815
1968
|
}
|
|
1816
1969
|
if (message.decimals !== 0) {
|
|
1817
1970
|
obj.decimals = Math.round(message.decimals);
|
|
@@ -1851,32 +2004,42 @@ export const ReturnData = {
|
|
|
1851
2004
|
},
|
|
1852
2005
|
decode(input, length) {
|
|
1853
2006
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
2007
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2008
|
+
if (previousRecursionDepth >= 100) {
|
|
2009
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2010
|
+
}
|
|
2011
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2012
|
+
try {
|
|
2013
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2014
|
+
const message = createBaseReturnData();
|
|
2015
|
+
while (reader.pos < end) {
|
|
2016
|
+
const tag = reader.uint32();
|
|
2017
|
+
switch (tag >>> 3) {
|
|
2018
|
+
case 1: {
|
|
2019
|
+
if (tag !== 10) {
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
message.programId = reader.bytes();
|
|
2023
|
+
continue;
|
|
1862
2024
|
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
2025
|
+
case 2: {
|
|
2026
|
+
if (tag !== 18) {
|
|
2027
|
+
break;
|
|
2028
|
+
}
|
|
2029
|
+
message.data = reader.bytes();
|
|
2030
|
+
continue;
|
|
1869
2031
|
}
|
|
1870
|
-
message.data = reader.bytes();
|
|
1871
|
-
continue;
|
|
1872
2032
|
}
|
|
2033
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2034
|
+
break;
|
|
2035
|
+
}
|
|
2036
|
+
reader.skip(tag & 7);
|
|
1873
2037
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
reader.
|
|
2038
|
+
return message;
|
|
2039
|
+
}
|
|
2040
|
+
finally {
|
|
2041
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1878
2042
|
}
|
|
1879
|
-
return message;
|
|
1880
2043
|
},
|
|
1881
2044
|
fromJSON(object) {
|
|
1882
2045
|
return {
|
|
@@ -1941,60 +2104,70 @@ export const Reward = {
|
|
|
1941
2104
|
},
|
|
1942
2105
|
decode(input, length) {
|
|
1943
2106
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2107
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2108
|
+
if (previousRecursionDepth >= 100) {
|
|
2109
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2110
|
+
}
|
|
2111
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2112
|
+
try {
|
|
2113
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2114
|
+
const message = createBaseReward();
|
|
2115
|
+
while (reader.pos < end) {
|
|
2116
|
+
const tag = reader.uint32();
|
|
2117
|
+
switch (tag >>> 3) {
|
|
2118
|
+
case 1: {
|
|
2119
|
+
if (tag !== 10) {
|
|
2120
|
+
break;
|
|
2121
|
+
}
|
|
2122
|
+
message.pubkey = reader.string();
|
|
2123
|
+
continue;
|
|
1952
2124
|
}
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
2125
|
+
case 2: {
|
|
2126
|
+
if (tag !== 16) {
|
|
2127
|
+
break;
|
|
2128
|
+
}
|
|
2129
|
+
message.lamports = reader.int64();
|
|
2130
|
+
continue;
|
|
1959
2131
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
2132
|
+
case 3: {
|
|
2133
|
+
if (tag !== 24) {
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2136
|
+
message.postBalance = reader.uint64();
|
|
2137
|
+
continue;
|
|
1966
2138
|
}
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
2139
|
+
case 4: {
|
|
2140
|
+
if (tag !== 32) {
|
|
2141
|
+
break;
|
|
2142
|
+
}
|
|
2143
|
+
message.rewardType = reader.int32();
|
|
2144
|
+
continue;
|
|
1973
2145
|
}
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
2146
|
+
case 5: {
|
|
2147
|
+
if (tag !== 42) {
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
message.commission = reader.string();
|
|
2151
|
+
continue;
|
|
1980
2152
|
}
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
2153
|
+
case 6: {
|
|
2154
|
+
if (tag !== 50) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
message.commissionBps = reader.string();
|
|
2158
|
+
continue;
|
|
1987
2159
|
}
|
|
1988
|
-
message.commissionBps = reader.string();
|
|
1989
|
-
continue;
|
|
1990
2160
|
}
|
|
2161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
reader.skip(tag & 7);
|
|
1991
2165
|
}
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
reader.
|
|
2166
|
+
return message;
|
|
2167
|
+
}
|
|
2168
|
+
finally {
|
|
2169
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1996
2170
|
}
|
|
1997
|
-
return message;
|
|
1998
2171
|
},
|
|
1999
2172
|
fromJSON(object) {
|
|
2000
2173
|
return {
|
|
@@ -2046,8 +2219,10 @@ export const Reward = {
|
|
|
2046
2219
|
fromPartial(object) {
|
|
2047
2220
|
const message = createBaseReward();
|
|
2048
2221
|
message.pubkey = object.pubkey ?? "";
|
|
2049
|
-
message.lamports = object.lamports
|
|
2050
|
-
message.postBalance = object.postBalance
|
|
2222
|
+
message.lamports = (object.lamports !== undefined && object.lamports !== null) ? BigInt(object.lamports) : 0n;
|
|
2223
|
+
message.postBalance = (object.postBalance !== undefined && object.postBalance !== null)
|
|
2224
|
+
? BigInt(object.postBalance)
|
|
2225
|
+
: 0n;
|
|
2051
2226
|
message.rewardType = object.rewardType ?? 0;
|
|
2052
2227
|
message.commission = object.commission ?? "";
|
|
2053
2228
|
message.commissionBps = object.commissionBps ?? "";
|
|
@@ -2069,32 +2244,42 @@ export const Rewards = {
|
|
|
2069
2244
|
},
|
|
2070
2245
|
decode(input, length) {
|
|
2071
2246
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2247
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2248
|
+
if (previousRecursionDepth >= 100) {
|
|
2249
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2250
|
+
}
|
|
2251
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2252
|
+
try {
|
|
2253
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2254
|
+
const message = createBaseRewards();
|
|
2255
|
+
while (reader.pos < end) {
|
|
2256
|
+
const tag = reader.uint32();
|
|
2257
|
+
switch (tag >>> 3) {
|
|
2258
|
+
case 1: {
|
|
2259
|
+
if (tag !== 10) {
|
|
2260
|
+
break;
|
|
2261
|
+
}
|
|
2262
|
+
message.rewards.push(Reward.decode(reader, reader.uint32()));
|
|
2263
|
+
continue;
|
|
2080
2264
|
}
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2265
|
+
case 2: {
|
|
2266
|
+
if (tag !== 18) {
|
|
2267
|
+
break;
|
|
2268
|
+
}
|
|
2269
|
+
message.numPartitions = NumPartitions.decode(reader, reader.uint32());
|
|
2270
|
+
continue;
|
|
2087
2271
|
}
|
|
2088
|
-
message.numPartitions = NumPartitions.decode(reader, reader.uint32());
|
|
2089
|
-
continue;
|
|
2090
2272
|
}
|
|
2273
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2274
|
+
break;
|
|
2275
|
+
}
|
|
2276
|
+
reader.skip(tag & 7);
|
|
2091
2277
|
}
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
reader.
|
|
2278
|
+
return message;
|
|
2279
|
+
}
|
|
2280
|
+
finally {
|
|
2281
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2096
2282
|
}
|
|
2097
|
-
return message;
|
|
2098
2283
|
},
|
|
2099
2284
|
fromJSON(object) {
|
|
2100
2285
|
return {
|
|
@@ -2143,25 +2328,35 @@ export const UnixTimestamp = {
|
|
|
2143
2328
|
},
|
|
2144
2329
|
decode(input, length) {
|
|
2145
2330
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2146
|
-
const
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2331
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2332
|
+
if (previousRecursionDepth >= 100) {
|
|
2333
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2334
|
+
}
|
|
2335
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2336
|
+
try {
|
|
2337
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2338
|
+
const message = createBaseUnixTimestamp();
|
|
2339
|
+
while (reader.pos < end) {
|
|
2340
|
+
const tag = reader.uint32();
|
|
2341
|
+
switch (tag >>> 3) {
|
|
2342
|
+
case 1: {
|
|
2343
|
+
if (tag !== 8) {
|
|
2344
|
+
break;
|
|
2345
|
+
}
|
|
2346
|
+
message.timestamp = reader.int64();
|
|
2347
|
+
continue;
|
|
2154
2348
|
}
|
|
2155
|
-
message.timestamp = reader.int64();
|
|
2156
|
-
continue;
|
|
2157
2349
|
}
|
|
2350
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2351
|
+
break;
|
|
2352
|
+
}
|
|
2353
|
+
reader.skip(tag & 7);
|
|
2158
2354
|
}
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
reader.
|
|
2355
|
+
return message;
|
|
2356
|
+
}
|
|
2357
|
+
finally {
|
|
2358
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2163
2359
|
}
|
|
2164
|
-
return message;
|
|
2165
2360
|
},
|
|
2166
2361
|
fromJSON(object) {
|
|
2167
2362
|
return { timestamp: isSet(object.timestamp) ? BigInt(object.timestamp) : 0n };
|
|
@@ -2178,7 +2373,7 @@ export const UnixTimestamp = {
|
|
|
2178
2373
|
},
|
|
2179
2374
|
fromPartial(object) {
|
|
2180
2375
|
const message = createBaseUnixTimestamp();
|
|
2181
|
-
message.timestamp = object.timestamp
|
|
2376
|
+
message.timestamp = (object.timestamp !== undefined && object.timestamp !== null) ? BigInt(object.timestamp) : 0n;
|
|
2182
2377
|
return message;
|
|
2183
2378
|
},
|
|
2184
2379
|
};
|
|
@@ -2197,25 +2392,35 @@ export const BlockHeight = {
|
|
|
2197
2392
|
},
|
|
2198
2393
|
decode(input, length) {
|
|
2199
2394
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2395
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2396
|
+
if (previousRecursionDepth >= 100) {
|
|
2397
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2398
|
+
}
|
|
2399
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2400
|
+
try {
|
|
2401
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2402
|
+
const message = createBaseBlockHeight();
|
|
2403
|
+
while (reader.pos < end) {
|
|
2404
|
+
const tag = reader.uint32();
|
|
2405
|
+
switch (tag >>> 3) {
|
|
2406
|
+
case 1: {
|
|
2407
|
+
if (tag !== 8) {
|
|
2408
|
+
break;
|
|
2409
|
+
}
|
|
2410
|
+
message.blockHeight = reader.uint64();
|
|
2411
|
+
continue;
|
|
2208
2412
|
}
|
|
2209
|
-
message.blockHeight = reader.uint64();
|
|
2210
|
-
continue;
|
|
2211
2413
|
}
|
|
2414
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2415
|
+
break;
|
|
2416
|
+
}
|
|
2417
|
+
reader.skip(tag & 7);
|
|
2212
2418
|
}
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
reader.
|
|
2419
|
+
return message;
|
|
2420
|
+
}
|
|
2421
|
+
finally {
|
|
2422
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2217
2423
|
}
|
|
2218
|
-
return message;
|
|
2219
2424
|
},
|
|
2220
2425
|
fromJSON(object) {
|
|
2221
2426
|
return {
|
|
@@ -2238,7 +2443,9 @@ export const BlockHeight = {
|
|
|
2238
2443
|
},
|
|
2239
2444
|
fromPartial(object) {
|
|
2240
2445
|
const message = createBaseBlockHeight();
|
|
2241
|
-
message.blockHeight = object.blockHeight
|
|
2446
|
+
message.blockHeight = (object.blockHeight !== undefined && object.blockHeight !== null)
|
|
2447
|
+
? BigInt(object.blockHeight)
|
|
2448
|
+
: 0n;
|
|
2242
2449
|
return message;
|
|
2243
2450
|
},
|
|
2244
2451
|
};
|
|
@@ -2257,25 +2464,35 @@ export const NumPartitions = {
|
|
|
2257
2464
|
},
|
|
2258
2465
|
decode(input, length) {
|
|
2259
2466
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2467
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2468
|
+
if (previousRecursionDepth >= 100) {
|
|
2469
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2470
|
+
}
|
|
2471
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2472
|
+
try {
|
|
2473
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2474
|
+
const message = createBaseNumPartitions();
|
|
2475
|
+
while (reader.pos < end) {
|
|
2476
|
+
const tag = reader.uint32();
|
|
2477
|
+
switch (tag >>> 3) {
|
|
2478
|
+
case 1: {
|
|
2479
|
+
if (tag !== 8) {
|
|
2480
|
+
break;
|
|
2481
|
+
}
|
|
2482
|
+
message.numPartitions = reader.uint64();
|
|
2483
|
+
continue;
|
|
2268
2484
|
}
|
|
2269
|
-
message.numPartitions = reader.uint64();
|
|
2270
|
-
continue;
|
|
2271
2485
|
}
|
|
2486
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2487
|
+
break;
|
|
2488
|
+
}
|
|
2489
|
+
reader.skip(tag & 7);
|
|
2272
2490
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
reader.
|
|
2491
|
+
return message;
|
|
2492
|
+
}
|
|
2493
|
+
finally {
|
|
2494
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2277
2495
|
}
|
|
2278
|
-
return message;
|
|
2279
2496
|
},
|
|
2280
2497
|
fromJSON(object) {
|
|
2281
2498
|
return {
|
|
@@ -2298,7 +2515,9 @@ export const NumPartitions = {
|
|
|
2298
2515
|
},
|
|
2299
2516
|
fromPartial(object) {
|
|
2300
2517
|
const message = createBaseNumPartitions();
|
|
2301
|
-
message.numPartitions = object.numPartitions
|
|
2518
|
+
message.numPartitions = (object.numPartitions !== undefined && object.numPartitions !== null)
|
|
2519
|
+
? BigInt(object.numPartitions)
|
|
2520
|
+
: 0n;
|
|
2302
2521
|
return message;
|
|
2303
2522
|
},
|
|
2304
2523
|
};
|
|
@@ -2327,6 +2546,9 @@ function base64FromBytes(arr) {
|
|
|
2327
2546
|
return globalThis.btoa(bin.join(""));
|
|
2328
2547
|
}
|
|
2329
2548
|
}
|
|
2549
|
+
function floatToJson(value) {
|
|
2550
|
+
return typeof value === "number" && !globalThis.Number.isFinite(value) ? globalThis.String(value) : value;
|
|
2551
|
+
}
|
|
2330
2552
|
function isSet(value) {
|
|
2331
2553
|
return value !== null && value !== undefined;
|
|
2332
2554
|
}
|