@sentio/sdk 1.8.0 → 1.8.2
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/base-processor.d.ts +10 -3
- package/lib/base-processor.js +31 -1
- package/lib/base-processor.js.map +1 -1
- package/lib/context.d.ts +15 -11
- package/lib/context.js +21 -13
- package/lib/context.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +56 -21
- package/lib/gen/processor/protos/processor.js +269 -51
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/meter.d.ts +4 -4
- package/lib/meter.js +11 -0
- package/lib/meter.js.map +1 -1
- package/lib/service.d.ts +4 -2
- package/lib/service.js +39 -4
- package/lib/service.js.map +1 -1
- package/lib/solana-processor.d.ts +2 -2
- package/lib/solana-processor.js +1 -0
- package/lib/solana-processor.js.map +1 -1
- package/lib/test/erc20.test.js +9 -11
- package/lib/test/erc20.test.js.map +1 -1
- package/lib/test/metric-utils.d.ts +3 -3
- package/lib/test/metric-utils.js.map +1 -1
- package/lib/trace.d.ts +35 -0
- package/lib/trace.js +22 -0
- package/lib/trace.js.map +1 -0
- package/package.json +1 -1
- package/src/base-processor.ts +40 -3
- package/src/context.ts +23 -14
- package/src/gen/processor/protos/processor.ts +330 -70
- package/src/meter.ts +19 -8
- package/src/service.ts +59 -15
- package/src/solana-processor.ts +3 -2
- package/src/test/erc20.test.ts +9 -11
- package/src/test/metric-utils.ts +3 -3
- package/src/trace.ts +64 -0
|
@@ -61,6 +61,51 @@ export function handlerTypeToJSON(object: HandlerType): string {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
export enum LogLevel {
|
|
65
|
+
DEBUG = 0,
|
|
66
|
+
INFO = 1,
|
|
67
|
+
WARNING = 2,
|
|
68
|
+
ERROR = 3,
|
|
69
|
+
UNRECOGNIZED = -1,
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function logLevelFromJSON(object: any): LogLevel {
|
|
73
|
+
switch (object) {
|
|
74
|
+
case 0:
|
|
75
|
+
case "DEBUG":
|
|
76
|
+
return LogLevel.DEBUG;
|
|
77
|
+
case 1:
|
|
78
|
+
case "INFO":
|
|
79
|
+
return LogLevel.INFO;
|
|
80
|
+
case 2:
|
|
81
|
+
case "WARNING":
|
|
82
|
+
return LogLevel.WARNING;
|
|
83
|
+
case 3:
|
|
84
|
+
case "ERROR":
|
|
85
|
+
return LogLevel.ERROR;
|
|
86
|
+
case -1:
|
|
87
|
+
case "UNRECOGNIZED":
|
|
88
|
+
default:
|
|
89
|
+
return LogLevel.UNRECOGNIZED;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function logLevelToJSON(object: LogLevel): string {
|
|
94
|
+
switch (object) {
|
|
95
|
+
case LogLevel.DEBUG:
|
|
96
|
+
return "DEBUG";
|
|
97
|
+
case LogLevel.INFO:
|
|
98
|
+
return "INFO";
|
|
99
|
+
case LogLevel.WARNING:
|
|
100
|
+
return "WARNING";
|
|
101
|
+
case LogLevel.ERROR:
|
|
102
|
+
return "ERROR";
|
|
103
|
+
case LogLevel.UNRECOGNIZED:
|
|
104
|
+
default:
|
|
105
|
+
return "UNRECOGNIZED";
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
64
109
|
export interface ProjectConfig {
|
|
65
110
|
name: string;
|
|
66
111
|
version: string;
|
|
@@ -78,6 +123,7 @@ export interface ContractConfig {
|
|
|
78
123
|
contract: ContractInfo | undefined;
|
|
79
124
|
blockConfigs: BlockHandlerConfig[];
|
|
80
125
|
logConfigs: LogHandlerConfig[];
|
|
126
|
+
traceConfigs: TraceHandlerConfig[];
|
|
81
127
|
startBlock: Long;
|
|
82
128
|
endBlock: Long;
|
|
83
129
|
instructionConfig: InstructionHandlerConfig | undefined;
|
|
@@ -106,6 +152,11 @@ export interface BlockHandlerConfig {
|
|
|
106
152
|
handlerId: number;
|
|
107
153
|
}
|
|
108
154
|
|
|
155
|
+
export interface TraceHandlerConfig {
|
|
156
|
+
signature: string;
|
|
157
|
+
handlerId: number;
|
|
158
|
+
}
|
|
159
|
+
|
|
109
160
|
export interface LogHandlerConfig {
|
|
110
161
|
filters: LogFilter[];
|
|
111
162
|
handlerId: number;
|
|
@@ -130,20 +181,20 @@ export interface ProcessLogsRequest {
|
|
|
130
181
|
}
|
|
131
182
|
|
|
132
183
|
export interface ProcessLogsResponse {
|
|
133
|
-
result:
|
|
184
|
+
result: ProcessResult | undefined;
|
|
134
185
|
configUpdated: boolean;
|
|
135
186
|
}
|
|
136
187
|
|
|
137
188
|
export interface ProcessTracesRequest {
|
|
138
|
-
|
|
189
|
+
traceBindings: TraceBinding[];
|
|
139
190
|
}
|
|
140
191
|
|
|
141
192
|
export interface ProcessTracesResponse {
|
|
142
|
-
result:
|
|
193
|
+
result: ProcessResult | undefined;
|
|
143
194
|
}
|
|
144
195
|
|
|
145
196
|
export interface ProcessTransactionsRequest {
|
|
146
|
-
transaction:
|
|
197
|
+
transaction: RawTransaction | undefined;
|
|
147
198
|
}
|
|
148
199
|
|
|
149
200
|
export interface ProcessInstructionsRequest {
|
|
@@ -151,11 +202,11 @@ export interface ProcessInstructionsRequest {
|
|
|
151
202
|
}
|
|
152
203
|
|
|
153
204
|
export interface ProcessTransactionsResponse {
|
|
154
|
-
result:
|
|
205
|
+
result: ProcessResult | undefined;
|
|
155
206
|
}
|
|
156
207
|
|
|
157
208
|
export interface ProcessInstructionsResponse {
|
|
158
|
-
result:
|
|
209
|
+
result: ProcessResult | undefined;
|
|
159
210
|
}
|
|
160
211
|
|
|
161
212
|
export interface ProcessBlocksRequest {
|
|
@@ -163,7 +214,7 @@ export interface ProcessBlocksRequest {
|
|
|
163
214
|
}
|
|
164
215
|
|
|
165
216
|
export interface ProcessBlocksResponse {
|
|
166
|
-
result:
|
|
217
|
+
result: ProcessResult | undefined;
|
|
167
218
|
}
|
|
168
219
|
|
|
169
220
|
export interface LogBinding {
|
|
@@ -184,7 +235,7 @@ export interface RawTrace {
|
|
|
184
235
|
raw: Uint8Array;
|
|
185
236
|
}
|
|
186
237
|
|
|
187
|
-
export interface
|
|
238
|
+
export interface RawTransaction {
|
|
188
239
|
txHash: string;
|
|
189
240
|
raw: Uint8Array;
|
|
190
241
|
programAccountId: string;
|
|
@@ -206,9 +257,10 @@ export interface RawBlock {
|
|
|
206
257
|
raw: Uint8Array;
|
|
207
258
|
}
|
|
208
259
|
|
|
209
|
-
export interface
|
|
260
|
+
export interface ProcessResult {
|
|
210
261
|
gauges: GaugeResult[];
|
|
211
262
|
counters: CounterResult[];
|
|
263
|
+
logs: LogResult[];
|
|
212
264
|
}
|
|
213
265
|
|
|
214
266
|
export interface RecordMetaData {
|
|
@@ -254,6 +306,13 @@ export interface CounterResult {
|
|
|
254
306
|
runtimeInfo: RuntimeInfo | undefined;
|
|
255
307
|
}
|
|
256
308
|
|
|
309
|
+
export interface LogResult {
|
|
310
|
+
metadata: RecordMetaData | undefined;
|
|
311
|
+
level: LogLevel;
|
|
312
|
+
message: string;
|
|
313
|
+
runtimeInfo: RuntimeInfo | undefined;
|
|
314
|
+
}
|
|
315
|
+
|
|
257
316
|
function createBaseProjectConfig(): ProjectConfig {
|
|
258
317
|
return { name: "", version: "" };
|
|
259
318
|
}
|
|
@@ -471,6 +530,7 @@ function createBaseContractConfig(): ContractConfig {
|
|
|
471
530
|
contract: undefined,
|
|
472
531
|
blockConfigs: [],
|
|
473
532
|
logConfigs: [],
|
|
533
|
+
traceConfigs: [],
|
|
474
534
|
startBlock: Long.UZERO,
|
|
475
535
|
endBlock: Long.UZERO,
|
|
476
536
|
instructionConfig: undefined,
|
|
@@ -492,6 +552,9 @@ export const ContractConfig = {
|
|
|
492
552
|
for (const v of message.logConfigs) {
|
|
493
553
|
LogHandlerConfig.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
494
554
|
}
|
|
555
|
+
for (const v of message.traceConfigs) {
|
|
556
|
+
TraceHandlerConfig.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
557
|
+
}
|
|
495
558
|
if (!message.startBlock.isZero()) {
|
|
496
559
|
writer.uint32(32).uint64(message.startBlock);
|
|
497
560
|
}
|
|
@@ -530,6 +593,11 @@ export const ContractConfig = {
|
|
|
530
593
|
LogHandlerConfig.decode(reader, reader.uint32())
|
|
531
594
|
);
|
|
532
595
|
break;
|
|
596
|
+
case 2:
|
|
597
|
+
message.traceConfigs.push(
|
|
598
|
+
TraceHandlerConfig.decode(reader, reader.uint32())
|
|
599
|
+
);
|
|
600
|
+
break;
|
|
533
601
|
case 4:
|
|
534
602
|
message.startBlock = reader.uint64() as Long;
|
|
535
603
|
break;
|
|
@@ -564,6 +632,9 @@ export const ContractConfig = {
|
|
|
564
632
|
logConfigs: Array.isArray(object?.logConfigs)
|
|
565
633
|
? object.logConfigs.map((e: any) => LogHandlerConfig.fromJSON(e))
|
|
566
634
|
: [],
|
|
635
|
+
traceConfigs: Array.isArray(object?.traceConfigs)
|
|
636
|
+
? object.traceConfigs.map((e: any) => TraceHandlerConfig.fromJSON(e))
|
|
637
|
+
: [],
|
|
567
638
|
startBlock: isSet(object.startBlock)
|
|
568
639
|
? Long.fromValue(object.startBlock)
|
|
569
640
|
: Long.UZERO,
|
|
@@ -599,6 +670,13 @@ export const ContractConfig = {
|
|
|
599
670
|
} else {
|
|
600
671
|
obj.logConfigs = [];
|
|
601
672
|
}
|
|
673
|
+
if (message.traceConfigs) {
|
|
674
|
+
obj.traceConfigs = message.traceConfigs.map((e) =>
|
|
675
|
+
e ? TraceHandlerConfig.toJSON(e) : undefined
|
|
676
|
+
);
|
|
677
|
+
} else {
|
|
678
|
+
obj.traceConfigs = [];
|
|
679
|
+
}
|
|
602
680
|
message.startBlock !== undefined &&
|
|
603
681
|
(obj.startBlock = (message.startBlock || Long.UZERO).toString());
|
|
604
682
|
message.endBlock !== undefined &&
|
|
@@ -622,6 +700,8 @@ export const ContractConfig = {
|
|
|
622
700
|
object.blockConfigs?.map((e) => BlockHandlerConfig.fromPartial(e)) || [];
|
|
623
701
|
message.logConfigs =
|
|
624
702
|
object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
|
|
703
|
+
message.traceConfigs =
|
|
704
|
+
object.traceConfigs?.map((e) => TraceHandlerConfig.fromPartial(e)) || [];
|
|
625
705
|
message.startBlock =
|
|
626
706
|
object.startBlock !== undefined && object.startBlock !== null
|
|
627
707
|
? Long.fromValue(object.startBlock)
|
|
@@ -941,6 +1021,68 @@ export const BlockHandlerConfig = {
|
|
|
941
1021
|
},
|
|
942
1022
|
};
|
|
943
1023
|
|
|
1024
|
+
function createBaseTraceHandlerConfig(): TraceHandlerConfig {
|
|
1025
|
+
return { signature: "", handlerId: 0 };
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export const TraceHandlerConfig = {
|
|
1029
|
+
encode(
|
|
1030
|
+
message: TraceHandlerConfig,
|
|
1031
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
1032
|
+
): _m0.Writer {
|
|
1033
|
+
if (message.signature !== "") {
|
|
1034
|
+
writer.uint32(10).string(message.signature);
|
|
1035
|
+
}
|
|
1036
|
+
if (message.handlerId !== 0) {
|
|
1037
|
+
writer.uint32(16).int32(message.handlerId);
|
|
1038
|
+
}
|
|
1039
|
+
return writer;
|
|
1040
|
+
},
|
|
1041
|
+
|
|
1042
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TraceHandlerConfig {
|
|
1043
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1044
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1045
|
+
const message = createBaseTraceHandlerConfig();
|
|
1046
|
+
while (reader.pos < end) {
|
|
1047
|
+
const tag = reader.uint32();
|
|
1048
|
+
switch (tag >>> 3) {
|
|
1049
|
+
case 1:
|
|
1050
|
+
message.signature = reader.string();
|
|
1051
|
+
break;
|
|
1052
|
+
case 2:
|
|
1053
|
+
message.handlerId = reader.int32();
|
|
1054
|
+
break;
|
|
1055
|
+
default:
|
|
1056
|
+
reader.skipType(tag & 7);
|
|
1057
|
+
break;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
return message;
|
|
1061
|
+
},
|
|
1062
|
+
|
|
1063
|
+
fromJSON(object: any): TraceHandlerConfig {
|
|
1064
|
+
return {
|
|
1065
|
+
signature: isSet(object.signature) ? String(object.signature) : "",
|
|
1066
|
+
handlerId: isSet(object.handlerId) ? Number(object.handlerId) : 0,
|
|
1067
|
+
};
|
|
1068
|
+
},
|
|
1069
|
+
|
|
1070
|
+
toJSON(message: TraceHandlerConfig): unknown {
|
|
1071
|
+
const obj: any = {};
|
|
1072
|
+
message.signature !== undefined && (obj.signature = message.signature);
|
|
1073
|
+
message.handlerId !== undefined &&
|
|
1074
|
+
(obj.handlerId = Math.round(message.handlerId));
|
|
1075
|
+
return obj;
|
|
1076
|
+
},
|
|
1077
|
+
|
|
1078
|
+
fromPartial(object: DeepPartial<TraceHandlerConfig>): TraceHandlerConfig {
|
|
1079
|
+
const message = createBaseTraceHandlerConfig();
|
|
1080
|
+
message.signature = object.signature ?? "";
|
|
1081
|
+
message.handlerId = object.handlerId ?? 0;
|
|
1082
|
+
return message;
|
|
1083
|
+
},
|
|
1084
|
+
};
|
|
1085
|
+
|
|
944
1086
|
function createBaseLogHandlerConfig(): LogHandlerConfig {
|
|
945
1087
|
return { filters: [], handlerId: 0 };
|
|
946
1088
|
}
|
|
@@ -1284,7 +1426,7 @@ export const ProcessLogsResponse = {
|
|
|
1284
1426
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1285
1427
|
): _m0.Writer {
|
|
1286
1428
|
if (message.result !== undefined) {
|
|
1287
|
-
|
|
1429
|
+
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1288
1430
|
}
|
|
1289
1431
|
if (message.configUpdated === true) {
|
|
1290
1432
|
writer.uint32(32).bool(message.configUpdated);
|
|
@@ -1300,7 +1442,7 @@ export const ProcessLogsResponse = {
|
|
|
1300
1442
|
const tag = reader.uint32();
|
|
1301
1443
|
switch (tag >>> 3) {
|
|
1302
1444
|
case 1:
|
|
1303
|
-
message.result =
|
|
1445
|
+
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1304
1446
|
break;
|
|
1305
1447
|
case 4:
|
|
1306
1448
|
message.configUpdated = reader.bool();
|
|
@@ -1316,7 +1458,7 @@ export const ProcessLogsResponse = {
|
|
|
1316
1458
|
fromJSON(object: any): ProcessLogsResponse {
|
|
1317
1459
|
return {
|
|
1318
1460
|
result: isSet(object.result)
|
|
1319
|
-
?
|
|
1461
|
+
? ProcessResult.fromJSON(object.result)
|
|
1320
1462
|
: undefined,
|
|
1321
1463
|
configUpdated: isSet(object.configUpdated)
|
|
1322
1464
|
? Boolean(object.configUpdated)
|
|
@@ -1328,7 +1470,7 @@ export const ProcessLogsResponse = {
|
|
|
1328
1470
|
const obj: any = {};
|
|
1329
1471
|
message.result !== undefined &&
|
|
1330
1472
|
(obj.result = message.result
|
|
1331
|
-
?
|
|
1473
|
+
? ProcessResult.toJSON(message.result)
|
|
1332
1474
|
: undefined);
|
|
1333
1475
|
message.configUpdated !== undefined &&
|
|
1334
1476
|
(obj.configUpdated = message.configUpdated);
|
|
@@ -1339,7 +1481,7 @@ export const ProcessLogsResponse = {
|
|
|
1339
1481
|
const message = createBaseProcessLogsResponse();
|
|
1340
1482
|
message.result =
|
|
1341
1483
|
object.result !== undefined && object.result !== null
|
|
1342
|
-
?
|
|
1484
|
+
? ProcessResult.fromPartial(object.result)
|
|
1343
1485
|
: undefined;
|
|
1344
1486
|
message.configUpdated = object.configUpdated ?? false;
|
|
1345
1487
|
return message;
|
|
@@ -1347,7 +1489,7 @@ export const ProcessLogsResponse = {
|
|
|
1347
1489
|
};
|
|
1348
1490
|
|
|
1349
1491
|
function createBaseProcessTracesRequest(): ProcessTracesRequest {
|
|
1350
|
-
return {
|
|
1492
|
+
return { traceBindings: [] };
|
|
1351
1493
|
}
|
|
1352
1494
|
|
|
1353
1495
|
export const ProcessTracesRequest = {
|
|
@@ -1355,8 +1497,8 @@ export const ProcessTracesRequest = {
|
|
|
1355
1497
|
message: ProcessTracesRequest,
|
|
1356
1498
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1357
1499
|
): _m0.Writer {
|
|
1358
|
-
for (const v of message.
|
|
1359
|
-
|
|
1500
|
+
for (const v of message.traceBindings) {
|
|
1501
|
+
TraceBinding.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1360
1502
|
}
|
|
1361
1503
|
return writer;
|
|
1362
1504
|
},
|
|
@@ -1372,7 +1514,9 @@ export const ProcessTracesRequest = {
|
|
|
1372
1514
|
const tag = reader.uint32();
|
|
1373
1515
|
switch (tag >>> 3) {
|
|
1374
1516
|
case 1:
|
|
1375
|
-
message.
|
|
1517
|
+
message.traceBindings.push(
|
|
1518
|
+
TraceBinding.decode(reader, reader.uint32())
|
|
1519
|
+
);
|
|
1376
1520
|
break;
|
|
1377
1521
|
default:
|
|
1378
1522
|
reader.skipType(tag & 7);
|
|
@@ -1384,28 +1528,28 @@ export const ProcessTracesRequest = {
|
|
|
1384
1528
|
|
|
1385
1529
|
fromJSON(object: any): ProcessTracesRequest {
|
|
1386
1530
|
return {
|
|
1387
|
-
|
|
1388
|
-
? object.
|
|
1531
|
+
traceBindings: Array.isArray(object?.traceBindings)
|
|
1532
|
+
? object.traceBindings.map((e: any) => TraceBinding.fromJSON(e))
|
|
1389
1533
|
: [],
|
|
1390
1534
|
};
|
|
1391
1535
|
},
|
|
1392
1536
|
|
|
1393
1537
|
toJSON(message: ProcessTracesRequest): unknown {
|
|
1394
1538
|
const obj: any = {};
|
|
1395
|
-
if (message.
|
|
1396
|
-
obj.
|
|
1397
|
-
e ?
|
|
1539
|
+
if (message.traceBindings) {
|
|
1540
|
+
obj.traceBindings = message.traceBindings.map((e) =>
|
|
1541
|
+
e ? TraceBinding.toJSON(e) : undefined
|
|
1398
1542
|
);
|
|
1399
1543
|
} else {
|
|
1400
|
-
obj.
|
|
1544
|
+
obj.traceBindings = [];
|
|
1401
1545
|
}
|
|
1402
1546
|
return obj;
|
|
1403
1547
|
},
|
|
1404
1548
|
|
|
1405
1549
|
fromPartial(object: DeepPartial<ProcessTracesRequest>): ProcessTracesRequest {
|
|
1406
1550
|
const message = createBaseProcessTracesRequest();
|
|
1407
|
-
message.
|
|
1408
|
-
object.
|
|
1551
|
+
message.traceBindings =
|
|
1552
|
+
object.traceBindings?.map((e) => TraceBinding.fromPartial(e)) || [];
|
|
1409
1553
|
return message;
|
|
1410
1554
|
},
|
|
1411
1555
|
};
|
|
@@ -1420,7 +1564,7 @@ export const ProcessTracesResponse = {
|
|
|
1420
1564
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1421
1565
|
): _m0.Writer {
|
|
1422
1566
|
if (message.result !== undefined) {
|
|
1423
|
-
|
|
1567
|
+
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1424
1568
|
}
|
|
1425
1569
|
return writer;
|
|
1426
1570
|
},
|
|
@@ -1436,7 +1580,7 @@ export const ProcessTracesResponse = {
|
|
|
1436
1580
|
const tag = reader.uint32();
|
|
1437
1581
|
switch (tag >>> 3) {
|
|
1438
1582
|
case 1:
|
|
1439
|
-
message.result =
|
|
1583
|
+
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1440
1584
|
break;
|
|
1441
1585
|
default:
|
|
1442
1586
|
reader.skipType(tag & 7);
|
|
@@ -1449,7 +1593,7 @@ export const ProcessTracesResponse = {
|
|
|
1449
1593
|
fromJSON(object: any): ProcessTracesResponse {
|
|
1450
1594
|
return {
|
|
1451
1595
|
result: isSet(object.result)
|
|
1452
|
-
?
|
|
1596
|
+
? ProcessResult.fromJSON(object.result)
|
|
1453
1597
|
: undefined,
|
|
1454
1598
|
};
|
|
1455
1599
|
},
|
|
@@ -1458,7 +1602,7 @@ export const ProcessTracesResponse = {
|
|
|
1458
1602
|
const obj: any = {};
|
|
1459
1603
|
message.result !== undefined &&
|
|
1460
1604
|
(obj.result = message.result
|
|
1461
|
-
?
|
|
1605
|
+
? ProcessResult.toJSON(message.result)
|
|
1462
1606
|
: undefined);
|
|
1463
1607
|
return obj;
|
|
1464
1608
|
},
|
|
@@ -1469,7 +1613,7 @@ export const ProcessTracesResponse = {
|
|
|
1469
1613
|
const message = createBaseProcessTracesResponse();
|
|
1470
1614
|
message.result =
|
|
1471
1615
|
object.result !== undefined && object.result !== null
|
|
1472
|
-
?
|
|
1616
|
+
? ProcessResult.fromPartial(object.result)
|
|
1473
1617
|
: undefined;
|
|
1474
1618
|
return message;
|
|
1475
1619
|
},
|
|
@@ -1485,7 +1629,7 @@ export const ProcessTransactionsRequest = {
|
|
|
1485
1629
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1486
1630
|
): _m0.Writer {
|
|
1487
1631
|
if (message.transaction !== undefined) {
|
|
1488
|
-
|
|
1632
|
+
RawTransaction.encode(
|
|
1489
1633
|
message.transaction,
|
|
1490
1634
|
writer.uint32(10).fork()
|
|
1491
1635
|
).ldelim();
|
|
@@ -1504,7 +1648,7 @@ export const ProcessTransactionsRequest = {
|
|
|
1504
1648
|
const tag = reader.uint32();
|
|
1505
1649
|
switch (tag >>> 3) {
|
|
1506
1650
|
case 1:
|
|
1507
|
-
message.transaction =
|
|
1651
|
+
message.transaction = RawTransaction.decode(reader, reader.uint32());
|
|
1508
1652
|
break;
|
|
1509
1653
|
default:
|
|
1510
1654
|
reader.skipType(tag & 7);
|
|
@@ -1517,7 +1661,7 @@ export const ProcessTransactionsRequest = {
|
|
|
1517
1661
|
fromJSON(object: any): ProcessTransactionsRequest {
|
|
1518
1662
|
return {
|
|
1519
1663
|
transaction: isSet(object.transaction)
|
|
1520
|
-
?
|
|
1664
|
+
? RawTransaction.fromJSON(object.transaction)
|
|
1521
1665
|
: undefined,
|
|
1522
1666
|
};
|
|
1523
1667
|
},
|
|
@@ -1526,7 +1670,7 @@ export const ProcessTransactionsRequest = {
|
|
|
1526
1670
|
const obj: any = {};
|
|
1527
1671
|
message.transaction !== undefined &&
|
|
1528
1672
|
(obj.transaction = message.transaction
|
|
1529
|
-
?
|
|
1673
|
+
? RawTransaction.toJSON(message.transaction)
|
|
1530
1674
|
: undefined);
|
|
1531
1675
|
return obj;
|
|
1532
1676
|
},
|
|
@@ -1537,7 +1681,7 @@ export const ProcessTransactionsRequest = {
|
|
|
1537
1681
|
const message = createBaseProcessTransactionsRequest();
|
|
1538
1682
|
message.transaction =
|
|
1539
1683
|
object.transaction !== undefined && object.transaction !== null
|
|
1540
|
-
?
|
|
1684
|
+
? RawTransaction.fromPartial(object.transaction)
|
|
1541
1685
|
: undefined;
|
|
1542
1686
|
return message;
|
|
1543
1687
|
},
|
|
@@ -1621,7 +1765,7 @@ export const ProcessTransactionsResponse = {
|
|
|
1621
1765
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1622
1766
|
): _m0.Writer {
|
|
1623
1767
|
if (message.result !== undefined) {
|
|
1624
|
-
|
|
1768
|
+
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1625
1769
|
}
|
|
1626
1770
|
return writer;
|
|
1627
1771
|
},
|
|
@@ -1637,7 +1781,7 @@ export const ProcessTransactionsResponse = {
|
|
|
1637
1781
|
const tag = reader.uint32();
|
|
1638
1782
|
switch (tag >>> 3) {
|
|
1639
1783
|
case 1:
|
|
1640
|
-
message.result =
|
|
1784
|
+
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1641
1785
|
break;
|
|
1642
1786
|
default:
|
|
1643
1787
|
reader.skipType(tag & 7);
|
|
@@ -1650,7 +1794,7 @@ export const ProcessTransactionsResponse = {
|
|
|
1650
1794
|
fromJSON(object: any): ProcessTransactionsResponse {
|
|
1651
1795
|
return {
|
|
1652
1796
|
result: isSet(object.result)
|
|
1653
|
-
?
|
|
1797
|
+
? ProcessResult.fromJSON(object.result)
|
|
1654
1798
|
: undefined,
|
|
1655
1799
|
};
|
|
1656
1800
|
},
|
|
@@ -1659,7 +1803,7 @@ export const ProcessTransactionsResponse = {
|
|
|
1659
1803
|
const obj: any = {};
|
|
1660
1804
|
message.result !== undefined &&
|
|
1661
1805
|
(obj.result = message.result
|
|
1662
|
-
?
|
|
1806
|
+
? ProcessResult.toJSON(message.result)
|
|
1663
1807
|
: undefined);
|
|
1664
1808
|
return obj;
|
|
1665
1809
|
},
|
|
@@ -1670,7 +1814,7 @@ export const ProcessTransactionsResponse = {
|
|
|
1670
1814
|
const message = createBaseProcessTransactionsResponse();
|
|
1671
1815
|
message.result =
|
|
1672
1816
|
object.result !== undefined && object.result !== null
|
|
1673
|
-
?
|
|
1817
|
+
? ProcessResult.fromPartial(object.result)
|
|
1674
1818
|
: undefined;
|
|
1675
1819
|
return message;
|
|
1676
1820
|
},
|
|
@@ -1686,7 +1830,7 @@ export const ProcessInstructionsResponse = {
|
|
|
1686
1830
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1687
1831
|
): _m0.Writer {
|
|
1688
1832
|
if (message.result !== undefined) {
|
|
1689
|
-
|
|
1833
|
+
ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
|
|
1690
1834
|
}
|
|
1691
1835
|
return writer;
|
|
1692
1836
|
},
|
|
@@ -1702,7 +1846,7 @@ export const ProcessInstructionsResponse = {
|
|
|
1702
1846
|
const tag = reader.uint32();
|
|
1703
1847
|
switch (tag >>> 3) {
|
|
1704
1848
|
case 1:
|
|
1705
|
-
message.result =
|
|
1849
|
+
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1706
1850
|
break;
|
|
1707
1851
|
default:
|
|
1708
1852
|
reader.skipType(tag & 7);
|
|
@@ -1715,7 +1859,7 @@ export const ProcessInstructionsResponse = {
|
|
|
1715
1859
|
fromJSON(object: any): ProcessInstructionsResponse {
|
|
1716
1860
|
return {
|
|
1717
1861
|
result: isSet(object.result)
|
|
1718
|
-
?
|
|
1862
|
+
? ProcessResult.fromJSON(object.result)
|
|
1719
1863
|
: undefined,
|
|
1720
1864
|
};
|
|
1721
1865
|
},
|
|
@@ -1724,7 +1868,7 @@ export const ProcessInstructionsResponse = {
|
|
|
1724
1868
|
const obj: any = {};
|
|
1725
1869
|
message.result !== undefined &&
|
|
1726
1870
|
(obj.result = message.result
|
|
1727
|
-
?
|
|
1871
|
+
? ProcessResult.toJSON(message.result)
|
|
1728
1872
|
: undefined);
|
|
1729
1873
|
return obj;
|
|
1730
1874
|
},
|
|
@@ -1735,7 +1879,7 @@ export const ProcessInstructionsResponse = {
|
|
|
1735
1879
|
const message = createBaseProcessInstructionsResponse();
|
|
1736
1880
|
message.result =
|
|
1737
1881
|
object.result !== undefined && object.result !== null
|
|
1738
|
-
?
|
|
1882
|
+
? ProcessResult.fromPartial(object.result)
|
|
1739
1883
|
: undefined;
|
|
1740
1884
|
return message;
|
|
1741
1885
|
},
|
|
@@ -1817,7 +1961,7 @@ export const ProcessBlocksResponse = {
|
|
|
1817
1961
|
writer: _m0.Writer = _m0.Writer.create()
|
|
1818
1962
|
): _m0.Writer {
|
|
1819
1963
|
if (message.result !== undefined) {
|
|
1820
|
-
|
|
1964
|
+
ProcessResult.encode(message.result, writer.uint32(18).fork()).ldelim();
|
|
1821
1965
|
}
|
|
1822
1966
|
return writer;
|
|
1823
1967
|
},
|
|
@@ -1833,7 +1977,7 @@ export const ProcessBlocksResponse = {
|
|
|
1833
1977
|
const tag = reader.uint32();
|
|
1834
1978
|
switch (tag >>> 3) {
|
|
1835
1979
|
case 2:
|
|
1836
|
-
message.result =
|
|
1980
|
+
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
1837
1981
|
break;
|
|
1838
1982
|
default:
|
|
1839
1983
|
reader.skipType(tag & 7);
|
|
@@ -1846,7 +1990,7 @@ export const ProcessBlocksResponse = {
|
|
|
1846
1990
|
fromJSON(object: any): ProcessBlocksResponse {
|
|
1847
1991
|
return {
|
|
1848
1992
|
result: isSet(object.result)
|
|
1849
|
-
?
|
|
1993
|
+
? ProcessResult.fromJSON(object.result)
|
|
1850
1994
|
: undefined,
|
|
1851
1995
|
};
|
|
1852
1996
|
},
|
|
@@ -1855,7 +1999,7 @@ export const ProcessBlocksResponse = {
|
|
|
1855
1999
|
const obj: any = {};
|
|
1856
2000
|
message.result !== undefined &&
|
|
1857
2001
|
(obj.result = message.result
|
|
1858
|
-
?
|
|
2002
|
+
? ProcessResult.toJSON(message.result)
|
|
1859
2003
|
: undefined);
|
|
1860
2004
|
return obj;
|
|
1861
2005
|
},
|
|
@@ -1866,7 +2010,7 @@ export const ProcessBlocksResponse = {
|
|
|
1866
2010
|
const message = createBaseProcessBlocksResponse();
|
|
1867
2011
|
message.result =
|
|
1868
2012
|
object.result !== undefined && object.result !== null
|
|
1869
|
-
?
|
|
2013
|
+
? ProcessResult.fromPartial(object.result)
|
|
1870
2014
|
: undefined;
|
|
1871
2015
|
return message;
|
|
1872
2016
|
},
|
|
@@ -2114,13 +2258,13 @@ export const RawTrace = {
|
|
|
2114
2258
|
},
|
|
2115
2259
|
};
|
|
2116
2260
|
|
|
2117
|
-
function
|
|
2261
|
+
function createBaseRawTransaction(): RawTransaction {
|
|
2118
2262
|
return { txHash: "", raw: new Uint8Array(), programAccountId: "" };
|
|
2119
2263
|
}
|
|
2120
2264
|
|
|
2121
|
-
export const
|
|
2265
|
+
export const RawTransaction = {
|
|
2122
2266
|
encode(
|
|
2123
|
-
message:
|
|
2267
|
+
message: RawTransaction,
|
|
2124
2268
|
writer: _m0.Writer = _m0.Writer.create()
|
|
2125
2269
|
): _m0.Writer {
|
|
2126
2270
|
if (message.txHash !== "") {
|
|
@@ -2135,10 +2279,10 @@ export const Transaction = {
|
|
|
2135
2279
|
return writer;
|
|
2136
2280
|
},
|
|
2137
2281
|
|
|
2138
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
2282
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RawTransaction {
|
|
2139
2283
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2140
2284
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2141
|
-
const message =
|
|
2285
|
+
const message = createBaseRawTransaction();
|
|
2142
2286
|
while (reader.pos < end) {
|
|
2143
2287
|
const tag = reader.uint32();
|
|
2144
2288
|
switch (tag >>> 3) {
|
|
@@ -2159,7 +2303,7 @@ export const Transaction = {
|
|
|
2159
2303
|
return message;
|
|
2160
2304
|
},
|
|
2161
2305
|
|
|
2162
|
-
fromJSON(object: any):
|
|
2306
|
+
fromJSON(object: any): RawTransaction {
|
|
2163
2307
|
return {
|
|
2164
2308
|
txHash: isSet(object.txHash) ? String(object.txHash) : "",
|
|
2165
2309
|
raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(),
|
|
@@ -2169,7 +2313,7 @@ export const Transaction = {
|
|
|
2169
2313
|
};
|
|
2170
2314
|
},
|
|
2171
2315
|
|
|
2172
|
-
toJSON(message:
|
|
2316
|
+
toJSON(message: RawTransaction): unknown {
|
|
2173
2317
|
const obj: any = {};
|
|
2174
2318
|
message.txHash !== undefined && (obj.txHash = message.txHash);
|
|
2175
2319
|
message.raw !== undefined &&
|
|
@@ -2181,8 +2325,8 @@ export const Transaction = {
|
|
|
2181
2325
|
return obj;
|
|
2182
2326
|
},
|
|
2183
2327
|
|
|
2184
|
-
fromPartial(object: DeepPartial<
|
|
2185
|
-
const message =
|
|
2328
|
+
fromPartial(object: DeepPartial<RawTransaction>): RawTransaction {
|
|
2329
|
+
const message = createBaseRawTransaction();
|
|
2186
2330
|
message.txHash = object.txHash ?? "";
|
|
2187
2331
|
message.raw = object.raw ?? new Uint8Array();
|
|
2188
2332
|
message.programAccountId = object.programAccountId ?? "";
|
|
@@ -2423,13 +2567,13 @@ export const RawBlock = {
|
|
|
2423
2567
|
},
|
|
2424
2568
|
};
|
|
2425
2569
|
|
|
2426
|
-
function
|
|
2427
|
-
return { gauges: [], counters: [] };
|
|
2570
|
+
function createBaseProcessResult(): ProcessResult {
|
|
2571
|
+
return { gauges: [], counters: [], logs: [] };
|
|
2428
2572
|
}
|
|
2429
2573
|
|
|
2430
|
-
export const
|
|
2574
|
+
export const ProcessResult = {
|
|
2431
2575
|
encode(
|
|
2432
|
-
message:
|
|
2576
|
+
message: ProcessResult,
|
|
2433
2577
|
writer: _m0.Writer = _m0.Writer.create()
|
|
2434
2578
|
): _m0.Writer {
|
|
2435
2579
|
for (const v of message.gauges) {
|
|
@@ -2438,13 +2582,16 @@ export const O11yResult = {
|
|
|
2438
2582
|
for (const v of message.counters) {
|
|
2439
2583
|
CounterResult.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
2440
2584
|
}
|
|
2585
|
+
for (const v of message.logs) {
|
|
2586
|
+
LogResult.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
2587
|
+
}
|
|
2441
2588
|
return writer;
|
|
2442
2589
|
},
|
|
2443
2590
|
|
|
2444
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
2591
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessResult {
|
|
2445
2592
|
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2446
2593
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2447
|
-
const message =
|
|
2594
|
+
const message = createBaseProcessResult();
|
|
2448
2595
|
while (reader.pos < end) {
|
|
2449
2596
|
const tag = reader.uint32();
|
|
2450
2597
|
switch (tag >>> 3) {
|
|
@@ -2454,6 +2601,9 @@ export const O11yResult = {
|
|
|
2454
2601
|
case 2:
|
|
2455
2602
|
message.counters.push(CounterResult.decode(reader, reader.uint32()));
|
|
2456
2603
|
break;
|
|
2604
|
+
case 3:
|
|
2605
|
+
message.logs.push(LogResult.decode(reader, reader.uint32()));
|
|
2606
|
+
break;
|
|
2457
2607
|
default:
|
|
2458
2608
|
reader.skipType(tag & 7);
|
|
2459
2609
|
break;
|
|
@@ -2462,7 +2612,7 @@ export const O11yResult = {
|
|
|
2462
2612
|
return message;
|
|
2463
2613
|
},
|
|
2464
2614
|
|
|
2465
|
-
fromJSON(object: any):
|
|
2615
|
+
fromJSON(object: any): ProcessResult {
|
|
2466
2616
|
return {
|
|
2467
2617
|
gauges: Array.isArray(object?.gauges)
|
|
2468
2618
|
? object.gauges.map((e: any) => GaugeResult.fromJSON(e))
|
|
@@ -2470,10 +2620,13 @@ export const O11yResult = {
|
|
|
2470
2620
|
counters: Array.isArray(object?.counters)
|
|
2471
2621
|
? object.counters.map((e: any) => CounterResult.fromJSON(e))
|
|
2472
2622
|
: [],
|
|
2623
|
+
logs: Array.isArray(object?.logs)
|
|
2624
|
+
? object.logs.map((e: any) => LogResult.fromJSON(e))
|
|
2625
|
+
: [],
|
|
2473
2626
|
};
|
|
2474
2627
|
},
|
|
2475
2628
|
|
|
2476
|
-
toJSON(message:
|
|
2629
|
+
toJSON(message: ProcessResult): unknown {
|
|
2477
2630
|
const obj: any = {};
|
|
2478
2631
|
if (message.gauges) {
|
|
2479
2632
|
obj.gauges = message.gauges.map((e) =>
|
|
@@ -2489,15 +2642,21 @@ export const O11yResult = {
|
|
|
2489
2642
|
} else {
|
|
2490
2643
|
obj.counters = [];
|
|
2491
2644
|
}
|
|
2645
|
+
if (message.logs) {
|
|
2646
|
+
obj.logs = message.logs.map((e) => (e ? LogResult.toJSON(e) : undefined));
|
|
2647
|
+
} else {
|
|
2648
|
+
obj.logs = [];
|
|
2649
|
+
}
|
|
2492
2650
|
return obj;
|
|
2493
2651
|
},
|
|
2494
2652
|
|
|
2495
|
-
fromPartial(object: DeepPartial<
|
|
2496
|
-
const message =
|
|
2653
|
+
fromPartial(object: DeepPartial<ProcessResult>): ProcessResult {
|
|
2654
|
+
const message = createBaseProcessResult();
|
|
2497
2655
|
message.gauges =
|
|
2498
2656
|
object.gauges?.map((e) => GaugeResult.fromPartial(e)) || [];
|
|
2499
2657
|
message.counters =
|
|
2500
2658
|
object.counters?.map((e) => CounterResult.fromPartial(e)) || [];
|
|
2659
|
+
message.logs = object.logs?.map((e) => LogResult.fromPartial(e)) || [];
|
|
2501
2660
|
return message;
|
|
2502
2661
|
},
|
|
2503
2662
|
};
|
|
@@ -3153,6 +3312,107 @@ export const CounterResult = {
|
|
|
3153
3312
|
},
|
|
3154
3313
|
};
|
|
3155
3314
|
|
|
3315
|
+
function createBaseLogResult(): LogResult {
|
|
3316
|
+
return { metadata: undefined, level: 0, message: "", runtimeInfo: undefined };
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
export const LogResult = {
|
|
3320
|
+
encode(
|
|
3321
|
+
message: LogResult,
|
|
3322
|
+
writer: _m0.Writer = _m0.Writer.create()
|
|
3323
|
+
): _m0.Writer {
|
|
3324
|
+
if (message.metadata !== undefined) {
|
|
3325
|
+
RecordMetaData.encode(
|
|
3326
|
+
message.metadata,
|
|
3327
|
+
writer.uint32(10).fork()
|
|
3328
|
+
).ldelim();
|
|
3329
|
+
}
|
|
3330
|
+
if (message.level !== 0) {
|
|
3331
|
+
writer.uint32(16).int32(message.level);
|
|
3332
|
+
}
|
|
3333
|
+
if (message.message !== "") {
|
|
3334
|
+
writer.uint32(26).string(message.message);
|
|
3335
|
+
}
|
|
3336
|
+
if (message.runtimeInfo !== undefined) {
|
|
3337
|
+
RuntimeInfo.encode(
|
|
3338
|
+
message.runtimeInfo,
|
|
3339
|
+
writer.uint32(34).fork()
|
|
3340
|
+
).ldelim();
|
|
3341
|
+
}
|
|
3342
|
+
return writer;
|
|
3343
|
+
},
|
|
3344
|
+
|
|
3345
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogResult {
|
|
3346
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
3347
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3348
|
+
const message = createBaseLogResult();
|
|
3349
|
+
while (reader.pos < end) {
|
|
3350
|
+
const tag = reader.uint32();
|
|
3351
|
+
switch (tag >>> 3) {
|
|
3352
|
+
case 1:
|
|
3353
|
+
message.metadata = RecordMetaData.decode(reader, reader.uint32());
|
|
3354
|
+
break;
|
|
3355
|
+
case 2:
|
|
3356
|
+
message.level = reader.int32() as any;
|
|
3357
|
+
break;
|
|
3358
|
+
case 3:
|
|
3359
|
+
message.message = reader.string();
|
|
3360
|
+
break;
|
|
3361
|
+
case 4:
|
|
3362
|
+
message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
|
|
3363
|
+
break;
|
|
3364
|
+
default:
|
|
3365
|
+
reader.skipType(tag & 7);
|
|
3366
|
+
break;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
return message;
|
|
3370
|
+
},
|
|
3371
|
+
|
|
3372
|
+
fromJSON(object: any): LogResult {
|
|
3373
|
+
return {
|
|
3374
|
+
metadata: isSet(object.metadata)
|
|
3375
|
+
? RecordMetaData.fromJSON(object.metadata)
|
|
3376
|
+
: undefined,
|
|
3377
|
+
level: isSet(object.level) ? logLevelFromJSON(object.level) : 0,
|
|
3378
|
+
message: isSet(object.message) ? String(object.message) : "",
|
|
3379
|
+
runtimeInfo: isSet(object.runtimeInfo)
|
|
3380
|
+
? RuntimeInfo.fromJSON(object.runtimeInfo)
|
|
3381
|
+
: undefined,
|
|
3382
|
+
};
|
|
3383
|
+
},
|
|
3384
|
+
|
|
3385
|
+
toJSON(message: LogResult): unknown {
|
|
3386
|
+
const obj: any = {};
|
|
3387
|
+
message.metadata !== undefined &&
|
|
3388
|
+
(obj.metadata = message.metadata
|
|
3389
|
+
? RecordMetaData.toJSON(message.metadata)
|
|
3390
|
+
: undefined);
|
|
3391
|
+
message.level !== undefined && (obj.level = logLevelToJSON(message.level));
|
|
3392
|
+
message.message !== undefined && (obj.message = message.message);
|
|
3393
|
+
message.runtimeInfo !== undefined &&
|
|
3394
|
+
(obj.runtimeInfo = message.runtimeInfo
|
|
3395
|
+
? RuntimeInfo.toJSON(message.runtimeInfo)
|
|
3396
|
+
: undefined);
|
|
3397
|
+
return obj;
|
|
3398
|
+
},
|
|
3399
|
+
|
|
3400
|
+
fromPartial(object: DeepPartial<LogResult>): LogResult {
|
|
3401
|
+
const message = createBaseLogResult();
|
|
3402
|
+
message.metadata =
|
|
3403
|
+
object.metadata !== undefined && object.metadata !== null
|
|
3404
|
+
? RecordMetaData.fromPartial(object.metadata)
|
|
3405
|
+
: undefined;
|
|
3406
|
+
message.level = object.level ?? 0;
|
|
3407
|
+
message.message = object.message ?? "";
|
|
3408
|
+
message.runtimeInfo =
|
|
3409
|
+
object.runtimeInfo !== undefined && object.runtimeInfo !== null
|
|
3410
|
+
? RuntimeInfo.fromPartial(object.runtimeInfo)
|
|
3411
|
+
: undefined;
|
|
3412
|
+
return message;
|
|
3413
|
+
},
|
|
3414
|
+
};
|
|
3415
|
+
|
|
3156
3416
|
export type ProcessorDefinition = typeof ProcessorDefinition;
|
|
3157
3417
|
export const ProcessorDefinition = {
|
|
3158
3418
|
name: "Processor",
|