@sentio/runtime 2.31.0-rc.1 → 2.31.0-rc.3
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/full-service.d.ts +3 -0
- package/lib/full-service.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +12 -0
- package/lib/gen/processor/protos/processor.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.js +64 -1
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/package.json +3 -3
- package/src/gen/processor/protos/processor.ts +75 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
|
-
"version": "2.31.0-rc.
|
3
|
+
"version": "2.31.0-rc.3",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -30,10 +30,10 @@
|
|
30
30
|
"protobufjs": "^7.2.5",
|
31
31
|
"utility-types": "^3.10.0",
|
32
32
|
"winston": "^3.10.0",
|
33
|
-
"@sentio/protos": "2.31.0-rc.
|
33
|
+
"@sentio/protos": "2.31.0-rc.3"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
36
|
-
"@sentio/sdk": "^2.31.0-rc.
|
36
|
+
"@sentio/sdk": "^2.31.0-rc.3"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/command-line-args": "^5.2.0",
|
@@ -498,10 +498,15 @@ export function eventLogConfig_BasicFieldTypeToJSON(object: EventLogConfig_Basic
|
|
498
498
|
}
|
499
499
|
}
|
500
500
|
|
501
|
+
export interface EventLogConfig_StructFieldType {
|
502
|
+
fields: EventLogConfig_Field[];
|
503
|
+
}
|
504
|
+
|
501
505
|
export interface EventLogConfig_Field {
|
502
506
|
name: string;
|
503
507
|
basicType?: EventLogConfig_BasicFieldType | undefined;
|
504
508
|
coinType?: CoinID | undefined;
|
509
|
+
structType?: EventLogConfig_StructFieldType | undefined;
|
505
510
|
}
|
506
511
|
|
507
512
|
export interface AggregationConfig {
|
@@ -1836,8 +1841,65 @@ export const EventLogConfig = {
|
|
1836
1841
|
},
|
1837
1842
|
};
|
1838
1843
|
|
1844
|
+
function createBaseEventLogConfig_StructFieldType(): EventLogConfig_StructFieldType {
|
1845
|
+
return { fields: [] };
|
1846
|
+
}
|
1847
|
+
|
1848
|
+
export const EventLogConfig_StructFieldType = {
|
1849
|
+
encode(message: EventLogConfig_StructFieldType, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
1850
|
+
for (const v of message.fields) {
|
1851
|
+
EventLogConfig_Field.encode(v!, writer.uint32(18).fork()).ldelim();
|
1852
|
+
}
|
1853
|
+
return writer;
|
1854
|
+
},
|
1855
|
+
|
1856
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EventLogConfig_StructFieldType {
|
1857
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
1858
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1859
|
+
const message = createBaseEventLogConfig_StructFieldType();
|
1860
|
+
while (reader.pos < end) {
|
1861
|
+
const tag = reader.uint32();
|
1862
|
+
switch (tag >>> 3) {
|
1863
|
+
case 2:
|
1864
|
+
message.fields.push(EventLogConfig_Field.decode(reader, reader.uint32()));
|
1865
|
+
break;
|
1866
|
+
default:
|
1867
|
+
reader.skipType(tag & 7);
|
1868
|
+
break;
|
1869
|
+
}
|
1870
|
+
}
|
1871
|
+
return message;
|
1872
|
+
},
|
1873
|
+
|
1874
|
+
fromJSON(object: any): EventLogConfig_StructFieldType {
|
1875
|
+
return {
|
1876
|
+
fields: Array.isArray(object?.fields) ? object.fields.map((e: any) => EventLogConfig_Field.fromJSON(e)) : [],
|
1877
|
+
};
|
1878
|
+
},
|
1879
|
+
|
1880
|
+
toJSON(message: EventLogConfig_StructFieldType): unknown {
|
1881
|
+
const obj: any = {};
|
1882
|
+
if (message.fields) {
|
1883
|
+
obj.fields = message.fields.map((e) => e ? EventLogConfig_Field.toJSON(e) : undefined);
|
1884
|
+
} else {
|
1885
|
+
obj.fields = [];
|
1886
|
+
}
|
1887
|
+
return obj;
|
1888
|
+
},
|
1889
|
+
|
1890
|
+
create(base?: DeepPartial<EventLogConfig_StructFieldType>): EventLogConfig_StructFieldType {
|
1891
|
+
return EventLogConfig_StructFieldType.fromPartial(base ?? {});
|
1892
|
+
},
|
1893
|
+
|
1894
|
+
fromPartial(object: DeepPartial<EventLogConfig_StructFieldType>): EventLogConfig_StructFieldType {
|
1895
|
+
const message = createBaseEventLogConfig_StructFieldType();
|
1896
|
+
message.fields = object.fields?.map((e) => EventLogConfig_Field.fromPartial(e)) || [];
|
1897
|
+
return message;
|
1898
|
+
},
|
1899
|
+
};
|
1900
|
+
|
1839
1901
|
function createBaseEventLogConfig_Field(): EventLogConfig_Field {
|
1840
|
-
return { name: "", basicType: undefined, coinType: undefined };
|
1902
|
+
return { name: "", basicType: undefined, coinType: undefined, structType: undefined };
|
1841
1903
|
}
|
1842
1904
|
|
1843
1905
|
export const EventLogConfig_Field = {
|
@@ -1851,6 +1913,9 @@ export const EventLogConfig_Field = {
|
|
1851
1913
|
if (message.coinType !== undefined) {
|
1852
1914
|
CoinID.encode(message.coinType, writer.uint32(26).fork()).ldelim();
|
1853
1915
|
}
|
1916
|
+
if (message.structType !== undefined) {
|
1917
|
+
EventLogConfig_StructFieldType.encode(message.structType, writer.uint32(34).fork()).ldelim();
|
1918
|
+
}
|
1854
1919
|
return writer;
|
1855
1920
|
},
|
1856
1921
|
|
@@ -1870,6 +1935,9 @@ export const EventLogConfig_Field = {
|
|
1870
1935
|
case 3:
|
1871
1936
|
message.coinType = CoinID.decode(reader, reader.uint32());
|
1872
1937
|
break;
|
1938
|
+
case 4:
|
1939
|
+
message.structType = EventLogConfig_StructFieldType.decode(reader, reader.uint32());
|
1940
|
+
break;
|
1873
1941
|
default:
|
1874
1942
|
reader.skipType(tag & 7);
|
1875
1943
|
break;
|
@@ -1883,6 +1951,7 @@ export const EventLogConfig_Field = {
|
|
1883
1951
|
name: isSet(object.name) ? String(object.name) : "",
|
1884
1952
|
basicType: isSet(object.basicType) ? eventLogConfig_BasicFieldTypeFromJSON(object.basicType) : undefined,
|
1885
1953
|
coinType: isSet(object.coinType) ? CoinID.fromJSON(object.coinType) : undefined,
|
1954
|
+
structType: isSet(object.structType) ? EventLogConfig_StructFieldType.fromJSON(object.structType) : undefined,
|
1886
1955
|
};
|
1887
1956
|
},
|
1888
1957
|
|
@@ -1893,6 +1962,8 @@ export const EventLogConfig_Field = {
|
|
1893
1962
|
? eventLogConfig_BasicFieldTypeToJSON(message.basicType)
|
1894
1963
|
: undefined);
|
1895
1964
|
message.coinType !== undefined && (obj.coinType = message.coinType ? CoinID.toJSON(message.coinType) : undefined);
|
1965
|
+
message.structType !== undefined &&
|
1966
|
+
(obj.structType = message.structType ? EventLogConfig_StructFieldType.toJSON(message.structType) : undefined);
|
1896
1967
|
return obj;
|
1897
1968
|
},
|
1898
1969
|
|
@@ -1907,6 +1978,9 @@ export const EventLogConfig_Field = {
|
|
1907
1978
|
message.coinType = (object.coinType !== undefined && object.coinType !== null)
|
1908
1979
|
? CoinID.fromPartial(object.coinType)
|
1909
1980
|
: undefined;
|
1981
|
+
message.structType = (object.structType !== undefined && object.structType !== null)
|
1982
|
+
? EventLogConfig_StructFieldType.fromPartial(object.structType)
|
1983
|
+
: undefined;
|
1910
1984
|
return message;
|
1911
1985
|
},
|
1912
1986
|
};
|