@sentio/runtime 2.57.9-rc.8 → 2.57.9
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/chunk-TTE5MQNI.js +131 -0
- package/lib/{chunk-QLDMXVEC.js.map → chunk-TTE5MQNI.js.map} +1 -1
- package/lib/index.d.ts +25 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +27 -27
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +21 -0
- package/src/gen/processor/protos/processor.ts +266 -11
- package/src/metrics.ts +11 -1
- package/src/service.ts +0 -1
- package/lib/chunk-QLDMXVEC.js +0 -131
package/package.json
CHANGED
package/src/full-service.ts
CHANGED
@@ -28,6 +28,7 @@ const FUEL_PROTO_UPDATE_VERSION = parseSemver('2.54.0-rc.7')
|
|
28
28
|
const FUEL_PROTO_NO_FUEL_TRANSACTION_AS_CALL_VERSION = parseSemver('2.55.0-rc.1')
|
29
29
|
|
30
30
|
const MOVE_USE_RAW_VERSION = parseSemver('2.55.0-rc.1')
|
31
|
+
const ETH_USE_RAW_VERSION = parseSemver('2.57.9-rc.12')
|
31
32
|
// new driver (after MOVE_USE_RAW_VERSION) will sent the same event multiple times when fetch all true
|
32
33
|
// so we need to cache it, key will be tx-handler_id
|
33
34
|
const PROCESSED_MOVE_EVENT_TX_HANDLER = new LRUCache<string, boolean>({
|
@@ -162,11 +163,31 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
|
|
162
163
|
|
163
164
|
private adjustDataBinding(dataBinding?: DataBinding): void {
|
164
165
|
const isBeforeMoveUseRawVersion = compareSemver(this.sdkVersion, MOVE_USE_RAW_VERSION) < 0
|
166
|
+
// const isBeforeEthUseRawVersion = compareSemver(this.sdkVersion,ETH_USE_RAW_VERSION) < 0
|
165
167
|
|
166
168
|
if (!dataBinding) {
|
167
169
|
return
|
168
170
|
}
|
169
171
|
switch (dataBinding.handlerType) {
|
172
|
+
case HandlerType.ETH_LOG:
|
173
|
+
const ethLog = dataBinding.data?.ethLog
|
174
|
+
if (ethLog?.log == null && ethLog?.rawLog) {
|
175
|
+
ethLog.log = JSON.parse(ethLog.rawLog)
|
176
|
+
ethLog.transaction = ethLog.rawTransaction ? JSON.parse(ethLog.rawTransaction) : undefined
|
177
|
+
ethLog.block = ethLog.rawBlock ? JSON.parse(ethLog.rawBlock) : undefined
|
178
|
+
ethLog.transactionReceipt = ethLog.rawTransactionReceipt
|
179
|
+
? JSON.parse(ethLog.rawTransactionReceipt)
|
180
|
+
: undefined
|
181
|
+
}
|
182
|
+
break
|
183
|
+
case HandlerType.ETH_TRANSACTION:
|
184
|
+
const ethTx = dataBinding.data?.ethTransaction
|
185
|
+
if (ethTx?.transaction == null && ethTx?.rawTransaction) {
|
186
|
+
ethTx.transaction = JSON.parse(ethTx.rawTransaction)
|
187
|
+
ethTx.block = ethTx.rawBlock ? JSON.parse(ethTx.rawBlock) : undefined
|
188
|
+
ethTx.transactionReceipt = ethTx.rawTransactionReceipt ? JSON.parse(ethTx.rawTransactionReceipt) : undefined
|
189
|
+
}
|
190
|
+
break
|
170
191
|
case HandlerType.FUEL_TRANSACTION:
|
171
192
|
if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
|
172
193
|
dataBinding.handlerType = HandlerType.FUEL_CALL
|
@@ -409,7 +409,14 @@ export interface ExecutionConfig {
|
|
409
409
|
processBindingTimeout: number;
|
410
410
|
skipStartBlockValidation: boolean;
|
411
411
|
rpcRetryTimes: number;
|
412
|
-
|
412
|
+
ethAbiDecoderConfig?: ExecutionConfig_DecoderWorkerConfig | undefined;
|
413
|
+
}
|
414
|
+
|
415
|
+
export interface ExecutionConfig_DecoderWorkerConfig {
|
416
|
+
enabled: boolean;
|
417
|
+
workerCount?: number | undefined;
|
418
|
+
skipWhenDecodeFailed?: boolean | undefined;
|
419
|
+
recordTiming?: boolean | undefined;
|
413
420
|
}
|
414
421
|
|
415
422
|
export interface ProcessConfigRequest {
|
@@ -1112,6 +1119,10 @@ export interface Data_EthLog {
|
|
1112
1119
|
transaction?: { [key: string]: any } | undefined;
|
1113
1120
|
transactionReceipt?: { [key: string]: any } | undefined;
|
1114
1121
|
block?: { [key: string]: any } | undefined;
|
1122
|
+
rawLog: string;
|
1123
|
+
rawTransaction?: string | undefined;
|
1124
|
+
rawTransactionReceipt?: string | undefined;
|
1125
|
+
rawBlock?: string | undefined;
|
1115
1126
|
}
|
1116
1127
|
|
1117
1128
|
export interface Data_EthBlock {
|
@@ -1124,6 +1135,10 @@ export interface Data_EthTransaction {
|
|
1124
1135
|
transactionReceipt?: { [key: string]: any } | undefined;
|
1125
1136
|
block?: { [key: string]: any } | undefined;
|
1126
1137
|
trace?: { [key: string]: any } | undefined;
|
1138
|
+
rawTransaction: string;
|
1139
|
+
rawTransactionReceipt?: string | undefined;
|
1140
|
+
rawBlock?: string | undefined;
|
1141
|
+
rawTrace?: string | undefined;
|
1127
1142
|
}
|
1128
1143
|
|
1129
1144
|
export interface Data_EthTrace {
|
@@ -1440,7 +1455,7 @@ function createBaseExecutionConfig(): ExecutionConfig {
|
|
1440
1455
|
processBindingTimeout: 0,
|
1441
1456
|
skipStartBlockValidation: false,
|
1442
1457
|
rpcRetryTimes: 0,
|
1443
|
-
|
1458
|
+
ethAbiDecoderConfig: undefined,
|
1444
1459
|
};
|
1445
1460
|
}
|
1446
1461
|
|
@@ -1461,8 +1476,8 @@ export const ExecutionConfig = {
|
|
1461
1476
|
if (message.rpcRetryTimes !== 0) {
|
1462
1477
|
writer.uint32(40).int32(message.rpcRetryTimes);
|
1463
1478
|
}
|
1464
|
-
if (message.
|
1465
|
-
writer.uint32(
|
1479
|
+
if (message.ethAbiDecoderConfig !== undefined) {
|
1480
|
+
ExecutionConfig_DecoderWorkerConfig.encode(message.ethAbiDecoderConfig, writer.uint32(50).fork()).ldelim();
|
1466
1481
|
}
|
1467
1482
|
return writer;
|
1468
1483
|
},
|
@@ -1510,11 +1525,11 @@ export const ExecutionConfig = {
|
|
1510
1525
|
message.rpcRetryTimes = reader.int32();
|
1511
1526
|
continue;
|
1512
1527
|
case 6:
|
1513
|
-
if (tag !==
|
1528
|
+
if (tag !== 50) {
|
1514
1529
|
break;
|
1515
1530
|
}
|
1516
1531
|
|
1517
|
-
message.
|
1532
|
+
message.ethAbiDecoderConfig = ExecutionConfig_DecoderWorkerConfig.decode(reader, reader.uint32());
|
1518
1533
|
continue;
|
1519
1534
|
}
|
1520
1535
|
if ((tag & 7) === 4 || tag === 0) {
|
@@ -1534,8 +1549,8 @@ export const ExecutionConfig = {
|
|
1534
1549
|
? globalThis.Boolean(object.skipStartBlockValidation)
|
1535
1550
|
: false,
|
1536
1551
|
rpcRetryTimes: isSet(object.rpcRetryTimes) ? globalThis.Number(object.rpcRetryTimes) : 0,
|
1537
|
-
|
1538
|
-
?
|
1552
|
+
ethAbiDecoderConfig: isSet(object.ethAbiDecoderConfig)
|
1553
|
+
? ExecutionConfig_DecoderWorkerConfig.fromJSON(object.ethAbiDecoderConfig)
|
1539
1554
|
: undefined,
|
1540
1555
|
};
|
1541
1556
|
},
|
@@ -1557,8 +1572,8 @@ export const ExecutionConfig = {
|
|
1557
1572
|
if (message.rpcRetryTimes !== 0) {
|
1558
1573
|
obj.rpcRetryTimes = Math.round(message.rpcRetryTimes);
|
1559
1574
|
}
|
1560
|
-
if (message.
|
1561
|
-
obj.
|
1575
|
+
if (message.ethAbiDecoderConfig !== undefined) {
|
1576
|
+
obj.ethAbiDecoderConfig = ExecutionConfig_DecoderWorkerConfig.toJSON(message.ethAbiDecoderConfig);
|
1562
1577
|
}
|
1563
1578
|
return obj;
|
1564
1579
|
},
|
@@ -1573,7 +1588,115 @@ export const ExecutionConfig = {
|
|
1573
1588
|
message.processBindingTimeout = object.processBindingTimeout ?? 0;
|
1574
1589
|
message.skipStartBlockValidation = object.skipStartBlockValidation ?? false;
|
1575
1590
|
message.rpcRetryTimes = object.rpcRetryTimes ?? 0;
|
1576
|
-
message.
|
1591
|
+
message.ethAbiDecoderConfig = (object.ethAbiDecoderConfig !== undefined && object.ethAbiDecoderConfig !== null)
|
1592
|
+
? ExecutionConfig_DecoderWorkerConfig.fromPartial(object.ethAbiDecoderConfig)
|
1593
|
+
: undefined;
|
1594
|
+
return message;
|
1595
|
+
},
|
1596
|
+
};
|
1597
|
+
|
1598
|
+
function createBaseExecutionConfig_DecoderWorkerConfig(): ExecutionConfig_DecoderWorkerConfig {
|
1599
|
+
return { enabled: false, workerCount: undefined, skipWhenDecodeFailed: undefined, recordTiming: undefined };
|
1600
|
+
}
|
1601
|
+
|
1602
|
+
export const ExecutionConfig_DecoderWorkerConfig = {
|
1603
|
+
encode(message: ExecutionConfig_DecoderWorkerConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
1604
|
+
if (message.enabled !== false) {
|
1605
|
+
writer.uint32(8).bool(message.enabled);
|
1606
|
+
}
|
1607
|
+
if (message.workerCount !== undefined) {
|
1608
|
+
writer.uint32(16).int32(message.workerCount);
|
1609
|
+
}
|
1610
|
+
if (message.skipWhenDecodeFailed !== undefined) {
|
1611
|
+
writer.uint32(24).bool(message.skipWhenDecodeFailed);
|
1612
|
+
}
|
1613
|
+
if (message.recordTiming !== undefined) {
|
1614
|
+
writer.uint32(32).bool(message.recordTiming);
|
1615
|
+
}
|
1616
|
+
return writer;
|
1617
|
+
},
|
1618
|
+
|
1619
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExecutionConfig_DecoderWorkerConfig {
|
1620
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1621
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1622
|
+
const message = createBaseExecutionConfig_DecoderWorkerConfig();
|
1623
|
+
while (reader.pos < end) {
|
1624
|
+
const tag = reader.uint32();
|
1625
|
+
switch (tag >>> 3) {
|
1626
|
+
case 1:
|
1627
|
+
if (tag !== 8) {
|
1628
|
+
break;
|
1629
|
+
}
|
1630
|
+
|
1631
|
+
message.enabled = reader.bool();
|
1632
|
+
continue;
|
1633
|
+
case 2:
|
1634
|
+
if (tag !== 16) {
|
1635
|
+
break;
|
1636
|
+
}
|
1637
|
+
|
1638
|
+
message.workerCount = reader.int32();
|
1639
|
+
continue;
|
1640
|
+
case 3:
|
1641
|
+
if (tag !== 24) {
|
1642
|
+
break;
|
1643
|
+
}
|
1644
|
+
|
1645
|
+
message.skipWhenDecodeFailed = reader.bool();
|
1646
|
+
continue;
|
1647
|
+
case 4:
|
1648
|
+
if (tag !== 32) {
|
1649
|
+
break;
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
message.recordTiming = reader.bool();
|
1653
|
+
continue;
|
1654
|
+
}
|
1655
|
+
if ((tag & 7) === 4 || tag === 0) {
|
1656
|
+
break;
|
1657
|
+
}
|
1658
|
+
reader.skipType(tag & 7);
|
1659
|
+
}
|
1660
|
+
return message;
|
1661
|
+
},
|
1662
|
+
|
1663
|
+
fromJSON(object: any): ExecutionConfig_DecoderWorkerConfig {
|
1664
|
+
return {
|
1665
|
+
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
1666
|
+
workerCount: isSet(object.workerCount) ? globalThis.Number(object.workerCount) : undefined,
|
1667
|
+
skipWhenDecodeFailed: isSet(object.skipWhenDecodeFailed)
|
1668
|
+
? globalThis.Boolean(object.skipWhenDecodeFailed)
|
1669
|
+
: undefined,
|
1670
|
+
recordTiming: isSet(object.recordTiming) ? globalThis.Boolean(object.recordTiming) : undefined,
|
1671
|
+
};
|
1672
|
+
},
|
1673
|
+
|
1674
|
+
toJSON(message: ExecutionConfig_DecoderWorkerConfig): unknown {
|
1675
|
+
const obj: any = {};
|
1676
|
+
if (message.enabled !== false) {
|
1677
|
+
obj.enabled = message.enabled;
|
1678
|
+
}
|
1679
|
+
if (message.workerCount !== undefined) {
|
1680
|
+
obj.workerCount = Math.round(message.workerCount);
|
1681
|
+
}
|
1682
|
+
if (message.skipWhenDecodeFailed !== undefined) {
|
1683
|
+
obj.skipWhenDecodeFailed = message.skipWhenDecodeFailed;
|
1684
|
+
}
|
1685
|
+
if (message.recordTiming !== undefined) {
|
1686
|
+
obj.recordTiming = message.recordTiming;
|
1687
|
+
}
|
1688
|
+
return obj;
|
1689
|
+
},
|
1690
|
+
|
1691
|
+
create(base?: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig {
|
1692
|
+
return ExecutionConfig_DecoderWorkerConfig.fromPartial(base ?? {});
|
1693
|
+
},
|
1694
|
+
fromPartial(object: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig {
|
1695
|
+
const message = createBaseExecutionConfig_DecoderWorkerConfig();
|
1696
|
+
message.enabled = object.enabled ?? false;
|
1697
|
+
message.workerCount = object.workerCount ?? undefined;
|
1698
|
+
message.skipWhenDecodeFailed = object.skipWhenDecodeFailed ?? undefined;
|
1699
|
+
message.recordTiming = object.recordTiming ?? undefined;
|
1577
1700
|
return message;
|
1578
1701
|
},
|
1579
1702
|
};
|
@@ -9508,6 +9631,10 @@ function createBaseData_EthLog(): Data_EthLog {
|
|
9508
9631
|
transaction: undefined,
|
9509
9632
|
transactionReceipt: undefined,
|
9510
9633
|
block: undefined,
|
9634
|
+
rawLog: "",
|
9635
|
+
rawTransaction: undefined,
|
9636
|
+
rawTransactionReceipt: undefined,
|
9637
|
+
rawBlock: undefined,
|
9511
9638
|
};
|
9512
9639
|
}
|
9513
9640
|
|
@@ -9528,6 +9655,18 @@ export const Data_EthLog = {
|
|
9528
9655
|
if (message.block !== undefined) {
|
9529
9656
|
Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
|
9530
9657
|
}
|
9658
|
+
if (message.rawLog !== "") {
|
9659
|
+
writer.uint32(58).string(message.rawLog);
|
9660
|
+
}
|
9661
|
+
if (message.rawTransaction !== undefined) {
|
9662
|
+
writer.uint32(66).string(message.rawTransaction);
|
9663
|
+
}
|
9664
|
+
if (message.rawTransactionReceipt !== undefined) {
|
9665
|
+
writer.uint32(74).string(message.rawTransactionReceipt);
|
9666
|
+
}
|
9667
|
+
if (message.rawBlock !== undefined) {
|
9668
|
+
writer.uint32(82).string(message.rawBlock);
|
9669
|
+
}
|
9531
9670
|
return writer;
|
9532
9671
|
},
|
9533
9672
|
|
@@ -9573,6 +9712,34 @@ export const Data_EthLog = {
|
|
9573
9712
|
|
9574
9713
|
message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
9575
9714
|
continue;
|
9715
|
+
case 7:
|
9716
|
+
if (tag !== 58) {
|
9717
|
+
break;
|
9718
|
+
}
|
9719
|
+
|
9720
|
+
message.rawLog = reader.string();
|
9721
|
+
continue;
|
9722
|
+
case 8:
|
9723
|
+
if (tag !== 66) {
|
9724
|
+
break;
|
9725
|
+
}
|
9726
|
+
|
9727
|
+
message.rawTransaction = reader.string();
|
9728
|
+
continue;
|
9729
|
+
case 9:
|
9730
|
+
if (tag !== 74) {
|
9731
|
+
break;
|
9732
|
+
}
|
9733
|
+
|
9734
|
+
message.rawTransactionReceipt = reader.string();
|
9735
|
+
continue;
|
9736
|
+
case 10:
|
9737
|
+
if (tag !== 82) {
|
9738
|
+
break;
|
9739
|
+
}
|
9740
|
+
|
9741
|
+
message.rawBlock = reader.string();
|
9742
|
+
continue;
|
9576
9743
|
}
|
9577
9744
|
if ((tag & 7) === 4 || tag === 0) {
|
9578
9745
|
break;
|
@@ -9589,6 +9756,12 @@ export const Data_EthLog = {
|
|
9589
9756
|
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
9590
9757
|
transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
|
9591
9758
|
block: isObject(object.block) ? object.block : undefined,
|
9759
|
+
rawLog: isSet(object.rawLog) ? globalThis.String(object.rawLog) : "",
|
9760
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
|
9761
|
+
rawTransactionReceipt: isSet(object.rawTransactionReceipt)
|
9762
|
+
? globalThis.String(object.rawTransactionReceipt)
|
9763
|
+
: undefined,
|
9764
|
+
rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : undefined,
|
9592
9765
|
};
|
9593
9766
|
},
|
9594
9767
|
|
@@ -9609,6 +9782,18 @@ export const Data_EthLog = {
|
|
9609
9782
|
if (message.block !== undefined) {
|
9610
9783
|
obj.block = message.block;
|
9611
9784
|
}
|
9785
|
+
if (message.rawLog !== "") {
|
9786
|
+
obj.rawLog = message.rawLog;
|
9787
|
+
}
|
9788
|
+
if (message.rawTransaction !== undefined) {
|
9789
|
+
obj.rawTransaction = message.rawTransaction;
|
9790
|
+
}
|
9791
|
+
if (message.rawTransactionReceipt !== undefined) {
|
9792
|
+
obj.rawTransactionReceipt = message.rawTransactionReceipt;
|
9793
|
+
}
|
9794
|
+
if (message.rawBlock !== undefined) {
|
9795
|
+
obj.rawBlock = message.rawBlock;
|
9796
|
+
}
|
9612
9797
|
return obj;
|
9613
9798
|
},
|
9614
9799
|
|
@@ -9622,6 +9807,10 @@ export const Data_EthLog = {
|
|
9622
9807
|
message.transaction = object.transaction ?? undefined;
|
9623
9808
|
message.transactionReceipt = object.transactionReceipt ?? undefined;
|
9624
9809
|
message.block = object.block ?? undefined;
|
9810
|
+
message.rawLog = object.rawLog ?? "";
|
9811
|
+
message.rawTransaction = object.rawTransaction ?? undefined;
|
9812
|
+
message.rawTransactionReceipt = object.rawTransactionReceipt ?? undefined;
|
9813
|
+
message.rawBlock = object.rawBlock ?? undefined;
|
9625
9814
|
return message;
|
9626
9815
|
},
|
9627
9816
|
};
|
@@ -9690,6 +9879,10 @@ function createBaseData_EthTransaction(): Data_EthTransaction {
|
|
9690
9879
|
transactionReceipt: undefined,
|
9691
9880
|
block: undefined,
|
9692
9881
|
trace: undefined,
|
9882
|
+
rawTransaction: "",
|
9883
|
+
rawTransactionReceipt: undefined,
|
9884
|
+
rawBlock: undefined,
|
9885
|
+
rawTrace: undefined,
|
9693
9886
|
};
|
9694
9887
|
}
|
9695
9888
|
|
@@ -9710,6 +9903,18 @@ export const Data_EthTransaction = {
|
|
9710
9903
|
if (message.trace !== undefined) {
|
9711
9904
|
Struct.encode(Struct.wrap(message.trace), writer.uint32(58).fork()).ldelim();
|
9712
9905
|
}
|
9906
|
+
if (message.rawTransaction !== "") {
|
9907
|
+
writer.uint32(66).string(message.rawTransaction);
|
9908
|
+
}
|
9909
|
+
if (message.rawTransactionReceipt !== undefined) {
|
9910
|
+
writer.uint32(74).string(message.rawTransactionReceipt);
|
9911
|
+
}
|
9912
|
+
if (message.rawBlock !== undefined) {
|
9913
|
+
writer.uint32(82).string(message.rawBlock);
|
9914
|
+
}
|
9915
|
+
if (message.rawTrace !== undefined) {
|
9916
|
+
writer.uint32(90).string(message.rawTrace);
|
9917
|
+
}
|
9713
9918
|
return writer;
|
9714
9919
|
},
|
9715
9920
|
|
@@ -9755,6 +9960,34 @@ export const Data_EthTransaction = {
|
|
9755
9960
|
|
9756
9961
|
message.trace = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
9757
9962
|
continue;
|
9963
|
+
case 8:
|
9964
|
+
if (tag !== 66) {
|
9965
|
+
break;
|
9966
|
+
}
|
9967
|
+
|
9968
|
+
message.rawTransaction = reader.string();
|
9969
|
+
continue;
|
9970
|
+
case 9:
|
9971
|
+
if (tag !== 74) {
|
9972
|
+
break;
|
9973
|
+
}
|
9974
|
+
|
9975
|
+
message.rawTransactionReceipt = reader.string();
|
9976
|
+
continue;
|
9977
|
+
case 10:
|
9978
|
+
if (tag !== 82) {
|
9979
|
+
break;
|
9980
|
+
}
|
9981
|
+
|
9982
|
+
message.rawBlock = reader.string();
|
9983
|
+
continue;
|
9984
|
+
case 11:
|
9985
|
+
if (tag !== 90) {
|
9986
|
+
break;
|
9987
|
+
}
|
9988
|
+
|
9989
|
+
message.rawTrace = reader.string();
|
9990
|
+
continue;
|
9758
9991
|
}
|
9759
9992
|
if ((tag & 7) === 4 || tag === 0) {
|
9760
9993
|
break;
|
@@ -9771,6 +10004,12 @@ export const Data_EthTransaction = {
|
|
9771
10004
|
transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
|
9772
10005
|
block: isObject(object.block) ? object.block : undefined,
|
9773
10006
|
trace: isObject(object.trace) ? object.trace : undefined,
|
10007
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
|
10008
|
+
rawTransactionReceipt: isSet(object.rawTransactionReceipt)
|
10009
|
+
? globalThis.String(object.rawTransactionReceipt)
|
10010
|
+
: undefined,
|
10011
|
+
rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : undefined,
|
10012
|
+
rawTrace: isSet(object.rawTrace) ? globalThis.String(object.rawTrace) : undefined,
|
9774
10013
|
};
|
9775
10014
|
},
|
9776
10015
|
|
@@ -9791,6 +10030,18 @@ export const Data_EthTransaction = {
|
|
9791
10030
|
if (message.trace !== undefined) {
|
9792
10031
|
obj.trace = message.trace;
|
9793
10032
|
}
|
10033
|
+
if (message.rawTransaction !== "") {
|
10034
|
+
obj.rawTransaction = message.rawTransaction;
|
10035
|
+
}
|
10036
|
+
if (message.rawTransactionReceipt !== undefined) {
|
10037
|
+
obj.rawTransactionReceipt = message.rawTransactionReceipt;
|
10038
|
+
}
|
10039
|
+
if (message.rawBlock !== undefined) {
|
10040
|
+
obj.rawBlock = message.rawBlock;
|
10041
|
+
}
|
10042
|
+
if (message.rawTrace !== undefined) {
|
10043
|
+
obj.rawTrace = message.rawTrace;
|
10044
|
+
}
|
9794
10045
|
return obj;
|
9795
10046
|
},
|
9796
10047
|
|
@@ -9804,6 +10055,10 @@ export const Data_EthTransaction = {
|
|
9804
10055
|
message.transactionReceipt = object.transactionReceipt ?? undefined;
|
9805
10056
|
message.block = object.block ?? undefined;
|
9806
10057
|
message.trace = object.trace ?? undefined;
|
10058
|
+
message.rawTransaction = object.rawTransaction ?? "";
|
10059
|
+
message.rawTransactionReceipt = object.rawTransactionReceipt ?? undefined;
|
10060
|
+
message.rawBlock = object.rawBlock ?? undefined;
|
10061
|
+
message.rawTrace = object.rawTrace ?? undefined;
|
9807
10062
|
return message;
|
9808
10063
|
},
|
9809
10064
|
};
|
package/src/metrics.ts
CHANGED
@@ -172,6 +172,11 @@ export const processMetrics = {
|
|
172
172
|
processor_rpc_duration: new H('processor_rpc_duration'),
|
173
173
|
processor_rpc_queue_duration: new H('processor_rpc_queue_duration'),
|
174
174
|
processor_template_instance_count: new C('process_template_instance_count'),
|
175
|
+
processor_worker_run_time: new G('processor_worker_run_time'),
|
176
|
+
processor_worker_wait_time: new G('processor_worker_wait_time'),
|
177
|
+
processor_worker_utilization: new G('processor_worker_utilization'),
|
178
|
+
processor_worker_queue_size: new G('processor_worker_queue_size'),
|
179
|
+
processor_worker_completed: new G('processor_worker_completed'),
|
175
180
|
stats() {
|
176
181
|
return {
|
177
182
|
process_binding_count: this.process_binding_count.get(),
|
@@ -186,7 +191,12 @@ export const processMetrics = {
|
|
186
191
|
processor_handler_duration: this.processor_handler_duration.get(),
|
187
192
|
processor_rpc_duration: this.processor_rpc_duration.get(),
|
188
193
|
processor_rpc_queue_duration: this.processor_rpc_queue_duration.get(),
|
189
|
-
processor_template_instance_count: this.processor_template_instance_count.get()
|
194
|
+
processor_template_instance_count: this.processor_template_instance_count.get(),
|
195
|
+
processor_worker_run_time: this.processor_worker_run_time.get(),
|
196
|
+
processor_worker_wait_time: this.processor_worker_wait_time.get(),
|
197
|
+
processor_worker_utilization: this.processor_worker_utilization.get(),
|
198
|
+
processor_worker_queue_size: this.processor_worker_queue_size.get(),
|
199
|
+
processor_worker_completed: this.processor_worker_completed.get()
|
190
200
|
}
|
191
201
|
}
|
192
202
|
}
|
package/src/service.ts
CHANGED
@@ -418,7 +418,6 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
418
418
|
subject: Subject<DeepPartial<ProcessStreamResponse>>
|
419
419
|
) {
|
420
420
|
const contexts = new Contexts()
|
421
|
-
|
422
421
|
for await (const request of requests) {
|
423
422
|
try {
|
424
423
|
// console.debug('received request:', request)
|