@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
|
@@ -15,36 +15,46 @@ export const CoinID = {
|
|
|
15
15
|
return writer;
|
|
16
16
|
},
|
|
17
17
|
decode(input, length) {
|
|
18
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
18
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
19
19
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20
20
|
const message = createBaseCoinID();
|
|
21
21
|
while (reader.pos < end) {
|
|
22
22
|
const tag = reader.uint32();
|
|
23
23
|
switch (tag >>> 3) {
|
|
24
24
|
case 2:
|
|
25
|
+
if (tag !== 18) {
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
25
28
|
message.symbol = reader.string();
|
|
26
|
-
|
|
29
|
+
continue;
|
|
27
30
|
case 3:
|
|
31
|
+
if (tag !== 26) {
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
28
34
|
message.address = CoinID_AddressIdentifier.decode(reader, reader.uint32());
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
38
|
+
break;
|
|
33
39
|
}
|
|
40
|
+
reader.skipType(tag & 7);
|
|
34
41
|
}
|
|
35
42
|
return message;
|
|
36
43
|
},
|
|
37
44
|
fromJSON(object) {
|
|
38
45
|
return {
|
|
39
|
-
symbol: isSet(object.symbol) ? String(object.symbol) : undefined,
|
|
46
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : undefined,
|
|
40
47
|
address: isSet(object.address) ? CoinID_AddressIdentifier.fromJSON(object.address) : undefined,
|
|
41
48
|
};
|
|
42
49
|
},
|
|
43
50
|
toJSON(message) {
|
|
44
51
|
const obj = {};
|
|
45
|
-
message.symbol !== undefined
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
if (message.symbol !== undefined) {
|
|
53
|
+
obj.symbol = message.symbol;
|
|
54
|
+
}
|
|
55
|
+
if (message.address !== undefined) {
|
|
56
|
+
obj.address = CoinID_AddressIdentifier.toJSON(message.address);
|
|
57
|
+
}
|
|
48
58
|
return obj;
|
|
49
59
|
},
|
|
50
60
|
create(base) {
|
|
@@ -73,35 +83,46 @@ export const CoinID_AddressIdentifier = {
|
|
|
73
83
|
return writer;
|
|
74
84
|
},
|
|
75
85
|
decode(input, length) {
|
|
76
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
86
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
77
87
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
88
|
const message = createBaseCoinID_AddressIdentifier();
|
|
79
89
|
while (reader.pos < end) {
|
|
80
90
|
const tag = reader.uint32();
|
|
81
91
|
switch (tag >>> 3) {
|
|
82
92
|
case 1:
|
|
93
|
+
if (tag !== 10) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
83
96
|
message.address = reader.string();
|
|
84
|
-
|
|
97
|
+
continue;
|
|
85
98
|
case 2:
|
|
99
|
+
if (tag !== 18) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
86
102
|
message.chain = reader.string();
|
|
87
|
-
|
|
88
|
-
default:
|
|
89
|
-
reader.skipType(tag & 7);
|
|
90
|
-
break;
|
|
103
|
+
continue;
|
|
91
104
|
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
92
109
|
}
|
|
93
110
|
return message;
|
|
94
111
|
},
|
|
95
112
|
fromJSON(object) {
|
|
96
113
|
return {
|
|
97
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
98
|
-
chain: isSet(object.chain) ? String(object.chain) : "",
|
|
114
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
115
|
+
chain: isSet(object.chain) ? globalThis.String(object.chain) : "",
|
|
99
116
|
};
|
|
100
117
|
},
|
|
101
118
|
toJSON(message) {
|
|
102
119
|
const obj = {};
|
|
103
|
-
message.address !==
|
|
104
|
-
|
|
120
|
+
if (message.address !== "") {
|
|
121
|
+
obj.address = message.address;
|
|
122
|
+
}
|
|
123
|
+
if (message.chain !== "") {
|
|
124
|
+
obj.chain = message.chain;
|
|
125
|
+
}
|
|
105
126
|
return obj;
|
|
106
127
|
},
|
|
107
128
|
create(base) {
|
|
@@ -131,25 +152,35 @@ export const GetPriceRequest = {
|
|
|
131
152
|
return writer;
|
|
132
153
|
},
|
|
133
154
|
decode(input, length) {
|
|
134
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
155
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
135
156
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
136
157
|
const message = createBaseGetPriceRequest();
|
|
137
158
|
while (reader.pos < end) {
|
|
138
159
|
const tag = reader.uint32();
|
|
139
160
|
switch (tag >>> 3) {
|
|
140
161
|
case 1:
|
|
162
|
+
if (tag !== 10) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
141
165
|
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
142
|
-
|
|
166
|
+
continue;
|
|
143
167
|
case 2:
|
|
168
|
+
if (tag !== 18) {
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
144
171
|
message.coinId = CoinID.decode(reader, reader.uint32());
|
|
145
|
-
|
|
172
|
+
continue;
|
|
146
173
|
case 3:
|
|
174
|
+
if (tag !== 26) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
147
177
|
message.source = reader.string();
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
reader.skipType(tag & 7);
|
|
151
|
-
break;
|
|
178
|
+
continue;
|
|
152
179
|
}
|
|
180
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
reader.skipType(tag & 7);
|
|
153
184
|
}
|
|
154
185
|
return message;
|
|
155
186
|
},
|
|
@@ -157,14 +188,20 @@ export const GetPriceRequest = {
|
|
|
157
188
|
return {
|
|
158
189
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
159
190
|
coinId: isSet(object.coinId) ? CoinID.fromJSON(object.coinId) : undefined,
|
|
160
|
-
source: isSet(object.source) ? String(object.source) : "",
|
|
191
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
161
192
|
};
|
|
162
193
|
},
|
|
163
194
|
toJSON(message) {
|
|
164
195
|
const obj = {};
|
|
165
|
-
message.timestamp !== undefined
|
|
166
|
-
|
|
167
|
-
|
|
196
|
+
if (message.timestamp !== undefined) {
|
|
197
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
198
|
+
}
|
|
199
|
+
if (message.coinId !== undefined) {
|
|
200
|
+
obj.coinId = CoinID.toJSON(message.coinId);
|
|
201
|
+
}
|
|
202
|
+
if (message.source !== "") {
|
|
203
|
+
obj.source = message.source;
|
|
204
|
+
}
|
|
168
205
|
return obj;
|
|
169
206
|
},
|
|
170
207
|
create(base) {
|
|
@@ -194,35 +231,46 @@ export const GetPriceResponse = {
|
|
|
194
231
|
return writer;
|
|
195
232
|
},
|
|
196
233
|
decode(input, length) {
|
|
197
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
234
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
198
235
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
199
236
|
const message = createBaseGetPriceResponse();
|
|
200
237
|
while (reader.pos < end) {
|
|
201
238
|
const tag = reader.uint32();
|
|
202
239
|
switch (tag >>> 3) {
|
|
203
240
|
case 1:
|
|
241
|
+
if (tag !== 9) {
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
204
244
|
message.price = reader.double();
|
|
205
|
-
|
|
245
|
+
continue;
|
|
206
246
|
case 2:
|
|
247
|
+
if (tag !== 18) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
207
250
|
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
208
|
-
|
|
209
|
-
default:
|
|
210
|
-
reader.skipType(tag & 7);
|
|
211
|
-
break;
|
|
251
|
+
continue;
|
|
212
252
|
}
|
|
253
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
reader.skipType(tag & 7);
|
|
213
257
|
}
|
|
214
258
|
return message;
|
|
215
259
|
},
|
|
216
260
|
fromJSON(object) {
|
|
217
261
|
return {
|
|
218
|
-
price: isSet(object.price) ? Number(object.price) : 0,
|
|
262
|
+
price: isSet(object.price) ? globalThis.Number(object.price) : 0,
|
|
219
263
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
220
264
|
};
|
|
221
265
|
},
|
|
222
266
|
toJSON(message) {
|
|
223
267
|
const obj = {};
|
|
224
|
-
message.price !==
|
|
225
|
-
|
|
268
|
+
if (message.price !== 0) {
|
|
269
|
+
obj.price = message.price;
|
|
270
|
+
}
|
|
271
|
+
if (message.timestamp !== undefined) {
|
|
272
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
273
|
+
}
|
|
226
274
|
return obj;
|
|
227
275
|
},
|
|
228
276
|
create(base) {
|
|
@@ -249,44 +297,47 @@ export const BatchGetPricesRequest = {
|
|
|
249
297
|
return writer;
|
|
250
298
|
},
|
|
251
299
|
decode(input, length) {
|
|
252
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
300
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
253
301
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
254
302
|
const message = createBaseBatchGetPricesRequest();
|
|
255
303
|
while (reader.pos < end) {
|
|
256
304
|
const tag = reader.uint32();
|
|
257
305
|
switch (tag >>> 3) {
|
|
258
306
|
case 1:
|
|
307
|
+
if (tag !== 10) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
259
310
|
message.timestamps.push(fromTimestamp(Timestamp.decode(reader, reader.uint32())));
|
|
260
|
-
|
|
311
|
+
continue;
|
|
261
312
|
case 2:
|
|
313
|
+
if (tag !== 18) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
262
316
|
message.coinIds.push(CoinID.decode(reader, reader.uint32()));
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
320
|
+
break;
|
|
267
321
|
}
|
|
322
|
+
reader.skipType(tag & 7);
|
|
268
323
|
}
|
|
269
324
|
return message;
|
|
270
325
|
},
|
|
271
326
|
fromJSON(object) {
|
|
272
327
|
return {
|
|
273
|
-
timestamps: Array.isArray(object?.timestamps)
|
|
274
|
-
|
|
328
|
+
timestamps: globalThis.Array.isArray(object?.timestamps)
|
|
329
|
+
? object.timestamps.map((e) => fromJsonTimestamp(e))
|
|
330
|
+
: [],
|
|
331
|
+
coinIds: globalThis.Array.isArray(object?.coinIds) ? object.coinIds.map((e) => CoinID.fromJSON(e)) : [],
|
|
275
332
|
};
|
|
276
333
|
},
|
|
277
334
|
toJSON(message) {
|
|
278
335
|
const obj = {};
|
|
279
|
-
if (message.timestamps) {
|
|
336
|
+
if (message.timestamps?.length) {
|
|
280
337
|
obj.timestamps = message.timestamps.map((e) => e.toISOString());
|
|
281
338
|
}
|
|
282
|
-
|
|
283
|
-
obj.
|
|
284
|
-
}
|
|
285
|
-
if (message.coinIds) {
|
|
286
|
-
obj.coinIds = message.coinIds.map((e) => e ? CoinID.toJSON(e) : undefined);
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
obj.coinIds = [];
|
|
339
|
+
if (message.coinIds?.length) {
|
|
340
|
+
obj.coinIds = message.coinIds.map((e) => CoinID.toJSON(e));
|
|
290
341
|
}
|
|
291
342
|
return obj;
|
|
292
343
|
},
|
|
@@ -311,36 +362,37 @@ export const BatchGetPricesResponse = {
|
|
|
311
362
|
return writer;
|
|
312
363
|
},
|
|
313
364
|
decode(input, length) {
|
|
314
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
365
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
315
366
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
316
367
|
const message = createBaseBatchGetPricesResponse();
|
|
317
368
|
while (reader.pos < end) {
|
|
318
369
|
const tag = reader.uint32();
|
|
319
370
|
switch (tag >>> 3) {
|
|
320
371
|
case 1:
|
|
372
|
+
if (tag !== 10) {
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
321
375
|
message.prices.push(BatchGetPricesResponse_CoinPrice.decode(reader, reader.uint32()));
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
379
|
+
break;
|
|
326
380
|
}
|
|
381
|
+
reader.skipType(tag & 7);
|
|
327
382
|
}
|
|
328
383
|
return message;
|
|
329
384
|
},
|
|
330
385
|
fromJSON(object) {
|
|
331
386
|
return {
|
|
332
|
-
prices: Array.isArray(object?.prices)
|
|
387
|
+
prices: globalThis.Array.isArray(object?.prices)
|
|
333
388
|
? object.prices.map((e) => BatchGetPricesResponse_CoinPrice.fromJSON(e))
|
|
334
389
|
: [],
|
|
335
390
|
};
|
|
336
391
|
},
|
|
337
392
|
toJSON(message) {
|
|
338
393
|
const obj = {};
|
|
339
|
-
if (message.prices) {
|
|
340
|
-
obj.prices = message.prices.map((e) =>
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
obj.prices = [];
|
|
394
|
+
if (message.prices?.length) {
|
|
395
|
+
obj.prices = message.prices.map((e) => BatchGetPricesResponse_CoinPrice.toJSON(e));
|
|
344
396
|
}
|
|
345
397
|
return obj;
|
|
346
398
|
},
|
|
@@ -370,25 +422,35 @@ export const BatchGetPricesResponse_CoinPrice = {
|
|
|
370
422
|
return writer;
|
|
371
423
|
},
|
|
372
424
|
decode(input, length) {
|
|
373
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
425
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
374
426
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
375
427
|
const message = createBaseBatchGetPricesResponse_CoinPrice();
|
|
376
428
|
while (reader.pos < end) {
|
|
377
429
|
const tag = reader.uint32();
|
|
378
430
|
switch (tag >>> 3) {
|
|
379
431
|
case 1:
|
|
432
|
+
if (tag !== 10) {
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
380
435
|
message.coinId = CoinID.decode(reader, reader.uint32());
|
|
381
|
-
|
|
436
|
+
continue;
|
|
382
437
|
case 2:
|
|
438
|
+
if (tag !== 18) {
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
383
441
|
message.price = BatchGetPricesResponse_CoinPrice_Price.decode(reader, reader.uint32());
|
|
384
|
-
|
|
442
|
+
continue;
|
|
385
443
|
case 3:
|
|
444
|
+
if (tag !== 26) {
|
|
445
|
+
break;
|
|
446
|
+
}
|
|
386
447
|
message.error = reader.string();
|
|
387
|
-
|
|
388
|
-
default:
|
|
389
|
-
reader.skipType(tag & 7);
|
|
390
|
-
break;
|
|
448
|
+
continue;
|
|
391
449
|
}
|
|
450
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
reader.skipType(tag & 7);
|
|
392
454
|
}
|
|
393
455
|
return message;
|
|
394
456
|
},
|
|
@@ -396,15 +458,20 @@ export const BatchGetPricesResponse_CoinPrice = {
|
|
|
396
458
|
return {
|
|
397
459
|
coinId: isSet(object.coinId) ? CoinID.fromJSON(object.coinId) : undefined,
|
|
398
460
|
price: isSet(object.price) ? BatchGetPricesResponse_CoinPrice_Price.fromJSON(object.price) : undefined,
|
|
399
|
-
error: isSet(object.error) ? String(object.error) : undefined,
|
|
461
|
+
error: isSet(object.error) ? globalThis.String(object.error) : undefined,
|
|
400
462
|
};
|
|
401
463
|
},
|
|
402
464
|
toJSON(message) {
|
|
403
465
|
const obj = {};
|
|
404
|
-
message.coinId !== undefined
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
message.
|
|
466
|
+
if (message.coinId !== undefined) {
|
|
467
|
+
obj.coinId = CoinID.toJSON(message.coinId);
|
|
468
|
+
}
|
|
469
|
+
if (message.price !== undefined) {
|
|
470
|
+
obj.price = BatchGetPricesResponse_CoinPrice_Price.toJSON(message.price);
|
|
471
|
+
}
|
|
472
|
+
if (message.error !== undefined) {
|
|
473
|
+
obj.error = message.error;
|
|
474
|
+
}
|
|
408
475
|
return obj;
|
|
409
476
|
},
|
|
410
477
|
create(base) {
|
|
@@ -433,34 +500,37 @@ export const BatchGetPricesResponse_CoinPrice_Price = {
|
|
|
433
500
|
return writer;
|
|
434
501
|
},
|
|
435
502
|
decode(input, length) {
|
|
436
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
503
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
437
504
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
438
505
|
const message = createBaseBatchGetPricesResponse_CoinPrice_Price();
|
|
439
506
|
while (reader.pos < end) {
|
|
440
507
|
const tag = reader.uint32();
|
|
441
508
|
switch (tag >>> 3) {
|
|
442
509
|
case 1:
|
|
510
|
+
if (tag !== 10) {
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
443
513
|
message.results.push(GetPriceResponse.decode(reader, reader.uint32()));
|
|
444
|
-
|
|
445
|
-
default:
|
|
446
|
-
reader.skipType(tag & 7);
|
|
447
|
-
break;
|
|
514
|
+
continue;
|
|
448
515
|
}
|
|
516
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
reader.skipType(tag & 7);
|
|
449
520
|
}
|
|
450
521
|
return message;
|
|
451
522
|
},
|
|
452
523
|
fromJSON(object) {
|
|
453
524
|
return {
|
|
454
|
-
results: Array.isArray(object?.results)
|
|
525
|
+
results: globalThis.Array.isArray(object?.results)
|
|
526
|
+
? object.results.map((e) => GetPriceResponse.fromJSON(e))
|
|
527
|
+
: [],
|
|
455
528
|
};
|
|
456
529
|
},
|
|
457
530
|
toJSON(message) {
|
|
458
531
|
const obj = {};
|
|
459
|
-
if (message.results) {
|
|
460
|
-
obj.results = message.results.map((e) =>
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
obj.results = [];
|
|
532
|
+
if (message.results?.length) {
|
|
533
|
+
obj.results = message.results.map((e) => GetPriceResponse.toJSON(e));
|
|
464
534
|
}
|
|
465
535
|
return obj;
|
|
466
536
|
},
|
|
@@ -493,45 +563,66 @@ export const ListCoinsRequest = {
|
|
|
493
563
|
return writer;
|
|
494
564
|
},
|
|
495
565
|
decode(input, length) {
|
|
496
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
566
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
497
567
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
498
568
|
const message = createBaseListCoinsRequest();
|
|
499
569
|
while (reader.pos < end) {
|
|
500
570
|
const tag = reader.uint32();
|
|
501
571
|
switch (tag >>> 3) {
|
|
502
572
|
case 1:
|
|
573
|
+
if (tag !== 8) {
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
503
576
|
message.limit = reader.int32();
|
|
504
|
-
|
|
577
|
+
continue;
|
|
505
578
|
case 2:
|
|
579
|
+
if (tag !== 16) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
506
582
|
message.offset = reader.int32();
|
|
507
|
-
|
|
583
|
+
continue;
|
|
508
584
|
case 3:
|
|
585
|
+
if (tag !== 26) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
509
588
|
message.searchQuery = reader.string();
|
|
510
|
-
|
|
589
|
+
continue;
|
|
511
590
|
case 4:
|
|
591
|
+
if (tag !== 34) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
512
594
|
message.chain = reader.string();
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
598
|
+
break;
|
|
517
599
|
}
|
|
600
|
+
reader.skipType(tag & 7);
|
|
518
601
|
}
|
|
519
602
|
return message;
|
|
520
603
|
},
|
|
521
604
|
fromJSON(object) {
|
|
522
605
|
return {
|
|
523
|
-
limit: isSet(object.limit) ? Number(object.limit) : 0,
|
|
524
|
-
offset: isSet(object.offset) ? Number(object.offset) : 0,
|
|
525
|
-
searchQuery: isSet(object.searchQuery) ? String(object.searchQuery) : "",
|
|
526
|
-
chain: isSet(object.chain) ? String(object.chain) : "",
|
|
606
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
607
|
+
offset: isSet(object.offset) ? globalThis.Number(object.offset) : 0,
|
|
608
|
+
searchQuery: isSet(object.searchQuery) ? globalThis.String(object.searchQuery) : "",
|
|
609
|
+
chain: isSet(object.chain) ? globalThis.String(object.chain) : "",
|
|
527
610
|
};
|
|
528
611
|
},
|
|
529
612
|
toJSON(message) {
|
|
530
613
|
const obj = {};
|
|
531
|
-
message.limit !==
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
message.
|
|
614
|
+
if (message.limit !== 0) {
|
|
615
|
+
obj.limit = Math.round(message.limit);
|
|
616
|
+
}
|
|
617
|
+
if (message.offset !== 0) {
|
|
618
|
+
obj.offset = Math.round(message.offset);
|
|
619
|
+
}
|
|
620
|
+
if (message.searchQuery !== "") {
|
|
621
|
+
obj.searchQuery = message.searchQuery;
|
|
622
|
+
}
|
|
623
|
+
if (message.chain !== "") {
|
|
624
|
+
obj.chain = message.chain;
|
|
625
|
+
}
|
|
535
626
|
return obj;
|
|
536
627
|
},
|
|
537
628
|
create(base) {
|
|
@@ -560,31 +651,38 @@ export const ListCoinsResponse = {
|
|
|
560
651
|
return writer;
|
|
561
652
|
},
|
|
562
653
|
decode(input, length) {
|
|
563
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
654
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
564
655
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
565
656
|
const message = createBaseListCoinsResponse();
|
|
566
657
|
while (reader.pos < end) {
|
|
567
658
|
const tag = reader.uint32();
|
|
568
659
|
switch (tag >>> 3) {
|
|
569
660
|
case 1:
|
|
661
|
+
if (tag !== 10) {
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
570
664
|
message.coins.push(CoinID.decode(reader, reader.uint32()));
|
|
571
|
-
|
|
665
|
+
continue;
|
|
572
666
|
case 2:
|
|
667
|
+
if (tag !== 18) {
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
573
670
|
const entry2 = ListCoinsResponse_CoinAddressesInChainEntry.decode(reader, reader.uint32());
|
|
574
671
|
if (entry2.value !== undefined) {
|
|
575
672
|
message.coinAddressesInChain[entry2.key] = entry2.value;
|
|
576
673
|
}
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
677
|
+
break;
|
|
581
678
|
}
|
|
679
|
+
reader.skipType(tag & 7);
|
|
582
680
|
}
|
|
583
681
|
return message;
|
|
584
682
|
},
|
|
585
683
|
fromJSON(object) {
|
|
586
684
|
return {
|
|
587
|
-
coins: Array.isArray(object?.coins) ? object.coins.map((e) => CoinID.fromJSON(e)) : [],
|
|
685
|
+
coins: globalThis.Array.isArray(object?.coins) ? object.coins.map((e) => CoinID.fromJSON(e)) : [],
|
|
588
686
|
coinAddressesInChain: isObject(object.coinAddressesInChain)
|
|
589
687
|
? Object.entries(object.coinAddressesInChain).reduce((acc, [key, value]) => {
|
|
590
688
|
acc[key] = CoinID.fromJSON(value);
|
|
@@ -595,17 +693,17 @@ export const ListCoinsResponse = {
|
|
|
595
693
|
},
|
|
596
694
|
toJSON(message) {
|
|
597
695
|
const obj = {};
|
|
598
|
-
if (message.coins) {
|
|
599
|
-
obj.coins = message.coins.map((e) =>
|
|
696
|
+
if (message.coins?.length) {
|
|
697
|
+
obj.coins = message.coins.map((e) => CoinID.toJSON(e));
|
|
600
698
|
}
|
|
601
|
-
else {
|
|
602
|
-
obj.coins = [];
|
|
603
|
-
}
|
|
604
|
-
obj.coinAddressesInChain = {};
|
|
605
699
|
if (message.coinAddressesInChain) {
|
|
606
|
-
Object.entries(message.coinAddressesInChain)
|
|
607
|
-
|
|
608
|
-
|
|
700
|
+
const entries = Object.entries(message.coinAddressesInChain);
|
|
701
|
+
if (entries.length > 0) {
|
|
702
|
+
obj.coinAddressesInChain = {};
|
|
703
|
+
entries.forEach(([k, v]) => {
|
|
704
|
+
obj.coinAddressesInChain[k] = CoinID.toJSON(v);
|
|
705
|
+
});
|
|
706
|
+
}
|
|
609
707
|
}
|
|
610
708
|
return obj;
|
|
611
709
|
},
|
|
@@ -638,35 +736,46 @@ export const ListCoinsResponse_CoinAddressesInChainEntry = {
|
|
|
638
736
|
return writer;
|
|
639
737
|
},
|
|
640
738
|
decode(input, length) {
|
|
641
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
739
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
642
740
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
643
741
|
const message = createBaseListCoinsResponse_CoinAddressesInChainEntry();
|
|
644
742
|
while (reader.pos < end) {
|
|
645
743
|
const tag = reader.uint32();
|
|
646
744
|
switch (tag >>> 3) {
|
|
647
745
|
case 1:
|
|
746
|
+
if (tag !== 10) {
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
648
749
|
message.key = reader.string();
|
|
649
|
-
|
|
750
|
+
continue;
|
|
650
751
|
case 2:
|
|
752
|
+
if (tag !== 18) {
|
|
753
|
+
break;
|
|
754
|
+
}
|
|
651
755
|
message.value = CoinID.decode(reader, reader.uint32());
|
|
652
|
-
|
|
653
|
-
default:
|
|
654
|
-
reader.skipType(tag & 7);
|
|
655
|
-
break;
|
|
756
|
+
continue;
|
|
656
757
|
}
|
|
758
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
reader.skipType(tag & 7);
|
|
657
762
|
}
|
|
658
763
|
return message;
|
|
659
764
|
},
|
|
660
765
|
fromJSON(object) {
|
|
661
766
|
return {
|
|
662
|
-
key: isSet(object.key) ? String(object.key) : "",
|
|
767
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
663
768
|
value: isSet(object.value) ? CoinID.fromJSON(object.value) : undefined,
|
|
664
769
|
};
|
|
665
770
|
},
|
|
666
771
|
toJSON(message) {
|
|
667
772
|
const obj = {};
|
|
668
|
-
message.key !==
|
|
669
|
-
|
|
773
|
+
if (message.key !== "") {
|
|
774
|
+
obj.key = message.key;
|
|
775
|
+
}
|
|
776
|
+
if (message.value !== undefined) {
|
|
777
|
+
obj.value = CoinID.toJSON(message.value);
|
|
778
|
+
}
|
|
670
779
|
return obj;
|
|
671
780
|
},
|
|
672
781
|
create(base) {
|
|
@@ -695,28 +804,35 @@ export const CheckLatestPriceResponse = {
|
|
|
695
804
|
return writer;
|
|
696
805
|
},
|
|
697
806
|
decode(input, length) {
|
|
698
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
807
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
699
808
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
700
809
|
const message = createBaseCheckLatestPriceResponse();
|
|
701
810
|
while (reader.pos < end) {
|
|
702
811
|
const tag = reader.uint32();
|
|
703
812
|
switch (tag >>> 3) {
|
|
704
813
|
case 1:
|
|
814
|
+
if (tag !== 10) {
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
705
817
|
message.prices.push(CheckLatestPriceResponse_CoinPrice.decode(reader, reader.uint32()));
|
|
706
|
-
|
|
818
|
+
continue;
|
|
707
819
|
case 2:
|
|
820
|
+
if (tag !== 18) {
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
708
823
|
message.latestPrice = CheckLatestPriceResponse_CoinPrice.decode(reader, reader.uint32());
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
824
|
+
continue;
|
|
825
|
+
}
|
|
826
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
827
|
+
break;
|
|
713
828
|
}
|
|
829
|
+
reader.skipType(tag & 7);
|
|
714
830
|
}
|
|
715
831
|
return message;
|
|
716
832
|
},
|
|
717
833
|
fromJSON(object) {
|
|
718
834
|
return {
|
|
719
|
-
prices: Array.isArray(object?.prices)
|
|
835
|
+
prices: globalThis.Array.isArray(object?.prices)
|
|
720
836
|
? object.prices.map((e) => CheckLatestPriceResponse_CoinPrice.fromJSON(e))
|
|
721
837
|
: [],
|
|
722
838
|
latestPrice: isSet(object.latestPrice)
|
|
@@ -726,15 +842,12 @@ export const CheckLatestPriceResponse = {
|
|
|
726
842
|
},
|
|
727
843
|
toJSON(message) {
|
|
728
844
|
const obj = {};
|
|
729
|
-
if (message.prices) {
|
|
730
|
-
obj.prices = message.prices.map((e) =>
|
|
845
|
+
if (message.prices?.length) {
|
|
846
|
+
obj.prices = message.prices.map((e) => CheckLatestPriceResponse_CoinPrice.toJSON(e));
|
|
731
847
|
}
|
|
732
|
-
|
|
733
|
-
obj.
|
|
848
|
+
if (message.latestPrice !== undefined) {
|
|
849
|
+
obj.latestPrice = CheckLatestPriceResponse_CoinPrice.toJSON(message.latestPrice);
|
|
734
850
|
}
|
|
735
|
-
message.latestPrice !== undefined && (obj.latestPrice = message.latestPrice
|
|
736
|
-
? CheckLatestPriceResponse_CoinPrice.toJSON(message.latestPrice)
|
|
737
|
-
: undefined);
|
|
738
851
|
return obj;
|
|
739
852
|
},
|
|
740
853
|
create(base) {
|
|
@@ -766,40 +879,56 @@ export const CheckLatestPriceResponse_CoinPrice = {
|
|
|
766
879
|
return writer;
|
|
767
880
|
},
|
|
768
881
|
decode(input, length) {
|
|
769
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
882
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
770
883
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
771
884
|
const message = createBaseCheckLatestPriceResponse_CoinPrice();
|
|
772
885
|
while (reader.pos < end) {
|
|
773
886
|
const tag = reader.uint32();
|
|
774
887
|
switch (tag >>> 3) {
|
|
775
888
|
case 1:
|
|
889
|
+
if (tag !== 10) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
776
892
|
message.coinId = CoinID.decode(reader, reader.uint32());
|
|
777
|
-
|
|
893
|
+
continue;
|
|
778
894
|
case 2:
|
|
895
|
+
if (tag !== 17) {
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
779
898
|
message.price = reader.double();
|
|
780
|
-
|
|
899
|
+
continue;
|
|
781
900
|
case 3:
|
|
901
|
+
if (tag !== 26) {
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
782
904
|
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
905
|
+
continue;
|
|
906
|
+
}
|
|
907
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
908
|
+
break;
|
|
787
909
|
}
|
|
910
|
+
reader.skipType(tag & 7);
|
|
788
911
|
}
|
|
789
912
|
return message;
|
|
790
913
|
},
|
|
791
914
|
fromJSON(object) {
|
|
792
915
|
return {
|
|
793
916
|
coinId: isSet(object.coinId) ? CoinID.fromJSON(object.coinId) : undefined,
|
|
794
|
-
price: isSet(object.price) ? Number(object.price) : 0,
|
|
917
|
+
price: isSet(object.price) ? globalThis.Number(object.price) : 0,
|
|
795
918
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
796
919
|
};
|
|
797
920
|
},
|
|
798
921
|
toJSON(message) {
|
|
799
922
|
const obj = {};
|
|
800
|
-
message.coinId !== undefined
|
|
801
|
-
|
|
802
|
-
|
|
923
|
+
if (message.coinId !== undefined) {
|
|
924
|
+
obj.coinId = CoinID.toJSON(message.coinId);
|
|
925
|
+
}
|
|
926
|
+
if (message.price !== 0) {
|
|
927
|
+
obj.price = message.price;
|
|
928
|
+
}
|
|
929
|
+
if (message.timestamp !== undefined) {
|
|
930
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
931
|
+
}
|
|
803
932
|
return obj;
|
|
804
933
|
},
|
|
805
934
|
create(base) {
|
|
@@ -868,80 +997,136 @@ export const BackfillCoinRequest = {
|
|
|
868
997
|
return writer;
|
|
869
998
|
},
|
|
870
999
|
decode(input, length) {
|
|
871
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1000
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
872
1001
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
873
1002
|
const message = createBaseBackfillCoinRequest();
|
|
874
1003
|
while (reader.pos < end) {
|
|
875
1004
|
const tag = reader.uint32();
|
|
876
1005
|
switch (tag >>> 3) {
|
|
877
1006
|
case 1:
|
|
1007
|
+
if (tag !== 10) {
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
878
1010
|
message.name = reader.string();
|
|
879
|
-
|
|
1011
|
+
continue;
|
|
880
1012
|
case 2:
|
|
1013
|
+
if (tag !== 18) {
|
|
1014
|
+
break;
|
|
1015
|
+
}
|
|
881
1016
|
message.symbol = reader.string();
|
|
882
|
-
|
|
1017
|
+
continue;
|
|
883
1018
|
case 3:
|
|
1019
|
+
if (tag !== 26) {
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
884
1022
|
message.chain = reader.string();
|
|
885
|
-
|
|
1023
|
+
continue;
|
|
886
1024
|
case 4:
|
|
1025
|
+
if (tag !== 34) {
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
887
1028
|
message.address = reader.string();
|
|
888
|
-
|
|
1029
|
+
continue;
|
|
889
1030
|
case 5:
|
|
1031
|
+
if (tag !== 42) {
|
|
1032
|
+
break;
|
|
1033
|
+
}
|
|
890
1034
|
message.coingeckoId = reader.string();
|
|
891
|
-
|
|
1035
|
+
continue;
|
|
892
1036
|
case 6:
|
|
1037
|
+
if (tag !== 48) {
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
893
1040
|
message.decimals = reader.uint32();
|
|
894
|
-
|
|
1041
|
+
continue;
|
|
895
1042
|
case 7:
|
|
1043
|
+
if (tag !== 58) {
|
|
1044
|
+
break;
|
|
1045
|
+
}
|
|
896
1046
|
message.logoUrl = reader.string();
|
|
897
|
-
|
|
1047
|
+
continue;
|
|
898
1048
|
case 8:
|
|
1049
|
+
if (tag !== 66) {
|
|
1050
|
+
break;
|
|
1051
|
+
}
|
|
899
1052
|
message.projectUrl = reader.string();
|
|
900
|
-
|
|
1053
|
+
continue;
|
|
901
1054
|
case 9:
|
|
1055
|
+
if (tag !== 74) {
|
|
1056
|
+
break;
|
|
1057
|
+
}
|
|
902
1058
|
message.accountAddress = reader.string();
|
|
903
|
-
|
|
1059
|
+
continue;
|
|
904
1060
|
case 10:
|
|
1061
|
+
if (tag !== 82) {
|
|
1062
|
+
break;
|
|
1063
|
+
}
|
|
905
1064
|
message.moduleName = reader.string();
|
|
906
|
-
|
|
1065
|
+
continue;
|
|
907
1066
|
case 11:
|
|
1067
|
+
if (tag !== 90) {
|
|
1068
|
+
break;
|
|
1069
|
+
}
|
|
908
1070
|
message.structName = reader.string();
|
|
909
|
-
|
|
910
|
-
default:
|
|
911
|
-
reader.skipType(tag & 7);
|
|
912
|
-
break;
|
|
1071
|
+
continue;
|
|
913
1072
|
}
|
|
1073
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
reader.skipType(tag & 7);
|
|
914
1077
|
}
|
|
915
1078
|
return message;
|
|
916
1079
|
},
|
|
917
1080
|
fromJSON(object) {
|
|
918
1081
|
return {
|
|
919
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
920
|
-
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
921
|
-
chain: isSet(object.chain) ? String(object.chain) : "",
|
|
922
|
-
address: isSet(object.address) ? String(object.address) : "",
|
|
923
|
-
coingeckoId: isSet(object.coingeckoId) ? String(object.coingeckoId) : "",
|
|
924
|
-
decimals: isSet(object.decimals) ? Number(object.decimals) : 0,
|
|
925
|
-
logoUrl: isSet(object.logoUrl) ? String(object.logoUrl) : "",
|
|
926
|
-
projectUrl: isSet(object.projectUrl) ? String(object.projectUrl) : "",
|
|
927
|
-
accountAddress: isSet(object.accountAddress) ? String(object.accountAddress) : "",
|
|
928
|
-
moduleName: isSet(object.moduleName) ? String(object.moduleName) : "",
|
|
929
|
-
structName: isSet(object.structName) ? String(object.structName) : "",
|
|
1082
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1083
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
1084
|
+
chain: isSet(object.chain) ? globalThis.String(object.chain) : "",
|
|
1085
|
+
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
1086
|
+
coingeckoId: isSet(object.coingeckoId) ? globalThis.String(object.coingeckoId) : "",
|
|
1087
|
+
decimals: isSet(object.decimals) ? globalThis.Number(object.decimals) : 0,
|
|
1088
|
+
logoUrl: isSet(object.logoUrl) ? globalThis.String(object.logoUrl) : "",
|
|
1089
|
+
projectUrl: isSet(object.projectUrl) ? globalThis.String(object.projectUrl) : "",
|
|
1090
|
+
accountAddress: isSet(object.accountAddress) ? globalThis.String(object.accountAddress) : "",
|
|
1091
|
+
moduleName: isSet(object.moduleName) ? globalThis.String(object.moduleName) : "",
|
|
1092
|
+
structName: isSet(object.structName) ? globalThis.String(object.structName) : "",
|
|
930
1093
|
};
|
|
931
1094
|
},
|
|
932
1095
|
toJSON(message) {
|
|
933
1096
|
const obj = {};
|
|
934
|
-
message.name !==
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
message.
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
message.
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
message.
|
|
944
|
-
|
|
1097
|
+
if (message.name !== "") {
|
|
1098
|
+
obj.name = message.name;
|
|
1099
|
+
}
|
|
1100
|
+
if (message.symbol !== "") {
|
|
1101
|
+
obj.symbol = message.symbol;
|
|
1102
|
+
}
|
|
1103
|
+
if (message.chain !== "") {
|
|
1104
|
+
obj.chain = message.chain;
|
|
1105
|
+
}
|
|
1106
|
+
if (message.address !== "") {
|
|
1107
|
+
obj.address = message.address;
|
|
1108
|
+
}
|
|
1109
|
+
if (message.coingeckoId !== "") {
|
|
1110
|
+
obj.coingeckoId = message.coingeckoId;
|
|
1111
|
+
}
|
|
1112
|
+
if (message.decimals !== 0) {
|
|
1113
|
+
obj.decimals = Math.round(message.decimals);
|
|
1114
|
+
}
|
|
1115
|
+
if (message.logoUrl !== "") {
|
|
1116
|
+
obj.logoUrl = message.logoUrl;
|
|
1117
|
+
}
|
|
1118
|
+
if (message.projectUrl !== "") {
|
|
1119
|
+
obj.projectUrl = message.projectUrl;
|
|
1120
|
+
}
|
|
1121
|
+
if (message.accountAddress !== "") {
|
|
1122
|
+
obj.accountAddress = message.accountAddress;
|
|
1123
|
+
}
|
|
1124
|
+
if (message.moduleName !== "") {
|
|
1125
|
+
obj.moduleName = message.moduleName;
|
|
1126
|
+
}
|
|
1127
|
+
if (message.structName !== "") {
|
|
1128
|
+
obj.structName = message.structName;
|
|
1129
|
+
}
|
|
945
1130
|
return obj;
|
|
946
1131
|
},
|
|
947
1132
|
create(base) {
|
|
@@ -977,35 +1162,46 @@ export const BackfillCoinResponse = {
|
|
|
977
1162
|
return writer;
|
|
978
1163
|
},
|
|
979
1164
|
decode(input, length) {
|
|
980
|
-
const reader = input instanceof _m0.Reader ? input :
|
|
1165
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
981
1166
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
982
1167
|
const message = createBaseBackfillCoinResponse();
|
|
983
1168
|
while (reader.pos < end) {
|
|
984
1169
|
const tag = reader.uint32();
|
|
985
1170
|
switch (tag >>> 3) {
|
|
986
1171
|
case 1:
|
|
1172
|
+
if (tag !== 10) {
|
|
1173
|
+
break;
|
|
1174
|
+
}
|
|
987
1175
|
message.symbol = reader.string();
|
|
988
|
-
|
|
1176
|
+
continue;
|
|
989
1177
|
case 2:
|
|
1178
|
+
if (tag !== 18) {
|
|
1179
|
+
break;
|
|
1180
|
+
}
|
|
990
1181
|
message.message = reader.string();
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1182
|
+
continue;
|
|
1183
|
+
}
|
|
1184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1185
|
+
break;
|
|
995
1186
|
}
|
|
1187
|
+
reader.skipType(tag & 7);
|
|
996
1188
|
}
|
|
997
1189
|
return message;
|
|
998
1190
|
},
|
|
999
1191
|
fromJSON(object) {
|
|
1000
1192
|
return {
|
|
1001
|
-
symbol: isSet(object.symbol) ? String(object.symbol) : "",
|
|
1002
|
-
message: isSet(object.message) ? String(object.message) : "",
|
|
1193
|
+
symbol: isSet(object.symbol) ? globalThis.String(object.symbol) : "",
|
|
1194
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
1003
1195
|
};
|
|
1004
1196
|
},
|
|
1005
1197
|
toJSON(message) {
|
|
1006
1198
|
const obj = {};
|
|
1007
|
-
message.symbol !==
|
|
1008
|
-
|
|
1199
|
+
if (message.symbol !== "") {
|
|
1200
|
+
obj.symbol = message.symbol;
|
|
1201
|
+
}
|
|
1202
|
+
if (message.message !== "") {
|
|
1203
|
+
obj.message = message.message;
|
|
1204
|
+
}
|
|
1009
1205
|
return obj;
|
|
1010
1206
|
},
|
|
1011
1207
|
create(base) {
|
|
@@ -1028,7 +1224,11 @@ export const PriceServiceDefinition = {
|
|
|
1028
1224
|
requestStream: false,
|
|
1029
1225
|
responseType: GetPriceResponse,
|
|
1030
1226
|
responseStream: false,
|
|
1031
|
-
options: {
|
|
1227
|
+
options: {
|
|
1228
|
+
_unknownFields: {
|
|
1229
|
+
578365826: [new Uint8Array([16, 18, 14, 47, 97, 112, 105, 47, 118, 49, 47, 112, 114, 105, 99, 101, 115])],
|
|
1230
|
+
},
|
|
1231
|
+
},
|
|
1032
1232
|
},
|
|
1033
1233
|
batchGetPrices: {
|
|
1034
1234
|
name: "BatchGetPrices",
|
|
@@ -1036,7 +1236,37 @@ export const PriceServiceDefinition = {
|
|
|
1036
1236
|
requestStream: false,
|
|
1037
1237
|
responseType: BatchGetPricesResponse,
|
|
1038
1238
|
responseStream: false,
|
|
1039
|
-
options: {
|
|
1239
|
+
options: {
|
|
1240
|
+
_unknownFields: {
|
|
1241
|
+
578365826: [
|
|
1242
|
+
new Uint8Array([
|
|
1243
|
+
22,
|
|
1244
|
+
18,
|
|
1245
|
+
20,
|
|
1246
|
+
47,
|
|
1247
|
+
97,
|
|
1248
|
+
112,
|
|
1249
|
+
105,
|
|
1250
|
+
47,
|
|
1251
|
+
118,
|
|
1252
|
+
49,
|
|
1253
|
+
47,
|
|
1254
|
+
112,
|
|
1255
|
+
114,
|
|
1256
|
+
105,
|
|
1257
|
+
99,
|
|
1258
|
+
101,
|
|
1259
|
+
115,
|
|
1260
|
+
47,
|
|
1261
|
+
98,
|
|
1262
|
+
97,
|
|
1263
|
+
116,
|
|
1264
|
+
99,
|
|
1265
|
+
104,
|
|
1266
|
+
]),
|
|
1267
|
+
],
|
|
1268
|
+
},
|
|
1269
|
+
},
|
|
1040
1270
|
},
|
|
1041
1271
|
listCoins: {
|
|
1042
1272
|
name: "ListCoins",
|
|
@@ -1044,7 +1274,37 @@ export const PriceServiceDefinition = {
|
|
|
1044
1274
|
requestStream: false,
|
|
1045
1275
|
responseType: ListCoinsResponse,
|
|
1046
1276
|
responseStream: false,
|
|
1047
|
-
options: {
|
|
1277
|
+
options: {
|
|
1278
|
+
_unknownFields: {
|
|
1279
|
+
578365826: [
|
|
1280
|
+
new Uint8Array([
|
|
1281
|
+
22,
|
|
1282
|
+
18,
|
|
1283
|
+
20,
|
|
1284
|
+
47,
|
|
1285
|
+
97,
|
|
1286
|
+
112,
|
|
1287
|
+
105,
|
|
1288
|
+
47,
|
|
1289
|
+
118,
|
|
1290
|
+
49,
|
|
1291
|
+
47,
|
|
1292
|
+
112,
|
|
1293
|
+
114,
|
|
1294
|
+
105,
|
|
1295
|
+
99,
|
|
1296
|
+
101,
|
|
1297
|
+
115,
|
|
1298
|
+
47,
|
|
1299
|
+
99,
|
|
1300
|
+
111,
|
|
1301
|
+
105,
|
|
1302
|
+
110,
|
|
1303
|
+
115,
|
|
1304
|
+
]),
|
|
1305
|
+
],
|
|
1306
|
+
},
|
|
1307
|
+
},
|
|
1048
1308
|
},
|
|
1049
1309
|
checkLatestPrice: {
|
|
1050
1310
|
name: "CheckLatestPrice",
|
|
@@ -1052,7 +1312,44 @@ export const PriceServiceDefinition = {
|
|
|
1052
1312
|
requestStream: false,
|
|
1053
1313
|
responseType: CheckLatestPriceResponse,
|
|
1054
1314
|
responseStream: false,
|
|
1055
|
-
options: {
|
|
1315
|
+
options: {
|
|
1316
|
+
_unknownFields: {
|
|
1317
|
+
578365826: [
|
|
1318
|
+
new Uint8Array([
|
|
1319
|
+
29,
|
|
1320
|
+
18,
|
|
1321
|
+
27,
|
|
1322
|
+
47,
|
|
1323
|
+
97,
|
|
1324
|
+
112,
|
|
1325
|
+
105,
|
|
1326
|
+
47,
|
|
1327
|
+
118,
|
|
1328
|
+
49,
|
|
1329
|
+
47,
|
|
1330
|
+
112,
|
|
1331
|
+
114,
|
|
1332
|
+
105,
|
|
1333
|
+
99,
|
|
1334
|
+
101,
|
|
1335
|
+
115,
|
|
1336
|
+
47,
|
|
1337
|
+
99,
|
|
1338
|
+
104,
|
|
1339
|
+
101,
|
|
1340
|
+
99,
|
|
1341
|
+
107,
|
|
1342
|
+
95,
|
|
1343
|
+
108,
|
|
1344
|
+
97,
|
|
1345
|
+
116,
|
|
1346
|
+
101,
|
|
1347
|
+
115,
|
|
1348
|
+
116,
|
|
1349
|
+
]),
|
|
1350
|
+
],
|
|
1351
|
+
},
|
|
1352
|
+
},
|
|
1056
1353
|
},
|
|
1057
1354
|
backfillCoin: {
|
|
1058
1355
|
name: "BackfillCoin",
|
|
@@ -1060,7 +1357,43 @@ export const PriceServiceDefinition = {
|
|
|
1060
1357
|
requestStream: false,
|
|
1061
1358
|
responseType: BackfillCoinResponse,
|
|
1062
1359
|
responseStream: false,
|
|
1063
|
-
options: {
|
|
1360
|
+
options: {
|
|
1361
|
+
_unknownFields: {
|
|
1362
|
+
578365826: [
|
|
1363
|
+
new Uint8Array([
|
|
1364
|
+
28,
|
|
1365
|
+
34,
|
|
1366
|
+
23,
|
|
1367
|
+
47,
|
|
1368
|
+
97,
|
|
1369
|
+
112,
|
|
1370
|
+
105,
|
|
1371
|
+
47,
|
|
1372
|
+
118,
|
|
1373
|
+
49,
|
|
1374
|
+
47,
|
|
1375
|
+
112,
|
|
1376
|
+
114,
|
|
1377
|
+
105,
|
|
1378
|
+
99,
|
|
1379
|
+
101,
|
|
1380
|
+
115,
|
|
1381
|
+
47,
|
|
1382
|
+
98,
|
|
1383
|
+
97,
|
|
1384
|
+
99,
|
|
1385
|
+
107,
|
|
1386
|
+
102,
|
|
1387
|
+
105,
|
|
1388
|
+
108,
|
|
1389
|
+
108,
|
|
1390
|
+
58,
|
|
1391
|
+
1,
|
|
1392
|
+
42,
|
|
1393
|
+
]),
|
|
1394
|
+
],
|
|
1395
|
+
},
|
|
1396
|
+
},
|
|
1064
1397
|
},
|
|
1065
1398
|
},
|
|
1066
1399
|
};
|
|
@@ -1070,16 +1403,16 @@ function toTimestamp(date) {
|
|
|
1070
1403
|
return { seconds, nanos };
|
|
1071
1404
|
}
|
|
1072
1405
|
function fromTimestamp(t) {
|
|
1073
|
-
let millis = Number(t.seconds.toString()) * 1000;
|
|
1074
|
-
millis += t.nanos / 1000000;
|
|
1075
|
-
return new Date(millis);
|
|
1406
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1000;
|
|
1407
|
+
millis += (t.nanos || 0) / 1000000;
|
|
1408
|
+
return new globalThis.Date(millis);
|
|
1076
1409
|
}
|
|
1077
1410
|
function fromJsonTimestamp(o) {
|
|
1078
|
-
if (o instanceof Date) {
|
|
1411
|
+
if (o instanceof globalThis.Date) {
|
|
1079
1412
|
return o;
|
|
1080
1413
|
}
|
|
1081
1414
|
else if (typeof o === "string") {
|
|
1082
|
-
return new Date(o);
|
|
1415
|
+
return new globalThis.Date(o);
|
|
1083
1416
|
}
|
|
1084
1417
|
else {
|
|
1085
1418
|
return fromTimestamp(Timestamp.fromJSON(o));
|