@sentio/sdk 1.34.0 → 1.34.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gen/chainquery/protos/chainquery.d.ts +1 -1
- package/lib/gen/chainquery/protos/chainquery.js +108 -211
- package/lib/gen/chainquery/protos/chainquery.js.map +1 -1
- package/lib/gen/google/protobuf/empty.js.map +1 -1
- package/lib/gen/google/protobuf/timestamp.js +5 -9
- package/lib/gen/google/protobuf/timestamp.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +127 -27
- package/lib/gen/processor/protos/processor.js +789 -701
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/gen/service/price/protos/price.d.ts +4 -4
- package/lib/gen/service/price/protos/price.js +15 -27
- package/lib/gen/service/price/protos/price.js.map +1 -1
- package/lib/release.config.js +2 -2
- package/lib/service.d.ts +6 -2
- package/lib/service.js +27 -19
- package/lib/service.js.map +1 -1
- package/lib/testing/test-processor-server.d.ts +6 -2
- package/lib/testing/test-processor-server.js +15 -5
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/utils/token.d.ts +1 -1
- package/lib/utils/token.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/chainquery/protos/chainquery.ts +171 -379
- package/src/gen/google/protobuf/empty.ts +7 -19
- package/src/gen/google/protobuf/timestamp.ts +11 -31
- package/src/gen/processor/protos/processor.ts +1064 -1286
- package/src/gen/service/price/protos/price.ts +38 -103
- package/src/service.ts +33 -22
- package/src/testing/test-processor-server.ts +18 -9
- package/src/utils/token.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
2
|
import Long from "long";
|
|
3
|
+
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
4
4
|
import _m0 from "protobufjs/minimal";
|
|
5
5
|
|
|
6
6
|
export interface AptosGetTxnsByFunctionRequest {
|
|
@@ -55,9 +55,11 @@ export interface AptosGetTxnsResponse {
|
|
|
55
55
|
executionSummary?: QueryExecutionSummary | undefined;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export interface AptosRefreshRequest {
|
|
58
|
+
export interface AptosRefreshRequest {
|
|
59
|
+
}
|
|
59
60
|
|
|
60
|
-
export interface VoidResponse {
|
|
61
|
+
export interface VoidResponse {
|
|
62
|
+
}
|
|
61
63
|
|
|
62
64
|
export interface EvmSQLQueryRequest {
|
|
63
65
|
network: string;
|
|
@@ -88,10 +90,7 @@ function createBaseAptosGetTxnsByFunctionRequest(): AptosGetTxnsByFunctionReques
|
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
export const AptosGetTxnsByFunctionRequest = {
|
|
91
|
-
encode(
|
|
92
|
-
message: AptosGetTxnsByFunctionRequest,
|
|
93
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
94
|
-
): _m0.Writer {
|
|
93
|
+
encode(message: AptosGetTxnsByFunctionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
95
94
|
if (message.network !== "") {
|
|
96
95
|
writer.uint32(10).string(message.network);
|
|
97
96
|
}
|
|
@@ -113,10 +112,7 @@ export const AptosGetTxnsByFunctionRequest = {
|
|
|
113
112
|
return writer;
|
|
114
113
|
},
|
|
115
114
|
|
|
116
|
-
decode(
|
|
117
|
-
input: _m0.Reader | Uint8Array,
|
|
118
|
-
length?: number
|
|
119
|
-
): AptosGetTxnsByFunctionRequest {
|
|
115
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosGetTxnsByFunctionRequest {
|
|
120
116
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
121
117
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
122
118
|
const message = createBaseAptosGetTxnsByFunctionRequest();
|
|
@@ -152,27 +148,19 @@ export const AptosGetTxnsByFunctionRequest = {
|
|
|
152
148
|
fromJSON(object: any): AptosGetTxnsByFunctionRequest {
|
|
153
149
|
return {
|
|
154
150
|
network: isSet(object.network) ? String(object.network) : "",
|
|
155
|
-
fromVersion: isSet(object.fromVersion)
|
|
156
|
-
|
|
157
|
-
: Long.UZERO,
|
|
158
|
-
toVersion: isSet(object.toVersion)
|
|
159
|
-
? Long.fromValue(object.toVersion)
|
|
160
|
-
: Long.UZERO,
|
|
151
|
+
fromVersion: isSet(object.fromVersion) ? Long.fromValue(object.fromVersion) : Long.UZERO,
|
|
152
|
+
toVersion: isSet(object.toVersion) ? Long.fromValue(object.toVersion) : Long.UZERO,
|
|
161
153
|
function: isSet(object.function) ? String(object.function) : "",
|
|
162
154
|
matchAll: isSet(object.matchAll) ? Boolean(object.matchAll) : false,
|
|
163
|
-
typedArguments: Array.isArray(object?.typedArguments)
|
|
164
|
-
? object.typedArguments.map((e: any) => String(e))
|
|
165
|
-
: [],
|
|
155
|
+
typedArguments: Array.isArray(object?.typedArguments) ? object.typedArguments.map((e: any) => String(e)) : [],
|
|
166
156
|
};
|
|
167
157
|
},
|
|
168
158
|
|
|
169
159
|
toJSON(message: AptosGetTxnsByFunctionRequest): unknown {
|
|
170
160
|
const obj: any = {};
|
|
171
161
|
message.network !== undefined && (obj.network = message.network);
|
|
172
|
-
message.fromVersion !== undefined &&
|
|
173
|
-
|
|
174
|
-
message.toVersion !== undefined &&
|
|
175
|
-
(obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
162
|
+
message.fromVersion !== undefined && (obj.fromVersion = (message.fromVersion || Long.UZERO).toString());
|
|
163
|
+
message.toVersion !== undefined && (obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
176
164
|
message.function !== undefined && (obj.function = message.function);
|
|
177
165
|
message.matchAll !== undefined && (obj.matchAll = message.matchAll);
|
|
178
166
|
if (message.typedArguments) {
|
|
@@ -183,19 +171,15 @@ export const AptosGetTxnsByFunctionRequest = {
|
|
|
183
171
|
return obj;
|
|
184
172
|
},
|
|
185
173
|
|
|
186
|
-
fromPartial(
|
|
187
|
-
object: DeepPartial<AptosGetTxnsByFunctionRequest>
|
|
188
|
-
): AptosGetTxnsByFunctionRequest {
|
|
174
|
+
fromPartial(object: DeepPartial<AptosGetTxnsByFunctionRequest>): AptosGetTxnsByFunctionRequest {
|
|
189
175
|
const message = createBaseAptosGetTxnsByFunctionRequest();
|
|
190
176
|
message.network = object.network ?? "";
|
|
191
|
-
message.fromVersion =
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
? Long.fromValue(object.toVersion)
|
|
198
|
-
: Long.UZERO;
|
|
177
|
+
message.fromVersion = (object.fromVersion !== undefined && object.fromVersion !== null)
|
|
178
|
+
? Long.fromValue(object.fromVersion)
|
|
179
|
+
: Long.UZERO;
|
|
180
|
+
message.toVersion = (object.toVersion !== undefined && object.toVersion !== null)
|
|
181
|
+
? Long.fromValue(object.toVersion)
|
|
182
|
+
: Long.UZERO;
|
|
199
183
|
message.function = object.function ?? "";
|
|
200
184
|
message.matchAll = object.matchAll ?? false;
|
|
201
185
|
message.typedArguments = object.typedArguments?.map((e) => e) || [];
|
|
@@ -204,19 +188,11 @@ export const AptosGetTxnsByFunctionRequest = {
|
|
|
204
188
|
};
|
|
205
189
|
|
|
206
190
|
function createBaseAptosGetTxnsByVersionRequest(): AptosGetTxnsByVersionRequest {
|
|
207
|
-
return {
|
|
208
|
-
network: "",
|
|
209
|
-
fromVersion: Long.UZERO,
|
|
210
|
-
toVersion: Long.UZERO,
|
|
211
|
-
headerOnly: undefined,
|
|
212
|
-
};
|
|
191
|
+
return { network: "", fromVersion: Long.UZERO, toVersion: Long.UZERO, headerOnly: undefined };
|
|
213
192
|
}
|
|
214
193
|
|
|
215
194
|
export const AptosGetTxnsByVersionRequest = {
|
|
216
|
-
encode(
|
|
217
|
-
message: AptosGetTxnsByVersionRequest,
|
|
218
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
219
|
-
): _m0.Writer {
|
|
195
|
+
encode(message: AptosGetTxnsByVersionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
220
196
|
if (message.network !== "") {
|
|
221
197
|
writer.uint32(10).string(message.network);
|
|
222
198
|
}
|
|
@@ -232,10 +208,7 @@ export const AptosGetTxnsByVersionRequest = {
|
|
|
232
208
|
return writer;
|
|
233
209
|
},
|
|
234
210
|
|
|
235
|
-
decode(
|
|
236
|
-
input: _m0.Reader | Uint8Array,
|
|
237
|
-
length?: number
|
|
238
|
-
): AptosGetTxnsByVersionRequest {
|
|
211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosGetTxnsByVersionRequest {
|
|
239
212
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
240
213
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
241
214
|
const message = createBaseAptosGetTxnsByVersionRequest();
|
|
@@ -265,62 +238,41 @@ export const AptosGetTxnsByVersionRequest = {
|
|
|
265
238
|
fromJSON(object: any): AptosGetTxnsByVersionRequest {
|
|
266
239
|
return {
|
|
267
240
|
network: isSet(object.network) ? String(object.network) : "",
|
|
268
|
-
fromVersion: isSet(object.fromVersion)
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
toVersion: isSet(object.toVersion)
|
|
272
|
-
? Long.fromValue(object.toVersion)
|
|
273
|
-
: Long.UZERO,
|
|
274
|
-
headerOnly: isSet(object.headerOnly)
|
|
275
|
-
? Boolean(object.headerOnly)
|
|
276
|
-
: undefined,
|
|
241
|
+
fromVersion: isSet(object.fromVersion) ? Long.fromValue(object.fromVersion) : Long.UZERO,
|
|
242
|
+
toVersion: isSet(object.toVersion) ? Long.fromValue(object.toVersion) : Long.UZERO,
|
|
243
|
+
headerOnly: isSet(object.headerOnly) ? Boolean(object.headerOnly) : undefined,
|
|
277
244
|
};
|
|
278
245
|
},
|
|
279
246
|
|
|
280
247
|
toJSON(message: AptosGetTxnsByVersionRequest): unknown {
|
|
281
248
|
const obj: any = {};
|
|
282
249
|
message.network !== undefined && (obj.network = message.network);
|
|
283
|
-
message.fromVersion !== undefined &&
|
|
284
|
-
|
|
285
|
-
message.toVersion !== undefined &&
|
|
286
|
-
(obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
250
|
+
message.fromVersion !== undefined && (obj.fromVersion = (message.fromVersion || Long.UZERO).toString());
|
|
251
|
+
message.toVersion !== undefined && (obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
287
252
|
message.headerOnly !== undefined && (obj.headerOnly = message.headerOnly);
|
|
288
253
|
return obj;
|
|
289
254
|
},
|
|
290
255
|
|
|
291
|
-
fromPartial(
|
|
292
|
-
object: DeepPartial<AptosGetTxnsByVersionRequest>
|
|
293
|
-
): AptosGetTxnsByVersionRequest {
|
|
256
|
+
fromPartial(object: DeepPartial<AptosGetTxnsByVersionRequest>): AptosGetTxnsByVersionRequest {
|
|
294
257
|
const message = createBaseAptosGetTxnsByVersionRequest();
|
|
295
258
|
message.network = object.network ?? "";
|
|
296
|
-
message.fromVersion =
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
? Long.fromValue(object.toVersion)
|
|
303
|
-
: Long.UZERO;
|
|
259
|
+
message.fromVersion = (object.fromVersion !== undefined && object.fromVersion !== null)
|
|
260
|
+
? Long.fromValue(object.fromVersion)
|
|
261
|
+
: Long.UZERO;
|
|
262
|
+
message.toVersion = (object.toVersion !== undefined && object.toVersion !== null)
|
|
263
|
+
? Long.fromValue(object.toVersion)
|
|
264
|
+
: Long.UZERO;
|
|
304
265
|
message.headerOnly = object.headerOnly ?? undefined;
|
|
305
266
|
return message;
|
|
306
267
|
},
|
|
307
268
|
};
|
|
308
269
|
|
|
309
270
|
function createBaseAptosGetTxnsByEventRequest(): AptosGetTxnsByEventRequest {
|
|
310
|
-
return {
|
|
311
|
-
network: "",
|
|
312
|
-
fromVersion: Long.UZERO,
|
|
313
|
-
toVersion: Long.UZERO,
|
|
314
|
-
address: "",
|
|
315
|
-
type: "",
|
|
316
|
-
};
|
|
271
|
+
return { network: "", fromVersion: Long.UZERO, toVersion: Long.UZERO, address: "", type: "" };
|
|
317
272
|
}
|
|
318
273
|
|
|
319
274
|
export const AptosGetTxnsByEventRequest = {
|
|
320
|
-
encode(
|
|
321
|
-
message: AptosGetTxnsByEventRequest,
|
|
322
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
323
|
-
): _m0.Writer {
|
|
275
|
+
encode(message: AptosGetTxnsByEventRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
324
276
|
if (message.network !== "") {
|
|
325
277
|
writer.uint32(10).string(message.network);
|
|
326
278
|
}
|
|
@@ -339,10 +291,7 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
339
291
|
return writer;
|
|
340
292
|
},
|
|
341
293
|
|
|
342
|
-
decode(
|
|
343
|
-
input: _m0.Reader | Uint8Array,
|
|
344
|
-
length?: number
|
|
345
|
-
): AptosGetTxnsByEventRequest {
|
|
294
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosGetTxnsByEventRequest {
|
|
346
295
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
347
296
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
348
297
|
const message = createBaseAptosGetTxnsByEventRequest();
|
|
@@ -375,12 +324,8 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
375
324
|
fromJSON(object: any): AptosGetTxnsByEventRequest {
|
|
376
325
|
return {
|
|
377
326
|
network: isSet(object.network) ? String(object.network) : "",
|
|
378
|
-
fromVersion: isSet(object.fromVersion)
|
|
379
|
-
|
|
380
|
-
: Long.UZERO,
|
|
381
|
-
toVersion: isSet(object.toVersion)
|
|
382
|
-
? Long.fromValue(object.toVersion)
|
|
383
|
-
: Long.UZERO,
|
|
327
|
+
fromVersion: isSet(object.fromVersion) ? Long.fromValue(object.fromVersion) : Long.UZERO,
|
|
328
|
+
toVersion: isSet(object.toVersion) ? Long.fromValue(object.toVersion) : Long.UZERO,
|
|
384
329
|
address: isSet(object.address) ? String(object.address) : "",
|
|
385
330
|
type: isSet(object.type) ? String(object.type) : "",
|
|
386
331
|
};
|
|
@@ -389,28 +334,22 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
389
334
|
toJSON(message: AptosGetTxnsByEventRequest): unknown {
|
|
390
335
|
const obj: any = {};
|
|
391
336
|
message.network !== undefined && (obj.network = message.network);
|
|
392
|
-
message.fromVersion !== undefined &&
|
|
393
|
-
|
|
394
|
-
message.toVersion !== undefined &&
|
|
395
|
-
(obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
337
|
+
message.fromVersion !== undefined && (obj.fromVersion = (message.fromVersion || Long.UZERO).toString());
|
|
338
|
+
message.toVersion !== undefined && (obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
396
339
|
message.address !== undefined && (obj.address = message.address);
|
|
397
340
|
message.type !== undefined && (obj.type = message.type);
|
|
398
341
|
return obj;
|
|
399
342
|
},
|
|
400
343
|
|
|
401
|
-
fromPartial(
|
|
402
|
-
object: DeepPartial<AptosGetTxnsByEventRequest>
|
|
403
|
-
): AptosGetTxnsByEventRequest {
|
|
344
|
+
fromPartial(object: DeepPartial<AptosGetTxnsByEventRequest>): AptosGetTxnsByEventRequest {
|
|
404
345
|
const message = createBaseAptosGetTxnsByEventRequest();
|
|
405
346
|
message.network = object.network ?? "";
|
|
406
|
-
message.fromVersion =
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
? Long.fromValue(object.toVersion)
|
|
413
|
-
: Long.UZERO;
|
|
347
|
+
message.fromVersion = (object.fromVersion !== undefined && object.fromVersion !== null)
|
|
348
|
+
? Long.fromValue(object.fromVersion)
|
|
349
|
+
: Long.UZERO;
|
|
350
|
+
message.toVersion = (object.toVersion !== undefined && object.toVersion !== null)
|
|
351
|
+
? Long.fromValue(object.toVersion)
|
|
352
|
+
: Long.UZERO;
|
|
414
353
|
message.address = object.address ?? "";
|
|
415
354
|
message.type = object.type ?? "";
|
|
416
355
|
return message;
|
|
@@ -418,20 +357,11 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
418
357
|
};
|
|
419
358
|
|
|
420
359
|
function createBaseAptosSQLQueryRequest(): AptosSQLQueryRequest {
|
|
421
|
-
return {
|
|
422
|
-
network: "",
|
|
423
|
-
fromVersion: Long.UZERO,
|
|
424
|
-
toVersion: Long.UZERO,
|
|
425
|
-
sql: "",
|
|
426
|
-
arbitraryRange: false,
|
|
427
|
-
};
|
|
360
|
+
return { network: "", fromVersion: Long.UZERO, toVersion: Long.UZERO, sql: "", arbitraryRange: false };
|
|
428
361
|
}
|
|
429
362
|
|
|
430
363
|
export const AptosSQLQueryRequest = {
|
|
431
|
-
encode(
|
|
432
|
-
message: AptosSQLQueryRequest,
|
|
433
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
434
|
-
): _m0.Writer {
|
|
364
|
+
encode(message: AptosSQLQueryRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
435
365
|
if (message.network !== "") {
|
|
436
366
|
writer.uint32(10).string(message.network);
|
|
437
367
|
}
|
|
@@ -450,10 +380,7 @@ export const AptosSQLQueryRequest = {
|
|
|
450
380
|
return writer;
|
|
451
381
|
},
|
|
452
382
|
|
|
453
|
-
decode(
|
|
454
|
-
input: _m0.Reader | Uint8Array,
|
|
455
|
-
length?: number
|
|
456
|
-
): AptosSQLQueryRequest {
|
|
383
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosSQLQueryRequest {
|
|
457
384
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
458
385
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
459
386
|
const message = createBaseAptosSQLQueryRequest();
|
|
@@ -486,43 +413,32 @@ export const AptosSQLQueryRequest = {
|
|
|
486
413
|
fromJSON(object: any): AptosSQLQueryRequest {
|
|
487
414
|
return {
|
|
488
415
|
network: isSet(object.network) ? String(object.network) : "",
|
|
489
|
-
fromVersion: isSet(object.fromVersion)
|
|
490
|
-
|
|
491
|
-
: Long.UZERO,
|
|
492
|
-
toVersion: isSet(object.toVersion)
|
|
493
|
-
? Long.fromValue(object.toVersion)
|
|
494
|
-
: Long.UZERO,
|
|
416
|
+
fromVersion: isSet(object.fromVersion) ? Long.fromValue(object.fromVersion) : Long.UZERO,
|
|
417
|
+
toVersion: isSet(object.toVersion) ? Long.fromValue(object.toVersion) : Long.UZERO,
|
|
495
418
|
sql: isSet(object.sql) ? String(object.sql) : "",
|
|
496
|
-
arbitraryRange: isSet(object.arbitraryRange)
|
|
497
|
-
? Boolean(object.arbitraryRange)
|
|
498
|
-
: false,
|
|
419
|
+
arbitraryRange: isSet(object.arbitraryRange) ? Boolean(object.arbitraryRange) : false,
|
|
499
420
|
};
|
|
500
421
|
},
|
|
501
422
|
|
|
502
423
|
toJSON(message: AptosSQLQueryRequest): unknown {
|
|
503
424
|
const obj: any = {};
|
|
504
425
|
message.network !== undefined && (obj.network = message.network);
|
|
505
|
-
message.fromVersion !== undefined &&
|
|
506
|
-
|
|
507
|
-
message.toVersion !== undefined &&
|
|
508
|
-
(obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
426
|
+
message.fromVersion !== undefined && (obj.fromVersion = (message.fromVersion || Long.UZERO).toString());
|
|
427
|
+
message.toVersion !== undefined && (obj.toVersion = (message.toVersion || Long.UZERO).toString());
|
|
509
428
|
message.sql !== undefined && (obj.sql = message.sql);
|
|
510
|
-
message.arbitraryRange !== undefined &&
|
|
511
|
-
(obj.arbitraryRange = message.arbitraryRange);
|
|
429
|
+
message.arbitraryRange !== undefined && (obj.arbitraryRange = message.arbitraryRange);
|
|
512
430
|
return obj;
|
|
513
431
|
},
|
|
514
432
|
|
|
515
433
|
fromPartial(object: DeepPartial<AptosSQLQueryRequest>): AptosSQLQueryRequest {
|
|
516
434
|
const message = createBaseAptosSQLQueryRequest();
|
|
517
435
|
message.network = object.network ?? "";
|
|
518
|
-
message.fromVersion =
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
? Long.fromValue(object.toVersion)
|
|
525
|
-
: Long.UZERO;
|
|
436
|
+
message.fromVersion = (object.fromVersion !== undefined && object.fromVersion !== null)
|
|
437
|
+
? Long.fromValue(object.fromVersion)
|
|
438
|
+
: Long.UZERO;
|
|
439
|
+
message.toVersion = (object.toVersion !== undefined && object.toVersion !== null)
|
|
440
|
+
? Long.fromValue(object.toVersion)
|
|
441
|
+
: Long.UZERO;
|
|
526
442
|
message.sql = object.sql ?? "";
|
|
527
443
|
message.arbitraryRange = object.arbitraryRange ?? false;
|
|
528
444
|
return message;
|
|
@@ -534,10 +450,7 @@ function createBaseQueryPhaseSummary(): QueryPhaseSummary {
|
|
|
534
450
|
}
|
|
535
451
|
|
|
536
452
|
export const QueryPhaseSummary = {
|
|
537
|
-
encode(
|
|
538
|
-
message: QueryPhaseSummary,
|
|
539
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
540
|
-
): _m0.Writer {
|
|
453
|
+
encode(message: QueryPhaseSummary, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
541
454
|
if (message.name !== "") {
|
|
542
455
|
writer.uint32(10).string(message.name);
|
|
543
456
|
}
|
|
@@ -571,27 +484,23 @@ export const QueryPhaseSummary = {
|
|
|
571
484
|
fromJSON(object: any): QueryPhaseSummary {
|
|
572
485
|
return {
|
|
573
486
|
name: isSet(object.name) ? String(object.name) : "",
|
|
574
|
-
timeTookMs: isSet(object.timeTookMs)
|
|
575
|
-
? Long.fromValue(object.timeTookMs)
|
|
576
|
-
: Long.UZERO,
|
|
487
|
+
timeTookMs: isSet(object.timeTookMs) ? Long.fromValue(object.timeTookMs) : Long.UZERO,
|
|
577
488
|
};
|
|
578
489
|
},
|
|
579
490
|
|
|
580
491
|
toJSON(message: QueryPhaseSummary): unknown {
|
|
581
492
|
const obj: any = {};
|
|
582
493
|
message.name !== undefined && (obj.name = message.name);
|
|
583
|
-
message.timeTookMs !== undefined &&
|
|
584
|
-
(obj.timeTookMs = (message.timeTookMs || Long.UZERO).toString());
|
|
494
|
+
message.timeTookMs !== undefined && (obj.timeTookMs = (message.timeTookMs || Long.UZERO).toString());
|
|
585
495
|
return obj;
|
|
586
496
|
},
|
|
587
497
|
|
|
588
498
|
fromPartial(object: DeepPartial<QueryPhaseSummary>): QueryPhaseSummary {
|
|
589
499
|
const message = createBaseQueryPhaseSummary();
|
|
590
500
|
message.name = object.name ?? "";
|
|
591
|
-
message.timeTookMs =
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
: Long.UZERO;
|
|
501
|
+
message.timeTookMs = (object.timeTookMs !== undefined && object.timeTookMs !== null)
|
|
502
|
+
? Long.fromValue(object.timeTookMs)
|
|
503
|
+
: Long.UZERO;
|
|
595
504
|
return message;
|
|
596
505
|
},
|
|
597
506
|
};
|
|
@@ -609,10 +518,7 @@ function createBaseQueryExecutionSummary(): QueryExecutionSummary {
|
|
|
609
518
|
}
|
|
610
519
|
|
|
611
520
|
export const QueryExecutionSummary = {
|
|
612
|
-
encode(
|
|
613
|
-
message: QueryExecutionSummary,
|
|
614
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
615
|
-
): _m0.Writer {
|
|
521
|
+
encode(message: QueryExecutionSummary, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
616
522
|
if (!message.timeTookMs.isZero()) {
|
|
617
523
|
writer.uint32(8).uint64(message.timeTookMs);
|
|
618
524
|
}
|
|
@@ -637,10 +543,7 @@ export const QueryExecutionSummary = {
|
|
|
637
543
|
return writer;
|
|
638
544
|
},
|
|
639
545
|
|
|
640
|
-
decode(
|
|
641
|
-
input: _m0.Reader | Uint8Array,
|
|
642
|
-
length?: number
|
|
643
|
-
): QueryExecutionSummary {
|
|
546
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryExecutionSummary {
|
|
644
547
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
645
548
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
646
549
|
const message = createBaseQueryExecutionSummary();
|
|
@@ -660,16 +563,13 @@ export const QueryExecutionSummary = {
|
|
|
660
563
|
message.numPartitionsWithMaterializedView = reader.uint64() as Long;
|
|
661
564
|
break;
|
|
662
565
|
case 5:
|
|
663
|
-
message.numPartitionsWithoutMaterializedView =
|
|
664
|
-
reader.uint64() as Long;
|
|
566
|
+
message.numPartitionsWithoutMaterializedView = reader.uint64() as Long;
|
|
665
567
|
break;
|
|
666
568
|
case 6:
|
|
667
569
|
message.numPartitions = reader.uint64() as Long;
|
|
668
570
|
break;
|
|
669
571
|
case 7:
|
|
670
|
-
message.phases.push(
|
|
671
|
-
QueryPhaseSummary.decode(reader, reader.uint32())
|
|
672
|
-
);
|
|
572
|
+
message.phases.push(QueryPhaseSummary.decode(reader, reader.uint32()));
|
|
673
573
|
break;
|
|
674
574
|
default:
|
|
675
575
|
reader.skipType(tag & 7);
|
|
@@ -681,94 +581,63 @@ export const QueryExecutionSummary = {
|
|
|
681
581
|
|
|
682
582
|
fromJSON(object: any): QueryExecutionSummary {
|
|
683
583
|
return {
|
|
684
|
-
timeTookMs: isSet(object.timeTookMs)
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
? Long.fromValue(object.resultNumRows)
|
|
689
|
-
: undefined,
|
|
690
|
-
resultNumBytes: isSet(object.resultNumBytes)
|
|
691
|
-
? Long.fromValue(object.resultNumBytes)
|
|
692
|
-
: undefined,
|
|
693
|
-
numPartitionsWithMaterializedView: isSet(
|
|
694
|
-
object.numPartitionsWithMaterializedView
|
|
695
|
-
)
|
|
584
|
+
timeTookMs: isSet(object.timeTookMs) ? Long.fromValue(object.timeTookMs) : Long.UZERO,
|
|
585
|
+
resultNumRows: isSet(object.resultNumRows) ? Long.fromValue(object.resultNumRows) : undefined,
|
|
586
|
+
resultNumBytes: isSet(object.resultNumBytes) ? Long.fromValue(object.resultNumBytes) : undefined,
|
|
587
|
+
numPartitionsWithMaterializedView: isSet(object.numPartitionsWithMaterializedView)
|
|
696
588
|
? Long.fromValue(object.numPartitionsWithMaterializedView)
|
|
697
589
|
: undefined,
|
|
698
|
-
numPartitionsWithoutMaterializedView: isSet(
|
|
699
|
-
object.numPartitionsWithoutMaterializedView
|
|
700
|
-
)
|
|
590
|
+
numPartitionsWithoutMaterializedView: isSet(object.numPartitionsWithoutMaterializedView)
|
|
701
591
|
? Long.fromValue(object.numPartitionsWithoutMaterializedView)
|
|
702
592
|
: undefined,
|
|
703
|
-
numPartitions: isSet(object.numPartitions)
|
|
704
|
-
|
|
705
|
-
: undefined,
|
|
706
|
-
phases: Array.isArray(object?.phases)
|
|
707
|
-
? object.phases.map((e: any) => QueryPhaseSummary.fromJSON(e))
|
|
708
|
-
: [],
|
|
593
|
+
numPartitions: isSet(object.numPartitions) ? Long.fromValue(object.numPartitions) : undefined,
|
|
594
|
+
phases: Array.isArray(object?.phases) ? object.phases.map((e: any) => QueryPhaseSummary.fromJSON(e)) : [],
|
|
709
595
|
};
|
|
710
596
|
},
|
|
711
597
|
|
|
712
598
|
toJSON(message: QueryExecutionSummary): unknown {
|
|
713
599
|
const obj: any = {};
|
|
714
|
-
message.timeTookMs !== undefined &&
|
|
715
|
-
|
|
716
|
-
message.
|
|
717
|
-
(obj.resultNumRows = (message.resultNumRows || undefined).toString());
|
|
718
|
-
message.resultNumBytes !== undefined &&
|
|
719
|
-
(obj.resultNumBytes = (message.resultNumBytes || undefined).toString());
|
|
600
|
+
message.timeTookMs !== undefined && (obj.timeTookMs = (message.timeTookMs || Long.UZERO).toString());
|
|
601
|
+
message.resultNumRows !== undefined && (obj.resultNumRows = (message.resultNumRows || undefined).toString());
|
|
602
|
+
message.resultNumBytes !== undefined && (obj.resultNumBytes = (message.resultNumBytes || undefined).toString());
|
|
720
603
|
message.numPartitionsWithMaterializedView !== undefined &&
|
|
721
|
-
(obj.numPartitionsWithMaterializedView = (
|
|
722
|
-
message.numPartitionsWithMaterializedView || undefined
|
|
723
|
-
).toString());
|
|
604
|
+
(obj.numPartitionsWithMaterializedView = (message.numPartitionsWithMaterializedView || undefined).toString());
|
|
724
605
|
message.numPartitionsWithoutMaterializedView !== undefined &&
|
|
725
|
-
(obj.numPartitionsWithoutMaterializedView = (
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
message.numPartitions !== undefined &&
|
|
729
|
-
(obj.numPartitions = (message.numPartitions || undefined).toString());
|
|
606
|
+
(obj.numPartitionsWithoutMaterializedView = (message.numPartitionsWithoutMaterializedView || undefined)
|
|
607
|
+
.toString());
|
|
608
|
+
message.numPartitions !== undefined && (obj.numPartitions = (message.numPartitions || undefined).toString());
|
|
730
609
|
if (message.phases) {
|
|
731
|
-
obj.phases = message.phases.map((e) =>
|
|
732
|
-
e ? QueryPhaseSummary.toJSON(e) : undefined
|
|
733
|
-
);
|
|
610
|
+
obj.phases = message.phases.map((e) => e ? QueryPhaseSummary.toJSON(e) : undefined);
|
|
734
611
|
} else {
|
|
735
612
|
obj.phases = [];
|
|
736
613
|
}
|
|
737
614
|
return obj;
|
|
738
615
|
},
|
|
739
616
|
|
|
740
|
-
fromPartial(
|
|
741
|
-
object: DeepPartial<QueryExecutionSummary>
|
|
742
|
-
): QueryExecutionSummary {
|
|
617
|
+
fromPartial(object: DeepPartial<QueryExecutionSummary>): QueryExecutionSummary {
|
|
743
618
|
const message = createBaseQueryExecutionSummary();
|
|
744
|
-
message.timeTookMs =
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
object.resultNumBytes !== undefined && object.resultNumBytes !== null
|
|
754
|
-
? Long.fromValue(object.resultNumBytes)
|
|
755
|
-
: undefined;
|
|
619
|
+
message.timeTookMs = (object.timeTookMs !== undefined && object.timeTookMs !== null)
|
|
620
|
+
? Long.fromValue(object.timeTookMs)
|
|
621
|
+
: Long.UZERO;
|
|
622
|
+
message.resultNumRows = (object.resultNumRows !== undefined && object.resultNumRows !== null)
|
|
623
|
+
? Long.fromValue(object.resultNumRows)
|
|
624
|
+
: undefined;
|
|
625
|
+
message.resultNumBytes = (object.resultNumBytes !== undefined && object.resultNumBytes !== null)
|
|
626
|
+
? Long.fromValue(object.resultNumBytes)
|
|
627
|
+
: undefined;
|
|
756
628
|
message.numPartitionsWithMaterializedView =
|
|
757
|
-
object.numPartitionsWithMaterializedView !== undefined &&
|
|
758
|
-
object.numPartitionsWithMaterializedView !== null
|
|
629
|
+
(object.numPartitionsWithMaterializedView !== undefined && object.numPartitionsWithMaterializedView !== null)
|
|
759
630
|
? Long.fromValue(object.numPartitionsWithMaterializedView)
|
|
760
631
|
: undefined;
|
|
761
632
|
message.numPartitionsWithoutMaterializedView =
|
|
762
|
-
object.numPartitionsWithoutMaterializedView !== undefined &&
|
|
763
|
-
|
|
633
|
+
(object.numPartitionsWithoutMaterializedView !== undefined &&
|
|
634
|
+
object.numPartitionsWithoutMaterializedView !== null)
|
|
764
635
|
? Long.fromValue(object.numPartitionsWithoutMaterializedView)
|
|
765
636
|
: undefined;
|
|
766
|
-
message.numPartitions =
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
message.phases =
|
|
771
|
-
object.phases?.map((e) => QueryPhaseSummary.fromPartial(e)) || [];
|
|
637
|
+
message.numPartitions = (object.numPartitions !== undefined && object.numPartitions !== null)
|
|
638
|
+
? Long.fromValue(object.numPartitions)
|
|
639
|
+
: undefined;
|
|
640
|
+
message.phases = object.phases?.map((e) => QueryPhaseSummary.fromPartial(e)) || [];
|
|
772
641
|
return message;
|
|
773
642
|
},
|
|
774
643
|
};
|
|
@@ -778,26 +647,17 @@ function createBaseAptosGetTxnsResponse(): AptosGetTxnsResponse {
|
|
|
778
647
|
}
|
|
779
648
|
|
|
780
649
|
export const AptosGetTxnsResponse = {
|
|
781
|
-
encode(
|
|
782
|
-
message: AptosGetTxnsResponse,
|
|
783
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
784
|
-
): _m0.Writer {
|
|
650
|
+
encode(message: AptosGetTxnsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
785
651
|
for (const v of message.documents) {
|
|
786
652
|
writer.uint32(10).string(v!);
|
|
787
653
|
}
|
|
788
654
|
if (message.executionSummary !== undefined) {
|
|
789
|
-
QueryExecutionSummary.encode(
|
|
790
|
-
message.executionSummary,
|
|
791
|
-
writer.uint32(18).fork()
|
|
792
|
-
).ldelim();
|
|
655
|
+
QueryExecutionSummary.encode(message.executionSummary, writer.uint32(18).fork()).ldelim();
|
|
793
656
|
}
|
|
794
657
|
return writer;
|
|
795
658
|
},
|
|
796
659
|
|
|
797
|
-
decode(
|
|
798
|
-
input: _m0.Reader | Uint8Array,
|
|
799
|
-
length?: number
|
|
800
|
-
): AptosGetTxnsResponse {
|
|
660
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AptosGetTxnsResponse {
|
|
801
661
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
802
662
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
803
663
|
const message = createBaseAptosGetTxnsResponse();
|
|
@@ -808,10 +668,7 @@ export const AptosGetTxnsResponse = {
|
|
|
808
668
|
message.documents.push(reader.string());
|
|
809
669
|
break;
|
|
810
670
|
case 2:
|
|
811
|
-
message.executionSummary = QueryExecutionSummary.decode(
|
|
812
|
-
reader,
|
|
813
|
-
reader.uint32()
|
|
814
|
-
);
|
|
671
|
+
message.executionSummary = QueryExecutionSummary.decode(reader, reader.uint32());
|
|
815
672
|
break;
|
|
816
673
|
default:
|
|
817
674
|
reader.skipType(tag & 7);
|
|
@@ -823,9 +680,7 @@ export const AptosGetTxnsResponse = {
|
|
|
823
680
|
|
|
824
681
|
fromJSON(object: any): AptosGetTxnsResponse {
|
|
825
682
|
return {
|
|
826
|
-
documents: Array.isArray(object?.documents)
|
|
827
|
-
? object.documents.map((e: any) => String(e))
|
|
828
|
-
: [],
|
|
683
|
+
documents: Array.isArray(object?.documents) ? object.documents.map((e: any) => String(e)) : [],
|
|
829
684
|
executionSummary: isSet(object.executionSummary)
|
|
830
685
|
? QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
831
686
|
: undefined,
|
|
@@ -839,20 +694,18 @@ export const AptosGetTxnsResponse = {
|
|
|
839
694
|
} else {
|
|
840
695
|
obj.documents = [];
|
|
841
696
|
}
|
|
842
|
-
message.executionSummary !== undefined &&
|
|
843
|
-
(
|
|
844
|
-
|
|
845
|
-
: undefined);
|
|
697
|
+
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
698
|
+
? QueryExecutionSummary.toJSON(message.executionSummary)
|
|
699
|
+
: undefined);
|
|
846
700
|
return obj;
|
|
847
701
|
},
|
|
848
702
|
|
|
849
703
|
fromPartial(object: DeepPartial<AptosGetTxnsResponse>): AptosGetTxnsResponse {
|
|
850
704
|
const message = createBaseAptosGetTxnsResponse();
|
|
851
705
|
message.documents = object.documents?.map((e) => e) || [];
|
|
852
|
-
message.executionSummary =
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
: undefined;
|
|
706
|
+
message.executionSummary = (object.executionSummary !== undefined && object.executionSummary !== null)
|
|
707
|
+
? QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
708
|
+
: undefined;
|
|
856
709
|
return message;
|
|
857
710
|
},
|
|
858
711
|
};
|
|
@@ -862,10 +715,7 @@ function createBaseAptosRefreshRequest(): AptosRefreshRequest {
|
|
|
862
715
|
}
|
|
863
716
|
|
|
864
717
|
export const AptosRefreshRequest = {
|
|
865
|
-
encode(
|
|
866
|
-
_: AptosRefreshRequest,
|
|
867
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
868
|
-
): _m0.Writer {
|
|
718
|
+
encode(_: AptosRefreshRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
869
719
|
return writer;
|
|
870
720
|
},
|
|
871
721
|
|
|
@@ -904,10 +754,7 @@ function createBaseVoidResponse(): VoidResponse {
|
|
|
904
754
|
}
|
|
905
755
|
|
|
906
756
|
export const VoidResponse = {
|
|
907
|
-
encode(
|
|
908
|
-
_: VoidResponse,
|
|
909
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
910
|
-
): _m0.Writer {
|
|
757
|
+
encode(_: VoidResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
911
758
|
return writer;
|
|
912
759
|
},
|
|
913
760
|
|
|
@@ -946,10 +793,7 @@ function createBaseEvmSQLQueryRequest(): EvmSQLQueryRequest {
|
|
|
946
793
|
}
|
|
947
794
|
|
|
948
795
|
export const EvmSQLQueryRequest = {
|
|
949
|
-
encode(
|
|
950
|
-
message: EvmSQLQueryRequest,
|
|
951
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
952
|
-
): _m0.Writer {
|
|
796
|
+
encode(message: EvmSQLQueryRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
953
797
|
if (message.network !== "") {
|
|
954
798
|
writer.uint32(10).string(message.network);
|
|
955
799
|
}
|
|
@@ -1003,19 +847,11 @@ export const EvmSQLQueryRequest = {
|
|
|
1003
847
|
};
|
|
1004
848
|
|
|
1005
849
|
function createBaseEvmGetHeaderRequest(): EvmGetHeaderRequest {
|
|
1006
|
-
return {
|
|
1007
|
-
network: "",
|
|
1008
|
-
fromBlock: undefined,
|
|
1009
|
-
toBlock: undefined,
|
|
1010
|
-
blockNumbers: [],
|
|
1011
|
-
};
|
|
850
|
+
return { network: "", fromBlock: undefined, toBlock: undefined, blockNumbers: [] };
|
|
1012
851
|
}
|
|
1013
852
|
|
|
1014
853
|
export const EvmGetHeaderRequest = {
|
|
1015
|
-
encode(
|
|
1016
|
-
message: EvmGetHeaderRequest,
|
|
1017
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1018
|
-
): _m0.Writer {
|
|
854
|
+
encode(message: EvmGetHeaderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1019
855
|
if (message.network !== "") {
|
|
1020
856
|
writer.uint32(10).string(message.network);
|
|
1021
857
|
}
|
|
@@ -1070,29 +906,19 @@ export const EvmGetHeaderRequest = {
|
|
|
1070
906
|
fromJSON(object: any): EvmGetHeaderRequest {
|
|
1071
907
|
return {
|
|
1072
908
|
network: isSet(object.network) ? String(object.network) : "",
|
|
1073
|
-
fromBlock: isSet(object.fromBlock)
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
toBlock: isSet(object.toBlock)
|
|
1077
|
-
? Long.fromValue(object.toBlock)
|
|
1078
|
-
: undefined,
|
|
1079
|
-
blockNumbers: Array.isArray(object?.blockNumbers)
|
|
1080
|
-
? object.blockNumbers.map((e: any) => Long.fromValue(e))
|
|
1081
|
-
: [],
|
|
909
|
+
fromBlock: isSet(object.fromBlock) ? Long.fromValue(object.fromBlock) : undefined,
|
|
910
|
+
toBlock: isSet(object.toBlock) ? Long.fromValue(object.toBlock) : undefined,
|
|
911
|
+
blockNumbers: Array.isArray(object?.blockNumbers) ? object.blockNumbers.map((e: any) => Long.fromValue(e)) : [],
|
|
1082
912
|
};
|
|
1083
913
|
},
|
|
1084
914
|
|
|
1085
915
|
toJSON(message: EvmGetHeaderRequest): unknown {
|
|
1086
916
|
const obj: any = {};
|
|
1087
917
|
message.network !== undefined && (obj.network = message.network);
|
|
1088
|
-
message.fromBlock !== undefined &&
|
|
1089
|
-
|
|
1090
|
-
message.toBlock !== undefined &&
|
|
1091
|
-
(obj.toBlock = (message.toBlock || undefined).toString());
|
|
918
|
+
message.fromBlock !== undefined && (obj.fromBlock = (message.fromBlock || undefined).toString());
|
|
919
|
+
message.toBlock !== undefined && (obj.toBlock = (message.toBlock || undefined).toString());
|
|
1092
920
|
if (message.blockNumbers) {
|
|
1093
|
-
obj.blockNumbers = message.blockNumbers.map((e) =>
|
|
1094
|
-
(e || Long.UZERO).toString()
|
|
1095
|
-
);
|
|
921
|
+
obj.blockNumbers = message.blockNumbers.map((e) => (e || Long.UZERO).toString());
|
|
1096
922
|
} else {
|
|
1097
923
|
obj.blockNumbers = [];
|
|
1098
924
|
}
|
|
@@ -1102,16 +928,13 @@ export const EvmGetHeaderRequest = {
|
|
|
1102
928
|
fromPartial(object: DeepPartial<EvmGetHeaderRequest>): EvmGetHeaderRequest {
|
|
1103
929
|
const message = createBaseEvmGetHeaderRequest();
|
|
1104
930
|
message.network = object.network ?? "";
|
|
1105
|
-
message.fromBlock =
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
: undefined;
|
|
1113
|
-
message.blockNumbers =
|
|
1114
|
-
object.blockNumbers?.map((e) => Long.fromValue(e)) || [];
|
|
931
|
+
message.fromBlock = (object.fromBlock !== undefined && object.fromBlock !== null)
|
|
932
|
+
? Long.fromValue(object.fromBlock)
|
|
933
|
+
: undefined;
|
|
934
|
+
message.toBlock = (object.toBlock !== undefined && object.toBlock !== null)
|
|
935
|
+
? Long.fromValue(object.toBlock)
|
|
936
|
+
: undefined;
|
|
937
|
+
message.blockNumbers = object.blockNumbers?.map((e) => Long.fromValue(e)) || [];
|
|
1115
938
|
return message;
|
|
1116
939
|
},
|
|
1117
940
|
};
|
|
@@ -1121,18 +944,12 @@ function createBaseEvmQueryResponse(): EvmQueryResponse {
|
|
|
1121
944
|
}
|
|
1122
945
|
|
|
1123
946
|
export const EvmQueryResponse = {
|
|
1124
|
-
encode(
|
|
1125
|
-
message: EvmQueryResponse,
|
|
1126
|
-
writer: _m0.Writer = _m0.Writer.create()
|
|
1127
|
-
): _m0.Writer {
|
|
947
|
+
encode(message: EvmQueryResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1128
948
|
for (const v of message.rows) {
|
|
1129
949
|
writer.uint32(10).string(v!);
|
|
1130
950
|
}
|
|
1131
951
|
if (message.executionSummary !== undefined) {
|
|
1132
|
-
QueryExecutionSummary.encode(
|
|
1133
|
-
message.executionSummary,
|
|
1134
|
-
writer.uint32(18).fork()
|
|
1135
|
-
).ldelim();
|
|
952
|
+
QueryExecutionSummary.encode(message.executionSummary, writer.uint32(18).fork()).ldelim();
|
|
1136
953
|
}
|
|
1137
954
|
return writer;
|
|
1138
955
|
},
|
|
@@ -1148,10 +965,7 @@ export const EvmQueryResponse = {
|
|
|
1148
965
|
message.rows.push(reader.string());
|
|
1149
966
|
break;
|
|
1150
967
|
case 2:
|
|
1151
|
-
message.executionSummary = QueryExecutionSummary.decode(
|
|
1152
|
-
reader,
|
|
1153
|
-
reader.uint32()
|
|
1154
|
-
);
|
|
968
|
+
message.executionSummary = QueryExecutionSummary.decode(reader, reader.uint32());
|
|
1155
969
|
break;
|
|
1156
970
|
default:
|
|
1157
971
|
reader.skipType(tag & 7);
|
|
@@ -1163,9 +977,7 @@ export const EvmQueryResponse = {
|
|
|
1163
977
|
|
|
1164
978
|
fromJSON(object: any): EvmQueryResponse {
|
|
1165
979
|
return {
|
|
1166
|
-
rows: Array.isArray(object?.rows)
|
|
1167
|
-
? object.rows.map((e: any) => String(e))
|
|
1168
|
-
: [],
|
|
980
|
+
rows: Array.isArray(object?.rows) ? object.rows.map((e: any) => String(e)) : [],
|
|
1169
981
|
executionSummary: isSet(object.executionSummary)
|
|
1170
982
|
? QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
1171
983
|
: undefined,
|
|
@@ -1179,20 +991,18 @@ export const EvmQueryResponse = {
|
|
|
1179
991
|
} else {
|
|
1180
992
|
obj.rows = [];
|
|
1181
993
|
}
|
|
1182
|
-
message.executionSummary !== undefined &&
|
|
1183
|
-
(
|
|
1184
|
-
|
|
1185
|
-
: undefined);
|
|
994
|
+
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
995
|
+
? QueryExecutionSummary.toJSON(message.executionSummary)
|
|
996
|
+
: undefined);
|
|
1186
997
|
return obj;
|
|
1187
998
|
},
|
|
1188
999
|
|
|
1189
1000
|
fromPartial(object: DeepPartial<EvmQueryResponse>): EvmQueryResponse {
|
|
1190
1001
|
const message = createBaseEvmQueryResponse();
|
|
1191
1002
|
message.rows = object.rows?.map((e) => e) || [];
|
|
1192
|
-
message.executionSummary =
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
: undefined;
|
|
1003
|
+
message.executionSummary = (object.executionSummary !== undefined && object.executionSummary !== null)
|
|
1004
|
+
? QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
1005
|
+
: undefined;
|
|
1196
1006
|
return message;
|
|
1197
1007
|
},
|
|
1198
1008
|
};
|
|
@@ -1264,62 +1074,59 @@ export const AptosQueryDefinition = {
|
|
|
1264
1074
|
export interface AptosQueryServiceImplementation<CallContextExt = {}> {
|
|
1265
1075
|
aptosGetTxnsByFunction(
|
|
1266
1076
|
request: AptosGetTxnsByFunctionRequest,
|
|
1267
|
-
context: CallContext & CallContextExt
|
|
1077
|
+
context: CallContext & CallContextExt,
|
|
1268
1078
|
): Promise<DeepPartial<AptosGetTxnsResponse>>;
|
|
1269
1079
|
aptosGetTxnsByFunctionStream(
|
|
1270
1080
|
request: AptosGetTxnsByFunctionRequest,
|
|
1271
|
-
context: CallContext & CallContextExt
|
|
1081
|
+
context: CallContext & CallContextExt,
|
|
1272
1082
|
): ServerStreamingMethodResult<DeepPartial<AptosGetTxnsResponse>>;
|
|
1273
1083
|
aptosGetTxnsByVersion(
|
|
1274
1084
|
request: AptosGetTxnsByVersionRequest,
|
|
1275
|
-
context: CallContext & CallContextExt
|
|
1085
|
+
context: CallContext & CallContextExt,
|
|
1276
1086
|
): Promise<DeepPartial<AptosGetTxnsResponse>>;
|
|
1277
1087
|
aptosGetTxnsByEvent(
|
|
1278
1088
|
request: AptosGetTxnsByEventRequest,
|
|
1279
|
-
context: CallContext & CallContextExt
|
|
1089
|
+
context: CallContext & CallContextExt,
|
|
1280
1090
|
): Promise<DeepPartial<AptosGetTxnsResponse>>;
|
|
1281
1091
|
aptosGetTxnsByEventStream(
|
|
1282
1092
|
request: AptosGetTxnsByEventRequest,
|
|
1283
|
-
context: CallContext & CallContextExt
|
|
1093
|
+
context: CallContext & CallContextExt,
|
|
1284
1094
|
): ServerStreamingMethodResult<DeepPartial<AptosGetTxnsResponse>>;
|
|
1285
|
-
aptosRefresh(
|
|
1286
|
-
request: AptosRefreshRequest,
|
|
1287
|
-
context: CallContext & CallContextExt
|
|
1288
|
-
): Promise<DeepPartial<VoidResponse>>;
|
|
1095
|
+
aptosRefresh(request: AptosRefreshRequest, context: CallContext & CallContextExt): Promise<DeepPartial<VoidResponse>>;
|
|
1289
1096
|
aptosSQLQuery(
|
|
1290
1097
|
request: AptosSQLQueryRequest,
|
|
1291
|
-
context: CallContext & CallContextExt
|
|
1098
|
+
context: CallContext & CallContextExt,
|
|
1292
1099
|
): Promise<DeepPartial<AptosGetTxnsResponse>>;
|
|
1293
1100
|
}
|
|
1294
1101
|
|
|
1295
1102
|
export interface AptosQueryClient<CallOptionsExt = {}> {
|
|
1296
1103
|
aptosGetTxnsByFunction(
|
|
1297
1104
|
request: DeepPartial<AptosGetTxnsByFunctionRequest>,
|
|
1298
|
-
options?: CallOptions & CallOptionsExt
|
|
1105
|
+
options?: CallOptions & CallOptionsExt,
|
|
1299
1106
|
): Promise<AptosGetTxnsResponse>;
|
|
1300
1107
|
aptosGetTxnsByFunctionStream(
|
|
1301
1108
|
request: DeepPartial<AptosGetTxnsByFunctionRequest>,
|
|
1302
|
-
options?: CallOptions & CallOptionsExt
|
|
1109
|
+
options?: CallOptions & CallOptionsExt,
|
|
1303
1110
|
): AsyncIterable<AptosGetTxnsResponse>;
|
|
1304
1111
|
aptosGetTxnsByVersion(
|
|
1305
1112
|
request: DeepPartial<AptosGetTxnsByVersionRequest>,
|
|
1306
|
-
options?: CallOptions & CallOptionsExt
|
|
1113
|
+
options?: CallOptions & CallOptionsExt,
|
|
1307
1114
|
): Promise<AptosGetTxnsResponse>;
|
|
1308
1115
|
aptosGetTxnsByEvent(
|
|
1309
1116
|
request: DeepPartial<AptosGetTxnsByEventRequest>,
|
|
1310
|
-
options?: CallOptions & CallOptionsExt
|
|
1117
|
+
options?: CallOptions & CallOptionsExt,
|
|
1311
1118
|
): Promise<AptosGetTxnsResponse>;
|
|
1312
1119
|
aptosGetTxnsByEventStream(
|
|
1313
1120
|
request: DeepPartial<AptosGetTxnsByEventRequest>,
|
|
1314
|
-
options?: CallOptions & CallOptionsExt
|
|
1121
|
+
options?: CallOptions & CallOptionsExt,
|
|
1315
1122
|
): AsyncIterable<AptosGetTxnsResponse>;
|
|
1316
1123
|
aptosRefresh(
|
|
1317
1124
|
request: DeepPartial<AptosRefreshRequest>,
|
|
1318
|
-
options?: CallOptions & CallOptionsExt
|
|
1125
|
+
options?: CallOptions & CallOptionsExt,
|
|
1319
1126
|
): Promise<VoidResponse>;
|
|
1320
1127
|
aptosSQLQuery(
|
|
1321
1128
|
request: DeepPartial<AptosSQLQueryRequest>,
|
|
1322
|
-
options?: CallOptions & CallOptionsExt
|
|
1129
|
+
options?: CallOptions & CallOptionsExt,
|
|
1323
1130
|
): Promise<AptosGetTxnsResponse>;
|
|
1324
1131
|
}
|
|
1325
1132
|
|
|
@@ -1358,52 +1165,39 @@ export const EvmQueryDefinition = {
|
|
|
1358
1165
|
export interface EvmQueryServiceImplementation<CallContextExt = {}> {
|
|
1359
1166
|
evmSQLQuery(
|
|
1360
1167
|
request: EvmSQLQueryRequest,
|
|
1361
|
-
context: CallContext & CallContextExt
|
|
1168
|
+
context: CallContext & CallContextExt,
|
|
1362
1169
|
): ServerStreamingMethodResult<DeepPartial<EvmQueryResponse>>;
|
|
1363
1170
|
evmGetHeader(
|
|
1364
1171
|
request: EvmGetHeaderRequest,
|
|
1365
|
-
context: CallContext & CallContextExt
|
|
1172
|
+
context: CallContext & CallContextExt,
|
|
1366
1173
|
): Promise<DeepPartial<EvmQueryResponse>>;
|
|
1367
1174
|
evmHintHeaderCache(
|
|
1368
1175
|
request: EvmGetHeaderRequest,
|
|
1369
|
-
context: CallContext & CallContextExt
|
|
1176
|
+
context: CallContext & CallContextExt,
|
|
1370
1177
|
): Promise<DeepPartial<VoidResponse>>;
|
|
1371
1178
|
}
|
|
1372
1179
|
|
|
1373
1180
|
export interface EvmQueryClient<CallOptionsExt = {}> {
|
|
1374
1181
|
evmSQLQuery(
|
|
1375
1182
|
request: DeepPartial<EvmSQLQueryRequest>,
|
|
1376
|
-
options?: CallOptions & CallOptionsExt
|
|
1183
|
+
options?: CallOptions & CallOptionsExt,
|
|
1377
1184
|
): AsyncIterable<EvmQueryResponse>;
|
|
1378
1185
|
evmGetHeader(
|
|
1379
1186
|
request: DeepPartial<EvmGetHeaderRequest>,
|
|
1380
|
-
options?: CallOptions & CallOptionsExt
|
|
1187
|
+
options?: CallOptions & CallOptionsExt,
|
|
1381
1188
|
): Promise<EvmQueryResponse>;
|
|
1382
1189
|
evmHintHeaderCache(
|
|
1383
1190
|
request: DeepPartial<EvmGetHeaderRequest>,
|
|
1384
|
-
options?: CallOptions & CallOptionsExt
|
|
1191
|
+
options?: CallOptions & CallOptionsExt,
|
|
1385
1192
|
): Promise<VoidResponse>;
|
|
1386
1193
|
}
|
|
1387
1194
|
|
|
1388
|
-
type Builtin =
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
| boolean
|
|
1395
|
-
| undefined;
|
|
1396
|
-
|
|
1397
|
-
type DeepPartial<T> = T extends Builtin
|
|
1398
|
-
? T
|
|
1399
|
-
: T extends Long
|
|
1400
|
-
? string | number | Long
|
|
1401
|
-
: T extends Array<infer U>
|
|
1402
|
-
? Array<DeepPartial<U>>
|
|
1403
|
-
: T extends ReadonlyArray<infer U>
|
|
1404
|
-
? ReadonlyArray<DeepPartial<U>>
|
|
1405
|
-
: T extends {}
|
|
1406
|
-
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1195
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1196
|
+
|
|
1197
|
+
type DeepPartial<T> = T extends Builtin ? T
|
|
1198
|
+
: T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
1199
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
1200
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
1407
1201
|
: Partial<T>;
|
|
1408
1202
|
|
|
1409
1203
|
if (_m0.util.Long !== Long) {
|
|
@@ -1415,6 +1209,4 @@ function isSet(value: any): boolean {
|
|
|
1415
1209
|
return value !== null && value !== undefined;
|
|
1416
1210
|
}
|
|
1417
1211
|
|
|
1418
|
-
export type ServerStreamingMethodResult<Response> = {
|
|
1419
|
-
[Symbol.asyncIterator](): AsyncIterator<Response, void>;
|
|
1420
|
-
};
|
|
1212
|
+
export type ServerStreamingMethodResult<Response> = { [Symbol.asyncIterator](): AsyncIterator<Response, void> };
|