@sentio/sdk 1.34.0 → 1.34.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.
@@ -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,
@@ -166,8 +166,8 @@ export interface LogHandlerConfig {
166
166
  }
167
167
  export interface LogFilter {
168
168
  topics: Topic[];
169
- address: string | undefined;
170
- addressType: AddressType | undefined;
169
+ address?: string | undefined;
170
+ addressType?: AddressType | undefined;
171
171
  }
172
172
  export interface InstructionHandlerConfig {
173
173
  innerInstruction: boolean;
@@ -207,24 +207,57 @@ export interface RawTransaction {
207
207
  programAccountId?: string | undefined;
208
208
  slot?: Long | undefined;
209
209
  }
210
- 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 {
211
239
  instructionData: string;
212
240
  slot: Long;
213
241
  programAccountId: string;
214
242
  accounts: string[];
215
243
  parsed?: Uint8Array | undefined;
216
244
  }
217
- export interface Data {
218
- 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;
219
255
  }
220
256
  export interface DataBinding {
221
257
  data: Data | undefined;
222
258
  handlerType: HandlerType;
223
259
  handlerIds: number[];
224
260
  }
225
- export interface RawBlock {
226
- raw: Uint8Array;
227
- }
228
261
  export interface ProcessResult {
229
262
  gauges: GaugeResult[];
230
263
  counters: CounterResult[];
@@ -250,9 +283,9 @@ export interface RecordMetaData_LabelsEntry {
250
283
  value: string;
251
284
  }
252
285
  export interface MetricValue {
253
- bigDecimal: string | undefined;
254
- doubleValue: number | undefined;
255
- bigInteger: BigInteger | undefined;
286
+ bigDecimal?: string | undefined;
287
+ doubleValue?: number | undefined;
288
+ bigInteger?: BigInteger | undefined;
256
289
  }
257
290
  export interface BigInteger {
258
291
  negative: boolean;
@@ -500,13 +533,6 @@ export declare const RawTransaction: {
500
533
  toJSON(message: RawTransaction): unknown;
501
534
  fromPartial(object: DeepPartial<RawTransaction>): RawTransaction;
502
535
  };
503
- export declare const Instruction: {
504
- encode(message: Instruction, writer?: _m0.Writer): _m0.Writer;
505
- decode(input: _m0.Reader | Uint8Array, length?: number): Instruction;
506
- fromJSON(object: any): Instruction;
507
- toJSON(message: Instruction): unknown;
508
- fromPartial(object: DeepPartial<Instruction>): Instruction;
509
- };
510
536
  export declare const Data: {
511
537
  encode(message: Data, writer?: _m0.Writer): _m0.Writer;
512
538
  decode(input: _m0.Reader | Uint8Array, length?: number): Data;
@@ -514,6 +540,62 @@ export declare const Data: {
514
540
  toJSON(message: Data): unknown;
515
541
  fromPartial(object: DeepPartial<Data>): Data;
516
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
+ };
517
599
  export declare const DataBinding: {
518
600
  encode(message: DataBinding, writer?: _m0.Writer): _m0.Writer;
519
601
  decode(input: _m0.Reader | Uint8Array, length?: number): DataBinding;
@@ -521,13 +603,6 @@ export declare const DataBinding: {
521
603
  toJSON(message: DataBinding): unknown;
522
604
  fromPartial(object: DeepPartial<DataBinding>): DataBinding;
523
605
  };
524
- export declare const RawBlock: {
525
- encode(message: RawBlock, writer?: _m0.Writer): _m0.Writer;
526
- decode(input: _m0.Reader | Uint8Array, length?: number): RawBlock;
527
- fromJSON(object: any): RawBlock;
528
- toJSON(message: RawBlock): unknown;
529
- fromPartial(object: DeepPartial<RawBlock>): RawBlock;
530
- };
531
606
  export declare const ProcessResult: {
532
607
  encode(message: ProcessResult, writer?: _m0.Writer): _m0.Writer;
533
608
  decode(input: _m0.Reader | Uint8Array, length?: number): ProcessResult;
@@ -690,6 +765,26 @@ export declare const ProcessorDefinition: {
690
765
  readonly responseStream: false;
691
766
  readonly options: {};
692
767
  };
768
+ readonly processBindingsStream: {
769
+ readonly name: "ProcessBindingsStream";
770
+ readonly requestType: {
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;
776
+ };
777
+ readonly requestStream: true;
778
+ readonly responseType: {
779
+ encode(message: ProcessBindingResponse, writer?: _m0.Writer): _m0.Writer;
780
+ decode(input: _m0.Reader | Uint8Array, length?: number): ProcessBindingResponse;
781
+ fromJSON(object: any): ProcessBindingResponse;
782
+ toJSON(message: ProcessBindingResponse): unknown;
783
+ fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
784
+ };
785
+ readonly responseStream: true;
786
+ readonly options: {};
787
+ };
693
788
  };
694
789
  };
695
790
  export interface ProcessorServiceImplementation<CallContextExt = {}> {
@@ -697,15 +792,20 @@ export interface ProcessorServiceImplementation<CallContextExt = {}> {
697
792
  stop(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
698
793
  getConfig(request: ProcessConfigRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessConfigResponse>>;
699
794
  processBindings(request: ProcessBindingsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
795
+ processBindingsStream(request: AsyncIterable<DataBinding>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<ProcessBindingResponse>>;
700
796
  }
701
797
  export interface ProcessorClient<CallOptionsExt = {}> {
702
798
  start(request: DeepPartial<StartRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
703
799
  stop(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
704
800
  getConfig(request: DeepPartial<ProcessConfigRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessConfigResponse>;
705
801
  processBindings(request: DeepPartial<ProcessBindingsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
802
+ processBindingsStream(request: AsyncIterable<DeepPartial<DataBinding>>, options?: CallOptions & CallOptionsExt): AsyncIterable<ProcessBindingResponse>;
706
803
  }
707
804
  declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
708
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 {} ? {
709
806
  [K in keyof T]?: DeepPartial<T[K]>;
710
807
  } : Partial<T>;
808
+ export declare type ServerStreamingMethodResult<Response> = {
809
+ [Symbol.asyncIterator](): AsyncIterator<Response, void>;
810
+ };
711
811
  export {};