@sentio/runtime 2.59.0-rc.3 → 2.59.0-rc.30

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _sentio_protos from '@sentio/protos';
2
- import { DeepPartial as DeepPartial$1, DBResponse, ProcessStreamResponse, DBRequest_DBUpsert, DBRequest, HandlerType, ProcessConfigResponse, StartRequest, DataBinding, PreparedData, ProcessResult, PreprocessResult, TemplateInstance, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, ProcessStreamRequest, PreprocessStreamRequest, PreprocessStreamResponse } from '@sentio/protos';
2
+ import { DeepPartial as DeepPartial$1, DBResponse, ProcessStreamResponse, DBRequest_DBUpsert, DBRequest, HandlerType as HandlerType$1, ProcessConfigResponse, StartRequest, DataBinding as DataBinding$1, PreparedData, ProcessResult, PreprocessResult, ProcessStreamResponse_Partitions, TemplateInstance, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, ProcessStreamRequest, PreprocessStreamRequest, PreprocessStreamResponse } from '@sentio/protos';
3
3
  import { Subject } from 'rxjs';
4
4
  import { AsyncLocalStorage } from 'node:async_hooks';
5
5
  import { Required } from 'utility-types';
@@ -54,17 +54,18 @@ declare class StoreContext extends AbstractStoreContext {
54
54
 
55
55
  declare abstract class Plugin {
56
56
  name: string;
57
- supportedHandlers: HandlerType[];
57
+ supportedHandlers: HandlerType$1[];
58
58
  configure(config: ProcessConfigResponse): Promise<void>;
59
59
  start(start: StartRequest): Promise<void>;
60
60
  /**
61
61
  * @deprecated The method should not be used, use ctx.states instead
62
62
  */
63
63
  stateDiff(config: ProcessConfigResponse): boolean;
64
- processBinding(request: DataBinding, preparedData: PreparedData | undefined): Promise<ProcessResult>;
65
- preprocessBinding(request: DataBinding, preprocessStore: {
64
+ processBinding(request: DataBinding$1, preparedData: PreparedData | undefined): Promise<ProcessResult>;
65
+ preprocessBinding(request: DataBinding$1, preprocessStore: {
66
66
  [k: string]: any;
67
67
  }): Promise<PreprocessResult>;
68
+ partition(request: DataBinding$1): Promise<ProcessStreamResponse_Partitions>;
68
69
  /**
69
70
  * method used by action server only
70
71
  * @param port
@@ -79,7 +80,7 @@ declare class PluginManager {
79
80
  static INSTANCE: PluginManager;
80
81
  dbContextLocalStorage: AsyncLocalStorage<IStoreContext | undefined>;
81
82
  plugins: Plugin[];
82
- typesToPlugin: Map<HandlerType, Plugin>;
83
+ typesToPlugin: Map<HandlerType$1, Plugin>;
83
84
  register(plugin: Plugin): void;
84
85
  configure(config: ProcessConfigResponse): Promise<void[]>;
85
86
  start(start: StartRequest, actionServerPort?: number): Promise<void[]>;
@@ -89,8 +90,9 @@ declare class PluginManager {
89
90
  * @deprecated The method should not be used, use ctx.states instead
90
91
  */
91
92
  stateDiff(config: ProcessConfigResponse): boolean;
92
- processBinding(request: DataBinding, preparedData: PreparedData | undefined, dbContext?: IStoreContext): Promise<ProcessResult>;
93
- preprocessBinding(request: DataBinding, preprocessStore: {
93
+ processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, dbContext?: IStoreContext): Promise<ProcessResult>;
94
+ partition(request: DataBinding$1): Promise<ProcessStreamResponse_Partitions>;
95
+ preprocessBinding(request: DataBinding$1, preprocessStore: {
94
96
  [k: string]: any;
95
97
  }, dbContext?: StoreContext): Promise<PreprocessResult>;
96
98
  }
@@ -162,18 +164,19 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
162
164
  private readonly shutdownHandler?;
163
165
  private readonly enablePreprocess;
164
166
  private preparedData;
167
+ readonly enablePartition: boolean;
165
168
  constructor(loader: () => Promise<any>, shutdownHandler?: () => void);
166
169
  getConfig(request: ProcessConfigRequest, context: CallContext): Promise<ProcessConfigResponse>;
167
170
  start(request: StartRequest, context: CallContext): Promise<Empty>;
168
171
  stop(request: Empty, context: CallContext): Promise<Empty>;
169
172
  processBindings(request: ProcessBindingsRequest, options?: CallContext): Promise<ProcessBindingResponse>;
170
- preprocessBindings(bindings: DataBinding[], preprocessStore: {
173
+ preprocessBindings(bindings: DataBinding$1[], preprocessStore: {
171
174
  [k: string]: any;
172
175
  }, dbContext?: StoreContext, options?: CallContext): Promise<PreparedData>;
173
- preprocessBinding(request: DataBinding, preprocessStore: {
176
+ preprocessBinding(request: DataBinding$1, preprocessStore: {
174
177
  [k: string]: any;
175
178
  }, dbContext?: StoreContext, options?: CallContext): Promise<PreprocessResult>;
176
- processBinding(request: DataBinding, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
179
+ processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
177
180
  processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: CallContext): AsyncGenerator<{
178
181
  processId?: number | undefined;
179
182
  dbRequest?: {
@@ -235,6 +238,59 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
235
238
  } | undefined;
236
239
  }[] | undefined;
237
240
  } | undefined;
241
+ update?: {
242
+ entity?: string[] | undefined;
243
+ id?: string[] | undefined;
244
+ entityData?: {
245
+ fields?: {
246
+ [x: string]: {
247
+ value?: {
248
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
249
+ intValue?: number | undefined;
250
+ int64Value?: bigint | undefined;
251
+ floatValue?: number | undefined;
252
+ bytesValue?: Uint8Array | undefined;
253
+ boolValue?: boolean | undefined;
254
+ stringValue?: string | undefined;
255
+ timestampValue?: Date | undefined;
256
+ bigintValue?: {
257
+ negative?: boolean | undefined;
258
+ data?: Uint8Array | undefined;
259
+ } | undefined;
260
+ bigdecimalValue?: {
261
+ value?: {
262
+ negative?: boolean | undefined;
263
+ data?: Uint8Array | undefined;
264
+ } | undefined;
265
+ exp?: number | undefined;
266
+ } | undefined;
267
+ listValue?: {
268
+ values?: any[] | undefined;
269
+ } | undefined;
270
+ structValue?: any | undefined;
271
+ tokenValue?: {
272
+ token?: {
273
+ symbol?: string | undefined;
274
+ address?: {
275
+ address?: string | undefined;
276
+ chain?: string | undefined;
277
+ } | undefined;
278
+ } | undefined;
279
+ amount?: {
280
+ value?: {
281
+ negative?: boolean | undefined;
282
+ data?: Uint8Array | undefined;
283
+ } | undefined;
284
+ exp?: number | undefined;
285
+ } | undefined;
286
+ specifiedAt?: Date | undefined;
287
+ } | undefined;
288
+ } | undefined;
289
+ op?: _sentio_protos.EntityUpdateData_Operator | undefined;
290
+ } | undefined;
291
+ } | undefined;
292
+ }[] | undefined;
293
+ } | undefined;
238
294
  delete?: {
239
295
  entity?: string[] | undefined;
240
296
  id?: string[] | undefined;
@@ -276,7 +332,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
276
332
  } | undefined;
277
333
  } | undefined;
278
334
  runtimeInfo?: {
279
- from?: HandlerType | undefined;
335
+ from?: HandlerType$1 | undefined;
280
336
  } | undefined;
281
337
  }[] | undefined;
282
338
  counters?: {
@@ -303,7 +359,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
303
359
  } | undefined;
304
360
  add?: boolean | undefined;
305
361
  runtimeInfo?: {
306
- from?: HandlerType | undefined;
362
+ from?: HandlerType$1 | undefined;
307
363
  } | undefined;
308
364
  }[] | undefined;
309
365
  events?: {
@@ -327,7 +383,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
327
383
  severity?: _sentio_protos.LogLevel | undefined;
328
384
  message?: string | undefined;
329
385
  runtimeInfo?: {
330
- from?: HandlerType | undefined;
386
+ from?: HandlerType$1 | undefined;
331
387
  } | undefined;
332
388
  attributes2?: {
333
389
  fields?: {
@@ -393,13 +449,86 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
393
449
  } | undefined;
394
450
  payload?: string | undefined;
395
451
  runtimeInfo?: {
396
- from?: HandlerType | undefined;
452
+ from?: HandlerType$1 | undefined;
397
453
  } | undefined;
398
454
  }[] | undefined;
399
455
  states?: {
400
456
  configUpdated?: boolean | undefined;
401
457
  error?: string | undefined;
402
458
  } | undefined;
459
+ timeseriesResult?: {
460
+ metadata?: {
461
+ address?: string | undefined;
462
+ contractName?: string | undefined;
463
+ blockNumber?: bigint | undefined;
464
+ transactionHash?: string | undefined;
465
+ chainId?: string | undefined;
466
+ transactionIndex?: number | undefined;
467
+ logIndex?: number | undefined;
468
+ name?: string | undefined;
469
+ labels?: {
470
+ [x: string]: string | undefined;
471
+ } | undefined;
472
+ } | undefined;
473
+ type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
474
+ data?: {
475
+ fields?: {
476
+ [x: string]: {
477
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
478
+ intValue?: number | undefined;
479
+ int64Value?: bigint | undefined;
480
+ floatValue?: number | undefined;
481
+ bytesValue?: Uint8Array | undefined;
482
+ boolValue?: boolean | undefined;
483
+ stringValue?: string | undefined;
484
+ timestampValue?: Date | undefined;
485
+ bigintValue?: {
486
+ negative?: boolean | undefined;
487
+ data?: Uint8Array | undefined;
488
+ } | undefined;
489
+ bigdecimalValue?: {
490
+ value?: {
491
+ negative?: boolean | undefined;
492
+ data?: Uint8Array | undefined;
493
+ } | undefined;
494
+ exp?: number | undefined;
495
+ } | undefined;
496
+ listValue?: {
497
+ values?: any[] | undefined;
498
+ } | undefined;
499
+ structValue?: any | undefined;
500
+ tokenValue?: {
501
+ token?: {
502
+ symbol?: string | undefined;
503
+ address?: {
504
+ address?: string | undefined;
505
+ chain?: string | undefined;
506
+ } | undefined;
507
+ } | undefined;
508
+ amount?: {
509
+ value?: {
510
+ negative?: boolean | undefined;
511
+ data?: Uint8Array | undefined;
512
+ } | undefined;
513
+ exp?: number | undefined;
514
+ } | undefined;
515
+ specifiedAt?: Date | undefined;
516
+ } | undefined;
517
+ } | undefined;
518
+ } | undefined;
519
+ } | undefined;
520
+ runtimeInfo?: {
521
+ from?: HandlerType$1 | undefined;
522
+ } | undefined;
523
+ }[] | undefined;
524
+ } | undefined;
525
+ partitions?: {
526
+ partitions?: {
527
+ [x: number]: {
528
+ userValue?: string | undefined;
529
+ sysValue?: _sentio_protos.ProcessStreamResponse_Partitions_Partition_SysValue | undefined;
530
+ } | undefined;
531
+ } | undefined;
403
532
  } | undefined;
404
533
  }, void, undefined>;
405
534
  handlePreprocessRequests(requests: AsyncIterable<PreprocessStreamRequest>, subject: Subject<DeepPartial$1<PreprocessStreamResponse>>): Promise<void>;
@@ -464,6 +593,59 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
464
593
  } | undefined;
465
594
  }[] | undefined;
466
595
  } | undefined;
