@sentio/protos 2.13.0-rc.9 → 2.13.0
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 +1 -0
- package/lib/chainquery/protos/chainquery.js +17 -1
- package/lib/chainquery/protos/chainquery.js.map +1 -1
- package/lib/processor/protos/processor.d.ts +1 -0
- package/lib/processor/protos/processor.js +20 -1
- package/lib/processor/protos/processor.js.map +1 -1
- package/package.json +2 -2
- package/src/chainquery/protos/chainquery.ts +18 -1
- package/src/processor/protos/processor.ts +21 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/protos",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.13.0
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"compile": "tsc",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"{lib,src}"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "73d75748a375e4c2bea7badc9db1c973db91d175"
|
|
24
24
|
}
|
|
@@ -25,6 +25,7 @@ export interface AptosGetTxnsByEventRequest {
|
|
|
25
25
|
toVersion: bigint;
|
|
26
26
|
address: string;
|
|
27
27
|
type: string;
|
|
28
|
+
includeAllEvents: boolean;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export interface AptosSQLQueryRequest {
|
|
@@ -292,7 +293,14 @@ export const AptosGetTxnsByVersionRequest = {
|
|
|
292
293
|
};
|
|
293
294
|
|
|
294
295
|
function createBaseAptosGetTxnsByEventRequest(): AptosGetTxnsByEventRequest {
|
|
295
|
-
return {
|
|
296
|
+
return {
|
|
297
|
+
network: "",
|
|
298
|
+
fromVersion: BigInt("0"),
|
|
299
|
+
toVersion: BigInt("0"),
|
|
300
|
+
address: "",
|
|
301
|
+
type: "",
|
|
302
|
+
includeAllEvents: false,
|
|
303
|
+
};
|
|
296
304
|
}
|
|
297
305
|
|
|
298
306
|
export const AptosGetTxnsByEventRequest = {
|
|
@@ -312,6 +320,9 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
312
320
|
if (message.type !== "") {
|
|
313
321
|
writer.uint32(42).string(message.type);
|
|
314
322
|
}
|
|
323
|
+
if (message.includeAllEvents === true) {
|
|
324
|
+
writer.uint32(48).bool(message.includeAllEvents);
|
|
325
|
+
}
|
|
315
326
|
return writer;
|
|
316
327
|
},
|
|
317
328
|
|
|
@@ -337,6 +348,9 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
337
348
|
case 5:
|
|
338
349
|
message.type = reader.string();
|
|
339
350
|
break;
|
|
351
|
+
case 6:
|
|
352
|
+
message.includeAllEvents = reader.bool();
|
|
353
|
+
break;
|
|
340
354
|
default:
|
|
341
355
|
reader.skipType(tag & 7);
|
|
342
356
|
break;
|
|
@@ -352,6 +366,7 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
352
366
|
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
353
367
|
address: isSet(object.address) ? String(object.address) : "",
|
|
354
368
|
type: isSet(object.type) ? String(object.type) : "",
|
|
369
|
+
includeAllEvents: isSet(object.includeAllEvents) ? Boolean(object.includeAllEvents) : false,
|
|
355
370
|
};
|
|
356
371
|
},
|
|
357
372
|
|
|
@@ -362,6 +377,7 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
362
377
|
message.toVersion !== undefined && (obj.toVersion = message.toVersion.toString());
|
|
363
378
|
message.address !== undefined && (obj.address = message.address);
|
|
364
379
|
message.type !== undefined && (obj.type = message.type);
|
|
380
|
+
message.includeAllEvents !== undefined && (obj.includeAllEvents = message.includeAllEvents);
|
|
365
381
|
return obj;
|
|
366
382
|
},
|
|
367
383
|
|
|
@@ -376,6 +392,7 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
376
392
|
message.toVersion = object.toVersion ?? BigInt("0");
|
|
377
393
|
message.address = object.address ?? "";
|
|
378
394
|
message.type = object.type ?? "";
|
|
395
|
+
message.includeAllEvents = object.includeAllEvents ?? false;
|
|
379
396
|
return message;
|
|
380
397
|
},
|
|
381
398
|
};
|
|
@@ -391,6 +391,7 @@ export interface OnIntervalConfig {
|
|
|
391
391
|
minutesInterval?: HandleInterval | undefined;
|
|
392
392
|
slot: number;
|
|
393
393
|
slotInterval?: HandleInterval | undefined;
|
|
394
|
+
fetchConfig: EthFetchConfig | undefined;
|
|
394
395
|
}
|
|
395
396
|
|
|
396
397
|
export interface AptosOnIntervalConfig {
|
|
@@ -1873,7 +1874,14 @@ export const HandleInterval = {
|
|
|
1873
1874
|
};
|
|
1874
1875
|
|
|
1875
1876
|
function createBaseOnIntervalConfig(): OnIntervalConfig {
|
|
1876
|
-
return {
|
|
1877
|
+
return {
|
|
1878
|
+
handlerId: 0,
|
|
1879
|
+
minutes: 0,
|
|
1880
|
+
minutesInterval: undefined,
|
|
1881
|
+
slot: 0,
|
|
1882
|
+
slotInterval: undefined,
|
|
1883
|
+
fetchConfig: undefined,
|
|
1884
|
+
};
|
|
1877
1885
|
}
|
|
1878
1886
|
|
|
1879
1887
|
export const OnIntervalConfig = {
|
|
@@ -1893,6 +1901,9 @@ export const OnIntervalConfig = {
|
|
|
1893
1901
|
if (message.slotInterval !== undefined) {
|
|
1894
1902
|
HandleInterval.encode(message.slotInterval, writer.uint32(42).fork()).ldelim();
|
|
1895
1903
|
}
|
|
1904
|
+
if (message.fetchConfig !== undefined) {
|
|
1905
|
+
EthFetchConfig.encode(message.fetchConfig, writer.uint32(50).fork()).ldelim();
|
|
1906
|
+
}
|
|
1896
1907
|
return writer;
|
|
1897
1908
|
},
|
|
1898
1909
|
|
|
@@ -1918,6 +1929,9 @@ export const OnIntervalConfig = {
|
|
|
1918
1929
|
case 5:
|
|
1919
1930
|
message.slotInterval = HandleInterval.decode(reader, reader.uint32());
|
|
1920
1931
|
break;
|
|
1932
|
+
case 6:
|
|
1933
|
+
message.fetchConfig = EthFetchConfig.decode(reader, reader.uint32());
|
|
1934
|
+
break;
|
|
1921
1935
|
default:
|
|
1922
1936
|
reader.skipType(tag & 7);
|
|
1923
1937
|
break;
|
|
@@ -1933,6 +1947,7 @@ export const OnIntervalConfig = {
|
|
|
1933
1947
|
minutesInterval: isSet(object.minutesInterval) ? HandleInterval.fromJSON(object.minutesInterval) : undefined,
|
|
1934
1948
|
slot: isSet(object.slot) ? Number(object.slot) : 0,
|
|
1935
1949
|
slotInterval: isSet(object.slotInterval) ? HandleInterval.fromJSON(object.slotInterval) : undefined,
|
|
1950
|
+
fetchConfig: isSet(object.fetchConfig) ? EthFetchConfig.fromJSON(object.fetchConfig) : undefined,
|
|
1936
1951
|
};
|
|
1937
1952
|
},
|
|
1938
1953
|
|
|
@@ -1945,6 +1960,8 @@ export const OnIntervalConfig = {
|
|
|
1945
1960
|
message.slot !== undefined && (obj.slot = Math.round(message.slot));
|
|
1946
1961
|
message.slotInterval !== undefined &&
|
|
1947
1962
|
(obj.slotInterval = message.slotInterval ? HandleInterval.toJSON(message.slotInterval) : undefined);
|
|
1963
|
+
message.fetchConfig !== undefined &&
|
|
1964
|
+
(obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
|
|
1948
1965
|
return obj;
|
|
1949
1966
|
},
|
|
1950
1967
|
|
|
@@ -1963,6 +1980,9 @@ export const OnIntervalConfig = {
|
|
|
1963
1980
|
message.slotInterval = (object.slotInterval !== undefined && object.slotInterval !== null)
|
|
1964
1981
|
? HandleInterval.fromPartial(object.slotInterval)
|
|
1965
1982
|
: undefined;
|
|
1983
|
+
message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
|
|
1984
|
+
? EthFetchConfig.fromPartial(object.fetchConfig)
|
|
1985
|
+
: undefined;
|
|
1966
1986
|
return message;
|
|
1967
1987
|
},
|
|
1968
1988
|
};
|