@sentio/sdk 1.33.2 → 1.34.1-rc.1

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.
Files changed (38) hide show
  1. package/lib/aptos/context.js +0 -3
  2. package/lib/aptos/context.js.map +1 -1
  3. package/lib/core/context.js +0 -6
  4. package/lib/core/context.js.map +1 -1
  5. package/lib/core/logger.js.map +1 -1
  6. package/lib/gen/chainquery/protos/chainquery.d.ts +1 -1
  7. package/lib/gen/chainquery/protos/chainquery.js +108 -211
  8. package/lib/gen/chainquery/protos/chainquery.js.map +1 -1
  9. package/lib/gen/google/protobuf/empty.js.map +1 -1
  10. package/lib/gen/google/protobuf/timestamp.js +5 -9
  11. package/lib/gen/google/protobuf/timestamp.js.map +1 -1
  12. package/lib/gen/processor/protos/processor.d.ts +119 -189
  13. package/lib/gen/processor/protos/processor.js +783 -1118
  14. package/lib/gen/processor/protos/processor.js.map +1 -1
  15. package/lib/gen/service/price/protos/price.d.ts +4 -4
  16. package/lib/gen/service/price/protos/price.js +15 -27
  17. package/lib/gen/service/price/protos/price.js.map +1 -1
  18. package/lib/release.config.js +2 -2
  19. package/lib/service.d.ts +8 -8
  20. package/lib/service.js +47 -160
  21. package/lib/service.js.map +1 -1
  22. package/lib/testing/test-processor-server.d.ts +7 -5
  23. package/lib/testing/test-processor-server.js +42 -19
  24. package/lib/testing/test-processor-server.js.map +1 -1
  25. package/lib/utils/token.d.ts +1 -1
  26. package/lib/utils/token.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/aptos/context.ts +1 -3
  29. package/src/core/context.ts +1 -6
  30. package/src/core/logger.ts +1 -1
  31. package/src/gen/chainquery/protos/chainquery.ts +171 -379
  32. package/src/gen/google/protobuf/empty.ts +7 -19
  33. package/src/gen/google/protobuf/timestamp.ts +11 -31
  34. package/src/gen/processor/protos/processor.ts +1058 -1847
  35. package/src/gen/service/price/protos/price.ts +38 -103
  36. package/src/service.ts +59 -210
  37. package/src/testing/test-processor-server.ts +47 -28
  38. package/src/utils/token.ts +1 -1
@@ -1,7 +1,7 @@
1
- import { CallContext, CallOptions } from "nice-grpc-common";
2
1
  import Long from "long";
3
- import { Empty } from "../../google/protobuf/empty";
2
+ import type { CallContext, CallOptions } from "nice-grpc-common";
4
3
  import _m0 from "protobufjs/minimal";
