@sentio/runtime 2.59.0-rc.28 → 2.59.0-rc.29
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/{chunk-ZYJXCGEJ.js → chunk-CPLWSUD7.js} +2 -2
- package/lib/{chunk-HMNYJB5K.js → chunk-FO2V2K7T.js} +9 -1
- package/lib/chunk-FO2V2K7T.js.map +1 -0
- package/lib/{chunk-QJOLRVKZ.js → chunk-X2VTMTYL.js} +2 -4
- package/lib/{chunk-QJOLRVKZ.js.map → chunk-X2VTMTYL.js.map} +1 -1
- package/lib/index.d.ts +443 -19
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +8 -7
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +3 -3
- package/package.json +1 -1
- package/src/gen/processor/protos/processor.ts +26 -6
- package/src/gen/service/common/protos/common.ts +189 -0
- package/src/index.ts +7 -0
- package/src/service-manager.ts +5 -4
- package/src/service.ts +1 -2
- package/lib/chunk-HMNYJB5K.js.map +0 -1
- /package/lib/{chunk-ZYJXCGEJ.js.map → chunk-CPLWSUD7.js.map} +0 -0
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, ProcessStreamResponse_Partitions, 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,18 +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): Promise<ProcessStreamResponse_Partitions>;
|
68
|
+
partition(request: DataBinding$1): Promise<ProcessStreamResponse_Partitions>;
|
69
69
|
/**
|
70
70
|
* method used by action server only
|
71
71
|
* @param port
|
@@ -80,7 +80,7 @@ declare class PluginManager {
|
|
80
80
|
static INSTANCE: PluginManager;
|
81
81
|
dbContextLocalStorage: AsyncLocalStorage<IStoreContext | undefined>;
|
82
82
|
plugins: Plugin[];
|
83
|
-
typesToPlugin: Map<HandlerType, Plugin>;
|
83
|
+
typesToPlugin: Map<HandlerType$1, Plugin>;
|
84
84
|
register(plugin: Plugin): void;
|
85
85
|
configure(config: ProcessConfigResponse): Promise<void[]>;
|
86
86
|
start(start: StartRequest, actionServerPort?: number): Promise<void[]>;
|
@@ -90,9 +90,9 @@ declare class PluginManager {
|
|
90
90
|
* @deprecated The method should not be used, use ctx.states instead
|
91
91
|
*/
|
92
92
|
stateDiff(config: ProcessConfigResponse): boolean;
|
93
|
-
processBinding(request: DataBinding, preparedData: PreparedData | undefined, dbContext?: IStoreContext): Promise<ProcessResult>;
|
94
|
-
partition(request: DataBinding): Promise<ProcessStreamResponse_Partitions>;
|
95
|
-
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: {
|
96
96
|
[k: string]: any;
|
97
97
|
}, dbContext?: StoreContext): Promise<PreprocessResult>;
|
98
98
|
}
|
@@ -170,13 +170,13 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
170
170
|
start(request: StartRequest, context: CallContext): Promise<Empty>;
|
171
171
|
stop(request: Empty, context: CallContext): Promise<Empty>;
|
172
172
|
processBindings(request: ProcessBindingsRequest, options?: CallContext): Promise<ProcessBindingResponse>;
|
173
|
-
preprocessBindings(bindings: DataBinding[], preprocessStore: {
|
173
|
+
preprocessBindings(bindings: DataBinding$1[], preprocessStore: {
|
174
174
|
[k: string]: any;
|
175
175
|
}, dbContext?: StoreContext, options?: CallContext): Promise<PreparedData>;
|
176
|
-
preprocessBinding(request: DataBinding, preprocessStore: {
|
176
|
+
preprocessBinding(request: DataBinding$1, preprocessStore: {
|
177
177
|
[k: string]: any;
|
178
178
|
}, dbContext?: StoreContext, options?: CallContext): Promise<PreprocessResult>;
|
179
|
-
processBinding(request: DataBinding, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
|
179
|
+
processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, options?: CallContext): Promise<ProcessResult>;
|
180
180
|
processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: CallContext): AsyncGenerator<{
|
181
181
|
processId?: number | undefined;
|
182
182
|
dbRequest?: {
|
@@ -332,7 +332,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
332
332
|
} | undefined;
|
333
333
|
} | undefined;
|
334
334
|
runtimeInfo?: {
|
335
|
-
from?: HandlerType | undefined;
|
335
|
+
from?: HandlerType$1 | undefined;
|
336
336
|
} | undefined;
|
337
337
|
}[] | undefined;
|
338
338
|
counters?: {
|
@@ -359,7 +359,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
359
359
|
} | undefined;
|
360
360
|
add?: boolean | undefined;
|
361
361
|
runtimeInfo?: {
|
362
|
-
from?: HandlerType | undefined;
|
362
|
+
from?: HandlerType$1 | undefined;
|
363
363
|
} | undefined;
|
364
364
|
}[] | undefined;
|
365
365
|
events?: {
|
@@ -383,7 +383,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
383
383
|
severity?: _sentio_protos.LogLevel | undefined;
|
384
384
|
message?: string | undefined;
|
385
385
|
runtimeInfo?: {
|
386
|
-
from?: HandlerType | undefined;
|
386
|
+
from?: HandlerType$1 | undefined;
|
387
387
|
} | undefined;
|
388
388
|
attributes2?: {
|
389
389
|
fields?: {
|
@@ -449,7 +449,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
449
449
|
} | undefined;
|
450
450
|
payload?: string | undefined;
|
451
451
|
runtimeInfo?: {
|
452
|
-
from?: HandlerType | undefined;
|
452
|
+
from?: HandlerType$1 | undefined;
|
453
453
|
} | undefined;
|
454
454
|
}[] | undefined;
|
455
455
|
states?: {
|
@@ -518,7 +518,7 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
518
518
|
} | undefined;
|
519
519
|
} | undefined;
|
520
520
|
runtimeInfo?: {
|
521
|
-
from?: HandlerType | undefined;
|
521
|
+
from?: HandlerType$1 | undefined;
|
522
522
|
} | undefined;
|
523
523
|
}[] | undefined;
|
524
524
|
} | undefined;
|
@@ -667,8 +667,32 @@ declare class ProcessorServiceImpl implements ProcessorServiceImplementation {
|
|
667
667
|
protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<DeepPartial$1<ProcessStreamResponse>>): Promise<void>;
|
668
668
|
private startProcess;
|
669
669
|
}
|
670
|
-
declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
|
670
|
+
declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType$1): void;
|
671
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
|
+
}
|
672
696
|
interface ExecutionConfig {
|
673
697
|
sequential: boolean;
|
674
698
|
forceExactBlockTime: boolean;
|
@@ -698,6 +722,406 @@ declare const ExecutionConfig_DecoderWorkerConfig: {
|
|
698
722
|
create(base?: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
|
699
723
|
fromPartial(object: DeepPartial<ExecutionConfig_DecoderWorkerConfig>): ExecutionConfig_DecoderWorkerConfig;
|
700
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
|
+
};
|
701
1125
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
702
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 {} ? {
|
703
1127
|
[K in keyof T]?: DeepPartial<T[K]>;
|
@@ -868,4 +1292,4 @@ declare const processMetrics: {
|
|
868
1292
|
};
|
869
1293
|
declare const metricsStorage: AsyncLocalStorage<string>;
|
870
1294
|
|
871
|
-
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 };
|
package/lib/index.js
CHANGED
@@ -28,11 +28,11 @@ import {
|
|
28
28
|
providerMetrics,
|
29
29
|
recordRuntimeInfo,
|
30
30
|
timeoutError
|
31
|
-
} from "./chunk-
|
31
|
+
} from "./chunk-X2VTMTYL.js";
|
32
32
|
import {
|
33
33
|
Plugin,
|
34
34
|
PluginManager
|
35
|
-
} from "./chunk-
|
35
|
+
} from "./chunk-FO2V2K7T.js";
|
36
36
|
|
37
37
|
// src/chain-config.ts
|
38
38
|
import("node:process").then((p) => p.stdout.write(""));
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/chain-config.ts","../src/index.ts"],"sourcesContent":["export interface ChainConfig {\n ChainID: string\n Https?: string[]\n ChainServer?: string\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export * from './plugin.js'\nexport * from './state.js'\nexport * from './utils.js'\nexport * from './endpoints.js'\nexport * from './chain-config.js'\nexport * from './service.js'\nexport { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js'\nexport * from './db-context.js'\nexport * from './provider.js'\nexport * from './metrics.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKC,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;;;
|
1
|
+
{"version":3,"sources":["../src/chain-config.ts","../src/index.ts"],"sourcesContent":["export interface ChainConfig {\n ChainID: string\n Https?: string[]\n ChainServer?: string\n}\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));","export * from './plugin.js'\nexport * from './state.js'\nexport * from './utils.js'\nexport * from './endpoints.js'\nexport * from './chain-config.js'\nexport * from './service.js'\nexport { GLOBAL_CONFIG, type GlobalConfig } from './global-config.js'\nexport * from './db-context.js'\nexport * from './provider.js'\nexport * from './metrics.js'\nexport {\n type DataBinding,\n type Data_EthLog,\n type Data_EthBlock,\n type Data_EthTransaction,\n type Data_EthTrace\n} from './gen/processor/protos/processor.js'\n;import(\"node:process\").then((p) => p.stdout.write(\"\"));"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKC,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;;;ACYrD,OAAO,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,CAAC;","names":[]}
|
package/lib/processor-runner.js
CHANGED
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
} from "./chunk-6XHWJ2VS.js";
|
6
6
|
import {
|
7
7
|
setupLogger
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-CPLWSUD7.js";
|
9
9
|
import {
|
10
10
|
DiagConsoleLogger,
|
11
11
|
DiagLogLevel,
|
@@ -44,7 +44,7 @@ import {
|
|
44
44
|
require_lodash,
|
45
45
|
require_src,
|
46
46
|
trace
|
47
|
-
} from "./chunk-
|
47
|
+
} from "./chunk-X2VTMTYL.js";
|
48
48
|
import {
|
49
49
|
ExecutionConfig,
|
50
50
|
HandlerType,
|
@@ -60,7 +60,7 @@ import {
|
|
60
60
|
__toCommonJS,
|
61
61
|
__toESM,
|
62
62
|
require_minimal2 as require_minimal
|
63
|
-
} from "./chunk-
|
63
|
+
} from "./chunk-FO2V2K7T.js";
|
64
64
|
|
65
65
|
// ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.25.1/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js
|
66
66
|
// @__NO_SIDE_EFFECTS__
|
@@ -26306,10 +26306,11 @@ var ServiceManager = class extends ProcessorServiceImpl {
|
|
26306
26306
|
continue;
|
26307
26307
|
}
|
26308
26308
|
if (this.enablePartition) {
|
26309
|
-
|
26310
|
-
|
26311
|
-
|
26312
|
-
|
26309
|
+
PluginManager.INSTANCE.partition(request3.binding).then((partitions) => {
|
26310
|
+
subject.next({
|
26311
|
+
processId: request3.processId,
|
26312
|
+
partitions
|
26313
|
+
});
|
26313
26314
|
});
|
26314
26315
|
lastBinding = request3.binding;
|
26315
26316
|
} else {
|