@sentio/runtime 2.3.1 → 2.3.2-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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
3
|
"license": "Apache-2.0",
|
4
|
-
"version": "2.3.1",
|
4
|
+
"version": "2.3.2-rc.1",
|
5
5
|
"scripts": {
|
6
6
|
"compile": "tsc",
|
7
7
|
"build": "yarn compile",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"start_js": "ts-node-esm --files ./lib/processor-runner.js $PWD/../../debug/dist/lib.js"
|
14
14
|
},
|
15
15
|
"dependencies": {
|
16
|
-
"@sentio/protos": "^2.3.1",
|
16
|
+
"@sentio/protos": "^2.3.2-rc.1",
|
17
17
|
"command-line-args": "^5.2.1",
|
18
18
|
"command-line-usage": "^6.1.3",
|
19
19
|
"fs-extra": "^11.0.0",
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"!{lib,src}/tests",
|
46
46
|
"!**/*.test.{js,ts}"
|
47
47
|
],
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "e009009439a4b3cec12aa9cc6ac7e869a1cac1ef"
|
49
49
|
}
|
@@ -549,10 +549,14 @@ export interface Data_AptResource {
|
|
549
549
|
|
550
550
|
export interface Data_SuiEvent {
|
551
551
|
transaction: { [key: string]: any } | undefined;
|
552
|
+
timestamp: Date | undefined;
|
553
|
+
slot: bigint;
|
552
554
|
}
|
553
555
|
|
554
556
|
export interface Data_SuiCall {
|
555
557
|
transaction: { [key: string]: any } | undefined;
|
558
|
+
timestamp: Date | undefined;
|
559
|
+
slot: bigint;
|
556
560
|
}
|
557
561
|
|
558
562
|
export interface DataBinding {
|
@@ -3977,7 +3981,7 @@ export const Data_AptResource = {
|
|
3977
3981
|
};
|
3978
3982
|
|
3979
3983
|
function createBaseData_SuiEvent(): Data_SuiEvent {
|
3980
|
-
return { transaction: undefined };
|
3984
|
+
return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
|
3981
3985
|
}
|
3982
3986
|
|
3983
3987
|
export const Data_SuiEvent = {
|
@@ -3985,6 +3989,12 @@ export const Data_SuiEvent = {
|
|
3985
3989
|
if (message.transaction !== undefined) {
|
3986
3990
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
|
3987
3991
|
}
|
3992
|
+
if (message.timestamp !== undefined) {
|
3993
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
3994
|
+
}
|
3995
|
+
if (message.slot !== BigInt("0")) {
|
3996
|
+
writer.uint32(24).uint64(message.slot.toString());
|
3997
|
+
}
|
3988
3998
|
return writer;
|
3989
3999
|
},
|
3990
4000
|
|
@@ -3998,6 +4008,12 @@ export const Data_SuiEvent = {
|
|
3998
4008
|
case 1:
|
3999
4009
|
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
4000
4010
|
break;
|
4011
|
+
case 2:
|
4012
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
4013
|
+
break;
|
4014
|
+
case 3:
|
4015
|
+
message.slot = longToBigint(reader.uint64() as Long);
|
4016
|
+
break;
|
4001
4017
|
default:
|
4002
4018
|
reader.skipType(tag & 7);
|
4003
4019
|
break;
|
@@ -4007,12 +4023,18 @@ export const Data_SuiEvent = {
|
|
4007
4023
|
},
|
4008
4024
|
|
4009
4025
|
fromJSON(object: any): Data_SuiEvent {
|
4010
|
-
return {
|
4026
|
+
return {
|
4027
|
+
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
4028
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
4029
|
+
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
4030
|
+
};
|
4011
4031
|
},
|
4012
4032
|
|
4013
4033
|
toJSON(message: Data_SuiEvent): unknown {
|
4014
4034
|
const obj: any = {};
|
4015
4035
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
4036
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
|
4037
|
+
message.slot !== undefined && (obj.slot = message.slot.toString());
|
4016
4038
|
return obj;
|
4017
4039
|
},
|
4018
4040
|
|
@@ -4023,12 +4045,14 @@ export const Data_SuiEvent = {
|
|
4023
4045
|
fromPartial(object: DeepPartial<Data_SuiEvent>): Data_SuiEvent {
|
4024
4046
|
const message = createBaseData_SuiEvent();
|
4025
4047
|
message.transaction = object.transaction ?? undefined;
|
4048
|
+
message.timestamp = object.timestamp ?? undefined;
|
4049
|
+
message.slot = object.slot ?? BigInt("0");
|
4026
4050
|
return message;
|
4027
4051
|
},
|
4028
4052
|
};
|
4029
4053
|
|
4030
4054
|
function createBaseData_SuiCall(): Data_SuiCall {
|
4031
|
-
return { transaction: undefined };
|
4055
|
+
return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
|
4032
4056
|
}
|
4033
4057
|
|
4034
4058
|
export const Data_SuiCall = {
|
@@ -4036,6 +4060,12 @@ export const Data_SuiCall = {
|
|
4036
4060
|
if (message.transaction !== undefined) {
|
4037
4061
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
|
4038
4062
|
}
|
4063
|
+
if (message.timestamp !== undefined) {
|
4064
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
4065
|
+
}
|
4066
|
+
if (message.slot !== BigInt("0")) {
|
4067
|
+
writer.uint32(24).uint64(message.slot.toString());
|
4068
|
+
}
|
4039
4069
|
return writer;
|
4040
4070
|
},
|
4041
4071
|
|
@@ -4049,6 +4079,12 @@ export const Data_SuiCall = {
|
|
4049
4079
|
case 1:
|
4050
4080
|
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
4051
4081
|
break;
|
4082
|
+
case 2:
|
4083
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
4084
|
+
break;
|
4085
|
+
case 3:
|
4086
|
+
message.slot = longToBigint(reader.uint64() as Long);
|
4087
|
+
break;
|
4052
4088
|
default:
|
4053
4089
|
reader.skipType(tag & 7);
|
4054
4090
|
break;
|
@@ -4058,12 +4094,18 @@ export const Data_SuiCall = {
|
|
4058
4094
|
},
|
4059
4095
|
|
4060
4096
|
fromJSON(object: any): Data_SuiCall {
|
4061
|
-
return {
|
4097
|
+
return {
|
4098
|
+
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
4099
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
4100
|
+
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
4101
|
+
};
|
4062
4102
|
},
|
4063
4103
|
|
4064
4104
|
toJSON(message: Data_SuiCall): unknown {
|
4065
4105
|
const obj: any = {};
|
4066
4106
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
4107
|
+
message.timestamp !== undefined && (obj.timestamp = message.timestamp.toISOString());
|
4108
|
+
message.slot !== undefined && (obj.slot = message.slot.toString());
|
4067
4109
|
return obj;
|
4068
4110
|
},
|
4069
4111
|
|
@@ -4074,6 +4116,8 @@ export const Data_SuiCall = {
|
|
4074
4116
|
fromPartial(object: DeepPartial<Data_SuiCall>): Data_SuiCall {
|
4075
4117
|
const message = createBaseData_SuiCall();
|
4076
4118
|
message.transaction = object.transaction ?? undefined;
|
4119
|
+
message.timestamp = object.timestamp ?? undefined;
|
4120
|
+
message.slot = object.slot ?? BigInt("0");
|
4077
4121
|
return message;
|
4078
4122
|
},
|
4079
4123
|
};
|