4
+ import { Empty } from "../../google/protobuf/empty";
5
5
  export declare enum MetricType {
6
6
  UNKNOWN_TYPE = 0,
7
7
  COUNTER = 1,
@@ -31,7 +31,7 @@ export declare enum HandlerType {
31
31
  ETH_LOG = 1,
32
32
  ETH_BLOCK = 2,
33
33
  ETH_TRACE = 5,
34
- SOL_INSTRUCTIONS = 4,
34
+ SOL_INSTRUCTION = 4,
35
35
  APT_EVENT = 6,
36
36
  APT_CALL = 7,
37
37
  APT_RESOURCE = 8,
@@ -67,7 +67,6 @@ export interface ProcessConfigResponse {
67
67
  }
68
68
  export interface ContractConfig {
69
69
  contract: ContractInfo | undefined;
70
- blockConfigs: BlockHandlerConfig[];
71
70
  intervalConfigs: OnIntervalConfig[];
72
71
  logConfigs: LogHandlerConfig[];
73
72
  traceConfigs: TraceHandlerConfig[];
@@ -108,7 +107,6 @@ export interface MetricConfig {
108
107
  description: string;
109
108
  unit: string;
110
109
  sparse: boolean;
111
- resolutionInSeconds: number;
112
110
  type: MetricType;
113
111
  aggregationConfig: AggregationConfig | undefined;
114
112
  }
@@ -168,8 +166,8 @@ export interface LogHandlerConfig {
168
166
  }
169
167
  export interface LogFilter {
170
168
  topics: Topic[];
171
- address: string | undefined;
172
- addressType: AddressType | undefined;
169
+ address?: string | undefined;
170
+ addressType?: AddressType | undefined;
173
171
  }
174
172
  export interface InstructionHandlerConfig {
175
173
  innerInstruction: boolean;
@@ -197,16 +195,6 @@ export interface AptosCallFilter {
197
195
  export interface Topic {
198
196
  hashes: string[];
199
197
  }
200
- export interface ProcessTransactionsRequest {
201
- chainId: string;
202
- transactions: RawTransaction[];
203
- }
204
- export interface ProcessInstructionsRequest {
205
- instructions: Instruction[];
206
- }
207
- export interface ProcessBlocksRequest {
208
- blockBindings: BlockBinding[];
209
- }
210
198
  export interface ProcessBindingsRequest {
211
199
  bindings: DataBinding[];
212
200
  }
@@ -219,29 +207,57 @@ export interface RawTransaction {
219
207
  programAccountId?: string | undefined;
220
208
  slot?: Long | undefined;
221
209
  }
222
- export interface Instruction {
210
+ export interface Data {
211
+ raw: Uint8Array;
212
+ ethLog?: Data_EthLog | undefined;
213
+ ethBlock?: Data_EthBlock | undefined;
214
+ ethTransaction?: Data_EthTransaction | undefined;
215
+ ethTrace?: Data_EthTrace | undefined;
216
+ solInstruction?: Data_SolInstruction | undefined;
217
+ aptEvent?: Data_AptEvent | undefined;
218
+ aptCall?: Data_AptCall | undefined;
219
+ aptResource?: Data_AptResource | undefined;
220
+ }
221
+ export interface Data_EthLog {
222
+ data: Uint8Array;
223
+ transaction?: Uint8Array | undefined;
224
+ }
225
+ export interface Data_EthBlock {
226
+ data: Uint8Array;
227
+ }
228
+ export interface Data_EthTransaction {
229
+ data: Uint8Array;
230
+ transaction?: Uint8Array | undefined;
231
+ transactionReceipt?: Uint8Array | undefined;
232
+ }
233
+ export interface Data_EthTrace {
234
+ data: Uint8Array;
235
+ transaction?: Uint8Array | undefined;
236
+ transactionReceipt?: Uint8Array | undefined;
237
+ }
238
+ export interface Data_SolInstruction {
223
239
  instructionData: string;
224
240
  slot: Long;
225
241
  programAccountId: string;
226
242
  accounts: string[];
227
243
  parsed?: Uint8Array | undefined;
228
244
  }
229
- export interface Data {
230
- raw: Uint8Array;
245
+ export interface Data_AptEvent {
246
+ data: Uint8Array;
247
+ }
248
+ export interface Data_AptCall {
249
+ data: Uint8Array;
250
+ }
251
+ export interface Data_AptResource {
252
+ data: Uint8Array;
253
+ version: Long;
254
+ timestamp: string;
231
255
  }
232
256
  export interface DataBinding {
233
257
  data: Data | undefined;
234
- handlerId: number;
235
258
  handlerType: HandlerType;
236
259
  handlerIds: number[];
237
260
  }
238
- export interface BlockBinding {
239
- block: RawBlock | undefined;
240
- handlerIds: number[];
241
- }
242
- export interface RawBlock {
243
- raw: Uint8Array;
244
- }
245
261
  export interface ProcessResult {
246
262
  gauges: GaugeResult[];
247
263
  counters: CounterResult[];
@@ -249,13 +265,6 @@ export interface ProcessResult {
249
265
  events: EventTrackingResult[];
250
266
  exports: ExportResult[];
251
267
  }
252
- export interface DataDescriptor {
253
- name: string;
254
- description: string;
255
- unit: string;
256
- sparse: boolean;
257
- resolutionInSeconds: number;
258
- }
259
268
  export interface RecordMetaData {
260
269
  address: string;
261
270
  contractName: string;
@@ -264,7 +273,6 @@ export interface RecordMetaData {
264
273
  chainId: string;
265
274
  transactionIndex: number;
266
275
  logIndex: number;
267
- dataDescriptor: DataDescriptor | undefined;
268
276
  name: string;
269
277
  labels: {
270
278
  [key: string]: string;
@@ -275,9 +283,9 @@ export interface RecordMetaData_LabelsEntry {
275
283
  value: string;
276
284
  }
277
285
  export interface MetricValue {
278
- bigDecimal: string | undefined;
279
- doubleValue: number | undefined;
280
- bigInteger: BigInteger | undefined;
286
+ bigDecimal?: string | undefined;
287
+ doubleValue?: number | undefined;
288
+ bigInteger?: BigInteger | undefined;
281
289
  }
282
290
  export interface BigInteger {
283
291
  negative: boolean;
@@ -504,27 +512,6 @@ export declare const Topic: {
504
512
  toJSON(message: Topic): unknown;
505
513
  fromPartial(object: DeepPartial<Topic>): Topic;
506
514
  };
507
- export declare const ProcessTransactionsRequest: {
508
- encode(message: ProcessTransactionsRequest, writer?: _m0.Writer): _m0.Writer;
509
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessTransactionsRequest;
510
- fromJSON(object: any): ProcessTransactionsRequest;
511
- toJSON(message: ProcessTransactionsRequest): unknown;
512
- fromPartial(object: DeepPartial<ProcessTransactionsRequest>): ProcessTransactionsRequest;
513
- };
514
- export declare const ProcessInstructionsRequest: {
515
- encode(message: ProcessInstructionsRequest, writer?: _m0.Writer): _m0.Writer;
516
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessInstructionsRequest;
517
- fromJSON(object: any): ProcessInstructionsRequest;
518
- toJSON(message: ProcessInstructionsRequest): unknown;
519
- fromPartial(object: DeepPartial<ProcessInstructionsRequest>): ProcessInstructionsRequest;
520
- };
521
- export declare const ProcessBlocksRequest: {
522
- encode(message: ProcessBlocksRequest, writer?: _m0.Writer): _m0.Writer;
523
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBlocksRequest;
524
- fromJSON(object: any): ProcessBlocksRequest;
525
- toJSON(message: ProcessBlocksRequest): unknown;
526
- fromPartial(object: DeepPartial<ProcessBlocksRequest>): ProcessBlocksRequest;
527
- };
528
515
  export declare const ProcessBindingsRequest: {
529
516
  encode(message: ProcessBindingsRequest, writer?: _m0.Writer): _m0.Writer;
530
517
  decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingsRequest;
@@ -546,13 +533,6 @@ export declare const RawTransaction: {
546
533
  toJSON(message: RawTransaction): unknown;
547
534
  fromPartial(object: DeepPartial<RawTransaction>): RawTransaction;
548
535
  };
549
- export declare const Instruction: {
550
- encode(message: Instruction, writer?: _m0.Writer): _m0.Writer;
551
- decode(input: _m0.Reader | Uint8Array, length?: number): Instruction;
552
- fromJSON(object: any): Instruction;
553
- toJSON(message: Instruction): unknown;
554
- fromPartial(object: DeepPartial<Instruction>): Instruction;
555
- };
556
536
  export declare const Data: {
557
537
  encode(message: Data, writer?: _m0.Writer): _m0.Writer;
558
538
  decode(input: _m0.Reader | Uint8Array, length?: number): Data;
@@ -560,6 +540,62 @@ export declare const Data: {
560
540
  toJSON(message: Data): unknown;
561
541
  fromPartial(object: DeepPartial<Data>): Data;
562
542
  };
543
+ export declare const Data_EthLog: {
544
+ encode(message: Data_EthLog, writer?: _m0.Writer): _m0.Writer;
545
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthLog;
546
+ fromJSON(object: any): Data_EthLog;
547
+ toJSON(message: Data_EthLog): unknown;
548
+ fromPartial(object: DeepPartial<Data_EthLog>): Data_EthLog;
549
+ };
550
+ export declare const Data_EthBlock: {
551
+ encode(message: Data_EthBlock, writer?: _m0.Writer): _m0.Writer;
552
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthBlock;
553
+ fromJSON(object: any): Data_EthBlock;
554
+ toJSON(message: Data_EthBlock): unknown;
555
+ fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock;
556
+ };
557
+ export declare const Data_EthTransaction: {
558
+ encode(message: Data_EthTransaction, writer?: _m0.Writer): _m0.Writer;
559
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthTransaction;
560
+ fromJSON(object: any): Data_EthTransaction;
561
+ toJSON(message: Data_EthTransaction): unknown;
562
+ fromPartial(object: DeepPartial<Data_EthTransaction>): Data_EthTransaction;
563
+ };
564
+ export declare const Data_EthTrace: {
565
+ encode(message: Data_EthTrace, writer?: _m0.Writer): _m0.Writer;
566
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_EthTrace;
567
+ fromJSON(object: any): Data_EthTrace;
568
+ toJSON(message: Data_EthTrace): unknown;
569
+ fromPartial(object: DeepPartial<Data_EthTrace>): Data_EthTrace;
570
+ };
571
+ export declare const Data_SolInstruction: {
572
+ encode(message: Data_SolInstruction, writer?: _m0.Writer): _m0.Writer;
573
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_SolInstruction;
574
+ fromJSON(object: any): Data_SolInstruction;
575
+ toJSON(message: Data_SolInstruction): unknown;
576
+ fromPartial(object: DeepPartial<Data_SolInstruction>): Data_SolInstruction;
577
+ };
578
+ export declare const Data_AptEvent: {
579
+ encode(message: Data_AptEvent, writer?: _m0.Writer): _m0.Writer;
580
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_AptEvent;
581
+ fromJSON(object: any): Data_AptEvent;
582
+ toJSON(message: Data_AptEvent): unknown;
583
+ fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent;
584
+ };
585
+ export declare const Data_AptCall: {
586
+ encode(message: Data_AptCall, writer?: _m0.Writer): _m0.Writer;
587
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_AptCall;
588
+ fromJSON(object: any): Data_AptCall;
589
+ toJSON(message: Data_AptCall): unknown;
590
+ fromPartial(object: DeepPartial<Data_AptCall>): Data_AptCall;
591
+ };
592
+ export declare const Data_AptResource: {
593
+ encode(message: Data_AptResource, writer?: _m0.Writer): _m0.Writer;
594
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data_AptResource;
595
+ fromJSON(object: any): Data_AptResource;
596
+ toJSON(message: Data_AptResource): unknown;
597
+ fromPartial(object: DeepPartial<Data_AptResource>): Data_AptResource;
598
+ };
563
599
  export declare const DataBinding: {
564
600
  encode(message: DataBinding, writer?: _m0.Writer): _m0.Writer;
565
601
  decode(input: _m0.Reader | Uint8Array, length?: number): DataBinding;
@@ -567,20 +603,6 @@ export declare const DataBinding: {
567
603
  toJSON(message: DataBinding): unknown;
568
604
  fromPartial(object: DeepPartial<DataBinding>): DataBinding;
569
605
  };
570
- export declare const BlockBinding: {
571
- encode(message: BlockBinding, writer?: _m0.Writer): _m0.Writer;
572
- decode(input: _m0.Reader | Uint8Array, length?: number): BlockBinding;
573
- fromJSON(object: any): BlockBinding;
574
- toJSON(message: BlockBinding): unknown;
575
- fromPartial(object: DeepPartial<BlockBinding>): BlockBinding;
576
- };
577
- export declare const RawBlock: {
578
- encode(message: RawBlock, writer?: _m0.Writer): _m0.Writer;
579
- decode(input: _m0.Reader | Uint8Array, length?: number): RawBlock;
580
- fromJSON(object: any): RawBlock;
581
- toJSON(message: RawBlock): unknown;
582
- fromPartial(object: DeepPartial<RawBlock>): RawBlock;
583
- };
584
606
  export declare const ProcessResult: {
585
607
  encode(message: ProcessResult, writer?: _m0.Writer): _m0.Writer;
586
608
  decode(input: _m0.Reader | Uint8Array, length?: number): ProcessResult;
@@ -588,13 +610,6 @@ export declare const ProcessResult: {
588
610
  toJSON(message: ProcessResult): unknown;
589
611
  fromPartial(object: DeepPartial<ProcessResult>): ProcessResult;
590
612
  };
591
- export declare const DataDescriptor: {
592
- encode(message: DataDescriptor, writer?: _m0.Writer): _m0.Writer;
593
- decode(input: _m0.Reader | Uint8Array, length?: number): DataDescriptor;
594
- fromJSON(object: any): DataDescriptor;
595
- toJSON(message: DataDescriptor): unknown;
596
- fromPartial(object: DeepPartial<DataDescriptor>): DataDescriptor;
597
- };
598
613
  export declare const RecordMetaData: {
599
614
  encode(message: RecordMetaData, writer?: _m0.Writer): _m0.Writer;
600
615
  decode(input: _m0.Reader | Uint8Array, length?: number): RecordMetaData;
@@ -730,28 +745,8 @@ export declare const ProcessorDefinition: {
730
745
  readonly responseStream: false;
731
746
  readonly options: {};
732
747
  };
733
- readonly processLogs: {
734
- readonly name: "ProcessLogs";
735
- readonly requestType: {
736
- encode(message: ProcessBindingsRequest, writer?: _m0.Writer): _m0.Writer;
737
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingsRequest;
738
- fromJSON(object: any): ProcessBindingsRequest;
739
- toJSON(message: ProcessBindingsRequest): unknown;
740
- fromPartial(object: DeepPartial<ProcessBindingsRequest>): ProcessBindingsRequest;
741
- };
742
- readonly requestStream: false;
743
- readonly responseType: {
744
- encode(message: ProcessBindingResponse, writer?: _m0.Writer): _m0.Writer;
745
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingResponse;
746
- fromJSON(object: any): ProcessBindingResponse;
747
- toJSON(message: ProcessBindingResponse): unknown;
748
- fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
749
- };
750
- readonly responseStream: false;
751
- readonly options: {};
752
- };
753
- readonly processTraces: {
754
- readonly name: "ProcessTraces";
748
+ readonly processBindings: {
749
+ readonly name: "ProcessBindings";
755
750
  readonly requestType: {
756
751
  encode(message: ProcessBindingsRequest, writer?: _m0.Writer): _m0.Writer;
757
752
  decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingsRequest;
@@ -770,56 +765,16 @@ export declare const ProcessorDefinition: {
770
765
  readonly responseStream: false;
771
766
  readonly options: {};
772
767
  };
773
- readonly processTransactions: {
774
- readonly name: "ProcessTransactions";
775
- readonly requestType: {
776
- encode(message: ProcessTransactionsRequest, writer?: _m0.Writer): _m0.Writer;
777
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessTransactionsRequest;
778
- fromJSON(object: any): ProcessTransactionsRequest;
779
- toJSON(message: ProcessTransactionsRequest): unknown;
780
- fromPartial(object: DeepPartial<ProcessTransactionsRequest>): ProcessTransactionsRequest;
781
- };
782
- readonly requestStream: false;
783
- readonly responseType: {
784
- encode(message: ProcessBindingResponse, writer?: _m0.Writer): _m0.Writer;
785
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingResponse;
786
- fromJSON(object: any): ProcessBindingResponse;
787
- toJSON(message: ProcessBindingResponse): unknown;
788
- fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
789
- };
790
- readonly responseStream: false;
791
- readonly options: {};
792
- };
793
- readonly processInstructions: {
794
- readonly name: "ProcessInstructions";
795
- readonly requestType: {
796
- encode(message: ProcessInstructionsRequest, writer?: _m0.Writer): _m0.Writer;
797
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessInstructionsRequest;
798
- fromJSON(object: any): ProcessInstructionsRequest;
799
- toJSON(message: ProcessInstructionsRequest): unknown;
800
- fromPartial(object: DeepPartial<ProcessInstructionsRequest>): ProcessInstructionsRequest;
801
- };
802
- readonly requestStream: false;
803
- readonly responseType: {
804
- encode(message: ProcessBindingResponse, writer?: _m0.Writer): _m0.Writer;
805
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingResponse;
806
- fromJSON(object: any): ProcessBindingResponse;
807
- toJSON(message: ProcessBindingResponse): unknown;
808
- fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
809
- };
810
- readonly responseStream: false;
811
- readonly options: {};
812
- };
813
- readonly processBlocks: {
814
- readonly name: "ProcessBlocks";
768
+ readonly processBindingsStream: {
769
+ readonly name: "ProcessBindingsStream";
815
770
  readonly requestType: {
816
- encode(message: ProcessBlocksRequest, writer?: _m0.Writer): _m0.Writer;
817
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBlocksRequest;
818
- fromJSON(object: any): ProcessBlocksRequest;
819
- toJSON(message: ProcessBlocksRequest): unknown;
820
- fromPartial(object: DeepPartial<ProcessBlocksRequest>): ProcessBlocksRequest;
771
+ encode(message: DataBinding, writer?: _m0.Writer): _m0.Writer;
772
+ decode(input: _m0.Reader | Uint8Array, length?: number): DataBinding;
773
+ fromJSON(object: any): DataBinding;
774
+ toJSON(message: DataBinding): unknown;
775
+ fromPartial(object: DeepPartial<DataBinding>): DataBinding;
821
776
  };
822
- readonly requestStream: false;
777
+ readonly requestStream: true;
823
778
  readonly responseType: {
824
779
  encode(message: ProcessBindingResponse, writer?: _m0.Writer): _m0.Writer;
825
780
  decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingResponse;
@@ -827,27 +782,7 @@ export declare const ProcessorDefinition: {
827
782
  toJSON(message: ProcessBindingResponse): unknown;
828
783
  fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
829
784
  };
830
- readonly responseStream: false;
831
- readonly options: {};
832
- };
833
- readonly processBindings: {
834
- readonly name: "ProcessBindings";
835
- readonly requestType: {
836
- encode(message: ProcessBindingsRequest, writer?: _m0.Writer): _m0.Writer;
837
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingsRequest;
838
- fromJSON(object: any): ProcessBindingsRequest;
839
- toJSON(message: ProcessBindingsRequest): unknown;
840
- fromPartial(object: DeepPartial<ProcessBindingsRequest>): ProcessBindingsRequest;
841
- };
842
- readonly requestStream: false;
843
- readonly responseType: {
844
- encode(message: ProcessBindingResponse, writer?: _m0.Writer): _m0.Writer;
845
- decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingResponse;
846
- fromJSON(object: any): ProcessBindingResponse;
847
- toJSON(message: ProcessBindingResponse): unknown;
848
- fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
849
- };
850
- readonly responseStream: false;
785
+ readonly responseStream: true;
851
786
  readonly options: {};
852
787
  };
853
788
  };
@@ -856,26 +791,21 @@ export interface ProcessorServiceImplementation<CallContextExt = {}> {
856
791
  start(request: StartRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
857
792
  stop(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
858
793
  getConfig(request: ProcessConfigRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessConfigResponse>>;
859
- processLogs(request: ProcessBindingsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
860
- processTraces(request: ProcessBindingsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
861
- processTransactions(request: ProcessTransactionsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
862
- processInstructions(request: ProcessInstructionsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
863
- processBlocks(request: ProcessBlocksRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
864
794
  processBindings(request: ProcessBindingsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
795
+ processBindingsStream(request: AsyncIterable<DataBinding>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<ProcessBindingResponse>>;
865
796
  }
866
797
  export interface ProcessorClient<CallOptionsExt = {}> {
867
798
  start(request: DeepPartial<StartRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
868
799
  stop(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
869
800
  getConfig(request: DeepPartial<ProcessConfigRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessConfigResponse>;
870
- processLogs(request: DeepPartial<ProcessBindingsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
871
- processTraces(request: DeepPartial<ProcessBindingsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
872
- processTransactions(request: DeepPartial<ProcessTransactionsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
873
- processInstructions(request: DeepPartial<ProcessInstructionsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
874
- processBlocks(request: DeepPartial<ProcessBlocksRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
875
801
  processBindings(request: DeepPartial<ProcessBindingsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
802
+ processBindingsStream(request: AsyncIterable<DeepPartial<DataBinding>>, options?: CallOptions & CallOptionsExt): AsyncIterable<ProcessBindingResponse>;
876
803
  }
877
804
  declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
878
805
  declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
879
806
  [K in keyof T]?: DeepPartial<T[K]>;
880
807
  } : Partial<T>;
808
+ export declare type ServerStreamingMethodResult<Response> = {
809
+ [Symbol.asyncIterator](): AsyncIterator<Response, void>;
810
+ };
881
811
  export {};