@sentio/runtime 1.37.4 → 1.37.5-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.
- package/lib/gen/google/protobuf/timestamp.d.ts +1 -1
- package/lib/gen/google/protobuf/timestamp.js +4 -4
- package/lib/gen/google/protobuf/timestamp.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +14 -5
- package/lib/gen/processor/protos/processor.js +17 -23
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/service.test.js.map +1 -1
- package/package.json +3 -3
- package/src/gen/google/protobuf/timestamp.ts +40 -45
- package/src/gen/processor/protos/processor.ts +22 -27
@@ -8,11 +8,11 @@ exports.Timestamp = void 0;
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
10
10
|
function createBaseTimestamp() {
|
11
|
-
return { seconds: BigInt(
|
11
|
+
return { seconds: BigInt("0"), nanos: 0 };
|
12
12
|
}
|
13
13
|
exports.Timestamp = {
|
14
14
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
15
|
-
if (message.seconds !== BigInt(
|
15
|
+
if (message.seconds !== BigInt("0")) {
|
16
16
|
writer.uint32(8).int64(message.seconds.toString());
|
17
17
|
}
|
18
18
|
if (message.nanos !== 0) {
|
@@ -42,7 +42,7 @@ exports.Timestamp = {
|
|
42
42
|
},
|
43
43
|
fromJSON(object) {
|
44
44
|
return {
|
45
|
-
seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt(
|
45
|
+
seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt("0"),
|
46
46
|
nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
|
47
47
|
};
|
48
48
|
},
|
@@ -54,7 +54,7 @@ exports.Timestamp = {
|
|
54
54
|
},
|
55
55
|
fromPartial(object) {
|
56
56
|
const message = createBaseTimestamp();
|
57
|
-
message.seconds = object.seconds ?? BigInt(
|
57
|
+
message.seconds = object.seconds ?? BigInt("0");
|
58
58
|
message.nanos = object.nanos ?? 0;
|
59
59
|
return message;
|
60
60
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/gen/google/protobuf/timestamp.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,
|
1
|
+
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/gen/google/protobuf/timestamp.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,gDAAwB;AACxB,iEAAqC;AAOrC,SAAS,mBAAmB;IAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC5C,CAAC;AAEY,QAAA,SAAS,GAAG;IACvB,MAAM,CAAC,OAAkB,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACjE,IAAI,OAAO,CAAC,OAAO,KAAK,MAAM,CAAC,GAAG,CAAC,EAAE;YACnC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;SACpD;QACD,IAAI,OAAO,CAAC,KAAK,KAAK,CAAC,EAAE;YACvB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAA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AC;IAED,WAAW,CAAC,MAA8B;QACxC,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;QACtC,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;QAChD,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AASF,SAAS,YAAY,CAAC,IAAU;IAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;AACjC,CAAC;AAED,IAAI,iBAAG,CAAC,IAAI,CAAC,IAAI,KAAK,cAAI,EAAE;IAC1B,iBAAG,CAAC,IAAI,CAAC,IAAI,GAAG,cAAW,CAAC;IAC5B,iBAAG,CAAC,SAAS,EAAE,CAAC;CACjB;AAED,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport interface Timestamp {\n seconds: bigint;\n nanos: number;\n}\n\nfunction createBaseTimestamp(): Timestamp {\n return { seconds: BigInt(\"0\"), nanos: 0 };\n}\n\nexport const Timestamp = {\n encode(message: Timestamp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.seconds !== BigInt(\"0\")) {\n writer.uint32(8).int64(message.seconds.toString());\n }\n if (message.nanos !== 0) {\n writer.uint32(16).int32(message.nanos);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseTimestamp();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.seconds = longToBigint(reader.int64() as Long);\n break;\n case 2:\n message.nanos = reader.int32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromJSON(object: any): Timestamp {\n return {\n seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt(\"0\"),\n nanos: isSet(object.nanos) ? Number(object.nanos) : 0,\n };\n },\n\n toJSON(message: Timestamp): unknown {\n const obj: any = {};\n message.seconds !== undefined && (obj.seconds = message.seconds.toString());\n message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));\n return obj;\n },\n\n fromPartial(object: DeepPartial<Timestamp>): Timestamp {\n const message = createBaseTimestamp();\n message.seconds = object.seconds ?? BigInt(\"0\");\n message.nanos = object.nanos ?? 0;\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\ntype DeepPartial<T> = T extends Builtin ? T\n : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\nfunction longToBigint(long: Long) {\n return BigInt(long.toString());\n}\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n"]}
|
@@ -207,6 +207,7 @@ export interface RawTransaction {
|
|
207
207
|
slot?: bigint | undefined;
|
208
208
|
}
|
209
209
|
export interface Data {
|
210
|
+
/** @deprecated */
|
210
211
|
raw: Uint8Array;
|
211
212
|
ethLog?: Data_EthLog | undefined;
|
212
213
|
ethBlock?: Data_EthBlock | undefined;
|
@@ -221,7 +222,9 @@ export interface Data_EthLog {
|
|
221
222
|
log: {
|
222
223
|
[key: string]: any;
|
223
224
|
} | undefined;
|
224
|
-
transaction?:
|
225
|
+
transaction?: {
|
226
|
+
[key: string]: any;
|
227
|
+
} | undefined;
|
225
228
|
}
|
226
229
|
export interface Data_EthBlock {
|
227
230
|
block: {
|
@@ -232,14 +235,20 @@ export interface Data_EthTransaction {
|
|
232
235
|
transaction: {
|
233
236
|
[key: string]: any;
|
234
237
|
} | undefined;
|
235
|
-
transactionReceipt?:
|
238
|
+
transactionReceipt?: {
|
239
|
+
[key: string]: any;
|
240
|
+
} | undefined;
|
236
241
|
}
|
237
242
|
export interface Data_EthTrace {
|
238
243
|
trace: {
|
239
244
|
[key: string]: any;
|
240
245
|
} | undefined;
|
241
|
-
transaction?:
|
242
|
-
|
246
|
+
transaction?: {
|
247
|
+
[key: string]: any;
|
248
|
+
} | undefined;
|
249
|
+
transactionReceipt?: {
|
250
|
+
[key: string]: any;
|
251
|
+
} | undefined;
|
243
252
|
}
|
244
253
|
export interface Data_SolInstruction {
|
245
254
|
instructionData: string;
|
@@ -697,7 +706,7 @@ export declare const ExportResult: {
|
|
697
706
|
export declare type ProcessorDefinition = typeof ProcessorDefinition;
|
698
707
|
export declare const ProcessorDefinition: {
|
699
708
|
readonly name: "Processor";
|
700
|
-
readonly fullName: "
|
709
|
+
readonly fullName: "processor_full.Processor";
|
701
710
|
readonly methods: {
|
702
711
|
readonly start: {
|
703
712
|
readonly name: "Start";
|
@@ -2531,7 +2531,7 @@ exports.Data_EthLog = {
|
|
2531
2531
|
struct_1.Struct.encode(struct_1.Struct.wrap(message.log), writer.uint32(26).fork()).ldelim();
|
2532
2532
|
}
|
2533
2533
|
if (message.transaction !== undefined) {
|
2534
|
-
writer.uint32(18).
|
2534
|
+
struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
|
2535
2535
|
}
|
2536
2536
|
return writer;
|
2537
2537
|
},
|
@@ -2546,7 +2546,7 @@ exports.Data_EthLog = {
|
|
2546
2546
|
message.log = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2547
2547
|
break;
|
2548
2548
|
case 2:
|
2549
|
-
message.transaction = reader.
|
2549
|
+
message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2550
2550
|
break;
|
2551
2551
|
default:
|
2552
2552
|
reader.skipType(tag & 7);
|
@@ -2558,14 +2558,13 @@ exports.Data_EthLog = {
|
|
2558
2558
|
fromJSON(object) {
|
2559
2559
|
return {
|
2560
2560
|
log: isObject(object.log) ? object.log : undefined,
|
2561
|
-
transaction:
|
2561
|
+
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
2562
2562
|
};
|
2563
2563
|
},
|
2564
2564
|
toJSON(message) {
|
2565
2565
|
const obj = {};
|
2566
2566
|
message.log !== undefined && (obj.log = message.log);
|
2567
|
-
message.transaction !== undefined &&
|
2568
|
-
(obj.transaction = message.transaction !== undefined ? base64FromBytes(message.transaction) : undefined);
|
2567
|
+
message.transaction !== undefined && (obj.transaction = message.transaction);
|
2569
2568
|
return obj;
|
2570
2569
|
},
|
2571
2570
|
fromPartial(object) {
|
@@ -2625,7 +2624,7 @@ exports.Data_EthTransaction = {
|
|
2625
2624
|
struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(34).fork()).ldelim();
|
2626
2625
|
}
|
2627
2626
|
if (message.transactionReceipt !== undefined) {
|
2628
|
-
writer.uint32(26).
|
2627
|
+
struct_1.Struct.encode(struct_1.Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
|
2629
2628
|
}
|
2630
2629
|
return writer;
|
2631
2630
|
},
|
@@ -2640,7 +2639,7 @@ exports.Data_EthTransaction = {
|
|
2640
2639
|
message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2641
2640
|
break;
|
2642
2641
|
case 3:
|
2643
|
-
message.transactionReceipt = reader.
|
2642
|
+
message.transactionReceipt = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2644
2643
|
break;
|
2645
2644
|
default:
|
2646
2645
|
reader.skipType(tag & 7);
|
@@ -2652,15 +2651,13 @@ exports.Data_EthTransaction = {
|
|
2652
2651
|
fromJSON(object) {
|
2653
2652
|
return {
|
2654
2653
|
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
2655
|
-
transactionReceipt:
|
2654
|
+
transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
|
2656
2655
|
};
|
2657
2656
|
},
|
2658
2657
|
toJSON(message) {
|
2659
2658
|
const obj = {};
|
2660
2659
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
2661
|
-
message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt
|
2662
|
-
? base64FromBytes(message.transactionReceipt)
|
2663
|
-
: undefined);
|
2660
|
+
message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
|
2664
2661
|
return obj;
|
2665
2662
|
},
|
2666
2663
|
fromPartial(object) {
|
@@ -2679,10 +2676,10 @@ exports.Data_EthTrace = {
|
|
2679
2676
|
struct_1.Struct.encode(struct_1.Struct.wrap(message.trace), writer.uint32(34).fork()).ldelim();
|
2680
2677
|
}
|
2681
2678
|
if (message.transaction !== undefined) {
|
2682
|
-
writer.uint32(18).
|
2679
|
+
struct_1.Struct.encode(struct_1.Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
|
2683
2680
|
}
|
2684
2681
|
if (message.transactionReceipt !== undefined) {
|
2685
|
-
writer.uint32(26).
|
2682
|
+
struct_1.Struct.encode(struct_1.Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim();
|
2686
2683
|
}
|
2687
2684
|
return writer;
|
2688
2685
|
},
|
@@ -2697,10 +2694,10 @@ exports.Data_EthTrace = {
|
|
2697
2694
|
message.trace = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2698
2695
|
break;
|
2699
2696
|
case 2:
|
2700
|
-
message.transaction = reader.
|
2697
|
+
message.transaction = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2701
2698
|
break;
|
2702
2699
|
case 3:
|
2703
|
-
message.transactionReceipt = reader.
|
2700
|
+
message.transactionReceipt = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
|
2704
2701
|
break;
|
2705
2702
|
default:
|
2706
2703
|
reader.skipType(tag & 7);
|
@@ -2712,18 +2709,15 @@ exports.Data_EthTrace = {
|
|
2712
2709
|
fromJSON(object) {
|
2713
2710
|
return {
|
2714
2711
|
trace: isObject(object.trace) ? object.trace : undefined,
|
2715
|
-
transaction:
|
2716
|
-
transactionReceipt:
|
2712
|
+
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
2713
|
+
transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
|
2717
2714
|
};
|
2718
2715
|
},
|
2719
2716
|
toJSON(message) {
|
2720
2717
|
const obj = {};
|
2721
2718
|
message.trace !== undefined && (obj.trace = message.trace);
|
2722
|
-
message.transaction !== undefined &&
|
2723
|
-
|
2724
|
-
message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt !== undefined
|
2725
|
-
? base64FromBytes(message.transactionReceipt)
|
2726
|
-
: undefined);
|
2719
|
+
message.transaction !== undefined && (obj.transaction = message.transaction);
|
2720
|
+
message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
|
2727
2721
|
return obj;
|
2728
2722
|
},
|
2729
2723
|
fromPartial(object) {
|
@@ -3875,7 +3869,7 @@ exports.ExportResult = {
|
|
3875
3869
|
};
|
3876
3870
|
exports.ProcessorDefinition = {
|
3877
3871
|
name: "Processor",
|
3878
|
-
fullName: "
|
3872
|
+
fullName: "processor_full.Processor",
|
3879
3873
|
methods: {
|
3880
3874
|
start: {
|
3881
3875
|
name: "Start",
|