596
+ update?: {
597
+ entity?: string[] | undefined;
598
+ id?: string[] | undefined;
599
+ entityData?: {
600
+ fields?: {
601
+ [x: string]: {
602
+ value?: {
603
+ nullValue?: _sentio_protos.RichValue_NullValue | undefined;
604
+ intValue?: number | undefined;
605
+ int64Value?: bigint | undefined;
606
+ floatValue?: number | undefined;
607
+ bytesValue?: Uint8Array | undefined;
608
+ boolValue?: boolean | undefined;
609
+ stringValue?: string | undefined;
610
+ timestampValue?: Date | undefined;
611
+ bigintValue?: {
612
+ negative?: boolean | undefined;
613
+ data?: Uint8Array | undefined;
614
+ } | undefined;
615
+ bigdecimalValue?: {
616
+ value?: {
617
+ negative?: boolean | undefined;
618
+ data?: Uint8Array | undefined;
619
+ } | undefined;
620
+ exp?: number | undefined;
621
+ } | undefined;
622
+ listValue?: {
623
+ values?: any[] | undefined;
624
+ } | undefined;
625
+ structValue?: any | undefined;
626
+ tokenValue?: {
627
+ token?: {
628
+ symbol?: string | undefined;
629
+ address?: {
630
+ address?: string | undefined;
631
+ chain?: string | undefined;
632
+ } | undefined;
633
+ } | undefined;
634
+ amount?: {
635
+ value?: {
636
+ negative?: boolean | undefined;
637
+ data?: Uint8Array | undefined;
638
+ } | undefined;
639
+ exp?: number | undefined;
640
+ } | undefined;
641
+ specifiedAt?: Date | undefined;
642
+ } | undefined;
643
+ } | undefined;
644
+ op?: _sentio_protos.EntityUpdateData_Operator | undefined;
645
+ } | undefined;
646
+ } | undefined;
647
+ }[] | undefined;
648
+ } | undefined;
467
649
  delete?: {
468
650
  entity?: string[] | undefined;
469
651
  id?: string[] | undefined;
@@ -483,9 +665,34 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
483
665
  } | undefined;
