@sentio/sdk 1.31.6 → 1.32.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/aptos/aptos-processor.d.ts +5 -5
- package/lib/aptos/aptos-processor.js +7 -4
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/cli/cli.js +12 -1
- package/lib/cli/cli.js.map +1 -1
- package/lib/cli/commands/login-server.js +4 -5
- package/lib/cli/commands/login-server.js.map +1 -1
- package/lib/cli/commands/run-login.js +6 -2
- package/lib/cli/commands/run-login.js.map +1 -1
- package/lib/cli/config.d.ts +1 -0
- package/lib/cli/config.js +13 -18
- package/lib/cli/config.js.map +1 -1
- package/lib/cli/upload.js +3 -2
- package/lib/cli/upload.js.map +1 -1
- package/lib/core/base-processor-template.d.ts +6 -5
- package/lib/core/base-processor-template.js +7 -4
- package/lib/core/base-processor-template.js.map +1 -1
- package/lib/core/base-processor.d.ts +6 -6
- package/lib/core/base-processor.js +7 -4
- package/lib/core/base-processor.js.map +1 -1
- package/lib/core/logger.js +1 -1
- package/lib/core/logger.js.map +1 -1
- package/lib/core/solana-processor.js +1 -0
- package/lib/core/solana-processor.js.map +1 -1
- package/lib/gen/chainquery/protos/chainquery.d.ts +106 -0
- package/lib/gen/chainquery/protos/chainquery.js +377 -2
- package/lib/gen/chainquery/protos/chainquery.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +17 -3
- package/lib/gen/processor/protos/processor.js +145 -21
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/service.d.ts +2 -0
- package/lib/service.js +145 -48
- package/lib/service.js.map +1 -1
- package/lib/testing/test-processor-server.js +6 -3
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/utils/chain.d.ts +2 -2
- package/lib/utils/chain.js +6 -4
- package/lib/utils/chain.js.map +1 -1
- package/package.json +1 -1
- package/src/aptos/aptos-processor.ts +22 -7
- package/src/cli/cli.ts +12 -1
- package/src/cli/commands/login-server.ts +4 -5
- package/src/cli/commands/run-login.ts +6 -2
- package/src/cli/config.ts +15 -18
- package/src/cli/upload.ts +5 -2
- package/src/core/base-processor-template.ts +18 -9
- package/src/core/base-processor.ts +18 -9
- package/src/core/logger.ts +1 -1
- package/src/core/solana-processor.ts +1 -0
- package/src/gen/chainquery/protos/chainquery.ts +479 -1
- package/src/gen/processor/protos/processor.ts +167 -19
- package/src/service.ts +180 -49
- package/src/testing/test-processor-server.ts +6 -3
- package/src/utils/chain.ts +8 -6
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AptosQueryDefinition = exports.VoidResponse = exports.AptosRefreshRequest = exports.AptosGetTxnsResponse = exports.QueryExecutionSummary = exports.AptosSQLQueryRequest = exports.AptosGetTxnsByEventRequest = exports.AptosGetTxnsByVersionRequest = exports.AptosGetTxnsByFunctionRequest = void 0;
|
|
6
|
+
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;
|
|
7
7
|
const long_1 = __importDefault(require("long"));
|
|
8
8
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
9
|
function createBaseAptosGetTxnsByFunctionRequest() {
|
|
@@ -406,14 +406,98 @@ exports.AptosSQLQueryRequest = {
|
|
|
406
406
|
return message;
|
|
407
407
|
},
|
|
408
408
|
};
|
|
409
|
+
function createBaseQueryPhaseSummary() {
|
|
410
|
+
return { name: "", timeTookMs: long_1.default.UZERO };
|
|
411
|
+
}
|
|
412
|
+
exports.QueryPhaseSummary = {
|
|
413
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
414
|
+
if (message.name !== "") {
|
|
415
|
+
writer.uint32(10).string(message.name);
|
|
416
|
+
}
|
|
417
|
+
if (!message.timeTookMs.isZero()) {
|
|
418
|
+
writer.uint32(16).uint64(message.timeTookMs);
|
|
419
|
+
}
|
|
420
|
+
return writer;
|
|
421
|
+
},
|
|
422
|
+
decode(input, length) {
|
|
423
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
424
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
425
|
+
const message = createBaseQueryPhaseSummary();
|
|
426
|
+
while (reader.pos < end) {
|
|
427
|
+
const tag = reader.uint32();
|
|
428
|
+
switch (tag >>> 3) {
|
|
429
|
+
case 1:
|
|
430
|
+
message.name = reader.string();
|
|
431
|
+
break;
|
|
432
|
+
case 2:
|
|
433
|
+
message.timeTookMs = reader.uint64();
|
|
434
|
+
break;
|
|
435
|
+
default:
|
|
436
|
+
reader.skipType(tag & 7);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
return message;
|
|
441
|
+
},
|
|
442
|
+
fromJSON(object) {
|
|
443
|
+
return {
|
|
444
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
445
|
+
timeTookMs: isSet(object.timeTookMs)
|
|
446
|
+
? long_1.default.fromValue(object.timeTookMs)
|
|
447
|
+
: long_1.default.UZERO,
|
|
448
|
+
};
|
|
449
|
+
},
|
|
450
|
+
toJSON(message) {
|
|
451
|
+
const obj = {};
|
|
452
|
+
message.name !== undefined && (obj.name = message.name);
|
|
453
|
+
message.timeTookMs !== undefined &&
|
|
454
|
+
(obj.timeTookMs = (message.timeTookMs || long_1.default.UZERO).toString());
|
|
455
|
+
return obj;
|
|
456
|
+
},
|
|
457
|
+
fromPartial(object) {
|
|
458
|
+
const message = createBaseQueryPhaseSummary();
|
|
459
|
+
message.name = object.name ?? "";
|
|
460
|
+
message.timeTookMs =
|
|
461
|
+
object.timeTookMs !== undefined && object.timeTookMs !== null
|
|
462
|
+
? long_1.default.fromValue(object.timeTookMs)
|
|
463
|
+
: long_1.default.UZERO;
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
};
|
|
409
467
|
function createBaseQueryExecutionSummary() {
|
|
410
|
-
return {
|
|
468
|
+
return {
|
|
469
|
+
timeTookMs: long_1.default.UZERO,
|
|
470
|
+
resultNumRows: undefined,
|
|
471
|
+
resultNumBytes: undefined,
|
|
472
|
+
numPartitionsWithMaterializedView: undefined,
|
|
473
|
+
numPartitionsWithoutMaterializedView: undefined,
|
|
474
|
+
numPartitions: undefined,
|
|
475
|
+
phases: [],
|
|
476
|
+
};
|
|
411
477
|
}
|
|
412
478
|
exports.QueryExecutionSummary = {
|
|
413
479
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
414
480
|
if (!message.timeTookMs.isZero()) {
|
|
415
481
|
writer.uint32(8).uint64(message.timeTookMs);
|
|
416
482
|
}
|
|
483
|
+
if (message.resultNumRows !== undefined) {
|
|
484
|
+
writer.uint32(16).uint64(message.resultNumRows);
|
|
485
|
+
}
|
|
486
|
+
if (message.resultNumBytes !== undefined) {
|
|
487
|
+
writer.uint32(24).uint64(message.resultNumBytes);
|
|
488
|
+
}
|
|
489
|
+
if (message.numPartitionsWithMaterializedView !== undefined) {
|
|
490
|
+
writer.uint32(32).uint64(message.numPartitionsWithMaterializedView);
|
|
491
|
+
}
|
|
492
|
+
if (message.numPartitionsWithoutMaterializedView !== undefined) {
|
|
493
|
+
writer.uint32(40).uint64(message.numPartitionsWithoutMaterializedView);
|
|
494
|
+
}
|
|
495
|
+
if (message.numPartitions !== undefined) {
|
|
496
|
+
writer.uint32(48).uint64(message.numPartitions);
|
|
497
|
+
}
|
|
498
|
+
for (const v of message.phases) {
|
|
499
|
+
exports.QueryPhaseSummary.encode(v, writer.uint32(58).fork()).ldelim();
|
|
500
|
+
}
|
|
417
501
|
return writer;
|
|
418
502
|
},
|
|
419
503
|
decode(input, length) {
|
|
@@ -426,6 +510,25 @@ exports.QueryExecutionSummary = {
|
|
|
426
510
|
case 1:
|
|
427
511
|
message.timeTookMs = reader.uint64();
|
|
428
512
|
break;
|
|
513
|
+
case 2:
|
|
514
|
+
message.resultNumRows = reader.uint64();
|
|
515
|
+
break;
|
|
516
|
+
case 3:
|
|
517
|
+
message.resultNumBytes = reader.uint64();
|
|
518
|
+
break;
|
|
519
|
+
case 4:
|
|
520
|
+
message.numPartitionsWithMaterializedView = reader.uint64();
|
|
521
|
+
break;
|
|
522
|
+
case 5:
|
|
523
|
+
message.numPartitionsWithoutMaterializedView =
|
|
524
|
+
reader.uint64();
|
|
525
|
+
break;
|
|
526
|
+
case 6:
|
|
527
|
+
message.numPartitions = reader.uint64();
|
|
528
|
+
break;
|
|
529
|
+
case 7:
|
|
530
|
+
message.phases.push(exports.QueryPhaseSummary.decode(reader, reader.uint32()));
|
|
531
|
+
break;
|
|
429
532
|
default:
|
|
430
533
|
reader.skipType(tag & 7);
|
|
431
534
|
break;
|
|
@@ -438,12 +541,46 @@ exports.QueryExecutionSummary = {
|
|
|
438
541
|
timeTookMs: isSet(object.timeTookMs)
|
|
439
542
|
? long_1.default.fromValue(object.timeTookMs)
|
|
440
543
|
: long_1.default.UZERO,
|
|
544
|
+
resultNumRows: isSet(object.resultNumRows)
|
|
545
|
+
? long_1.default.fromValue(object.resultNumRows)
|
|
546
|
+
: undefined,
|
|
547
|
+
resultNumBytes: isSet(object.resultNumBytes)
|
|
548
|
+
? long_1.default.fromValue(object.resultNumBytes)
|
|
549
|
+
: undefined,
|
|
550
|
+
numPartitionsWithMaterializedView: isSet(object.numPartitionsWithMaterializedView)
|
|
551
|
+
? long_1.default.fromValue(object.numPartitionsWithMaterializedView)
|
|
552
|
+
: undefined,
|
|
553
|
+
numPartitionsWithoutMaterializedView: isSet(object.numPartitionsWithoutMaterializedView)
|
|
554
|
+
? long_1.default.fromValue(object.numPartitionsWithoutMaterializedView)
|
|
555
|
+
: undefined,
|
|
556
|
+
numPartitions: isSet(object.numPartitions)
|
|
557
|
+
? long_1.default.fromValue(object.numPartitions)
|
|
558
|
+
: undefined,
|
|
559
|
+
phases: Array.isArray(object?.phases)
|
|
560
|
+
? object.phases.map((e) => exports.QueryPhaseSummary.fromJSON(e))
|
|
561
|
+
: [],
|
|
441
562
|
};
|
|
442
563
|
},
|
|
443
564
|
toJSON(message) {
|
|
444
565
|
const obj = {};
|
|
445
566
|
message.timeTookMs !== undefined &&
|
|
446
567
|
(obj.timeTookMs = (message.timeTookMs || long_1.default.UZERO).toString());
|
|
568
|
+
message.resultNumRows !== undefined &&
|
|
569
|
+
(obj.resultNumRows = (message.resultNumRows || undefined).toString());
|
|
570
|
+
message.resultNumBytes !== undefined &&
|
|
571
|
+
(obj.resultNumBytes = (message.resultNumBytes || undefined).toString());
|
|
572
|
+
message.numPartitionsWithMaterializedView !== undefined &&
|
|
573
|
+
(obj.numPartitionsWithMaterializedView = (message.numPartitionsWithMaterializedView || undefined).toString());
|
|
574
|
+
message.numPartitionsWithoutMaterializedView !== undefined &&
|
|
575
|
+
(obj.numPartitionsWithoutMaterializedView = (message.numPartitionsWithoutMaterializedView || undefined).toString());
|
|
576
|
+
message.numPartitions !== undefined &&
|
|
577
|
+
(obj.numPartitions = (message.numPartitions || undefined).toString());
|
|
578
|
+
if (message.phases) {
|
|
579
|
+
obj.phases = message.phases.map((e) => e ? exports.QueryPhaseSummary.toJSON(e) : undefined);
|
|
580
|
+
}
|
|
581
|
+
else {
|
|
582
|
+
obj.phases = [];
|
|
583
|
+
}
|
|
447
584
|
return obj;
|
|
448
585
|
},
|
|
449
586
|
fromPartial(object) {
|
|
@@ -452,6 +589,30 @@ exports.QueryExecutionSummary = {
|
|
|
452
589
|
object.timeTookMs !== undefined && object.timeTookMs !== null
|
|
453
590
|
? long_1.default.fromValue(object.timeTookMs)
|
|
454
591
|
: long_1.default.UZERO;
|
|
592
|
+
message.resultNumRows =
|
|
593
|
+
object.resultNumRows !== undefined && object.resultNumRows !== null
|
|
594
|
+
? long_1.default.fromValue(object.resultNumRows)
|
|
595
|
+
: undefined;
|
|
596
|
+
message.resultNumBytes =
|
|
597
|
+
object.resultNumBytes !== undefined && object.resultNumBytes !== null
|
|
598
|
+
? long_1.default.fromValue(object.resultNumBytes)
|
|
599
|
+
: undefined;
|
|
600
|
+
message.numPartitionsWithMaterializedView =
|
|
601
|
+
object.numPartitionsWithMaterializedView !== undefined &&
|
|
602
|
+
object.numPartitionsWithMaterializedView !== null
|
|
603
|
+
? long_1.default.fromValue(object.numPartitionsWithMaterializedView)
|
|
604
|
+
: undefined;
|
|
605
|
+
message.numPartitionsWithoutMaterializedView =
|
|
606
|
+
object.numPartitionsWithoutMaterializedView !== undefined &&
|
|
607
|
+
object.numPartitionsWithoutMaterializedView !== null
|
|
608
|
+
? long_1.default.fromValue(object.numPartitionsWithoutMaterializedView)
|
|
609
|
+
: undefined;
|
|
610
|
+
message.numPartitions =
|
|
611
|
+
object.numPartitions !== undefined && object.numPartitions !== null
|
|
612
|
+
? long_1.default.fromValue(object.numPartitions)
|
|
613
|
+
: undefined;
|
|
614
|
+
message.phases =
|
|
615
|
+
object.phases?.map((e) => exports.QueryPhaseSummary.fromPartial(e)) || [];
|
|
455
616
|
return message;
|
|
456
617
|
},
|
|
457
618
|
};
|
|
@@ -588,6 +749,198 @@ exports.VoidResponse = {
|
|
|
588
749
|
return message;
|
|
589
750
|
},
|
|
590
751
|
};
|
|
752
|
+
function createBaseEvmSQLQueryRequest() {
|
|
753
|
+
return { network: "", sql: "" };
|
|
754
|
+
}
|
|
755
|
+
exports.EvmSQLQueryRequest = {
|
|
756
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
757
|
+
if (message.network !== "") {
|
|
758
|
+
writer.uint32(10).string(message.network);
|
|
759
|
+
}
|
|
760
|
+
if (message.sql !== "") {
|
|
761
|
+
writer.uint32(18).string(message.sql);
|
|
762
|
+
}
|
|
763
|
+
return writer;
|
|
764
|
+
},
|
|
765
|
+
decode(input, length) {
|
|
766
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
767
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
768
|
+
const message = createBaseEvmSQLQueryRequest();
|
|
769
|
+
while (reader.pos < end) {
|
|
770
|
+
const tag = reader.uint32();
|
|
771
|
+
switch (tag >>> 3) {
|
|
772
|
+
case 1:
|
|
773
|
+
message.network = reader.string();
|
|
774
|
+
break;
|
|
775
|
+
case 2:
|
|
776
|
+
message.sql = reader.string();
|
|
777
|
+
break;
|
|
778
|
+
default:
|
|
779
|
+
reader.skipType(tag & 7);
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
return message;
|
|
784
|
+
},
|
|
785
|
+
fromJSON(object) {
|
|
786
|
+
return {
|
|
787
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
788
|
+
sql: isSet(object.sql) ? String(object.sql) : "",
|
|
789
|
+
};
|
|
790
|
+
},
|
|
791
|
+
toJSON(message) {
|
|
792
|
+
const obj = {};
|
|
793
|
+
message.network !== undefined && (obj.network = message.network);
|
|
794
|
+
message.sql !== undefined && (obj.sql = message.sql);
|
|
795
|
+
return obj;
|
|
796
|
+
},
|
|
797
|
+
fromPartial(object) {
|
|
798
|
+
const message = createBaseEvmSQLQueryRequest();
|
|
799
|
+
message.network = object.network ?? "";
|
|
800
|
+
message.sql = object.sql ?? "";
|
|
801
|
+
return message;
|
|
802
|
+
},
|
|
803
|
+
};
|
|
804
|
+
function createBaseEvmGetHeaderRequest() {
|
|
805
|
+
return { network: "", fromBlock: long_1.default.UZERO, toBlock: long_1.default.UZERO };
|
|
806
|
+
}
|
|
807
|
+
exports.EvmGetHeaderRequest = {
|
|
808
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
809
|
+
if (message.network !== "") {
|
|
810
|
+
writer.uint32(10).string(message.network);
|
|
811
|
+
}
|
|
812
|
+
if (!message.fromBlock.isZero()) {
|
|
813
|
+
writer.uint32(16).uint64(message.fromBlock);
|
|
814
|
+
}
|
|
815
|
+
if (!message.toBlock.isZero()) {
|
|
816
|
+
writer.uint32(24).uint64(message.toBlock);
|
|
817
|
+
}
|
|
818
|
+
return writer;
|
|
819
|
+
},
|
|
820
|
+
decode(input, length) {
|
|
821
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
822
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
823
|
+
const message = createBaseEvmGetHeaderRequest();
|
|
824
|
+
while (reader.pos < end) {
|
|
825
|
+
const tag = reader.uint32();
|
|
826
|
+
switch (tag >>> 3) {
|
|
827
|
+
case 1:
|
|
828
|
+
message.network = reader.string();
|
|
829
|
+
break;
|
|
830
|
+
case 2:
|
|
831
|
+
message.fromBlock = reader.uint64();
|
|
832
|
+
break;
|
|
833
|
+
case 3:
|
|
834
|
+
message.toBlock = reader.uint64();
|
|
835
|
+
break;
|
|
836
|
+
default:
|
|
837
|
+
reader.skipType(tag & 7);
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return message;
|
|
842
|
+
},
|
|
843
|
+
fromJSON(object) {
|
|
844
|
+
return {
|
|
845
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
846
|
+
fromBlock: isSet(object.fromBlock)
|
|
847
|
+
? long_1.default.fromValue(object.fromBlock)
|
|
848
|
+
: long_1.default.UZERO,
|
|
849
|
+
toBlock: isSet(object.toBlock)
|
|
850
|
+
? long_1.default.fromValue(object.toBlock)
|
|
851
|
+
: long_1.default.UZERO,
|
|
852
|
+
};
|
|
853
|
+
},
|
|
854
|
+
toJSON(message) {
|
|
855
|
+
const obj = {};
|
|
856
|
+
message.network !== undefined && (obj.network = message.network);
|
|
857
|
+
message.fromBlock !== undefined &&
|
|
858
|
+
(obj.fromBlock = (message.fromBlock || long_1.default.UZERO).toString());
|
|
859
|
+
message.toBlock !== undefined &&
|
|
860
|
+
(obj.toBlock = (message.toBlock || long_1.default.UZERO).toString());
|
|
861
|
+
return obj;
|
|
862
|
+
},
|
|
863
|
+
fromPartial(object) {
|
|
864
|
+
const message = createBaseEvmGetHeaderRequest();
|
|
865
|
+
message.network = object.network ?? "";
|
|
866
|
+
message.fromBlock =
|
|
867
|
+
object.fromBlock !== undefined && object.fromBlock !== null
|
|
868
|
+
? long_1.default.fromValue(object.fromBlock)
|
|
869
|
+
: long_1.default.UZERO;
|
|
870
|
+
message.toBlock =
|
|
871
|
+
object.toBlock !== undefined && object.toBlock !== null
|
|
872
|
+
? long_1.default.fromValue(object.toBlock)
|
|
873
|
+
: long_1.default.UZERO;
|
|
874
|
+
return message;
|
|
875
|
+
},
|
|
876
|
+
};
|
|
877
|
+
function createBaseEvmQueryResponse() {
|
|
878
|
+
return { rows: [], executionSummary: undefined };
|
|
879
|
+
}
|
|
880
|
+
exports.EvmQueryResponse = {
|
|
881
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
882
|
+
for (const v of message.rows) {
|
|
883
|
+
writer.uint32(10).string(v);
|
|
884
|
+
}
|
|
885
|
+
if (message.executionSummary !== undefined) {
|
|
886
|
+
exports.QueryExecutionSummary.encode(message.executionSummary, writer.uint32(18).fork()).ldelim();
|
|
887
|
+
}
|
|
888
|
+
return writer;
|
|
889
|
+
},
|
|
890
|
+
decode(input, length) {
|
|
891
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
892
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
893
|
+
const message = createBaseEvmQueryResponse();
|
|
894
|
+
while (reader.pos < end) {
|
|
895
|
+
const tag = reader.uint32();
|
|
896
|
+
switch (tag >>> 3) {
|
|
897
|
+
case 1:
|
|
898
|
+
message.rows.push(reader.string());
|
|
899
|
+
break;
|
|
900
|
+
case 2:
|
|
901
|
+
message.executionSummary = exports.QueryExecutionSummary.decode(reader, reader.uint32());
|
|
902
|
+
break;
|
|
903
|
+
default:
|
|
904
|
+
reader.skipType(tag & 7);
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
return message;
|
|
909
|
+
},
|
|
910
|
+
fromJSON(object) {
|
|
911
|
+
return {
|
|
912
|
+
rows: Array.isArray(object?.rows)
|
|
913
|
+
? object.rows.map((e) => String(e))
|
|
914
|
+
: [],
|
|
915
|
+
executionSummary: isSet(object.executionSummary)
|
|
916
|
+
? exports.QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
917
|
+
: undefined,
|
|
918
|
+
};
|
|
919
|
+
},
|
|
920
|
+
toJSON(message) {
|
|
921
|
+
const obj = {};
|
|
922
|
+
if (message.rows) {
|
|
923
|
+
obj.rows = message.rows.map((e) => e);
|
|
924
|
+
}
|
|
925
|
+
else {
|
|
926
|
+
obj.rows = [];
|
|
927
|
+
}
|
|
928
|
+
message.executionSummary !== undefined &&
|
|
929
|
+
(obj.executionSummary = message.executionSummary
|
|
930
|
+
? exports.QueryExecutionSummary.toJSON(message.executionSummary)
|
|
931
|
+
: undefined);
|
|
932
|
+
return obj;
|
|
933
|
+
},
|
|
934
|
+
fromPartial(object) {
|
|
935
|
+
const message = createBaseEvmQueryResponse();
|
|
936
|
+
message.rows = object.rows?.map((e) => e) || [];
|
|
937
|
+
message.executionSummary =
|
|
938
|
+
object.executionSummary !== undefined && object.executionSummary !== null
|
|
939
|
+
? exports.QueryExecutionSummary.fromPartial(object.executionSummary)
|
|
940
|
+
: undefined;
|
|
941
|
+
return message;
|
|
942
|
+
},
|
|
943
|
+
};
|
|
591
944
|
exports.AptosQueryDefinition = {
|
|
592
945
|
name: "AptosQuery",
|
|
593
946
|
fullName: "chainquery.AptosQuery",
|
|
@@ -650,6 +1003,28 @@ exports.AptosQueryDefinition = {
|
|
|
650
1003
|
},
|
|
651
1004
|
},
|
|
652
1005
|
};
|
|
1006
|
+
exports.EvmQueryDefinition = {
|
|
1007
|
+
name: "EvmQuery",
|
|
1008
|
+
fullName: "chainquery.EvmQuery",
|
|
1009
|
+
methods: {
|
|
1010
|
+
evmSQLQuery: {
|
|
1011
|
+
name: "EvmSQLQuery",
|
|
1012
|
+
requestType: exports.EvmSQLQueryRequest,
|
|
1013
|
+
requestStream: false,
|
|
1014
|
+
responseType: exports.EvmQueryResponse,
|
|
1015
|
+
responseStream: true,
|
|
1016
|
+
options: {},
|
|
1017
|
+
},
|
|
1018
|
+
evmGetHeader: {
|
|
1019
|
+
name: "EvmGetHeader",
|
|
1020
|
+
requestType: exports.EvmGetHeaderRequest,
|
|
1021
|
+
requestStream: false,
|
|
1022
|
+
responseType: exports.EvmQueryResponse,
|
|
1023
|
+
responseStream: false,
|
|
1024
|
+
options: {},
|
|
1025
|
+
},
|
|
1026
|
+
},
|
|
1027
|
+
};
|
|
653
1028
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
654
1029
|
minimal_1.default.util.Long = long_1.default;
|
|
655
1030
|
minimal_1.default.configure();
|