@sentio/protos 2.3.1-rc.1 → 2.3.2-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/chainquery/protos/chainquery.d.ts +49 -0
- package/lib/chainquery/protos/chainquery.js +141 -0
- package/lib/chainquery/protos/chainquery.js.map +1 -1
- package/lib/processor/protos/processor.d.ts +4 -0
- package/lib/processor/protos/processor.js +44 -4
- package/lib/processor/protos/processor.js.map +1 -1
- package/package.json +2 -2
- package/src/chainquery/protos/chainquery.ts +174 -0
- package/src/processor/protos/processor.ts +48 -4
|
@@ -65,6 +65,15 @@ export interface EvmQueryResponse {
|
|
|
65
65
|
rows: Uint8Array[];
|
|
66
66
|
executionSummary?: QueryExecutionSummary | undefined;
|
|
67
67
|
}
|
|
68
|
+
export interface SuiGetCheckpointTimeRequest {
|
|
69
|
+
network: string;
|
|
70
|
+
checkpointSequenceNumber: bigint;
|
|
71
|
+
}
|
|
72
|
+
export interface SuiGetCheckpointTimeResponse {
|
|
73
|
+
checkpointTimestampMs?: bigint | undefined;
|
|
74
|
+
transactionMinTimestampMs?: bigint | undefined;
|
|
75
|
+
transactionMaxTimestampMs?: bigint | undefined;
|
|
76
|
+
}
|
|
68
77
|
export interface RemoteResultRequest {
|
|
69
78
|
token: string;
|
|
70
79
|
position: number;
|
|
@@ -169,6 +178,22 @@ export declare const EvmQueryResponse: {
|
|
|
169
178
|
create(base?: DeepPartial<EvmQueryResponse>): EvmQueryResponse;
|
|
170
179
|
fromPartial(object: DeepPartial<EvmQueryResponse>): EvmQueryResponse;
|
|
171
180
|
};
|
|
181
|
+
export declare const SuiGetCheckpointTimeRequest: {
|
|
182
|
+
encode(message: SuiGetCheckpointTimeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
183
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SuiGetCheckpointTimeRequest;
|
|
184
|
+
fromJSON(object: any): SuiGetCheckpointTimeRequest;
|
|
185
|
+
toJSON(message: SuiGetCheckpointTimeRequest): unknown;
|
|
186
|
+
create(base?: DeepPartial<SuiGetCheckpointTimeRequest>): SuiGetCheckpointTimeRequest;
|
|
187
|
+
fromPartial(object: DeepPartial<SuiGetCheckpointTimeRequest>): SuiGetCheckpointTimeRequest;
|
|
188
|
+
};
|
|
189
|
+
export declare const SuiGetCheckpointTimeResponse: {
|
|
190
|
+
encode(message: SuiGetCheckpointTimeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
191
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SuiGetCheckpointTimeResponse;
|
|
192
|
+
fromJSON(object: any): SuiGetCheckpointTimeResponse;
|
|
193
|
+
toJSON(message: SuiGetCheckpointTimeResponse): unknown;
|
|
194
|
+
create(base?: DeepPartial<SuiGetCheckpointTimeResponse>): SuiGetCheckpointTimeResponse;
|
|
195
|
+
fromPartial(object: DeepPartial<SuiGetCheckpointTimeResponse>): SuiGetCheckpointTimeResponse;
|
|
196
|
+
};
|
|
172
197
|
export declare const RemoteResultRequest: {
|
|
173
198
|
encode(message: RemoteResultRequest, writer?: _m0.Writer): _m0.Writer;
|
|
174
199
|
decode(input: _m0.Reader | Uint8Array, length?: number): RemoteResultRequest;
|
|
@@ -474,13 +499,37 @@ export declare const SuiQueryDefinition: {
|
|
|
474
499
|
readonly responseStream: true;
|
|
475
500
|
readonly options: {};
|
|
476
501
|
};
|
|
502
|
+
readonly getCheckpointTime: {
|
|
503
|
+
readonly name: "GetCheckpointTime";
|
|
504
|
+
readonly requestType: {
|
|
505
|
+
encode(message: SuiGetCheckpointTimeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
506
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SuiGetCheckpointTimeRequest;
|
|
507
|
+
fromJSON(object: any): SuiGetCheckpointTimeRequest;
|
|
508
|
+
toJSON(message: SuiGetCheckpointTimeRequest): unknown;
|
|
509
|
+
create(base?: DeepPartial<SuiGetCheckpointTimeRequest>): SuiGetCheckpointTimeRequest;
|
|
510
|
+
fromPartial(object: DeepPartial<SuiGetCheckpointTimeRequest>): SuiGetCheckpointTimeRequest;
|
|
511
|
+
};
|
|
512
|
+
readonly requestStream: false;
|
|
513
|
+
readonly responseType: {
|
|
514
|
+
encode(message: SuiGetCheckpointTimeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
515
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SuiGetCheckpointTimeResponse;
|
|
516
|
+
fromJSON(object: any): SuiGetCheckpointTimeResponse;
|
|
517
|
+
toJSON(message: SuiGetCheckpointTimeResponse): unknown;
|
|
518
|
+
create(base?: DeepPartial<SuiGetCheckpointTimeResponse>): SuiGetCheckpointTimeResponse;
|
|
519
|
+
fromPartial(object: DeepPartial<SuiGetCheckpointTimeResponse>): SuiGetCheckpointTimeResponse;
|
|
520
|
+
};
|
|
521
|
+
readonly responseStream: false;
|
|
522
|
+
readonly options: {};
|
|
523
|
+
};
|
|
477
524
|
};
|
|
478
525
|
};
|
|
479
526
|
export interface SuiQueryServiceImplementation<CallContextExt = {}> {
|
|
480
527
|
suiSQLQuery(request: EvmSQLQueryRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<EvmQueryResponse>>;
|
|
528
|
+
getCheckpointTime(request: SuiGetCheckpointTimeRequest, context: CallContext & CallContextExt): Promise<DeepPartial<SuiGetCheckpointTimeResponse>>;
|
|
481
529
|
}
|
|
482
530
|
export interface SuiQueryClient<CallOptionsExt = {}> {
|
|
483
531
|
suiSQLQuery(request: DeepPartial<EvmSQLQueryRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<EvmQueryResponse>;
|
|
532
|
+
getCheckpointTime(request: DeepPartial<SuiGetCheckpointTimeRequest>, options?: CallOptions & CallOptionsExt): Promise<SuiGetCheckpointTimeResponse>;
|
|
484
533
|
}
|
|
485
534
|
export type RemoteResultTransferServiceDefinition = typeof RemoteResultTransferServiceDefinition;
|
|
486
535
|
export declare const RemoteResultTransferServiceDefinition: {
|
|
@@ -882,6 +882,139 @@ export const EvmQueryResponse = {
|
|
|
882
882
|
return message;
|
|
883
883
|
},
|
|
884
884
|
};
|
|
885
|
+
function createBaseSuiGetCheckpointTimeRequest() {
|
|
886
|
+
return { network: "", checkpointSequenceNumber: BigInt("0") };
|
|
887
|
+
}
|
|
888
|
+
export const SuiGetCheckpointTimeRequest = {
|
|
889
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
890
|
+
if (message.network !== "") {
|
|
891
|
+
writer.uint32(10).string(message.network);
|
|
892
|
+
}
|
|
893
|
+
if (message.checkpointSequenceNumber !== BigInt("0")) {
|
|
894
|
+
writer.uint32(16).uint64(message.checkpointSequenceNumber.toString());
|
|
895
|
+
}
|
|
896
|
+
return writer;
|
|
897
|
+
},
|
|
898
|
+
decode(input, length) {
|
|
899
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
900
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
901
|
+
const message = createBaseSuiGetCheckpointTimeRequest();
|
|
902
|
+
while (reader.pos < end) {
|
|
903
|
+
const tag = reader.uint32();
|
|
904
|
+
switch (tag >>> 3) {
|
|
905
|
+
case 1:
|
|
906
|
+
message.network = reader.string();
|
|
907
|
+
break;
|
|
908
|
+
case 2:
|
|
909
|
+
message.checkpointSequenceNumber = longToBigint(reader.uint64());
|
|
910
|
+
break;
|
|
911
|
+
default:
|
|
912
|
+
reader.skipType(tag & 7);
|
|
913
|
+
break;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
return message;
|
|
917
|
+
},
|
|
918
|
+
fromJSON(object) {
|
|
919
|
+
return {
|
|
920
|
+
network: isSet(object.network) ? String(object.network) : "",
|
|
921
|
+
checkpointSequenceNumber: isSet(object.checkpointSequenceNumber)
|
|
922
|
+
? BigInt(object.checkpointSequenceNumber)
|
|
923
|
+
: BigInt("0"),
|
|
924
|
+
};
|
|
925
|
+
},
|
|
926
|
+
toJSON(message) {
|
|
927
|
+
const obj = {};
|
|
928
|
+
message.network !== undefined && (obj.network = message.network);
|
|
929
|
+
message.checkpointSequenceNumber !== undefined &&
|
|
930
|
+
(obj.checkpointSequenceNumber = message.checkpointSequenceNumber.toString());
|
|
931
|
+
return obj;
|
|
932
|
+
},
|
|
933
|
+
create(base) {
|
|
934
|
+
return SuiGetCheckpointTimeRequest.fromPartial(base ?? {});
|
|
935
|
+
},
|
|
936
|
+
fromPartial(object) {
|
|
937
|
+
const message = createBaseSuiGetCheckpointTimeRequest();
|
|
938
|
+
message.network = object.network ?? "";
|
|
939
|
+
message.checkpointSequenceNumber = object.checkpointSequenceNumber ?? BigInt("0");
|
|
940
|
+
return message;
|
|
941
|
+
},
|
|
942
|
+
};
|
|
943
|
+
function createBaseSuiGetCheckpointTimeResponse() {
|
|
944
|
+
return {
|
|
945
|
+
checkpointTimestampMs: undefined,
|
|
946
|
+
transactionMinTimestampMs: undefined,
|
|
947
|
+
transactionMaxTimestampMs: undefined,
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
export const SuiGetCheckpointTimeResponse = {
|
|
951
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
952
|
+
if (message.checkpointTimestampMs !== undefined) {
|
|
953
|
+
writer.uint32(8).uint64(message.checkpointTimestampMs.toString());
|
|
954
|
+
}
|
|
955
|
+
if (message.transactionMinTimestampMs !== undefined) {
|
|
956
|
+
writer.uint32(16).uint64(message.transactionMinTimestampMs.toString());
|
|
957
|
+
}
|
|
958
|
+
if (message.transactionMaxTimestampMs !== undefined) {
|
|
959
|
+
writer.uint32(24).uint64(message.transactionMaxTimestampMs.toString());
|
|
960
|
+
}
|
|
961
|
+
return writer;
|
|
962
|
+
},
|
|
963
|
+
decode(input, length) {
|
|
964
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
965
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
966
|
+
const message = createBaseSuiGetCheckpointTimeResponse();
|
|
967
|
+
while (reader.pos < end) {
|
|
968
|
+
const tag = reader.uint32();
|
|
969
|
+
switch (tag >>> 3) {
|
|
970
|
+
case 1:
|
|
971
|
+
message.checkpointTimestampMs = longToBigint(reader.uint64());
|
|
972
|
+
break;
|
|
973
|
+
case 2:
|
|
974
|
+
message.transactionMinTimestampMs = longToBigint(reader.uint64());
|
|
975
|
+
break;
|
|
976
|
+
case 3:
|
|
977
|
+
message.transactionMaxTimestampMs = longToBigint(reader.uint64());
|
|
978
|
+
break;
|
|
979
|
+
default:
|
|
980
|
+
reader.skipType(tag & 7);
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
return message;
|
|
985
|
+
},
|
|
986
|
+
fromJSON(object) {
|
|
987
|
+
return {
|
|
988
|
+
checkpointTimestampMs: isSet(object.checkpointTimestampMs) ? BigInt(object.checkpointTimestampMs) : undefined,
|
|
989
|
+
transactionMinTimestampMs: isSet(object.transactionMinTimestampMs)
|
|
990
|
+
? BigInt(object.transactionMinTimestampMs)
|
|
991
|
+
: undefined,
|
|
992
|
+
transactionMaxTimestampMs: isSet(object.transactionMaxTimestampMs)
|
|
993
|
+
? BigInt(object.transactionMaxTimestampMs)
|
|
994
|
+
: undefined,
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
toJSON(message) {
|
|
998
|
+
const obj = {};
|
|
999
|
+
message.checkpointTimestampMs !== undefined &&
|
|
1000
|
+
(obj.checkpointTimestampMs = message.checkpointTimestampMs.toString());
|
|
1001
|
+
message.transactionMinTimestampMs !== undefined &&
|
|
1002
|
+
(obj.transactionMinTimestampMs = message.transactionMinTimestampMs.toString());
|
|
1003
|
+
message.transactionMaxTimestampMs !== undefined &&
|
|
1004
|
+
(obj.transactionMaxTimestampMs = message.transactionMaxTimestampMs.toString());
|
|
1005
|
+
return obj;
|
|
1006
|
+
},
|
|
1007
|
+
create(base) {
|
|
1008
|
+
return SuiGetCheckpointTimeResponse.fromPartial(base ?? {});
|
|
1009
|
+
},
|
|
1010
|
+
fromPartial(object) {
|
|
1011
|
+
const message = createBaseSuiGetCheckpointTimeResponse();
|
|
1012
|
+
message.checkpointTimestampMs = object.checkpointTimestampMs ?? undefined;
|
|
1013
|
+
message.transactionMinTimestampMs = object.transactionMinTimestampMs ?? undefined;
|
|
1014
|
+
message.transactionMaxTimestampMs = object.transactionMaxTimestampMs ?? undefined;
|
|
1015
|
+
return message;
|
|
1016
|
+
},
|
|
1017
|
+
};
|
|
885
1018
|
function createBaseRemoteResultRequest() {
|
|
886
1019
|
return { token: "", position: 0, keepAlive: false };
|
|
887
1020
|
}
|
|
@@ -1099,6 +1232,14 @@ export const SuiQueryDefinition = {
|
|
|
1099
1232
|
responseStream: true,
|
|
1100
1233
|
options: {},
|
|
1101
1234
|
},
|
|
1235
|
+
getCheckpointTime: {
|
|
1236
|
+
name: "GetCheckpointTime",
|
|
1237
|
+
requestType: SuiGetCheckpointTimeRequest,
|
|
1238
|
+
requestStream: false,
|
|
1239
|
+
responseType: SuiGetCheckpointTimeResponse,
|
|
1240
|
+
responseStream: false,
|
|
1241
|
+
options: {},
|
|
1242
|
+
},
|
|
1102
1243
|
},
|
|
1103
1244
|
};
|
|
1104
1245
|
export const RemoteResultTransferServiceDefinition = {
|