484
666
  }, void, undefined>;
485
667
  protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<DeepPartial$1<ProcessStreamResponse>>): Promise<void>;
668
+ private startProcess;
486
669
  }
487
- declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
670
+ declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType$1): void;
488
671
 
672
+ declare enum HandlerType {
673
+ UNKNOWN = 0,
674
+ ETH_LOG = 1,
675
+ ETH_BLOCK = 2,
676
+ ETH_TRACE = 5,
677
+ ETH_TRANSACTION = 11,
678
+ SOL_INSTRUCTION = 4,
679
+ APT_EVENT = 6,
680
+ APT_CALL = 7,
681
+ APT_RESOURCE = 8,
682
+ SUI_EVENT = 3,
683
+ SUI_CALL = 9,
684
+ SUI_OBJECT = 10,
685
+ SUI_OBJECT_CHANGE = 12,
686
+ FUEL_CALL = 13,
687
+ FUEL_RECEIPT = 19,
688
+ FUEL_TRANSACTION = 20,
689
+ FUEL_BLOCK = 17,
690
+ COSMOS_CALL = 14,
691
+ STARKNET_EVENT = 15,
692
+ BTC_TRANSACTION = 16,
693
+ BTC_BLOCK = 18,
694
+ UNRECOGNIZED = -1
695
+ }
489
696
  interface ExecutionConfig {
490
697
  sequential: boolean;
491
698
  forceExactBlockTime: boolean;
@@ -515,6 +722,406 @@ declare const ExecutionConfig_DecoderWorkerConfig: {
515
722
  create(base?: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
516
723
  fromPartial(object: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
517
724
  };
725
+ interface Data {
726
+ ethLog?: Data_EthLog | undefined;
727
+ ethBlock?: Data_EthBlock | undefined;
728
+ ethTransaction?: Data_EthTransaction | undefined;
729
+ ethTrace?: Data_EthTrace | undefined;
730
+ solInstruction?: Data_SolInstruction | undefined;
731
+ aptEvent?: Data_AptEvent | undefined;
732
+ aptCall?: Data_AptCall | undefined;
733
+ aptResource?: Data_AptResource | undefined;
734
+ suiEvent?: Data_SuiEvent | undefined;
735
+ suiCall?: Data_SuiCall | undefined;
736
+ suiObject?: Data_SuiObject | undefined;
737
+ suiObjectChange?: Data_SuiObjectChange | undefined;
738
+ fuelLog?: Data_FuelReceipt | undefined;
739
+ /** @deprecated */
740
+ fuelCall?: Data_FuelCall | undefined;
741
+ fuelTransaction?: Data_FuelTransaction | undefined;
742
+ fuelBlock?: Data_FuelBlock | undefined;
743
+ cosmosCall?: Data_CosmosCall | undefined;
744
+ starknetEvents?: Data_StarknetEvent | undefined;
745
+ btcTransaction?: Data_BTCTransaction | undefined;
746
+ btcBlock?: Data_BTCBlock | undefined;
747
+ }
748
+ declare const Data: {
749
+ encode(message: Data, writer?: _m0.Writer): _m0.Writer;
750
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data;
751
+ fromJSON(object: any): Data;
752
+ toJSON(message: Data): unknown;
753
+ create(base?: DeepPartial<Data>): Data;
754
+ fromPartial(object: DeepPartial<Data>): Data;
755
+ };
756
+ interface Data_EthLog {
757
+ /** @deprecated */
758
+ log: {
759
+ [key: string]: any;
760
+ } | undefined;
761
+ timestamp: Date | undefined;
762
+ /** @deprecated */
763
+ transaction?: {
764
+ [key: string]: any;
765
+ } | undefined;
766
+ /** @deprecated */
767
+ transactionReceipt?: {
768
+ [key: string]: any;
769
+ } | undefined;
770
+ /** @deprecated */
771
+ block?: {
772
+ [key: string]: any;
773
+ } | undefined;
774
+ rawLog: string;
775
+ rawTransaction?: string | undefined;
776
+ rawTransactionReceipt?: string | undefined;
777
+ rawBlock?: string | undefined;
778
+ }
779
+ declare const Data_EthLog: {
780
+ encode(message: Data_EthLog, writer?: _m0.Writer): _m0.Writer;
781
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthLog;
782
+ fromJSON(object: any): Data_EthLog;
783
+ toJSON(message: Data_EthLog): unknown;
784
+ create(base?: DeepPartial<Data_EthLog>): Data_EthLog;
785
+ fromPartial(object: DeepPartial<Data_EthLog>): Data_EthLog;
786
+ };
787
+ interface Data_EthBlock {
788
+ block: {
789
+ [key: string]: any;
790
+ } | undefined;
791
+ }
792
+ declare const Data_EthBlock: {
793
+ encode(message: Data_EthBlock, writer?: _m0.Writer): _m0.Writer;
794
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthBlock;
795
+ fromJSON(object: any): Data_EthBlock;
796
+ toJSON(message: Data_EthBlock): unknown;
797
+ create(base?: DeepPartial<Data_EthBlock>): Data_EthBlock;
798
+ fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock;
799
+ };
800
+ interface Data_EthTransaction {
801
+ /** @deprecated */
802
+ transaction: {
803
+ [key: string]: any;
804
+ } | undefined;
805
+ timestamp: Date | undefined;
806
+ /** @deprecated */
807
+ transactionReceipt?: {
808
+ [key: string]: any;
809
+ } | undefined;
810
+ /** @deprecated */
811
+ block?: {
812
+ [key: string]: any;
813
+ } | undefined;
814
+ /** @deprecated */
815
+ trace?: {
816
+ [key: string]: any;
817
+ } | undefined;
818
+ rawTransaction: string;
819
+ rawTransactionReceipt?: string | undefined;
820
+ rawBlock?: string | undefined;
821
+ rawTrace?: string | undefined;
822
+ }
823
+ declare const Data_EthTransaction: {
824
+ encode(message: Data_EthTransaction, writer?: _m0.Writer): _m0.Writer;
825
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthTransaction;
826
+ fromJSON(object: any): Data_EthTransaction;
827
+ toJSON(message: Data_EthTransaction): unknown;
828
+ create(base?: DeepPartial<Data_EthTransaction>): Data_EthTransaction;
829
+ fromPartial(object: DeepPartial<Data_EthTransaction>): Data_EthTransaction;
830
+ };
831
+ interface Data_EthTrace {
832
+ trace: {
833
+ [key: string]: any;
834
+ } | undefined;
835
+ timestamp: Date | undefined;
836
+ transaction?: {
837
+ [key: string]: any;
838
+ } | undefined;
839
+ transactionReceipt?: {
840
+ [key: string]: any;
841
+ } | undefined;
842
+ block?: {
843
+ [key: string]: any;
844
+ } | undefined;
845
+ }
846
+ declare const Data_EthTrace: {
847
+ encode(message: Data_EthTrace, writer?: _m0.Writer): _m0.Writer;
848
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthTrace;
849
+ fromJSON(object: any): Data_EthTrace;
850
+ toJSON(message: Data_EthTrace): unknown;
851
+ create(base?: DeepPartial<Data_EthTrace>): Data_EthTrace;
852
+ fromPartial(object: DeepPartial<Data_EthTrace>): Data_EthTrace;
853
+ };
854
+ interface Data_SolInstruction {
855
+ instructionData: string;
856
+ slot: bigint;
857
+ programAccountId: string;
858
+ accounts: string[];
859
+ parsed?: {
860
+ [key: string]: any;
861
+ } | undefined;
862
+ }
863
+ declare const Data_SolInstruction: {
864
+ encode(message: Data_SolInstruction, writer?: _m0.Writer): _m0.Writer;
865
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SolInstruction;
866
+ fromJSON(object: any): Data_SolInstruction;
867
+ toJSON(message: Data_SolInstruction): unknown;
868
+ create(base?: DeepPartial<Data_SolInstruction>): Data_SolInstruction;
869
+ fromPartial(object: DeepPartial<Data_SolInstruction>): Data_SolInstruction;
870
+ };
871
+ interface Data_AptEvent {
872
+ rawEvent: string;
873
+ eventIndex: number;
874
+ /** @deprecated */
875
+ transaction: {
876
+ [key: string]: any;
877
+ } | undefined;
878
+ rawTransaction: string;
879
+ }
880
+ declare const Data_AptEvent: {
881
+ encode(message: Data_AptEvent, writer?: _m0.Writer): _m0.Writer;
882
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_AptEvent;
883
+ fromJSON(object: any): Data_AptEvent;
884
+ toJSON(message: Data_AptEvent): unknown;
885
+ create(base?: DeepPartial<Data_AptEvent>): Data_AptEvent;
886
+ fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent;
887
+ };
888
+ interface Data_AptCall {
889
+ /** @deprecated */
890
+ transaction: {
891
+ [key: string]: any;
892
+ } | undefined;
893
+ rawTransaction: string;
894
+ }
895
+ declare const Data_AptCall: {
896
+ encode(message: Data_AptCall, writer?: _m0.Writer): _m0.Writer;
897
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_AptCall;
898
+ fromJSON(object: any): Data_AptCall;
899
+ toJSON(message: Data_AptCall): unknown;
900
+ create(base?: DeepPartial<Data_AptCall>): Data_AptCall;
901
+ fromPartial(object: DeepPartial<Data_AptCall>): Data_AptCall;
902
+ };
903
+ interface Data_AptResource {
904
+ /** @deprecated */
905
+ resources: {
906
+ [key: string]: any;
907
+ }[];
908
+ version: bigint;
909
+ timestampMicros: bigint;
910
+ rawResources: string[];
911
+ }
912
+ declare const Data_AptResource: {
913
+ encode(message: Data_AptResource, writer?: _m0.Writer): _m0.Writer;
914
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_AptResource;
915
+ fromJSON(object: any): Data_AptResource;
916
+ toJSON(message: Data_AptResource): unknown;
917
+ create(base?: DeepPartial<Data_AptResource>): Data_AptResource;
918
+ fromPartial(object: DeepPartial<Data_AptResource>): Data_AptResource;
919
+ };
920
+ interface Data_SuiEvent {
921
+ /** @deprecated */
922
+ transaction: {
923
+ [key: string]: any;
924
+ } | undefined;
925
+ rawEvent: string;
926
+ rawTransaction: string;
927
+ timestamp: Date | undefined;
928
+ slot: bigint;
929
+ }
930
+ declare const Data_SuiEvent: {
931
+ encode(message: Data_SuiEvent, writer?: _m0.Writer): _m0.Writer;
932
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SuiEvent;
933
+ fromJSON(object: any): Data_SuiEvent;
934
+ toJSON(message: Data_SuiEvent): unknown;
935
+ create(base?: DeepPartial<Data_SuiEvent>): Data_SuiEvent;
936
+ fromPartial(object: DeepPartial<Data_SuiEvent>): Data_SuiEvent;
937
+ };
938
+ interface Data_SuiCall {
939
+ /** @deprecated */
940
+ transaction: {
941
+ [key: string]: any;
942
+ } | undefined;
943
+ rawTransaction: string;
944
+ timestamp: Date | undefined;
945
+ slot: bigint;
946
+ }
947
+ declare const Data_SuiCall: {
948
+ encode(message: Data_SuiCall, writer?: _m0.Writer): _m0.Writer;
949
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SuiCall;
950
+ fromJSON(object: any): Data_SuiCall;
951
+ toJSON(message: Data_SuiCall): unknown;
952
+ create(base?: DeepPartial<Data_SuiCall>): Data_SuiCall;
953
+ fromPartial(object: DeepPartial<Data_SuiCall>): Data_SuiCall;
954
+ };
955
+ interface Data_SuiObject {
956
+ /** @deprecated */
957
+ objects: {
958
+ [key: string]: any;
959
+ }[];
960
+ /** @deprecated */
961
+ self?: {
962
+ [key: string]: any;
963
+ } | undefined;
964
+ rawObjects: string[];
965
+ rawSelf?: string | undefined;
966
+ objectId: string;
967
+ objectVersion: bigint;
968
+ objectDigest: string;
969
+ timestamp: Date | undefined;
970
+ slot: bigint;
971
+ }
972
+ declare const Data_SuiObject: {
973
+ encode(message: Data_SuiObject, writer?: _m0.Writer): _m0.Writer;
974
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SuiObject;
975
+ fromJSON(object: any): Data_SuiObject;
976
+ toJSON(message: Data_SuiObject): unknown;
977
+ create(base?: DeepPartial<Data_SuiObject>): Data_SuiObject;
978
+ fromPartial(object: DeepPartial<Data_SuiObject>): Data_SuiObject;
979
+ };
980
+ interface Data_SuiObjectChange {
981
+ /** @deprecated */
982
+ changes: {
983
+ [key: string]: any;
984
+ }[];
985
+ rawChanges: string[];
986
+ timestamp: Date | undefined;
987
+ txDigest: string;
988
+ slot: bigint;
989
+ }
990
+ declare const Data_SuiObjectChange: {
991
+ encode(message: Data_SuiObjectChange, writer?: _m0.Writer): _m0.Writer;
992
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SuiObjectChange;
993
+ fromJSON(object: any): Data_SuiObjectChange;
994
+ toJSON(message: Data_SuiObjectChange): unknown;
995
+ create(base?: DeepPartial<Data_SuiObjectChange>): Data_SuiObjectChange;
996
+ fromPartial(object: DeepPartial<Data_SuiObjectChange>): Data_SuiObjectChange;
997
+ };
998
+ interface Data_FuelReceipt {
999
+ transaction: {
1000
+ [key: string]: any;
1001
+ } | undefined;
1002
+ timestamp: Date | undefined;
1003
+ receiptIndex: bigint;
1004
+ }
1005
+ declare const Data_FuelReceipt: {
1006
+ encode(message: Data_FuelReceipt, writer?: _m0.Writer): _m0.Writer;
1007
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_FuelReceipt;
1008
+ fromJSON(object: any): Data_FuelReceipt;
1009
+ toJSON(message: Data_FuelReceipt): unknown;
1010
+ create(base?: DeepPartial<Data_FuelReceipt>): Data_FuelReceipt;
1011
+ fromPartial(object: DeepPartial<Data_FuelReceipt>): Data_FuelReceipt;
1012
+ };
1013
+ interface Data_FuelTransaction {
1014
+ transaction: {
1015
+ [key: string]: any;
1016
+ } | undefined;
1017
+ timestamp: Date | undefined;
1018
+ }
1019
+ declare const Data_FuelTransaction: {
1020
+ encode(message: Data_FuelTransaction, writer?: _m0.Writer): _m0.Writer;
1021
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_FuelTransaction;
1022
+ fromJSON(object: any): Data_FuelTransaction;
1023
+ toJSON(message: Data_FuelTransaction): unknown;
1024
+ create(base?: DeepPartial<Data_FuelTransaction>): Data_FuelTransaction;
1025
+ fromPartial(object: DeepPartial<Data_FuelTransaction>): Data_FuelTransaction;
1026
+ };
1027
+ /** @deprecated */
1028
+ interface Data_FuelCall {
1029
+ transaction: {
1030
+ [key: string]: any;
1031
+ } | undefined;
1032
+ timestamp: Date | undefined;
1033
+ }
1034
+ declare const Data_FuelCall: {
1035
+ encode(message: Data_FuelCall, writer?: _m0.Writer): _m0.Writer;
1036
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_FuelCall;
1037
+ fromJSON(object: any): Data_FuelCall;
1038
+ toJSON(message: Data_FuelCall): unknown;
1039
+ create(base?: DeepPartial<Data_FuelCall>): Data_FuelCall;
1040
+ fromPartial(object: DeepPartial<Data_FuelCall>): Data_FuelCall;
1041
+ };
1042
+ interface Data_FuelBlock {
1043
+ block: {
1044
+ [key: string]: any;
1045
+ } | undefined;
1046
+ timestamp: Date | undefined;
1047
+ }
1048
+ declare const Data_FuelBlock: {
1049
+ encode(message: Data_FuelBlock, writer?: _m0.Writer): _m0.Writer;
1050
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_FuelBlock;
1051
+ fromJSON(object: any): Data_FuelBlock;
1052
+ toJSON(message: Data_FuelBlock): unknown;
1053
+ create(base?: DeepPartial<Data_FuelBlock>): Data_FuelBlock;
1054
+ fromPartial(object: DeepPartial<Data_FuelBlock>): Data_FuelBlock;
1055
+ };
1056
+ interface Data_CosmosCall {
1057
+ transaction: {
1058
+ [key: string]: any;
1059
+ } | undefined;
1060
+ timestamp: Date | undefined;
1061
+ }
1062
+ declare const Data_CosmosCall: {
1063
+ encode(message: Data_CosmosCall, writer?: _m0.Writer): _m0.Writer;
1064
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_CosmosCall;
1065
+ fromJSON(object: any): Data_CosmosCall;
1066
+ toJSON(message: Data_CosmosCall): unknown;
1067
+ create(base?: DeepPartial<Data_CosmosCall>): Data_CosmosCall;
1068
+ fromPartial(object: DeepPartial<Data_CosmosCall>): Data_CosmosCall;
1069
+ };
1070
+ interface Data_StarknetEvent {
1071
+ result: {
1072
+ [key: string]: any;
1073
+ } | undefined;
1074
+ timestamp: Date | undefined;
1075
+ }
1076
+ declare const Data_StarknetEvent: {
1077
+ encode(message: Data_StarknetEvent, writer?: _m0.Writer): _m0.Writer;
1078
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_StarknetEvent;
1079
+ fromJSON(object: any): Data_StarknetEvent;
1080
+ toJSON(message: Data_StarknetEvent): unknown;
1081
+ create(base?: DeepPartial<Data_StarknetEvent>): Data_StarknetEvent;
1082
+ fromPartial(object: DeepPartial<Data_StarknetEvent>): Data_StarknetEvent;
1083
+ };
1084
+ interface Data_BTCTransaction {
1085
+ transaction: {
1086
+ [key: string]: any;
1087
+ } | undefined;
1088
+ timestamp: Date | undefined;
1089
+ }
1090
+ declare const Data_BTCTransaction: {
1091
+ encode(message: Data_BTCTransaction, writer?: _m0.Writer): _m0.Writer;
1092
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCTransaction;
1093
+ fromJSON(object: any): Data_BTCTransaction;
1094
+ toJSON(message: Data_BTCTransaction): unknown;
1095
+ create(base?: DeepPartial<Data_BTCTransaction>): Data_BTCTransaction;
1096
+ fromPartial(object: DeepPartial<Data_BTCTransaction>): Data_BTCTransaction;
1097
+ };
1098
+ interface Data_BTCBlock {
1099
+ block: {
1100
+ [key: string]: any;
1101
+ } | undefined;
1102
+ timestamp: Date | undefined;
1103
+ }
1104
+ declare const Data_BTCBlock: {
1105
+ encode(message: Data_BTCBlock, writer?: _m0.Writer): _m0.Writer;
1106
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_BTCBlock;
1107
+ fromJSON(object: any): Data_BTCBlock;
1108
+ toJSON(message: Data_BTCBlock): unknown;
1109
+ create(base?: DeepPartial<Data_BTCBlock>): Data_BTCBlock;
1110
+ fromPartial(object: DeepPartial<Data_BTCBlock>): Data_BTCBlock;
1111
+ };
1112
+ interface DataBinding {
1113
+ data: Data | undefined;
1114
+ handlerType: HandlerType;
1115
+ handlerIds: number[];
1116
+ }
1117
+ declare const DataBinding: {
1118
+ encode(message: DataBinding, writer?: _m0.Writer): _m0.Writer;
1119
+ decode(input: _m0.Reader | Uint8Array, length?: number): DataBinding;
1120
+ fromJSON(object: any): DataBinding;
1121
+ toJSON(message: DataBinding): unknown;
1122
+ create(base?: DeepPartial<DataBinding>): DataBinding;
1123
+ fromPartial(object: DeepPartial<DataBinding>): DataBinding;
1124
+ };
518
1125
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
519
1126
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
520
1127
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -568,24 +1175,28 @@ declare const dbMetrics: {
568
1175
  upsert: C;
569
1176
  list: C;
570
1177
  delete: C;
1178
+ update: C;
571
1179
  };
572
1180
  recv_counts: {
573
1181
  get: C;
574
1182
  upsert: C;
575
1183
  list: C;
576
1184
  delete: C;
1185
+ update: C;
577
1186
  };
578
1187
  request_times: {
579
1188
  get: C;
580
1189
  upsert: C;
581
1190
  list: C;
582
1191
  delete: C;
1192
+ update: C;
583
1193
  };
584
1194
  request_errors: {
585
1195
  get: C;
586
1196
  upsert: C;
587
1197
  list: C;
588
1198
  delete: C;
1199
+ update: C;
589
1200
  };
590
1201
  batched_total_count: C;
591
1202
  batched_request_count: C;
@@ -681,4 +1292,4 @@ declare const processMetrics: {
681
1292
  };
682
1293
  declare const metricsStorage: AsyncLocalStorage<string>;
683
1294
 
684
- export { AbstractStoreContext, type ChainConfig, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, type IStoreContext, ListStateStorage, MapStateStorage, Plugin, PluginManager, ProcessorServiceImpl, QueuedStaticJsonRpcProvider, type Semver, State, StateStorage, StoreContext, TemplateInstanceState, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, makeEthCallKey, mergeProcessResults, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo, timeoutError };
1295
+ export { AbstractStoreContext, type ChainConfig, DataBinding, Data_EthBlock, Data_EthLog, Data_EthTrace, Data_EthTransaction, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, type IStoreContext, ListStateStorage, MapStateStorage, Plugin, PluginManager, ProcessorServiceImpl, QueuedStaticJsonRpcProvider, type Semver, State, StateStorage, StoreContext, TemplateInstanceState, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, makeEthCallKey, mergeProcessResults, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo, timeoutError };