@zoguxprotocol/proto 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/codegen/zogux/bridge/bridge_event.ts +75 -1
- package/src/codegen/zogux/bridge/events.ts +222 -0
- package/src/codegen/zogux/bridge/genesis.ts +16 -2
- package/src/codegen/zogux/bridge/params.ts +96 -1
- package/src/codegen/zogux/bridge/query.lcd.ts +29 -2
- package/src/codegen/zogux/bridge/query.rpc.Query.ts +32 -2
- package/src/codegen/zogux/bridge/query.ts +123 -0
- package/src/codegen/zogux/bridge/token.ts +96 -0
- package/src/codegen/zogux/bridge/tss.ts +316 -3
- package/src/codegen/zogux/bridge/tx.rpc.msg.ts +21 -1
- package/src/codegen/zogux/bridge/withdrawal.ts +98 -1
- package/src/codegen/zogux/clob/order.ts +21 -1
- package/src/codegen/zogux/feetiers/params.ts +182 -0
- package/src/codegen/zogux/feetiers/query.lcd.ts +17 -1
- package/src/codegen/zogux/feetiers/query.rpc.Query.ts +15 -1
- package/src/codegen/zogux/feetiers/query.ts +159 -2
- package/src/codegen/zogux/indexer/events/events.ts +581 -1
- package/src/codegen/zogux/stats/stats.ts +103 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Rpc } from "../../helpers";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
3
|
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
|
|
4
|
-
import { QueryEventParamsRequest, QueryEventParamsResponse, QueryProposeParamsRequest, QueryProposeParamsResponse, QuerySafetyParamsRequest, QuerySafetyParamsResponse, QueryAcknowledgedEventInfoRequest, QueryAcknowledgedEventInfoResponse, QueryRecognizedEventInfoRequest, QueryRecognizedEventInfoResponse, QueryDelayedCompleteBridgeMessagesRequest, QueryDelayedCompleteBridgeMessagesResponse, QueryTSSParamsRequest, QueryTSSParamsResponse, QueryWithdrawalRequestRequest, QueryWithdrawalRequestResponse, QueryWithdrawalsByAddressRequest, QueryWithdrawalsByAddressResponse, QueryPendingWithdrawalsRequest, QueryPendingWithdrawalsResponse, QueryWithdrawalByChainAndNonceRequest, QueryWithdrawalByChainAndNonceResponse, QueryVerifyWithdrawalForTSSRequest, QueryVerifyWithdrawalForTSSResponse } from "./query";
|
|
5
|
-
import { QueryTokenInfoRequest, QueryTokenInfoResponse, QueryTokenPairRequest, QueryTokenPairResponse, QueryAllTokensRequest, QueryAllTokensResponse, QueryTokenPairsBySourceRequest, QueryTokenPairsBySourceResponse } from "./token";
|
|
4
|
+
import { QueryEventParamsRequest, QueryEventParamsResponse, QueryProposeParamsRequest, QueryProposeParamsResponse, QuerySafetyParamsRequest, QuerySafetyParamsResponse, QueryAcknowledgedEventInfoRequest, QueryAcknowledgedEventInfoResponse, QueryRecognizedEventInfoRequest, QueryRecognizedEventInfoResponse, QueryDelayedCompleteBridgeMessagesRequest, QueryDelayedCompleteBridgeMessagesResponse, QueryTSSParamsRequest, QueryTSSParamsResponse, QueryWithdrawalRequestRequest, QueryWithdrawalRequestResponse, QueryWithdrawalsByAddressRequest, QueryWithdrawalsByAddressResponse, QueryPendingWithdrawalsRequest, QueryPendingWithdrawalsResponse, QuerySignedWithdrawalsRequest, QuerySignedWithdrawalsResponse, QueryWithdrawalByChainAndNonceRequest, QueryWithdrawalByChainAndNonceResponse, QueryVerifyWithdrawalForTSSRequest, QueryVerifyWithdrawalForTSSResponse } from "./query";
|
|
5
|
+
import { QueryTokenInfoRequest, QueryTokenInfoResponse, QueryTokenPairRequest, QueryTokenPairResponse, QueryAllTokensRequest, QueryAllTokensResponse, QueryTokenPairsBySourceRequest, QueryTokenPairsBySourceResponse, QueryAllTokenPairsRequest, QueryAllTokenPairsResponse } from "./token";
|
|
6
6
|
/** Query defines the gRPC querier service. */
|
|
7
7
|
|
|
8
8
|
export interface Query {
|
|
@@ -49,6 +49,9 @@ export interface Query {
|
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
pendingWithdrawals(request: QueryPendingWithdrawalsRequest): Promise<QueryPendingWithdrawalsResponse>;
|
|
52
|
+
/** Queries signed withdrawals (those with enough TSS signatures). */
|
|
53
|
+
|
|
54
|
+
signedWithdrawals(request?: QuerySignedWithdrawalsRequest): Promise<QuerySignedWithdrawalsResponse>;
|
|
52
55
|
/**
|
|
53
56
|
* Queries a specific withdrawal by chain ID and nonce.
|
|
54
57
|
* Used by TSS service to check deposit info.
|
|
@@ -67,6 +70,9 @@ export interface Query {
|
|
|
67
70
|
/** Queries all token pairs for a given source token. */
|
|
68
71
|
|
|
69
72
|
tokenPairsBySource(request: QueryTokenPairsBySourceRequest): Promise<QueryTokenPairsBySourceResponse>;
|
|
73
|
+
/** Queries all token pairs. */
|
|
74
|
+
|
|
75
|
+
allTokenPairs(request?: QueryAllTokenPairsRequest): Promise<QueryAllTokenPairsResponse>;
|
|
70
76
|
/** Verifies a withdrawal for TSS signing. */
|
|
71
77
|
|
|
72
78
|
verifyWithdrawalForTSS(request: QueryVerifyWithdrawalForTSSRequest): Promise<QueryVerifyWithdrawalForTSSResponse>;
|
|
@@ -86,11 +92,13 @@ export class QueryClientImpl implements Query {
|
|
|
86
92
|
this.withdrawalRequest = this.withdrawalRequest.bind(this);
|
|
87
93
|
this.withdrawalsByAddress = this.withdrawalsByAddress.bind(this);
|
|
88
94
|
this.pendingWithdrawals = this.pendingWithdrawals.bind(this);
|
|
95
|
+
this.signedWithdrawals = this.signedWithdrawals.bind(this);
|
|
89
96
|
this.withdrawalByChainAndNonce = this.withdrawalByChainAndNonce.bind(this);
|
|
90
97
|
this.tokenInfo = this.tokenInfo.bind(this);
|
|
91
98
|
this.tokenPair = this.tokenPair.bind(this);
|
|
92
99
|
this.allTokens = this.allTokens.bind(this);
|
|
93
100
|
this.tokenPairsBySource = this.tokenPairsBySource.bind(this);
|
|
101
|
+
this.allTokenPairs = this.allTokenPairs.bind(this);
|
|
94
102
|
this.verifyWithdrawalForTSS = this.verifyWithdrawalForTSS.bind(this);
|
|
95
103
|
}
|
|
96
104
|
|
|
@@ -154,6 +162,14 @@ export class QueryClientImpl implements Query {
|
|
|
154
162
|
return promise.then(data => QueryPendingWithdrawalsResponse.decode(new _m0.Reader(data)));
|
|
155
163
|
}
|
|
156
164
|
|
|
165
|
+
signedWithdrawals(request: QuerySignedWithdrawalsRequest = {
|
|
166
|
+
pagination: undefined
|
|
167
|
+
}): Promise<QuerySignedWithdrawalsResponse> {
|
|
168
|
+
const data = QuerySignedWithdrawalsRequest.encode(request).finish();
|
|
169
|
+
const promise = this.rpc.request("zogux.bridge.Query", "SignedWithdrawals", data);
|
|
170
|
+
return promise.then(data => QuerySignedWithdrawalsResponse.decode(new _m0.Reader(data)));
|
|
171
|
+
}
|
|
172
|
+
|
|
157
173
|
withdrawalByChainAndNonce(request: QueryWithdrawalByChainAndNonceRequest): Promise<QueryWithdrawalByChainAndNonceResponse> {
|
|
158
174
|
const data = QueryWithdrawalByChainAndNonceRequest.encode(request).finish();
|
|
159
175
|
const promise = this.rpc.request("zogux.bridge.Query", "WithdrawalByChainAndNonce", data);
|
|
@@ -184,6 +200,12 @@ export class QueryClientImpl implements Query {
|
|
|
184
200
|
return promise.then(data => QueryTokenPairsBySourceResponse.decode(new _m0.Reader(data)));
|
|
185
201
|
}
|
|
186
202
|
|
|
203
|
+
allTokenPairs(request: QueryAllTokenPairsRequest = {}): Promise<QueryAllTokenPairsResponse> {
|
|
204
|
+
const data = QueryAllTokenPairsRequest.encode(request).finish();
|
|
205
|
+
const promise = this.rpc.request("zogux.bridge.Query", "AllTokenPairs", data);
|
|
206
|
+
return promise.then(data => QueryAllTokenPairsResponse.decode(new _m0.Reader(data)));
|
|
207
|
+
}
|
|
208
|
+
|
|
187
209
|
verifyWithdrawalForTSS(request: QueryVerifyWithdrawalForTSSRequest): Promise<QueryVerifyWithdrawalForTSSResponse> {
|
|
188
210
|
const data = QueryVerifyWithdrawalForTSSRequest.encode(request).finish();
|
|
189
211
|
const promise = this.rpc.request("zogux.bridge.Query", "VerifyWithdrawalForTSS", data);
|
|
@@ -235,6 +257,10 @@ export const createRpcQueryExtension = (base: QueryClient) => {
|
|
|
235
257
|
return queryService.pendingWithdrawals(request);
|
|
236
258
|
},
|
|
237
259
|
|
|
260
|
+
signedWithdrawals(request?: QuerySignedWithdrawalsRequest): Promise<QuerySignedWithdrawalsResponse> {
|
|
261
|
+
return queryService.signedWithdrawals(request);
|
|
262
|
+
},
|
|
263
|
+
|
|
238
264
|
withdrawalByChainAndNonce(request: QueryWithdrawalByChainAndNonceRequest): Promise<QueryWithdrawalByChainAndNonceResponse> {
|
|
239
265
|
return queryService.withdrawalByChainAndNonce(request);
|
|
240
266
|
},
|
|
@@ -255,6 +281,10 @@ export const createRpcQueryExtension = (base: QueryClient) => {
|
|
|
255
281
|
return queryService.tokenPairsBySource(request);
|
|
256
282
|
},
|
|
257
283
|
|
|
284
|
+
allTokenPairs(request?: QueryAllTokenPairsRequest): Promise<QueryAllTokenPairsResponse> {
|
|
285
|
+
return queryService.allTokenPairs(request);
|
|
286
|
+
},
|
|
287
|
+
|
|
258
288
|
verifyWithdrawalForTSS(request: QueryVerifyWithdrawalForTSSRequest): Promise<QueryVerifyWithdrawalForTSSResponse> {
|
|
259
289
|
return queryService.verifyWithdrawalForTSS(request);
|
|
260
290
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination";
|
|
1
2
|
import { EventParams, EventParamsSDKType, ProposeParams, ProposeParamsSDKType, SafetyParams, SafetyParamsSDKType, TSSParams, TSSParamsSDKType } from "./params";
|
|
2
3
|
import { BridgeEventInfo, BridgeEventInfoSDKType } from "./bridge_event_info";
|
|
3
4
|
import { MsgCompleteBridge, MsgCompleteBridgeSDKType } from "./tx";
|
|
@@ -331,6 +332,28 @@ export interface QueryPendingWithdrawalsResponse {
|
|
|
331
332
|
export interface QueryPendingWithdrawalsResponseSDKType {
|
|
332
333
|
withdrawals: WithdrawalRequestSDKType[];
|
|
333
334
|
}
|
|
335
|
+
/** QuerySignedWithdrawalsRequest is a request type for the SignedWithdrawals RPC method. */
|
|
336
|
+
|
|
337
|
+
export interface QuerySignedWithdrawalsRequest {
|
|
338
|
+
pagination?: PageRequest;
|
|
339
|
+
}
|
|
340
|
+
/** QuerySignedWithdrawalsRequest is a request type for the SignedWithdrawals RPC method. */
|
|
341
|
+
|
|
342
|
+
export interface QuerySignedWithdrawalsRequestSDKType {
|
|
343
|
+
pagination?: PageRequestSDKType;
|
|
344
|
+
}
|
|
345
|
+
/** QuerySignedWithdrawalsResponse is a response type for the SignedWithdrawals RPC method. */
|
|
346
|
+
|
|
347
|
+
export interface QuerySignedWithdrawalsResponse {
|
|
348
|
+
withdrawals: WithdrawalRequest[];
|
|
349
|
+
pagination?: PageResponse;
|
|
350
|
+
}
|
|
351
|
+
/** QuerySignedWithdrawalsResponse is a response type for the SignedWithdrawals RPC method. */
|
|
352
|
+
|
|
353
|
+
export interface QuerySignedWithdrawalsResponseSDKType {
|
|
354
|
+
withdrawals: WithdrawalRequestSDKType[];
|
|
355
|
+
pagination?: PageResponseSDKType;
|
|
356
|
+
}
|
|
334
357
|
/**
|
|
335
358
|
* QueryWithdrawalByChainAndNonceRequest is a request type for the
|
|
336
359
|
* WithdrawalByChainAndNonce RPC method.
|
|
@@ -1377,6 +1400,106 @@ export const QueryPendingWithdrawalsResponse = {
|
|
|
1377
1400
|
|
|
1378
1401
|
};
|
|
1379
1402
|
|
|
1403
|
+
function createBaseQuerySignedWithdrawalsRequest(): QuerySignedWithdrawalsRequest {
|
|
1404
|
+
return {
|
|
1405
|
+
pagination: undefined
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export const QuerySignedWithdrawalsRequest = {
|
|
1410
|
+
encode(message: QuerySignedWithdrawalsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1411
|
+
if (message.pagination !== undefined) {
|
|
1412
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
return writer;
|
|
1416
|
+
},
|
|
1417
|
+
|
|
1418
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySignedWithdrawalsRequest {
|
|
1419
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1420
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1421
|
+
const message = createBaseQuerySignedWithdrawalsRequest();
|
|
1422
|
+
|
|
1423
|
+
while (reader.pos < end) {
|
|
1424
|
+
const tag = reader.uint32();
|
|
1425
|
+
|
|
1426
|
+
switch (tag >>> 3) {
|
|
1427
|
+
case 1:
|
|
1428
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1429
|
+
break;
|
|
1430
|
+
|
|
1431
|
+
default:
|
|
1432
|
+
reader.skipType(tag & 7);
|
|
1433
|
+
break;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
return message;
|
|
1438
|
+
},
|
|
1439
|
+
|
|
1440
|
+
fromPartial(object: DeepPartial<QuerySignedWithdrawalsRequest>): QuerySignedWithdrawalsRequest {
|
|
1441
|
+
const message = createBaseQuerySignedWithdrawalsRequest();
|
|
1442
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
1443
|
+
return message;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
function createBaseQuerySignedWithdrawalsResponse(): QuerySignedWithdrawalsResponse {
|
|
1449
|
+
return {
|
|
1450
|
+
withdrawals: [],
|
|
1451
|
+
pagination: undefined
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
export const QuerySignedWithdrawalsResponse = {
|
|
1456
|
+
encode(message: QuerySignedWithdrawalsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1457
|
+
for (const v of message.withdrawals) {
|
|
1458
|
+
WithdrawalRequest.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
if (message.pagination !== undefined) {
|
|
1462
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
return writer;
|
|
1466
|
+
},
|
|
1467
|
+
|
|
1468
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySignedWithdrawalsResponse {
|
|
1469
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1470
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1471
|
+
const message = createBaseQuerySignedWithdrawalsResponse();
|
|
1472
|
+
|
|
1473
|
+
while (reader.pos < end) {
|
|
1474
|
+
const tag = reader.uint32();
|
|
1475
|
+
|
|
1476
|
+
switch (tag >>> 3) {
|
|
1477
|
+
case 1:
|
|
1478
|
+
message.withdrawals.push(WithdrawalRequest.decode(reader, reader.uint32()));
|
|
1479
|
+
break;
|
|
1480
|
+
|
|
1481
|
+
case 2:
|
|
1482
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1483
|
+
break;
|
|
1484
|
+
|
|
1485
|
+
default:
|
|
1486
|
+
reader.skipType(tag & 7);
|
|
1487
|
+
break;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
return message;
|
|
1492
|
+
},
|
|
1493
|
+
|
|
1494
|
+
fromPartial(object: DeepPartial<QuerySignedWithdrawalsResponse>): QuerySignedWithdrawalsResponse {
|
|
1495
|
+
const message = createBaseQuerySignedWithdrawalsResponse();
|
|
1496
|
+
message.withdrawals = object.withdrawals?.map(e => WithdrawalRequest.fromPartial(e)) || [];
|
|
1497
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
1498
|
+
return message;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1380
1503
|
function createBaseQueryWithdrawalByChainAndNonceRequest(): QueryWithdrawalByChainAndNonceRequest {
|
|
1381
1504
|
return {
|
|
1382
1505
|
chainId: Long.ZERO,
|
|
@@ -230,6 +230,23 @@ export interface QueryTokenPairsBySourceResponse {
|
|
|
230
230
|
export interface QueryTokenPairsBySourceResponseSDKType {
|
|
231
231
|
token_pairs: TokenPairSDKType[];
|
|
232
232
|
}
|
|
233
|
+
/** QueryAllTokenPairsRequest is the request for querying all token pairs. */
|
|
234
|
+
|
|
235
|
+
export interface QueryAllTokenPairsRequest {}
|
|
236
|
+
/** QueryAllTokenPairsRequest is the request for querying all token pairs. */
|
|
237
|
+
|
|
238
|
+
export interface QueryAllTokenPairsRequestSDKType {}
|
|
239
|
+
/** QueryAllTokenPairsResponse is the response for querying all token pairs. */
|
|
240
|
+
|
|
241
|
+
export interface QueryAllTokenPairsResponse {
|
|
242
|
+
/** List of all token pairs. */
|
|
243
|
+
tokenPairs: TokenPair[];
|
|
244
|
+
}
|
|
245
|
+
/** QueryAllTokenPairsResponse is the response for querying all token pairs. */
|
|
246
|
+
|
|
247
|
+
export interface QueryAllTokenPairsResponseSDKType {
|
|
248
|
+
token_pairs: TokenPairSDKType[];
|
|
249
|
+
}
|
|
233
250
|
|
|
234
251
|
function createBaseTokenInfo(): TokenInfo {
|
|
235
252
|
return {
|
|
@@ -1045,4 +1062,83 @@ export const QueryTokenPairsBySourceResponse = {
|
|
|
1045
1062
|
return message;
|
|
1046
1063
|
}
|
|
1047
1064
|
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
function createBaseQueryAllTokenPairsRequest(): QueryAllTokenPairsRequest {
|
|
1068
|
+
return {};
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
export const QueryAllTokenPairsRequest = {
|
|
1072
|
+
encode(_: QueryAllTokenPairsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1073
|
+
return writer;
|
|
1074
|
+
},
|
|
1075
|
+
|
|
1076
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllTokenPairsRequest {
|
|
1077
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1078
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1079
|
+
const message = createBaseQueryAllTokenPairsRequest();
|
|
1080
|
+
|
|
1081
|
+
while (reader.pos < end) {
|
|
1082
|
+
const tag = reader.uint32();
|
|
1083
|
+
|
|
1084
|
+
switch (tag >>> 3) {
|
|
1085
|
+
default:
|
|
1086
|
+
reader.skipType(tag & 7);
|
|
1087
|
+
break;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
return message;
|
|
1092
|
+
},
|
|
1093
|
+
|
|
1094
|
+
fromPartial(_: DeepPartial<QueryAllTokenPairsRequest>): QueryAllTokenPairsRequest {
|
|
1095
|
+
const message = createBaseQueryAllTokenPairsRequest();
|
|
1096
|
+
return message;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
function createBaseQueryAllTokenPairsResponse(): QueryAllTokenPairsResponse {
|
|
1102
|
+
return {
|
|
1103
|
+
tokenPairs: []
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export const QueryAllTokenPairsResponse = {
|
|
1108
|
+
encode(message: QueryAllTokenPairsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1109
|
+
for (const v of message.tokenPairs) {
|
|
1110
|
+
TokenPair.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return writer;
|
|
1114
|
+
},
|
|
1115
|
+
|
|
1116
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllTokenPairsResponse {
|
|
1117
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1118
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1119
|
+
const message = createBaseQueryAllTokenPairsResponse();
|
|
1120
|
+
|
|
1121
|
+
while (reader.pos < end) {
|
|
1122
|
+
const tag = reader.uint32();
|
|
1123
|
+
|
|
1124
|
+
switch (tag >>> 3) {
|
|
1125
|
+
case 1:
|
|
1126
|
+
message.tokenPairs.push(TokenPair.decode(reader, reader.uint32()));
|
|
1127
|
+
break;
|
|
1128
|
+
|
|
1129
|
+
default:
|
|
1130
|
+
reader.skipType(tag & 7);
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
return message;
|
|
1136
|
+
},
|
|
1137
|
+
|
|
1138
|
+
fromPartial(object: DeepPartial<QueryAllTokenPairsResponse>): QueryAllTokenPairsResponse {
|
|
1139
|
+
const message = createBaseQueryAllTokenPairsResponse();
|
|
1140
|
+
message.tokenPairs = object.tokenPairs?.map(e => TokenPair.fromPartial(e)) || [];
|
|
1141
|
+
return message;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1048
1144
|
};
|