@sentio/runtime 2.3.0-rc.1 → 2.3.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/full-service.js +1 -7
- package/lib/full-service.js.map +1 -1
- package/lib/gen/google/protobuf/empty.d.ts +1 -0
- package/lib/gen/google/protobuf/empty.js +3 -0
- package/lib/gen/google/protobuf/empty.js.map +1 -1
- package/lib/gen/google/protobuf/struct.d.ts +6 -2
- package/lib/gen/google/protobuf/struct.js +26 -7
- package/lib/gen/google/protobuf/struct.js.map +1 -1
- package/lib/gen/google/protobuf/timestamp.d.ts +1 -0
- package/lib/gen/google/protobuf/timestamp.js +3 -0
- package/lib/gen/google/protobuf/timestamp.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +67 -13
- package/lib/gen/processor/protos/processor.js +165 -62
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/service.js +1 -1
- package/lib/service.js.map +1 -1
- package/lib/utils.js +0 -1
- package/lib/utils.js.map +1 -1
- package/package.json +3 -3
- package/src/full-service.ts +1 -7
- package/src/gen/google/protobuf/empty.ts +4 -0
- package/src/gen/google/protobuf/struct.ts +31 -13
- package/src/gen/google/protobuf/timestamp.ts +4 -0
- package/src/gen/processor/protos/processor.ts +222 -75
- package/src/service.ts +1 -1
- package/src/utils.ts +0 -1
@@ -483,13 +483,6 @@ export interface ProcessBindingResponse {
|
|
483
483
|
configUpdated: boolean;
|
484
484
|
}
|
485
485
|
|
486
|
-
/** @deprecated */
|
487
|
-
export interface RawTransaction {
|
488
|
-
raw: Uint8Array;
|
489
|
-
programAccountId?: string | undefined;
|
490
|
-
slot?: bigint | undefined;
|
491
|
-
}
|
492
|
-
|
493
486
|
export interface Data {
|
494
487
|
/** @deprecated */
|
495
488
|
raw: Uint8Array;
|
@@ -571,6 +564,7 @@ export interface DataBinding {
|
|
571
564
|
export interface ProcessResult {
|
572
565
|
gauges: GaugeResult[];
|
573
566
|
counters: CounterResult[];
|
567
|
+
/** @deprecated */
|
574
568
|
logs: LogResult[];
|
575
569
|
events: EventTrackingResult[];
|
576
570
|
exports: ExportResult[];
|
@@ -621,6 +615,7 @@ export interface CounterResult {
|
|
621
615
|
runtimeInfo: RuntimeInfo | undefined;
|
622
616
|
}
|
623
617
|
|
618
|
+
/** @deprecated */
|
624
619
|
export interface LogResult {
|
625
620
|
metadata: RecordMetaData | undefined;
|
626
621
|
level: LogLevel;
|
@@ -697,6 +692,10 @@ export const ProjectConfig = {
|
|
697
692
|
return obj;
|
698
693
|
},
|
699
694
|
|
695
|
+
create(base?: DeepPartial<ProjectConfig>): ProjectConfig {
|
696
|
+
return ProjectConfig.fromPartial(base ?? {});
|
697
|
+
},
|
698
|
+
|
700
699
|
fromPartial(object: DeepPartial<ProjectConfig>): ProjectConfig {
|
701
700
|
const message = createBaseProjectConfig();
|
702
701
|
message.name = object.name ?? "";
|
@@ -738,6 +737,10 @@ export const ProcessConfigRequest = {
|
|
738
737
|
return obj;
|
739
738
|
},
|
740
739
|
|
740
|
+
create(base?: DeepPartial<ProcessConfigRequest>): ProcessConfigRequest {
|
741
|
+
return ProcessConfigRequest.fromPartial(base ?? {});
|
742
|
+
},
|
743
|
+
|
741
744
|
fromPartial(_: DeepPartial<ProcessConfigRequest>): ProcessConfigRequest {
|
742
745
|
const message = createBaseProcessConfigRequest();
|
743
746
|
return message;
|
@@ -878,6 +881,10 @@ export const ProcessConfigResponse = {
|
|
878
881
|
return obj;
|
879
882
|
},
|
880
883
|
|
884
|
+
create(base?: DeepPartial<ProcessConfigResponse>): ProcessConfigResponse {
|
885
|
+
return ProcessConfigResponse.fromPartial(base ?? {});
|
886
|
+
},
|
887
|
+
|
881
888
|
fromPartial(object: DeepPartial<ProcessConfigResponse>): ProcessConfigResponse {
|
882
889
|
const message = createBaseProcessConfigResponse();
|
883
890
|
message.config = (object.config !== undefined && object.config !== null)
|
@@ -1068,6 +1075,10 @@ export const ContractConfig = {
|
|
1068
1075
|
return obj;
|
1069
1076
|
},
|
1070
1077
|
|
1078
|
+
create(base?: DeepPartial<ContractConfig>): ContractConfig {
|
1079
|
+
return ContractConfig.fromPartial(base ?? {});
|
1080
|
+
},
|
1081
|
+
|
1071
1082
|
fromPartial(object: DeepPartial<ContractConfig>): ContractConfig {
|
1072
1083
|
const message = createBaseContractConfig();
|
1073
1084
|
message.contract = (object.contract !== undefined && object.contract !== null)
|
@@ -1122,6 +1133,10 @@ export const TotalPerEntityAggregation = {
|
|
1122
1133
|
return obj;
|
1123
1134
|
},
|
1124
1135
|
|
1136
|
+
create(base?: DeepPartial<TotalPerEntityAggregation>): TotalPerEntityAggregation {
|
1137
|
+
return TotalPerEntityAggregation.fromPartial(base ?? {});
|
1138
|
+
},
|
1139
|
+
|
1125
1140
|
fromPartial(_: DeepPartial<TotalPerEntityAggregation>): TotalPerEntityAggregation {
|
1126
1141
|
const message = createBaseTotalPerEntityAggregation();
|
1127
1142
|
return message;
|
@@ -1178,6 +1193,10 @@ export const RetentionConfig = {
|
|
1178
1193
|
return obj;
|
1179
1194
|
},
|
1180
1195
|
|
1196
|
+
create(base?: DeepPartial<RetentionConfig>): RetentionConfig {
|
1197
|
+
return RetentionConfig.fromPartial(base ?? {});
|
1198
|
+
},
|
1199
|
+
|
1181
1200
|
fromPartial(object: DeepPartial<RetentionConfig>): RetentionConfig {
|
1182
1201
|
const message = createBaseRetentionConfig();
|
1183
1202
|
message.retentionEventName = object.retentionEventName ?? "";
|
@@ -1295,6 +1314,10 @@ export const EventTrackingConfig = {
|
|
1295
1314
|
return obj;
|
1296
1315
|
},
|
1297
1316
|
|
1317
|
+
create(base?: DeepPartial<EventTrackingConfig>): EventTrackingConfig {
|
1318
|
+
return EventTrackingConfig.fromPartial(base ?? {});
|
1319
|
+
},
|
1320
|
+
|
1298
1321
|
fromPartial(object: DeepPartial<EventTrackingConfig>): EventTrackingConfig {
|
1299
1322
|
const message = createBaseEventTrackingConfig();
|
1300
1323
|
message.eventName = object.eventName ?? "";
|
@@ -1361,6 +1384,10 @@ export const ExportConfig = {
|
|
1361
1384
|
return obj;
|
1362
1385
|
},
|
1363
1386
|
|
1387
|
+
create(base?: DeepPartial<ExportConfig>): ExportConfig {
|
1388
|
+
return ExportConfig.fromPartial(base ?? {});
|
1389
|
+
},
|
1390
|
+
|
1364
1391
|
fromPartial(object: DeepPartial<ExportConfig>): ExportConfig {
|
1365
1392
|
const message = createBaseExportConfig();
|
1366
1393
|
message.name = object.name ?? "";
|
@@ -1473,6 +1500,10 @@ export const MetricConfig = {
|
|
1473
1500
|
return obj;
|
1474
1501
|
},
|
1475
1502
|
|
1503
|
+
create(base?: DeepPartial<MetricConfig>): MetricConfig {
|
1504
|
+
return MetricConfig.fromPartial(base ?? {});
|
1505
|
+
},
|
1506
|
+
|
1476
1507
|
fromPartial(object: DeepPartial<MetricConfig>): MetricConfig {
|
1477
1508
|
const message = createBaseMetricConfig();
|
1478
1509
|
message.name = object.name ?? "";
|
@@ -1574,6 +1605,10 @@ export const AggregationConfig = {
|
|
1574
1605
|
return obj;
|
1575
1606
|
},
|
1576
1607
|
|
1608
|
+
create(base?: DeepPartial<AggregationConfig>): AggregationConfig {
|
1609
|
+
return AggregationConfig.fromPartial(base ?? {});
|
1610
|
+
},
|
1611
|
+
|
1577
1612
|
fromPartial(object: DeepPartial<AggregationConfig>): AggregationConfig {
|
1578
1613
|
const message = createBaseAggregationConfig();
|
1579
1614
|
message.intervalInMinutes = object.intervalInMinutes?.map((e) => e) || [];
|
@@ -1692,6 +1727,10 @@ export const AccountConfig = {
|
|
1692
1727
|
return obj;
|
1693
1728
|
},
|
1694
1729
|
|
1730
|
+
create(base?: DeepPartial<AccountConfig>): AccountConfig {
|
1731
|
+
return AccountConfig.fromPartial(base ?? {});
|
1732
|
+
},
|
1733
|
+
|
1695
1734
|
fromPartial(object: DeepPartial<AccountConfig>): AccountConfig {
|
1696
1735
|
const message = createBaseAccountConfig();
|
1697
1736
|
message.chainId = object.chainId ?? "";
|
@@ -1754,6 +1793,10 @@ export const HandleInterval = {
|
|
1754
1793
|
return obj;
|
1755
1794
|
},
|
1756
1795
|
|
1796
|
+
create(base?: DeepPartial<HandleInterval>): HandleInterval {
|
1797
|
+
return HandleInterval.fromPartial(base ?? {});
|
1798
|
+
},
|
1799
|
+
|
1757
1800
|
fromPartial(object: DeepPartial<HandleInterval>): HandleInterval {
|
1758
1801
|
const message = createBaseHandleInterval();
|
1759
1802
|
message.recentInterval = object.recentInterval ?? 0;
|
@@ -1838,6 +1881,10 @@ export const OnIntervalConfig = {
|
|
1838
1881
|
return obj;
|
1839
1882
|
},
|
1840
1883
|
|
1884
|
+
create(base?: DeepPartial<OnIntervalConfig>): OnIntervalConfig {
|
1885
|
+
return OnIntervalConfig.fromPartial(base ?? {});
|
1886
|
+
},
|
1887
|
+
|
1841
1888
|
fromPartial(object: DeepPartial<OnIntervalConfig>): OnIntervalConfig {
|
1842
1889
|
const message = createBaseOnIntervalConfig();
|
1843
1890
|
message.handlerId = object.handlerId ?? 0;
|
@@ -1904,6 +1951,10 @@ export const AptosOnIntervalConfig = {
|
|
1904
1951
|
return obj;
|
1905
1952
|
},
|
1906
1953
|
|
1954
|
+
create(base?: DeepPartial<AptosOnIntervalConfig>): AptosOnIntervalConfig {
|
1955
|
+
return AptosOnIntervalConfig.fromPartial(base ?? {});
|
1956
|
+
},
|
1957
|
+
|
1907
1958
|
fromPartial(object: DeepPartial<AptosOnIntervalConfig>): AptosOnIntervalConfig {
|
1908
1959
|
const message = createBaseAptosOnIntervalConfig();
|
1909
1960
|
message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
|
@@ -1980,6 +2031,10 @@ export const ContractInfo = {
|
|
1980
2031
|
return obj;
|
1981
2032
|
},
|
1982
2033
|
|
2034
|
+
create(base?: DeepPartial<ContractInfo>): ContractInfo {
|
2035
|
+
return ContractInfo.fromPartial(base ?? {});
|
2036
|
+
},
|
2037
|
+
|
1983
2038
|
fromPartial(object: DeepPartial<ContractInfo>): ContractInfo {
|
1984
2039
|
const message = createBaseContractInfo();
|
1985
2040
|
message.name = object.name ?? "";
|
@@ -2057,6 +2112,10 @@ export const TemplateInstance = {
|
|
2057
2112
|
return obj;
|
2058
2113
|
},
|
2059
2114
|
|
2115
|
+
create(base?: DeepPartial<TemplateInstance>): TemplateInstance {
|
2116
|
+
return TemplateInstance.fromPartial(base ?? {});
|
2117
|
+
},
|
2118
|
+
|
2060
2119
|
fromPartial(object: DeepPartial<TemplateInstance>): TemplateInstance {
|
2061
2120
|
const message = createBaseTemplateInstance();
|
2062
2121
|
message.contract = (object.contract !== undefined && object.contract !== null)
|
@@ -2117,6 +2176,10 @@ export const StartRequest = {
|
|
2117
2176
|
return obj;
|
2118
2177
|
},
|
2119
2178
|
|
2179
|
+
create(base?: DeepPartial<StartRequest>): StartRequest {
|
2180
|
+
return StartRequest.fromPartial(base ?? {});
|
2181
|
+
},
|
2182
|
+
|
2120
2183
|
fromPartial(object: DeepPartial<StartRequest>): StartRequest {
|
2121
2184
|
const message = createBaseStartRequest();
|
2122
2185
|
message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
|
@@ -2164,6 +2227,10 @@ export const BlockHandlerConfig = {
|
|
2164
2227
|
return obj;
|
2165
2228
|
},
|
2166
2229
|
|
2230
|
+
create(base?: DeepPartial<BlockHandlerConfig>): BlockHandlerConfig {
|
2231
|
+
return BlockHandlerConfig.fromPartial(base ?? {});
|
2232
|
+
},
|
2233
|
+
|
2167
2234
|
fromPartial(object: DeepPartial<BlockHandlerConfig>): BlockHandlerConfig {
|
2168
2235
|
const message = createBaseBlockHandlerConfig();
|
2169
2236
|
message.handlerId = object.handlerId ?? 0;
|
@@ -2229,6 +2296,10 @@ export const EthFetchConfig = {
|
|
2229
2296
|
return obj;
|
2230
2297
|
},
|
2231
2298
|
|
2299
|
+
create(base?: DeepPartial<EthFetchConfig>): EthFetchConfig {
|
2300
|
+
return EthFetchConfig.fromPartial(base ?? {});
|
2301
|
+
},
|
2302
|
+
|
2232
2303
|
fromPartial(object: DeepPartial<EthFetchConfig>): EthFetchConfig {
|
2233
2304
|
const message = createBaseEthFetchConfig();
|
2234
2305
|
message.transaction = object.transaction ?? false;
|
@@ -2297,6 +2368,10 @@ export const TraceHandlerConfig = {
|
|
2297
2368
|
return obj;
|
2298
2369
|
},
|
2299
2370
|
|
2371
|
+
create(base?: DeepPartial<TraceHandlerConfig>): TraceHandlerConfig {
|
2372
|
+
return TraceHandlerConfig.fromPartial(base ?? {});
|
2373
|
+
},
|
2374
|
+
|
2300
2375
|
fromPartial(object: DeepPartial<TraceHandlerConfig>): TraceHandlerConfig {
|
2301
2376
|
const message = createBaseTraceHandlerConfig();
|
2302
2377
|
message.signature = object.signature ?? "";
|
@@ -2359,6 +2434,10 @@ export const TransactionHandlerConfig = {
|
|
2359
2434
|
return obj;
|
2360
2435
|
},
|
2361
2436
|
|
2437
|
+
create(base?: DeepPartial<TransactionHandlerConfig>): TransactionHandlerConfig {
|
2438
|
+
return TransactionHandlerConfig.fromPartial(base ?? {});
|
2439
|
+
},
|
2440
|
+
|
2362
2441
|
fromPartial(object: DeepPartial<TransactionHandlerConfig>): TransactionHandlerConfig {
|
2363
2442
|
const message = createBaseTransactionHandlerConfig();
|
2364
2443
|
message.handlerId = object.handlerId ?? 0;
|
@@ -2432,6 +2511,10 @@ export const LogHandlerConfig = {
|
|
2432
2511
|
return obj;
|
2433
2512
|
},
|
2434
2513
|
|
2514
|
+
create(base?: DeepPartial<LogHandlerConfig>): LogHandlerConfig {
|
2515
|
+
return LogHandlerConfig.fromPartial(base ?? {});
|
2516
|
+
},
|
2517
|
+
|
2435
2518
|
fromPartial(object: DeepPartial<LogHandlerConfig>): LogHandlerConfig {
|
2436
2519
|
const message = createBaseLogHandlerConfig();
|
2437
2520
|
message.filters = object.filters?.map((e) => LogFilter.fromPartial(e)) || [];
|
@@ -2506,6 +2589,10 @@ export const LogFilter = {
|
|
2506
2589
|
return obj;
|
2507
2590
|
},
|
2508
2591
|
|
2592
|
+
create(base?: DeepPartial<LogFilter>): LogFilter {
|
2593
|
+
return LogFilter.fromPartial(base ?? {});
|
2594
|
+
},
|
2595
|
+
|
2509
2596
|
fromPartial(object: DeepPartial<LogFilter>): LogFilter {
|
2510
2597
|
const message = createBaseLogFilter();
|
2511
2598
|
message.topics = object.topics?.map((e) => Topic.fromPartial(e)) || [];
|
@@ -2573,6 +2660,10 @@ export const InstructionHandlerConfig = {
|
|
2573
2660
|
return obj;
|
2574
2661
|
},
|
2575
2662
|
|
2663
|
+
create(base?: DeepPartial<InstructionHandlerConfig>): InstructionHandlerConfig {
|
2664
|
+
return InstructionHandlerConfig.fromPartial(base ?? {});
|
2665
|
+
},
|
2666
|
+
|
2576
2667
|
fromPartial(object: DeepPartial<InstructionHandlerConfig>): InstructionHandlerConfig {
|
2577
2668
|
const message = createBaseInstructionHandlerConfig();
|
2578
2669
|
message.innerInstruction = object.innerInstruction ?? false;
|
@@ -2622,6 +2713,10 @@ export const MoveFetchConfig = {
|
|
2622
2713
|
return obj;
|
2623
2714
|
},
|
2624
2715
|
|
2716
|
+
create(base?: DeepPartial<MoveFetchConfig>): MoveFetchConfig {
|
2717
|
+
return MoveFetchConfig.fromPartial(base ?? {});
|
2718
|
+
},
|
2719
|
+
|
2625
2720
|
fromPartial(object: DeepPartial<MoveFetchConfig>): MoveFetchConfig {
|
2626
2721
|
const message = createBaseMoveFetchConfig();
|
2627
2722
|
message.resourceChanges = object.resourceChanges ?? false;
|
@@ -2692,6 +2787,10 @@ export const MoveEventHandlerConfig = {
|
|
2692
2787
|
return obj;
|
2693
2788
|
},
|
2694
2789
|
|
2790
|
+
create(base?: DeepPartial<MoveEventHandlerConfig>): MoveEventHandlerConfig {
|
2791
|
+
return MoveEventHandlerConfig.fromPartial(base ?? {});
|
2792
|
+
},
|
2793
|
+
|
2695
2794
|
fromPartial(object: DeepPartial<MoveEventHandlerConfig>): MoveEventHandlerConfig {
|
2696
2795
|
const message = createBaseMoveEventHandlerConfig();
|
2697
2796
|
message.filters = object.filters?.map((e) => MoveEventFilter.fromPartial(e)) || [];
|
@@ -2753,6 +2852,10 @@ export const MoveEventFilter = {
|
|
2753
2852
|
return obj;
|
2754
2853
|
},
|
2755
2854
|
|
2855
|
+
create(base?: DeepPartial<MoveEventFilter>): MoveEventFilter {
|
2856
|
+
return MoveEventFilter.fromPartial(base ?? {});
|
2857
|
+
},
|
2858
|
+
|
2756
2859
|
fromPartial(object: DeepPartial<MoveEventFilter>): MoveEventFilter {
|
2757
2860
|
const message = createBaseMoveEventFilter();
|
2758
2861
|
message.type = object.type ?? "";
|
@@ -2824,6 +2927,10 @@ export const MoveCallHandlerConfig = {
|
|
2824
2927
|
return obj;
|
2825
2928
|
},
|
2826
2929
|
|
2930
|
+
create(base?: DeepPartial<MoveCallHandlerConfig>): MoveCallHandlerConfig {
|
2931
|
+
return MoveCallHandlerConfig.fromPartial(base ?? {});
|
2932
|
+
},
|
2933
|
+
|
2827
2934
|
fromPartial(object: DeepPartial<MoveCallHandlerConfig>): MoveCallHandlerConfig {
|
2828
2935
|
const message = createBaseMoveCallHandlerConfig();
|
2829
2936
|
message.filters = object.filters?.map((e) => MoveCallFilter.fromPartial(e)) || [];
|
@@ -2905,6 +3012,10 @@ export const MoveCallFilter = {
|
|
2905
3012
|
return obj;
|
2906
3013
|
},
|
2907
3014
|
|
3015
|
+
create(base?: DeepPartial<MoveCallFilter>): MoveCallFilter {
|
3016
|
+
return MoveCallFilter.fromPartial(base ?? {});
|
3017
|
+
},
|
3018
|
+
|
2908
3019
|
fromPartial(object: DeepPartial<MoveCallFilter>): MoveCallFilter {
|
2909
3020
|
const message = createBaseMoveCallFilter();
|
2910
3021
|
message.function = object.function ?? "";
|
@@ -2959,6 +3070,10 @@ export const Topic = {
|
|
2959
3070
|
return obj;
|
2960
3071
|
},
|
2961
3072
|
|
3073
|
+
create(base?: DeepPartial<Topic>): Topic {
|
3074
|
+
return Topic.fromPartial(base ?? {});
|
3075
|
+
},
|
3076
|
+
|
2962
3077
|
fromPartial(object: DeepPartial<Topic>): Topic {
|
2963
3078
|
const message = createBaseTopic();
|
2964
3079
|
message.hashes = object.hashes?.map((e) => e) || [];
|
@@ -3012,6 +3127,10 @@ export const ProcessBindingsRequest = {
|
|
3012
3127
|
return obj;
|
3013
3128
|
},
|
3014
3129
|
|
3130
|
+
create(base?: DeepPartial<ProcessBindingsRequest>): ProcessBindingsRequest {
|
3131
|
+
return ProcessBindingsRequest.fromPartial(base ?? {});
|
3132
|
+
},
|
3133
|
+
|
3015
3134
|
fromPartial(object: DeepPartial<ProcessBindingsRequest>): ProcessBindingsRequest {
|
3016
3135
|
const message = createBaseProcessBindingsRequest();
|
3017
3136
|
message.bindings = object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
|
@@ -3069,6 +3188,10 @@ export const ProcessBindingResponse = {
|
|
3069
3188
|
return obj;
|
3070
3189
|
},
|
3071
3190
|
|
3191
|
+
create(base?: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse {
|
3192
|
+
return ProcessBindingResponse.fromPartial(base ?? {});
|
3193
|
+
},
|
3194
|
+
|
3072
3195
|
fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse {
|
3073
3196
|
const message = createBaseProcessBindingResponse();
|
3074
3197
|
message.result = (object.result !== undefined && object.result !== null)
|
@@ -3079,74 +3202,6 @@ export const ProcessBindingResponse = {
|
|
3079
3202
|
},
|
3080
3203
|
};
|
3081
3204
|
|
3082
|
-
function createBaseRawTransaction(): RawTransaction {
|
3083
|
-
return { raw: new Uint8Array(), programAccountId: undefined, slot: undefined };
|
3084
|
-
}
|
3085
|
-
|
3086
|
-
export const RawTransaction = {
|
3087
|
-
encode(message: RawTransaction, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3088
|
-
if (message.raw.length !== 0) {
|
3089
|
-
writer.uint32(10).bytes(message.raw);
|
3090
|
-
}
|
3091
|
-
if (message.programAccountId !== undefined) {
|
3092
|
-
writer.uint32(18).string(message.programAccountId);
|
3093
|
-
}
|
3094
|
-
if (message.slot !== undefined) {
|
3095
|
-
writer.uint32(24).uint64(message.slot.toString());
|
3096
|
-
}
|
3097
|
-
return writer;
|
3098
|
-
},
|
3099
|
-
|
3100
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RawTransaction {
|
3101
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3102
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
3103
|
-
const message = createBaseRawTransaction();
|
3104
|
-
while (reader.pos < end) {
|
3105
|
-
const tag = reader.uint32();
|
3106
|
-
switch (tag >>> 3) {
|
3107
|
-
case 1:
|
3108
|
-
message.raw = reader.bytes();
|
3109
|
-
break;
|
3110
|
-
case 2:
|
3111
|
-
message.programAccountId = reader.string();
|
3112
|
-
break;
|
3113
|
-
case 3:
|
3114
|
-
message.slot = longToBigint(reader.uint64() as Long);
|
3115
|
-
break;
|
3116
|
-
default:
|
3117
|
-
reader.skipType(tag & 7);
|
3118
|
-
break;
|
3119
|
-
}
|
3120
|
-
}
|
3121
|
-
return message;
|
3122
|
-
},
|
3123
|
-
|
3124
|
-
fromJSON(object: any): RawTransaction {
|
3125
|
-
return {
|
3126
|
-
raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(),
|
3127
|
-
programAccountId: isSet(object.programAccountId) ? String(object.programAccountId) : undefined,
|
3128
|
-
slot: isSet(object.slot) ? BigInt(object.slot) : undefined,
|
3129
|
-
};
|
3130
|
-
},
|
3131
|
-
|
3132
|
-
toJSON(message: RawTransaction): unknown {
|
3133
|
-
const obj: any = {};
|
3134
|
-
message.raw !== undefined &&
|
3135
|
-
(obj.raw = base64FromBytes(message.raw !== undefined ? message.raw : new Uint8Array()));
|
3136
|
-
message.programAccountId !== undefined && (obj.programAccountId = message.programAccountId);
|
3137
|
-
message.slot !== undefined && (obj.slot = message.slot.toString());
|
3138
|
-
return obj;
|
3139
|
-
},
|
3140
|
-
|
3141
|
-
fromPartial(object: DeepPartial<RawTransaction>): RawTransaction {
|
3142
|
-
const message = createBaseRawTransaction();
|
3143
|
-
message.raw = object.raw ?? new Uint8Array();
|
3144
|
-
message.programAccountId = object.programAccountId ?? undefined;
|
3145
|
-
message.slot = object.slot ?? undefined;
|
3146
|
-
return message;
|
3147
|
-
},
|
3148
|
-
};
|
3149
|
-
|
3150
3205
|
function createBaseData(): Data {
|
3151
3206
|
return {
|
3152
3207
|
raw: new Uint8Array(),
|
@@ -3289,6 +3344,10 @@ export const Data = {
|
|
3289
3344
|
return obj;
|
3290
3345
|
},
|
3291
3346
|
|
3347
|
+
create(base?: DeepPartial<Data>): Data {
|
3348
|
+
return Data.fromPartial(base ?? {});
|
3349
|
+
},
|
3350
|
+
|
3292
3351
|
fromPartial(object: DeepPartial<Data>): Data {
|
3293
3352
|
const message = createBaseData();
|
3294
3353
|
message.raw = object.raw ?? new Uint8Array();
|
@@ -3406,6 +3465,10 @@ export const Data_EthLog = {
|
|
3406
3465
|
return obj;
|
3407
3466
|
},
|
3408
3467
|
|
3468
|
+
create(base?: DeepPartial<Data_EthLog>): Data_EthLog {
|
3469
|
+
return Data_EthLog.fromPartial(base ?? {});
|
3470
|
+
},
|
3471
|
+
|
3409
3472
|
fromPartial(object: DeepPartial<Data_EthLog>): Data_EthLog {
|
3410
3473
|
const message = createBaseData_EthLog();
|
3411
3474
|
message.log = object.log ?? undefined;
|
@@ -3457,6 +3520,10 @@ export const Data_EthBlock = {
|
|
3457
3520
|
return obj;
|
3458
3521
|
},
|
3459
3522
|
|
3523
|
+
create(base?: DeepPartial<Data_EthBlock>): Data_EthBlock {
|
3524
|
+
return Data_EthBlock.fromPartial(base ?? {});
|
3525
|
+
},
|
3526
|
+
|
3460
3527
|
fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock {
|
3461
3528
|
const message = createBaseData_EthBlock();
|
3462
3529
|
message.block = object.block ?? undefined;
|
@@ -3530,6 +3597,10 @@ export const Data_EthTransaction = {
|
|
3530
3597
|
return obj;
|
3531
3598
|
},
|
3532
3599
|
|
3600
|
+
create(base?: DeepPartial<Data_EthTransaction>): Data_EthTransaction {
|
3601
|
+
return Data_EthTransaction.fromPartial(base ?? {});
|
3602
|
+
},
|
3603
|
+
|
3533
3604
|
fromPartial(object: DeepPartial<Data_EthTransaction>): Data_EthTransaction {
|
3534
3605
|
const message = createBaseData_EthTransaction();
|
3535
3606
|
message.transaction = object.transaction ?? undefined;
|
@@ -3620,6 +3691,10 @@ export const Data_EthTrace = {
|
|
3620
3691
|
return obj;
|
3621
3692
|
},
|
3622
3693
|
|
3694
|
+
create(base?: DeepPartial<Data_EthTrace>): Data_EthTrace {
|
3695
|
+
return Data_EthTrace.fromPartial(base ?? {});
|
3696
|
+
},
|
3697
|
+
|
3623
3698
|
fromPartial(object: DeepPartial<Data_EthTrace>): Data_EthTrace {
|
3624
3699
|
const message = createBaseData_EthTrace();
|
3625
3700
|
message.trace = object.trace ?? undefined;
|
@@ -3709,6 +3784,10 @@ export const Data_SolInstruction = {
|
|
3709
3784
|
return obj;
|
3710
3785
|
},
|
3711
3786
|
|
3787
|
+
create(base?: DeepPartial<Data_SolInstruction>): Data_SolInstruction {
|
3788
|
+
return Data_SolInstruction.fromPartial(base ?? {});
|
3789
|
+
},
|
3790
|
+
|
3712
3791
|
fromPartial(object: DeepPartial<Data_SolInstruction>): Data_SolInstruction {
|
3713
3792
|
const message = createBaseData_SolInstruction();
|
3714
3793
|
message.instructionData = object.instructionData ?? "";
|
@@ -3760,6 +3839,10 @@ export const Data_AptEvent = {
|
|
3760
3839
|
return obj;
|
3761
3840
|
},
|
3762
3841
|
|
3842
|
+
create(base?: DeepPartial<Data_AptEvent>): Data_AptEvent {
|
3843
|
+
return Data_AptEvent.fromPartial(base ?? {});
|
3844
|
+
},
|
3845
|
+
|
3763
3846
|
fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent {
|
3764
3847
|
const message = createBaseData_AptEvent();
|
3765
3848
|
message.transaction = object.transaction ?? undefined;
|
@@ -3807,6 +3890,10 @@ export const Data_AptCall = {
|
|
3807
3890
|
return obj;
|
3808
3891
|
},
|
3809
3892
|
|
3893
|
+
create(base?: DeepPartial<Data_AptCall>): Data_AptCall {
|
3894
|
+
return Data_AptCall.fromPartial(base ?? {});
|
3895
|
+
},
|
3896
|
+
|
3810
3897
|
fromPartial(object: DeepPartial<Data_AptCall>): Data_AptCall {
|
3811
3898
|
const message = createBaseData_AptCall();
|
3812
3899
|
message.transaction = object.transaction ?? undefined;
|
@@ -3876,6 +3963,10 @@ export const Data_AptResource = {
|
|
3876
3963
|
return obj;
|
3877
3964
|
},
|
3878
3965
|
|
3966
|
+
create(base?: DeepPartial<Data_AptResource>): Data_AptResource {
|
3967
|
+
return Data_AptResource.fromPartial(base ?? {});
|
3968
|
+
},
|
3969
|
+
|
3879
3970
|
fromPartial(object: DeepPartial<Data_AptResource>): Data_AptResource {
|
3880
3971
|
const message = createBaseData_AptResource();
|
3881
3972
|
message.resources = object.resources?.map((e) => e) || [];
|
@@ -3925,6 +4016,10 @@ export const Data_SuiEvent = {
|
|
3925
4016
|
return obj;
|
3926
4017
|
},
|
3927
4018
|
|
4019
|
+
create(base?: DeepPartial<Data_SuiEvent>): Data_SuiEvent {
|
4020
|
+
return Data_SuiEvent.fromPartial(base ?? {});
|
4021
|
+
},
|
4022
|
+
|
3928
4023
|
fromPartial(object: DeepPartial<Data_SuiEvent>): Data_SuiEvent {
|
3929
4024
|
const message = createBaseData_SuiEvent();
|
3930
4025
|
message.transaction = object.transaction ?? undefined;
|
@@ -3972,6 +4067,10 @@ export const Data_SuiCall = {
|
|
3972
4067
|
return obj;
|
3973
4068
|
},
|
3974
4069
|
|
4070
|
+
create(base?: DeepPartial<Data_SuiCall>): Data_SuiCall {
|
4071
|
+
return Data_SuiCall.fromPartial(base ?? {});
|
4072
|
+
},
|
4073
|
+
|
3975
4074
|
fromPartial(object: DeepPartial<Data_SuiCall>): Data_SuiCall {
|
3976
4075
|
const message = createBaseData_SuiCall();
|
3977
4076
|
message.transaction = object.transaction ?? undefined;
|
@@ -4050,6 +4149,10 @@ export const DataBinding = {
|
|
4050
4149
|
return obj;
|
4051
4150
|
},
|
4052
4151
|
|
4152
|
+
create(base?: DeepPartial<DataBinding>): DataBinding {
|
4153
|
+
return DataBinding.fromPartial(base ?? {});
|
4154
|
+
},
|
4155
|
+
|
4053
4156
|
fromPartial(object: DeepPartial<DataBinding>): DataBinding {
|
4054
4157
|
const message = createBaseDataBinding();
|
4055
4158
|
message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
|
@@ -4153,6 +4256,10 @@ export const ProcessResult = {
|
|
4153
4256
|
return obj;
|
4154
4257
|
},
|
4155
4258
|
|
4259
|
+
create(base?: DeepPartial<ProcessResult>): ProcessResult {
|
4260
|
+
return ProcessResult.fromPartial(base ?? {});
|
4261
|
+
},
|
4262
|
+
|
4156
4263
|
fromPartial(object: DeepPartial<ProcessResult>): ProcessResult {
|
4157
4264
|
const message = createBaseProcessResult();
|
4158
4265
|
message.gauges = object.gauges?.map((e) => GaugeResult.fromPartial(e)) || [];
|
@@ -4293,6 +4400,10 @@ export const RecordMetaData = {
|
|
4293
4400
|
return obj;
|
4294
4401
|
},
|
4295
4402
|
|
4403
|
+
create(base?: DeepPartial<RecordMetaData>): RecordMetaData {
|
4404
|
+
return RecordMetaData.fromPartial(base ?? {});
|
4405
|
+
},
|
4406
|
+
|
4296
4407
|
fromPartial(object: DeepPartial<RecordMetaData>): RecordMetaData {
|
4297
4408
|
const message = createBaseRecordMetaData();
|
4298
4409
|
message.address = object.address ?? "";
|
@@ -4360,6 +4471,10 @@ export const RecordMetaData_LabelsEntry = {
|
|
4360
4471
|
return obj;
|
4361
4472
|
},
|
4362
4473
|
|
4474
|
+
create(base?: DeepPartial<RecordMetaData_LabelsEntry>): RecordMetaData_LabelsEntry {
|
4475
|
+
return RecordMetaData_LabelsEntry.fromPartial(base ?? {});
|
4476
|
+
},
|
4477
|
+
|
4363
4478
|
fromPartial(object: DeepPartial<RecordMetaData_LabelsEntry>): RecordMetaData_LabelsEntry {
|
4364
4479
|
const message = createBaseRecordMetaData_LabelsEntry();
|
4365
4480
|
message.key = object.key ?? "";
|
@@ -4427,6 +4542,10 @@ export const MetricValue = {
|
|
4427
4542
|
return obj;
|
4428
4543
|
},
|
4429
4544
|
|
4545
|
+
create(base?: DeepPartial<MetricValue>): MetricValue {
|
4546
|
+
return MetricValue.fromPartial(base ?? {});
|
4547
|
+
},
|
4548
|
+
|
4430
4549
|
fromPartial(object: DeepPartial<MetricValue>): MetricValue {
|
4431
4550
|
const message = createBaseMetricValue();
|
4432
4551
|
message.bigDecimal = object.bigDecimal ?? undefined;
|
@@ -4489,6 +4608,10 @@ export const BigInteger = {
|
|
4489
4608
|
return obj;
|
4490
4609
|
},
|
4491
4610
|
|
4611
|
+
create(base?: DeepPartial<BigInteger>): BigInteger {
|
4612
|
+
return BigInteger.fromPartial(base ?? {});
|
4613
|
+
},
|
4614
|
+
|
4492
4615
|
fromPartial(object: DeepPartial<BigInteger>): BigInteger {
|
4493
4616
|
const message = createBaseBigInteger();
|
4494
4617
|
message.negative = object.negative ?? false;
|
@@ -4537,6 +4660,10 @@ export const RuntimeInfo = {
|
|
4537
4660
|
return obj;
|
4538
4661
|
},
|
4539
4662
|
|
4663
|
+
create(base?: DeepPartial<RuntimeInfo>): RuntimeInfo {
|
4664
|
+
return RuntimeInfo.fromPartial(base ?? {});
|
4665
|
+
},
|
4666
|
+
|
4540
4667
|
fromPartial(object: DeepPartial<RuntimeInfo>): RuntimeInfo {
|
4541
4668
|
const message = createBaseRuntimeInfo();
|
4542
4669
|
message.from = object.from ?? 0;
|
@@ -4605,6 +4732,10 @@ export const GaugeResult = {
|
|
4605
4732
|
return obj;
|
4606
4733
|
},
|
4607
4734
|
|
4735
|
+
create(base?: DeepPartial<GaugeResult>): GaugeResult {
|
4736
|
+
return GaugeResult.fromPartial(base ?? {});
|
4737
|
+
},
|
4738
|
+
|
4608
4739
|
fromPartial(object: DeepPartial<GaugeResult>): GaugeResult {
|
4609
4740
|
const message = createBaseGaugeResult();
|
4610
4741
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4689,6 +4820,10 @@ export const CounterResult = {
|
|
4689
4820
|
return obj;
|
4690
4821
|
},
|
4691
4822
|
|
4823
|
+
create(base?: DeepPartial<CounterResult>): CounterResult {
|
4824
|
+
return CounterResult.fromPartial(base ?? {});
|
4825
|
+
},
|
4826
|
+
|
4692
4827
|
fromPartial(object: DeepPartial<CounterResult>): CounterResult {
|
4693
4828
|
const message = createBaseCounterResult();
|
4694
4829
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4789,6 +4924,10 @@ export const LogResult = {
|
|
4789
4924
|
return obj;
|
4790
4925
|
},
|
4791
4926
|
|
4927
|
+
create(base?: DeepPartial<LogResult>): LogResult {
|
4928
|
+
return LogResult.fromPartial(base ?? {});
|
4929
|
+
},
|
4930
|
+
|
4792
4931
|
fromPartial(object: DeepPartial<LogResult>): LogResult {
|
4793
4932
|
const message = createBaseLogResult();
|
4794
4933
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4905,6 +5044,10 @@ export const EventTrackingResult = {
|
|
4905
5044
|
return obj;
|
4906
5045
|
},
|
4907
5046
|
|
5047
|
+
create(base?: DeepPartial<EventTrackingResult>): EventTrackingResult {
|
5048
|
+
return EventTrackingResult.fromPartial(base ?? {});
|
5049
|
+
},
|
5050
|
+
|
4908
5051
|
fromPartial(object: DeepPartial<EventTrackingResult>): EventTrackingResult {
|
4909
5052
|
const message = createBaseEventTrackingResult();
|
4910
5053
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4982,6 +5125,10 @@ export const ExportResult = {
|
|
4982
5125
|
return obj;
|
4983
5126
|
},
|
4984
5127
|
|
5128
|
+
create(base?: DeepPartial<ExportResult>): ExportResult {
|
5129
|
+
return ExportResult.fromPartial(base ?? {});
|
5130
|
+
},
|
5131
|
+
|
4985
5132
|
fromPartial(object: DeepPartial<ExportResult>): ExportResult {
|
4986
5133
|
const message = createBaseExportResult();
|
4987
5134
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
package/src/service.ts
CHANGED
@@ -140,7 +140,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
140
140
|
}
|
141
141
|
|
142
142
|
function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType) {
|
143
|
-
for (const list of [results.gauges, results.counters, results.
|
143
|
+
for (const list of [results.gauges, results.counters, results.events, results.exports]) {
|
144
144
|
list.forEach((e) => {
|
145
145
|
e.runtimeInfo = {
|
146
146
|
from: handlerType,
|
package/src/utils.ts
CHANGED
@@ -6,7 +6,6 @@ export function mergeProcessResults(results: ProcessResult[]): ProcessResult {
|
|
6
6
|
for (const r of results) {
|
7
7
|
res.counters = res.counters.concat(r.counters)
|
8
8
|
res.gauges = res.gauges.concat(r.gauges)
|
9
|
-
res.logs = res.logs.concat(r.logs)
|
10
9
|
res.events = res.events.concat(r.events)
|
11
10
|
res.exports = res.exports.concat(r.exports)
|
12
11
|
}
|