@triton-one/yellowstone-grpc 0.2.1 → 0.3.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/dist/grpc/geyser.d.ts +219 -110
- package/dist/grpc/geyser.js +151 -9
- package/package.json +1 -1
package/dist/grpc/geyser.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface SubscribeRequest {
|
|
|
32
32
|
};
|
|
33
33
|
commitment?: CommitmentLevel | undefined;
|
|
34
34
|
accountsDataSlice: SubscribeRequestAccountsDataSlice[];
|
|
35
|
+
ping?: SubscribeRequestPing | undefined;
|
|
35
36
|
}
|
|
36
37
|
export interface SubscribeRequest_AccountsEntry {
|
|
37
38
|
key: string;
|
|
@@ -74,6 +75,7 @@ export interface SubscribeRequestFilterAccountsFilterMemcmp {
|
|
|
74
75
|
base64?: string | undefined;
|
|
75
76
|
}
|
|
76
77
|
export interface SubscribeRequestFilterSlots {
|
|
78
|
+
filterByCommitment?: boolean | undefined;
|
|
77
79
|
}
|
|
78
80
|
export interface SubscribeRequestFilterTransactions {
|
|
79
81
|
vote?: boolean | undefined;
|
|
@@ -97,6 +99,9 @@ export interface SubscribeRequestAccountsDataSlice {
|
|
|
97
99
|
offset: string;
|
|
98
100
|
length: string;
|
|
99
101
|
}
|
|
102
|
+
export interface SubscribeRequestPing {
|
|
103
|
+
id: number;
|
|
104
|
+
}
|
|
100
105
|
export interface SubscribeUpdate {
|
|
101
106
|
filters: string[];
|
|
102
107
|
account?: SubscribeUpdateAccount | undefined;
|
|
@@ -104,6 +109,7 @@ export interface SubscribeUpdate {
|
|
|
104
109
|
transaction?: SubscribeUpdateTransaction | undefined;
|
|
105
110
|
block?: SubscribeUpdateBlock | undefined;
|
|
106
111
|
ping?: SubscribeUpdatePing | undefined;
|
|
112
|
+
pong?: SubscribeUpdatePong | undefined;
|
|
107
113
|
blockMeta?: SubscribeUpdateBlockMeta | undefined;
|
|
108
114
|
entry?: SubscribeUpdateEntry | undefined;
|
|
109
115
|
}
|
|
@@ -172,6 +178,9 @@ export interface SubscribeUpdateEntry {
|
|
|
172
178
|
}
|
|
173
179
|
export interface SubscribeUpdatePing {
|
|
174
180
|
}
|
|
181
|
+
export interface SubscribeUpdatePong {
|
|
182
|
+
id: number;
|
|
183
|
+
}
|
|
175
184
|
export interface PingRequest {
|
|
176
185
|
count: number;
|
|
177
186
|
}
|
|
@@ -234,7 +243,9 @@ export declare const SubscribeRequest: {
|
|
|
234
243
|
};
|
|
235
244
|
};
|
|
236
245
|
slots?: {
|
|
237
|
-
[x: string]: {
|
|
246
|
+
[x: string]: {
|
|
247
|
+
filterByCommitment?: boolean | undefined;
|
|
248
|
+
};
|
|
238
249
|
};
|
|
239
250
|
transactions?: {
|
|
240
251
|
[x: string]: {
|
|
@@ -265,6 +276,9 @@ export declare const SubscribeRequest: {
|
|
|
265
276
|
offset?: string;
|
|
266
277
|
length?: string;
|
|
267
278
|
}[];
|
|
279
|
+
ping?: {
|
|
280
|
+
id?: number;
|
|
281
|
+
};
|
|
268
282
|
} & {
|
|
269
283
|
accounts?: {
|
|
270
284
|
[x: string]: {
|
|
@@ -343,9 +357,15 @@ export declare const SubscribeRequest: {
|
|
|
343
357
|
} & { [K_5 in Exclude<keyof I["accounts"][string], keyof SubscribeRequestFilterAccounts>]: never; };
|
|
344
358
|
} & { [K_6 in Exclude<keyof I["accounts"], string | number>]: never; };
|
|
345
359
|
slots?: {
|
|
346
|
-
[x: string]: {
|
|
360
|
+
[x: string]: {
|
|
361
|
+
filterByCommitment?: boolean | undefined;
|
|
362
|
+
};
|
|
347
363
|
} & {
|
|
348
|
-
[x: string]: {
|
|
364
|
+
[x: string]: {
|
|
365
|
+
filterByCommitment?: boolean | undefined;
|
|
366
|
+
} & {
|
|
367
|
+
filterByCommitment?: boolean | undefined;
|
|
368
|
+
} & { [K_7 in Exclude<keyof I["slots"][string], "filterByCommitment">]: never; };
|
|
349
369
|
} & { [K_8 in Exclude<keyof I["slots"], string | number>]: never; };
|
|
350
370
|
transactions?: {
|
|
351
371
|
[x: string]: {
|
|
@@ -417,7 +437,12 @@ export declare const SubscribeRequest: {
|
|
|
417
437
|
offset?: string;
|
|
418
438
|
length?: string;
|
|
419
439
|
}[]>]: never; };
|
|
420
|
-
|
|
440
|
+
ping?: {
|
|
441
|
+
id?: number;
|
|
442
|
+
} & {
|
|
443
|
+
id?: number;
|
|
444
|
+
} & { [K_23 in Exclude<keyof I["ping"], "id">]: never; };
|
|
445
|
+
} & { [K_24 in Exclude<keyof I, keyof SubscribeRequest>]: never; }>(base?: I): SubscribeRequest;
|
|
421
446
|
fromPartial<I_1 extends {
|
|
422
447
|
accounts?: {
|
|
423
448
|
[x: string]: {
|
|
@@ -436,7 +461,9 @@ export declare const SubscribeRequest: {
|
|
|
436
461
|
};
|
|
437
462
|
};
|
|
438
463
|
slots?: {
|
|
439
|
-
[x: string]: {
|
|
464
|
+
[x: string]: {
|
|
465
|
+
filterByCommitment?: boolean | undefined;
|
|
466
|
+
};
|
|
440
467
|
};
|
|
441
468
|
transactions?: {
|
|
442
469
|
[x: string]: {
|
|
@@ -467,6 +494,9 @@ export declare const SubscribeRequest: {
|
|
|
467
494
|
offset?: string;
|
|
468
495
|
length?: string;
|
|
469
496
|
}[];
|
|
497
|
+
ping?: {
|
|
498
|
+
id?: number;
|
|
499
|
+
};
|
|
470
500
|
} & {
|
|
471
501
|
accounts?: {
|
|
472
502
|
[x: string]: {
|
|
@@ -498,8 +528,8 @@ export declare const SubscribeRequest: {
|
|
|
498
528
|
tokenAccountState?: boolean | undefined;
|
|
499
529
|
}[];
|
|
500
530
|
} & {
|
|
501
|
-
account?: string[] & string[] & { [
|
|
502
|
-
owner?: string[] & string[] & { [
|
|
531
|
+
account?: string[] & string[] & { [K_25 in Exclude<keyof I_1["accounts"][string]["account"], keyof string[]>]: never; };
|
|
532
|
+
owner?: string[] & string[] & { [K_26 in Exclude<keyof I_1["accounts"][string]["owner"], keyof string[]>]: never; };
|
|
503
533
|
filters?: {
|
|
504
534
|
memcmp?: {
|
|
505
535
|
offset?: string;
|
|
@@ -529,10 +559,10 @@ export declare const SubscribeRequest: {
|
|
|
529
559
|
bytes?: Uint8Array | undefined;
|
|
530
560
|
base58?: string | undefined;
|
|
531
561
|
base64?: string | undefined;
|
|
532
|
-
} & { [
|
|
562
|
+
} & { [K_27 in Exclude<keyof I_1["accounts"][string]["filters"][number]["memcmp"], keyof SubscribeRequestFilterAccountsFilterMemcmp>]: never; };
|
|
533
563
|
datasize?: string | undefined;
|
|
534
564
|
tokenAccountState?: boolean | undefined;
|
|
535
|
-
} & { [
|
|
565
|
+
} & { [K_28 in Exclude<keyof I_1["accounts"][string]["filters"][number], keyof SubscribeRequestFilterAccountsFilter>]: never; })[] & { [K_29 in Exclude<keyof I_1["accounts"][string]["filters"], keyof {
|
|
536
566
|
memcmp?: {
|
|
537
567
|
offset?: string;
|
|
538
568
|
bytes?: Uint8Array | undefined;
|
|
@@ -542,13 +572,19 @@ export declare const SubscribeRequest: {
|
|
|
542
572
|
datasize?: string | undefined;
|
|
543
573
|
tokenAccountState?: boolean | undefined;
|
|
544
574
|
}[]>]: never; };
|
|
545
|
-
} & { [
|
|
546
|
-
} & { [
|
|
575
|
+
} & { [K_30 in Exclude<keyof I_1["accounts"][string], keyof SubscribeRequestFilterAccounts>]: never; };
|
|
576
|
+
} & { [K_31 in Exclude<keyof I_1["accounts"], string | number>]: never; };
|
|
547
577
|
slots?: {
|
|
548
|
-
[x: string]: {
|
|
578
|
+
[x: string]: {
|
|
579
|
+
filterByCommitment?: boolean | undefined;
|
|
580
|
+
};
|
|
549
581
|
} & {
|
|
550
|
-
[x: string]: {
|
|
551
|
-
|
|
582
|
+
[x: string]: {
|
|
583
|
+
filterByCommitment?: boolean | undefined;
|
|
584
|
+
} & {
|
|
585
|
+
filterByCommitment?: boolean | undefined;
|
|
586
|
+
} & { [K_32 in Exclude<keyof I_1["slots"][string], "filterByCommitment">]: never; };
|
|
587
|
+
} & { [K_33 in Exclude<keyof I_1["slots"], string | number>]: never; };
|
|
552
588
|
transactions?: {
|
|
553
589
|
[x: string]: {
|
|
554
590
|
vote?: boolean | undefined;
|
|
@@ -570,11 +606,11 @@ export declare const SubscribeRequest: {
|
|
|
570
606
|
vote?: boolean | undefined;
|
|
571
607
|
failed?: boolean | undefined;
|
|
572
608
|
signature?: string | undefined;
|
|
573
|
-
accountInclude?: string[] & string[] & { [
|
|
574
|
-
accountExclude?: string[] & string[] & { [
|
|
575
|
-
accountRequired?: string[] & string[] & { [
|
|
576
|
-
} & { [
|
|
577
|
-
} & { [
|
|
609
|
+
accountInclude?: string[] & string[] & { [K_34 in Exclude<keyof I_1["transactions"][string]["accountInclude"], keyof string[]>]: never; };
|
|
610
|
+
accountExclude?: string[] & string[] & { [K_35 in Exclude<keyof I_1["transactions"][string]["accountExclude"], keyof string[]>]: never; };
|
|
611
|
+
accountRequired?: string[] & string[] & { [K_36 in Exclude<keyof I_1["transactions"][string]["accountRequired"], keyof string[]>]: never; };
|
|
612
|
+
} & { [K_37 in Exclude<keyof I_1["transactions"][string], keyof SubscribeRequestFilterTransactions>]: never; };
|
|
613
|
+
} & { [K_38 in Exclude<keyof I_1["transactions"], string | number>]: never; };
|
|
578
614
|
blocks?: {
|
|
579
615
|
[x: string]: {
|
|
580
616
|
accountInclude?: string[];
|
|
@@ -589,22 +625,22 @@ export declare const SubscribeRequest: {
|
|
|
589
625
|
includeAccounts?: boolean | undefined;
|
|
590
626
|
includeEntries?: boolean | undefined;
|
|
591
627
|
} & {
|
|
592
|
-
accountInclude?: string[] & string[] & { [
|
|
628
|
+
accountInclude?: string[] & string[] & { [K_39 in Exclude<keyof I_1["blocks"][string]["accountInclude"], keyof string[]>]: never; };
|
|
593
629
|
includeTransactions?: boolean | undefined;
|
|
594
630
|
includeAccounts?: boolean | undefined;
|
|
595
631
|
includeEntries?: boolean | undefined;
|
|
596
|
-
} & { [
|
|
597
|
-
} & { [
|
|
632
|
+
} & { [K_40 in Exclude<keyof I_1["blocks"][string], keyof SubscribeRequestFilterBlocks>]: never; };
|
|
633
|
+
} & { [K_41 in Exclude<keyof I_1["blocks"], string | number>]: never; };
|
|
598
634
|
blocksMeta?: {
|
|
599
635
|
[x: string]: {};
|
|
600
636
|
} & {
|
|
601
|
-
[x: string]: {} & {} & { [
|
|
602
|
-
} & { [
|
|
637
|
+
[x: string]: {} & {} & { [K_42 in Exclude<keyof I_1["blocksMeta"][string], never>]: never; };
|
|
638
|
+
} & { [K_43 in Exclude<keyof I_1["blocksMeta"], string | number>]: never; };
|
|
603
639
|
entry?: {
|
|
604
640
|
[x: string]: {};
|
|
605
641
|
} & {
|
|
606
|
-
[x: string]: {} & {} & { [
|
|
607
|
-
} & { [
|
|
642
|
+
[x: string]: {} & {} & { [K_44 in Exclude<keyof I_1["entry"][string], never>]: never; };
|
|
643
|
+
} & { [K_45 in Exclude<keyof I_1["entry"], string | number>]: never; };
|
|
608
644
|
commitment?: CommitmentLevel | undefined;
|
|
609
645
|
accountsDataSlice?: {
|
|
610
646
|
offset?: string;
|
|
@@ -615,11 +651,16 @@ export declare const SubscribeRequest: {
|
|
|
615
651
|
} & {
|
|
616
652
|
offset?: string;
|
|
617
653
|
length?: string;
|
|
618
|
-
} & { [
|
|
654
|
+
} & { [K_46 in Exclude<keyof I_1["accountsDataSlice"][number], keyof SubscribeRequestAccountsDataSlice>]: never; })[] & { [K_47 in Exclude<keyof I_1["accountsDataSlice"], keyof {
|
|
619
655
|
offset?: string;
|
|
620
656
|
length?: string;
|
|
621
657
|
}[]>]: never; };
|
|
622
|
-
|
|
658
|
+
ping?: {
|
|
659
|
+
id?: number;
|
|
660
|
+
} & {
|
|
661
|
+
id?: number;
|
|
662
|
+
} & { [K_48 in Exclude<keyof I_1["ping"], "id">]: never; };
|
|
663
|
+
} & { [K_49 in Exclude<keyof I_1, keyof SubscribeRequest>]: never; }>(object: I_1): SubscribeRequest;
|
|
623
664
|
};
|
|
624
665
|
export declare const SubscribeRequest_AccountsEntry: {
|
|
625
666
|
encode(message: SubscribeRequest_AccountsEntry, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -790,17 +831,29 @@ export declare const SubscribeRequest_SlotsEntry: {
|
|
|
790
831
|
toJSON(message: SubscribeRequest_SlotsEntry): unknown;
|
|
791
832
|
create<I extends {
|
|
792
833
|
key?: string;
|
|
793
|
-
value?: {
|
|
834
|
+
value?: {
|
|
835
|
+
filterByCommitment?: boolean | undefined;
|
|
836
|
+
};
|
|
794
837
|
} & {
|
|
795
838
|
key?: string;
|
|
796
|
-
value?: {
|
|
839
|
+
value?: {
|
|
840
|
+
filterByCommitment?: boolean | undefined;
|
|
841
|
+
} & {
|
|
842
|
+
filterByCommitment?: boolean | undefined;
|
|
843
|
+
} & { [K in Exclude<keyof I["value"], "filterByCommitment">]: never; };
|
|
797
844
|
} & { [K_1 in Exclude<keyof I, keyof SubscribeRequest_SlotsEntry>]: never; }>(base?: I): SubscribeRequest_SlotsEntry;
|
|
798
845
|
fromPartial<I_1 extends {
|
|
799
846
|
key?: string;
|
|
800
|
-
value?: {
|
|
847
|
+
value?: {
|
|
848
|
+
filterByCommitment?: boolean | undefined;
|
|
849
|
+
};
|
|
801
850
|
} & {
|
|
802
851
|
key?: string;
|
|
803
|
-
value?: {
|
|
852
|
+
value?: {
|
|
853
|
+
filterByCommitment?: boolean | undefined;
|
|
854
|
+
} & {
|
|
855
|
+
filterByCommitment?: boolean | undefined;
|
|
856
|
+
} & { [K_2 in Exclude<keyof I_1["value"], "filterByCommitment">]: never; };
|
|
804
857
|
} & { [K_3 in Exclude<keyof I_1, keyof SubscribeRequest_SlotsEntry>]: never; }>(object: I_1): SubscribeRequest_SlotsEntry;
|
|
805
858
|
};
|
|
806
859
|
export declare const SubscribeRequest_TransactionsEntry: {
|
|
@@ -1162,12 +1215,20 @@ export declare const SubscribeRequestFilterAccountsFilterMemcmp: {
|
|
|
1162
1215
|
} & { [K_1 in Exclude<keyof I_1, keyof SubscribeRequestFilterAccountsFilterMemcmp>]: never; }>(object: I_1): SubscribeRequestFilterAccountsFilterMemcmp;
|
|
1163
1216
|
};
|
|
1164
1217
|
export declare const SubscribeRequestFilterSlots: {
|
|
1165
|
-
encode(
|
|
1218
|
+
encode(message: SubscribeRequestFilterSlots, writer?: _m0.Writer): _m0.Writer;
|
|
1166
1219
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequestFilterSlots;
|
|
1167
|
-
fromJSON(
|
|
1168
|
-
toJSON(
|
|
1169
|
-
create<I extends {
|
|
1170
|
-
|
|
1220
|
+
fromJSON(object: any): SubscribeRequestFilterSlots;
|
|
1221
|
+
toJSON(message: SubscribeRequestFilterSlots): unknown;
|
|
1222
|
+
create<I extends {
|
|
1223
|
+
filterByCommitment?: boolean | undefined;
|
|
1224
|
+
} & {
|
|
1225
|
+
filterByCommitment?: boolean | undefined;
|
|
1226
|
+
} & { [K in Exclude<keyof I, "filterByCommitment">]: never; }>(base?: I): SubscribeRequestFilterSlots;
|
|
1227
|
+
fromPartial<I_1 extends {
|
|
1228
|
+
filterByCommitment?: boolean | undefined;
|
|
1229
|
+
} & {
|
|
1230
|
+
filterByCommitment?: boolean | undefined;
|
|
1231
|
+
} & { [K_1 in Exclude<keyof I_1, "filterByCommitment">]: never; }>(object: I_1): SubscribeRequestFilterSlots;
|
|
1171
1232
|
};
|
|
1172
1233
|
export declare const SubscribeRequestFilterTransactions: {
|
|
1173
1234
|
encode(message: SubscribeRequestFilterTransactions, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1269,6 +1330,22 @@ export declare const SubscribeRequestAccountsDataSlice: {
|
|
|
1269
1330
|
length?: string;
|
|
1270
1331
|
} & { [K_1 in Exclude<keyof I_1, keyof SubscribeRequestAccountsDataSlice>]: never; }>(object: I_1): SubscribeRequestAccountsDataSlice;
|
|
1271
1332
|
};
|
|
1333
|
+
export declare const SubscribeRequestPing: {
|
|
1334
|
+
encode(message: SubscribeRequestPing, writer?: _m0.Writer): _m0.Writer;
|
|
1335
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeRequestPing;
|
|
1336
|
+
fromJSON(object: any): SubscribeRequestPing;
|
|
1337
|
+
toJSON(message: SubscribeRequestPing): unknown;
|
|
1338
|
+
create<I extends {
|
|
1339
|
+
id?: number;
|
|
1340
|
+
} & {
|
|
1341
|
+
id?: number;
|
|
1342
|
+
} & { [K in Exclude<keyof I, "id">]: never; }>(base?: I): SubscribeRequestPing;
|
|
1343
|
+
fromPartial<I_1 extends {
|
|
1344
|
+
id?: number;
|
|
1345
|
+
} & {
|
|
1346
|
+
id?: number;
|
|
1347
|
+
} & { [K_1 in Exclude<keyof I_1, "id">]: never; }>(object: I_1): SubscribeRequestPing;
|
|
1348
|
+
};
|
|
1272
1349
|
export declare const SubscribeUpdate: {
|
|
1273
1350
|
encode(message: SubscribeUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
1274
1351
|
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeUpdate;
|
|
@@ -1514,6 +1591,9 @@ export declare const SubscribeUpdate: {
|
|
|
1514
1591
|
}[];
|
|
1515
1592
|
};
|
|
1516
1593
|
ping?: {};
|
|
1594
|
+
pong?: {
|
|
1595
|
+
id?: number;
|
|
1596
|
+
};
|
|
1517
1597
|
blockMeta?: {
|
|
1518
1598
|
slot?: string;
|
|
1519
1599
|
blockhash?: string;
|
|
@@ -2974,6 +3054,11 @@ export declare const SubscribeUpdate: {
|
|
|
2974
3054
|
}[]>]: never; };
|
|
2975
3055
|
} & { [K_75 in Exclude<keyof I["block"], keyof SubscribeUpdateBlock>]: never; };
|
|
2976
3056
|
ping?: {} & {} & { [K_76 in Exclude<keyof I["ping"], never>]: never; };
|
|
3057
|
+
pong?: {
|
|
3058
|
+
id?: number;
|
|
3059
|
+
} & {
|
|
3060
|
+
id?: number;
|
|
3061
|
+
} & { [K_77 in Exclude<keyof I["pong"], "id">]: never; };
|
|
2977
3062
|
blockMeta?: {
|
|
2978
3063
|
slot?: string;
|
|
2979
3064
|
blockhash?: string;
|
|
@@ -3025,28 +3110,28 @@ export declare const SubscribeUpdate: {
|
|
|
3025
3110
|
postBalance?: string;
|
|
3026
3111
|
rewardType?: import("./solana-storage").RewardType;
|
|
3027
3112
|
commission?: string;
|
|
3028
|
-
} & { [
|
|
3113
|
+
} & { [K_78 in Exclude<keyof I["blockMeta"]["rewards"]["rewards"][number], keyof import("./solana-storage").Reward>]: never; })[] & { [K_79 in Exclude<keyof I["blockMeta"]["rewards"]["rewards"], keyof {
|
|
3029
3114
|
pubkey?: string;
|
|
3030
3115
|
lamports?: string;
|
|
3031
3116
|
postBalance?: string;
|
|
3032
3117
|
rewardType?: import("./solana-storage").RewardType;
|
|
3033
3118
|
commission?: string;
|
|
3034
3119
|
}[]>]: never; };
|
|
3035
|
-
} & { [
|
|
3120
|
+
} & { [K_80 in Exclude<keyof I["blockMeta"]["rewards"], "rewards">]: never; };
|
|
3036
3121
|
blockTime?: {
|
|
3037
3122
|
timestamp?: string;
|
|
3038
3123
|
} & {
|
|
3039
3124
|
timestamp?: string;
|
|
3040
|
-
} & { [
|
|
3125
|
+
} & { [K_81 in Exclude<keyof I["blockMeta"]["blockTime"], "timestamp">]: never; };
|
|
3041
3126
|
blockHeight?: {
|
|
3042
3127
|
blockHeight?: string;
|
|
3043
3128
|
} & {
|
|
3044
3129
|
blockHeight?: string;
|
|
3045
|
-
} & { [
|
|
3130
|
+
} & { [K_82 in Exclude<keyof I["blockMeta"]["blockHeight"], "blockHeight">]: never; };
|
|
3046
3131
|
parentSlot?: string;
|
|
3047
3132
|
parentBlockhash?: string;
|
|
3048
3133
|
executedTransactionCount?: string;
|
|
3049
|
-
} & { [
|
|
3134
|
+
} & { [K_83 in Exclude<keyof I["blockMeta"], keyof SubscribeUpdateBlockMeta>]: never; };
|
|
3050
3135
|
entry?: {
|
|
3051
3136
|
slot?: string;
|
|
3052
3137
|
index?: string;
|
|
@@ -3059,8 +3144,8 @@ export declare const SubscribeUpdate: {
|
|
|
3059
3144
|
numHashes?: string;
|
|
3060
3145
|
hash?: Uint8Array;
|
|
3061
3146
|
executedTransactionCount?: string;
|
|
3062
|
-
} & { [
|
|
3063
|
-
} & { [
|
|
3147
|
+
} & { [K_84 in Exclude<keyof I["entry"], keyof SubscribeUpdateEntry>]: never; };
|
|
3148
|
+
} & { [K_85 in Exclude<keyof I, keyof SubscribeUpdate>]: never; }>(base?: I): SubscribeUpdate;
|
|
3064
3149
|
fromPartial<I_1 extends {
|
|
3065
3150
|
filters?: string[];
|
|
3066
3151
|
account?: {
|
|
@@ -3301,6 +3386,9 @@ export declare const SubscribeUpdate: {
|
|
|
3301
3386
|
}[];
|
|
3302
3387
|
};
|
|
3303
3388
|
ping?: {};
|
|
3389
|
+
pong?: {
|
|
3390
|
+
id?: number;
|
|
3391
|
+
};
|
|
3304
3392
|
blockMeta?: {
|
|
3305
3393
|
slot?: string;
|
|
3306
3394
|
blockhash?: string;
|
|
@@ -3331,7 +3419,7 @@ export declare const SubscribeUpdate: {
|
|
|
3331
3419
|
executedTransactionCount?: string;
|
|
3332
3420
|
};
|
|
3333
3421
|
} & {
|
|
3334
|
-
filters?: string[] & string[] & { [
|
|
3422
|
+
filters?: string[] & string[] & { [K_86 in Exclude<keyof I_1["filters"], keyof string[]>]: never; };
|
|
3335
3423
|
account?: {
|
|
3336
3424
|
account?: {
|
|
3337
3425
|
pubkey?: Uint8Array;
|
|
@@ -3364,10 +3452,10 @@ export declare const SubscribeUpdate: {
|
|
|
3364
3452
|
data?: Uint8Array;
|
|
3365
3453
|
writeVersion?: string;
|
|
3366
3454
|
txnSignature?: Uint8Array | undefined;
|
|
3367
|
-
} & { [
|
|
3455
|
+
} & { [K_87 in Exclude<keyof I_1["account"]["account"], keyof SubscribeUpdateAccountInfo>]: never; };
|
|
3368
3456
|
slot?: string;
|
|
3369
3457
|
isStartup?: boolean;
|
|
3370
|
-
} & { [
|
|
3458
|
+
} & { [K_88 in Exclude<keyof I_1["account"], keyof SubscribeUpdateAccount>]: never; };
|
|
3371
3459
|
slot?: {
|
|
3372
3460
|
slot?: string;
|
|
3373
3461
|
parent?: string | undefined;
|
|
@@ -3376,7 +3464,7 @@ export declare const SubscribeUpdate: {
|
|
|
3376
3464
|
slot?: string;
|
|
3377
3465
|
parent?: string | undefined;
|
|
3378
3466
|
status?: CommitmentLevel;
|
|
3379
|
-
} & { [
|
|
3467
|
+
} & { [K_89 in Exclude<keyof I_1["slot"], keyof SubscribeUpdateSlot>]: never; };
|
|
3380
3468
|
transaction?: {
|
|
3381
3469
|
transaction?: {
|
|
3382
3470
|
signature?: Uint8Array;
|
|
@@ -3579,7 +3667,7 @@ export declare const SubscribeUpdate: {
|
|
|
3579
3667
|
}[];
|
|
3580
3668
|
};
|
|
3581
3669
|
} & {
|
|
3582
|
-
signatures?: Uint8Array[] & Uint8Array[] & { [
|
|
3670
|
+
signatures?: Uint8Array[] & Uint8Array[] & { [K_90 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["signatures"], keyof Uint8Array[]>]: never; };
|
|
3583
3671
|
message?: {
|
|
3584
3672
|
header?: {
|
|
3585
3673
|
numRequiredSignatures?: number;
|
|
@@ -3608,8 +3696,8 @@ export declare const SubscribeUpdate: {
|
|
|
3608
3696
|
numRequiredSignatures?: number;
|
|
3609
3697
|
numReadonlySignedAccounts?: number;
|
|
3610
3698
|
numReadonlyUnsignedAccounts?: number;
|
|
3611
|
-
} & { [
|
|
3612
|
-
accountKeys?: Uint8Array[] & Uint8Array[] & { [
|
|
3699
|
+
} & { [K_91 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"]["header"], keyof import("./solana-storage").MessageHeader>]: never; };
|
|
3700
|
+
accountKeys?: Uint8Array[] & Uint8Array[] & { [K_92 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"]["accountKeys"], keyof Uint8Array[]>]: never; };
|
|
3613
3701
|
recentBlockhash?: Uint8Array;
|
|
3614
3702
|
instructions?: {
|
|
3615
3703
|
programIdIndex?: number;
|
|
@@ -3623,7 +3711,7 @@ export declare const SubscribeUpdate: {
|
|
|
3623
3711
|
programIdIndex?: number;
|
|
3624
3712
|
accounts?: Uint8Array;
|
|
3625
3713
|
data?: Uint8Array;
|
|
3626
|
-
} & { [
|
|
3714
|
+
} & { [K_93 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"]["instructions"][number], keyof import("./solana-storage").CompiledInstruction>]: never; })[] & { [K_94 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"]["instructions"], keyof {
|
|
3627
3715
|
programIdIndex?: number;
|
|
3628
3716
|
accounts?: Uint8Array;
|
|
3629
3717
|
data?: Uint8Array;
|
|
@@ -3641,13 +3729,13 @@ export declare const SubscribeUpdate: {
|
|
|
3641
3729
|
accountKey?: Uint8Array;
|
|
3642
3730
|
writableIndexes?: Uint8Array;
|
|
3643
3731
|
readonlyIndexes?: Uint8Array;
|
|
3644
|
-
} & { [
|
|
3732
|
+
} & { [K_95 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"]["addressTableLookups"][number], keyof import("./solana-storage").MessageAddressTableLookup>]: never; })[] & { [K_96 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"]["addressTableLookups"], keyof {
|
|
3645
3733
|
accountKey?: Uint8Array;
|
|
3646
3734
|
writableIndexes?: Uint8Array;
|
|
3647
3735
|
readonlyIndexes?: Uint8Array;
|
|
3648
3736
|
}[]>]: never; };
|
|
3649
|
-
} & { [
|
|
3650
|
-
} & { [
|
|
3737
|
+
} & { [K_97 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"]["message"], keyof import("./solana-storage").Message>]: never; };
|
|
3738
|
+
} & { [K_98 in Exclude<keyof I_1["transaction"]["transaction"]["transaction"], keyof Transaction>]: never; };
|
|
3651
3739
|
meta?: {
|
|
3652
3740
|
err?: {
|
|
3653
3741
|
err?: Uint8Array;
|
|
@@ -3711,10 +3799,10 @@ export declare const SubscribeUpdate: {
|
|
|
3711
3799
|
err?: Uint8Array;
|
|
3712
3800
|
} & {
|
|
3713
3801
|
err?: Uint8Array;
|
|
3714
|
-
} & { [
|
|
3802
|
+
} & { [K_99 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["err"], "err">]: never; };
|
|
3715
3803
|
fee?: string;
|
|
3716
|
-
preBalances?: string[] & string[] & { [
|
|
3717
|
-
postBalances?: string[] & string[] & { [
|
|
3804
|
+
preBalances?: string[] & string[] & { [K_100 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["preBalances"], keyof string[]>]: never; };
|
|
3805
|
+
postBalances?: string[] & string[] & { [K_101 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["postBalances"], keyof string[]>]: never; };
|
|
3718
3806
|
innerInstructions?: {
|
|
3719
3807
|
index?: number;
|
|
3720
3808
|
instructions?: {
|
|
@@ -3748,13 +3836,13 @@ export declare const SubscribeUpdate: {
|
|
|
3748
3836
|
accounts?: Uint8Array;
|
|
3749
3837
|
data?: Uint8Array;
|
|
3750
3838
|
stackHeight?: number;
|
|
3751
|
-
} & { [
|
|
3839
|
+
} & { [K_102 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["innerInstructions"][number]["instructions"][number], keyof import("./solana-storage").InnerInstruction>]: never; })[] & { [K_103 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["innerInstructions"][number]["instructions"], keyof {
|
|
3752
3840
|
programIdIndex?: number;
|
|
3753
3841
|
accounts?: Uint8Array;
|
|
3754
3842
|
data?: Uint8Array;
|
|
3755
3843
|
stackHeight?: number;
|
|
3756
3844
|
}[]>]: never; };
|
|
3757
|
-
} & { [
|
|
3845
|
+
} & { [K_104 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["innerInstructions"][number], keyof import("./solana-storage").InnerInstructions>]: never; })[] & { [K_105 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["innerInstructions"], keyof {
|
|
3758
3846
|
index?: number;
|
|
3759
3847
|
instructions?: {
|
|
3760
3848
|
programIdIndex?: number;
|
|
@@ -3764,7 +3852,7 @@ export declare const SubscribeUpdate: {
|
|
|
3764
3852
|
}[];
|
|
3765
3853
|
}[]>]: never; };
|
|
3766
3854
|
innerInstructionsNone?: boolean;
|
|
3767
|
-
logMessages?: string[] & string[] & { [
|
|
3855
|
+
logMessages?: string[] & string[] & { [K_106 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["logMessages"], keyof string[]>]: never; };
|
|
3768
3856
|
logMessagesNone?: boolean;
|
|
3769
3857
|
preTokenBalances?: {
|
|
3770
3858
|
accountIndex?: number;
|
|
@@ -3801,10 +3889,10 @@ export declare const SubscribeUpdate: {
|
|
|
3801
3889
|
decimals?: number;
|
|
3802
3890
|
amount?: string;
|
|
3803
3891
|
uiAmountString?: string;
|
|
3804
|
-
} & { [
|
|
3892
|
+
} & { [K_107 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["preTokenBalances"][number]["uiTokenAmount"], keyof import("./solana-storage").UiTokenAmount>]: never; };
|
|
3805
3893
|
owner?: string;
|
|
3806
3894
|
programId?: string;
|
|
3807
|
-
} & { [
|
|
3895
|
+
} & { [K_108 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["preTokenBalances"][number], keyof import("./solana-storage").TokenBalance>]: never; })[] & { [K_109 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["preTokenBalances"], keyof {
|
|
3808
3896
|
accountIndex?: number;
|
|
3809
3897
|
mint?: string;
|
|
3810
3898
|
uiTokenAmount?: {
|
|
@@ -3851,10 +3939,10 @@ export declare const SubscribeUpdate: {
|
|
|
3851
3939
|
decimals?: number;
|
|
3852
3940
|
amount?: string;
|
|
3853
3941
|
uiAmountString?: string;
|
|
3854
|
-
} & { [
|
|
3942
|
+
} & { [K_110 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["postTokenBalances"][number]["uiTokenAmount"], keyof import("./solana-storage").UiTokenAmount>]: never; };
|
|
3855
3943
|
owner?: string;
|
|
3856
3944
|
programId?: string;
|
|
3857
|
-
} & { [
|
|
3945
|
+
} & { [K_111 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["postTokenBalances"][number], keyof import("./solana-storage").TokenBalance>]: never; })[] & { [K_112 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["postTokenBalances"], keyof {
|
|
3858
3946
|
accountIndex?: number;
|
|
3859
3947
|
mint?: string;
|
|
3860
3948
|
uiTokenAmount?: {
|
|
@@ -3884,29 +3972,29 @@ export declare const SubscribeUpdate: {
|
|
|
3884
3972
|
postBalance?: string;
|
|
3885
3973
|
rewardType?: import("./solana-storage").RewardType;
|
|
3886
3974
|
commission?: string;
|
|
3887
|
-
} & { [
|
|
3975
|
+
} & { [K_113 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["rewards"][number], keyof import("./solana-storage").Reward>]: never; })[] & { [K_114 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["rewards"], keyof {
|
|
3888
3976
|
pubkey?: string;
|
|
3889
3977
|
lamports?: string;
|
|
3890
3978
|
postBalance?: string;
|
|
3891
3979
|
rewardType?: import("./solana-storage").RewardType;
|
|
3892
3980
|
commission?: string;
|
|
3893
3981
|
}[]>]: never; };
|
|
3894
|
-
loadedWritableAddresses?: Uint8Array[] & Uint8Array[] & { [
|
|
3895
|
-
loadedReadonlyAddresses?: Uint8Array[] & Uint8Array[] & { [
|
|
3982
|
+
loadedWritableAddresses?: Uint8Array[] & Uint8Array[] & { [K_115 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["loadedWritableAddresses"], keyof Uint8Array[]>]: never; };
|
|
3983
|
+
loadedReadonlyAddresses?: Uint8Array[] & Uint8Array[] & { [K_116 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["loadedReadonlyAddresses"], keyof Uint8Array[]>]: never; };
|
|
3896
3984
|
returnData?: {
|
|
3897
3985
|
programId?: Uint8Array;
|
|
3898
3986
|
data?: Uint8Array;
|
|
3899
3987
|
} & {
|
|
3900
3988
|
programId?: Uint8Array;
|
|
3901
3989
|
data?: Uint8Array;
|
|
3902
|
-
} & { [
|
|
3990
|
+
} & { [K_117 in Exclude<keyof I_1["transaction"]["transaction"]["meta"]["returnData"], keyof import("./solana-storage").ReturnData>]: never; };
|
|
3903
3991
|
returnDataNone?: boolean;
|
|
3904
3992
|
computeUnitsConsumed?: string;
|
|
3905
|
-
} & { [
|
|
3993
|
+
} & { [K_118 in Exclude<keyof I_1["transaction"]["transaction"]["meta"], keyof TransactionStatusMeta>]: never; };
|
|
3906
3994
|
index?: string;
|
|
3907
|
-
} & { [
|
|
3995
|
+
} & { [K_119 in Exclude<keyof I_1["transaction"]["transaction"], keyof SubscribeUpdateTransactionInfo>]: never; };
|
|
3908
3996
|
slot?: string;
|
|
3909
|
-
} & { [
|
|
3997
|
+
} & { [K_120 in Exclude<keyof I_1["transaction"], keyof SubscribeUpdateTransaction>]: never; };
|
|
3910
3998
|
block?: {
|
|
3911
3999
|
slot?: string;
|
|
3912
4000
|
blockhash?: string;
|
|
@@ -4064,24 +4152,24 @@ export declare const SubscribeUpdate: {
|
|
|
4064
4152
|
postBalance?: string;
|
|
4065
4153
|
rewardType?: import("./solana-storage").RewardType;
|
|
4066
4154
|
commission?: string;
|
|
4067
|
-
} & { [
|
|
4155
|
+
} & { [K_121 in Exclude<keyof I_1["block"]["rewards"]["rewards"][number], keyof import("./solana-storage").Reward>]: never; })[] & { [K_122 in Exclude<keyof I_1["block"]["rewards"]["rewards"], keyof {
|
|
4068
4156
|
pubkey?: string;
|
|
4069
4157
|
lamports?: string;
|
|
4070
4158
|
postBalance?: string;
|
|
4071
4159
|
rewardType?: import("./solana-storage").RewardType;
|
|
4072
4160
|
commission?: string;
|
|
4073
4161
|
}[]>]: never; };
|
|
4074
|
-
} & { [
|
|
4162
|
+
} & { [K_123 in Exclude<keyof I_1["block"]["rewards"], "rewards">]: never; };
|
|
4075
4163
|
blockTime?: {
|
|
4076
4164
|
timestamp?: string;
|
|
4077
4165
|
} & {
|
|
4078
4166
|
timestamp?: string;
|
|
4079
|
-
} & { [
|
|
4167
|
+
} & { [K_124 in Exclude<keyof I_1["block"]["blockTime"], "timestamp">]: never; };
|
|
4080
4168
|
blockHeight?: {
|
|
4081
4169
|
blockHeight?: string;
|
|
4082
4170
|
} & {
|
|
4083
4171
|
blockHeight?: string;
|
|
4084
|
-
} & { [
|
|
4172
|
+
} & { [K_125 in Exclude<keyof I_1["block"]["blockHeight"], "blockHeight">]: never; };
|
|
4085
4173
|
parentSlot?: string;
|
|
4086
4174
|
parentBlockhash?: string;
|
|
4087
4175
|
executedTransactionCount?: string;
|
|
@@ -4283,7 +4371,7 @@ export declare const SubscribeUpdate: {
|
|
|
4283
4371
|
}[];
|
|
4284
4372
|
};
|
|
4285
4373
|
} & {
|
|
4286
|
-
signatures?: Uint8Array[] & Uint8Array[] & { [
|
|
4374
|
+
signatures?: Uint8Array[] & Uint8Array[] & { [K_126 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["signatures"], keyof Uint8Array[]>]: never; };
|
|
4287
4375
|
message?: {
|
|
4288
4376
|
header?: {
|
|
4289
4377
|
numRequiredSignatures?: number;
|
|
@@ -4312,8 +4400,8 @@ export declare const SubscribeUpdate: {
|
|
|
4312
4400
|
numRequiredSignatures?: number;
|
|
4313
4401
|
numReadonlySignedAccounts?: number;
|
|
4314
4402
|
numReadonlyUnsignedAccounts?: number;
|
|
4315
|
-
} & { [
|
|
4316
|
-
accountKeys?: Uint8Array[] & Uint8Array[] & { [
|
|
4403
|
+
} & { [K_127 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"]["header"], keyof import("./solana-storage").MessageHeader>]: never; };
|
|
4404
|
+
accountKeys?: Uint8Array[] & Uint8Array[] & { [K_128 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"]["accountKeys"], keyof Uint8Array[]>]: never; };
|
|
4317
4405
|
recentBlockhash?: Uint8Array;
|
|
4318
4406
|
instructions?: {
|
|
4319
4407
|
programIdIndex?: number;
|
|
@@ -4327,7 +4415,7 @@ export declare const SubscribeUpdate: {
|
|
|
4327
4415
|
programIdIndex?: number;
|
|
4328
4416
|
accounts?: Uint8Array;
|
|
4329
4417
|
data?: Uint8Array;
|
|
4330
|
-
} & { [
|
|
4418
|
+
} & { [K_129 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"]["instructions"][number], keyof import("./solana-storage").CompiledInstruction>]: never; })[] & { [K_130 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"]["instructions"], keyof {
|
|
4331
4419
|
programIdIndex?: number;
|
|
4332
4420
|
accounts?: Uint8Array;
|
|
4333
4421
|
data?: Uint8Array;
|
|
@@ -4345,13 +4433,13 @@ export declare const SubscribeUpdate: {
|
|
|
4345
4433
|
accountKey?: Uint8Array;
|
|
4346
4434
|
writableIndexes?: Uint8Array;
|
|
4347
4435
|
readonlyIndexes?: Uint8Array;
|
|
4348
|
-
} & { [
|
|
4436
|
+
} & { [K_131 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"]["addressTableLookups"][number], keyof import("./solana-storage").MessageAddressTableLookup>]: never; })[] & { [K_132 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"]["addressTableLookups"], keyof {
|
|
4349
4437
|
accountKey?: Uint8Array;
|
|
4350
4438
|
writableIndexes?: Uint8Array;
|
|
4351
4439
|
readonlyIndexes?: Uint8Array;
|
|
4352
4440
|
}[]>]: never; };
|
|
4353
|
-
} & { [
|
|
4354
|
-
} & { [
|
|
4441
|
+
} & { [K_133 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"]["message"], keyof import("./solana-storage").Message>]: never; };
|
|
4442
|
+
} & { [K_134 in Exclude<keyof I_1["block"]["transactions"][number]["transaction"], keyof Transaction>]: never; };
|
|
4355
4443
|
meta?: {
|
|
4356
4444
|
err?: {
|
|
4357
4445
|
err?: Uint8Array;
|
|
@@ -4415,10 +4503,10 @@ export declare const SubscribeUpdate: {
|
|
|
4415
4503
|
err?: Uint8Array;
|
|
4416
4504
|
} & {
|
|
4417
4505
|
err?: Uint8Array;
|
|
4418
|
-
} & { [
|
|
4506
|
+
} & { [K_135 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["err"], "err">]: never; };
|
|
4419
4507
|
fee?: string;
|
|
4420
|
-
preBalances?: string[] & string[] & { [
|
|
4421
|
-
postBalances?: string[] & string[] & { [
|
|
4508
|
+
preBalances?: string[] & string[] & { [K_136 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["preBalances"], keyof string[]>]: never; };
|
|
4509
|
+
postBalances?: string[] & string[] & { [K_137 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["postBalances"], keyof string[]>]: never; };
|
|
4422
4510
|
innerInstructions?: {
|
|
4423
4511
|
index?: number;
|
|
4424
4512
|
instructions?: {
|
|
@@ -4452,13 +4540,13 @@ export declare const SubscribeUpdate: {
|
|
|
4452
4540
|
accounts?: Uint8Array;
|
|
4453
4541
|
data?: Uint8Array;
|
|
4454
4542
|
stackHeight?: number;
|
|
4455
|
-
} & { [
|
|
4543
|
+
} & { [K_138 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["innerInstructions"][number]["instructions"][number], keyof import("./solana-storage").InnerInstruction>]: never; })[] & { [K_139 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["innerInstructions"][number]["instructions"], keyof {
|
|
4456
4544
|
programIdIndex?: number;
|
|
4457
4545
|
accounts?: Uint8Array;
|
|
4458
4546
|
data?: Uint8Array;
|
|
4459
4547
|
stackHeight?: number;
|
|
4460
4548
|
}[]>]: never; };
|
|
4461
|
-
} & { [
|
|
4549
|
+
} & { [K_140 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["innerInstructions"][number], keyof import("./solana-storage").InnerInstructions>]: never; })[] & { [K_141 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["innerInstructions"], keyof {
|
|
4462
4550
|
index?: number;
|
|
4463
4551
|
instructions?: {
|
|
4464
4552
|
programIdIndex?: number;
|
|
@@ -4468,7 +4556,7 @@ export declare const SubscribeUpdate: {
|
|
|
4468
4556
|
}[];
|
|
4469
4557
|
}[]>]: never; };
|
|
4470
4558
|
innerInstructionsNone?: boolean;
|
|
4471
|
-
logMessages?: string[] & string[] & { [
|
|
4559
|
+
logMessages?: string[] & string[] & { [K_142 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["logMessages"], keyof string[]>]: never; };
|
|
4472
4560
|
logMessagesNone?: boolean;
|
|
4473
4561
|
preTokenBalances?: {
|
|
4474
4562
|
accountIndex?: number;
|
|
@@ -4505,10 +4593,10 @@ export declare const SubscribeUpdate: {
|
|
|
4505
4593
|
decimals?: number;
|
|
4506
4594
|
amount?: string;
|
|
4507
4595
|
uiAmountString?: string;
|
|
4508
|
-
} & { [
|
|
4596
|
+
} & { [K_143 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["preTokenBalances"][number]["uiTokenAmount"], keyof import("./solana-storage").UiTokenAmount>]: never; };
|
|
4509
4597
|
owner?: string;
|
|
4510
4598
|
programId?: string;
|
|
4511
|
-
} & { [
|
|
4599
|
+
} & { [K_144 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["preTokenBalances"][number], keyof import("./solana-storage").TokenBalance>]: never; })[] & { [K_145 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["preTokenBalances"], keyof {
|
|
4512
4600
|
accountIndex?: number;
|
|
4513
4601
|
mint?: string;
|
|
4514
4602
|
uiTokenAmount?: {
|
|
@@ -4555,10 +4643,10 @@ export declare const SubscribeUpdate: {
|
|
|
4555
4643
|
decimals?: number;
|
|
4556
4644
|
amount?: string;
|
|
4557
4645
|
uiAmountString?: string;
|
|
4558
|
-
} & { [
|
|
4646
|
+
} & { [K_146 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["postTokenBalances"][number]["uiTokenAmount"], keyof import("./solana-storage").UiTokenAmount>]: never; };
|
|
4559
4647
|
owner?: string;
|
|
4560
4648
|
programId?: string;
|
|
4561
|
-
} & { [
|
|
4649
|
+
} & { [K_147 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["postTokenBalances"][number], keyof import("./solana-storage").TokenBalance>]: never; })[] & { [K_148 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["postTokenBalances"], keyof {
|
|
4562
4650
|
accountIndex?: number;
|
|
4563
4651
|
mint?: string;
|
|
4564
4652
|
uiTokenAmount?: {
|
|
@@ -4588,27 +4676,27 @@ export declare const SubscribeUpdate: {
|
|
|
4588
4676
|
postBalance?: string;
|
|
4589
4677
|
rewardType?: import("./solana-storage").RewardType;
|
|
4590
4678
|
commission?: string;
|
|
4591
|
-
} & { [
|
|
4679
|
+
} & { [K_149 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["rewards"][number], keyof import("./solana-storage").Reward>]: never; })[] & { [K_150 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["rewards"], keyof {
|
|
4592
4680
|
pubkey?: string;
|
|
4593
4681
|
lamports?: string;
|
|
4594
4682
|
postBalance?: string;
|
|
4595
4683
|
rewardType?: import("./solana-storage").RewardType;
|
|
4596
4684
|
commission?: string;
|
|
4597
4685
|
}[]>]: never; };
|
|
4598
|
-
loadedWritableAddresses?: Uint8Array[] & Uint8Array[] & { [
|
|
4599
|
-
loadedReadonlyAddresses?: Uint8Array[] & Uint8Array[] & { [
|
|
4686
|
+
loadedWritableAddresses?: Uint8Array[] & Uint8Array[] & { [K_151 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["loadedWritableAddresses"], keyof Uint8Array[]>]: never; };
|
|
4687
|
+
loadedReadonlyAddresses?: Uint8Array[] & Uint8Array[] & { [K_152 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["loadedReadonlyAddresses"], keyof Uint8Array[]>]: never; };
|
|
4600
4688
|
returnData?: {
|
|
4601
4689
|
programId?: Uint8Array;
|
|
4602
4690
|
data?: Uint8Array;
|
|
4603
4691
|
} & {
|
|
4604
4692
|
programId?: Uint8Array;
|
|
4605
4693
|
data?: Uint8Array;
|
|
4606
|
-
} & { [
|
|
4694
|
+
} & { [K_153 in Exclude<keyof I_1["block"]["transactions"][number]["meta"]["returnData"], keyof import("./solana-storage").ReturnData>]: never; };
|
|
4607
4695
|
returnDataNone?: boolean;
|
|
4608
4696
|
computeUnitsConsumed?: string;
|
|
4609
|
-
} & { [
|
|
4697
|
+
} & { [K_154 in Exclude<keyof I_1["block"]["transactions"][number]["meta"], keyof TransactionStatusMeta>]: never; };
|
|
4610
4698
|
index?: string;
|
|
4611
|
-
} & { [
|
|
4699
|
+
} & { [K_155 in Exclude<keyof I_1["block"]["transactions"][number], keyof SubscribeUpdateTransactionInfo>]: never; })[] & { [K_156 in Exclude<keyof I_1["block"]["transactions"], keyof {
|
|
4612
4700
|
signature?: Uint8Array;
|
|
4613
4701
|
isVote?: boolean;
|
|
4614
4702
|
transaction?: {
|
|
@@ -4723,7 +4811,7 @@ export declare const SubscribeUpdate: {
|
|
|
4723
4811
|
data?: Uint8Array;
|
|
4724
4812
|
writeVersion?: string;
|
|
4725
4813
|
txnSignature?: Uint8Array | undefined;
|
|
4726
|
-
} & { [
|
|
4814
|
+
} & { [K_157 in Exclude<keyof I_1["block"]["accounts"][number], keyof SubscribeUpdateAccountInfo>]: never; })[] & { [K_158 in Exclude<keyof I_1["block"]["accounts"], keyof {
|
|
4727
4815
|
pubkey?: Uint8Array;
|
|
4728
4816
|
lamports?: string;
|
|
4729
4817
|
owner?: Uint8Array;
|
|
@@ -4752,15 +4840,20 @@ export declare const SubscribeUpdate: {
|
|
|
4752
4840
|
numHashes?: string;
|
|
4753
4841
|
hash?: Uint8Array;
|
|
4754
4842
|
executedTransactionCount?: string;
|
|
4755
|
-
} & { [
|
|
4843
|
+
} & { [K_159 in Exclude<keyof I_1["block"]["entries"][number], keyof SubscribeUpdateEntry>]: never; })[] & { [K_160 in Exclude<keyof I_1["block"]["entries"], keyof {
|
|
4756
4844
|
slot?: string;
|
|
4757
4845
|
index?: string;
|
|
4758
4846
|
numHashes?: string;
|
|
4759
4847
|
hash?: Uint8Array;
|
|
4760
4848
|
executedTransactionCount?: string;
|
|
4761
4849
|
}[]>]: never; };
|
|
4762
|
-
} & { [
|
|
4763
|
-
ping?: {} & {} & { [
|
|
4850
|
+
} & { [K_161 in Exclude<keyof I_1["block"], keyof SubscribeUpdateBlock>]: never; };
|
|
4851
|
+
ping?: {} & {} & { [K_162 in Exclude<keyof I_1["ping"], never>]: never; };
|
|
4852
|
+
pong?: {
|
|
4853
|
+
id?: number;
|
|
4854
|
+
} & {
|
|
4855
|
+
id?: number;
|
|
4856
|
+
} & { [K_163 in Exclude<keyof I_1["pong"], "id">]: never; };
|
|
4764
4857
|
blockMeta?: {
|
|
4765
4858
|
slot?: string;
|
|
4766
4859
|
blockhash?: string;
|
|
@@ -4812,28 +4905,28 @@ export declare const SubscribeUpdate: {
|
|
|
4812
4905
|
postBalance?: string;
|
|
4813
4906
|
rewardType?: import("./solana-storage").RewardType;
|
|
4814
4907
|
commission?: string;
|
|
4815
|
-
} & { [
|
|
4908
|
+
} & { [K_164 in Exclude<keyof I_1["blockMeta"]["rewards"]["rewards"][number], keyof import("./solana-storage").Reward>]: never; })[] & { [K_165 in Exclude<keyof I_1["blockMeta"]["rewards"]["rewards"], keyof {
|
|
4816
4909
|
pubkey?: string;
|
|
4817
4910
|
lamports?: string;
|
|
4818
4911
|
postBalance?: string;
|
|
4819
4912
|
rewardType?: import("./solana-storage").RewardType;
|
|
4820
4913
|
commission?: string;
|
|
4821
4914
|
}[]>]: never; };
|
|
4822
|
-
} & { [
|
|
4915
|
+
} & { [K_166 in Exclude<keyof I_1["blockMeta"]["rewards"], "rewards">]: never; };
|
|
4823
4916
|
blockTime?: {
|
|
4824
4917
|
timestamp?: string;
|
|
4825
4918
|
} & {
|
|
4826
4919
|
timestamp?: string;
|
|
4827
|
-
} & { [
|
|
4920
|
+
} & { [K_167 in Exclude<keyof I_1["blockMeta"]["blockTime"], "timestamp">]: never; };
|
|
4828
4921
|
blockHeight?: {
|
|
4829
4922
|
blockHeight?: string;
|
|
4830
4923
|
} & {
|
|
4831
4924
|
blockHeight?: string;
|
|
4832
|
-
} & { [
|
|
4925
|
+
} & { [K_168 in Exclude<keyof I_1["blockMeta"]["blockHeight"], "blockHeight">]: never; };
|
|
4833
4926
|
parentSlot?: string;
|
|
4834
4927
|
parentBlockhash?: string;
|
|
4835
4928
|
executedTransactionCount?: string;
|
|
4836
|
-
} & { [
|
|
4929
|
+
} & { [K_169 in Exclude<keyof I_1["blockMeta"], keyof SubscribeUpdateBlockMeta>]: never; };
|
|
4837
4930
|
entry?: {
|
|
4838
4931
|
slot?: string;
|
|
4839
4932
|
index?: string;
|
|
@@ -4846,8 +4939,8 @@ export declare const SubscribeUpdate: {
|
|
|
4846
4939
|
numHashes?: string;
|
|
4847
4940
|
hash?: Uint8Array;
|
|
4848
4941
|
executedTransactionCount?: string;
|
|
4849
|
-
} & { [
|
|
4850
|
-
} & { [
|
|
4942
|
+
} & { [K_170 in Exclude<keyof I_1["entry"], keyof SubscribeUpdateEntry>]: never; };
|
|
4943
|
+
} & { [K_171 in Exclude<keyof I_1, keyof SubscribeUpdate>]: never; }>(object: I_1): SubscribeUpdate;
|
|
4851
4944
|
};
|
|
4852
4945
|
export declare const SubscribeUpdateAccount: {
|
|
4853
4946
|
encode(message: SubscribeUpdateAccount, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -8847,6 +8940,22 @@ export declare const SubscribeUpdatePing: {
|
|
|
8847
8940
|
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): SubscribeUpdatePing;
|
|
8848
8941
|
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): SubscribeUpdatePing;
|
|
8849
8942
|
};
|
|
8943
|
+
export declare const SubscribeUpdatePong: {
|
|
8944
|
+
encode(message: SubscribeUpdatePong, writer?: _m0.Writer): _m0.Writer;
|
|
8945
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SubscribeUpdatePong;
|
|
8946
|
+
fromJSON(object: any): SubscribeUpdatePong;
|
|
8947
|
+
toJSON(message: SubscribeUpdatePong): unknown;
|
|
8948
|
+
create<I extends {
|
|
8949
|
+
id?: number;
|
|
8950
|
+
} & {
|
|
8951
|
+
id?: number;
|
|
8952
|
+
} & { [K in Exclude<keyof I, "id">]: never; }>(base?: I): SubscribeUpdatePong;
|
|
8953
|
+
fromPartial<I_1 extends {
|
|
8954
|
+
id?: number;
|
|
8955
|
+
} & {
|
|
8956
|
+
id?: number;
|
|
8957
|
+
} & { [K_1 in Exclude<keyof I_1, "id">]: never; }>(object: I_1): SubscribeUpdatePong;
|
|
8958
|
+
};
|
|
8850
8959
|
export declare const PingRequest: {
|
|
8851
8960
|
encode(message: PingRequest, writer?: _m0.Writer): _m0.Writer;
|
|
8852
8961
|
decode(input: _m0.Reader | Uint8Array, length?: number): PingRequest;
|
package/dist/grpc/geyser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.GeyserClient = exports.GeyserService = exports.IsBlockhashValidResponse = exports.IsBlockhashValidRequest = exports.GetVersionResponse = exports.GetVersionRequest = exports.GetSlotResponse = exports.GetSlotRequest = exports.GetBlockHeightResponse = exports.GetBlockHeightRequest = exports.GetLatestBlockhashResponse = exports.GetLatestBlockhashRequest = exports.PongResponse = exports.PingRequest = exports.SubscribeUpdatePing = exports.SubscribeUpdateEntry = exports.SubscribeUpdateBlockMeta = exports.SubscribeUpdateBlock = exports.SubscribeUpdateTransactionInfo = exports.SubscribeUpdateTransaction = exports.SubscribeUpdateSlot = exports.SubscribeUpdateAccountInfo = exports.SubscribeUpdateAccount = exports.SubscribeUpdate = exports.SubscribeRequestAccountsDataSlice = exports.SubscribeRequestFilterEntry = exports.SubscribeRequestFilterBlocksMeta = exports.SubscribeRequestFilterBlocks = exports.SubscribeRequestFilterTransactions = exports.SubscribeRequestFilterSlots = exports.SubscribeRequestFilterAccountsFilterMemcmp = exports.SubscribeRequestFilterAccountsFilter = exports.SubscribeRequestFilterAccounts = exports.SubscribeRequest_EntryEntry = exports.SubscribeRequest_BlocksMetaEntry = exports.SubscribeRequest_BlocksEntry = exports.SubscribeRequest_TransactionsEntry = exports.SubscribeRequest_SlotsEntry = exports.SubscribeRequest_AccountsEntry = exports.SubscribeRequest = exports.commitmentLevelToJSON = exports.commitmentLevelFromJSON = exports.CommitmentLevel = exports.protobufPackage = void 0;
|
|
3
|
+
exports.GeyserClient = exports.GeyserService = exports.IsBlockhashValidResponse = exports.IsBlockhashValidRequest = exports.GetVersionResponse = exports.GetVersionRequest = exports.GetSlotResponse = exports.GetSlotRequest = exports.GetBlockHeightResponse = exports.GetBlockHeightRequest = exports.GetLatestBlockhashResponse = exports.GetLatestBlockhashRequest = exports.PongResponse = exports.PingRequest = exports.SubscribeUpdatePong = exports.SubscribeUpdatePing = exports.SubscribeUpdateEntry = exports.SubscribeUpdateBlockMeta = exports.SubscribeUpdateBlock = exports.SubscribeUpdateTransactionInfo = exports.SubscribeUpdateTransaction = exports.SubscribeUpdateSlot = exports.SubscribeUpdateAccountInfo = exports.SubscribeUpdateAccount = exports.SubscribeUpdate = exports.SubscribeRequestPing = exports.SubscribeRequestAccountsDataSlice = exports.SubscribeRequestFilterEntry = exports.SubscribeRequestFilterBlocksMeta = exports.SubscribeRequestFilterBlocks = exports.SubscribeRequestFilterTransactions = exports.SubscribeRequestFilterSlots = exports.SubscribeRequestFilterAccountsFilterMemcmp = exports.SubscribeRequestFilterAccountsFilter = exports.SubscribeRequestFilterAccounts = exports.SubscribeRequest_EntryEntry = exports.SubscribeRequest_BlocksMetaEntry = exports.SubscribeRequest_BlocksEntry = exports.SubscribeRequest_TransactionsEntry = exports.SubscribeRequest_SlotsEntry = exports.SubscribeRequest_AccountsEntry = exports.SubscribeRequest = exports.commitmentLevelToJSON = exports.commitmentLevelFromJSON = exports.CommitmentLevel = exports.protobufPackage = void 0;
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
var grpc_js_1 = require("@grpc/grpc-js");
|
|
6
6
|
var Long = require("long");
|
|
@@ -55,7 +55,8 @@ function createBaseSubscribeRequest() {
|
|
|
55
55
|
blocksMeta: {},
|
|
56
56
|
entry: {},
|
|
57
57
|
commitment: undefined,
|
|
58
|
-
accountsDataSlice: []
|
|
58
|
+
accountsDataSlice: [],
|
|
59
|
+
ping: undefined
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
exports.SubscribeRequest = {
|
|
@@ -92,6 +93,9 @@ exports.SubscribeRequest = {
|
|
|
92
93
|
var v = _a[_i];
|
|
93
94
|
exports.SubscribeRequestAccountsDataSlice.encode(v, writer.uint32(58).fork()).ldelim();
|
|
94
95
|
}
|
|
96
|
+
if (message.ping !== undefined) {
|
|
97
|
+
exports.SubscribeRequestPing.encode(message.ping, writer.uint32(74).fork()).ldelim();
|
|
98
|
+
}
|
|
95
99
|
return writer;
|
|
96
100
|
},
|
|
97
101
|
decode: function (input, length) {
|
|
@@ -167,6 +171,12 @@ exports.SubscribeRequest = {
|
|
|
167
171
|
}
|
|
168
172
|
message.accountsDataSlice.push(exports.SubscribeRequestAccountsDataSlice.decode(reader, reader.uint32()));
|
|
169
173
|
continue;
|
|
174
|
+
case 9:
|
|
175
|
+
if (tag !== 74) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
message.ping = exports.SubscribeRequestPing.decode(reader, reader.uint32());
|
|
179
|
+
continue;
|
|
170
180
|
}
|
|
171
181
|
if ((tag & 7) === 4 || tag === 0) {
|
|
172
182
|
break;
|
|
@@ -222,7 +232,8 @@ exports.SubscribeRequest = {
|
|
|
222
232
|
commitment: isSet(object.commitment) ? commitmentLevelFromJSON(object.commitment) : undefined,
|
|
223
233
|
accountsDataSlice: Array.isArray(object === null || object === void 0 ? void 0 : object.accountsDataSlice)
|
|
224
234
|
? object.accountsDataSlice.map(function (e) { return exports.SubscribeRequestAccountsDataSlice.fromJSON(e); })
|
|
225
|
-
: []
|
|
235
|
+
: [],
|
|
236
|
+
ping: isSet(object.ping) ? exports.SubscribeRequestPing.fromJSON(object.ping) : undefined
|
|
226
237
|
};
|
|
227
238
|
},
|
|
228
239
|
toJSON: function (message) {
|
|
@@ -279,6 +290,7 @@ exports.SubscribeRequest = {
|
|
|
279
290
|
else {
|
|
280
291
|
obj.accountsDataSlice = [];
|
|
281
292
|
}
|
|
293
|
+
message.ping !== undefined && (obj.ping = message.ping ? exports.SubscribeRequestPing.toJSON(message.ping) : undefined);
|
|
282
294
|
return obj;
|
|
283
295
|
},
|
|
284
296
|
create: function (base) {
|
|
@@ -332,6 +344,9 @@ exports.SubscribeRequest = {
|
|
|
332
344
|
message.commitment = (_g = object.commitment) !== null && _g !== void 0 ? _g : undefined;
|
|
333
345
|
message.accountsDataSlice =
|
|
334
346
|
((_h = object.accountsDataSlice) === null || _h === void 0 ? void 0 : _h.map(function (e) { return exports.SubscribeRequestAccountsDataSlice.fromPartial(e); })) || [];
|
|
347
|
+
message.ping = (object.ping !== undefined && object.ping !== null)
|
|
348
|
+
? exports.SubscribeRequestPing.fromPartial(object.ping)
|
|
349
|
+
: undefined;
|
|
335
350
|
return message;
|
|
336
351
|
}
|
|
337
352
|
};
|
|
@@ -1002,11 +1017,14 @@ exports.SubscribeRequestFilterAccountsFilterMemcmp = {
|
|
|
1002
1017
|
}
|
|
1003
1018
|
};
|
|
1004
1019
|
function createBaseSubscribeRequestFilterSlots() {
|
|
1005
|
-
return {};
|
|
1020
|
+
return { filterByCommitment: undefined };
|
|
1006
1021
|
}
|
|
1007
1022
|
exports.SubscribeRequestFilterSlots = {
|
|
1008
|
-
encode: function (
|
|
1023
|
+
encode: function (message, writer) {
|
|
1009
1024
|
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1025
|
+
if (message.filterByCommitment !== undefined) {
|
|
1026
|
+
writer.uint32(8).bool(message.filterByCommitment);
|
|
1027
|
+
}
|
|
1010
1028
|
return writer;
|
|
1011
1029
|
},
|
|
1012
1030
|
decode: function (input, length) {
|
|
@@ -1016,6 +1034,12 @@ exports.SubscribeRequestFilterSlots = {
|
|
|
1016
1034
|
while (reader.pos < end) {
|
|
1017
1035
|
var tag = reader.uint32();
|
|
1018
1036
|
switch (tag >>> 3) {
|
|
1037
|
+
case 1:
|
|
1038
|
+
if (tag !== 8) {
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
message.filterByCommitment = reader.bool();
|
|
1042
|
+
continue;
|
|
1019
1043
|
}
|
|
1020
1044
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1021
1045
|
break;
|
|
@@ -1024,18 +1048,21 @@ exports.SubscribeRequestFilterSlots = {
|
|
|
1024
1048
|
}
|
|
1025
1049
|
return message;
|
|
1026
1050
|
},
|
|
1027
|
-
fromJSON: function (
|
|
1028
|
-
return {};
|
|
1051
|
+
fromJSON: function (object) {
|
|
1052
|
+
return { filterByCommitment: isSet(object.filterByCommitment) ? Boolean(object.filterByCommitment) : undefined };
|
|
1029
1053
|
},
|
|
1030
|
-
toJSON: function (
|
|
1054
|
+
toJSON: function (message) {
|
|
1031
1055
|
var obj = {};
|
|
1056
|
+
message.filterByCommitment !== undefined && (obj.filterByCommitment = message.filterByCommitment);
|
|
1032
1057
|
return obj;
|
|
1033
1058
|
},
|
|
1034
1059
|
create: function (base) {
|
|
1035
1060
|
return exports.SubscribeRequestFilterSlots.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1036
1061
|
},
|
|
1037
|
-
fromPartial: function (
|
|
1062
|
+
fromPartial: function (object) {
|
|
1063
|
+
var _a;
|
|
1038
1064
|
var message = createBaseSubscribeRequestFilterSlots();
|
|
1065
|
+
message.filterByCommitment = (_a = object.filterByCommitment) !== null && _a !== void 0 ? _a : undefined;
|
|
1039
1066
|
return message;
|
|
1040
1067
|
}
|
|
1041
1068
|
};
|
|
@@ -1410,6 +1437,56 @@ exports.SubscribeRequestAccountsDataSlice = {
|
|
|
1410
1437
|
return message;
|
|
1411
1438
|
}
|
|
1412
1439
|
};
|
|
1440
|
+
function createBaseSubscribeRequestPing() {
|
|
1441
|
+
return { id: 0 };
|
|
1442
|
+
}
|
|
1443
|
+
exports.SubscribeRequestPing = {
|
|
1444
|
+
encode: function (message, writer) {
|
|
1445
|
+
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1446
|
+
if (message.id !== 0) {
|
|
1447
|
+
writer.uint32(8).int32(message.id);
|
|
1448
|
+
}
|
|
1449
|
+
return writer;
|
|
1450
|
+
},
|
|
1451
|
+
decode: function (input, length) {
|
|
1452
|
+
var reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1453
|
+
var end = length === undefined ? reader.len : reader.pos + length;
|
|
1454
|
+
var message = createBaseSubscribeRequestPing();
|
|
1455
|
+
while (reader.pos < end) {
|
|
1456
|
+
var tag = reader.uint32();
|
|
1457
|
+
switch (tag >>> 3) {
|
|
1458
|
+
case 1:
|
|
1459
|
+
if (tag !== 8) {
|
|
1460
|
+
break;
|
|
1461
|
+
}
|
|
1462
|
+
message.id = reader.int32();
|
|
1463
|
+
continue;
|
|
1464
|
+
}
|
|
1465
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1466
|
+
break;
|
|
1467
|
+
}
|
|
1468
|
+
reader.skipType(tag & 7);
|
|
1469
|
+
}
|
|
1470
|
+
return message;
|
|
1471
|
+
},
|
|
1472
|
+
fromJSON: function (object) {
|
|
1473
|
+
return { id: isSet(object.id) ? Number(object.id) : 0 };
|
|
1474
|
+
},
|
|
1475
|
+
toJSON: function (message) {
|
|
1476
|
+
var obj = {};
|
|
1477
|
+
message.id !== undefined && (obj.id = Math.round(message.id));
|
|
1478
|
+
return obj;
|
|
1479
|
+
},
|
|
1480
|
+
create: function (base) {
|
|
1481
|
+
return exports.SubscribeRequestPing.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1482
|
+
},
|
|
1483
|
+
fromPartial: function (object) {
|
|
1484
|
+
var _a;
|
|
1485
|
+
var message = createBaseSubscribeRequestPing();
|
|
1486
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
1487
|
+
return message;
|
|
1488
|
+
}
|
|
1489
|
+
};
|
|
1413
1490
|
function createBaseSubscribeUpdate() {
|
|
1414
1491
|
return {
|
|
1415
1492
|
filters: [],
|
|
@@ -1418,6 +1495,7 @@ function createBaseSubscribeUpdate() {
|
|
|
1418
1495
|
transaction: undefined,
|
|
1419
1496
|
block: undefined,
|
|
1420
1497
|
ping: undefined,
|
|
1498
|
+
pong: undefined,
|
|
1421
1499
|
blockMeta: undefined,
|
|
1422
1500
|
entry: undefined
|
|
1423
1501
|
};
|
|
@@ -1444,6 +1522,9 @@ exports.SubscribeUpdate = {
|
|
|
1444
1522
|
if (message.ping !== undefined) {
|
|
1445
1523
|
exports.SubscribeUpdatePing.encode(message.ping, writer.uint32(50).fork()).ldelim();
|
|
1446
1524
|
}
|
|
1525
|
+
if (message.pong !== undefined) {
|
|
1526
|
+
exports.SubscribeUpdatePong.encode(message.pong, writer.uint32(74).fork()).ldelim();
|
|
1527
|
+
}
|
|
1447
1528
|
if (message.blockMeta !== undefined) {
|
|
1448
1529
|
exports.SubscribeUpdateBlockMeta.encode(message.blockMeta, writer.uint32(58).fork()).ldelim();
|
|
1449
1530
|
}
|
|
@@ -1495,6 +1576,12 @@ exports.SubscribeUpdate = {
|
|
|
1495
1576
|
}
|
|
1496
1577
|
message.ping = exports.SubscribeUpdatePing.decode(reader, reader.uint32());
|
|
1497
1578
|
continue;
|
|
1579
|
+
case 9:
|
|
1580
|
+
if (tag !== 74) {
|
|
1581
|
+
break;
|
|
1582
|
+
}
|
|
1583
|
+
message.pong = exports.SubscribeUpdatePong.decode(reader, reader.uint32());
|
|
1584
|
+
continue;
|
|
1498
1585
|
case 7:
|
|
1499
1586
|
if (tag !== 58) {
|
|
1500
1587
|
break;
|
|
@@ -1523,6 +1610,7 @@ exports.SubscribeUpdate = {
|
|
|
1523
1610
|
transaction: isSet(object.transaction) ? exports.SubscribeUpdateTransaction.fromJSON(object.transaction) : undefined,
|
|
1524
1611
|
block: isSet(object.block) ? exports.SubscribeUpdateBlock.fromJSON(object.block) : undefined,
|
|
1525
1612
|
ping: isSet(object.ping) ? exports.SubscribeUpdatePing.fromJSON(object.ping) : undefined,
|
|
1613
|
+
pong: isSet(object.pong) ? exports.SubscribeUpdatePong.fromJSON(object.pong) : undefined,
|
|
1526
1614
|
blockMeta: isSet(object.blockMeta) ? exports.SubscribeUpdateBlockMeta.fromJSON(object.blockMeta) : undefined,
|
|
1527
1615
|
entry: isSet(object.entry) ? exports.SubscribeUpdateEntry.fromJSON(object.entry) : undefined
|
|
1528
1616
|
};
|
|
@@ -1542,6 +1630,7 @@ exports.SubscribeUpdate = {
|
|
|
1542
1630
|
(obj.transaction = message.transaction ? exports.SubscribeUpdateTransaction.toJSON(message.transaction) : undefined);
|
|
1543
1631
|
message.block !== undefined && (obj.block = message.block ? exports.SubscribeUpdateBlock.toJSON(message.block) : undefined);
|
|
1544
1632
|
message.ping !== undefined && (obj.ping = message.ping ? exports.SubscribeUpdatePing.toJSON(message.ping) : undefined);
|
|
1633
|
+
message.pong !== undefined && (obj.pong = message.pong ? exports.SubscribeUpdatePong.toJSON(message.pong) : undefined);
|
|
1545
1634
|
message.blockMeta !== undefined &&
|
|
1546
1635
|
(obj.blockMeta = message.blockMeta ? exports.SubscribeUpdateBlockMeta.toJSON(message.blockMeta) : undefined);
|
|
1547
1636
|
message.entry !== undefined && (obj.entry = message.entry ? exports.SubscribeUpdateEntry.toJSON(message.entry) : undefined);
|
|
@@ -1569,6 +1658,9 @@ exports.SubscribeUpdate = {
|
|
|
1569
1658
|
message.ping = (object.ping !== undefined && object.ping !== null)
|
|
1570
1659
|
? exports.SubscribeUpdatePing.fromPartial(object.ping)
|
|
1571
1660
|
: undefined;
|
|
1661
|
+
message.pong = (object.pong !== undefined && object.pong !== null)
|
|
1662
|
+
? exports.SubscribeUpdatePong.fromPartial(object.pong)
|
|
1663
|
+
: undefined;
|
|
1572
1664
|
message.blockMeta = (object.blockMeta !== undefined && object.blockMeta !== null)
|
|
1573
1665
|
? exports.SubscribeUpdateBlockMeta.fromPartial(object.blockMeta)
|
|
1574
1666
|
: undefined;
|
|
@@ -2587,6 +2679,56 @@ exports.SubscribeUpdatePing = {
|
|
|
2587
2679
|
return message;
|
|
2588
2680
|
}
|
|
2589
2681
|
};
|
|
2682
|
+
function createBaseSubscribeUpdatePong() {
|
|
2683
|
+
return { id: 0 };
|
|
2684
|
+
}
|
|
2685
|
+
exports.SubscribeUpdatePong = {
|
|
2686
|
+
encode: function (message, writer) {
|
|
2687
|
+
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
2688
|
+
if (message.id !== 0) {
|
|
2689
|
+
writer.uint32(8).int32(message.id);
|
|
2690
|
+
}
|
|
2691
|
+
return writer;
|
|
2692
|
+
},
|
|
2693
|
+
decode: function (input, length) {
|
|
2694
|
+
var reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2695
|
+
var end = length === undefined ? reader.len : reader.pos + length;
|
|
2696
|
+
var message = createBaseSubscribeUpdatePong();
|
|
2697
|
+
while (reader.pos < end) {
|
|
2698
|
+
var tag = reader.uint32();
|
|
2699
|
+
switch (tag >>> 3) {
|
|
2700
|
+
case 1:
|
|
2701
|
+
if (tag !== 8) {
|
|
2702
|
+
break;
|
|
2703
|
+
}
|
|
2704
|
+
message.id = reader.int32();
|
|
2705
|
+
continue;
|
|
2706
|
+
}
|
|
2707
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2708
|
+
break;
|
|
2709
|
+
}
|
|
2710
|
+
reader.skipType(tag & 7);
|
|
2711
|
+
}
|
|
2712
|
+
return message;
|
|
2713
|
+
},
|
|
2714
|
+
fromJSON: function (object) {
|
|
2715
|
+
return { id: isSet(object.id) ? Number(object.id) : 0 };
|
|
2716
|
+
},
|
|
2717
|
+
toJSON: function (message) {
|
|
2718
|
+
var obj = {};
|
|
2719
|
+
message.id !== undefined && (obj.id = Math.round(message.id));
|
|
2720
|
+
return obj;
|
|
2721
|
+
},
|
|
2722
|
+
create: function (base) {
|
|
2723
|
+
return exports.SubscribeUpdatePong.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2724
|
+
},
|
|
2725
|
+
fromPartial: function (object) {
|
|
2726
|
+
var _a;
|
|
2727
|
+
var message = createBaseSubscribeUpdatePong();
|
|
2728
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
2729
|
+
return message;
|
|
2730
|
+
}
|
|
2731
|
+
};
|
|
2590
2732
|
function createBasePingRequest() {
|
|
2591
2733
|
return { count: 0 };
|
|
2592
2734
|
}
|