@sentio/protos 1.38.1-rc.2 → 1.39.0-rc.2
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/chainquery/protos/chainquery.d.ts +4 -2
- package/lib/chainquery/protos/chainquery.js +124 -108
- package/lib/chainquery/protos/chainquery.js.map +1 -1
- package/lib/google/protobuf/empty.d.ts +1 -1
- package/lib/google/protobuf/empty.js.map +1 -1
- package/lib/google/protobuf/struct.d.ts +1 -1
- package/lib/google/protobuf/struct.js +15 -15
- package/lib/google/protobuf/struct.js.map +1 -1
- package/lib/google/protobuf/timestamp.d.ts +1 -1
- package/lib/google/protobuf/timestamp.js +4 -4
- package/lib/google/protobuf/timestamp.js.map +1 -1
- package/lib/processor/protos/processor.d.ts +26 -15
- package/lib/processor/protos/processor.js +486 -447
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/price/protos/price.d.ts +2 -2
- package/lib/service/price/protos/price.js +17 -17
- package/lib/service/price/protos/price.js.map +1 -1
- package/package.json +2 -2
- package/src/chainquery/protos/chainquery.ts +578 -560
- package/src/google/protobuf/empty.ts +24 -28
- package/src/google/protobuf/struct.ts +179 -184
- package/src/google/protobuf/timestamp.ts +40 -45
- package/src/processor/protos/processor.ts +2257 -2212
- package/src/service/price/protos/price.ts +142 -147
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CallContext, CallOptions } from
|
|
2
|
-
import _m0 from
|
|
1
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
3
|
export interface AptosGetTxnsByFunctionRequest {
|
|
4
4
|
network: string;
|
|
5
5
|
fromVersion: bigint;
|
|
@@ -40,6 +40,8 @@ export interface QueryExecutionSummary {
|
|
|
40
40
|
numPartitionsWithoutMaterializedView?: bigint | undefined;
|
|
41
41
|
numPartitions?: bigint | undefined;
|
|
42
42
|
phases: QueryPhaseSummary[];
|
|
43
|
+
qcacheSignature?: string | undefined;
|
|
44
|
+
qcacheHit?: boolean | undefined;
|
|
43
45
|
}
|
|
44
46
|
export interface AptosGetTxnsResponse {
|
|
45
47
|
documents: string[];
|
|
@@ -9,26 +9,26 @@ const long_1 = __importDefault(require("long"));
|
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
function createBaseAptosGetTxnsByFunctionRequest() {
|
|
11
11
|
return {
|
|
12
|
-
network:
|
|
13
|
-
fromVersion: BigInt(
|
|
14
|
-
toVersion: BigInt(
|
|
15
|
-
function:
|
|
12
|
+
network: "",
|
|
13
|
+
fromVersion: BigInt("0"),
|
|
14
|
+
toVersion: BigInt("0"),
|
|
15
|
+
function: "",
|
|
16
16
|
matchAll: false,
|
|
17
17
|
typedArguments: [],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
exports.AptosGetTxnsByFunctionRequest = {
|
|
21
21
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
22
|
-
if (message.network !==
|
|
22
|
+
if (message.network !== "") {
|
|
23
23
|
writer.uint32(10).string(message.network);
|
|
24
24
|
}
|
|
25
|
-
if (message.fromVersion !== BigInt(
|
|
25
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
26
26
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
27
27
|
}
|
|
28
|
-
if (message.toVersion !== BigInt(
|
|
28
|
+
if (message.toVersion !== BigInt("0")) {
|
|
29
29
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
30
30
|
}
|
|
31
|
-
if (message.function !==
|
|
31
|
+
if (message.function !== "") {
|
|
32
32
|
writer.uint32(34).string(message.function);
|
|
33
33
|
}
|
|
34
34
|
if (message.matchAll === true) {
|
|
@@ -73,10 +73,10 @@ exports.AptosGetTxnsByFunctionRequest = {
|
|
|
73
73
|
},
|
|
74
74
|
fromJSON(object) {
|
|
75
75
|
return {
|
|
76
|
-
network: isSet(object.network) ? String(object.network) :
|
|
77
|
-
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt(
|
|
78
|
-
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt(
|
|
79
|
-
function: isSet(object.function) ? String(object.function) :
|
|
76
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
77
|
+
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
78
|
+
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
79
|
+
function: isSet(object.function) ? String(object.function) : "",
|
|
80
80
|
matchAll: isSet(object.matchAll) ? Boolean(object.matchAll) : false,
|
|
81
81
|
typedArguments: Array.isArray(object?.typedArguments) ? object.typedArguments.map((e) => String(e)) : [],
|
|
82
82
|
};
|
|
@@ -98,27 +98,27 @@ exports.AptosGetTxnsByFunctionRequest = {
|
|
|
98
98
|
},
|
|
99
99
|
fromPartial(object) {
|
|
100
100
|
const message = createBaseAptosGetTxnsByFunctionRequest();
|
|
101
|
-
message.network = object.network ??
|
|
102
|
-
message.fromVersion = object.fromVersion ?? BigInt(
|
|
103
|
-
message.toVersion = object.toVersion ?? BigInt(
|
|
104
|
-
message.function = object.function ??
|
|
101
|
+
message.network = object.network ?? "";
|
|
102
|
+
message.fromVersion = object.fromVersion ?? BigInt("0");
|
|
103
|
+
message.toVersion = object.toVersion ?? BigInt("0");
|
|
104
|
+
message.function = object.function ?? "";
|
|
105
105
|
message.matchAll = object.matchAll ?? false;
|
|
106
106
|
message.typedArguments = object.typedArguments?.map((e) => e) || [];
|
|
107
107
|
return message;
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
110
|
function createBaseAptosGetTxnsByVersionRequest() {
|
|
111
|
-
return { network:
|
|
111
|
+
return { network: "", fromVersion: BigInt("0"), toVersion: BigInt("0"), headerOnly: undefined };
|
|
112
112
|
}
|
|
113
113
|
exports.AptosGetTxnsByVersionRequest = {
|
|
114
114
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
115
|
-
if (message.network !==
|
|
115
|
+
if (message.network !== "") {
|
|
116
116
|
writer.uint32(10).string(message.network);
|
|
117
117
|
}
|
|
118
|
-
if (message.fromVersion !== BigInt(
|
|
118
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
119
119
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
120
120
|
}
|
|
121
|
-
if (message.toVersion !== BigInt(
|
|
121
|
+
if (message.toVersion !== BigInt("0")) {
|
|
122
122
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
123
123
|
}
|
|
124
124
|
if (message.headerOnly !== undefined) {
|
|
@@ -154,9 +154,9 @@ exports.AptosGetTxnsByVersionRequest = {
|
|
|
154
154
|
},
|
|
155
155
|
fromJSON(object) {
|
|
156
156
|
return {
|
|
157
|
-
network: isSet(object.network) ? String(object.network) :
|
|
158
|
-
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt(
|
|
159
|
-
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt(
|
|
157
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
158
|
+
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
159
|
+
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
160
160
|
headerOnly: isSet(object.headerOnly) ? Boolean(object.headerOnly) : undefined,
|
|
161
161
|
};
|
|
162
162
|
},
|
|
@@ -170,31 +170,31 @@ exports.AptosGetTxnsByVersionRequest = {
|
|
|
170
170
|
},
|
|
171
171
|
fromPartial(object) {
|
|
172
172
|
const message = createBaseAptosGetTxnsByVersionRequest();
|
|
173
|
-
message.network = object.network ??
|
|
174
|
-
message.fromVersion = object.fromVersion ?? BigInt(
|
|
175
|
-
message.toVersion = object.toVersion ?? BigInt(
|
|
173
|
+
message.network = object.network ?? "";
|
|
174
|
+
message.fromVersion = object.fromVersion ?? BigInt("0");
|
|
175
|
+
message.toVersion = object.toVersion ?? BigInt("0");
|
|
176
176
|
message.headerOnly = object.headerOnly ?? undefined;
|
|
177
177
|
return message;
|
|
178
178
|
},
|
|
179
179
|
};
|
|
180
180
|
function createBaseAptosGetTxnsByEventRequest() {
|
|
181
|
-
return { network:
|
|
181
|
+
return { network: "", fromVersion: BigInt("0"), toVersion: BigInt("0"), address: "", type: "" };
|
|
182
182
|
}
|
|
183
183
|
exports.AptosGetTxnsByEventRequest = {
|
|
184
184
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
185
|
-
if (message.network !==
|
|
185
|
+
if (message.network !== "") {
|
|
186
186
|
writer.uint32(10).string(message.network);
|
|
187
187
|
}
|
|
188
|
-
if (message.fromVersion !== BigInt(
|
|
188
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
189
189
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
190
190
|
}
|
|
191
|
-
if (message.toVersion !== BigInt(
|
|
191
|
+
if (message.toVersion !== BigInt("0")) {
|
|
192
192
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
193
193
|
}
|
|
194
|
-
if (message.address !==
|
|
194
|
+
if (message.address !== "") {
|
|
195
195
|
writer.uint32(34).string(message.address);
|
|
196
196
|
}
|
|
197
|
-
if (message.type !==
|
|
197
|
+
if (message.type !== "") {
|
|
198
198
|
writer.uint32(42).string(message.type);
|
|
199
199
|
}
|
|
200
200
|
return writer;
|
|
@@ -230,11 +230,11 @@ exports.AptosGetTxnsByEventRequest = {
|
|
|
230
230
|
},
|
|
231
231
|
fromJSON(object) {
|
|
232
232
|
return {
|
|
233
|
-
network: isSet(object.network) ? String(object.network) :
|
|
234
|
-
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt(
|
|
235
|
-
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt(
|
|
236
|
-
address: isSet(object.address) ? String(object.address) :
|
|
237
|
-
type: isSet(object.type) ? String(object.type) :
|
|
233
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
234
|
+
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
235
|
+
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
236
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
237
|
+
type: isSet(object.type) ? String(object.type) : "",
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
240
|
toJSON(message) {
|
|
@@ -248,29 +248,29 @@ exports.AptosGetTxnsByEventRequest = {
|
|
|
248
248
|
},
|
|
249
249
|
fromPartial(object) {
|
|
250
250
|
const message = createBaseAptosGetTxnsByEventRequest();
|
|
251
|
-
message.network = object.network ??
|
|
252
|
-
message.fromVersion = object.fromVersion ?? BigInt(
|
|
253
|
-
message.toVersion = object.toVersion ?? BigInt(
|
|
254
|
-
message.address = object.address ??
|
|
255
|
-
message.type = object.type ??
|
|
251
|
+
message.network = object.network ?? "";
|
|
252
|
+
message.fromVersion = object.fromVersion ?? BigInt("0");
|
|
253
|
+
message.toVersion = object.toVersion ?? BigInt("0");
|
|
254
|
+
message.address = object.address ?? "";
|
|
255
|
+
message.type = object.type ?? "";
|
|
256
256
|
return message;
|
|
257
257
|
},
|
|
258
258
|
};
|
|
259
259
|
function createBaseAptosSQLQueryRequest() {
|
|
260
|
-
return { network:
|
|
260
|
+
return { network: "", fromVersion: BigInt("0"), toVersion: BigInt("0"), sql: "", arbitraryRange: false };
|
|
261
261
|
}
|
|
262
262
|
exports.AptosSQLQueryRequest = {
|
|
263
263
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
264
|
-
if (message.network !==
|
|
264
|
+
if (message.network !== "") {
|
|
265
265
|
writer.uint32(10).string(message.network);
|
|
266
266
|
}
|
|
267
|
-
if (message.fromVersion !== BigInt(
|
|
267
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
268
268
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
269
269
|
}
|
|
270
|
-
if (message.toVersion !== BigInt(
|
|
270
|
+
if (message.toVersion !== BigInt("0")) {
|
|
271
271
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
272
272
|
}
|
|
273
|
-
if (message.sql !==
|
|
273
|
+
if (message.sql !== "") {
|
|
274
274
|
writer.uint32(34).string(message.sql);
|
|
275
275
|
}
|
|
276
276
|
if (message.arbitraryRange === true) {
|
|
@@ -309,10 +309,10 @@ exports.AptosSQLQueryRequest = {
|
|
|
309
309
|
},
|
|
310
310
|
fromJSON(object) {
|
|
311
311
|
return {
|
|
312
|
-
network: isSet(object.network) ? String(object.network) :
|
|
313
|
-
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt(
|
|
314
|
-
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt(
|
|
315
|
-
sql: isSet(object.sql) ? String(object.sql) :
|
|
312
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
313
|
+
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
314
|
+
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
315
|
+
sql: isSet(object.sql) ? String(object.sql) : "",
|
|
316
316
|
arbitraryRange: isSet(object.arbitraryRange) ? Boolean(object.arbitraryRange) : false,
|
|
317
317
|
};
|
|
318
318
|
},
|
|
@@ -327,23 +327,23 @@ exports.AptosSQLQueryRequest = {
|
|
|
327
327
|
},
|
|
328
328
|
fromPartial(object) {
|
|
329
329
|
const message = createBaseAptosSQLQueryRequest();
|
|
330
|
-
message.network = object.network ??
|
|
331
|
-
message.fromVersion = object.fromVersion ?? BigInt(
|
|
332
|
-
message.toVersion = object.toVersion ?? BigInt(
|
|
333
|
-
message.sql = object.sql ??
|
|
330
|
+
message.network = object.network ?? "";
|
|
331
|
+
message.fromVersion = object.fromVersion ?? BigInt("0");
|
|
332
|
+
message.toVersion = object.toVersion ?? BigInt("0");
|
|
333
|
+
message.sql = object.sql ?? "";
|
|
334
334
|
message.arbitraryRange = object.arbitraryRange ?? false;
|
|
335
335
|
return message;
|
|
336
336
|
},
|
|
337
337
|
};
|
|
338
338
|
function createBaseQueryPhaseSummary() {
|
|
339
|
-
return { name:
|
|
339
|
+
return { name: "", timeTookMs: BigInt("0") };
|
|
340
340
|
}
|
|
341
341
|
exports.QueryPhaseSummary = {
|
|
342
342
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
343
|
-
if (message.name !==
|
|
343
|
+
if (message.name !== "") {
|
|
344
344
|
writer.uint32(10).string(message.name);
|
|
345
345
|
}
|
|
346
|
-
if (message.timeTookMs !== BigInt(
|
|
346
|
+
if (message.timeTookMs !== BigInt("0")) {
|
|
347
347
|
writer.uint32(16).uint64(message.timeTookMs.toString());
|
|
348
348
|
}
|
|
349
349
|
return writer;
|
|
@@ -370,8 +370,8 @@ exports.QueryPhaseSummary = {
|
|
|
370
370
|
},
|
|
371
371
|
fromJSON(object) {
|
|
372
372
|
return {
|
|
373
|
-
name: isSet(object.name) ? String(object.name) :
|
|
374
|
-
timeTookMs: isSet(object.timeTookMs) ? BigInt(object.timeTookMs) : BigInt(
|
|
373
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
374
|
+
timeTookMs: isSet(object.timeTookMs) ? BigInt(object.timeTookMs) : BigInt("0"),
|
|
375
375
|
};
|
|
376
376
|
},
|
|
377
377
|
toJSON(message) {
|
|
@@ -382,25 +382,27 @@ exports.QueryPhaseSummary = {
|
|
|
382
382
|
},
|
|
383
383
|
fromPartial(object) {
|
|
384
384
|
const message = createBaseQueryPhaseSummary();
|
|
385
|
-
message.name = object.name ??
|
|
386
|
-
message.timeTookMs = object.timeTookMs ?? BigInt(
|
|
385
|
+
message.name = object.name ?? "";
|
|
386
|
+
message.timeTookMs = object.timeTookMs ?? BigInt("0");
|
|
387
387
|
return message;
|
|
388
388
|
},
|
|
389
389
|
};
|
|
390
390
|
function createBaseQueryExecutionSummary() {
|
|
391
391
|
return {
|
|
392
|
-
timeTookMs: BigInt(
|
|
392
|
+
timeTookMs: BigInt("0"),
|
|
393
393
|
resultNumRows: undefined,
|
|
394
394
|
resultNumBytes: undefined,
|
|
395
395
|
numPartitionsWithMaterializedView: undefined,
|
|
396
396
|
numPartitionsWithoutMaterializedView: undefined,
|
|
397
397
|
numPartitions: undefined,
|
|
398
398
|
phases: [],
|
|
399
|
+
qcacheSignature: undefined,
|
|
400
|
+
qcacheHit: undefined,
|
|
399
401
|
};
|
|
400
402
|
}
|
|
401
403
|
exports.QueryExecutionSummary = {
|
|
402
404
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
403
|
-
if (message.timeTookMs !== BigInt(
|
|
405
|
+
if (message.timeTookMs !== BigInt("0")) {
|
|
404
406
|
writer.uint32(8).uint64(message.timeTookMs.toString());
|
|
405
407
|
}
|
|
406
408
|
if (message.resultNumRows !== undefined) {
|
|
@@ -421,6 +423,12 @@ exports.QueryExecutionSummary = {
|
|
|
421
423
|
for (const v of message.phases) {
|
|
422
424
|
exports.QueryPhaseSummary.encode(v, writer.uint32(58).fork()).ldelim();
|
|
423
425
|
}
|
|
426
|
+
if (message.qcacheSignature !== undefined) {
|
|
427
|
+
writer.uint32(66).string(message.qcacheSignature);
|
|
428
|
+
}
|
|
429
|
+
if (message.qcacheHit !== undefined) {
|
|
430
|
+
writer.uint32(72).bool(message.qcacheHit);
|
|
431
|
+
}
|
|
424
432
|
return writer;
|
|
425
433
|
},
|
|
426
434
|
decode(input, length) {
|
|
@@ -451,6 +459,12 @@ exports.QueryExecutionSummary = {
|
|
|
451
459
|
case 7:
|
|
452
460
|
message.phases.push(exports.QueryPhaseSummary.decode(reader, reader.uint32()));
|
|
453
461
|
break;
|
|
462
|
+
case 8:
|
|
463
|
+
message.qcacheSignature = reader.string();
|
|
464
|
+
break;
|
|
465
|
+
case 9:
|
|
466
|
+
message.qcacheHit = reader.bool();
|
|
467
|
+
break;
|
|
454
468
|
default:
|
|
455
469
|
reader.skipType(tag & 7);
|
|
456
470
|
break;
|
|
@@ -460,7 +474,7 @@ exports.QueryExecutionSummary = {
|
|
|
460
474
|
},
|
|
461
475
|
fromJSON(object) {
|
|
462
476
|
return {
|
|
463
|
-
timeTookMs: isSet(object.timeTookMs) ? BigInt(object.timeTookMs) : BigInt(
|
|
477
|
+
timeTookMs: isSet(object.timeTookMs) ? BigInt(object.timeTookMs) : BigInt("0"),
|
|
464
478
|
resultNumRows: isSet(object.resultNumRows) ? BigInt(object.resultNumRows) : undefined,
|
|
465
479
|
resultNumBytes: isSet(object.resultNumBytes) ? BigInt(object.resultNumBytes) : undefined,
|
|
466
480
|
numPartitionsWithMaterializedView: isSet(object.numPartitionsWithMaterializedView)
|
|
@@ -471,6 +485,8 @@ exports.QueryExecutionSummary = {
|
|
|
471
485
|
: undefined,
|
|
472
486
|
numPartitions: isSet(object.numPartitions) ? BigInt(object.numPartitions) : undefined,
|
|
473
487
|
phases: Array.isArray(object?.phases) ? object.phases.map((e) => exports.QueryPhaseSummary.fromJSON(e)) : [],
|
|
488
|
+
qcacheSignature: isSet(object.qcacheSignature) ? String(object.qcacheSignature) : undefined,
|
|
489
|
+
qcacheHit: isSet(object.qcacheHit) ? Boolean(object.qcacheHit) : undefined,
|
|
474
490
|
};
|
|
475
491
|
},
|
|
476
492
|
toJSON(message) {
|
|
@@ -484,22 +500,26 @@ exports.QueryExecutionSummary = {
|
|
|
484
500
|
(obj.numPartitionsWithoutMaterializedView = message.numPartitionsWithoutMaterializedView.toString());
|
|
485
501
|
message.numPartitions !== undefined && (obj.numPartitions = message.numPartitions.toString());
|
|
486
502
|
if (message.phases) {
|
|
487
|
-
obj.phases = message.phases.map((e) =>
|
|
503
|
+
obj.phases = message.phases.map((e) => e ? exports.QueryPhaseSummary.toJSON(e) : undefined);
|
|
488
504
|
}
|
|
489
505
|
else {
|
|
490
506
|
obj.phases = [];
|
|
491
507
|
}
|
|
508
|
+
message.qcacheSignature !== undefined && (obj.qcacheSignature = message.qcacheSignature);
|
|
509
|
+
message.qcacheHit !== undefined && (obj.qcacheHit = message.qcacheHit);
|
|
492
510
|
return obj;
|
|
493
511
|
},
|
|
494
512
|
fromPartial(object) {
|
|
495
513
|
const message = createBaseQueryExecutionSummary();
|
|
496
|
-
message.timeTookMs = object.timeTookMs ?? BigInt(
|
|
514
|
+
message.timeTookMs = object.timeTookMs ?? BigInt("0");
|
|
497
515
|
message.resultNumRows = object.resultNumRows ?? undefined;
|
|
498
516
|
message.resultNumBytes = object.resultNumBytes ?? undefined;
|
|
499
517
|
message.numPartitionsWithMaterializedView = object.numPartitionsWithMaterializedView ?? undefined;
|
|
500
518
|
message.numPartitionsWithoutMaterializedView = object.numPartitionsWithoutMaterializedView ?? undefined;
|
|
501
519
|
message.numPartitions = object.numPartitions ?? undefined;
|
|
502
520
|
message.phases = object.phases?.map((e) => exports.QueryPhaseSummary.fromPartial(e)) || [];
|
|
521
|
+
message.qcacheSignature = object.qcacheSignature ?? undefined;
|
|
522
|
+
message.qcacheHit = object.qcacheHit ?? undefined;
|
|
503
523
|
return message;
|
|
504
524
|
},
|
|
505
525
|
};
|
|
@@ -552,19 +572,17 @@ exports.AptosGetTxnsResponse = {
|
|
|
552
572
|
else {
|
|
553
573
|
obj.documents = [];
|
|
554
574
|
}
|
|
555
|
-
message.executionSummary !== undefined &&
|
|
556
|
-
(
|
|
557
|
-
|
|
558
|
-
: undefined);
|
|
575
|
+
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
576
|
+
? exports.QueryExecutionSummary.toJSON(message.executionSummary)
|
|
577
|
+
: undefined);
|
|
559
578
|
return obj;
|
|
560
579
|
},
|
|
561
580
|
fromPartial(object) {
|
|
562
581
|
const message = createBaseAptosGetTxnsResponse();
|
|
563
582
|
message.documents = object.documents?.map((e) => e) || [];
|
|
564
|
-
message.executionSummary =
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
: undefined;
|
|
583
|
+
message.executionSummary = (object.executionSummary !== undefined && object.executionSummary !== null)
|
|
584
|
+
? exports.QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
585
|
+
: undefined;
|
|
568
586
|
return message;
|
|
569
587
|
},
|
|
570
588
|
};
|
|
@@ -635,14 +653,14 @@ exports.VoidResponse = {
|
|
|
635
653
|
},
|
|
636
654
|
};
|
|
637
655
|
function createBaseEvmSQLQueryRequest() {
|
|
638
|
-
return { network:
|
|
656
|
+
return { network: "", sql: "" };
|
|
639
657
|
}
|
|
640
658
|
exports.EvmSQLQueryRequest = {
|
|
641
659
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
642
|
-
if (message.network !==
|
|
660
|
+
if (message.network !== "") {
|
|
643
661
|
writer.uint32(10).string(message.network);
|
|
644
662
|
}
|
|
645
|
-
if (message.sql !==
|
|
663
|
+
if (message.sql !== "") {
|
|
646
664
|
writer.uint32(18).string(message.sql);
|
|
647
665
|
}
|
|
648
666
|
return writer;
|
|
@@ -669,8 +687,8 @@ exports.EvmSQLQueryRequest = {
|
|
|
669
687
|
},
|
|
670
688
|
fromJSON(object) {
|
|
671
689
|
return {
|
|
672
|
-
network: isSet(object.network) ? String(object.network) :
|
|
673
|
-
sql: isSet(object.sql) ? String(object.sql) :
|
|
690
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
691
|
+
sql: isSet(object.sql) ? String(object.sql) : "",
|
|
674
692
|
};
|
|
675
693
|
},
|
|
676
694
|
toJSON(message) {
|
|
@@ -681,17 +699,17 @@ exports.EvmSQLQueryRequest = {
|
|
|
681
699
|
},
|
|
682
700
|
fromPartial(object) {
|
|
683
701
|
const message = createBaseEvmSQLQueryRequest();
|
|
684
|
-
message.network = object.network ??
|
|
685
|
-
message.sql = object.sql ??
|
|
702
|
+
message.network = object.network ?? "";
|
|
703
|
+
message.sql = object.sql ?? "";
|
|
686
704
|
return message;
|
|
687
705
|
},
|
|
688
706
|
};
|
|
689
707
|
function createBaseEvmGetHeaderRequest() {
|
|
690
|
-
return { network:
|
|
708
|
+
return { network: "", fromBlock: undefined, toBlock: undefined, blockNumbers: [] };
|
|
691
709
|
}
|
|
692
710
|
exports.EvmGetHeaderRequest = {
|
|
693
711
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
694
|
-
if (message.network !==
|
|
712
|
+
if (message.network !== "") {
|
|
695
713
|
writer.uint32(10).string(message.network);
|
|
696
714
|
}
|
|
697
715
|
if (message.fromBlock !== undefined) {
|
|
@@ -743,7 +761,7 @@ exports.EvmGetHeaderRequest = {
|
|
|
743
761
|
},
|
|
744
762
|
fromJSON(object) {
|
|
745
763
|
return {
|
|
746
|
-
network: isSet(object.network) ? String(object.network) :
|
|
764
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
747
765
|
fromBlock: isSet(object.fromBlock) ? BigInt(object.fromBlock) : undefined,
|
|
748
766
|
toBlock: isSet(object.toBlock) ? BigInt(object.toBlock) : undefined,
|
|
749
767
|
blockNumbers: Array.isArray(object?.blockNumbers) ? object.blockNumbers.map((e) => BigInt(e)) : [],
|
|
@@ -764,7 +782,7 @@ exports.EvmGetHeaderRequest = {
|
|
|
764
782
|
},
|
|
765
783
|
fromPartial(object) {
|
|
766
784
|
const message = createBaseEvmGetHeaderRequest();
|
|
767
|
-
message.network = object.network ??
|
|
785
|
+
message.network = object.network ?? "";
|
|
768
786
|
message.fromBlock = object.fromBlock ?? undefined;
|
|
769
787
|
message.toBlock = object.toBlock ?? undefined;
|
|
770
788
|
message.blockNumbers = object.blockNumbers?.map((e) => e) || [];
|
|
@@ -820,28 +838,26 @@ exports.EvmQueryResponse = {
|
|
|
820
838
|
else {
|
|
821
839
|
obj.rows = [];
|
|
822
840
|
}
|
|
823
|
-
message.executionSummary !== undefined &&
|
|
824
|
-
(
|
|
825
|
-
|
|
826
|
-
: undefined);
|
|
841
|
+
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
842
|
+
? exports.QueryExecutionSummary.toJSON(message.executionSummary)
|
|
843
|
+
: undefined);
|
|
827
844
|
return obj;
|
|
828
845
|
},
|
|
829
846
|
fromPartial(object) {
|
|
830
847
|
const message = createBaseEvmQueryResponse();
|
|
831
848
|
message.rows = object.rows?.map((e) => e) || [];
|
|
832
|
-
message.executionSummary =
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
: undefined;
|
|
849
|
+
message.executionSummary = (object.executionSummary !== undefined && object.executionSummary !== null)
|
|
850
|
+
? exports.QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
851
|
+
: undefined;
|
|
836
852
|
return message;
|
|
837
853
|
},
|
|
838
854
|
};
|
|
839
855
|
exports.AptosQueryDefinition = {
|
|
840
|
-
name:
|
|
841
|
-
fullName:
|
|
856
|
+
name: "AptosQuery",
|
|
857
|
+
fullName: "chainquery.AptosQuery",
|
|
842
858
|
methods: {
|
|
843
859
|
aptosGetTxnsByFunction: {
|
|
844
|
-
name:
|
|
860
|
+
name: "AptosGetTxnsByFunction",
|
|
845
861
|
requestType: exports.AptosGetTxnsByFunctionRequest,
|
|
846
862
|
requestStream: false,
|
|
847
863
|
responseType: exports.AptosGetTxnsResponse,
|
|
@@ -849,7 +865,7 @@ exports.AptosQueryDefinition = {
|
|
|
849
865
|
options: {},
|
|
850
866
|
},
|
|
851
867
|
aptosGetTxnsByFunctionStream: {
|
|
852
|
-
name:
|
|
868
|
+
name: "AptosGetTxnsByFunctionStream",
|
|
853
869
|
requestType: exports.AptosGetTxnsByFunctionRequest,
|
|
854
870
|
requestStream: false,
|
|
855
871
|
responseType: exports.AptosGetTxnsResponse,
|
|
@@ -857,7 +873,7 @@ exports.AptosQueryDefinition = {
|
|
|
857
873
|
options: {},
|
|
858
874
|
},
|
|
859
875
|
aptosGetTxnsByVersion: {
|
|
860
|
-
name:
|
|
876
|
+
name: "AptosGetTxnsByVersion",
|
|
861
877
|
requestType: exports.AptosGetTxnsByVersionRequest,
|
|
862
878
|
requestStream: false,
|
|
863
879
|
responseType: exports.AptosGetTxnsResponse,
|
|
@@ -865,7 +881,7 @@ exports.AptosQueryDefinition = {
|
|
|
865
881
|
options: {},
|
|
866
882
|
},
|
|
867
883
|
aptosGetTxnsByEvent: {
|
|
868
|
-
name:
|
|
884
|
+
name: "AptosGetTxnsByEvent",
|
|
869
885
|
requestType: exports.AptosGetTxnsByEventRequest,
|
|
870
886
|
requestStream: false,
|
|
871
887
|
responseType: exports.AptosGetTxnsResponse,
|
|
@@ -873,7 +889,7 @@ exports.AptosQueryDefinition = {
|
|
|
873
889
|
options: {},
|
|
874
890
|
},
|
|
875
891
|
aptosGetTxnsByEventStream: {
|
|
876
|
-
name:
|
|
892
|
+
name: "AptosGetTxnsByEventStream",
|
|
877
893
|
requestType: exports.AptosGetTxnsByEventRequest,
|
|
878
894
|
requestStream: false,
|
|
879
895
|
responseType: exports.AptosGetTxnsResponse,
|
|
@@ -881,7 +897,7 @@ exports.AptosQueryDefinition = {
|
|
|
881
897
|
options: {},
|
|
882
898
|
},
|
|
883
899
|
aptosRefresh: {
|
|
884
|
-
name:
|
|
900
|
+
name: "AptosRefresh",
|
|
885
901
|
requestType: exports.AptosRefreshRequest,
|
|
886
902
|
requestStream: false,
|
|
887
903
|
responseType: exports.VoidResponse,
|
|
@@ -889,7 +905,7 @@ exports.AptosQueryDefinition = {
|
|
|
889
905
|
options: {},
|
|
890
906
|
},
|
|
891
907
|
aptosSQLQuery: {
|
|
892
|
-
name:
|
|
908
|
+
name: "AptosSQLQuery",
|
|
893
909
|
requestType: exports.AptosSQLQueryRequest,
|
|
894
910
|
requestStream: false,
|
|
895
911
|
responseType: exports.AptosGetTxnsResponse,
|
|
@@ -899,11 +915,11 @@ exports.AptosQueryDefinition = {
|
|
|
899
915
|
},
|
|
900
916
|
};
|
|
901
917
|
exports.EvmQueryDefinition = {
|
|
902
|
-
name:
|
|
903
|
-
fullName:
|
|
918
|
+
name: "EvmQuery",
|
|
919
|
+
fullName: "chainquery.EvmQuery",
|
|
904
920
|
methods: {
|
|
905
921
|
evmSQLQuery: {
|
|
906
|
-
name:
|
|
922
|
+
name: "EvmSQLQuery",
|
|
907
923
|
requestType: exports.EvmSQLQueryRequest,
|
|
908
924
|
requestStream: false,
|
|
909
925
|
responseType: exports.EvmQueryResponse,
|
|
@@ -911,7 +927,7 @@ exports.EvmQueryDefinition = {
|
|
|
911
927
|
options: {},
|
|
912
928
|
},
|
|
913
929
|
evmGetHeader: {
|
|
914
|
-
name:
|
|
930
|
+
name: "EvmGetHeader",
|
|
915
931
|
requestType: exports.EvmGetHeaderRequest,
|
|
916
932
|
requestStream: false,
|
|
917
933
|
responseType: exports.EvmQueryResponse,
|
|
@@ -919,7 +935,7 @@ exports.EvmQueryDefinition = {
|
|
|
919
935
|
options: {},
|
|
920
936
|
},
|
|
921
937
|
evmHintHeaderCache: {
|
|
922
|
-
name:
|
|
938
|
+
name: "EvmHintHeaderCache",
|
|
923
939
|
requestType: exports.EvmGetHeaderRequest,
|
|
924
940
|
requestStream: false,
|
|
925
941
|
responseType: exports.VoidResponse,
|