@sentio/runtime 2.54.3-rc.1 → 2.55.0-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/{chunk-KVJ2GUGQ.js → chunk-EA74AZCL.js} +15 -15
- package/lib/{chunk-KVJ2GUGQ.js.map → chunk-EA74AZCL.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +38 -38
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +103 -54
- package/src/gen/processor/protos/processor.ts +146 -47
@@ -1053,8 +1053,6 @@ export interface DBRequest_DBFilter {
|
|
1053
1053
|
}
|
1054
1054
|
|
1055
1055
|
export interface Data {
|
1056
|
-
/** @deprecated */
|
1057
|
-
raw: Uint8Array;
|
1058
1056
|
ethLog?: Data_EthLog | undefined;
|
1059
1057
|
ethBlock?: Data_EthBlock | undefined;
|
1060
1058
|
ethTransaction?: Data_EthTransaction | undefined;
|
@@ -1117,16 +1115,21 @@ export interface Data_SolInstruction {
|
|
1117
1115
|
}
|
1118
1116
|
|
1119
1117
|
export interface Data_AptEvent {
|
1118
|
+
rawEvent: string;
|
1119
|
+
eventIndex: number;
|
1120
|
+
/** @deprecated */
|
1120
1121
|
transaction: { [key: string]: any } | undefined;
|
1121
1122
|
rawTransaction: string;
|
1122
1123
|
}
|
1123
1124
|
|
1124
1125
|
export interface Data_AptCall {
|
1126
|
+
/** @deprecated */
|
1125
1127
|
transaction: { [key: string]: any } | undefined;
|
1126
1128
|
rawTransaction: string;
|
1127
1129
|
}
|
1128
1130
|
|
1129
1131
|
export interface Data_AptResource {
|
1132
|
+
/** @deprecated */
|
1130
1133
|
resources: { [key: string]: any }[];
|
1131
1134
|
version: bigint;
|
1132
1135
|
timestampMicros: bigint;
|
@@ -1134,20 +1137,29 @@ export interface Data_AptResource {
|
|
1134
1137
|
}
|
1135
1138
|
|
1136
1139
|
export interface Data_SuiEvent {
|
1140
|
+
/** @deprecated */
|
1137
1141
|
transaction: { [key: string]: any } | undefined;
|
1142
|
+
rawEvent: string;
|
1143
|
+
rawTransaction: string;
|
1138
1144
|
timestamp: Date | undefined;
|
1139
1145
|
slot: bigint;
|
1140
1146
|
}
|
1141
1147
|
|
1142
1148
|
export interface Data_SuiCall {
|
1149
|
+
/** @deprecated */
|
1143
1150
|
transaction: { [key: string]: any } | undefined;
|
1151
|
+
rawTransaction: string;
|
1144
1152
|
timestamp: Date | undefined;
|
1145
1153
|
slot: bigint;
|
1146
1154
|
}
|
1147
1155
|
|
1148
1156
|
export interface Data_SuiObject {
|
1157
|
+
/** @deprecated */
|
1149
1158
|
objects: { [key: string]: any }[];
|
1159
|
+
/** @deprecated */
|
1150
1160
|
self?: { [key: string]: any } | undefined;
|
1161
|
+
rawObjects: string[];
|
1162
|
+
rawSelf?: string | undefined;
|
1151
1163
|
objectId: string;
|
1152
1164
|
objectVersion: bigint;
|
1153
1165
|
objectDigest: string;
|
@@ -1156,7 +1168,9 @@ export interface Data_SuiObject {
|
|
1156
1168
|
}
|
1157
1169
|
|
1158
1170
|
export interface Data_SuiObjectChange {
|
1171
|
+
/** @deprecated */
|
1159
1172
|
changes: { [key: string]: any }[];
|
1173
|
+
rawChanges: string[];
|
1160
1174
|
timestamp: Date | undefined;
|
1161
1175
|
txDigest: string;
|
1162
1176
|
slot: bigint;
|
@@ -8651,7 +8665,6 @@ export const DBRequest_DBFilter = {
|
|
8651
8665
|
|
8652
8666
|
function createBaseData(): Data {
|
8653
8667
|
return {
|
8654
|
-
raw: new Uint8Array(0),
|
8655
8668
|
ethLog: undefined,
|
8656
8669
|
ethBlock: undefined,
|
8657
8670
|
ethTransaction: undefined,
|
@@ -8677,9 +8690,6 @@ function createBaseData(): Data {
|
|
8677
8690
|
|
8678
8691
|
export const Data = {
|
8679
8692
|
encode(message: Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
8680
|
-
if (message.raw.length !== 0) {
|
8681
|
-
writer.uint32(10).bytes(message.raw);
|
8682
|
-
}
|
8683
8693
|
if (message.ethLog !== undefined) {
|
8684
8694
|
Data_EthLog.encode(message.ethLog, writer.uint32(18).fork()).ldelim();
|
8685
8695
|
}
|
@@ -8750,13 +8760,6 @@ export const Data = {
|
|
8750
8760
|
while (reader.pos < end) {
|
8751
8761
|
const tag = reader.uint32();
|
8752
8762
|
switch (tag >>> 3) {
|
8753
|
-
case 1:
|
8754
|
-
if (tag !== 10) {
|
8755
|
-
break;
|
8756
|
-
}
|
8757
|
-
|
8758
|
-
message.raw = reader.bytes();
|
8759
|
-
continue;
|
8760
8763
|
case 2:
|
8761
8764
|
if (tag !== 18) {
|
8762
8765
|
break;
|
@@ -8908,7 +8911,6 @@ export const Data = {
|
|
8908
8911
|
|
8909
8912
|
fromJSON(object: any): Data {
|
8910
8913
|
return {
|
8911
|
-
raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(0),
|
8912
8914
|
ethLog: isSet(object.ethLog) ? Data_EthLog.fromJSON(object.ethLog) : undefined,
|
8913
8915
|
ethBlock: isSet(object.ethBlock) ? Data_EthBlock.fromJSON(object.ethBlock) : undefined,
|
8914
8916
|
ethTransaction: isSet(object.ethTransaction) ? Data_EthTransaction.fromJSON(object.ethTransaction) : undefined,
|
@@ -8938,9 +8940,6 @@ export const Data = {
|
|
8938
8940
|
|
8939
8941
|
toJSON(message: Data): unknown {
|
8940
8942
|
const obj: any = {};
|
8941
|
-
if (message.raw.length !== 0) {
|
8942
|
-
obj.raw = base64FromBytes(message.raw);
|
8943
|
-
}
|
8944
8943
|
if (message.ethLog !== undefined) {
|
8945
8944
|
obj.ethLog = Data_EthLog.toJSON(message.ethLog);
|
8946
8945
|
}
|
@@ -9009,7 +9008,6 @@ export const Data = {
|
|
9009
9008
|
},
|
9010
9009
|
fromPartial(object: DeepPartial<Data>): Data {
|
9011
9010
|
const message = createBaseData();
|
9012
|
-
message.raw = object.raw ?? new Uint8Array(0);
|
9013
9011
|
message.ethLog = (object.ethLog !== undefined && object.ethLog !== null)
|
9014
9012
|
? Data_EthLog.fromPartial(object.ethLog)
|
9015
9013
|
: undefined;
|
@@ -9629,11 +9627,17 @@ export const Data_SolInstruction = {
|
|
9629
9627
|
};
|
9630
9628
|
|
9631
9629
|
function createBaseData_AptEvent(): Data_AptEvent {
|
9632
|
-
return { transaction: undefined, rawTransaction: "" };
|
9630
|
+
return { rawEvent: "", eventIndex: 0, transaction: undefined, rawTransaction: "" };
|
9633
9631
|
}
|
9634
9632
|
|
9635
9633
|
export const Data_AptEvent = {
|
9636
9634
|
encode(message: Data_AptEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
9635
|
+
if (message.rawEvent !== "") {
|
9636
|
+
writer.uint32(10).string(message.rawEvent);
|
9637
|
+
}
|
9638
|
+
if (message.eventIndex !== 0) {
|
9639
|
+
writer.uint32(32).int32(message.eventIndex);
|
9640
|
+
}
|
9637
9641
|
if (message.transaction !== undefined) {
|
9638
9642
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
|
9639
9643
|
}
|
@@ -9650,6 +9654,20 @@ export const Data_AptEvent = {
|
|
9650
9654
|
while (reader.pos < end) {
|
9651
9655
|
const tag = reader.uint32();
|
9652
9656
|
switch (tag >>> 3) {
|
9657
|
+
case 1:
|
9658
|
+
if (tag !== 10) {
|
9659
|
+
break;
|
9660
|
+
}
|
9661
|
+
|
9662
|
+
message.rawEvent = reader.string();
|
9663
|
+
continue;
|
9664
|
+
case 4:
|
9665
|
+
if (tag !== 32) {
|
9666
|
+
break;
|
9667
|
+
}
|
9668
|
+
|
9669
|
+
message.eventIndex = reader.int32();
|
9670
|
+
continue;
|
9653
9671
|
case 2:
|
9654
9672
|
if (tag !== 18) {
|
9655
9673
|
break;
|
@@ -9675,6 +9693,8 @@ export const Data_AptEvent = {
|
|
9675
9693
|
|
9676
9694
|
fromJSON(object: any): Data_AptEvent {
|
9677
9695
|
return {
|
9696
|
+
rawEvent: isSet(object.rawEvent) ? globalThis.String(object.rawEvent) : "",
|
9697
|
+
eventIndex: isSet(object.eventIndex) ? globalThis.Number(object.eventIndex) : 0,
|
9678
9698
|
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
9679
9699
|
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
|
9680
9700
|
};
|
@@ -9682,6 +9702,12 @@ export const Data_AptEvent = {
|
|
9682
9702
|
|
9683
9703
|
toJSON(message: Data_AptEvent): unknown {
|
9684
9704
|
const obj: any = {};
|
9705
|
+
if (message.rawEvent !== "") {
|
9706
|
+
obj.rawEvent = message.rawEvent;
|
9707
|
+
}
|
9708
|
+
if (message.eventIndex !== 0) {
|
9709
|
+
obj.eventIndex = Math.round(message.eventIndex);
|
9710
|
+
}
|
9685
9711
|
if (message.transaction !== undefined) {
|
9686
9712
|
obj.transaction = message.transaction;
|
9687
9713
|
}
|
@@ -9696,6 +9722,8 @@ export const Data_AptEvent = {
|
|
9696
9722
|
},
|
9697
9723
|
fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent {
|
9698
9724
|
const message = createBaseData_AptEvent();
|
9725
|
+
message.rawEvent = object.rawEvent ?? "";
|
9726
|
+
message.eventIndex = object.eventIndex ?? 0;
|
9699
9727
|
message.transaction = object.transaction ?? undefined;
|
9700
9728
|
message.rawTransaction = object.rawTransaction ?? "";
|
9701
9729
|
return message;
|
@@ -9889,7 +9917,7 @@ export const Data_AptResource = {
|
|
9889
9917
|
};
|
9890
9918
|
|
9891
9919
|
function createBaseData_SuiEvent(): Data_SuiEvent {
|
9892
|
-
return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
|
9920
|
+
return { transaction: undefined, rawEvent: "", rawTransaction: "", timestamp: undefined, slot: BigInt("0") };
|
9893
9921
|
}
|
9894
9922
|
|
9895
9923
|
export const Data_SuiEvent = {
|
@@ -9897,6 +9925,12 @@ export const Data_SuiEvent = {
|
|
9897
9925
|
if (message.transaction !== undefined) {
|
9898
9926
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
|
9899
9927
|
}
|
9928
|
+
if (message.rawEvent !== "") {
|
9929
|
+
writer.uint32(34).string(message.rawEvent);
|
9930
|
+
}
|
9931
|
+
if (message.rawTransaction !== "") {
|
9932
|
+
writer.uint32(42).string(message.rawTransaction);
|
9933
|
+
}
|
9900
9934
|
if (message.timestamp !== undefined) {
|
9901
9935
|
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
9902
9936
|
}
|
@@ -9923,6 +9957,20 @@ export const Data_SuiEvent = {
|
|
9923
9957
|
|
9924
9958
|
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
9925
9959
|
continue;
|
9960
|
+
case 4:
|
9961
|
+
if (tag !== 34) {
|
9962
|
+
break;
|
9963
|
+
}
|
9964
|
+
|
9965
|
+
message.rawEvent = reader.string();
|
9966
|
+
continue;
|
9967
|
+
case 5:
|
9968
|
+
if (tag !== 42) {
|
9969
|
+
break;
|
9970
|
+
}
|
9971
|
+
|
9972
|
+
message.rawTransaction = reader.string();
|
9973
|
+
continue;
|
9926
9974
|
case 2:
|
9927
9975
|
if (tag !== 18) {
|
9928
9976
|
break;
|
@@ -9949,6 +9997,8 @@ export const Data_SuiEvent = {
|
|
9949
9997
|
fromJSON(object: any): Data_SuiEvent {
|
9950
9998
|
return {
|
9951
9999
|
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
10000
|
+
rawEvent: isSet(object.rawEvent) ? globalThis.String(object.rawEvent) : "",
|
10001
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
|
9952
10002
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
9953
10003
|
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
9954
10004
|
};
|
@@ -9959,6 +10009,12 @@ export const Data_SuiEvent = {
|
|
9959
10009
|
if (message.transaction !== undefined) {
|
9960
10010
|
obj.transaction = message.transaction;
|
9961
10011
|
}
|
10012
|
+
if (message.rawEvent !== "") {
|
10013
|
+
obj.rawEvent = message.rawEvent;
|
10014
|
+
}
|
10015
|
+
if (message.rawTransaction !== "") {
|
10016
|
+
obj.rawTransaction = message.rawTransaction;
|
10017
|
+
}
|
9962
10018
|
if (message.timestamp !== undefined) {
|
9963
10019
|
obj.timestamp = message.timestamp.toISOString();
|
9964
10020
|
}
|
@@ -9974,6 +10030,8 @@ export const Data_SuiEvent = {
|
|
9974
10030
|
fromPartial(object: DeepPartial<Data_SuiEvent>): Data_SuiEvent {
|
9975
10031
|
const message = createBaseData_SuiEvent();
|
9976
10032
|
message.transaction = object.transaction ?? undefined;
|
10033
|
+
message.rawEvent = object.rawEvent ?? "";
|
10034
|
+
message.rawTransaction = object.rawTransaction ?? "";
|
9977
10035
|
message.timestamp = object.timestamp ?? undefined;
|
9978
10036
|
message.slot = object.slot ?? BigInt("0");
|
9979
10037
|
return message;
|
@@ -9981,7 +10039,7 @@ export const Data_SuiEvent = {
|
|
9981
10039
|
};
|
9982
10040
|
|
9983
10041
|
function createBaseData_SuiCall(): Data_SuiCall {
|
9984
|
-
return { transaction: undefined, timestamp: undefined, slot: BigInt("0") };
|
10042
|
+
return { transaction: undefined, rawTransaction: "", timestamp: undefined, slot: BigInt("0") };
|
9985
10043
|
}
|
9986
10044
|
|
9987
10045
|
export const Data_SuiCall = {
|
@@ -9989,6 +10047,9 @@ export const Data_SuiCall = {
|
|
9989
10047
|
if (message.transaction !== undefined) {
|
9990
10048
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(10).fork()).ldelim();
|
9991
10049
|
}
|
10050
|
+
if (message.rawTransaction !== "") {
|
10051
|
+
writer.uint32(34).string(message.rawTransaction);
|
10052
|
+
}
|
9992
10053
|
if (message.timestamp !== undefined) {
|
9993
10054
|
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
9994
10055
|
}
|
@@ -10015,6 +10076,13 @@ export const Data_SuiCall = {
|
|
10015
10076
|
|
10016
10077
|
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
10017
10078
|
continue;
|
10079
|
+
case 4:
|
10080
|
+
if (tag !== 34) {
|
10081
|
+
break;
|
10082
|
+
}
|
10083
|
+
|
10084
|
+
message.rawTransaction = reader.string();
|
10085
|
+
continue;
|
10018
10086
|
case 2:
|
10019
10087
|
if (tag !== 18) {
|
10020
10088
|
break;
|
@@ -10041,6 +10109,7 @@ export const Data_SuiCall = {
|
|
10041
10109
|
fromJSON(object: any): Data_SuiCall {
|
10042
10110
|
return {
|
10043
10111
|
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
10112
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
|
10044
10113
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
10045
10114
|
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
10046
10115
|
};
|
@@ -10051,6 +10120,9 @@ export const Data_SuiCall = {
|
|
10051
10120
|
if (message.transaction !== undefined) {
|
10052
10121
|
obj.transaction = message.transaction;
|
10053
10122
|
}
|
10123
|
+
if (message.rawTransaction !== "") {
|
10124
|
+
obj.rawTransaction = message.rawTransaction;
|
10125
|
+
}
|
10054
10126
|
if (message.timestamp !== undefined) {
|
10055
10127
|
obj.timestamp = message.timestamp.toISOString();
|
10056
10128
|
}
|
@@ -10066,6 +10138,7 @@ export const Data_SuiCall = {
|
|
10066
10138
|
fromPartial(object: DeepPartial<Data_SuiCall>): Data_SuiCall {
|
10067
10139
|
const message = createBaseData_SuiCall();
|
10068
10140
|
message.transaction = object.transaction ?? undefined;
|
10141
|
+
message.rawTransaction = object.rawTransaction ?? "";
|
10069
10142
|
message.timestamp = object.timestamp ?? undefined;
|
10070
10143
|
message.slot = object.slot ?? BigInt("0");
|
10071
10144
|
return message;
|
@@ -10076,6 +10149,8 @@ function createBaseData_SuiObject(): Data_SuiObject {
|
|
10076
10149
|
return {
|
10077
10150
|
objects: [],
|
10078
10151
|
self: undefined,
|
10152
|
+
rawObjects: [],
|
10153
|
+
rawSelf: undefined,
|
10079
10154
|
objectId: "",
|
10080
10155
|
objectVersion: BigInt("0"),
|
10081
10156
|
objectDigest: "",
|
@@ -10092,6 +10167,12 @@ export const Data_SuiObject = {
|
|
10092
10167
|
if (message.self !== undefined) {
|
10093
10168
|
Struct.encode(Struct.wrap(message.self), writer.uint32(34).fork()).ldelim();
|
10094
10169
|
}
|
10170
|
+
for (const v of message.rawObjects) {
|
10171
|
+
writer.uint32(82).string(v!);
|
10172
|
+
}
|
10173
|
+
if (message.rawSelf !== undefined) {
|
10174
|
+
writer.uint32(74).string(message.rawSelf);
|
10175
|
+
}
|
10095
10176
|
if (message.objectId !== "") {
|
10096
10177
|
writer.uint32(42).string(message.objectId);
|
10097
10178
|
}
|
@@ -10137,6 +10218,20 @@ export const Data_SuiObject = {
|
|
10137
10218
|
|
10138
10219
|
message.self = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
10139
10220
|
continue;
|
10221
|
+
case 10:
|
10222
|
+
if (tag !== 82) {
|
10223
|
+
break;
|
10224
|
+
}
|
10225
|
+
|
10226
|
+
message.rawObjects.push(reader.string());
|
10227
|
+
continue;
|
10228
|
+
case 9:
|
10229
|
+
if (tag !== 74) {
|
10230
|
+
break;
|
10231
|
+
}
|
10232
|
+
|
10233
|
+
message.rawSelf = reader.string();
|
10234
|
+
continue;
|
10140
10235
|
case 5:
|
10141
10236
|
if (tag !== 42) {
|
10142
10237
|
break;
|
@@ -10185,6 +10280,10 @@ export const Data_SuiObject = {
|
|
10185
10280
|
return {
|
10186
10281
|
objects: globalThis.Array.isArray(object?.objects) ? [...object.objects] : [],
|
10187
10282
|
self: isObject(object.self) ? object.self : undefined,
|
10283
|
+
rawObjects: globalThis.Array.isArray(object?.rawObjects)
|
10284
|
+
? object.rawObjects.map((e: any) => globalThis.String(e))
|
10285
|
+
: [],
|
10286
|
+
rawSelf: isSet(object.rawSelf) ? globalThis.String(object.rawSelf) : undefined,
|
10188
10287
|
objectId: isSet(object.objectId) ? globalThis.String(object.objectId) : "",
|
10189
10288
|
objectVersion: isSet(object.objectVersion) ? BigInt(object.objectVersion) : BigInt("0"),
|
10190
10289
|
objectDigest: isSet(object.objectDigest) ? globalThis.String(object.objectDigest) : "",
|
@@ -10201,6 +10300,12 @@ export const Data_SuiObject = {
|
|
10201
10300
|
if (message.self !== undefined) {
|
10202
10301
|
obj.self = message.self;
|
10203
10302
|
}
|
10303
|
+
if (message.rawObjects?.length) {
|
10304
|
+
obj.rawObjects = message.rawObjects;
|
10305
|
+
}
|
10306
|
+
if (message.rawSelf !== undefined) {
|
10307
|
+
obj.rawSelf = message.rawSelf;
|
10308
|
+
}
|
10204
10309
|
if (message.objectId !== "") {
|
10205
10310
|
obj.objectId = message.objectId;
|
10206
10311
|
}
|
@@ -10226,6 +10331,8 @@ export const Data_SuiObject = {
|
|
10226
10331
|
const message = createBaseData_SuiObject();
|
10227
10332
|
message.objects = object.objects?.map((e) => e) || [];
|
10228
10333
|
message.self = object.self ?? undefined;
|
10334
|
+
message.rawObjects = object.rawObjects?.map((e) => e) || [];
|
10335
|
+
message.rawSelf = object.rawSelf ?? undefined;
|
10229
10336
|
message.objectId = object.objectId ?? "";
|
10230
10337
|
message.objectVersion = object.objectVersion ?? BigInt("0");
|
10231
10338
|
message.objectDigest = object.objectDigest ?? "";
|
@@ -10236,7 +10343,7 @@ export const Data_SuiObject = {
|
|
10236
10343
|
};
|
10237
10344
|
|
10238
10345
|
function createBaseData_SuiObjectChange(): Data_SuiObjectChange {
|
10239
|
-
return { changes: [], timestamp: undefined, txDigest: "", slot: BigInt("0") };
|
10346
|
+
return { changes: [], rawChanges: [], timestamp: undefined, txDigest: "", slot: BigInt("0") };
|
10240
10347
|
}
|
10241
10348
|
|
10242
10349
|
export const Data_SuiObjectChange = {
|
@@ -10244,6 +10351,9 @@ export const Data_SuiObjectChange = {
|
|
10244
10351
|
for (const v of message.changes) {
|
10245
10352
|
Struct.encode(Struct.wrap(v!), writer.uint32(10).fork()).ldelim();
|
10246
10353
|
}
|
10354
|
+
for (const v of message.rawChanges) {
|
10355
|
+
writer.uint32(42).string(v!);
|
10356
|
+
}
|
10247
10357
|
if (message.timestamp !== undefined) {
|
10248
10358
|
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(18).fork()).ldelim();
|
10249
10359
|
}
|
@@ -10273,6 +10383,13 @@ export const Data_SuiObjectChange = {
|
|
10273
10383
|
|
10274
10384
|
message.changes.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
|
10275
10385
|
continue;
|
10386
|
+
case 5:
|
10387
|
+
if (tag !== 42) {
|
10388
|
+
break;
|
10389
|
+
}
|
10390
|
+
|
10391
|
+
message.rawChanges.push(reader.string());
|
10392
|
+
continue;
|
10276
10393
|
case 2:
|
10277
10394
|
if (tag !== 18) {
|
10278
10395
|
break;
|
@@ -10306,6 +10423,9 @@ export const Data_SuiObjectChange = {
|
|
10306
10423
|
fromJSON(object: any): Data_SuiObjectChange {
|
10307
10424
|
return {
|
10308
10425
|
changes: globalThis.Array.isArray(object?.changes) ? [...object.changes] : [],
|
10426
|
+
rawChanges: globalThis.Array.isArray(object?.rawChanges)
|
10427
|
+
? object.rawChanges.map((e: any) => globalThis.String(e))
|
10428
|
+
: [],
|
10309
10429
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
10310
10430
|
txDigest: isSet(object.txDigest) ? globalThis.String(object.txDigest) : "",
|
10311
10431
|
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
@@ -10317,6 +10437,9 @@ export const Data_SuiObjectChange = {
|
|
10317
10437
|
if (message.changes?.length) {
|
10318
10438
|
obj.changes = message.changes;
|
10319
10439
|
}
|
10440
|
+
if (message.rawChanges?.length) {
|
10441
|
+
obj.rawChanges = message.rawChanges;
|
10442
|
+
}
|
10320
10443
|
if (message.timestamp !== undefined) {
|
10321
10444
|
obj.timestamp = message.timestamp.toISOString();
|
10322
10445
|
}
|
@@ -10335,6 +10458,7 @@ export const Data_SuiObjectChange = {
|
|
10335
10458
|
fromPartial(object: DeepPartial<Data_SuiObjectChange>): Data_SuiObjectChange {
|
10336
10459
|
const message = createBaseData_SuiObjectChange();
|
10337
10460
|
message.changes = object.changes?.map((e) => e) || [];
|
10461
|
+
message.rawChanges = object.rawChanges?.map((e) => e) || [];
|
10338
10462
|
message.timestamp = object.timestamp ?? undefined;
|
10339
10463
|
message.txDigest = object.txDigest ?? "";
|
10340
10464
|
message.slot = object.slot ?? BigInt("0");
|
@@ -12798,31 +12922,6 @@ export interface ProcessorClient<CallOptionsExt = {}> {
|
|
12798
12922
|
): AsyncIterable<PreprocessStreamResponse>;
|
12799
12923
|
}
|
12800
12924
|
|
12801
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
12802
|
-
if ((globalThis as any).Buffer) {
|
12803
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
12804
|
-
} else {
|
12805
|
-
const bin = globalThis.atob(b64);
|
12806
|
-
const arr = new Uint8Array(bin.length);
|
12807
|
-
for (let i = 0; i < bin.length; ++i) {
|
12808
|
-
arr[i] = bin.charCodeAt(i);
|
12809
|
-
}
|
12810
|
-
return arr;
|
12811
|
-
}
|
12812
|
-
}
|
12813
|
-
|
12814
|
-
function base64FromBytes(arr: Uint8Array): string {
|
12815
|
-
if ((globalThis as any).Buffer) {
|
12816
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
12817
|
-
} else {
|
12818
|
-
const bin: string[] = [];
|
12819
|
-
arr.forEach((byte) => {
|
12820
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
12821
|
-
});
|
12822
|
-
return globalThis.btoa(bin.join(""));
|
12823
|
-
}
|
12824
|
-
}
|
12825
|
-
|
12826
12925
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
12827
12926
|
|
12828
12927
|
type DeepPartial<T> = T extends Builtin ? T
|