@sentio/protos 2.0.0-rc.2 → 2.0.0-rc.4
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/lib/builtin.js +1 -2
- package/lib/chainquery/protos/chainquery.d.ts +34 -1
- package/lib/chainquery/protos/chainquery.js +92 -82
- package/lib/chainquery/protos/chainquery.js.map +1 -1
- package/lib/google/protobuf/empty.d.ts +1 -1
- package/lib/google/protobuf/empty.js +4 -8
- package/lib/google/protobuf/empty.js.map +1 -1
- package/lib/google/protobuf/struct.d.ts +1 -1
- package/lib/google/protobuf/struct.js +27 -33
- package/lib/google/protobuf/struct.js.map +1 -1
- package/lib/google/protobuf/timestamp.d.ts +1 -1
- package/lib/google/protobuf/timestamp.js +8 -12
- package/lib/google/protobuf/timestamp.js.map +1 -1
- package/lib/index.d.ts +5 -2
- package/lib/index.js +5 -6
- package/lib/index.js.map +1 -1
- package/lib/processor/protos/processor.d.ts +2 -2
- package/lib/processor/protos/processor.js +567 -584
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/price/protos/price.d.ts +1 -1
- package/lib/service/price/protos/price.js +32 -36
- package/lib/service/price/protos/price.js.map +1 -1
- package/package.json +8 -5
- package/src/chainquery/protos/chainquery.ts +31 -1
- package/src/google/protobuf/empty.ts +1 -1
- package/src/google/protobuf/struct.ts +1 -1
- package/src/google/protobuf/timestamp.ts +1 -1
- package/src/index.ts +7 -3
- package/src/processor/protos/processor.ts +4 -4
- package/src/service/price/protos/price.ts +2 -2
package/lib/builtin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import _m0 from "protobufjs/minimal.js";
|
|
3
3
|
export interface AptosGetTxnsByFunctionRequest {
|
|
4
4
|
network: string;
|
|
5
5
|
fromVersion: bigint;
|
|
@@ -391,6 +391,39 @@ export interface EvmQueryClient<CallOptionsExt = {}> {
|
|
|
391
391
|
evmGetHeader(request: DeepPartial<EvmGetHeaderRequest>, options?: CallOptions & CallOptionsExt): Promise<EvmQueryResponse>;
|
|
392
392
|
evmHintHeaderCache(request: DeepPartial<EvmGetHeaderRequest>, options?: CallOptions & CallOptionsExt): Promise<VoidResponse>;
|
|
393
393
|
}
|
|
394
|
+
export type SuiQueryDefinition = typeof SuiQueryDefinition;
|
|
395
|
+
export declare const SuiQueryDefinition: {
|
|
396
|
+
readonly name: "SuiQuery";
|
|
397
|
+
readonly fullName: "chainquery.SuiQuery";
|
|
398
|
+
readonly methods: {
|
|
399
|
+
readonly suiSQLQuery: {
|
|
400
|
+
readonly name: "SuiSQLQuery";
|
|
401
|
+
readonly requestType: {
|
|
402
|
+
encode(message: EvmSQLQueryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
403
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EvmSQLQueryRequest;
|
|
404
|
+
fromJSON(object: any): EvmSQLQueryRequest;
|
|
405
|
+
toJSON(message: EvmSQLQueryRequest): unknown;
|
|
406
|
+
fromPartial(object: DeepPartial<EvmSQLQueryRequest>): EvmSQLQueryRequest;
|
|
407
|
+
};
|
|
408
|
+
readonly requestStream: false;
|
|
409
|
+
readonly responseType: {
|
|
410
|
+
encode(message: EvmQueryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
411
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EvmQueryResponse;
|
|
412
|
+
fromJSON(object: any): EvmQueryResponse;
|
|
413
|
+
toJSON(message: EvmQueryResponse): unknown;
|
|
414
|
+
fromPartial(object: DeepPartial<EvmQueryResponse>): EvmQueryResponse;
|
|
415
|
+
};
|
|
416
|
+
readonly responseStream: true;
|
|
417
|
+
readonly options: {};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
export interface SuiQueryServiceImplementation<CallContextExt = {}> {
|
|
422
|
+
suiSQLQuery(request: EvmSQLQueryRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<EvmQueryResponse>>;
|
|
423
|
+
}
|
|
424
|
+
export interface SuiQueryClient<CallOptionsExt = {}> {
|
|
425
|
+
suiSQLQuery(request: DeepPartial<EvmSQLQueryRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<EvmQueryResponse>;
|
|
426
|
+
}
|
|
394
427
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
395
428
|
type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
396
429
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EvmQueryDefinition = exports.AptosQueryDefinition = exports.EvmQueryResponse = exports.EvmGetHeaderRequest = exports.EvmSQLQueryRequest = exports.VoidResponse = exports.AptosRefreshRequest = exports.AptosGetTxnsResponse = exports.QueryExecutionSummary = exports.QueryPhaseSummary = exports.AptosSQLQueryRequest = exports.AptosGetTxnsByEventRequest = exports.AptosGetTxnsByVersionRequest = exports.AptosGetTxnsByFunctionRequest = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
1
|
/* eslint-disable */
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal.js";
|
|
8
4
|
function createBaseAptosGetTxnsByFunctionRequest() {
|
|
9
5
|
return {
|
|
10
6
|
network: "",
|
|
@@ -15,8 +11,8 @@ function createBaseAptosGetTxnsByFunctionRequest() {
|
|
|
15
11
|
typedArguments: [],
|
|
16
12
|
};
|
|
17
13
|
}
|
|
18
|
-
|
|
19
|
-
encode(message, writer =
|
|
14
|
+
export const AptosGetTxnsByFunctionRequest = {
|
|
15
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
20
16
|
if (message.network !== "") {
|
|
21
17
|
writer.uint32(10).string(message.network);
|
|
22
18
|
}
|
|
@@ -38,7 +34,7 @@ exports.AptosGetTxnsByFunctionRequest = {
|
|
|
38
34
|
return writer;
|
|
39
35
|
},
|
|
40
36
|
decode(input, length) {
|
|
41
|
-
const reader = input instanceof
|
|
37
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
42
38
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
43
39
|
const message = createBaseAptosGetTxnsByFunctionRequest();
|
|
44
40
|
while (reader.pos < end) {
|
|
@@ -108,8 +104,8 @@ exports.AptosGetTxnsByFunctionRequest = {
|
|
|
108
104
|
function createBaseAptosGetTxnsByVersionRequest() {
|
|
109
105
|
return { network: "", fromVersion: BigInt("0"), toVersion: BigInt("0"), headerOnly: undefined };
|
|
110
106
|
}
|
|
111
|
-
|
|
112
|
-
encode(message, writer =
|
|
107
|
+
export const AptosGetTxnsByVersionRequest = {
|
|
108
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
113
109
|
if (message.network !== "") {
|
|
114
110
|
writer.uint32(10).string(message.network);
|
|
115
111
|
}
|
|
@@ -125,7 +121,7 @@ exports.AptosGetTxnsByVersionRequest = {
|
|
|
125
121
|
return writer;
|
|
126
122
|
},
|
|
127
123
|
decode(input, length) {
|
|
128
|
-
const reader = input instanceof
|
|
124
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
129
125
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
130
126
|
const message = createBaseAptosGetTxnsByVersionRequest();
|
|
131
127
|
while (reader.pos < end) {
|
|
@@ -178,8 +174,8 @@ exports.AptosGetTxnsByVersionRequest = {
|
|
|
178
174
|
function createBaseAptosGetTxnsByEventRequest() {
|
|
179
175
|
return { network: "", fromVersion: BigInt("0"), toVersion: BigInt("0"), address: "", type: "" };
|
|
180
176
|
}
|
|
181
|
-
|
|
182
|
-
encode(message, writer =
|
|
177
|
+
export const AptosGetTxnsByEventRequest = {
|
|
178
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
183
179
|
if (message.network !== "") {
|
|
184
180
|
writer.uint32(10).string(message.network);
|
|
185
181
|
}
|
|
@@ -198,7 +194,7 @@ exports.AptosGetTxnsByEventRequest = {
|
|
|
198
194
|
return writer;
|
|
199
195
|
},
|
|
200
196
|
decode(input, length) {
|
|
201
|
-
const reader = input instanceof
|
|
197
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
202
198
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
199
|
const message = createBaseAptosGetTxnsByEventRequest();
|
|
204
200
|
while (reader.pos < end) {
|
|
@@ -257,8 +253,8 @@ exports.AptosGetTxnsByEventRequest = {
|
|
|
257
253
|
function createBaseAptosSQLQueryRequest() {
|
|
258
254
|
return { network: "", fromVersion: BigInt("0"), toVersion: BigInt("0"), sql: "", arbitraryRange: false };
|
|
259
255
|
}
|
|
260
|
-
|
|
261
|
-
encode(message, writer =
|
|
256
|
+
export const AptosSQLQueryRequest = {
|
|
257
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
262
258
|
if (message.network !== "") {
|
|
263
259
|
writer.uint32(10).string(message.network);
|
|
264
260
|
}
|
|
@@ -277,7 +273,7 @@ exports.AptosSQLQueryRequest = {
|
|
|
277
273
|
return writer;
|
|
278
274
|
},
|
|
279
275
|
decode(input, length) {
|
|
280
|
-
const reader = input instanceof
|
|
276
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
281
277
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
282
278
|
const message = createBaseAptosSQLQueryRequest();
|
|
283
279
|
while (reader.pos < end) {
|
|
@@ -336,8 +332,8 @@ exports.AptosSQLQueryRequest = {
|
|
|
336
332
|
function createBaseQueryPhaseSummary() {
|
|
337
333
|
return { name: "", timeTookMs: BigInt("0") };
|
|
338
334
|
}
|
|
339
|
-
|
|
340
|
-
encode(message, writer =
|
|
335
|
+
export const QueryPhaseSummary = {
|
|
336
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
341
337
|
if (message.name !== "") {
|
|
342
338
|
writer.uint32(10).string(message.name);
|
|
343
339
|
}
|
|
@@ -347,7 +343,7 @@ exports.QueryPhaseSummary = {
|
|
|
347
343
|
return writer;
|
|
348
344
|
},
|
|
349
345
|
decode(input, length) {
|
|
350
|
-
const reader = input instanceof
|
|
346
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
351
347
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
348
|
const message = createBaseQueryPhaseSummary();
|
|
353
349
|
while (reader.pos < end) {
|
|
@@ -398,8 +394,8 @@ function createBaseQueryExecutionSummary() {
|
|
|
398
394
|
qcacheHit: undefined,
|
|
399
395
|
};
|
|
400
396
|
}
|
|
401
|
-
|
|
402
|
-
encode(message, writer =
|
|
397
|
+
export const QueryExecutionSummary = {
|
|
398
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
403
399
|
if (message.timeTookMs !== BigInt("0")) {
|
|
404
400
|
writer.uint32(8).uint64(message.timeTookMs.toString());
|
|
405
401
|
}
|
|
@@ -419,7 +415,7 @@ exports.QueryExecutionSummary = {
|
|
|
419
415
|
writer.uint32(48).uint64(message.numPartitions.toString());
|
|
420
416
|
}
|
|
421
417
|
for (const v of message.phases) {
|
|
422
|
-
|
|
418
|
+
QueryPhaseSummary.encode(v, writer.uint32(58).fork()).ldelim();
|
|
423
419
|
}
|
|
424
420
|
if (message.qcacheSignature !== undefined) {
|
|
425
421
|
writer.uint32(66).string(message.qcacheSignature);
|
|
@@ -430,7 +426,7 @@ exports.QueryExecutionSummary = {
|
|
|
430
426
|
return writer;
|
|
431
427
|
},
|
|
432
428
|
decode(input, length) {
|
|
433
|
-
const reader = input instanceof
|
|
429
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
434
430
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
435
431
|
const message = createBaseQueryExecutionSummary();
|
|
436
432
|
while (reader.pos < end) {
|
|
@@ -455,7 +451,7 @@ exports.QueryExecutionSummary = {
|
|
|
455
451
|
message.numPartitions = longToBigint(reader.uint64());
|
|
456
452
|
break;
|
|
457
453
|
case 7:
|
|
458
|
-
message.phases.push(
|
|
454
|
+
message.phases.push(QueryPhaseSummary.decode(reader, reader.uint32()));
|
|
459
455
|
break;
|
|
460
456
|
case 8:
|
|
461
457
|
message.qcacheSignature = reader.string();
|
|
@@ -482,7 +478,7 @@ exports.QueryExecutionSummary = {
|
|
|
482
478
|
? BigInt(object.numPartitionsWithoutMaterializedView)
|
|
483
479
|
: undefined,
|
|
484
480
|
numPartitions: isSet(object.numPartitions) ? BigInt(object.numPartitions) : undefined,
|
|
485
|
-
phases: Array.isArray(object?.phases) ? object.phases.map((e) =>
|
|
481
|
+
phases: Array.isArray(object?.phases) ? object.phases.map((e) => QueryPhaseSummary.fromJSON(e)) : [],
|
|
486
482
|
qcacheSignature: isSet(object.qcacheSignature) ? String(object.qcacheSignature) : undefined,
|
|
487
483
|
qcacheHit: isSet(object.qcacheHit) ? Boolean(object.qcacheHit) : undefined,
|
|
488
484
|
};
|
|
@@ -498,7 +494,7 @@ exports.QueryExecutionSummary = {
|
|
|
498
494
|
(obj.numPartitionsWithoutMaterializedView = message.numPartitionsWithoutMaterializedView.toString());
|
|
499
495
|
message.numPartitions !== undefined && (obj.numPartitions = message.numPartitions.toString());
|
|
500
496
|
if (message.phases) {
|
|
501
|
-
obj.phases = message.phases.map((e) => e ?
|
|
497
|
+
obj.phases = message.phases.map((e) => e ? QueryPhaseSummary.toJSON(e) : undefined);
|
|
502
498
|
}
|
|
503
499
|
else {
|
|
504
500
|
obj.phases = [];
|
|
@@ -515,7 +511,7 @@ exports.QueryExecutionSummary = {
|
|
|
515
511
|
message.numPartitionsWithMaterializedView = object.numPartitionsWithMaterializedView ?? undefined;
|
|
516
512
|
message.numPartitionsWithoutMaterializedView = object.numPartitionsWithoutMaterializedView ?? undefined;
|
|
517
513
|
message.numPartitions = object.numPartitions ?? undefined;
|
|
518
|
-
message.phases = object.phases?.map((e) =>
|
|
514
|
+
message.phases = object.phases?.map((e) => QueryPhaseSummary.fromPartial(e)) || [];
|
|
519
515
|
message.qcacheSignature = object.qcacheSignature ?? undefined;
|
|
520
516
|
message.qcacheHit = object.qcacheHit ?? undefined;
|
|
521
517
|
return message;
|
|
@@ -524,18 +520,18 @@ exports.QueryExecutionSummary = {
|
|
|
524
520
|
function createBaseAptosGetTxnsResponse() {
|
|
525
521
|
return { documents: [], executionSummary: undefined };
|
|
526
522
|
}
|
|
527
|
-
|
|
528
|
-
encode(message, writer =
|
|
523
|
+
export const AptosGetTxnsResponse = {
|
|
524
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
529
525
|
for (const v of message.documents) {
|
|
530
526
|
writer.uint32(10).bytes(v);
|
|
531
527
|
}
|
|
532
528
|
if (message.executionSummary !== undefined) {
|
|
533
|
-
|
|
529
|
+
QueryExecutionSummary.encode(message.executionSummary, writer.uint32(18).fork()).ldelim();
|
|
534
530
|
}
|
|
535
531
|
return writer;
|
|
536
532
|
},
|
|
537
533
|
decode(input, length) {
|
|
538
|
-
const reader = input instanceof
|
|
534
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
539
535
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
540
536
|
const message = createBaseAptosGetTxnsResponse();
|
|
541
537
|
while (reader.pos < end) {
|
|
@@ -545,7 +541,7 @@ exports.AptosGetTxnsResponse = {
|
|
|
545
541
|
message.documents.push(reader.bytes());
|
|
546
542
|
break;
|
|
547
543
|
case 2:
|
|
548
|
-
message.executionSummary =
|
|
544
|
+
message.executionSummary = QueryExecutionSummary.decode(reader, reader.uint32());
|
|
549
545
|
break;
|
|
550
546
|
default:
|
|
551
547
|
reader.skipType(tag & 7);
|
|
@@ -558,7 +554,7 @@ exports.AptosGetTxnsResponse = {
|
|
|
558
554
|
return {
|
|
559
555
|
documents: Array.isArray(object?.documents) ? object.documents.map((e) => bytesFromBase64(e)) : [],
|
|
560
556
|
executionSummary: isSet(object.executionSummary)
|
|
561
|
-
?
|
|
557
|
+
? QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
562
558
|
: undefined,
|
|
563
559
|
};
|
|
564
560
|
},
|
|
@@ -571,7 +567,7 @@ exports.AptosGetTxnsResponse = {
|
|
|
571
567
|
obj.documents = [];
|
|
572
568
|
}
|
|
573
569
|
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
574
|
-
?
|
|
570
|
+
? QueryExecutionSummary.toJSON(message.executionSummary)
|
|
575
571
|
: undefined);
|
|
576
572
|
return obj;
|
|
577
573
|
},
|
|
@@ -579,7 +575,7 @@ exports.AptosGetTxnsResponse = {
|
|
|
579
575
|
const message = createBaseAptosGetTxnsResponse();
|
|
580
576
|
message.documents = object.documents?.map((e) => e) || [];
|
|
581
577
|
message.executionSummary = (object.executionSummary !== undefined && object.executionSummary !== null)
|
|
582
|
-
?
|
|
578
|
+
? QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
583
579
|
: undefined;
|
|
584
580
|
return message;
|
|
585
581
|
},
|
|
@@ -587,12 +583,12 @@ exports.AptosGetTxnsResponse = {
|
|
|
587
583
|
function createBaseAptosRefreshRequest() {
|
|
588
584
|
return {};
|
|
589
585
|
}
|
|
590
|
-
|
|
591
|
-
encode(_, writer =
|
|
586
|
+
export const AptosRefreshRequest = {
|
|
587
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
592
588
|
return writer;
|
|
593
589
|
},
|
|
594
590
|
decode(input, length) {
|
|
595
|
-
const reader = input instanceof
|
|
591
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
596
592
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
597
593
|
const message = createBaseAptosRefreshRequest();
|
|
598
594
|
while (reader.pos < end) {
|
|
@@ -620,12 +616,12 @@ exports.AptosRefreshRequest = {
|
|
|
620
616
|
function createBaseVoidResponse() {
|
|
621
617
|
return {};
|
|
622
618
|
}
|
|
623
|
-
|
|
624
|
-
encode(_, writer =
|
|
619
|
+
export const VoidResponse = {
|
|
620
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
625
621
|
return writer;
|
|
626
622
|
},
|
|
627
623
|
decode(input, length) {
|
|
628
|
-
const reader = input instanceof
|
|
624
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
629
625
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
630
626
|
const message = createBaseVoidResponse();
|
|
631
627
|
while (reader.pos < end) {
|
|
@@ -653,8 +649,8 @@ exports.VoidResponse = {
|
|
|
653
649
|
function createBaseEvmSQLQueryRequest() {
|
|
654
650
|
return { network: "", sql: "" };
|
|
655
651
|
}
|
|
656
|
-
|
|
657
|
-
encode(message, writer =
|
|
652
|
+
export const EvmSQLQueryRequest = {
|
|
653
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
658
654
|
if (message.network !== "") {
|
|
659
655
|
writer.uint32(10).string(message.network);
|
|
660
656
|
}
|
|
@@ -664,7 +660,7 @@ exports.EvmSQLQueryRequest = {
|
|
|
664
660
|
return writer;
|
|
665
661
|
},
|
|
666
662
|
decode(input, length) {
|
|
667
|
-
const reader = input instanceof
|
|
663
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
668
664
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
669
665
|
const message = createBaseEvmSQLQueryRequest();
|
|
670
666
|
while (reader.pos < end) {
|
|
@@ -705,8 +701,8 @@ exports.EvmSQLQueryRequest = {
|
|
|
705
701
|
function createBaseEvmGetHeaderRequest() {
|
|
706
702
|
return { network: "", fromBlock: undefined, toBlock: undefined, blockNumbers: [] };
|
|
707
703
|
}
|
|
708
|
-
|
|
709
|
-
encode(message, writer =
|
|
704
|
+
export const EvmGetHeaderRequest = {
|
|
705
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
710
706
|
if (message.network !== "") {
|
|
711
707
|
writer.uint32(10).string(message.network);
|
|
712
708
|
}
|
|
@@ -724,7 +720,7 @@ exports.EvmGetHeaderRequest = {
|
|
|
724
720
|
return writer;
|
|
725
721
|
},
|
|
726
722
|
decode(input, length) {
|
|
727
|
-
const reader = input instanceof
|
|
723
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
728
724
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
729
725
|
const message = createBaseEvmGetHeaderRequest();
|
|
730
726
|
while (reader.pos < end) {
|
|
@@ -790,18 +786,18 @@ exports.EvmGetHeaderRequest = {
|
|
|
790
786
|
function createBaseEvmQueryResponse() {
|
|
791
787
|
return { rows: [], executionSummary: undefined };
|
|
792
788
|
}
|
|
793
|
-
|
|
794
|
-
encode(message, writer =
|
|
789
|
+
export const EvmQueryResponse = {
|
|
790
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
795
791
|
for (const v of message.rows) {
|
|
796
792
|
writer.uint32(10).bytes(v);
|
|
797
793
|
}
|
|
798
794
|
if (message.executionSummary !== undefined) {
|
|
799
|
-
|
|
795
|
+
QueryExecutionSummary.encode(message.executionSummary, writer.uint32(18).fork()).ldelim();
|
|
800
796
|
}
|
|
801
797
|
return writer;
|
|
802
798
|
},
|
|
803
799
|
decode(input, length) {
|
|
804
|
-
const reader = input instanceof
|
|
800
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
805
801
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
806
802
|
const message = createBaseEvmQueryResponse();
|
|
807
803
|
while (reader.pos < end) {
|
|
@@ -811,7 +807,7 @@ exports.EvmQueryResponse = {
|
|
|
811
807
|
message.rows.push(reader.bytes());
|
|
812
808
|
break;
|
|
813
809
|
case 2:
|
|
814
|
-
message.executionSummary =
|
|
810
|
+
message.executionSummary = QueryExecutionSummary.decode(reader, reader.uint32());
|
|
815
811
|
break;
|
|
816
812
|
default:
|
|
817
813
|
reader.skipType(tag & 7);
|
|
@@ -824,7 +820,7 @@ exports.EvmQueryResponse = {
|
|
|
824
820
|
return {
|
|
825
821
|
rows: Array.isArray(object?.rows) ? object.rows.map((e) => bytesFromBase64(e)) : [],
|
|
826
822
|
executionSummary: isSet(object.executionSummary)
|
|
827
|
-
?
|
|
823
|
+
? QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
828
824
|
: undefined,
|
|
829
825
|
};
|
|
830
826
|
},
|
|
@@ -837,7 +833,7 @@ exports.EvmQueryResponse = {
|
|
|
837
833
|
obj.rows = [];
|
|
838
834
|
}
|
|
839
835
|
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
840
|
-
?
|
|
836
|
+
? QueryExecutionSummary.toJSON(message.executionSummary)
|
|
841
837
|
: undefined);
|
|
842
838
|
return obj;
|
|
843
839
|
},
|
|
@@ -845,103 +841,117 @@ exports.EvmQueryResponse = {
|
|
|
845
841
|
const message = createBaseEvmQueryResponse();
|
|
846
842
|
message.rows = object.rows?.map((e) => e) || [];
|
|
847
843
|
message.executionSummary = (object.executionSummary !== undefined && object.executionSummary !== null)
|
|
848
|
-
?
|
|
844
|
+
? QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
849
845
|
: undefined;
|
|
850
846
|
return message;
|
|
851
847
|
},
|
|
852
848
|
};
|
|
853
|
-
|
|
849
|
+
export const AptosQueryDefinition = {
|
|
854
850
|
name: "AptosQuery",
|
|
855
851
|
fullName: "chainquery.AptosQuery",
|
|
856
852
|
methods: {
|
|
857
853
|
aptosGetTxnsByFunction: {
|
|
858
854
|
name: "AptosGetTxnsByFunction",
|
|
859
|
-
requestType:
|
|
855
|
+
requestType: AptosGetTxnsByFunctionRequest,
|
|
860
856
|
requestStream: false,
|
|
861
|
-
responseType:
|
|
857
|
+
responseType: AptosGetTxnsResponse,
|
|
862
858
|
responseStream: false,
|
|
863
859
|
options: {},
|
|
864
860
|
},
|
|
865
861
|
aptosGetTxnsByFunctionStream: {
|
|
866
862
|
name: "AptosGetTxnsByFunctionStream",
|
|
867
|
-
requestType:
|
|
863
|
+
requestType: AptosGetTxnsByFunctionRequest,
|
|
868
864
|
requestStream: false,
|
|
869
|
-
responseType:
|
|
865
|
+
responseType: AptosGetTxnsResponse,
|
|
870
866
|
responseStream: true,
|
|
871
867
|
options: {},
|
|
872
868
|
},
|
|
873
869
|
aptosGetTxnsByVersion: {
|
|
874
870
|
name: "AptosGetTxnsByVersion",
|
|
875
|
-
requestType:
|
|
871
|
+
requestType: AptosGetTxnsByVersionRequest,
|
|
876
872
|
requestStream: false,
|
|
877
|
-
responseType:
|
|
873
|
+
responseType: AptosGetTxnsResponse,
|
|
878
874
|
responseStream: false,
|
|
879
875
|
options: {},
|
|
880
876
|
},
|
|
881
877
|
aptosGetTxnsByEvent: {
|
|
882
878
|
name: "AptosGetTxnsByEvent",
|
|
883
|
-
requestType:
|
|
879
|
+
requestType: AptosGetTxnsByEventRequest,
|
|
884
880
|
requestStream: false,
|
|
885
|
-
responseType:
|
|
881
|
+
responseType: AptosGetTxnsResponse,
|
|
886
882
|
responseStream: false,
|
|
887
883
|
options: {},
|
|
888
884
|
},
|
|
889
885
|
aptosGetTxnsByEventStream: {
|
|
890
886
|
name: "AptosGetTxnsByEventStream",
|
|
891
|
-
requestType:
|
|
887
|
+
requestType: AptosGetTxnsByEventRequest,
|
|
892
888
|
requestStream: false,
|
|
893
|
-
responseType:
|
|
889
|
+
responseType: AptosGetTxnsResponse,
|
|
894
890
|
responseStream: true,
|
|
895
891
|
options: {},
|
|
896
892
|
},
|
|
897
893
|
aptosRefresh: {
|
|
898
894
|
name: "AptosRefresh",
|
|
899
|
-
requestType:
|
|
895
|
+
requestType: AptosRefreshRequest,
|
|
900
896
|
requestStream: false,
|
|
901
|
-
responseType:
|
|
897
|
+
responseType: VoidResponse,
|
|
902
898
|
responseStream: false,
|
|
903
899
|
options: {},
|
|
904
900
|
},
|
|
905
901
|
aptosSQLQuery: {
|
|
906
902
|
name: "AptosSQLQuery",
|
|
907
|
-
requestType:
|
|
903
|
+
requestType: AptosSQLQueryRequest,
|
|
908
904
|
requestStream: false,
|
|
909
|
-
responseType:
|
|
905
|
+
responseType: AptosGetTxnsResponse,
|
|
910
906
|
responseStream: false,
|
|
911
907
|
options: {},
|
|
912
908
|
},
|
|
913
909
|
},
|
|
914
910
|
};
|
|
915
|
-
|
|
911
|
+
export const EvmQueryDefinition = {
|
|
916
912
|
name: "EvmQuery",
|
|
917
913
|
fullName: "chainquery.EvmQuery",
|
|
918
914
|
methods: {
|
|
919
915
|
evmSQLQuery: {
|
|
920
916
|
name: "EvmSQLQuery",
|
|
921
|
-
requestType:
|
|
917
|
+
requestType: EvmSQLQueryRequest,
|
|
922
918
|
requestStream: false,
|
|
923
|
-
responseType:
|
|
919
|
+
responseType: EvmQueryResponse,
|
|
924
920
|
responseStream: true,
|
|
925
921
|
options: {},
|
|
926
922
|
},
|
|
927
923
|
evmGetHeader: {
|
|
928
924
|
name: "EvmGetHeader",
|
|
929
|
-
requestType:
|
|
925
|
+
requestType: EvmGetHeaderRequest,
|
|
930
926
|
requestStream: false,
|
|
931
|
-
responseType:
|
|
927
|
+
responseType: EvmQueryResponse,
|
|
932
928
|
responseStream: false,
|
|
933
929
|
options: {},
|
|
934
930
|
},
|
|
935
931
|
evmHintHeaderCache: {
|
|
936
932
|
name: "EvmHintHeaderCache",
|
|
937
|
-
requestType:
|
|
933
|
+
requestType: EvmGetHeaderRequest,
|
|
938
934
|
requestStream: false,
|
|
939
|
-
responseType:
|
|
935
|
+
responseType: VoidResponse,
|
|
940
936
|
responseStream: false,
|
|
941
937
|
options: {},
|
|
942
938
|
},
|
|
943
939
|
},
|
|
944
940
|
};
|
|
941
|
+
export const SuiQueryDefinition = {
|
|
942
|
+
name: "SuiQuery",
|
|
943
|
+
fullName: "chainquery.SuiQuery",
|
|
944
|
+
methods: {
|
|
945
|
+
suiSQLQuery: {
|
|
946
|
+
name: "SuiSQLQuery",
|
|
947
|
+
requestType: EvmSQLQueryRequest,
|
|
948
|
+
requestStream: false,
|
|
949
|
+
responseType: EvmQueryResponse,
|
|
950
|
+
responseStream: true,
|
|
951
|
+
options: {},
|
|
952
|
+
},
|
|
953
|
+
},
|
|
954
|
+
};
|
|
945
955
|
var tsProtoGlobalThis = (() => {
|
|
946
956
|
if (typeof globalThis !== "undefined") {
|
|
947
957
|
return globalThis;
|
|
@@ -985,9 +995,9 @@ function base64FromBytes(arr) {
|
|
|
985
995
|
function longToBigint(long) {
|
|
986
996
|
return BigInt(long.toString());
|
|
987
997
|
}
|
|
988
|
-
if (
|
|
989
|
-
|
|
990
|
-
|
|
998
|
+
if (_m0.util.Long !== Long) {
|
|
999
|
+
_m0.util.Long = Long;
|
|
1000
|
+
_m0.configure();
|
|
991
1001
|
}
|
|
992
1002
|
function isSet(value) {
|
|
993
1003
|
return value !== null && value !== undefined;
|