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