@sentio/protos 2.34.1 → 2.35.0-rc.2
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/chainquery/protos/chainquery.d.ts +2 -2
- package/lib/chainquery/protos/chainquery.d.ts.map +1 -1
- package/lib/chainquery/protos/chainquery.js +588 -275
- package/lib/chainquery/protos/chainquery.js.map +1 -1
- package/lib/google/protobuf/empty.d.ts +2 -2
- package/lib/google/protobuf/empty.d.ts.map +1 -1
- package/lib/google/protobuf/empty.js +5 -4
- package/lib/google/protobuf/empty.js.map +1 -1
- package/lib/google/protobuf/struct.d.ts +2 -2
- package/lib/google/protobuf/struct.d.ts.map +1 -1
- package/lib/google/protobuf/struct.js +109 -57
- package/lib/google/protobuf/struct.js.map +1 -1
- package/lib/google/protobuf/timestamp.d.ts +2 -2
- package/lib/google/protobuf/timestamp.d.ts.map +1 -1
- package/lib/google/protobuf/timestamp.js +23 -9
- package/lib/google/protobuf/timestamp.js.map +1 -1
- package/lib/processor/protos/processor.d.ts +28 -2
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +2253 -1102
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +18 -2
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +3498 -1588
- package/lib/service/common/protos/common.js.map +1 -1
- package/lib/service/price/protos/price.d.ts +27 -7
- package/lib/service/price/protos/price.d.ts.map +1 -1
- package/lib/service/price/protos/price.js +547 -214
- package/lib/service/price/protos/price.js.map +1 -1
- package/package.json +1 -1
- package/src/chainquery/protos/chainquery.ts +666 -294
- package/src/google/protobuf/empty.ts +8 -7
- package/src/google/protobuf/struct.ts +123 -62
- package/src/google/protobuf/timestamp.ts +28 -12
- package/src/processor/protos/processor.ts +2565 -1175
- package/src/service/common/protos/common.ts +3916 -1671
- package/src/service/price/protos/price.ts +594 -227
|
@@ -19,21 +19,27 @@ export const AptosGetTxnsByFunctionRequest = {
|
|
|
19
19
|
writer.uint32(10).string(message.network);
|
|
20
20
|
}
|
|
21
21
|
if (message.fromVersion !== BigInt("0")) {
|
|
22
|
+
if (BigInt.asUintN(64, message.fromVersion) !== message.fromVersion) {
|
|
23
|
+
throw new globalThis.Error("value provided for field message.fromVersion of type uint64 too large");
|
|
24
|
+
}
|
|
22
25
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
23
26
|
}
|
|
24
27
|
if (message.toVersion !== BigInt("0")) {
|
|
28
|
+
if (BigInt.asUintN(64, message.toVersion) !== message.toVersion) {
|
|
29
|
+
throw new globalThis.Error("value provided for field message.toVersion of type uint64 too large");
|
|
30
|
+
}
|
|
25
31
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
26
32
|
}
|
|
27
33
|
if (message.function !== "") {
|
|
28
34
|
writer.uint32(34).string(message.function);
|
|
29
35
|
}
|
|
30
|
-
if (message.matchAll
|
|
36
|
+
if (message.matchAll !== false) {
|
|
31
37
|
writer.uint32(40).bool(message.matchAll);
|
|
32
38
|
}
|
|
33
39
|
for (const v of message.typedArguments) {
|
|
34
40
|
writer.uint32(50).string(v);
|
|
35
41
|
}
|
|
36
|
-
if (message.includeChanges
|
|
42
|
+
if (message.includeChanges !== false) {
|
|
37
43
|
writer.uint32(56).bool(message.includeChanges);
|
|
38
44
|
}
|
|
39
45
|
if (message.resourceChangesMoveTypePrefix !== "") {
|
|
@@ -42,73 +48,110 @@ export const AptosGetTxnsByFunctionRequest = {
|
|
|
42
48
|
return writer;
|
|
43
49
|
},
|
|
44
50
|
decode(input, length) {
|
|
45
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
51
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
46
52
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
47
53
|
const message = createBaseAptosGetTxnsByFunctionRequest();
|
|
48
54
|
while (reader.pos < end) {
|
|
49
55
|
const tag = reader.uint32();
|
|
50
56
|
switch (tag >>> 3) {
|
|
51
57
|
case 1:
|
|
58
|
+
if (tag !== 10) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
52
61
|
message.network = reader.string();
|
|
53
|
-
|
|
62
|
+
continue;
|
|
54
63
|
case 2:
|
|
64
|
+
if (tag !== 16) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
55
67
|
message.fromVersion = longToBigint(reader.uint64());
|
|
56
|
-
|
|
68
|
+
continue;
|
|
57
69
|
case 3:
|
|
70
|
+
if (tag !== 24) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
58
73
|
message.toVersion = longToBigint(reader.uint64());
|
|
59
|
-
|
|
74
|
+
continue;
|
|
60
75
|
case 4:
|
|
76
|
+
if (tag !== 34) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
61
79
|
message.function = reader.string();
|
|
62
|
-
|
|
80
|
+
continue;
|
|
63
81
|
case 5:
|
|
82
|
+
if (tag !== 40) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
64
85
|
message.matchAll = reader.bool();
|
|
65
|
-
|
|
86
|
+
continue;
|
|
66
87
|
case 6:
|
|
88
|
+
if (tag !== 50) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
67
91
|
message.typedArguments.push(reader.string());
|
|
68
|
-
|
|
92
|
+
continue;
|
|
69
93
|
case 7:
|
|
94
|
+
if (tag !== 56) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
70
97
|
message.includeChanges = reader.bool();
|
|
71
|
-
|
|
98
|
+
continue;
|
|
72
99
|
case 8:
|
|
100
|
+
if (tag !== 66) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
73
103
|
message.resourceChangesMoveTypePrefix = reader.string();
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
107
|
+
break;
|
|
78
108
|
}
|
|
109
|
+
reader.skipType(tag & 7);
|
|
79
110
|
}
|
|
80
111
|
return message;
|
|
81
112
|
},
|
|
82
113
|
fromJSON(object) {
|
|
83
114
|
return {
|
|
84
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
115
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
85
116
|
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
86
117
|
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
87
|
-
function: isSet(object.function) ? String(object.function) : "",
|
|
88
|
-
matchAll: isSet(object.matchAll) ? Boolean(object.matchAll) : false,
|
|
89
|
-
typedArguments: Array.isArray(object?.typedArguments)
|
|
90
|
-
|
|
118
|
+
function: isSet(object.function) ? globalThis.String(object.function) : "",
|
|
119
|
+
matchAll: isSet(object.matchAll) ? globalThis.Boolean(object.matchAll) : false,
|
|
120
|
+
typedArguments: globalThis.Array.isArray(object?.typedArguments)
|
|
121
|
+
? object.typedArguments.map((e) => globalThis.String(e))
|
|
122
|
+
: [],
|
|
123
|
+
includeChanges: isSet(object.includeChanges) ? globalThis.Boolean(object.includeChanges) : false,
|
|
91
124
|
resourceChangesMoveTypePrefix: isSet(object.resourceChangesMoveTypePrefix)
|
|
92
|
-
? String(object.resourceChangesMoveTypePrefix)
|
|
125
|
+
? globalThis.String(object.resourceChangesMoveTypePrefix)
|
|
93
126
|
: "",
|
|
94
127
|
};
|
|
95
128
|
},
|
|
96
129
|
toJSON(message) {
|
|
97
130
|
const obj = {};
|
|
98
|
-
message.network !==
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
message.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
message.
|
|
111
|
-
|
|
131
|
+
if (message.network !== "") {
|
|
132
|
+
obj.network = message.network;
|
|
133
|
+
}
|
|
134
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
135
|
+
obj.fromVersion = message.fromVersion.toString();
|
|
136
|
+
}
|
|
137
|
+
if (message.toVersion !== BigInt("0")) {
|
|
138
|
+
obj.toVersion = message.toVersion.toString();
|
|
139
|
+
}
|
|
140
|
+
if (message.function !== "") {
|
|
141
|
+
obj.function = message.function;
|
|
142
|
+
}
|
|
143
|
+
if (message.matchAll !== false) {
|
|
144
|
+
obj.matchAll = message.matchAll;
|
|
145
|
+
}
|
|
146
|
+
if (message.typedArguments?.length) {
|
|
147
|
+
obj.typedArguments = message.typedArguments;
|
|
148
|
+
}
|
|
149
|
+
if (message.includeChanges !== false) {
|
|
150
|
+
obj.includeChanges = message.includeChanges;
|
|
151
|
+
}
|
|
152
|
+
if (message.resourceChangesMoveTypePrefix !== "") {
|
|
153
|
+
obj.resourceChangesMoveTypePrefix = message.resourceChangesMoveTypePrefix;
|
|
154
|
+
}
|
|
112
155
|
return obj;
|
|
113
156
|
},
|
|
114
157
|
create(base) {
|
|
@@ -136,9 +179,15 @@ export const AptosGetTxnsByVersionRequest = {
|
|
|
136
179
|
writer.uint32(10).string(message.network);
|
|
137
180
|
}
|
|
138
181
|
if (message.fromVersion !== BigInt("0")) {
|
|
182
|
+
if (BigInt.asUintN(64, message.fromVersion) !== message.fromVersion) {
|
|
183
|
+
throw new globalThis.Error("value provided for field message.fromVersion of type uint64 too large");
|
|
184
|
+
}
|
|
139
185
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
140
186
|
}
|
|
141
187
|
if (message.toVersion !== BigInt("0")) {
|
|
188
|
+
if (BigInt.asUintN(64, message.toVersion) !== message.toVersion) {
|
|
189
|
+
throw new globalThis.Error("value provided for field message.toVersion of type uint64 too large");
|
|
190
|
+
}
|
|
142
191
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
143
192
|
}
|
|
144
193
|
if (message.headerOnly !== undefined) {
|
|
@@ -147,45 +196,66 @@ export const AptosGetTxnsByVersionRequest = {
|
|
|
147
196
|
return writer;
|
|
148
197
|
},
|
|
149
198
|
decode(input, length) {
|
|
150
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
199
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
151
200
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
152
201
|
const message = createBaseAptosGetTxnsByVersionRequest();
|
|
153
202
|
while (reader.pos < end) {
|
|
154
203
|
const tag = reader.uint32();
|
|
155
204
|
switch (tag >>> 3) {
|
|
156
205
|
case 1:
|
|
206
|
+
if (tag !== 10) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
157
209
|
message.network = reader.string();
|
|
158
|
-
|
|
210
|
+
continue;
|
|
159
211
|
case 2:
|
|
212
|
+
if (tag !== 16) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
160
215
|
message.fromVersion = longToBigint(reader.uint64());
|
|
161
|
-
|
|
216
|
+
continue;
|
|
162
217
|
case 3:
|
|
218
|
+
if (tag !== 24) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
163
221
|
message.toVersion = longToBigint(reader.uint64());
|
|
164
|
-
|
|
222
|
+
continue;
|
|
165
223
|
case 4:
|
|
224
|
+
if (tag !== 32) {
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
166
227
|
message.headerOnly = reader.bool();
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
231
|
+
break;
|
|
171
232
|
}
|
|
233
|
+
reader.skipType(tag & 7);
|
|
172
234
|
}
|
|
173
235
|
return message;
|
|
174
236
|
},
|
|
175
237
|
fromJSON(object) {
|
|
176
238
|
return {
|
|
177
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
239
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
178
240
|
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
179
241
|
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
180
|
-
headerOnly: isSet(object.headerOnly) ? Boolean(object.headerOnly) : undefined,
|
|
242
|
+
headerOnly: isSet(object.headerOnly) ? globalThis.Boolean(object.headerOnly) : undefined,
|
|
181
243
|
};
|
|
182
244
|
},
|
|
183
245
|
toJSON(message) {
|
|
184
246
|
const obj = {};
|
|
185
|
-
message.network !==
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
message.
|
|
247
|
+
if (message.network !== "") {
|
|
248
|
+
obj.network = message.network;
|
|
249
|
+
}
|
|
250
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
251
|
+
obj.fromVersion = message.fromVersion.toString();
|
|
252
|
+
}
|
|
253
|
+
if (message.toVersion !== BigInt("0")) {
|
|
254
|
+
obj.toVersion = message.toVersion.toString();
|
|
255
|
+
}
|
|
256
|
+
if (message.headerOnly !== undefined) {
|
|
257
|
+
obj.headerOnly = message.headerOnly;
|
|
258
|
+
}
|
|
189
259
|
return obj;
|
|
190
260
|
},
|
|
191
261
|
create(base) {
|
|
@@ -218,9 +288,15 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
218
288
|
writer.uint32(10).string(message.network);
|
|
219
289
|
}
|
|
220
290
|
if (message.fromVersion !== BigInt("0")) {
|
|
291
|
+
if (BigInt.asUintN(64, message.fromVersion) !== message.fromVersion) {
|
|
292
|
+
throw new globalThis.Error("value provided for field message.fromVersion of type uint64 too large");
|
|
293
|
+
}
|
|
221
294
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
222
295
|
}
|
|
223
296
|
if (message.toVersion !== BigInt("0")) {
|
|
297
|
+
if (BigInt.asUintN(64, message.toVersion) !== message.toVersion) {
|
|
298
|
+
throw new globalThis.Error("value provided for field message.toVersion of type uint64 too large");
|
|
299
|
+
}
|
|
224
300
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
225
301
|
}
|
|
226
302
|
if (message.address !== "") {
|
|
@@ -229,10 +305,10 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
229
305
|
if (message.type !== "") {
|
|
230
306
|
writer.uint32(42).string(message.type);
|
|
231
307
|
}
|
|
232
|
-
if (message.includeAllEvents
|
|
308
|
+
if (message.includeAllEvents !== false) {
|
|
233
309
|
writer.uint32(48).bool(message.includeAllEvents);
|
|
234
310
|
}
|
|
235
|
-
if (message.includeChanges
|
|
311
|
+
if (message.includeChanges !== false) {
|
|
236
312
|
writer.uint32(56).bool(message.includeChanges);
|
|
237
313
|
}
|
|
238
314
|
if (message.resourceChangesMoveTypePrefix !== "") {
|
|
@@ -241,68 +317,108 @@ export const AptosGetTxnsByEventRequest = {
|
|
|
241
317
|
return writer;
|
|
242
318
|
},
|
|
243
319
|
decode(input, length) {
|
|
244
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
320
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
245
321
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
246
322
|
const message = createBaseAptosGetTxnsByEventRequest();
|
|
247
323
|
while (reader.pos < end) {
|
|
248
324
|
const tag = reader.uint32();
|
|
249
325
|
switch (tag >>> 3) {
|
|
250
326
|
case 1:
|
|
327
|
+
if (tag !== 10) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
251
330
|
message.network = reader.string();
|
|
252
|
-
|
|
331
|
+
continue;
|
|
253
332
|
case 2:
|
|
333
|
+
if (tag !== 16) {
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
254
336
|
message.fromVersion = longToBigint(reader.uint64());
|
|
255
|
-
|
|
337
|
+
continue;
|
|
256
338
|
case 3:
|
|
339
|
+
if (tag !== 24) {
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
257
342
|
message.toVersion = longToBigint(reader.uint64());
|
|
258
|
-
|
|
343
|
+
continue;
|
|
259
344
|
case 4:
|
|
345
|
+
if (tag !== 34) {
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
260
348
|
message.address = reader.string();
|
|
261
|
-
|
|
349
|
+
continue;
|
|
262
350
|
case 5:
|
|
351
|
+
if (tag !== 42) {
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
263
354
|
message.type = reader.string();
|
|
264
|
-
|
|
355
|
+
continue;
|
|
265
356
|
case 6:
|
|
357
|
+
if (tag !== 48) {
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
266
360
|
message.includeAllEvents = reader.bool();
|
|
267
|
-
|
|
361
|
+
continue;
|
|
268
362
|
case 7:
|
|
363
|
+
if (tag !== 56) {
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
269
366
|
message.includeChanges = reader.bool();
|
|
270
|
-
|
|
367
|
+
continue;
|
|
271
368
|
case 8:
|
|
369
|
+
if (tag !== 66) {
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
272
372
|
message.resourceChangesMoveTypePrefix = reader.string();
|
|
273
|
-
|
|
274
|
-
default:
|
|
275
|
-
reader.skipType(tag & 7);
|
|
276
|
-
break;
|
|
373
|
+
continue;
|
|
277
374
|
}
|
|
375
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
reader.skipType(tag & 7);
|
|
278
379
|
}
|
|
279
380
|
return message;
|
|
280
381
|
},
|
|
281
382
|
fromJSON(object) {
|
|
282
383
|
return {
|
|
283
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
384
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
284
385
|
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
285
386
|
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
286
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
287
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
288
|
-
includeAllEvents: isSet(object.includeAllEvents) ? Boolean(object.includeAllEvents) : false,
|
|
289
|
-
includeChanges: isSet(object.includeChanges) ? Boolean(object.includeChanges) : false,
|
|
387
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
388
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
389
|
+
includeAllEvents: isSet(object.includeAllEvents) ? globalThis.Boolean(object.includeAllEvents) : false,
|
|
390
|
+
includeChanges: isSet(object.includeChanges) ? globalThis.Boolean(object.includeChanges) : false,
|
|
290
391
|
resourceChangesMoveTypePrefix: isSet(object.resourceChangesMoveTypePrefix)
|
|
291
|
-
? String(object.resourceChangesMoveTypePrefix)
|
|
392
|
+
? globalThis.String(object.resourceChangesMoveTypePrefix)
|
|
292
393
|
: "",
|
|
293
394
|
};
|
|
294
395
|
},
|
|
295
396
|
toJSON(message) {
|
|
296
397
|
const obj = {};
|
|
297
|
-
message.network !==
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
message.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
message.
|
|
304
|
-
|
|
305
|
-
|
|
398
|
+
if (message.network !== "") {
|
|
399
|
+
obj.network = message.network;
|
|
400
|
+
}
|
|
401
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
402
|
+
obj.fromVersion = message.fromVersion.toString();
|
|
403
|
+
}
|
|
404
|
+
if (message.toVersion !== BigInt("0")) {
|
|
405
|
+
obj.toVersion = message.toVersion.toString();
|
|
406
|
+
}
|
|
407
|
+
if (message.address !== "") {
|
|
408
|
+
obj.address = message.address;
|
|
409
|
+
}
|
|
410
|
+
if (message.type !== "") {
|
|
411
|
+
obj.type = message.type;
|
|
412
|
+
}
|
|
413
|
+
if (message.includeAllEvents !== false) {
|
|
414
|
+
obj.includeAllEvents = message.includeAllEvents;
|
|
415
|
+
}
|
|
416
|
+
if (message.includeChanges !== false) {
|
|
417
|
+
obj.includeChanges = message.includeChanges;
|
|
418
|
+
}
|
|
419
|
+
if (message.resourceChangesMoveTypePrefix !== "") {
|
|
420
|
+
obj.resourceChangesMoveTypePrefix = message.resourceChangesMoveTypePrefix;
|
|
421
|
+
}
|
|
306
422
|
return obj;
|
|
307
423
|
},
|
|
308
424
|
create(base) {
|
|
@@ -330,64 +446,96 @@ export const AptosSQLQueryRequest = {
|
|
|
330
446
|
writer.uint32(10).string(message.network);
|
|
331
447
|
}
|
|
332
448
|
if (message.fromVersion !== BigInt("0")) {
|
|
449
|
+
if (BigInt.asUintN(64, message.fromVersion) !== message.fromVersion) {
|
|
450
|
+
throw new globalThis.Error("value provided for field message.fromVersion of type uint64 too large");
|
|
451
|
+
}
|
|
333
452
|
writer.uint32(16).uint64(message.fromVersion.toString());
|
|
334
453
|
}
|
|
335
454
|
if (message.toVersion !== BigInt("0")) {
|
|
455
|
+
if (BigInt.asUintN(64, message.toVersion) !== message.toVersion) {
|
|
456
|
+
throw new globalThis.Error("value provided for field message.toVersion of type uint64 too large");
|
|
457
|
+
}
|
|
336
458
|
writer.uint32(24).uint64(message.toVersion.toString());
|
|
337
459
|
}
|
|
338
460
|
if (message.sql !== "") {
|
|
339
461
|
writer.uint32(34).string(message.sql);
|
|
340
462
|
}
|
|
341
|
-
if (message.arbitraryRange
|
|
463
|
+
if (message.arbitraryRange !== false) {
|
|
342
464
|
writer.uint32(40).bool(message.arbitraryRange);
|
|
343
465
|
}
|
|
344
466
|
return writer;
|
|
345
467
|
},
|
|
346
468
|
decode(input, length) {
|
|
347
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
469
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
348
470
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
471
|
const message = createBaseAptosSQLQueryRequest();
|
|
350
472
|
while (reader.pos < end) {
|
|
351
473
|
const tag = reader.uint32();
|
|
352
474
|
switch (tag >>> 3) {
|
|
353
475
|
case 1:
|
|
476
|
+
if (tag !== 10) {
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
354
479
|
message.network = reader.string();
|
|
355
|
-
|
|
480
|
+
continue;
|
|
356
481
|
case 2:
|
|
482
|
+
if (tag !== 16) {
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
357
485
|
message.fromVersion = longToBigint(reader.uint64());
|
|
358
|
-
|
|
486
|
+
continue;
|
|
359
487
|
case 3:
|
|
488
|
+
if (tag !== 24) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
360
491
|
message.toVersion = longToBigint(reader.uint64());
|
|
361
|
-
|
|
492
|
+
continue;
|
|
362
493
|
case 4:
|
|
494
|
+
if (tag !== 34) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
363
497
|
message.sql = reader.string();
|
|
364
|
-
|
|
498
|
+
continue;
|
|
365
499
|
case 5:
|
|
500
|
+
if (tag !== 40) {
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
366
503
|
message.arbitraryRange = reader.bool();
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
507
|
+
break;
|
|
371
508
|
}
|
|
509
|
+
reader.skipType(tag & 7);
|
|
372
510
|
}
|
|
373
511
|
return message;
|
|
374
512
|
},
|
|
375
513
|
fromJSON(object) {
|
|
376
514
|
return {
|
|
377
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
515
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
378
516
|
fromVersion: isSet(object.fromVersion) ? BigInt(object.fromVersion) : BigInt("0"),
|
|
379
517
|
toVersion: isSet(object.toVersion) ? BigInt(object.toVersion) : BigInt("0"),
|
|
380
|
-
sql: isSet(object.sql) ? String(object.sql) : "",
|
|
381
|
-
arbitraryRange: isSet(object.arbitraryRange) ? Boolean(object.arbitraryRange) : false,
|
|
518
|
+
sql: isSet(object.sql) ? globalThis.String(object.sql) : "",
|
|
519
|
+
arbitraryRange: isSet(object.arbitraryRange) ? globalThis.Boolean(object.arbitraryRange) : false,
|
|
382
520
|
};
|
|
383
521
|
},
|
|
384
522
|
toJSON(message) {
|
|
385
523
|
const obj = {};
|
|
386
|
-
message.network !==
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
message.
|
|
390
|
-
|
|
524
|
+
if (message.network !== "") {
|
|
525
|
+
obj.network = message.network;
|
|
526
|
+
}
|
|
527
|
+
if (message.fromVersion !== BigInt("0")) {
|
|
528
|
+
obj.fromVersion = message.fromVersion.toString();
|
|
529
|
+
}
|
|
530
|
+
if (message.toVersion !== BigInt("0")) {
|
|
531
|
+
obj.toVersion = message.toVersion.toString();
|
|
532
|
+
}
|
|
533
|
+
if (message.sql !== "") {
|
|
534
|
+
obj.sql = message.sql;
|
|
535
|
+
}
|
|
536
|
+
if (message.arbitraryRange !== false) {
|
|
537
|
+
obj.arbitraryRange = message.arbitraryRange;
|
|
538
|
+
}
|
|
391
539
|
return obj;
|
|
392
540
|
},
|
|
393
541
|
create(base) {
|
|
@@ -412,40 +560,54 @@ export const QueryPhaseSummary = {
|
|
|
412
560
|
writer.uint32(10).string(message.name);
|
|
413
561
|
}
|
|
414
562
|
if (message.timeTookMs !== BigInt("0")) {
|
|
563
|
+
if (BigInt.asUintN(64, message.timeTookMs) !== message.timeTookMs) {
|
|
564
|
+
throw new globalThis.Error("value provided for field message.timeTookMs of type uint64 too large");
|
|
565
|
+
}
|
|
415
566
|
writer.uint32(16).uint64(message.timeTookMs.toString());
|
|
416
567
|
}
|
|
417
568
|
return writer;
|
|
418
569
|
},
|
|
419
570
|
decode(input, length) {
|
|
420
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
571
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
421
572
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
422
573
|
const message = createBaseQueryPhaseSummary();
|
|
423
574
|
while (reader.pos < end) {
|
|
424
575
|
const tag = reader.uint32();
|
|
425
576
|
switch (tag >>> 3) {
|
|
426
577
|
case 1:
|
|
578
|
+
if (tag !== 10) {
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
427
581
|
message.name = reader.string();
|
|
428
|
-
|
|
582
|
+
continue;
|
|
429
583
|
case 2:
|
|
584
|
+
if (tag !== 16) {
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
430
587
|
message.timeTookMs = longToBigint(reader.uint64());
|
|
431
|
-
|
|
432
|
-
default:
|
|
433
|
-
reader.skipType(tag & 7);
|
|
434
|
-
break;
|
|
588
|
+
continue;
|
|
435
589
|
}
|
|
590
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
reader.skipType(tag & 7);
|
|
436
594
|
}
|
|
437
595
|
return message;
|
|
438
596
|
},
|
|
439
597
|
fromJSON(object) {
|
|
440
598
|
return {
|
|
441
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
599
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
442
600
|
timeTookMs: isSet(object.timeTookMs) ? BigInt(object.timeTookMs) : BigInt("0"),
|
|
443
601
|
};
|
|
444
602
|
},
|
|
445
603
|
toJSON(message) {
|
|
446
604
|
const obj = {};
|
|
447
|
-
message.name !==
|
|
448
|
-
|
|
605
|
+
if (message.name !== "") {
|
|
606
|
+
obj.name = message.name;
|
|
607
|
+
}
|
|
608
|
+
if (message.timeTookMs !== BigInt("0")) {
|
|
609
|
+
obj.timeTookMs = message.timeTookMs.toString();
|
|
610
|
+
}
|
|
449
611
|
return obj;
|
|
450
612
|
},
|
|
451
613
|
create(base) {
|
|
@@ -474,21 +636,40 @@ function createBaseQueryExecutionSummary() {
|
|
|
474
636
|
export const QueryExecutionSummary = {
|
|
475
637
|
encode(message, writer = _m0.Writer.create()) {
|
|
476
638
|
if (message.timeTookMs !== BigInt("0")) {
|
|
639
|
+
if (BigInt.asUintN(64, message.timeTookMs) !== message.timeTookMs) {
|
|
640
|
+
throw new globalThis.Error("value provided for field message.timeTookMs of type uint64 too large");
|
|
641
|
+
}
|
|
477
642
|
writer.uint32(8).uint64(message.timeTookMs.toString());
|
|
478
643
|
}
|
|
479
644
|
if (message.resultNumRows !== undefined) {
|
|
645
|
+
if (BigInt.asUintN(64, message.resultNumRows) !== message.resultNumRows) {
|
|
646
|
+
throw new globalThis.Error("value provided for field message.resultNumRows of type uint64 too large");
|
|
647
|
+
}
|
|
480
648
|
writer.uint32(16).uint64(message.resultNumRows.toString());
|
|
481
649
|
}
|
|
482
650
|
if (message.resultNumBytes !== undefined) {
|
|
651
|
+
if (BigInt.asUintN(64, message.resultNumBytes) !== message.resultNumBytes) {
|
|
652
|
+
throw new globalThis.Error("value provided for field message.resultNumBytes of type uint64 too large");
|
|
653
|
+
}
|
|
483
654
|
writer.uint32(24).uint64(message.resultNumBytes.toString());
|
|
484
655
|
}
|
|
485
656
|
if (message.numPartitionsWithMaterializedView !== undefined) {
|
|
657
|
+
if (BigInt.asUintN(64, message.numPartitionsWithMaterializedView) !== message.numPartitionsWithMaterializedView) {
|
|
658
|
+
throw new globalThis.Error("value provided for field message.numPartitionsWithMaterializedView of type uint64 too large");
|
|
659
|
+
}
|
|
486
660
|
writer.uint32(32).uint64(message.numPartitionsWithMaterializedView.toString());
|
|
487
661
|
}
|
|
488
662
|
if (message.numPartitionsWithoutMaterializedView !== undefined) {
|
|
663
|
+
if (BigInt.asUintN(64, message.numPartitionsWithoutMaterializedView) !==
|
|
664
|
+
message.numPartitionsWithoutMaterializedView) {
|
|
665
|
+
throw new globalThis.Error("value provided for field message.numPartitionsWithoutMaterializedView of type uint64 too large");
|
|
666
|
+
}
|
|
489
667
|
writer.uint32(40).uint64(message.numPartitionsWithoutMaterializedView.toString());
|
|
490
668
|
}
|
|
491
669
|
if (message.numPartitions !== undefined) {
|
|
670
|
+
if (BigInt.asUintN(64, message.numPartitions) !== message.numPartitions) {
|
|
671
|
+
throw new globalThis.Error("value provided for field message.numPartitions of type uint64 too large");
|
|
672
|
+
}
|
|
492
673
|
writer.uint32(48).uint64(message.numPartitions.toString());
|
|
493
674
|
}
|
|
494
675
|
for (const v of message.phases) {
|
|
@@ -503,43 +684,71 @@ export const QueryExecutionSummary = {
|
|
|
503
684
|
return writer;
|
|
504
685
|
},
|
|
505
686
|
decode(input, length) {
|
|
506
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
687
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
507
688
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
508
689
|
const message = createBaseQueryExecutionSummary();
|
|
509
690
|
while (reader.pos < end) {
|
|
510
691
|
const tag = reader.uint32();
|
|
511
692
|
switch (tag >>> 3) {
|
|
512
693
|
case 1:
|
|
694
|
+
if (tag !== 8) {
|
|
695
|
+
break;
|
|
696
|
+
}
|
|
513
697
|
message.timeTookMs = longToBigint(reader.uint64());
|
|
514
|
-
|
|
698
|
+
continue;
|
|
515
699
|
case 2:
|
|
700
|
+
if (tag !== 16) {
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
516
703
|
message.resultNumRows = longToBigint(reader.uint64());
|
|
517
|
-
|
|
704
|
+
continue;
|
|
518
705
|
case 3:
|
|
706
|
+
if (tag !== 24) {
|
|
707
|
+
break;
|
|
708
|
+
}
|
|
519
709
|
message.resultNumBytes = longToBigint(reader.uint64());
|
|
520
|
-
|
|
710
|
+
continue;
|
|
521
711
|
case 4:
|
|
712
|
+
if (tag !== 32) {
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
522
715
|
message.numPartitionsWithMaterializedView = longToBigint(reader.uint64());
|
|
523
|
-
|
|
716
|
+
continue;
|
|
524
717
|
case 5:
|
|
718
|
+
if (tag !== 40) {
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
525
721
|
message.numPartitionsWithoutMaterializedView = longToBigint(reader.uint64());
|
|
526
|
-
|
|
722
|
+
continue;
|
|
527
723
|
case 6:
|
|
724
|
+
if (tag !== 48) {
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
528
727
|
message.numPartitions = longToBigint(reader.uint64());
|
|
529
|
-
|
|
728
|
+
continue;
|
|
530
729
|
case 7:
|
|
730
|
+
if (tag !== 58) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
531
733
|
message.phases.push(QueryPhaseSummary.decode(reader, reader.uint32()));
|
|
532
|
-
|
|
734
|
+
continue;
|
|
533
735
|
case 8:
|
|
736
|
+
if (tag !== 66) {
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
534
739
|
message.qcacheSignature = reader.string();
|
|
535
|
-
|
|
740
|
+
continue;
|
|
536
741
|
case 9:
|
|
742
|
+
if (tag !== 72) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
537
745
|
message.qcacheHit = reader.bool();
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
749
|
+
break;
|
|
542
750
|
}
|
|
751
|
+
reader.skipType(tag & 7);
|
|
543
752
|
}
|
|
544
753
|
return message;
|
|
545
754
|
},
|
|
@@ -555,29 +764,42 @@ export const QueryExecutionSummary = {
|
|
|
555
764
|
? BigInt(object.numPartitionsWithoutMaterializedView)
|
|
556
765
|
: undefined,
|
|
557
766
|
numPartitions: isSet(object.numPartitions) ? BigInt(object.numPartitions) : undefined,
|
|
558
|
-
phases: Array.isArray(object?.phases)
|
|
559
|
-
|
|
560
|
-
|
|
767
|
+
phases: globalThis.Array.isArray(object?.phases)
|
|
768
|
+
? object.phases.map((e) => QueryPhaseSummary.fromJSON(e))
|
|
769
|
+
: [],
|
|
770
|
+
qcacheSignature: isSet(object.qcacheSignature) ? globalThis.String(object.qcacheSignature) : undefined,
|
|
771
|
+
qcacheHit: isSet(object.qcacheHit) ? globalThis.Boolean(object.qcacheHit) : undefined,
|
|
561
772
|
};
|
|
562
773
|
},
|
|
563
774
|
toJSON(message) {
|
|
564
775
|
const obj = {};
|
|
565
|
-
message.timeTookMs !==
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
message.
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
message.
|
|
776
|
+
if (message.timeTookMs !== BigInt("0")) {
|
|
777
|
+
obj.timeTookMs = message.timeTookMs.toString();
|
|
778
|
+
}
|
|
779
|
+
if (message.resultNumRows !== undefined) {
|
|
780
|
+
obj.resultNumRows = message.resultNumRows.toString();
|
|
781
|
+
}
|
|
782
|
+
if (message.resultNumBytes !== undefined) {
|
|
783
|
+
obj.resultNumBytes = message.resultNumBytes.toString();
|
|
784
|
+
}
|
|
785
|
+
if (message.numPartitionsWithMaterializedView !== undefined) {
|
|
786
|
+
obj.numPartitionsWithMaterializedView = message.numPartitionsWithMaterializedView.toString();
|
|
787
|
+
}
|
|
788
|
+
if (message.numPartitionsWithoutMaterializedView !== undefined) {
|
|
789
|
+
obj.numPartitionsWithoutMaterializedView = message.numPartitionsWithoutMaterializedView.toString();
|
|
790
|
+
}
|
|
791
|
+
if (message.numPartitions !== undefined) {
|
|
792
|
+
obj.numPartitions = message.numPartitions.toString();
|
|
793
|
+
}
|
|
794
|
+
if (message.phases?.length) {
|
|
795
|
+
obj.phases = message.phases.map((e) => QueryPhaseSummary.toJSON(e));
|
|
796
|
+
}
|
|
797
|
+
if (message.qcacheSignature !== undefined) {
|
|
798
|
+
obj.qcacheSignature = message.qcacheSignature;
|
|
799
|
+
}
|
|
800
|
+
if (message.qcacheHit !== undefined) {
|
|
801
|
+
obj.qcacheHit = message.qcacheHit;
|
|
802
|
+
}
|
|
581
803
|
return obj;
|
|
582
804
|
},
|
|
583
805
|
create(base) {
|
|
@@ -611,28 +833,37 @@ export const AptosGetTxnsResponse = {
|
|
|
611
833
|
return writer;
|
|
612
834
|
},
|
|
613
835
|
decode(input, length) {
|
|
614
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
836
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
615
837
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
616
838
|
const message = createBaseAptosGetTxnsResponse();
|
|
617
839
|
while (reader.pos < end) {
|
|
618
840
|
const tag = reader.uint32();
|
|
619
841
|
switch (tag >>> 3) {
|
|
620
842
|
case 1:
|
|
843
|
+
if (tag !== 10) {
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
621
846
|
message.documents.push(reader.bytes());
|
|
622
|
-
|
|
847
|
+
continue;
|
|
623
848
|
case 2:
|
|
849
|
+
if (tag !== 18) {
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
624
852
|
message.executionSummary = QueryExecutionSummary.decode(reader, reader.uint32());
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
853
|
+
continue;
|
|
854
|
+
}
|
|
855
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
856
|
+
break;
|
|
629
857
|
}
|
|
858
|
+
reader.skipType(tag & 7);
|
|
630
859
|
}
|
|
631
860
|
return message;
|
|
632
861
|
},
|
|
633
862
|
fromJSON(object) {
|
|
634
863
|
return {
|
|
635
|
-
documents: Array.isArray(object?.documents)
|
|
864
|
+
documents: globalThis.Array.isArray(object?.documents)
|
|
865
|
+
? object.documents.map((e) => bytesFromBase64(e))
|
|
866
|
+
: [],
|
|
636
867
|
executionSummary: isSet(object.executionSummary)
|
|
637
868
|
? QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
638
869
|
: undefined,
|
|
@@ -640,15 +871,12 @@ export const AptosGetTxnsResponse = {
|
|
|
640
871
|
},
|
|
641
872
|
toJSON(message) {
|
|
642
873
|
const obj = {};
|
|
643
|
-
if (message.documents) {
|
|
644
|
-
obj.documents = message.documents.map((e) => base64FromBytes(e
|
|
874
|
+
if (message.documents?.length) {
|
|
875
|
+
obj.documents = message.documents.map((e) => base64FromBytes(e));
|
|
645
876
|
}
|
|
646
|
-
|
|
647
|
-
obj.
|
|
877
|
+
if (message.executionSummary !== undefined) {
|
|
878
|
+
obj.executionSummary = QueryExecutionSummary.toJSON(message.executionSummary);
|
|
648
879
|
}
|
|
649
|
-
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
650
|
-
? QueryExecutionSummary.toJSON(message.executionSummary)
|
|
651
|
-
: undefined);
|
|
652
880
|
return obj;
|
|
653
881
|
},
|
|
654
882
|
create(base) {
|
|
@@ -671,16 +899,17 @@ export const AptosRefreshRequest = {
|
|
|
671
899
|
return writer;
|
|
672
900
|
},
|
|
673
901
|
decode(input, length) {
|
|
674
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
902
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
675
903
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
676
904
|
const message = createBaseAptosRefreshRequest();
|
|
677
905
|
while (reader.pos < end) {
|
|
678
906
|
const tag = reader.uint32();
|
|
679
907
|
switch (tag >>> 3) {
|
|
680
|
-
default:
|
|
681
|
-
reader.skipType(tag & 7);
|
|
682
|
-
break;
|
|
683
908
|
}
|
|
909
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
912
|
+
reader.skipType(tag & 7);
|
|
684
913
|
}
|
|
685
914
|
return message;
|
|
686
915
|
},
|
|
@@ -707,16 +936,17 @@ export const VoidResponse = {
|
|
|
707
936
|
return writer;
|
|
708
937
|
},
|
|
709
938
|
decode(input, length) {
|
|
710
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
939
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
711
940
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
712
941
|
const message = createBaseVoidResponse();
|
|
713
942
|
while (reader.pos < end) {
|
|
714
943
|
const tag = reader.uint32();
|
|
715
944
|
switch (tag >>> 3) {
|
|
716
|
-
default:
|
|
717
|
-
reader.skipType(tag & 7);
|
|
718
|
-
break;
|
|
719
945
|
}
|
|
946
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
reader.skipType(tag & 7);
|
|
720
950
|
}
|
|
721
951
|
return message;
|
|
722
952
|
},
|
|
@@ -752,40 +982,56 @@ export const EvmSQLQueryRequest = {
|
|
|
752
982
|
return writer;
|
|
753
983
|
},
|
|
754
984
|
decode(input, length) {
|
|
755
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
985
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
756
986
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
757
987
|
const message = createBaseEvmSQLQueryRequest();
|
|
758
988
|
while (reader.pos < end) {
|
|
759
989
|
const tag = reader.uint32();
|
|
760
990
|
switch (tag >>> 3) {
|
|
761
991
|
case 1:
|
|
992
|
+
if (tag !== 10) {
|
|
993
|
+
break;
|
|
994
|
+
}
|
|
762
995
|
message.network = reader.string();
|
|
763
|
-
|
|
996
|
+
continue;
|
|
764
997
|
case 2:
|
|
998
|
+
if (tag !== 18) {
|
|
999
|
+
break;
|
|
1000
|
+
}
|
|
765
1001
|
message.sql = reader.string();
|
|
766
|
-
|
|
1002
|
+
continue;
|
|
767
1003
|
case 3:
|
|
1004
|
+
if (tag !== 24) {
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
768
1007
|
message.nocache = reader.bool();
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
1008
|
+
continue;
|
|
1009
|
+
}
|
|
1010
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1011
|
+
break;
|
|
773
1012
|
}
|
|
1013
|
+
reader.skipType(tag & 7);
|
|
774
1014
|
}
|
|
775
1015
|
return message;
|
|
776
1016
|
},
|
|
777
1017
|
fromJSON(object) {
|
|
778
1018
|
return {
|
|
779
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
780
|
-
sql: isSet(object.sql) ? String(object.sql) : "",
|
|
781
|
-
nocache: isSet(object.nocache) ? Boolean(object.nocache) : undefined,
|
|
1019
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
1020
|
+
sql: isSet(object.sql) ? globalThis.String(object.sql) : "",
|
|
1021
|
+
nocache: isSet(object.nocache) ? globalThis.Boolean(object.nocache) : undefined,
|
|
782
1022
|
};
|
|
783
1023
|
},
|
|
784
1024
|
toJSON(message) {
|
|
785
1025
|
const obj = {};
|
|
786
|
-
message.network !==
|
|
787
|
-
|
|
788
|
-
|
|
1026
|
+
if (message.network !== "") {
|
|
1027
|
+
obj.network = message.network;
|
|
1028
|
+
}
|
|
1029
|
+
if (message.sql !== "") {
|
|
1030
|
+
obj.sql = message.sql;
|
|
1031
|
+
}
|
|
1032
|
+
if (message.nocache !== undefined) {
|
|
1033
|
+
obj.nocache = message.nocache;
|
|
1034
|
+
}
|
|
789
1035
|
return obj;
|
|
790
1036
|
},
|
|
791
1037
|
create(base) {
|
|
@@ -808,70 +1054,96 @@ export const EvmGetHeaderRequest = {
|
|
|
808
1054
|
writer.uint32(10).string(message.network);
|
|
809
1055
|
}
|
|
810
1056
|
if (message.fromBlock !== undefined) {
|
|
1057
|
+
if (BigInt.asUintN(64, message.fromBlock) !== message.fromBlock) {
|
|
1058
|
+
throw new globalThis.Error("value provided for field message.fromBlock of type uint64 too large");
|
|
1059
|
+
}
|
|
811
1060
|
writer.uint32(16).uint64(message.fromBlock.toString());
|
|
812
1061
|
}
|
|
813
1062
|
if (message.toBlock !== undefined) {
|
|
1063
|
+
if (BigInt.asUintN(64, message.toBlock) !== message.toBlock) {
|
|
1064
|
+
throw new globalThis.Error("value provided for field message.toBlock of type uint64 too large");
|
|
1065
|
+
}
|
|
814
1066
|
writer.uint32(24).uint64(message.toBlock.toString());
|
|
815
1067
|
}
|
|
816
1068
|
writer.uint32(34).fork();
|
|
817
1069
|
for (const v of message.blockNumbers) {
|
|
1070
|
+
if (BigInt.asUintN(64, v) !== v) {
|
|
1071
|
+
throw new globalThis.Error("a value provided in array field blockNumbers of type uint64 is too large");
|
|
1072
|
+
}
|
|
818
1073
|
writer.uint64(v.toString());
|
|
819
1074
|
}
|
|
820
1075
|
writer.ldelim();
|
|
821
1076
|
return writer;
|
|
822
1077
|
},
|
|
823
1078
|
decode(input, length) {
|
|
824
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1079
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
825
1080
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
826
1081
|
const message = createBaseEvmGetHeaderRequest();
|
|
827
1082
|
while (reader.pos < end) {
|
|
828
1083
|
const tag = reader.uint32();
|
|
829
1084
|
switch (tag >>> 3) {
|
|
830
1085
|
case 1:
|
|
1086
|
+
if (tag !== 10) {
|
|
1087
|
+
break;
|
|
1088
|
+
}
|
|
831
1089
|
message.network = reader.string();
|
|
832
|
-
|
|
1090
|
+
continue;
|
|
833
1091
|
case 2:
|
|
1092
|
+
if (tag !== 16) {
|
|
1093
|
+
break;
|
|
1094
|
+
}
|
|
834
1095
|
message.fromBlock = longToBigint(reader.uint64());
|
|
835
|
-
|
|
1096
|
+
continue;
|
|
836
1097
|
case 3:
|
|
1098
|
+
if (tag !== 24) {
|
|
1099
|
+
break;
|
|
1100
|
+
}
|
|
837
1101
|
message.toBlock = longToBigint(reader.uint64());
|
|
838
|
-
|
|
1102
|
+
continue;
|
|
839
1103
|
case 4:
|
|
840
|
-
if (
|
|
1104
|
+
if (tag === 32) {
|
|
1105
|
+
message.blockNumbers.push(longToBigint(reader.uint64()));
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
if (tag === 34) {
|
|
841
1109
|
const end2 = reader.uint32() + reader.pos;
|
|
842
1110
|
while (reader.pos < end2) {
|
|
843
1111
|
message.blockNumbers.push(longToBigint(reader.uint64()));
|
|
844
1112
|
}
|
|
1113
|
+
continue;
|
|
845
1114
|
}
|
|
846
|
-
else {
|
|
847
|
-
message.blockNumbers.push(longToBigint(reader.uint64()));
|
|
848
|
-
}
|
|
849
|
-
break;
|
|
850
|
-
default:
|
|
851
|
-
reader.skipType(tag & 7);
|
|
852
1115
|
break;
|
|
853
1116
|
}
|
|
1117
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
reader.skipType(tag & 7);
|
|
854
1121
|
}
|
|
855
1122
|
return message;
|
|
856
1123
|
},
|
|
857
1124
|
fromJSON(object) {
|
|
858
1125
|
return {
|
|
859
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
1126
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
860
1127
|
fromBlock: isSet(object.fromBlock) ? BigInt(object.fromBlock) : undefined,
|
|
861
1128
|
toBlock: isSet(object.toBlock) ? BigInt(object.toBlock) : undefined,
|
|
862
|
-
blockNumbers: Array.isArray(object?.blockNumbers)
|
|
1129
|
+
blockNumbers: globalThis.Array.isArray(object?.blockNumbers)
|
|
1130
|
+
? object.blockNumbers.map((e) => BigInt(e))
|
|
1131
|
+
: [],
|
|
863
1132
|
};
|
|
864
1133
|
},
|
|
865
1134
|
toJSON(message) {
|
|
866
1135
|
const obj = {};
|
|
867
|
-
message.network !==
|
|
868
|
-
|
|
869
|
-
message.toBlock !== undefined && (obj.toBlock = message.toBlock.toString());
|
|
870
|
-
if (message.blockNumbers) {
|
|
871
|
-
obj.blockNumbers = message.blockNumbers.map((e) => e.toString());
|
|
1136
|
+
if (message.network !== "") {
|
|
1137
|
+
obj.network = message.network;
|
|
872
1138
|
}
|
|
873
|
-
|
|
874
|
-
obj.
|
|
1139
|
+
if (message.fromBlock !== undefined) {
|
|
1140
|
+
obj.fromBlock = message.fromBlock.toString();
|
|
1141
|
+
}
|
|
1142
|
+
if (message.toBlock !== undefined) {
|
|
1143
|
+
obj.toBlock = message.toBlock.toString();
|
|
1144
|
+
}
|
|
1145
|
+
if (message.blockNumbers?.length) {
|
|
1146
|
+
obj.blockNumbers = message.blockNumbers.map((e) => e.toString());
|
|
875
1147
|
}
|
|
876
1148
|
return obj;
|
|
877
1149
|
},
|
|
@@ -901,28 +1173,35 @@ export const EvmQueryResponse = {
|
|
|
901
1173
|
return writer;
|
|
902
1174
|
},
|
|
903
1175
|
decode(input, length) {
|
|
904
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1176
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
905
1177
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
906
1178
|
const message = createBaseEvmQueryResponse();
|
|
907
1179
|
while (reader.pos < end) {
|
|
908
1180
|
const tag = reader.uint32();
|
|
909
1181
|
switch (tag >>> 3) {
|
|
910
1182
|
case 1:
|
|
1183
|
+
if (tag !== 10) {
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
911
1186
|
message.rows.push(reader.bytes());
|
|
912
|
-
|
|
1187
|
+
continue;
|
|
913
1188
|
case 2:
|
|
1189
|
+
if (tag !== 18) {
|
|
1190
|
+
break;
|
|
1191
|
+
}
|
|
914
1192
|
message.executionSummary = QueryExecutionSummary.decode(reader, reader.uint32());
|
|
915
|
-
|
|
916
|
-
default:
|
|
917
|
-
reader.skipType(tag & 7);
|
|
918
|
-
break;
|
|
1193
|
+
continue;
|
|
919
1194
|
}
|
|
1195
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
reader.skipType(tag & 7);
|
|
920
1199
|
}
|
|
921
1200
|
return message;
|
|
922
1201
|
},
|
|
923
1202
|
fromJSON(object) {
|
|
924
1203
|
return {
|
|
925
|
-
rows: Array.isArray(object?.rows) ? object.rows.map((e) => bytesFromBase64(e)) : [],
|
|
1204
|
+
rows: globalThis.Array.isArray(object?.rows) ? object.rows.map((e) => bytesFromBase64(e)) : [],
|
|
926
1205
|
executionSummary: isSet(object.executionSummary)
|
|
927
1206
|
? QueryExecutionSummary.fromJSON(object.executionSummary)
|
|
928
1207
|
: undefined,
|
|
@@ -930,15 +1209,12 @@ export const EvmQueryResponse = {
|
|
|
930
1209
|
},
|
|
931
1210
|
toJSON(message) {
|
|
932
1211
|
const obj = {};
|
|
933
|
-
if (message.rows) {
|
|
934
|
-
obj.rows = message.rows.map((e) => base64FromBytes(e
|
|
1212
|
+
if (message.rows?.length) {
|
|
1213
|
+
obj.rows = message.rows.map((e) => base64FromBytes(e));
|
|
935
1214
|
}
|
|
936
|
-
|
|
937
|
-
obj.
|
|
1215
|
+
if (message.executionSummary !== undefined) {
|
|
1216
|
+
obj.executionSummary = QueryExecutionSummary.toJSON(message.executionSummary);
|
|
938
1217
|
}
|
|
939
|
-
message.executionSummary !== undefined && (obj.executionSummary = message.executionSummary
|
|
940
|
-
? QueryExecutionSummary.toJSON(message.executionSummary)
|
|
941
|
-
: undefined);
|
|
942
1218
|
return obj;
|
|
943
1219
|
},
|
|
944
1220
|
create(base) {
|
|
@@ -962,33 +1238,43 @@ export const SuiGetCheckpointTimeRequest = {
|
|
|
962
1238
|
writer.uint32(10).string(message.network);
|
|
963
1239
|
}
|
|
964
1240
|
if (message.checkpointSequenceNumber !== BigInt("0")) {
|
|
1241
|
+
if (BigInt.asUintN(64, message.checkpointSequenceNumber) !== message.checkpointSequenceNumber) {
|
|
1242
|
+
throw new globalThis.Error("value provided for field message.checkpointSequenceNumber of type uint64 too large");
|
|
1243
|
+
}
|
|
965
1244
|
writer.uint32(16).uint64(message.checkpointSequenceNumber.toString());
|
|
966
1245
|
}
|
|
967
1246
|
return writer;
|
|
968
1247
|
},
|
|
969
1248
|
decode(input, length) {
|
|
970
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1249
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
971
1250
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
972
1251
|
const message = createBaseSuiGetCheckpointTimeRequest();
|
|
973
1252
|
while (reader.pos < end) {
|
|
974
1253
|
const tag = reader.uint32();
|
|
975
1254
|
switch (tag >>> 3) {
|
|
976
1255
|
case 1:
|
|
1256
|
+
if (tag !== 10) {
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
977
1259
|
message.network = reader.string();
|
|
978
|
-
|
|
1260
|
+
continue;
|
|
979
1261
|
case 2:
|
|
1262
|
+
if (tag !== 16) {
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
980
1265
|
message.checkpointSequenceNumber = longToBigint(reader.uint64());
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1269
|
+
break;
|
|
985
1270
|
}
|
|
1271
|
+
reader.skipType(tag & 7);
|
|
986
1272
|
}
|
|
987
1273
|
return message;
|
|
988
1274
|
},
|
|
989
1275
|
fromJSON(object) {
|
|
990
1276
|
return {
|
|
991
|
-
network: isSet(object.network) ? String(object.network) : "",
|
|
1277
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
992
1278
|
checkpointSequenceNumber: isSet(object.checkpointSequenceNumber)
|
|
993
1279
|
? BigInt(object.checkpointSequenceNumber)
|
|
994
1280
|
: BigInt("0"),
|
|
@@ -996,9 +1282,12 @@ export const SuiGetCheckpointTimeRequest = {
|
|
|
996
1282
|
},
|
|
997
1283
|
toJSON(message) {
|
|
998
1284
|
const obj = {};
|
|
999
|
-
message.network !==
|
|
1000
|
-
|
|
1001
|
-
|
|
1285
|
+
if (message.network !== "") {
|
|
1286
|
+
obj.network = message.network;
|
|
1287
|
+
}
|
|
1288
|
+
if (message.checkpointSequenceNumber !== BigInt("0")) {
|
|
1289
|
+
obj.checkpointSequenceNumber = message.checkpointSequenceNumber.toString();
|
|
1290
|
+
}
|
|
1002
1291
|
return obj;
|
|
1003
1292
|
},
|
|
1004
1293
|
create(base) {
|
|
@@ -1021,36 +1310,55 @@ function createBaseSuiGetCheckpointTimeResponse() {
|
|
|
1021
1310
|
export const SuiGetCheckpointTimeResponse = {
|
|
1022
1311
|
encode(message, writer = _m0.Writer.create()) {
|
|
1023
1312
|
if (message.checkpointTimestampMs !== undefined) {
|
|
1313
|
+
if (BigInt.asUintN(64, message.checkpointTimestampMs) !== message.checkpointTimestampMs) {
|
|
1314
|
+
throw new globalThis.Error("value provided for field message.checkpointTimestampMs of type uint64 too large");
|
|
1315
|
+
}
|
|
1024
1316
|
writer.uint32(8).uint64(message.checkpointTimestampMs.toString());
|
|
1025
1317
|
}
|
|
1026
1318
|
if (message.transactionMinTimestampMs !== undefined) {
|
|
1319
|
+
if (BigInt.asUintN(64, message.transactionMinTimestampMs) !== message.transactionMinTimestampMs) {
|
|
1320
|
+
throw new globalThis.Error("value provided for field message.transactionMinTimestampMs of type uint64 too large");
|
|
1321
|
+
}
|
|
1027
1322
|
writer.uint32(16).uint64(message.transactionMinTimestampMs.toString());
|
|
1028
1323
|
}
|
|
1029
1324
|
if (message.transactionMaxTimestampMs !== undefined) {
|
|
1325
|
+
if (BigInt.asUintN(64, message.transactionMaxTimestampMs) !== message.transactionMaxTimestampMs) {
|
|
1326
|
+
throw new globalThis.Error("value provided for field message.transactionMaxTimestampMs of type uint64 too large");
|
|
1327
|
+
}
|
|
1030
1328
|
writer.uint32(24).uint64(message.transactionMaxTimestampMs.toString());
|
|
1031
1329
|
}
|
|
1032
1330
|
return writer;
|
|
1033
1331
|
},
|
|
1034
1332
|
decode(input, length) {
|
|
1035
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1333
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1036
1334
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1037
1335
|
const message = createBaseSuiGetCheckpointTimeResponse();
|
|
1038
1336
|
while (reader.pos < end) {
|
|
1039
1337
|
const tag = reader.uint32();
|
|
1040
1338
|
switch (tag >>> 3) {
|
|
1041
1339
|
case 1:
|
|
1340
|
+
if (tag !== 8) {
|
|
1341
|
+
break;
|
|
1342
|
+
}
|
|
1042
1343
|
message.checkpointTimestampMs = longToBigint(reader.uint64());
|
|
1043
|
-
|
|
1344
|
+
continue;
|
|
1044
1345
|
case 2:
|
|
1346
|
+
if (tag !== 16) {
|
|
1347
|
+
break;
|
|
1348
|
+
}
|
|
1045
1349
|
message.transactionMinTimestampMs = longToBigint(reader.uint64());
|
|
1046
|
-
|
|
1350
|
+
continue;
|
|
1047
1351
|
case 3:
|
|
1352
|
+
if (tag !== 24) {
|
|
1353
|
+
break;
|
|
1354
|
+
}
|
|
1048
1355
|
message.transactionMaxTimestampMs = longToBigint(reader.uint64());
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1356
|
+
continue;
|
|
1357
|
+
}
|
|
1358
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1359
|
+
break;
|
|
1053
1360
|
}
|
|
1361
|
+
reader.skipType(tag & 7);
|
|
1054
1362
|
}
|
|
1055
1363
|
return message;
|
|
1056
1364
|
},
|
|
@@ -1067,12 +1375,15 @@ export const SuiGetCheckpointTimeResponse = {
|
|
|
1067
1375
|
},
|
|
1068
1376
|
toJSON(message) {
|
|
1069
1377
|
const obj = {};
|
|
1070
|
-
message.checkpointTimestampMs !== undefined
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1378
|
+
if (message.checkpointTimestampMs !== undefined) {
|
|
1379
|
+
obj.checkpointTimestampMs = message.checkpointTimestampMs.toString();
|
|
1380
|
+
}
|
|
1381
|
+
if (message.transactionMinTimestampMs !== undefined) {
|
|
1382
|
+
obj.transactionMinTimestampMs = message.transactionMinTimestampMs.toString();
|
|
1383
|
+
}
|
|
1384
|
+
if (message.transactionMaxTimestampMs !== undefined) {
|
|
1385
|
+
obj.transactionMaxTimestampMs = message.transactionMaxTimestampMs.toString();
|
|
1386
|
+
}
|
|
1076
1387
|
return obj;
|
|
1077
1388
|
},
|
|
1078
1389
|
create(base) {
|
|
@@ -1097,46 +1408,62 @@ export const RemoteResultRequest = {
|
|
|
1097
1408
|
if (message.position !== 0) {
|
|
1098
1409
|
writer.uint32(16).int32(message.position);
|
|
1099
1410
|
}
|
|
1100
|
-
if (message.keepAlive
|
|
1411
|
+
if (message.keepAlive !== false) {
|
|
1101
1412
|
writer.uint32(24).bool(message.keepAlive);
|
|
1102
1413
|
}
|
|
1103
1414
|
return writer;
|
|
1104
1415
|
},
|
|
1105
1416
|
decode(input, length) {
|
|
1106
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1417
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1107
1418
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1108
1419
|
const message = createBaseRemoteResultRequest();
|
|
1109
1420
|
while (reader.pos < end) {
|
|
1110
1421
|
const tag = reader.uint32();
|
|
1111
1422
|
switch (tag >>> 3) {
|
|
1112
1423
|
case 1:
|
|
1424
|
+
if (tag !== 10) {
|
|
1425
|
+
break;
|
|
1426
|
+
}
|
|
1113
1427
|
message.token = reader.string();
|
|
1114
|
-
|
|
1428
|
+
continue;
|
|
1115
1429
|
case 2:
|
|
1430
|
+
if (tag !== 16) {
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1116
1433
|
message.position = reader.int32();
|
|
1117
|
-
|
|
1434
|
+
continue;
|
|
1118
1435
|
case 3:
|
|
1436
|
+
if (tag !== 24) {
|
|
1437
|
+
break;
|
|
1438
|
+
}
|
|
1119
1439
|
message.keepAlive = reader.bool();
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1440
|
+
continue;
|
|
1441
|
+
}
|
|
1442
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1443
|
+
break;
|
|
1124
1444
|
}
|
|
1445
|
+
reader.skipType(tag & 7);
|
|
1125
1446
|
}
|
|
1126
1447
|
return message;
|
|
1127
1448
|
},
|
|
1128
1449
|
fromJSON(object) {
|
|
1129
1450
|
return {
|
|
1130
|
-
token: isSet(object.token) ? String(object.token) : "",
|
|
1131
|
-
position: isSet(object.position) ? Number(object.position) : 0,
|
|
1132
|
-
keepAlive: isSet(object.keepAlive) ? Boolean(object.keepAlive) : false,
|
|
1451
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
1452
|
+
position: isSet(object.position) ? globalThis.Number(object.position) : 0,
|
|
1453
|
+
keepAlive: isSet(object.keepAlive) ? globalThis.Boolean(object.keepAlive) : false,
|
|
1133
1454
|
};
|
|
1134
1455
|
},
|
|
1135
1456
|
toJSON(message) {
|
|
1136
1457
|
const obj = {};
|
|
1137
|
-
message.token !==
|
|
1138
|
-
|
|
1139
|
-
|
|
1458
|
+
if (message.token !== "") {
|
|
1459
|
+
obj.token = message.token;
|
|
1460
|
+
}
|
|
1461
|
+
if (message.position !== 0) {
|
|
1462
|
+
obj.position = Math.round(message.position);
|
|
1463
|
+
}
|
|
1464
|
+
if (message.keepAlive !== false) {
|
|
1465
|
+
obj.keepAlive = message.keepAlive;
|
|
1466
|
+
}
|
|
1140
1467
|
return obj;
|
|
1141
1468
|
},
|
|
1142
1469
|
create(base) {
|
|
@@ -1161,32 +1488,33 @@ export const RemoteResultResponse = {
|
|
|
1161
1488
|
return writer;
|
|
1162
1489
|
},
|
|
1163
1490
|
decode(input, length) {
|
|
1164
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1491
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1165
1492
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1166
1493
|
const message = createBaseRemoteResultResponse();
|
|
1167
1494
|
while (reader.pos < end) {
|
|
1168
1495
|
const tag = reader.uint32();
|
|
1169
1496
|
switch (tag >>> 3) {
|
|
1170
1497
|
case 1:
|
|
1498
|
+
if (tag !== 10) {
|
|
1499
|
+
break;
|
|
1500
|
+
}
|
|
1171
1501
|
message.rows.push(reader.bytes());
|
|
1172
|
-
|
|
1173
|
-
default:
|
|
1174
|
-
reader.skipType(tag & 7);
|
|
1175
|
-
break;
|
|
1502
|
+
continue;
|
|
1176
1503
|
}
|
|
1504
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1505
|
+
break;
|
|
1506
|
+
}
|
|
1507
|
+
reader.skipType(tag & 7);
|
|
1177
1508
|
}
|
|
1178
1509
|
return message;
|
|
1179
1510
|
},
|
|
1180
1511
|
fromJSON(object) {
|
|
1181
|
-
return { rows: Array.isArray(object?.rows) ? object.rows.map((e) => bytesFromBase64(e)) : [] };
|
|
1512
|
+
return { rows: globalThis.Array.isArray(object?.rows) ? object.rows.map((e) => bytesFromBase64(e)) : [] };
|
|
1182
1513
|
},
|
|
1183
1514
|
toJSON(message) {
|
|
1184
1515
|
const obj = {};
|
|
1185
|
-
if (message.rows) {
|
|
1186
|
-
obj.rows = message.rows.map((e) => base64FromBytes(e
|
|
1187
|
-
}
|
|
1188
|
-
else {
|
|
1189
|
-
obj.rows = [];
|
|
1516
|
+
if (message.rows?.length) {
|
|
1517
|
+
obj.rows = message.rows.map((e) => base64FromBytes(e));
|
|
1190
1518
|
}
|
|
1191
1519
|
return obj;
|
|
1192
1520
|
},
|
|
@@ -1335,27 +1663,12 @@ export const RemoteResultTransferServiceDefinition = {
|
|
|
1335
1663
|
},
|
|
1336
1664
|
},
|
|
1337
1665
|
};
|
|
1338
|
-
var tsProtoGlobalThis = (() => {
|
|
1339
|
-
if (typeof globalThis !== "undefined") {
|
|
1340
|
-
return globalThis;
|
|
1341
|
-
}
|
|
1342
|
-
if (typeof self !== "undefined") {
|
|
1343
|
-
return self;
|
|
1344
|
-
}
|
|
1345
|
-
if (typeof window !== "undefined") {
|
|
1346
|
-
return window;
|
|
1347
|
-
}
|
|
1348
|
-
if (typeof global !== "undefined") {
|
|
1349
|
-
return global;
|
|
1350
|
-
}
|
|
1351
|
-
throw "Unable to locate global object";
|
|
1352
|
-
})();
|
|
1353
1666
|
function bytesFromBase64(b64) {
|
|
1354
|
-
if (
|
|
1355
|
-
return Uint8Array.from(
|
|
1667
|
+
if (globalThis.Buffer) {
|
|
1668
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
1356
1669
|
}
|
|
1357
1670
|
else {
|
|
1358
|
-
const bin =
|
|
1671
|
+
const bin = globalThis.atob(b64);
|
|
1359
1672
|
const arr = new Uint8Array(bin.length);
|
|
1360
1673
|
for (let i = 0; i < bin.length; ++i) {
|
|
1361
1674
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -1364,15 +1677,15 @@ function bytesFromBase64(b64) {
|
|
|
1364
1677
|
}
|
|
1365
1678
|
}
|
|
1366
1679
|
function base64FromBytes(arr) {
|
|
1367
|
-
if (
|
|
1368
|
-
return
|
|
1680
|
+
if (globalThis.Buffer) {
|
|
1681
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
1369
1682
|
}
|
|
1370
1683
|
else {
|
|
1371
1684
|
const bin = [];
|
|
1372
1685
|
arr.forEach((byte) => {
|
|
1373
|
-
bin.push(String.fromCharCode(byte));
|
|
1686
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
1374
1687
|
});
|
|
1375
|
-
return
|
|
1688
|
+
return globalThis.btoa(bin.join(""));
|
|
1376
1689
|
}
|
|
1377
1690
|
}
|
|
1378
1691
|
function longToBigint(long) {
|