@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
@@ -319,6 +319,9 @@ export const ProjectConfig = {
|
|
319
319
|
message.version !== undefined && (obj.version = message.version);
|
320
320
|
return obj;
|
321
321
|
},
|
322
|
+
create(base) {
|
323
|
+
return ProjectConfig.fromPartial(base ?? {});
|
324
|
+
},
|
322
325
|
fromPartial(object) {
|
323
326
|
const message = createBaseProjectConfig();
|
324
327
|
message.name = object.name ?? "";
|
@@ -354,6 +357,9 @@ export const ProcessConfigRequest = {
|
|
354
357
|
const obj = {};
|
355
358
|
return obj;
|
356
359
|
},
|
360
|
+
create(base) {
|
361
|
+
return ProcessConfigRequest.fromPartial(base ?? {});
|
362
|
+
},
|
357
363
|
fromPartial(_) {
|
358
364
|
const message = createBaseProcessConfigRequest();
|
359
365
|
return message;
|
@@ -494,6 +500,9 @@ export const ProcessConfigResponse = {
|
|
494
500
|
}
|
495
501
|
return obj;
|
496
502
|
},
|
503
|
+
create(base) {
|
504
|
+
return ProcessConfigResponse.fromPartial(base ?? {});
|
505
|
+
},
|
497
506
|
fromPartial(object) {
|
498
507
|
const message = createBaseProcessConfigResponse();
|
499
508
|
message.config = (object.config !== undefined && object.config !== null)
|
@@ -684,6 +693,9 @@ export const ContractConfig = {
|
|
684
693
|
message.processorType !== undefined && (obj.processorType = message.processorType);
|
685
694
|
return obj;
|
686
695
|
},
|
696
|
+
create(base) {
|
697
|
+
return ContractConfig.fromPartial(base ?? {});
|
698
|
+
},
|
687
699
|
fromPartial(object) {
|
688
700
|
const message = createBaseContractConfig();
|
689
701
|
message.contract = (object.contract !== undefined && object.contract !== null)
|
@@ -732,6 +744,9 @@ export const TotalPerEntityAggregation = {
|
|
732
744
|
const obj = {};
|
733
745
|
return obj;
|
734
746
|
},
|
747
|
+
create(base) {
|
748
|
+
return TotalPerEntityAggregation.fromPartial(base ?? {});
|
749
|
+
},
|
735
750
|
fromPartial(_) {
|
736
751
|
const message = createBaseTotalPerEntityAggregation();
|
737
752
|
return message;
|
@@ -782,6 +797,9 @@ export const RetentionConfig = {
|
|
782
797
|
message.days !== undefined && (obj.days = Math.round(message.days));
|
783
798
|
return obj;
|
784
799
|
},
|
800
|
+
create(base) {
|
801
|
+
return RetentionConfig.fromPartial(base ?? {});
|
802
|
+
},
|
785
803
|
fromPartial(object) {
|
786
804
|
const message = createBaseRetentionConfig();
|
787
805
|
message.retentionEventName = object.retentionEventName ?? "";
|
@@ -895,6 +913,9 @@ export const EventTrackingConfig = {
|
|
895
913
|
(obj.retentionConfig = message.retentionConfig ? RetentionConfig.toJSON(message.retentionConfig) : undefined);
|
896
914
|
return obj;
|
897
915
|
},
|
916
|
+
create(base) {
|
917
|
+
return EventTrackingConfig.fromPartial(base ?? {});
|
918
|
+
},
|
898
919
|
fromPartial(object) {
|
899
920
|
const message = createBaseEventTrackingConfig();
|
900
921
|
message.eventName = object.eventName ?? "";
|
@@ -955,6 +976,9 @@ export const ExportConfig = {
|
|
955
976
|
message.channel !== undefined && (obj.channel = message.channel);
|
956
977
|
return obj;
|
957
978
|
},
|
979
|
+
create(base) {
|
980
|
+
return ExportConfig.fromPartial(base ?? {});
|
981
|
+
},
|
958
982
|
fromPartial(object) {
|
959
983
|
const message = createBaseExportConfig();
|
960
984
|
message.name = object.name ?? "";
|
@@ -1061,6 +1085,9 @@ export const MetricConfig = {
|
|
1061
1085
|
: undefined);
|
1062
1086
|
return obj;
|
1063
1087
|
},
|
1088
|
+
create(base) {
|
1089
|
+
return MetricConfig.fromPartial(base ?? {});
|
1090
|
+
},
|
1064
1091
|
fromPartial(object) {
|
1065
1092
|
const message = createBaseMetricConfig();
|
1066
1093
|
message.name = object.name ?? "";
|
@@ -1160,6 +1187,9 @@ export const AggregationConfig = {
|
|
1160
1187
|
message.discardOrigin !== undefined && (obj.discardOrigin = message.discardOrigin);
|
1161
1188
|
return obj;
|
1162
1189
|
},
|
1190
|
+
create(base) {
|
1191
|
+
return AggregationConfig.fromPartial(base ?? {});
|
1192
|
+
},
|
1163
1193
|
fromPartial(object) {
|
1164
1194
|
const message = createBaseAggregationConfig();
|
1165
1195
|
message.intervalInMinutes = object.intervalInMinutes?.map((e) => e) || [];
|
@@ -1273,6 +1303,9 @@ export const AccountConfig = {
|
|
1273
1303
|
}
|
1274
1304
|
return obj;
|
1275
1305
|
},
|
1306
|
+
create(base) {
|
1307
|
+
return AccountConfig.fromPartial(base ?? {});
|
1308
|
+
},
|
1276
1309
|
fromPartial(object) {
|
1277
1310
|
const message = createBaseAccountConfig();
|
1278
1311
|
message.chainId = object.chainId ?? "";
|
@@ -1329,6 +1362,9 @@ export const HandleInterval = {
|
|
1329
1362
|
message.backfillInterval !== undefined && (obj.backfillInterval = Math.round(message.backfillInterval));
|
1330
1363
|
return obj;
|
1331
1364
|
},
|
1365
|
+
create(base) {
|
1366
|
+
return HandleInterval.fromPartial(base ?? {});
|
1367
|
+
},
|
1332
1368
|
fromPartial(object) {
|
1333
1369
|
const message = createBaseHandleInterval();
|
1334
1370
|
message.recentInterval = object.recentInterval ?? 0;
|
@@ -1407,6 +1443,9 @@ export const OnIntervalConfig = {
|
|
1407
1443
|
(obj.slotInterval = message.slotInterval ? HandleInterval.toJSON(message.slotInterval) : undefined);
|
1408
1444
|
return obj;
|
1409
1445
|
},
|
1446
|
+
create(base) {
|
1447
|
+
return OnIntervalConfig.fromPartial(base ?? {});
|
1448
|
+
},
|
1410
1449
|
fromPartial(object) {
|
1411
1450
|
const message = createBaseOnIntervalConfig();
|
1412
1451
|
message.handlerId = object.handlerId ?? 0;
|
@@ -1467,6 +1506,9 @@ export const AptosOnIntervalConfig = {
|
|
1467
1506
|
message.type !== undefined && (obj.type = message.type);
|
1468
1507
|
return obj;
|
1469
1508
|
},
|
1509
|
+
create(base) {
|
1510
|
+
return AptosOnIntervalConfig.fromPartial(base ?? {});
|
1511
|
+
},
|
1470
1512
|
fromPartial(object) {
|
1471
1513
|
const message = createBaseAptosOnIntervalConfig();
|
1472
1514
|
message.intervalConfig = (object.intervalConfig !== undefined && object.intervalConfig !== null)
|
@@ -1537,6 +1579,9 @@ export const ContractInfo = {
|
|
1537
1579
|
message.abi !== undefined && (obj.abi = message.abi);
|
1538
1580
|
return obj;
|
1539
1581
|
},
|
1582
|
+
create(base) {
|
1583
|
+
return ContractInfo.fromPartial(base ?? {});
|
1584
|
+
},
|
1540
1585
|
fromPartial(object) {
|
1541
1586
|
const message = createBaseContractInfo();
|
1542
1587
|
message.name = object.name ?? "";
|
@@ -1608,6 +1653,9 @@ export const TemplateInstance = {
|
|
1608
1653
|
message.templateId !== undefined && (obj.templateId = Math.round(message.templateId));
|
1609
1654
|
return obj;
|
1610
1655
|
},
|
1656
|
+
create(base) {
|
1657
|
+
return TemplateInstance.fromPartial(base ?? {});
|
1658
|
+
},
|
1611
1659
|
fromPartial(object) {
|
1612
1660
|
const message = createBaseTemplateInstance();
|
1613
1661
|
message.contract = (object.contract !== undefined && object.contract !== null)
|
@@ -1663,6 +1711,9 @@ export const StartRequest = {
|
|
1663
1711
|
}
|
1664
1712
|
return obj;
|
1665
1713
|
},
|
1714
|
+
create(base) {
|
1715
|
+
return StartRequest.fromPartial(base ?? {});
|
1716
|
+
},
|
1666
1717
|
fromPartial(object) {
|
1667
1718
|
const message = createBaseStartRequest();
|
1668
1719
|
message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
|
@@ -1704,6 +1755,9 @@ export const BlockHandlerConfig = {
|
|
1704
1755
|
message.handlerId !== undefined && (obj.handlerId = Math.round(message.handlerId));
|
1705
1756
|
return obj;
|
1706
1757
|
},
|
1758
|
+
create(base) {
|
1759
|
+
return BlockHandlerConfig.fromPartial(base ?? {});
|
1760
|
+
},
|
1707
1761
|
fromPartial(object) {
|
1708
1762
|
const message = createBaseBlockHandlerConfig();
|
1709
1763
|
message.handlerId = object.handlerId ?? 0;
|
@@ -1763,6 +1817,9 @@ export const EthFetchConfig = {
|
|
1763
1817
|
message.block !== undefined && (obj.block = message.block);
|
1764
1818
|
return obj;
|
1765
1819
|
},
|
1820
|
+
create(base) {
|
1821
|
+
return EthFetchConfig.fromPartial(base ?? {});
|
1822
|
+
},
|
1766
1823
|
fromPartial(object) {
|
1767
1824
|
const message = createBaseEthFetchConfig();
|
1768
1825
|
message.transaction = object.transaction ?? false;
|
@@ -1825,6 +1882,9 @@ export const TraceHandlerConfig = {
|
|
1825
1882
|
(obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
|
1826
1883
|
return obj;
|
1827
1884
|
},
|
1885
|
+
create(base) {
|
1886
|
+
return TraceHandlerConfig.fromPartial(base ?? {});
|
1887
|
+
},
|
1828
1888
|
fromPartial(object) {
|
1829
1889
|
const message = createBaseTraceHandlerConfig();
|
1830
1890
|
message.signature = object.signature ?? "";
|
@@ -1881,6 +1941,9 @@ export const TransactionHandlerConfig = {
|
|
1881
1941
|
(obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
|
1882
1942
|
return obj;
|
1883
1943
|
},
|
1944
|
+
create(base) {
|
1945
|
+
return TransactionHandlerConfig.fromPartial(base ?? {});
|
1946
|
+
},
|
1884
1947
|
fromPartial(object) {
|
1885
1948
|
const message = createBaseTransactionHandlerConfig();
|
1886
1949
|
message.handlerId = object.handlerId ?? 0;
|
@@ -1949,6 +2012,9 @@ export const LogHandlerConfig = {
|
|
1949
2012
|
(obj.fetchConfig = message.fetchConfig ? EthFetchConfig.toJSON(message.fetchConfig) : undefined);
|
1950
2013
|
return obj;
|
1951
2014
|
},
|
2015
|
+
create(base) {
|
2016
|
+
return LogHandlerConfig.fromPartial(base ?? {});
|
2017
|
+
},
|
1952
2018
|
fromPartial(object) {
|
1953
2019
|
const message = createBaseLogHandlerConfig();
|
1954
2020
|
message.filters = object.filters?.map((e) => LogFilter.fromPartial(e)) || [];
|
@@ -2018,6 +2084,9 @@ export const LogFilter = {
|
|
2018
2084
|
(obj.addressType = message.addressType !== undefined ? addressTypeToJSON(message.addressType) : undefined);
|
2019
2085
|
return obj;
|
2020
2086
|
},
|
2087
|
+
create(base) {
|
2088
|
+
return LogFilter.fromPartial(base ?? {});
|
2089
|
+
},
|
2021
2090
|
fromPartial(object) {
|
2022
2091
|
const message = createBaseLogFilter();
|
2023
2092
|
message.topics = object.topics?.map((e) => Topic.fromPartial(e)) || [];
|
@@ -2079,6 +2148,9 @@ export const InstructionHandlerConfig = {
|
|
2079
2148
|
message.rawDataInstruction !== undefined && (obj.rawDataInstruction = message.rawDataInstruction);
|
2080
2149
|
return obj;
|
2081
2150
|
},
|
2151
|
+
create(base) {
|
2152
|
+
return InstructionHandlerConfig.fromPartial(base ?? {});
|
2153
|
+
},
|
2082
2154
|
fromPartial(object) {
|
2083
2155
|
const message = createBaseInstructionHandlerConfig();
|
2084
2156
|
message.innerInstruction = object.innerInstruction ?? false;
|
@@ -2122,6 +2194,9 @@ export const MoveFetchConfig = {
|
|
2122
2194
|
message.resourceChanges !== undefined && (obj.resourceChanges = message.resourceChanges);
|
2123
2195
|
return obj;
|
2124
2196
|
},
|
2197
|
+
create(base) {
|
2198
|
+
return MoveFetchConfig.fromPartial(base ?? {});
|
2199
|
+
},
|
2125
2200
|
fromPartial(object) {
|
2126
2201
|
const message = createBaseMoveFetchConfig();
|
2127
2202
|
message.resourceChanges = object.resourceChanges ?? false;
|
@@ -2187,6 +2262,9 @@ export const MoveEventHandlerConfig = {
|
|
2187
2262
|
(obj.fetchConfig = message.fetchConfig ? MoveFetchConfig.toJSON(message.fetchConfig) : undefined);
|
2188
2263
|
return obj;
|
2189
2264
|
},
|
2265
|
+
create(base) {
|
2266
|
+
return MoveEventHandlerConfig.fromPartial(base ?? {});
|
2267
|
+
},
|
2190
2268
|
fromPartial(object) {
|
2191
2269
|
const message = createBaseMoveEventHandlerConfig();
|
2192
2270
|
message.filters = object.filters?.map((e) => MoveEventFilter.fromPartial(e)) || [];
|
@@ -2242,6 +2320,9 @@ export const MoveEventFilter = {
|
|
2242
2320
|
message.account !== undefined && (obj.account = message.account);
|
2243
2321
|
return obj;
|
2244
2322
|
},
|
2323
|
+
create(base) {
|
2324
|
+
return MoveEventFilter.fromPartial(base ?? {});
|
2325
|
+
},
|
2245
2326
|
fromPartial(object) {
|
2246
2327
|
const message = createBaseMoveEventFilter();
|
2247
2328
|
message.type = object.type ?? "";
|
@@ -2308,6 +2389,9 @@ export const MoveCallHandlerConfig = {
|
|
2308
2389
|
(obj.fetchConfig = message.fetchConfig ? MoveFetchConfig.toJSON(message.fetchConfig) : undefined);
|
2309
2390
|
return obj;
|
2310
2391
|
},
|
2392
|
+
create(base) {
|
2393
|
+
return MoveCallHandlerConfig.fromPartial(base ?? {});
|
2394
|
+
},
|
2311
2395
|
fromPartial(object) {
|
2312
2396
|
const message = createBaseMoveCallHandlerConfig();
|
2313
2397
|
message.filters = object.filters?.map((e) => MoveCallFilter.fromPartial(e)) || [];
|
@@ -2384,6 +2468,9 @@ export const MoveCallFilter = {
|
|
2384
2468
|
message.includeFailed !== undefined && (obj.includeFailed = message.includeFailed);
|
2385
2469
|
return obj;
|
2386
2470
|
},
|
2471
|
+
create(base) {
|
2472
|
+
return MoveCallFilter.fromPartial(base ?? {});
|
2473
|
+
},
|
2387
2474
|
fromPartial(object) {
|
2388
2475
|
const message = createBaseMoveCallFilter();
|
2389
2476
|
message.function = object.function ?? "";
|
@@ -2433,6 +2520,9 @@ export const Topic = {
|
|
2433
2520
|
}
|
2434
2521
|
return obj;
|
2435
2522
|
},
|
2523
|
+
create(base) {
|
2524
|
+
return Topic.fromPartial(base ?? {});
|
2525
|
+
},
|
2436
2526
|
fromPartial(object) {
|
2437
2527
|
const message = createBaseTopic();
|
2438
2528
|
message.hashes = object.hashes?.map((e) => e) || [];
|
@@ -2481,6 +2571,9 @@ export const ProcessBindingsRequest = {
|
|
2481
2571
|
}
|
2482
2572
|
return obj;
|
2483
2573
|
},
|
2574
|
+
create(base) {
|
2575
|
+
return ProcessBindingsRequest.fromPartial(base ?? {});
|
2576
|
+
},
|
2484
2577
|
fromPartial(object) {
|
2485
2578
|
const message = createBaseProcessBindingsRequest();
|
2486
2579
|
message.bindings = object.bindings?.map((e) => DataBinding.fromPartial(e)) || [];
|
@@ -2532,6 +2625,9 @@ export const ProcessBindingResponse = {
|
|
2532
2625
|
message.configUpdated !== undefined && (obj.configUpdated = message.configUpdated);
|
2533
2626
|
return obj;
|
2534
2627
|
},
|
2628
|
+
create(base) {
|
2629
|
+
return ProcessBindingResponse.fromPartial(base ?? {});
|
2630
|
+
},
|
2535
2631
|
fromPartial(object) {
|
2536
2632
|
const message = createBaseProcessBindingResponse();
|
2537
2633
|
message.result = (object.result !== undefined && object.result !== null)
|
@@ -2541,68 +2637,6 @@ export const ProcessBindingResponse = {
|
|
2541
2637
|
return message;
|
2542
2638
|
},
|
2543
2639
|
};
|
2544
|
-
function createBaseRawTransaction() {
|
2545
|
-
return { raw: new Uint8Array(), programAccountId: undefined, slot: undefined };
|
2546
|
-
}
|
2547
|
-
export const RawTransaction = {
|
2548
|
-
encode(message, writer = _m0.Writer.create()) {
|
2549
|
-
if (message.raw.length !== 0) {
|
2550
|
-
writer.uint32(10).bytes(message.raw);
|
2551
|
-
}
|
2552
|
-
if (message.programAccountId !== undefined) {
|
2553
|
-
writer.uint32(18).string(message.programAccountId);
|
2554
|
-
}
|
2555
|
-
if (message.slot !== undefined) {
|
2556
|
-
writer.uint32(24).uint64(message.slot.toString());
|
2557
|
-
}
|
2558
|
-
return writer;
|
2559
|
-
},
|
2560
|
-
decode(input, length) {
|
2561
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2562
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
2563
|
-
const message = createBaseRawTransaction();
|
2564
|
-
while (reader.pos < end) {
|
2565
|
-
const tag = reader.uint32();
|
2566
|
-
switch (tag >>> 3) {
|
2567
|
-
case 1:
|
2568
|
-
message.raw = reader.bytes();
|
2569
|
-
break;
|
2570
|
-
case 2:
|
2571
|
-
message.programAccountId = reader.string();
|
2572
|
-
break;
|
2573
|
-
case 3:
|
2574
|
-
message.slot = longToBigint(reader.uint64());
|
2575
|
-
break;
|
2576
|
-
default:
|
2577
|
-
reader.skipType(tag & 7);
|
2578
|
-
break;
|
2579
|
-
}
|
2580
|
-
}
|
2581
|
-
return message;
|
2582
|
-
},
|
2583
|
-
fromJSON(object) {
|
2584
|
-
return {
|
2585
|
-
raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(),
|
2586
|
-
programAccountId: isSet(object.programAccountId) ? String(object.programAccountId) : undefined,
|
2587
|
-
slot: isSet(object.slot) ? BigInt(object.slot) : undefined,
|
2588
|
-
};
|
2589
|
-
},
|
2590
|
-
toJSON(message) {
|
2591
|
-
const obj = {};
|
2592
|
-
message.raw !== undefined &&
|
2593
|
-
(obj.raw = base64FromBytes(message.raw !== undefined ? message.raw : new Uint8Array()));
|
2594
|
-
message.programAccountId !== undefined && (obj.programAccountId = message.programAccountId);
|
2595
|
-
message.slot !== undefined && (obj.slot = message.slot.toString());
|
2596
|
-
return obj;
|
2597
|
-
},
|
2598
|
-
fromPartial(object) {
|
2599
|
-
const message = createBaseRawTransaction();
|
2600
|
-
message.raw = object.raw ?? new Uint8Array();
|
2601
|
-
message.programAccountId = object.programAccountId ?? undefined;
|
2602
|
-
message.slot = object.slot ?? undefined;
|
2603
|
-
return message;
|
2604
|
-
},
|
2605
|
-
};
|
2606
2640
|
function createBaseData() {
|
2607
2641
|
return {
|
2608
2642
|
raw: new Uint8Array(),
|
@@ -2740,6 +2774,9 @@ export const Data = {
|
|
2740
2774
|
message.suiCall !== undefined && (obj.suiCall = message.suiCall ? Data_SuiCall.toJSON(message.suiCall) : undefined);
|
2741
2775
|
return obj;
|
2742
2776
|
},
|
2777
|
+
create(base) {
|
2778
|
+
return Data.fromPartial(base ?? {});
|
2779
|
+
},
|
2743
2780
|
fromPartial(object) {
|
2744
2781
|
const message = createBaseData();
|
2745
2782
|
message.raw = object.raw ?? new Uint8Array();
|
@@ -2851,6 +2888,9 @@ export const Data_EthLog = {
|
|
2851
2888
|
message.block !== undefined && (obj.block = message.block);
|
2852
2889
|
return obj;
|
2853
2890
|
},
|
2891
|
+
create(base) {
|
2892
|
+
return Data_EthLog.fromPartial(base ?? {});
|
2893
|
+
},
|
2854
2894
|
fromPartial(object) {
|
2855
2895
|
const message = createBaseData_EthLog();
|
2856
2896
|
message.log = object.log ?? undefined;
|
@@ -2896,6 +2936,9 @@ export const Data_EthBlock = {
|
|
2896
2936
|
message.block !== undefined && (obj.block = message.block);
|
2897
2937
|
return obj;
|
2898
2938
|
},
|
2939
|
+
create(base) {
|
2940
|
+
return Data_EthBlock.fromPartial(base ?? {});
|
2941
|
+
},
|
2899
2942
|
fromPartial(object) {
|
2900
2943
|
const message = createBaseData_EthBlock();
|
2901
2944
|
message.block = object.block ?? undefined;
|
@@ -2963,6 +3006,9 @@ export const Data_EthTransaction = {
|
|
2963
3006
|
message.block !== undefined && (obj.block = message.block);
|
2964
3007
|
return obj;
|
2965
3008
|
},
|
3009
|
+
create(base) {
|
3010
|
+
return Data_EthTransaction.fromPartial(base ?? {});
|
3011
|
+
},
|
2966
3012
|
fromPartial(object) {
|
2967
3013
|
const message = createBaseData_EthTransaction();
|
2968
3014
|
message.transaction = object.transaction ?? undefined;
|
@@ -3047,6 +3093,9 @@ export const Data_EthTrace = {
|
|
3047
3093
|
message.block !== undefined && (obj.block = message.block);
|
3048
3094
|
return obj;
|
3049
3095
|
},
|
3096
|
+
create(base) {
|
3097
|
+
return Data_EthTrace.fromPartial(base ?? {});
|
3098
|
+
},
|
3050
3099
|
fromPartial(object) {
|
3051
3100
|
const message = createBaseData_EthTrace();
|
3052
3101
|
message.trace = object.trace ?? undefined;
|
@@ -3131,6 +3180,9 @@ export const Data_SolInstruction = {
|
|
3131
3180
|
message.parsed !== undefined && (obj.parsed = message.parsed);
|
3132
3181
|
return obj;
|
3133
3182
|
},
|
3183
|
+
create(base) {
|
3184
|
+
return Data_SolInstruction.fromPartial(base ?? {});
|
3185
|
+
},
|
3134
3186
|
fromPartial(object) {
|
3135
3187
|
const message = createBaseData_SolInstruction();
|
3136
3188
|
message.instructionData = object.instructionData ?? "";
|
@@ -3176,6 +3228,9 @@ export const Data_AptEvent = {
|
|
3176
3228
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
3177
3229
|
return obj;
|
3178
3230
|
},
|
3231
|
+
create(base) {
|
3232
|
+
return Data_AptEvent.fromPartial(base ?? {});
|
3233
|
+
},
|
3179
3234
|
fromPartial(object) {
|
3180
3235
|
const message = createBaseData_AptEvent();
|
3181
3236
|
message.transaction = object.transaction ?? undefined;
|
@@ -3217,6 +3272,9 @@ export const Data_AptCall = {
|
|
3217
3272
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
3218
3273
|
return obj;
|
3219
3274
|
},
|
3275
|
+
create(base) {
|
3276
|
+
return Data_AptCall.fromPartial(base ?? {});
|
3277
|
+
},
|
3220
3278
|
fromPartial(object) {
|
3221
3279
|
const message = createBaseData_AptCall();
|
3222
3280
|
message.transaction = object.transaction ?? undefined;
|
@@ -3281,6 +3339,9 @@ export const Data_AptResource = {
|
|
3281
3339
|
message.timestampMicros !== undefined && (obj.timestampMicros = message.timestampMicros.toString());
|
3282
3340
|
return obj;
|
3283
3341
|
},
|
3342
|
+
create(base) {
|
3343
|
+
return Data_AptResource.fromPartial(base ?? {});
|
3344
|
+
},
|
3284
3345
|
fromPartial(object) {
|
3285
3346
|
const message = createBaseData_AptResource();
|
3286
3347
|
message.resources = object.resources?.map((e) => e) || [];
|
@@ -3324,6 +3385,9 @@ export const Data_SuiEvent = {
|
|
3324
3385
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
3325
3386
|
return obj;
|
3326
3387
|
},
|
3388
|
+
create(base) {
|
3389
|
+
return Data_SuiEvent.fromPartial(base ?? {});
|
3390
|
+
},
|
3327
3391
|
fromPartial(object) {
|
3328
3392
|
const message = createBaseData_SuiEvent();
|
3329
3393
|
message.transaction = object.transaction ?? undefined;
|
@@ -3365,6 +3429,9 @@ export const Data_SuiCall = {
|
|
3365
3429
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
3366
3430
|
return obj;
|
3367
3431
|
},
|
3432
|
+
create(base) {
|
3433
|
+
return Data_SuiCall.fromPartial(base ?? {});
|
3434
|
+
},
|
3368
3435
|
fromPartial(object) {
|
3369
3436
|
const message = createBaseData_SuiCall();
|
3370
3437
|
message.transaction = object.transaction ?? undefined;
|
@@ -3439,6 +3506,9 @@ export const DataBinding = {
|
|
3439
3506
|
}
|
3440
3507
|
return obj;
|
3441
3508
|
},
|
3509
|
+
create(base) {
|
3510
|
+
return DataBinding.fromPartial(base ?? {});
|
3511
|
+
},
|
3442
3512
|
fromPartial(object) {
|
3443
3513
|
const message = createBaseDataBinding();
|
3444
3514
|
message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
|
@@ -3541,6 +3611,9 @@ export const ProcessResult = {
|
|
3541
3611
|
}
|
3542
3612
|
return obj;
|
3543
3613
|
},
|
3614
|
+
create(base) {
|
3615
|
+
return ProcessResult.fromPartial(base ?? {});
|
3616
|
+
},
|
3544
3617
|
fromPartial(object) {
|
3545
3618
|
const message = createBaseProcessResult();
|
3546
3619
|
message.gauges = object.gauges?.map((e) => GaugeResult.fromPartial(e)) || [];
|
@@ -3675,6 +3748,9 @@ export const RecordMetaData = {
|
|
3675
3748
|
}
|
3676
3749
|
return obj;
|
3677
3750
|
},
|
3751
|
+
create(base) {
|
3752
|
+
return RecordMetaData.fromPartial(base ?? {});
|
3753
|
+
},
|
3678
3754
|
fromPartial(object) {
|
3679
3755
|
const message = createBaseRecordMetaData();
|
3680
3756
|
message.address = object.address ?? "";
|
@@ -3736,6 +3812,9 @@ export const RecordMetaData_LabelsEntry = {
|
|
3736
3812
|
message.value !== undefined && (obj.value = message.value);
|
3737
3813
|
return obj;
|
3738
3814
|
},
|
3815
|
+
create(base) {
|
3816
|
+
return RecordMetaData_LabelsEntry.fromPartial(base ?? {});
|
3817
|
+
},
|
3739
3818
|
fromPartial(object) {
|
3740
3819
|
const message = createBaseRecordMetaData_LabelsEntry();
|
3741
3820
|
message.key = object.key ?? "";
|
@@ -3797,6 +3876,9 @@ export const MetricValue = {
|
|
3797
3876
|
(obj.bigInteger = message.bigInteger ? BigInteger.toJSON(message.bigInteger) : undefined);
|
3798
3877
|
return obj;
|
3799
3878
|
},
|
3879
|
+
create(base) {
|
3880
|
+
return MetricValue.fromPartial(base ?? {});
|
3881
|
+
},
|
3800
3882
|
fromPartial(object) {
|
3801
3883
|
const message = createBaseMetricValue();
|
3802
3884
|
message.bigDecimal = object.bigDecimal ?? undefined;
|
@@ -3853,6 +3935,9 @@ export const BigInteger = {
|
|
3853
3935
|
(obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
|
3854
3936
|
return obj;
|
3855
3937
|
},
|
3938
|
+
create(base) {
|
3939
|
+
return BigInteger.fromPartial(base ?? {});
|
3940
|
+
},
|
3856
3941
|
fromPartial(object) {
|
3857
3942
|
const message = createBaseBigInteger();
|
3858
3943
|
message.negative = object.negative ?? false;
|
@@ -3895,6 +3980,9 @@ export const RuntimeInfo = {
|
|
3895
3980
|
message.from !== undefined && (obj.from = handlerTypeToJSON(message.from));
|
3896
3981
|
return obj;
|
3897
3982
|
},
|
3983
|
+
create(base) {
|
3984
|
+
return RuntimeInfo.fromPartial(base ?? {});
|
3985
|
+
},
|
3898
3986
|
fromPartial(object) {
|
3899
3987
|
const message = createBaseRuntimeInfo();
|
3900
3988
|
message.from = object.from ?? 0;
|
@@ -3957,6 +4045,9 @@ export const GaugeResult = {
|
|
3957
4045
|
(obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
|
3958
4046
|
return obj;
|
3959
4047
|
},
|
4048
|
+
create(base) {
|
4049
|
+
return GaugeResult.fromPartial(base ?? {});
|
4050
|
+
},
|
3960
4051
|
fromPartial(object) {
|
3961
4052
|
const message = createBaseGaugeResult();
|
3962
4053
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4035,6 +4126,9 @@ export const CounterResult = {
|
|
4035
4126
|
(obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
|
4036
4127
|
return obj;
|
4037
4128
|
},
|
4129
|
+
create(base) {
|
4130
|
+
return CounterResult.fromPartial(base ?? {});
|
4131
|
+
},
|
4038
4132
|
fromPartial(object) {
|
4039
4133
|
const message = createBaseCounterResult();
|
4040
4134
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4129,6 +4223,9 @@ export const LogResult = {
|
|
4129
4223
|
(obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
|
4130
4224
|
return obj;
|
4131
4225
|
},
|
4226
|
+
create(base) {
|
4227
|
+
return LogResult.fromPartial(base ?? {});
|
4228
|
+
},
|
4132
4229
|
fromPartial(object) {
|
4133
4230
|
const message = createBaseLogResult();
|
4134
4231
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4239,6 +4336,9 @@ export const EventTrackingResult = {
|
|
4239
4336
|
message.noMetric !== undefined && (obj.noMetric = message.noMetric);
|
4240
4337
|
return obj;
|
4241
4338
|
},
|
4339
|
+
create(base) {
|
4340
|
+
return EventTrackingResult.fromPartial(base ?? {});
|
4341
|
+
},
|
4242
4342
|
fromPartial(object) {
|
4243
4343
|
const message = createBaseEventTrackingResult();
|
4244
4344
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
@@ -4310,6 +4410,9 @@ export const ExportResult = {
|
|
4310
4410
|
(obj.runtimeInfo = message.runtimeInfo ? RuntimeInfo.toJSON(message.runtimeInfo) : undefined);
|
4311
4411
|
return obj;
|
4312
4412
|
},
|
4413
|
+
create(base) {
|
4414
|
+
return ExportResult.fromPartial(base ?? {});
|
4415
|
+
},
|
4313
4416
|
fromPartial(object) {
|
4314
4417
|
const message = createBaseExportResult();
|
4315
4418
|
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|