@sentio/runtime 2.59.0-rc.4 → 2.59.0-rc.41

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