@burnt-labs/xion-types 16.0.0
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/README.md +111 -0
- package/package.json +26 -0
- package/types/.gitkeep +0 -0
- package/types/generated/amino/amino.ts +9 -0
- package/types/generated/cosmos/app/v1alpha1/config.ts +336 -0
- package/types/generated/cosmos/app/v1alpha1/query.ts +265 -0
- package/types/generated/cosmos/auth/v1beta1/auth.ts +520 -0
- package/types/generated/cosmos/auth/v1beta1/query.ts +1852 -0
- package/types/generated/cosmos/authz/v1beta1/authz.ts +404 -0
- package/types/generated/cosmos/authz/v1beta1/query.ts +774 -0
- package/types/generated/cosmos/autocli/v1/options.ts +1016 -0
- package/types/generated/cosmos/autocli/v1/query.ts +379 -0
- package/types/generated/cosmos/bank/v1beta1/bank.ts +752 -0
- package/types/generated/cosmos/bank/v1beta1/query.ts +2789 -0
- package/types/generated/cosmos/base/abci/v1beta1/abci.ts +1447 -0
- package/types/generated/cosmos/base/node/v1beta1/query.ts +587 -0
- package/types/generated/cosmos/base/query/v1beta1/pagination.ts +317 -0
- package/types/generated/cosmos/base/tendermint/v1beta1/query.ts +2228 -0
- package/types/generated/cosmos/base/tendermint/v1beta1/types.ts +522 -0
- package/types/generated/cosmos/base/v1beta1/coin.ts +326 -0
- package/types/generated/cosmos/circuit/v1/query.ts +606 -0
- package/types/generated/cosmos/circuit/v1/types.ts +353 -0
- package/types/generated/cosmos/consensus/v1/query.ts +271 -0
- package/types/generated/cosmos/crypto/multisig/v1beta1/multisig.ts +212 -0
- package/types/generated/cosmos/distribution/v1beta1/distribution.ts +1143 -0
- package/types/generated/cosmos/distribution/v1beta1/query.ts +2005 -0
- package/types/generated/cosmos/evidence/v1beta1/query.ts +526 -0
- package/types/generated/cosmos/feegrant/v1beta1/feegrant.ts +502 -0
- package/types/generated/cosmos/feegrant/v1beta1/query.ts +725 -0
- package/types/generated/cosmos/gov/v1/gov.ts +1656 -0
- package/types/generated/cosmos/gov/v1/query.ts +1847 -0
- package/types/generated/cosmos/gov/v1beta1/gov.ts +1239 -0
- package/types/generated/cosmos/gov/v1beta1/query.ts +1658 -0
- package/types/generated/cosmos/group/v1/query.ts +2840 -0
- package/types/generated/cosmos/group/v1/types.ts +1803 -0
- package/types/generated/cosmos/ics23/v1/proofs.ts +1685 -0
- package/types/generated/cosmos/mint/v1beta1/mint.ts +273 -0
- package/types/generated/cosmos/mint/v1beta1/query.ts +589 -0
- package/types/generated/cosmos/msg/v1/msg.ts +9 -0
- package/types/generated/cosmos/nft/v1beta1/nft.ts +333 -0
- package/types/generated/cosmos/nft/v1beta1/query.ts +1362 -0
- package/types/generated/cosmos/orm/query/v1alpha1/query.ts +1016 -0
- package/types/generated/cosmos/params/v1beta1/params.ts +227 -0
- package/types/generated/cosmos/params/v1beta1/query.ts +545 -0
- package/types/generated/cosmos/query/v1/query.ts +9 -0
- package/types/generated/cosmos/slashing/v1beta1/query.ts +626 -0
- package/types/generated/cosmos/slashing/v1beta1/slashing.ts +409 -0
- package/types/generated/cosmos/staking/v1beta1/query.ts +2912 -0
- package/types/generated/cosmos/staking/v1beta1/staking.ts +2515 -0
- package/types/generated/cosmos/tx/signing/v1beta1/signing.ts +608 -0
- package/types/generated/cosmos/tx/v1beta1/service.ts +2111 -0
- package/types/generated/cosmos/tx/v1beta1/tx.ts +1613 -0
- package/types/generated/cosmos/upgrade/v1beta1/query.ts +1007 -0
- package/types/generated/cosmos/upgrade/v1beta1/upgrade.ts +507 -0
- package/types/generated/cosmos_proto/cosmos.ts +299 -0
- package/types/generated/cosmwasm/wasm/v1/query.ts +2984 -0
- package/types/generated/cosmwasm/wasm/v1/types.ts +962 -0
- package/types/generated/gogoproto/gogo.ts +9 -0
- package/types/generated/google/api/annotations.ts +9 -0
- package/types/generated/google/api/http.ts +757 -0
- package/types/generated/google/protobuf/any.ts +253 -0
- package/types/generated/google/protobuf/descriptor.ts +4958 -0
- package/types/generated/google/protobuf/duration.ts +186 -0
- package/types/generated/google/protobuf/timestamp.ts +215 -0
- package/types/generated/ibc/applications/fee/v1/fee.ts +391 -0
- package/types/generated/ibc/applications/fee/v1/genesis.ts +553 -0
- package/types/generated/ibc/applications/fee/v1/query.ts +2056 -0
- package/types/generated/ibc/applications/interchain_accounts/controller/v1/controller.ts +100 -0
- package/types/generated/ibc/applications/interchain_accounts/controller/v1/query.ts +447 -0
- package/types/generated/ibc/applications/interchain_accounts/host/v1/host.ts +235 -0
- package/types/generated/ibc/applications/interchain_accounts/host/v1/query.ts +265 -0
- package/types/generated/ibc/applications/transfer/v1/query.ts +1135 -0
- package/types/generated/ibc/applications/transfer/v1/transfer.ts +213 -0
- package/types/generated/ibc/core/channel/v1/channel.ts +1329 -0
- package/types/generated/ibc/core/channel/v1/query.ts +4214 -0
- package/types/generated/ibc/core/channel/v1/upgrade.ts +330 -0
- package/types/generated/ibc/core/client/v1/client.ts +726 -0
- package/types/generated/ibc/core/client/v1/query.ts +2208 -0
- package/types/generated/ibc/core/commitment/v1/commitment.ts +329 -0
- package/types/generated/ibc/core/connection/v1/connection.ts +813 -0
- package/types/generated/ibc/core/connection/v1/query.ts +1442 -0
- package/types/generated/ibc/lightclients/wasm/v1/query.ts +484 -0
- package/types/generated/tendermint/abci/types.ts +6429 -0
- package/types/generated/tendermint/crypto/keys.ts +137 -0
- package/types/generated/tendermint/crypto/proof.ts +506 -0
- package/types/generated/tendermint/p2p/types.ts +514 -0
- package/types/generated/tendermint/types/block.ts +151 -0
- package/types/generated/tendermint/types/evidence.ts +493 -0
- package/types/generated/tendermint/types/params.ts +687 -0
- package/types/generated/tendermint/types/types.ts +2069 -0
- package/types/generated/tendermint/types/validator.ts +409 -0
- package/types/generated/tendermint/version/types.ts +202 -0
- package/types/generated/xion/globalfee/v1/genesis.ts +219 -0
- package/types/generated/xion/globalfee/v1/query.ts +269 -0
- package/types/generated/xion/jwk/v1/audience.ts +188 -0
- package/types/generated/xion/jwk/v1/params.ts +118 -0
- package/types/generated/xion/jwk/v1/query.ts +1061 -0
- package/types/generated/xion/mint/v1/mint.ts +273 -0
- package/types/generated/xion/mint/v1/query.ts +589 -0
- package/types/generated/xion/v1/query.ts +878 -0
|
@@ -0,0 +1,2912 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: cosmos/staking/v1beta1/query.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
9
|
+
import { BrowserHeaders } from "browser-headers";
|
|
10
|
+
import Long from "long";
|
|
11
|
+
import _m0 from "protobufjs/minimal";
|
|
12
|
+
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
13
|
+
import {
|
|
14
|
+
DelegationResponse,
|
|
15
|
+
HistoricalInfo,
|
|
16
|
+
Params,
|
|
17
|
+
Pool,
|
|
18
|
+
RedelegationResponse,
|
|
19
|
+
UnbondingDelegation,
|
|
20
|
+
Validator,
|
|
21
|
+
} from "./staking";
|
|
22
|
+
|
|
23
|
+
export const protobufPackage = "cosmos.staking.v1beta1";
|
|
24
|
+
|
|
25
|
+
/** QueryValidatorsRequest is request type for Query/Validators RPC method. */
|
|
26
|
+
export interface QueryValidatorsRequest {
|
|
27
|
+
/** status enables to query for validators matching a given status. */
|
|
28
|
+
status: string;
|
|
29
|
+
/** pagination defines an optional pagination for the request. */
|
|
30
|
+
pagination?: PageRequest | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** QueryValidatorsResponse is response type for the Query/Validators RPC method */
|
|
34
|
+
export interface QueryValidatorsResponse {
|
|
35
|
+
/** validators contains all the queried validators. */
|
|
36
|
+
validators: Validator[];
|
|
37
|
+
/** pagination defines the pagination in the response. */
|
|
38
|
+
pagination?: PageResponse | undefined;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** QueryValidatorRequest is response type for the Query/Validator RPC method */
|
|
42
|
+
export interface QueryValidatorRequest {
|
|
43
|
+
/** validator_addr defines the validator address to query for. */
|
|
44
|
+
validatorAddr: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** QueryValidatorResponse is response type for the Query/Validator RPC method */
|
|
48
|
+
export interface QueryValidatorResponse {
|
|
49
|
+
/** validator defines the validator info. */
|
|
50
|
+
validator?: Validator | undefined;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* QueryValidatorDelegationsRequest is request type for the
|
|
55
|
+
* Query/ValidatorDelegations RPC method
|
|
56
|
+
*/
|
|
57
|
+
export interface QueryValidatorDelegationsRequest {
|
|
58
|
+
/** validator_addr defines the validator address to query for. */
|
|
59
|
+
validatorAddr: string;
|
|
60
|
+
/** pagination defines an optional pagination for the request. */
|
|
61
|
+
pagination?: PageRequest | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* QueryValidatorDelegationsResponse is response type for the
|
|
66
|
+
* Query/ValidatorDelegations RPC method
|
|
67
|
+
*/
|
|
68
|
+
export interface QueryValidatorDelegationsResponse {
|
|
69
|
+
delegationResponses: DelegationResponse[];
|
|
70
|
+
/** pagination defines the pagination in the response. */
|
|
71
|
+
pagination?: PageResponse | undefined;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* QueryValidatorUnbondingDelegationsRequest is required type for the
|
|
76
|
+
* Query/ValidatorUnbondingDelegations RPC method
|
|
77
|
+
*/
|
|
78
|
+
export interface QueryValidatorUnbondingDelegationsRequest {
|
|
79
|
+
/** validator_addr defines the validator address to query for. */
|
|
80
|
+
validatorAddr: string;
|
|
81
|
+
/** pagination defines an optional pagination for the request. */
|
|
82
|
+
pagination?: PageRequest | undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* QueryValidatorUnbondingDelegationsResponse is response type for the
|
|
87
|
+
* Query/ValidatorUnbondingDelegations RPC method.
|
|
88
|
+
*/
|
|
89
|
+
export interface QueryValidatorUnbondingDelegationsResponse {
|
|
90
|
+
unbondingResponses: UnbondingDelegation[];
|
|
91
|
+
/** pagination defines the pagination in the response. */
|
|
92
|
+
pagination?: PageResponse | undefined;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** QueryDelegationRequest is request type for the Query/Delegation RPC method. */
|
|
96
|
+
export interface QueryDelegationRequest {
|
|
97
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
98
|
+
delegatorAddr: string;
|
|
99
|
+
/** validator_addr defines the validator address to query for. */
|
|
100
|
+
validatorAddr: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** QueryDelegationResponse is response type for the Query/Delegation RPC method. */
|
|
104
|
+
export interface QueryDelegationResponse {
|
|
105
|
+
/** delegation_responses defines the delegation info of a delegation. */
|
|
106
|
+
delegationResponse?: DelegationResponse | undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* QueryUnbondingDelegationRequest is request type for the
|
|
111
|
+
* Query/UnbondingDelegation RPC method.
|
|
112
|
+
*/
|
|
113
|
+
export interface QueryUnbondingDelegationRequest {
|
|
114
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
115
|
+
delegatorAddr: string;
|
|
116
|
+
/** validator_addr defines the validator address to query for. */
|
|
117
|
+
validatorAddr: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* QueryDelegationResponse is response type for the Query/UnbondingDelegation
|
|
122
|
+
* RPC method.
|
|
123
|
+
*/
|
|
124
|
+
export interface QueryUnbondingDelegationResponse {
|
|
125
|
+
/** unbond defines the unbonding information of a delegation. */
|
|
126
|
+
unbond?: UnbondingDelegation | undefined;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* QueryDelegatorDelegationsRequest is request type for the
|
|
131
|
+
* Query/DelegatorDelegations RPC method.
|
|
132
|
+
*/
|
|
133
|
+
export interface QueryDelegatorDelegationsRequest {
|
|
134
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
135
|
+
delegatorAddr: string;
|
|
136
|
+
/** pagination defines an optional pagination for the request. */
|
|
137
|
+
pagination?: PageRequest | undefined;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* QueryDelegatorDelegationsResponse is response type for the
|
|
142
|
+
* Query/DelegatorDelegations RPC method.
|
|
143
|
+
*/
|
|
144
|
+
export interface QueryDelegatorDelegationsResponse {
|
|
145
|
+
/** delegation_responses defines all the delegations' info of a delegator. */
|
|
146
|
+
delegationResponses: DelegationResponse[];
|
|
147
|
+
/** pagination defines the pagination in the response. */
|
|
148
|
+
pagination?: PageResponse | undefined;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* QueryDelegatorUnbondingDelegationsRequest is request type for the
|
|
153
|
+
* Query/DelegatorUnbondingDelegations RPC method.
|
|
154
|
+
*/
|
|
155
|
+
export interface QueryDelegatorUnbondingDelegationsRequest {
|
|
156
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
157
|
+
delegatorAddr: string;
|
|
158
|
+
/** pagination defines an optional pagination for the request. */
|
|
159
|
+
pagination?: PageRequest | undefined;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* QueryUnbondingDelegatorDelegationsResponse is response type for the
|
|
164
|
+
* Query/UnbondingDelegatorDelegations RPC method.
|
|
165
|
+
*/
|
|
166
|
+
export interface QueryDelegatorUnbondingDelegationsResponse {
|
|
167
|
+
unbondingResponses: UnbondingDelegation[];
|
|
168
|
+
/** pagination defines the pagination in the response. */
|
|
169
|
+
pagination?: PageResponse | undefined;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* QueryRedelegationsRequest is request type for the Query/Redelegations RPC
|
|
174
|
+
* method.
|
|
175
|
+
*/
|
|
176
|
+
export interface QueryRedelegationsRequest {
|
|
177
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
178
|
+
delegatorAddr: string;
|
|
179
|
+
/** src_validator_addr defines the validator address to redelegate from. */
|
|
180
|
+
srcValidatorAddr: string;
|
|
181
|
+
/** dst_validator_addr defines the validator address to redelegate to. */
|
|
182
|
+
dstValidatorAddr: string;
|
|
183
|
+
/** pagination defines an optional pagination for the request. */
|
|
184
|
+
pagination?: PageRequest | undefined;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* QueryRedelegationsResponse is response type for the Query/Redelegations RPC
|
|
189
|
+
* method.
|
|
190
|
+
*/
|
|
191
|
+
export interface QueryRedelegationsResponse {
|
|
192
|
+
redelegationResponses: RedelegationResponse[];
|
|
193
|
+
/** pagination defines the pagination in the response. */
|
|
194
|
+
pagination?: PageResponse | undefined;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* QueryDelegatorValidatorsRequest is request type for the
|
|
199
|
+
* Query/DelegatorValidators RPC method.
|
|
200
|
+
*/
|
|
201
|
+
export interface QueryDelegatorValidatorsRequest {
|
|
202
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
203
|
+
delegatorAddr: string;
|
|
204
|
+
/** pagination defines an optional pagination for the request. */
|
|
205
|
+
pagination?: PageRequest | undefined;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* QueryDelegatorValidatorsResponse is response type for the
|
|
210
|
+
* Query/DelegatorValidators RPC method.
|
|
211
|
+
*/
|
|
212
|
+
export interface QueryDelegatorValidatorsResponse {
|
|
213
|
+
/** validators defines the validators' info of a delegator. */
|
|
214
|
+
validators: Validator[];
|
|
215
|
+
/** pagination defines the pagination in the response. */
|
|
216
|
+
pagination?: PageResponse | undefined;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* QueryDelegatorValidatorRequest is request type for the
|
|
221
|
+
* Query/DelegatorValidator RPC method.
|
|
222
|
+
*/
|
|
223
|
+
export interface QueryDelegatorValidatorRequest {
|
|
224
|
+
/** delegator_addr defines the delegator address to query for. */
|
|
225
|
+
delegatorAddr: string;
|
|
226
|
+
/** validator_addr defines the validator address to query for. */
|
|
227
|
+
validatorAddr: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* QueryDelegatorValidatorResponse response type for the
|
|
232
|
+
* Query/DelegatorValidator RPC method.
|
|
233
|
+
*/
|
|
234
|
+
export interface QueryDelegatorValidatorResponse {
|
|
235
|
+
/** validator defines the validator info. */
|
|
236
|
+
validator?: Validator | undefined;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC
|
|
241
|
+
* method.
|
|
242
|
+
*/
|
|
243
|
+
export interface QueryHistoricalInfoRequest {
|
|
244
|
+
/** height defines at which height to query the historical info. */
|
|
245
|
+
height: Long;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC
|
|
250
|
+
* method.
|
|
251
|
+
*/
|
|
252
|
+
export interface QueryHistoricalInfoResponse {
|
|
253
|
+
/** hist defines the historical info at the given height. */
|
|
254
|
+
hist?: HistoricalInfo | undefined;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/** QueryPoolRequest is request type for the Query/Pool RPC method. */
|
|
258
|
+
export interface QueryPoolRequest {
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** QueryPoolResponse is response type for the Query/Pool RPC method. */
|
|
262
|
+
export interface QueryPoolResponse {
|
|
263
|
+
/** pool defines the pool info. */
|
|
264
|
+
pool?: Pool | undefined;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
268
|
+
export interface QueryParamsRequest {
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
272
|
+
export interface QueryParamsResponse {
|
|
273
|
+
/** params holds all the parameters of this module. */
|
|
274
|
+
params?: Params | undefined;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
function createBaseQueryValidatorsRequest(): QueryValidatorsRequest {
|
|
278
|
+
return { status: "", pagination: undefined };
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export const QueryValidatorsRequest = {
|
|
282
|
+
encode(message: QueryValidatorsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
283
|
+
if (message.status !== "") {
|
|
284
|
+
writer.uint32(10).string(message.status);
|
|
285
|
+
}
|
|
286
|
+
if (message.pagination !== undefined) {
|
|
287
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
288
|
+
}
|
|
289
|
+
return writer;
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsRequest {
|
|
293
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
294
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
295
|
+
const message = createBaseQueryValidatorsRequest();
|
|
296
|
+
while (reader.pos < end) {
|
|
297
|
+
const tag = reader.uint32();
|
|
298
|
+
switch (tag >>> 3) {
|
|
299
|
+
case 1:
|
|
300
|
+
if (tag !== 10) {
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
message.status = reader.string();
|
|
305
|
+
continue;
|
|
306
|
+
case 2:
|
|
307
|
+
if (tag !== 18) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
reader.skipType(tag & 7);
|
|
318
|
+
}
|
|
319
|
+
return message;
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
fromJSON(object: any): QueryValidatorsRequest {
|
|
323
|
+
return {
|
|
324
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
325
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
toJSON(message: QueryValidatorsRequest): unknown {
|
|
330
|
+
const obj: any = {};
|
|
331
|
+
if (message.status !== "") {
|
|
332
|
+
obj.status = message.status;
|
|
333
|
+
}
|
|
334
|
+
if (message.pagination !== undefined) {
|
|
335
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
336
|
+
}
|
|
337
|
+
return obj;
|
|
338
|
+
},
|
|
339
|
+
|
|
340
|
+
create<I extends Exact<DeepPartial<QueryValidatorsRequest>, I>>(base?: I): QueryValidatorsRequest {
|
|
341
|
+
return QueryValidatorsRequest.fromPartial(base ?? ({} as any));
|
|
342
|
+
},
|
|
343
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorsRequest>, I>>(object: I): QueryValidatorsRequest {
|
|
344
|
+
const message = createBaseQueryValidatorsRequest();
|
|
345
|
+
message.status = object.status ?? "";
|
|
346
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
347
|
+
? PageRequest.fromPartial(object.pagination)
|
|
348
|
+
: undefined;
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
function createBaseQueryValidatorsResponse(): QueryValidatorsResponse {
|
|
354
|
+
return { validators: [], pagination: undefined };
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export const QueryValidatorsResponse = {
|
|
358
|
+
encode(message: QueryValidatorsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
359
|
+
for (const v of message.validators) {
|
|
360
|
+
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
361
|
+
}
|
|
362
|
+
if (message.pagination !== undefined) {
|
|
363
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
364
|
+
}
|
|
365
|
+
return writer;
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsResponse {
|
|
369
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
371
|
+
const message = createBaseQueryValidatorsResponse();
|
|
372
|
+
while (reader.pos < end) {
|
|
373
|
+
const tag = reader.uint32();
|
|
374
|
+
switch (tag >>> 3) {
|
|
375
|
+
case 1:
|
|
376
|
+
if (tag !== 10) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
381
|
+
continue;
|
|
382
|
+
case 2:
|
|
383
|
+
if (tag !== 18) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
reader.skipType(tag & 7);
|
|
394
|
+
}
|
|
395
|
+
return message;
|
|
396
|
+
},
|
|
397
|
+
|
|
398
|
+
fromJSON(object: any): QueryValidatorsResponse {
|
|
399
|
+
return {
|
|
400
|
+
validators: globalThis.Array.isArray(object?.validators)
|
|
401
|
+
? object.validators.map((e: any) => Validator.fromJSON(e))
|
|
402
|
+
: [],
|
|
403
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
404
|
+
};
|
|
405
|
+
},
|
|
406
|
+
|
|
407
|
+
toJSON(message: QueryValidatorsResponse): unknown {
|
|
408
|
+
const obj: any = {};
|
|
409
|
+
if (message.validators?.length) {
|
|
410
|
+
obj.validators = message.validators.map((e) => Validator.toJSON(e));
|
|
411
|
+
}
|
|
412
|
+
if (message.pagination !== undefined) {
|
|
413
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
414
|
+
}
|
|
415
|
+
return obj;
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
create<I extends Exact<DeepPartial<QueryValidatorsResponse>, I>>(base?: I): QueryValidatorsResponse {
|
|
419
|
+
return QueryValidatorsResponse.fromPartial(base ?? ({} as any));
|
|
420
|
+
},
|
|
421
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorsResponse>, I>>(object: I): QueryValidatorsResponse {
|
|
422
|
+
const message = createBaseQueryValidatorsResponse();
|
|
423
|
+
message.validators = object.validators?.map((e) => Validator.fromPartial(e)) || [];
|
|
424
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
425
|
+
? PageResponse.fromPartial(object.pagination)
|
|
426
|
+
: undefined;
|
|
427
|
+
return message;
|
|
428
|
+
},
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
function createBaseQueryValidatorRequest(): QueryValidatorRequest {
|
|
432
|
+
return { validatorAddr: "" };
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export const QueryValidatorRequest = {
|
|
436
|
+
encode(message: QueryValidatorRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
437
|
+
if (message.validatorAddr !== "") {
|
|
438
|
+
writer.uint32(10).string(message.validatorAddr);
|
|
439
|
+
}
|
|
440
|
+
return writer;
|
|
441
|
+
},
|
|
442
|
+
|
|
443
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorRequest {
|
|
444
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
445
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
446
|
+
const message = createBaseQueryValidatorRequest();
|
|
447
|
+
while (reader.pos < end) {
|
|
448
|
+
const tag = reader.uint32();
|
|
449
|
+
switch (tag >>> 3) {
|
|
450
|
+
case 1:
|
|
451
|
+
if (tag !== 10) {
|
|
452
|
+
break;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
message.validatorAddr = reader.string();
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
459
|
+
break;
|
|
460
|
+
}
|
|
461
|
+
reader.skipType(tag & 7);
|
|
462
|
+
}
|
|
463
|
+
return message;
|
|
464
|
+
},
|
|
465
|
+
|
|
466
|
+
fromJSON(object: any): QueryValidatorRequest {
|
|
467
|
+
return { validatorAddr: isSet(object.validatorAddr) ? globalThis.String(object.validatorAddr) : "" };
|
|
468
|
+
},
|
|
469
|
+
|
|
470
|
+
toJSON(message: QueryValidatorRequest): unknown {
|
|
471
|
+
const obj: any = {};
|
|
472
|
+
if (message.validatorAddr !== "") {
|
|
473
|
+
obj.validatorAddr = message.validatorAddr;
|
|
474
|
+
}
|
|
475
|
+
return obj;
|
|
476
|
+
},
|
|
477
|
+
|
|
478
|
+
create<I extends Exact<DeepPartial<QueryValidatorRequest>, I>>(base?: I): QueryValidatorRequest {
|
|
479
|
+
return QueryValidatorRequest.fromPartial(base ?? ({} as any));
|
|
480
|
+
},
|
|
481
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorRequest>, I>>(object: I): QueryValidatorRequest {
|
|
482
|
+
const message = createBaseQueryValidatorRequest();
|
|
483
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
function createBaseQueryValidatorResponse(): QueryValidatorResponse {
|
|
489
|
+
return { validator: undefined };
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export const QueryValidatorResponse = {
|
|
493
|
+
encode(message: QueryValidatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
494
|
+
if (message.validator !== undefined) {
|
|
495
|
+
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
|
496
|
+
}
|
|
497
|
+
return writer;
|
|
498
|
+
},
|
|
499
|
+
|
|
500
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorResponse {
|
|
501
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
502
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
|
+
const message = createBaseQueryValidatorResponse();
|
|
504
|
+
while (reader.pos < end) {
|
|
505
|
+
const tag = reader.uint32();
|
|
506
|
+
switch (tag >>> 3) {
|
|
507
|
+
case 1:
|
|
508
|
+
if (tag !== 10) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
message.validator = Validator.decode(reader, reader.uint32());
|
|
513
|
+
continue;
|
|
514
|
+
}
|
|
515
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
reader.skipType(tag & 7);
|
|
519
|
+
}
|
|
520
|
+
return message;
|
|
521
|
+
},
|
|
522
|
+
|
|
523
|
+
fromJSON(object: any): QueryValidatorResponse {
|
|
524
|
+
return { validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined };
|
|
525
|
+
},
|
|
526
|
+
|
|
527
|
+
toJSON(message: QueryValidatorResponse): unknown {
|
|
528
|
+
const obj: any = {};
|
|
529
|
+
if (message.validator !== undefined) {
|
|
530
|
+
obj.validator = Validator.toJSON(message.validator);
|
|
531
|
+
}
|
|
532
|
+
return obj;
|
|
533
|
+
},
|
|
534
|
+
|
|
535
|
+
create<I extends Exact<DeepPartial<QueryValidatorResponse>, I>>(base?: I): QueryValidatorResponse {
|
|
536
|
+
return QueryValidatorResponse.fromPartial(base ?? ({} as any));
|
|
537
|
+
},
|
|
538
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorResponse>, I>>(object: I): QueryValidatorResponse {
|
|
539
|
+
const message = createBaseQueryValidatorResponse();
|
|
540
|
+
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
541
|
+
? Validator.fromPartial(object.validator)
|
|
542
|
+
: undefined;
|
|
543
|
+
return message;
|
|
544
|
+
},
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
function createBaseQueryValidatorDelegationsRequest(): QueryValidatorDelegationsRequest {
|
|
548
|
+
return { validatorAddr: "", pagination: undefined };
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export const QueryValidatorDelegationsRequest = {
|
|
552
|
+
encode(message: QueryValidatorDelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
553
|
+
if (message.validatorAddr !== "") {
|
|
554
|
+
writer.uint32(10).string(message.validatorAddr);
|
|
555
|
+
}
|
|
556
|
+
if (message.pagination !== undefined) {
|
|
557
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
558
|
+
}
|
|
559
|
+
return writer;
|
|
560
|
+
},
|
|
561
|
+
|
|
562
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsRequest {
|
|
563
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
564
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
565
|
+
const message = createBaseQueryValidatorDelegationsRequest();
|
|
566
|
+
while (reader.pos < end) {
|
|
567
|
+
const tag = reader.uint32();
|
|
568
|
+
switch (tag >>> 3) {
|
|
569
|
+
case 1:
|
|
570
|
+
if (tag !== 10) {
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
message.validatorAddr = reader.string();
|
|
575
|
+
continue;
|
|
576
|
+
case 2:
|
|
577
|
+
if (tag !== 18) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
587
|
+
reader.skipType(tag & 7);
|
|
588
|
+
}
|
|
589
|
+
return message;
|
|
590
|
+
},
|
|
591
|
+
|
|
592
|
+
fromJSON(object: any): QueryValidatorDelegationsRequest {
|
|
593
|
+
return {
|
|
594
|
+
validatorAddr: isSet(object.validatorAddr) ? globalThis.String(object.validatorAddr) : "",
|
|
595
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
596
|
+
};
|
|
597
|
+
},
|
|
598
|
+
|
|
599
|
+
toJSON(message: QueryValidatorDelegationsRequest): unknown {
|
|
600
|
+
const obj: any = {};
|
|
601
|
+
if (message.validatorAddr !== "") {
|
|
602
|
+
obj.validatorAddr = message.validatorAddr;
|
|
603
|
+
}
|
|
604
|
+
if (message.pagination !== undefined) {
|
|
605
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
606
|
+
}
|
|
607
|
+
return obj;
|
|
608
|
+
},
|
|
609
|
+
|
|
610
|
+
create<I extends Exact<DeepPartial<QueryValidatorDelegationsRequest>, I>>(
|
|
611
|
+
base?: I,
|
|
612
|
+
): QueryValidatorDelegationsRequest {
|
|
613
|
+
return QueryValidatorDelegationsRequest.fromPartial(base ?? ({} as any));
|
|
614
|
+
},
|
|
615
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorDelegationsRequest>, I>>(
|
|
616
|
+
object: I,
|
|
617
|
+
): QueryValidatorDelegationsRequest {
|
|
618
|
+
const message = createBaseQueryValidatorDelegationsRequest();
|
|
619
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
620
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
621
|
+
? PageRequest.fromPartial(object.pagination)
|
|
622
|
+
: undefined;
|
|
623
|
+
return message;
|
|
624
|
+
},
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
function createBaseQueryValidatorDelegationsResponse(): QueryValidatorDelegationsResponse {
|
|
628
|
+
return { delegationResponses: [], pagination: undefined };
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export const QueryValidatorDelegationsResponse = {
|
|
632
|
+
encode(message: QueryValidatorDelegationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
633
|
+
for (const v of message.delegationResponses) {
|
|
634
|
+
DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
635
|
+
}
|
|
636
|
+
if (message.pagination !== undefined) {
|
|
637
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
638
|
+
}
|
|
639
|
+
return writer;
|
|
640
|
+
},
|
|
641
|
+
|
|
642
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsResponse {
|
|
643
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
644
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
645
|
+
const message = createBaseQueryValidatorDelegationsResponse();
|
|
646
|
+
while (reader.pos < end) {
|
|
647
|
+
const tag = reader.uint32();
|
|
648
|
+
switch (tag >>> 3) {
|
|
649
|
+
case 1:
|
|
650
|
+
if (tag !== 10) {
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32()));
|
|
655
|
+
continue;
|
|
656
|
+
case 2:
|
|
657
|
+
if (tag !== 18) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
662
|
+
continue;
|
|
663
|
+
}
|
|
664
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
reader.skipType(tag & 7);
|
|
668
|
+
}
|
|
669
|
+
return message;
|
|
670
|
+
},
|
|
671
|
+
|
|
672
|
+
fromJSON(object: any): QueryValidatorDelegationsResponse {
|
|
673
|
+
return {
|
|
674
|
+
delegationResponses: globalThis.Array.isArray(object?.delegationResponses)
|
|
675
|
+
? object.delegationResponses.map((e: any) => DelegationResponse.fromJSON(e))
|
|
676
|
+
: [],
|
|
677
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
678
|
+
};
|
|
679
|
+
},
|
|
680
|
+
|
|
681
|
+
toJSON(message: QueryValidatorDelegationsResponse): unknown {
|
|
682
|
+
const obj: any = {};
|
|
683
|
+
if (message.delegationResponses?.length) {
|
|
684
|
+
obj.delegationResponses = message.delegationResponses.map((e) => DelegationResponse.toJSON(e));
|
|
685
|
+
}
|
|
686
|
+
if (message.pagination !== undefined) {
|
|
687
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
688
|
+
}
|
|
689
|
+
return obj;
|
|
690
|
+
},
|
|
691
|
+
|
|
692
|
+
create<I extends Exact<DeepPartial<QueryValidatorDelegationsResponse>, I>>(
|
|
693
|
+
base?: I,
|
|
694
|
+
): QueryValidatorDelegationsResponse {
|
|
695
|
+
return QueryValidatorDelegationsResponse.fromPartial(base ?? ({} as any));
|
|
696
|
+
},
|
|
697
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorDelegationsResponse>, I>>(
|
|
698
|
+
object: I,
|
|
699
|
+
): QueryValidatorDelegationsResponse {
|
|
700
|
+
const message = createBaseQueryValidatorDelegationsResponse();
|
|
701
|
+
message.delegationResponses = object.delegationResponses?.map((e) => DelegationResponse.fromPartial(e)) || [];
|
|
702
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
703
|
+
? PageResponse.fromPartial(object.pagination)
|
|
704
|
+
: undefined;
|
|
705
|
+
return message;
|
|
706
|
+
},
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
function createBaseQueryValidatorUnbondingDelegationsRequest(): QueryValidatorUnbondingDelegationsRequest {
|
|
710
|
+
return { validatorAddr: "", pagination: undefined };
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export const QueryValidatorUnbondingDelegationsRequest = {
|
|
714
|
+
encode(message: QueryValidatorUnbondingDelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
715
|
+
if (message.validatorAddr !== "") {
|
|
716
|
+
writer.uint32(10).string(message.validatorAddr);
|
|
717
|
+
}
|
|
718
|
+
if (message.pagination !== undefined) {
|
|
719
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
720
|
+
}
|
|
721
|
+
return writer;
|
|
722
|
+
},
|
|
723
|
+
|
|
724
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest {
|
|
725
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
726
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
727
|
+
const message = createBaseQueryValidatorUnbondingDelegationsRequest();
|
|
728
|
+
while (reader.pos < end) {
|
|
729
|
+
const tag = reader.uint32();
|
|
730
|
+
switch (tag >>> 3) {
|
|
731
|
+
case 1:
|
|
732
|
+
if (tag !== 10) {
|
|
733
|
+
break;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
message.validatorAddr = reader.string();
|
|
737
|
+
continue;
|
|
738
|
+
case 2:
|
|
739
|
+
if (tag !== 18) {
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
744
|
+
continue;
|
|
745
|
+
}
|
|
746
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
reader.skipType(tag & 7);
|
|
750
|
+
}
|
|
751
|
+
return message;
|
|
752
|
+
},
|
|
753
|
+
|
|
754
|
+
fromJSON(object: any): QueryValidatorUnbondingDelegationsRequest {
|
|
755
|
+
return {
|
|
756
|
+
validatorAddr: isSet(object.validatorAddr) ? globalThis.String(object.validatorAddr) : "",
|
|
757
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
758
|
+
};
|
|
759
|
+
},
|
|
760
|
+
|
|
761
|
+
toJSON(message: QueryValidatorUnbondingDelegationsRequest): unknown {
|
|
762
|
+
const obj: any = {};
|
|
763
|
+
if (message.validatorAddr !== "") {
|
|
764
|
+
obj.validatorAddr = message.validatorAddr;
|
|
765
|
+
}
|
|
766
|
+
if (message.pagination !== undefined) {
|
|
767
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
768
|
+
}
|
|
769
|
+
return obj;
|
|
770
|
+
},
|
|
771
|
+
|
|
772
|
+
create<I extends Exact<DeepPartial<QueryValidatorUnbondingDelegationsRequest>, I>>(
|
|
773
|
+
base?: I,
|
|
774
|
+
): QueryValidatorUnbondingDelegationsRequest {
|
|
775
|
+
return QueryValidatorUnbondingDelegationsRequest.fromPartial(base ?? ({} as any));
|
|
776
|
+
},
|
|
777
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorUnbondingDelegationsRequest>, I>>(
|
|
778
|
+
object: I,
|
|
779
|
+
): QueryValidatorUnbondingDelegationsRequest {
|
|
780
|
+
const message = createBaseQueryValidatorUnbondingDelegationsRequest();
|
|
781
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
782
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
783
|
+
? PageRequest.fromPartial(object.pagination)
|
|
784
|
+
: undefined;
|
|
785
|
+
return message;
|
|
786
|
+
},
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
function createBaseQueryValidatorUnbondingDelegationsResponse(): QueryValidatorUnbondingDelegationsResponse {
|
|
790
|
+
return { unbondingResponses: [], pagination: undefined };
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export const QueryValidatorUnbondingDelegationsResponse = {
|
|
794
|
+
encode(message: QueryValidatorUnbondingDelegationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
795
|
+
for (const v of message.unbondingResponses) {
|
|
796
|
+
UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
797
|
+
}
|
|
798
|
+
if (message.pagination !== undefined) {
|
|
799
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
800
|
+
}
|
|
801
|
+
return writer;
|
|
802
|
+
},
|
|
803
|
+
|
|
804
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse {
|
|
805
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
806
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
807
|
+
const message = createBaseQueryValidatorUnbondingDelegationsResponse();
|
|
808
|
+
while (reader.pos < end) {
|
|
809
|
+
const tag = reader.uint32();
|
|
810
|
+
switch (tag >>> 3) {
|
|
811
|
+
case 1:
|
|
812
|
+
if (tag !== 10) {
|
|
813
|
+
break;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32()));
|
|
817
|
+
continue;
|
|
818
|
+
case 2:
|
|
819
|
+
if (tag !== 18) {
|
|
820
|
+
break;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
824
|
+
continue;
|
|
825
|
+
}
|
|
826
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
reader.skipType(tag & 7);
|
|
830
|
+
}
|
|
831
|
+
return message;
|
|
832
|
+
},
|
|
833
|
+
|
|
834
|
+
fromJSON(object: any): QueryValidatorUnbondingDelegationsResponse {
|
|
835
|
+
return {
|
|
836
|
+
unbondingResponses: globalThis.Array.isArray(object?.unbondingResponses)
|
|
837
|
+
? object.unbondingResponses.map((e: any) => UnbondingDelegation.fromJSON(e))
|
|
838
|
+
: [],
|
|
839
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
840
|
+
};
|
|
841
|
+
},
|
|
842
|
+
|
|
843
|
+
toJSON(message: QueryValidatorUnbondingDelegationsResponse): unknown {
|
|
844
|
+
const obj: any = {};
|
|
845
|
+
if (message.unbondingResponses?.length) {
|
|
846
|
+
obj.unbondingResponses = message.unbondingResponses.map((e) => UnbondingDelegation.toJSON(e));
|
|
847
|
+
}
|
|
848
|
+
if (message.pagination !== undefined) {
|
|
849
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
850
|
+
}
|
|
851
|
+
return obj;
|
|
852
|
+
},
|
|
853
|
+
|
|
854
|
+
create<I extends Exact<DeepPartial<QueryValidatorUnbondingDelegationsResponse>, I>>(
|
|
855
|
+
base?: I,
|
|
856
|
+
): QueryValidatorUnbondingDelegationsResponse {
|
|
857
|
+
return QueryValidatorUnbondingDelegationsResponse.fromPartial(base ?? ({} as any));
|
|
858
|
+
},
|
|
859
|
+
fromPartial<I extends Exact<DeepPartial<QueryValidatorUnbondingDelegationsResponse>, I>>(
|
|
860
|
+
object: I,
|
|
861
|
+
): QueryValidatorUnbondingDelegationsResponse {
|
|
862
|
+
const message = createBaseQueryValidatorUnbondingDelegationsResponse();
|
|
863
|
+
message.unbondingResponses = object.unbondingResponses?.map((e) => UnbondingDelegation.fromPartial(e)) || [];
|
|
864
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
865
|
+
? PageResponse.fromPartial(object.pagination)
|
|
866
|
+
: undefined;
|
|
867
|
+
return message;
|
|
868
|
+
},
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
function createBaseQueryDelegationRequest(): QueryDelegationRequest {
|
|
872
|
+
return { delegatorAddr: "", validatorAddr: "" };
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
export const QueryDelegationRequest = {
|
|
876
|
+
encode(message: QueryDelegationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
877
|
+
if (message.delegatorAddr !== "") {
|
|
878
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
879
|
+
}
|
|
880
|
+
if (message.validatorAddr !== "") {
|
|
881
|
+
writer.uint32(18).string(message.validatorAddr);
|
|
882
|
+
}
|
|
883
|
+
return writer;
|
|
884
|
+
},
|
|
885
|
+
|
|
886
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRequest {
|
|
887
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
888
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
889
|
+
const message = createBaseQueryDelegationRequest();
|
|
890
|
+
while (reader.pos < end) {
|
|
891
|
+
const tag = reader.uint32();
|
|
892
|
+
switch (tag >>> 3) {
|
|
893
|
+
case 1:
|
|
894
|
+
if (tag !== 10) {
|
|
895
|
+
break;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
message.delegatorAddr = reader.string();
|
|
899
|
+
continue;
|
|
900
|
+
case 2:
|
|
901
|
+
if (tag !== 18) {
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
message.validatorAddr = reader.string();
|
|
906
|
+
continue;
|
|
907
|
+
}
|
|
908
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
reader.skipType(tag & 7);
|
|
912
|
+
}
|
|
913
|
+
return message;
|
|
914
|
+
},
|
|
915
|
+
|
|
916
|
+
fromJSON(object: any): QueryDelegationRequest {
|
|
917
|
+
return {
|
|
918
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
919
|
+
validatorAddr: isSet(object.validatorAddr) ? globalThis.String(object.validatorAddr) : "",
|
|
920
|
+
};
|
|
921
|
+
},
|
|
922
|
+
|
|
923
|
+
toJSON(message: QueryDelegationRequest): unknown {
|
|
924
|
+
const obj: any = {};
|
|
925
|
+
if (message.delegatorAddr !== "") {
|
|
926
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
927
|
+
}
|
|
928
|
+
if (message.validatorAddr !== "") {
|
|
929
|
+
obj.validatorAddr = message.validatorAddr;
|
|
930
|
+
}
|
|
931
|
+
return obj;
|
|
932
|
+
},
|
|
933
|
+
|
|
934
|
+
create<I extends Exact<DeepPartial<QueryDelegationRequest>, I>>(base?: I): QueryDelegationRequest {
|
|
935
|
+
return QueryDelegationRequest.fromPartial(base ?? ({} as any));
|
|
936
|
+
},
|
|
937
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegationRequest>, I>>(object: I): QueryDelegationRequest {
|
|
938
|
+
const message = createBaseQueryDelegationRequest();
|
|
939
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
940
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
941
|
+
return message;
|
|
942
|
+
},
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
function createBaseQueryDelegationResponse(): QueryDelegationResponse {
|
|
946
|
+
return { delegationResponse: undefined };
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export const QueryDelegationResponse = {
|
|
950
|
+
encode(message: QueryDelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
951
|
+
if (message.delegationResponse !== undefined) {
|
|
952
|
+
DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).ldelim();
|
|
953
|
+
}
|
|
954
|
+
return writer;
|
|
955
|
+
},
|
|
956
|
+
|
|
957
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationResponse {
|
|
958
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
959
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
960
|
+
const message = createBaseQueryDelegationResponse();
|
|
961
|
+
while (reader.pos < end) {
|
|
962
|
+
const tag = reader.uint32();
|
|
963
|
+
switch (tag >>> 3) {
|
|
964
|
+
case 1:
|
|
965
|
+
if (tag !== 10) {
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
message.delegationResponse = DelegationResponse.decode(reader, reader.uint32());
|
|
970
|
+
continue;
|
|
971
|
+
}
|
|
972
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
reader.skipType(tag & 7);
|
|
976
|
+
}
|
|
977
|
+
return message;
|
|
978
|
+
},
|
|
979
|
+
|
|
980
|
+
fromJSON(object: any): QueryDelegationResponse {
|
|
981
|
+
return {
|
|
982
|
+
delegationResponse: isSet(object.delegationResponse)
|
|
983
|
+
? DelegationResponse.fromJSON(object.delegationResponse)
|
|
984
|
+
: undefined,
|
|
985
|
+
};
|
|
986
|
+
},
|
|
987
|
+
|
|
988
|
+
toJSON(message: QueryDelegationResponse): unknown {
|
|
989
|
+
const obj: any = {};
|
|
990
|
+
if (message.delegationResponse !== undefined) {
|
|
991
|
+
obj.delegationResponse = DelegationResponse.toJSON(message.delegationResponse);
|
|
992
|
+
}
|
|
993
|
+
return obj;
|
|
994
|
+
},
|
|
995
|
+
|
|
996
|
+
create<I extends Exact<DeepPartial<QueryDelegationResponse>, I>>(base?: I): QueryDelegationResponse {
|
|
997
|
+
return QueryDelegationResponse.fromPartial(base ?? ({} as any));
|
|
998
|
+
},
|
|
999
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegationResponse>, I>>(object: I): QueryDelegationResponse {
|
|
1000
|
+
const message = createBaseQueryDelegationResponse();
|
|
1001
|
+
message.delegationResponse = (object.delegationResponse !== undefined && object.delegationResponse !== null)
|
|
1002
|
+
? DelegationResponse.fromPartial(object.delegationResponse)
|
|
1003
|
+
: undefined;
|
|
1004
|
+
return message;
|
|
1005
|
+
},
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
function createBaseQueryUnbondingDelegationRequest(): QueryUnbondingDelegationRequest {
|
|
1009
|
+
return { delegatorAddr: "", validatorAddr: "" };
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
export const QueryUnbondingDelegationRequest = {
|
|
1013
|
+
encode(message: QueryUnbondingDelegationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1014
|
+
if (message.delegatorAddr !== "") {
|
|
1015
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1016
|
+
}
|
|
1017
|
+
if (message.validatorAddr !== "") {
|
|
1018
|
+
writer.uint32(18).string(message.validatorAddr);
|
|
1019
|
+
}
|
|
1020
|
+
return writer;
|
|
1021
|
+
},
|
|
1022
|
+
|
|
1023
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationRequest {
|
|
1024
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1025
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1026
|
+
const message = createBaseQueryUnbondingDelegationRequest();
|
|
1027
|
+
while (reader.pos < end) {
|
|
1028
|
+
const tag = reader.uint32();
|
|
1029
|
+
switch (tag >>> 3) {
|
|
1030
|
+
case 1:
|
|
1031
|
+
if (tag !== 10) {
|
|
1032
|
+
break;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
message.delegatorAddr = reader.string();
|
|
1036
|
+
continue;
|
|
1037
|
+
case 2:
|
|
1038
|
+
if (tag !== 18) {
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
message.validatorAddr = reader.string();
|
|
1043
|
+
continue;
|
|
1044
|
+
}
|
|
1045
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1048
|
+
reader.skipType(tag & 7);
|
|
1049
|
+
}
|
|
1050
|
+
return message;
|
|
1051
|
+
},
|
|
1052
|
+
|
|
1053
|
+
fromJSON(object: any): QueryUnbondingDelegationRequest {
|
|
1054
|
+
return {
|
|
1055
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
1056
|
+
validatorAddr: isSet(object.validatorAddr) ? globalThis.String(object.validatorAddr) : "",
|
|
1057
|
+
};
|
|
1058
|
+
},
|
|
1059
|
+
|
|
1060
|
+
toJSON(message: QueryUnbondingDelegationRequest): unknown {
|
|
1061
|
+
const obj: any = {};
|
|
1062
|
+
if (message.delegatorAddr !== "") {
|
|
1063
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
1064
|
+
}
|
|
1065
|
+
if (message.validatorAddr !== "") {
|
|
1066
|
+
obj.validatorAddr = message.validatorAddr;
|
|
1067
|
+
}
|
|
1068
|
+
return obj;
|
|
1069
|
+
},
|
|
1070
|
+
|
|
1071
|
+
create<I extends Exact<DeepPartial<QueryUnbondingDelegationRequest>, I>>(base?: I): QueryUnbondingDelegationRequest {
|
|
1072
|
+
return QueryUnbondingDelegationRequest.fromPartial(base ?? ({} as any));
|
|
1073
|
+
},
|
|
1074
|
+
fromPartial<I extends Exact<DeepPartial<QueryUnbondingDelegationRequest>, I>>(
|
|
1075
|
+
object: I,
|
|
1076
|
+
): QueryUnbondingDelegationRequest {
|
|
1077
|
+
const message = createBaseQueryUnbondingDelegationRequest();
|
|
1078
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1079
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
1080
|
+
return message;
|
|
1081
|
+
},
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
function createBaseQueryUnbondingDelegationResponse(): QueryUnbondingDelegationResponse {
|
|
1085
|
+
return { unbond: undefined };
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export const QueryUnbondingDelegationResponse = {
|
|
1089
|
+
encode(message: QueryUnbondingDelegationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1090
|
+
if (message.unbond !== undefined) {
|
|
1091
|
+
UnbondingDelegation.encode(message.unbond, writer.uint32(10).fork()).ldelim();
|
|
1092
|
+
}
|
|
1093
|
+
return writer;
|
|
1094
|
+
},
|
|
1095
|
+
|
|
1096
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationResponse {
|
|
1097
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1098
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1099
|
+
const message = createBaseQueryUnbondingDelegationResponse();
|
|
1100
|
+
while (reader.pos < end) {
|
|
1101
|
+
const tag = reader.uint32();
|
|
1102
|
+
switch (tag >>> 3) {
|
|
1103
|
+
case 1:
|
|
1104
|
+
if (tag !== 10) {
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
message.unbond = UnbondingDelegation.decode(reader, reader.uint32());
|
|
1109
|
+
continue;
|
|
1110
|
+
}
|
|
1111
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
reader.skipType(tag & 7);
|
|
1115
|
+
}
|
|
1116
|
+
return message;
|
|
1117
|
+
},
|
|
1118
|
+
|
|
1119
|
+
fromJSON(object: any): QueryUnbondingDelegationResponse {
|
|
1120
|
+
return { unbond: isSet(object.unbond) ? UnbondingDelegation.fromJSON(object.unbond) : undefined };
|
|
1121
|
+
},
|
|
1122
|
+
|
|
1123
|
+
toJSON(message: QueryUnbondingDelegationResponse): unknown {
|
|
1124
|
+
const obj: any = {};
|
|
1125
|
+
if (message.unbond !== undefined) {
|
|
1126
|
+
obj.unbond = UnbondingDelegation.toJSON(message.unbond);
|
|
1127
|
+
}
|
|
1128
|
+
return obj;
|
|
1129
|
+
},
|
|
1130
|
+
|
|
1131
|
+
create<I extends Exact<DeepPartial<QueryUnbondingDelegationResponse>, I>>(
|
|
1132
|
+
base?: I,
|
|
1133
|
+
): QueryUnbondingDelegationResponse {
|
|
1134
|
+
return QueryUnbondingDelegationResponse.fromPartial(base ?? ({} as any));
|
|
1135
|
+
},
|
|
1136
|
+
fromPartial<I extends Exact<DeepPartial<QueryUnbondingDelegationResponse>, I>>(
|
|
1137
|
+
object: I,
|
|
1138
|
+
): QueryUnbondingDelegationResponse {
|
|
1139
|
+
const message = createBaseQueryUnbondingDelegationResponse();
|
|
1140
|
+
message.unbond = (object.unbond !== undefined && object.unbond !== null)
|
|
1141
|
+
? UnbondingDelegation.fromPartial(object.unbond)
|
|
1142
|
+
: undefined;
|
|
1143
|
+
return message;
|
|
1144
|
+
},
|
|
1145
|
+
};
|
|
1146
|
+
|
|
1147
|
+
function createBaseQueryDelegatorDelegationsRequest(): QueryDelegatorDelegationsRequest {
|
|
1148
|
+
return { delegatorAddr: "", pagination: undefined };
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export const QueryDelegatorDelegationsRequest = {
|
|
1152
|
+
encode(message: QueryDelegatorDelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1153
|
+
if (message.delegatorAddr !== "") {
|
|
1154
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1155
|
+
}
|
|
1156
|
+
if (message.pagination !== undefined) {
|
|
1157
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1158
|
+
}
|
|
1159
|
+
return writer;
|
|
1160
|
+
},
|
|
1161
|
+
|
|
1162
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest {
|
|
1163
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1164
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1165
|
+
const message = createBaseQueryDelegatorDelegationsRequest();
|
|
1166
|
+
while (reader.pos < end) {
|
|
1167
|
+
const tag = reader.uint32();
|
|
1168
|
+
switch (tag >>> 3) {
|
|
1169
|
+
case 1:
|
|
1170
|
+
if (tag !== 10) {
|
|
1171
|
+
break;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
message.delegatorAddr = reader.string();
|
|
1175
|
+
continue;
|
|
1176
|
+
case 2:
|
|
1177
|
+
if (tag !== 18) {
|
|
1178
|
+
break;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1182
|
+
continue;
|
|
1183
|
+
}
|
|
1184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1185
|
+
break;
|
|
1186
|
+
}
|
|
1187
|
+
reader.skipType(tag & 7);
|
|
1188
|
+
}
|
|
1189
|
+
return message;
|
|
1190
|
+
},
|
|
1191
|
+
|
|
1192
|
+
fromJSON(object: any): QueryDelegatorDelegationsRequest {
|
|
1193
|
+
return {
|
|
1194
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
1195
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1196
|
+
};
|
|
1197
|
+
},
|
|
1198
|
+
|
|
1199
|
+
toJSON(message: QueryDelegatorDelegationsRequest): unknown {
|
|
1200
|
+
const obj: any = {};
|
|
1201
|
+
if (message.delegatorAddr !== "") {
|
|
1202
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
1203
|
+
}
|
|
1204
|
+
if (message.pagination !== undefined) {
|
|
1205
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1206
|
+
}
|
|
1207
|
+
return obj;
|
|
1208
|
+
},
|
|
1209
|
+
|
|
1210
|
+
create<I extends Exact<DeepPartial<QueryDelegatorDelegationsRequest>, I>>(
|
|
1211
|
+
base?: I,
|
|
1212
|
+
): QueryDelegatorDelegationsRequest {
|
|
1213
|
+
return QueryDelegatorDelegationsRequest.fromPartial(base ?? ({} as any));
|
|
1214
|
+
},
|
|
1215
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorDelegationsRequest>, I>>(
|
|
1216
|
+
object: I,
|
|
1217
|
+
): QueryDelegatorDelegationsRequest {
|
|
1218
|
+
const message = createBaseQueryDelegatorDelegationsRequest();
|
|
1219
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1220
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1221
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1222
|
+
: undefined;
|
|
1223
|
+
return message;
|
|
1224
|
+
},
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
function createBaseQueryDelegatorDelegationsResponse(): QueryDelegatorDelegationsResponse {
|
|
1228
|
+
return { delegationResponses: [], pagination: undefined };
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export const QueryDelegatorDelegationsResponse = {
|
|
1232
|
+
encode(message: QueryDelegatorDelegationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1233
|
+
for (const v of message.delegationResponses) {
|
|
1234
|
+
DelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1235
|
+
}
|
|
1236
|
+
if (message.pagination !== undefined) {
|
|
1237
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1238
|
+
}
|
|
1239
|
+
return writer;
|
|
1240
|
+
},
|
|
1241
|
+
|
|
1242
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse {
|
|
1243
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1244
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1245
|
+
const message = createBaseQueryDelegatorDelegationsResponse();
|
|
1246
|
+
while (reader.pos < end) {
|
|
1247
|
+
const tag = reader.uint32();
|
|
1248
|
+
switch (tag >>> 3) {
|
|
1249
|
+
case 1:
|
|
1250
|
+
if (tag !== 10) {
|
|
1251
|
+
break;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
message.delegationResponses.push(DelegationResponse.decode(reader, reader.uint32()));
|
|
1255
|
+
continue;
|
|
1256
|
+
case 2:
|
|
1257
|
+
if (tag !== 18) {
|
|
1258
|
+
break;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1262
|
+
continue;
|
|
1263
|
+
}
|
|
1264
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1265
|
+
break;
|
|
1266
|
+
}
|
|
1267
|
+
reader.skipType(tag & 7);
|
|
1268
|
+
}
|
|
1269
|
+
return message;
|
|
1270
|
+
},
|
|
1271
|
+
|
|
1272
|
+
fromJSON(object: any): QueryDelegatorDelegationsResponse {
|
|
1273
|
+
return {
|
|
1274
|
+
delegationResponses: globalThis.Array.isArray(object?.delegationResponses)
|
|
1275
|
+
? object.delegationResponses.map((e: any) => DelegationResponse.fromJSON(e))
|
|
1276
|
+
: [],
|
|
1277
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1278
|
+
};
|
|
1279
|
+
},
|
|
1280
|
+
|
|
1281
|
+
toJSON(message: QueryDelegatorDelegationsResponse): unknown {
|
|
1282
|
+
const obj: any = {};
|
|
1283
|
+
if (message.delegationResponses?.length) {
|
|
1284
|
+
obj.delegationResponses = message.delegationResponses.map((e) => DelegationResponse.toJSON(e));
|
|
1285
|
+
}
|
|
1286
|
+
if (message.pagination !== undefined) {
|
|
1287
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1288
|
+
}
|
|
1289
|
+
return obj;
|
|
1290
|
+
},
|
|
1291
|
+
|
|
1292
|
+
create<I extends Exact<DeepPartial<QueryDelegatorDelegationsResponse>, I>>(
|
|
1293
|
+
base?: I,
|
|
1294
|
+
): QueryDelegatorDelegationsResponse {
|
|
1295
|
+
return QueryDelegatorDelegationsResponse.fromPartial(base ?? ({} as any));
|
|
1296
|
+
},
|
|
1297
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorDelegationsResponse>, I>>(
|
|
1298
|
+
object: I,
|
|
1299
|
+
): QueryDelegatorDelegationsResponse {
|
|
1300
|
+
const message = createBaseQueryDelegatorDelegationsResponse();
|
|
1301
|
+
message.delegationResponses = object.delegationResponses?.map((e) => DelegationResponse.fromPartial(e)) || [];
|
|
1302
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1303
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1304
|
+
: undefined;
|
|
1305
|
+
return message;
|
|
1306
|
+
},
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
function createBaseQueryDelegatorUnbondingDelegationsRequest(): QueryDelegatorUnbondingDelegationsRequest {
|
|
1310
|
+
return { delegatorAddr: "", pagination: undefined };
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export const QueryDelegatorUnbondingDelegationsRequest = {
|
|
1314
|
+
encode(message: QueryDelegatorUnbondingDelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1315
|
+
if (message.delegatorAddr !== "") {
|
|
1316
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1317
|
+
}
|
|
1318
|
+
if (message.pagination !== undefined) {
|
|
1319
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1320
|
+
}
|
|
1321
|
+
return writer;
|
|
1322
|
+
},
|
|
1323
|
+
|
|
1324
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest {
|
|
1325
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1326
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1327
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsRequest();
|
|
1328
|
+
while (reader.pos < end) {
|
|
1329
|
+
const tag = reader.uint32();
|
|
1330
|
+
switch (tag >>> 3) {
|
|
1331
|
+
case 1:
|
|
1332
|
+
if (tag !== 10) {
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
message.delegatorAddr = reader.string();
|
|
1337
|
+
continue;
|
|
1338
|
+
case 2:
|
|
1339
|
+
if (tag !== 18) {
|
|
1340
|
+
break;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1344
|
+
continue;
|
|
1345
|
+
}
|
|
1346
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1347
|
+
break;
|
|
1348
|
+
}
|
|
1349
|
+
reader.skipType(tag & 7);
|
|
1350
|
+
}
|
|
1351
|
+
return message;
|
|
1352
|
+
},
|
|
1353
|
+
|
|
1354
|
+
fromJSON(object: any): QueryDelegatorUnbondingDelegationsRequest {
|
|
1355
|
+
return {
|
|
1356
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
1357
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1358
|
+
};
|
|
1359
|
+
},
|
|
1360
|
+
|
|
1361
|
+
toJSON(message: QueryDelegatorUnbondingDelegationsRequest): unknown {
|
|
1362
|
+
const obj: any = {};
|
|
1363
|
+
if (message.delegatorAddr !== "") {
|
|
1364
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
1365
|
+
}
|
|
1366
|
+
if (message.pagination !== undefined) {
|
|
1367
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1368
|
+
}
|
|
1369
|
+
return obj;
|
|
1370
|
+
},
|
|
1371
|
+
|
|
1372
|
+
create<I extends Exact<DeepPartial<QueryDelegatorUnbondingDelegationsRequest>, I>>(
|
|
1373
|
+
base?: I,
|
|
1374
|
+
): QueryDelegatorUnbondingDelegationsRequest {
|
|
1375
|
+
return QueryDelegatorUnbondingDelegationsRequest.fromPartial(base ?? ({} as any));
|
|
1376
|
+
},
|
|
1377
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorUnbondingDelegationsRequest>, I>>(
|
|
1378
|
+
object: I,
|
|
1379
|
+
): QueryDelegatorUnbondingDelegationsRequest {
|
|
1380
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsRequest();
|
|
1381
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1382
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1383
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1384
|
+
: undefined;
|
|
1385
|
+
return message;
|
|
1386
|
+
},
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
function createBaseQueryDelegatorUnbondingDelegationsResponse(): QueryDelegatorUnbondingDelegationsResponse {
|
|
1390
|
+
return { unbondingResponses: [], pagination: undefined };
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
export const QueryDelegatorUnbondingDelegationsResponse = {
|
|
1394
|
+
encode(message: QueryDelegatorUnbondingDelegationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1395
|
+
for (const v of message.unbondingResponses) {
|
|
1396
|
+
UnbondingDelegation.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1397
|
+
}
|
|
1398
|
+
if (message.pagination !== undefined) {
|
|
1399
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1400
|
+
}
|
|
1401
|
+
return writer;
|
|
1402
|
+
},
|
|
1403
|
+
|
|
1404
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse {
|
|
1405
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1406
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1407
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsResponse();
|
|
1408
|
+
while (reader.pos < end) {
|
|
1409
|
+
const tag = reader.uint32();
|
|
1410
|
+
switch (tag >>> 3) {
|
|
1411
|
+
case 1:
|
|
1412
|
+
if (tag !== 10) {
|
|
1413
|
+
break;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
message.unbondingResponses.push(UnbondingDelegation.decode(reader, reader.uint32()));
|
|
1417
|
+
continue;
|
|
1418
|
+
case 2:
|
|
1419
|
+
if (tag !== 18) {
|
|
1420
|
+
break;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1424
|
+
continue;
|
|
1425
|
+
}
|
|
1426
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1427
|
+
break;
|
|
1428
|
+
}
|
|
1429
|
+
reader.skipType(tag & 7);
|
|
1430
|
+
}
|
|
1431
|
+
return message;
|
|
1432
|
+
},
|
|
1433
|
+
|
|
1434
|
+
fromJSON(object: any): QueryDelegatorUnbondingDelegationsResponse {
|
|
1435
|
+
return {
|
|
1436
|
+
unbondingResponses: globalThis.Array.isArray(object?.unbondingResponses)
|
|
1437
|
+
? object.unbondingResponses.map((e: any) => UnbondingDelegation.fromJSON(e))
|
|
1438
|
+
: [],
|
|
1439
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1440
|
+
};
|
|
1441
|
+
},
|
|
1442
|
+
|
|
1443
|
+
toJSON(message: QueryDelegatorUnbondingDelegationsResponse): unknown {
|
|
1444
|
+
const obj: any = {};
|
|
1445
|
+
if (message.unbondingResponses?.length) {
|
|
1446
|
+
obj.unbondingResponses = message.unbondingResponses.map((e) => UnbondingDelegation.toJSON(e));
|
|
1447
|
+
}
|
|
1448
|
+
if (message.pagination !== undefined) {
|
|
1449
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1450
|
+
}
|
|
1451
|
+
return obj;
|
|
1452
|
+
},
|
|
1453
|
+
|
|
1454
|
+
create<I extends Exact<DeepPartial<QueryDelegatorUnbondingDelegationsResponse>, I>>(
|
|
1455
|
+
base?: I,
|
|
1456
|
+
): QueryDelegatorUnbondingDelegationsResponse {
|
|
1457
|
+
return QueryDelegatorUnbondingDelegationsResponse.fromPartial(base ?? ({} as any));
|
|
1458
|
+
},
|
|
1459
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorUnbondingDelegationsResponse>, I>>(
|
|
1460
|
+
object: I,
|
|
1461
|
+
): QueryDelegatorUnbondingDelegationsResponse {
|
|
1462
|
+
const message = createBaseQueryDelegatorUnbondingDelegationsResponse();
|
|
1463
|
+
message.unbondingResponses = object.unbondingResponses?.map((e) => UnbondingDelegation.fromPartial(e)) || [];
|
|
1464
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1465
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1466
|
+
: undefined;
|
|
1467
|
+
return message;
|
|
1468
|
+
},
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
function createBaseQueryRedelegationsRequest(): QueryRedelegationsRequest {
|
|
1472
|
+
return { delegatorAddr: "", srcValidatorAddr: "", dstValidatorAddr: "", pagination: undefined };
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
export const QueryRedelegationsRequest = {
|
|
1476
|
+
encode(message: QueryRedelegationsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1477
|
+
if (message.delegatorAddr !== "") {
|
|
1478
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1479
|
+
}
|
|
1480
|
+
if (message.srcValidatorAddr !== "") {
|
|
1481
|
+
writer.uint32(18).string(message.srcValidatorAddr);
|
|
1482
|
+
}
|
|
1483
|
+
if (message.dstValidatorAddr !== "") {
|
|
1484
|
+
writer.uint32(26).string(message.dstValidatorAddr);
|
|
1485
|
+
}
|
|
1486
|
+
if (message.pagination !== undefined) {
|
|
1487
|
+
PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
1488
|
+
}
|
|
1489
|
+
return writer;
|
|
1490
|
+
},
|
|
1491
|
+
|
|
1492
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsRequest {
|
|
1493
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1494
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1495
|
+
const message = createBaseQueryRedelegationsRequest();
|
|
1496
|
+
while (reader.pos < end) {
|
|
1497
|
+
const tag = reader.uint32();
|
|
1498
|
+
switch (tag >>> 3) {
|
|
1499
|
+
case 1:
|
|
1500
|
+
if (tag !== 10) {
|
|
1501
|
+
break;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
message.delegatorAddr = reader.string();
|
|
1505
|
+
continue;
|
|
1506
|
+
case 2:
|
|
1507
|
+
if (tag !== 18) {
|
|
1508
|
+
break;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
message.srcValidatorAddr = reader.string();
|
|
1512
|
+
continue;
|
|
1513
|
+
case 3:
|
|
1514
|
+
if (tag !== 26) {
|
|
1515
|
+
break;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
message.dstValidatorAddr = reader.string();
|
|
1519
|
+
continue;
|
|
1520
|
+
case 4:
|
|
1521
|
+
if (tag !== 34) {
|
|
1522
|
+
break;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1526
|
+
continue;
|
|
1527
|
+
}
|
|
1528
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1529
|
+
break;
|
|
1530
|
+
}
|
|
1531
|
+
reader.skipType(tag & 7);
|
|
1532
|
+
}
|
|
1533
|
+
return message;
|
|
1534
|
+
},
|
|
1535
|
+
|
|
1536
|
+
fromJSON(object: any): QueryRedelegationsRequest {
|
|
1537
|
+
return {
|
|
1538
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
1539
|
+
srcValidatorAddr: isSet(object.srcValidatorAddr) ? globalThis.String(object.srcValidatorAddr) : "",
|
|
1540
|
+
dstValidatorAddr: isSet(object.dstValidatorAddr) ? globalThis.String(object.dstValidatorAddr) : "",
|
|
1541
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1542
|
+
};
|
|
1543
|
+
},
|
|
1544
|
+
|
|
1545
|
+
toJSON(message: QueryRedelegationsRequest): unknown {
|
|
1546
|
+
const obj: any = {};
|
|
1547
|
+
if (message.delegatorAddr !== "") {
|
|
1548
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
1549
|
+
}
|
|
1550
|
+
if (message.srcValidatorAddr !== "") {
|
|
1551
|
+
obj.srcValidatorAddr = message.srcValidatorAddr;
|
|
1552
|
+
}
|
|
1553
|
+
if (message.dstValidatorAddr !== "") {
|
|
1554
|
+
obj.dstValidatorAddr = message.dstValidatorAddr;
|
|
1555
|
+
}
|
|
1556
|
+
if (message.pagination !== undefined) {
|
|
1557
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1558
|
+
}
|
|
1559
|
+
return obj;
|
|
1560
|
+
},
|
|
1561
|
+
|
|
1562
|
+
create<I extends Exact<DeepPartial<QueryRedelegationsRequest>, I>>(base?: I): QueryRedelegationsRequest {
|
|
1563
|
+
return QueryRedelegationsRequest.fromPartial(base ?? ({} as any));
|
|
1564
|
+
},
|
|
1565
|
+
fromPartial<I extends Exact<DeepPartial<QueryRedelegationsRequest>, I>>(object: I): QueryRedelegationsRequest {
|
|
1566
|
+
const message = createBaseQueryRedelegationsRequest();
|
|
1567
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1568
|
+
message.srcValidatorAddr = object.srcValidatorAddr ?? "";
|
|
1569
|
+
message.dstValidatorAddr = object.dstValidatorAddr ?? "";
|
|
1570
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1571
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1572
|
+
: undefined;
|
|
1573
|
+
return message;
|
|
1574
|
+
},
|
|
1575
|
+
};
|
|
1576
|
+
|
|
1577
|
+
function createBaseQueryRedelegationsResponse(): QueryRedelegationsResponse {
|
|
1578
|
+
return { redelegationResponses: [], pagination: undefined };
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
export const QueryRedelegationsResponse = {
|
|
1582
|
+
encode(message: QueryRedelegationsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1583
|
+
for (const v of message.redelegationResponses) {
|
|
1584
|
+
RedelegationResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1585
|
+
}
|
|
1586
|
+
if (message.pagination !== undefined) {
|
|
1587
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1588
|
+
}
|
|
1589
|
+
return writer;
|
|
1590
|
+
},
|
|
1591
|
+
|
|
1592
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsResponse {
|
|
1593
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1594
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1595
|
+
const message = createBaseQueryRedelegationsResponse();
|
|
1596
|
+
while (reader.pos < end) {
|
|
1597
|
+
const tag = reader.uint32();
|
|
1598
|
+
switch (tag >>> 3) {
|
|
1599
|
+
case 1:
|
|
1600
|
+
if (tag !== 10) {
|
|
1601
|
+
break;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
message.redelegationResponses.push(RedelegationResponse.decode(reader, reader.uint32()));
|
|
1605
|
+
continue;
|
|
1606
|
+
case 2:
|
|
1607
|
+
if (tag !== 18) {
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1612
|
+
continue;
|
|
1613
|
+
}
|
|
1614
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1615
|
+
break;
|
|
1616
|
+
}
|
|
1617
|
+
reader.skipType(tag & 7);
|
|
1618
|
+
}
|
|
1619
|
+
return message;
|
|
1620
|
+
},
|
|
1621
|
+
|
|
1622
|
+
fromJSON(object: any): QueryRedelegationsResponse {
|
|
1623
|
+
return {
|
|
1624
|
+
redelegationResponses: globalThis.Array.isArray(object?.redelegationResponses)
|
|
1625
|
+
? object.redelegationResponses.map((e: any) => RedelegationResponse.fromJSON(e))
|
|
1626
|
+
: [],
|
|
1627
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1628
|
+
};
|
|
1629
|
+
},
|
|
1630
|
+
|
|
1631
|
+
toJSON(message: QueryRedelegationsResponse): unknown {
|
|
1632
|
+
const obj: any = {};
|
|
1633
|
+
if (message.redelegationResponses?.length) {
|
|
1634
|
+
obj.redelegationResponses = message.redelegationResponses.map((e) => RedelegationResponse.toJSON(e));
|
|
1635
|
+
}
|
|
1636
|
+
if (message.pagination !== undefined) {
|
|
1637
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1638
|
+
}
|
|
1639
|
+
return obj;
|
|
1640
|
+
},
|
|
1641
|
+
|
|
1642
|
+
create<I extends Exact<DeepPartial<QueryRedelegationsResponse>, I>>(base?: I): QueryRedelegationsResponse {
|
|
1643
|
+
return QueryRedelegationsResponse.fromPartial(base ?? ({} as any));
|
|
1644
|
+
},
|
|
1645
|
+
fromPartial<I extends Exact<DeepPartial<QueryRedelegationsResponse>, I>>(object: I): QueryRedelegationsResponse {
|
|
1646
|
+
const message = createBaseQueryRedelegationsResponse();
|
|
1647
|
+
message.redelegationResponses = object.redelegationResponses?.map((e) => RedelegationResponse.fromPartial(e)) || [];
|
|
1648
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1649
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1650
|
+
: undefined;
|
|
1651
|
+
return message;
|
|
1652
|
+
},
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
function createBaseQueryDelegatorValidatorsRequest(): QueryDelegatorValidatorsRequest {
|
|
1656
|
+
return { delegatorAddr: "", pagination: undefined };
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
export const QueryDelegatorValidatorsRequest = {
|
|
1660
|
+
encode(message: QueryDelegatorValidatorsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1661
|
+
if (message.delegatorAddr !== "") {
|
|
1662
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1663
|
+
}
|
|
1664
|
+
if (message.pagination !== undefined) {
|
|
1665
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1666
|
+
}
|
|
1667
|
+
return writer;
|
|
1668
|
+
},
|
|
1669
|
+
|
|
1670
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest {
|
|
1671
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1672
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1673
|
+
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
1674
|
+
while (reader.pos < end) {
|
|
1675
|
+
const tag = reader.uint32();
|
|
1676
|
+
switch (tag >>> 3) {
|
|
1677
|
+
case 1:
|
|
1678
|
+
if (tag !== 10) {
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
message.delegatorAddr = reader.string();
|
|
1683
|
+
continue;
|
|
1684
|
+
case 2:
|
|
1685
|
+
if (tag !== 18) {
|
|
1686
|
+
break;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
1690
|
+
continue;
|
|
1691
|
+
}
|
|
1692
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1693
|
+
break;
|
|
1694
|
+
}
|
|
1695
|
+
reader.skipType(tag & 7);
|
|
1696
|
+
}
|
|
1697
|
+
return message;
|
|
1698
|
+
},
|
|
1699
|
+
|
|
1700
|
+
fromJSON(object: any): QueryDelegatorValidatorsRequest {
|
|
1701
|
+
return {
|
|
1702
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
1703
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined,
|
|
1704
|
+
};
|
|
1705
|
+
},
|
|
1706
|
+
|
|
1707
|
+
toJSON(message: QueryDelegatorValidatorsRequest): unknown {
|
|
1708
|
+
const obj: any = {};
|
|
1709
|
+
if (message.delegatorAddr !== "") {
|
|
1710
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
1711
|
+
}
|
|
1712
|
+
if (message.pagination !== undefined) {
|
|
1713
|
+
obj.pagination = PageRequest.toJSON(message.pagination);
|
|
1714
|
+
}
|
|
1715
|
+
return obj;
|
|
1716
|
+
},
|
|
1717
|
+
|
|
1718
|
+
create<I extends Exact<DeepPartial<QueryDelegatorValidatorsRequest>, I>>(base?: I): QueryDelegatorValidatorsRequest {
|
|
1719
|
+
return QueryDelegatorValidatorsRequest.fromPartial(base ?? ({} as any));
|
|
1720
|
+
},
|
|
1721
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorValidatorsRequest>, I>>(
|
|
1722
|
+
object: I,
|
|
1723
|
+
): QueryDelegatorValidatorsRequest {
|
|
1724
|
+
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
1725
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1726
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1727
|
+
? PageRequest.fromPartial(object.pagination)
|
|
1728
|
+
: undefined;
|
|
1729
|
+
return message;
|
|
1730
|
+
},
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
function createBaseQueryDelegatorValidatorsResponse(): QueryDelegatorValidatorsResponse {
|
|
1734
|
+
return { validators: [], pagination: undefined };
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
export const QueryDelegatorValidatorsResponse = {
|
|
1738
|
+
encode(message: QueryDelegatorValidatorsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1739
|
+
for (const v of message.validators) {
|
|
1740
|
+
Validator.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1741
|
+
}
|
|
1742
|
+
if (message.pagination !== undefined) {
|
|
1743
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
1744
|
+
}
|
|
1745
|
+
return writer;
|
|
1746
|
+
},
|
|
1747
|
+
|
|
1748
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse {
|
|
1749
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1750
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1751
|
+
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
1752
|
+
while (reader.pos < end) {
|
|
1753
|
+
const tag = reader.uint32();
|
|
1754
|
+
switch (tag >>> 3) {
|
|
1755
|
+
case 1:
|
|
1756
|
+
if (tag !== 10) {
|
|
1757
|
+
break;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
message.validators.push(Validator.decode(reader, reader.uint32()));
|
|
1761
|
+
continue;
|
|
1762
|
+
case 2:
|
|
1763
|
+
if (tag !== 18) {
|
|
1764
|
+
break;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
1768
|
+
continue;
|
|
1769
|
+
}
|
|
1770
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1771
|
+
break;
|
|
1772
|
+
}
|
|
1773
|
+
reader.skipType(tag & 7);
|
|
1774
|
+
}
|
|
1775
|
+
return message;
|
|
1776
|
+
},
|
|
1777
|
+
|
|
1778
|
+
fromJSON(object: any): QueryDelegatorValidatorsResponse {
|
|
1779
|
+
return {
|
|
1780
|
+
validators: globalThis.Array.isArray(object?.validators)
|
|
1781
|
+
? object.validators.map((e: any) => Validator.fromJSON(e))
|
|
1782
|
+
: [],
|
|
1783
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined,
|
|
1784
|
+
};
|
|
1785
|
+
},
|
|
1786
|
+
|
|
1787
|
+
toJSON(message: QueryDelegatorValidatorsResponse): unknown {
|
|
1788
|
+
const obj: any = {};
|
|
1789
|
+
if (message.validators?.length) {
|
|
1790
|
+
obj.validators = message.validators.map((e) => Validator.toJSON(e));
|
|
1791
|
+
}
|
|
1792
|
+
if (message.pagination !== undefined) {
|
|
1793
|
+
obj.pagination = PageResponse.toJSON(message.pagination);
|
|
1794
|
+
}
|
|
1795
|
+
return obj;
|
|
1796
|
+
},
|
|
1797
|
+
|
|
1798
|
+
create<I extends Exact<DeepPartial<QueryDelegatorValidatorsResponse>, I>>(
|
|
1799
|
+
base?: I,
|
|
1800
|
+
): QueryDelegatorValidatorsResponse {
|
|
1801
|
+
return QueryDelegatorValidatorsResponse.fromPartial(base ?? ({} as any));
|
|
1802
|
+
},
|
|
1803
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorValidatorsResponse>, I>>(
|
|
1804
|
+
object: I,
|
|
1805
|
+
): QueryDelegatorValidatorsResponse {
|
|
1806
|
+
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
1807
|
+
message.validators = object.validators?.map((e) => Validator.fromPartial(e)) || [];
|
|
1808
|
+
message.pagination = (object.pagination !== undefined && object.pagination !== null)
|
|
1809
|
+
? PageResponse.fromPartial(object.pagination)
|
|
1810
|
+
: undefined;
|
|
1811
|
+
return message;
|
|
1812
|
+
},
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
function createBaseQueryDelegatorValidatorRequest(): QueryDelegatorValidatorRequest {
|
|
1816
|
+
return { delegatorAddr: "", validatorAddr: "" };
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
export const QueryDelegatorValidatorRequest = {
|
|
1820
|
+
encode(message: QueryDelegatorValidatorRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1821
|
+
if (message.delegatorAddr !== "") {
|
|
1822
|
+
writer.uint32(10).string(message.delegatorAddr);
|
|
1823
|
+
}
|
|
1824
|
+
if (message.validatorAddr !== "") {
|
|
1825
|
+
writer.uint32(18).string(message.validatorAddr);
|
|
1826
|
+
}
|
|
1827
|
+
return writer;
|
|
1828
|
+
},
|
|
1829
|
+
|
|
1830
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorRequest {
|
|
1831
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1832
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1833
|
+
const message = createBaseQueryDelegatorValidatorRequest();
|
|
1834
|
+
while (reader.pos < end) {
|
|
1835
|
+
const tag = reader.uint32();
|
|
1836
|
+
switch (tag >>> 3) {
|
|
1837
|
+
case 1:
|
|
1838
|
+
if (tag !== 10) {
|
|
1839
|
+
break;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
message.delegatorAddr = reader.string();
|
|
1843
|
+
continue;
|
|
1844
|
+
case 2:
|
|
1845
|
+
if (tag !== 18) {
|
|
1846
|
+
break;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
message.validatorAddr = reader.string();
|
|
1850
|
+
continue;
|
|
1851
|
+
}
|
|
1852
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1853
|
+
break;
|
|
1854
|
+
}
|
|
1855
|
+
reader.skipType(tag & 7);
|
|
1856
|
+
}
|
|
1857
|
+
return message;
|
|
1858
|
+
},
|
|
1859
|
+
|
|
1860
|
+
fromJSON(object: any): QueryDelegatorValidatorRequest {
|
|
1861
|
+
return {
|
|
1862
|
+
delegatorAddr: isSet(object.delegatorAddr) ? globalThis.String(object.delegatorAddr) : "",
|
|
1863
|
+
validatorAddr: isSet(object.validatorAddr) ? globalThis.String(object.validatorAddr) : "",
|
|
1864
|
+
};
|
|
1865
|
+
},
|
|
1866
|
+
|
|
1867
|
+
toJSON(message: QueryDelegatorValidatorRequest): unknown {
|
|
1868
|
+
const obj: any = {};
|
|
1869
|
+
if (message.delegatorAddr !== "") {
|
|
1870
|
+
obj.delegatorAddr = message.delegatorAddr;
|
|
1871
|
+
}
|
|
1872
|
+
if (message.validatorAddr !== "") {
|
|
1873
|
+
obj.validatorAddr = message.validatorAddr;
|
|
1874
|
+
}
|
|
1875
|
+
return obj;
|
|
1876
|
+
},
|
|
1877
|
+
|
|
1878
|
+
create<I extends Exact<DeepPartial<QueryDelegatorValidatorRequest>, I>>(base?: I): QueryDelegatorValidatorRequest {
|
|
1879
|
+
return QueryDelegatorValidatorRequest.fromPartial(base ?? ({} as any));
|
|
1880
|
+
},
|
|
1881
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorValidatorRequest>, I>>(
|
|
1882
|
+
object: I,
|
|
1883
|
+
): QueryDelegatorValidatorRequest {
|
|
1884
|
+
const message = createBaseQueryDelegatorValidatorRequest();
|
|
1885
|
+
message.delegatorAddr = object.delegatorAddr ?? "";
|
|
1886
|
+
message.validatorAddr = object.validatorAddr ?? "";
|
|
1887
|
+
return message;
|
|
1888
|
+
},
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
function createBaseQueryDelegatorValidatorResponse(): QueryDelegatorValidatorResponse {
|
|
1892
|
+
return { validator: undefined };
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
export const QueryDelegatorValidatorResponse = {
|
|
1896
|
+
encode(message: QueryDelegatorValidatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1897
|
+
if (message.validator !== undefined) {
|
|
1898
|
+
Validator.encode(message.validator, writer.uint32(10).fork()).ldelim();
|
|
1899
|
+
}
|
|
1900
|
+
return writer;
|
|
1901
|
+
},
|
|
1902
|
+
|
|
1903
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorResponse {
|
|
1904
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1905
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1906
|
+
const message = createBaseQueryDelegatorValidatorResponse();
|
|
1907
|
+
while (reader.pos < end) {
|
|
1908
|
+
const tag = reader.uint32();
|
|
1909
|
+
switch (tag >>> 3) {
|
|
1910
|
+
case 1:
|
|
1911
|
+
if (tag !== 10) {
|
|
1912
|
+
break;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
message.validator = Validator.decode(reader, reader.uint32());
|
|
1916
|
+
continue;
|
|
1917
|
+
}
|
|
1918
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1919
|
+
break;
|
|
1920
|
+
}
|
|
1921
|
+
reader.skipType(tag & 7);
|
|
1922
|
+
}
|
|
1923
|
+
return message;
|
|
1924
|
+
},
|
|
1925
|
+
|
|
1926
|
+
fromJSON(object: any): QueryDelegatorValidatorResponse {
|
|
1927
|
+
return { validator: isSet(object.validator) ? Validator.fromJSON(object.validator) : undefined };
|
|
1928
|
+
},
|
|
1929
|
+
|
|
1930
|
+
toJSON(message: QueryDelegatorValidatorResponse): unknown {
|
|
1931
|
+
const obj: any = {};
|
|
1932
|
+
if (message.validator !== undefined) {
|
|
1933
|
+
obj.validator = Validator.toJSON(message.validator);
|
|
1934
|
+
}
|
|
1935
|
+
return obj;
|
|
1936
|
+
},
|
|
1937
|
+
|
|
1938
|
+
create<I extends Exact<DeepPartial<QueryDelegatorValidatorResponse>, I>>(base?: I): QueryDelegatorValidatorResponse {
|
|
1939
|
+
return QueryDelegatorValidatorResponse.fromPartial(base ?? ({} as any));
|
|
1940
|
+
},
|
|
1941
|
+
fromPartial<I extends Exact<DeepPartial<QueryDelegatorValidatorResponse>, I>>(
|
|
1942
|
+
object: I,
|
|
1943
|
+
): QueryDelegatorValidatorResponse {
|
|
1944
|
+
const message = createBaseQueryDelegatorValidatorResponse();
|
|
1945
|
+
message.validator = (object.validator !== undefined && object.validator !== null)
|
|
1946
|
+
? Validator.fromPartial(object.validator)
|
|
1947
|
+
: undefined;
|
|
1948
|
+
return message;
|
|
1949
|
+
},
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1952
|
+
function createBaseQueryHistoricalInfoRequest(): QueryHistoricalInfoRequest {
|
|
1953
|
+
return { height: Long.ZERO };
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
export const QueryHistoricalInfoRequest = {
|
|
1957
|
+
encode(message: QueryHistoricalInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1958
|
+
if (!message.height.equals(Long.ZERO)) {
|
|
1959
|
+
writer.uint32(8).int64(message.height);
|
|
1960
|
+
}
|
|
1961
|
+
return writer;
|
|
1962
|
+
},
|
|
1963
|
+
|
|
1964
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoRequest {
|
|
1965
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1966
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1967
|
+
const message = createBaseQueryHistoricalInfoRequest();
|
|
1968
|
+
while (reader.pos < end) {
|
|
1969
|
+
const tag = reader.uint32();
|
|
1970
|
+
switch (tag >>> 3) {
|
|
1971
|
+
case 1:
|
|
1972
|
+
if (tag !== 8) {
|
|
1973
|
+
break;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
message.height = reader.int64() as Long;
|
|
1977
|
+
continue;
|
|
1978
|
+
}
|
|
1979
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1980
|
+
break;
|
|
1981
|
+
}
|
|
1982
|
+
reader.skipType(tag & 7);
|
|
1983
|
+
}
|
|
1984
|
+
return message;
|
|
1985
|
+
},
|
|
1986
|
+
|
|
1987
|
+
fromJSON(object: any): QueryHistoricalInfoRequest {
|
|
1988
|
+
return { height: isSet(object.height) ? Long.fromValue(object.height) : Long.ZERO };
|
|
1989
|
+
},
|
|
1990
|
+
|
|
1991
|
+
toJSON(message: QueryHistoricalInfoRequest): unknown {
|
|
1992
|
+
const obj: any = {};
|
|
1993
|
+
if (!message.height.equals(Long.ZERO)) {
|
|
1994
|
+
obj.height = (message.height || Long.ZERO).toString();
|
|
1995
|
+
}
|
|
1996
|
+
return obj;
|
|
1997
|
+
},
|
|
1998
|
+
|
|
1999
|
+
create<I extends Exact<DeepPartial<QueryHistoricalInfoRequest>, I>>(base?: I): QueryHistoricalInfoRequest {
|
|
2000
|
+
return QueryHistoricalInfoRequest.fromPartial(base ?? ({} as any));
|
|
2001
|
+
},
|
|
2002
|
+
fromPartial<I extends Exact<DeepPartial<QueryHistoricalInfoRequest>, I>>(object: I): QueryHistoricalInfoRequest {
|
|
2003
|
+
const message = createBaseQueryHistoricalInfoRequest();
|
|
2004
|
+
message.height = (object.height !== undefined && object.height !== null)
|
|
2005
|
+
? Long.fromValue(object.height)
|
|
2006
|
+
: Long.ZERO;
|
|
2007
|
+
return message;
|
|
2008
|
+
},
|
|
2009
|
+
};
|
|
2010
|
+
|
|
2011
|
+
function createBaseQueryHistoricalInfoResponse(): QueryHistoricalInfoResponse {
|
|
2012
|
+
return { hist: undefined };
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
export const QueryHistoricalInfoResponse = {
|
|
2016
|
+
encode(message: QueryHistoricalInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2017
|
+
if (message.hist !== undefined) {
|
|
2018
|
+
HistoricalInfo.encode(message.hist, writer.uint32(10).fork()).ldelim();
|
|
2019
|
+
}
|
|
2020
|
+
return writer;
|
|
2021
|
+
},
|
|
2022
|
+
|
|
2023
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoResponse {
|
|
2024
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2025
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2026
|
+
const message = createBaseQueryHistoricalInfoResponse();
|
|
2027
|
+
while (reader.pos < end) {
|
|
2028
|
+
const tag = reader.uint32();
|
|
2029
|
+
switch (tag >>> 3) {
|
|
2030
|
+
case 1:
|
|
2031
|
+
if (tag !== 10) {
|
|
2032
|
+
break;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
message.hist = HistoricalInfo.decode(reader, reader.uint32());
|
|
2036
|
+
continue;
|
|
2037
|
+
}
|
|
2038
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2039
|
+
break;
|
|
2040
|
+
}
|
|
2041
|
+
reader.skipType(tag & 7);
|
|
2042
|
+
}
|
|
2043
|
+
return message;
|
|
2044
|
+
},
|
|
2045
|
+
|
|
2046
|
+
fromJSON(object: any): QueryHistoricalInfoResponse {
|
|
2047
|
+
return { hist: isSet(object.hist) ? HistoricalInfo.fromJSON(object.hist) : undefined };
|
|
2048
|
+
},
|
|
2049
|
+
|
|
2050
|
+
toJSON(message: QueryHistoricalInfoResponse): unknown {
|
|
2051
|
+
const obj: any = {};
|
|
2052
|
+
if (message.hist !== undefined) {
|
|
2053
|
+
obj.hist = HistoricalInfo.toJSON(message.hist);
|
|
2054
|
+
}
|
|
2055
|
+
return obj;
|
|
2056
|
+
},
|
|
2057
|
+
|
|
2058
|
+
create<I extends Exact<DeepPartial<QueryHistoricalInfoResponse>, I>>(base?: I): QueryHistoricalInfoResponse {
|
|
2059
|
+
return QueryHistoricalInfoResponse.fromPartial(base ?? ({} as any));
|
|
2060
|
+
},
|
|
2061
|
+
fromPartial<I extends Exact<DeepPartial<QueryHistoricalInfoResponse>, I>>(object: I): QueryHistoricalInfoResponse {
|
|
2062
|
+
const message = createBaseQueryHistoricalInfoResponse();
|
|
2063
|
+
message.hist = (object.hist !== undefined && object.hist !== null)
|
|
2064
|
+
? HistoricalInfo.fromPartial(object.hist)
|
|
2065
|
+
: undefined;
|
|
2066
|
+
return message;
|
|
2067
|
+
},
|
|
2068
|
+
};
|
|
2069
|
+
|
|
2070
|
+
function createBaseQueryPoolRequest(): QueryPoolRequest {
|
|
2071
|
+
return {};
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
export const QueryPoolRequest = {
|
|
2075
|
+
encode(_: QueryPoolRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2076
|
+
return writer;
|
|
2077
|
+
},
|
|
2078
|
+
|
|
2079
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolRequest {
|
|
2080
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2081
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2082
|
+
const message = createBaseQueryPoolRequest();
|
|
2083
|
+
while (reader.pos < end) {
|
|
2084
|
+
const tag = reader.uint32();
|
|
2085
|
+
switch (tag >>> 3) {
|
|
2086
|
+
}
|
|
2087
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2088
|
+
break;
|
|
2089
|
+
}
|
|
2090
|
+
reader.skipType(tag & 7);
|
|
2091
|
+
}
|
|
2092
|
+
return message;
|
|
2093
|
+
},
|
|
2094
|
+
|
|
2095
|
+
fromJSON(_: any): QueryPoolRequest {
|
|
2096
|
+
return {};
|
|
2097
|
+
},
|
|
2098
|
+
|
|
2099
|
+
toJSON(_: QueryPoolRequest): unknown {
|
|
2100
|
+
const obj: any = {};
|
|
2101
|
+
return obj;
|
|
2102
|
+
},
|
|
2103
|
+
|
|
2104
|
+
create<I extends Exact<DeepPartial<QueryPoolRequest>, I>>(base?: I): QueryPoolRequest {
|
|
2105
|
+
return QueryPoolRequest.fromPartial(base ?? ({} as any));
|
|
2106
|
+
},
|
|
2107
|
+
fromPartial<I extends Exact<DeepPartial<QueryPoolRequest>, I>>(_: I): QueryPoolRequest {
|
|
2108
|
+
const message = createBaseQueryPoolRequest();
|
|
2109
|
+
return message;
|
|
2110
|
+
},
|
|
2111
|
+
};
|
|
2112
|
+
|
|
2113
|
+
function createBaseQueryPoolResponse(): QueryPoolResponse {
|
|
2114
|
+
return { pool: undefined };
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
export const QueryPoolResponse = {
|
|
2118
|
+
encode(message: QueryPoolResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2119
|
+
if (message.pool !== undefined) {
|
|
2120
|
+
Pool.encode(message.pool, writer.uint32(10).fork()).ldelim();
|
|
2121
|
+
}
|
|
2122
|
+
return writer;
|
|
2123
|
+
},
|
|
2124
|
+
|
|
2125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolResponse {
|
|
2126
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2127
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2128
|
+
const message = createBaseQueryPoolResponse();
|
|
2129
|
+
while (reader.pos < end) {
|
|
2130
|
+
const tag = reader.uint32();
|
|
2131
|
+
switch (tag >>> 3) {
|
|
2132
|
+
case 1:
|
|
2133
|
+
if (tag !== 10) {
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
message.pool = Pool.decode(reader, reader.uint32());
|
|
2138
|
+
continue;
|
|
2139
|
+
}
|
|
2140
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2141
|
+
break;
|
|
2142
|
+
}
|
|
2143
|
+
reader.skipType(tag & 7);
|
|
2144
|
+
}
|
|
2145
|
+
return message;
|
|
2146
|
+
},
|
|
2147
|
+
|
|
2148
|
+
fromJSON(object: any): QueryPoolResponse {
|
|
2149
|
+
return { pool: isSet(object.pool) ? Pool.fromJSON(object.pool) : undefined };
|
|
2150
|
+
},
|
|
2151
|
+
|
|
2152
|
+
toJSON(message: QueryPoolResponse): unknown {
|
|
2153
|
+
const obj: any = {};
|
|
2154
|
+
if (message.pool !== undefined) {
|
|
2155
|
+
obj.pool = Pool.toJSON(message.pool);
|
|
2156
|
+
}
|
|
2157
|
+
return obj;
|
|
2158
|
+
},
|
|
2159
|
+
|
|
2160
|
+
create<I extends Exact<DeepPartial<QueryPoolResponse>, I>>(base?: I): QueryPoolResponse {
|
|
2161
|
+
return QueryPoolResponse.fromPartial(base ?? ({} as any));
|
|
2162
|
+
},
|
|
2163
|
+
fromPartial<I extends Exact<DeepPartial<QueryPoolResponse>, I>>(object: I): QueryPoolResponse {
|
|
2164
|
+
const message = createBaseQueryPoolResponse();
|
|
2165
|
+
message.pool = (object.pool !== undefined && object.pool !== null) ? Pool.fromPartial(object.pool) : undefined;
|
|
2166
|
+
return message;
|
|
2167
|
+
},
|
|
2168
|
+
};
|
|
2169
|
+
|
|
2170
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
2171
|
+
return {};
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
export const QueryParamsRequest = {
|
|
2175
|
+
encode(_: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2176
|
+
return writer;
|
|
2177
|
+
},
|
|
2178
|
+
|
|
2179
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
|
2180
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2181
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2182
|
+
const message = createBaseQueryParamsRequest();
|
|
2183
|
+
while (reader.pos < end) {
|
|
2184
|
+
const tag = reader.uint32();
|
|
2185
|
+
switch (tag >>> 3) {
|
|
2186
|
+
}
|
|
2187
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2188
|
+
break;
|
|
2189
|
+
}
|
|
2190
|
+
reader.skipType(tag & 7);
|
|
2191
|
+
}
|
|
2192
|
+
return message;
|
|
2193
|
+
},
|
|
2194
|
+
|
|
2195
|
+
fromJSON(_: any): QueryParamsRequest {
|
|
2196
|
+
return {};
|
|
2197
|
+
},
|
|
2198
|
+
|
|
2199
|
+
toJSON(_: QueryParamsRequest): unknown {
|
|
2200
|
+
const obj: any = {};
|
|
2201
|
+
return obj;
|
|
2202
|
+
},
|
|
2203
|
+
|
|
2204
|
+
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest {
|
|
2205
|
+
return QueryParamsRequest.fromPartial(base ?? ({} as any));
|
|
2206
|
+
},
|
|
2207
|
+
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest {
|
|
2208
|
+
const message = createBaseQueryParamsRequest();
|
|
2209
|
+
return message;
|
|
2210
|
+
},
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
2214
|
+
return { params: undefined };
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
export const QueryParamsResponse = {
|
|
2218
|
+
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2219
|
+
if (message.params !== undefined) {
|
|
2220
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
2221
|
+
}
|
|
2222
|
+
return writer;
|
|
2223
|
+
},
|
|
2224
|
+
|
|
2225
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
|
2226
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2227
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2228
|
+
const message = createBaseQueryParamsResponse();
|
|
2229
|
+
while (reader.pos < end) {
|
|
2230
|
+
const tag = reader.uint32();
|
|
2231
|
+
switch (tag >>> 3) {
|
|
2232
|
+
case 1:
|
|
2233
|
+
if (tag !== 10) {
|
|
2234
|
+
break;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
2238
|
+
continue;
|
|
2239
|
+
}
|
|
2240
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2241
|
+
break;
|
|
2242
|
+
}
|
|
2243
|
+
reader.skipType(tag & 7);
|
|
2244
|
+
}
|
|
2245
|
+
return message;
|
|
2246
|
+
},
|
|
2247
|
+
|
|
2248
|
+
fromJSON(object: any): QueryParamsResponse {
|
|
2249
|
+
return { params: isSet(object.params) ? Params.fromJSON(object.params) : undefined };
|
|
2250
|
+
},
|
|
2251
|
+
|
|
2252
|
+
toJSON(message: QueryParamsResponse): unknown {
|
|
2253
|
+
const obj: any = {};
|
|
2254
|
+
if (message.params !== undefined) {
|
|
2255
|
+
obj.params = Params.toJSON(message.params);
|
|
2256
|
+
}
|
|
2257
|
+
return obj;
|
|
2258
|
+
},
|
|
2259
|
+
|
|
2260
|
+
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse {
|
|
2261
|
+
return QueryParamsResponse.fromPartial(base ?? ({} as any));
|
|
2262
|
+
},
|
|
2263
|
+
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse {
|
|
2264
|
+
const message = createBaseQueryParamsResponse();
|
|
2265
|
+
message.params = (object.params !== undefined && object.params !== null)
|
|
2266
|
+
? Params.fromPartial(object.params)
|
|
2267
|
+
: undefined;
|
|
2268
|
+
return message;
|
|
2269
|
+
},
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
/** Query defines the gRPC querier service. */
|
|
2273
|
+
export interface Query {
|
|
2274
|
+
/**
|
|
2275
|
+
* Validators queries all validators that match the given status.
|
|
2276
|
+
*
|
|
2277
|
+
* When called from another module, this query might consume a high amount of
|
|
2278
|
+
* gas if the pagination field is incorrectly set.
|
|
2279
|
+
*/
|
|
2280
|
+
Validators(request: DeepPartial<QueryValidatorsRequest>, metadata?: grpc.Metadata): Promise<QueryValidatorsResponse>;
|
|
2281
|
+
/** Validator queries validator info for given validator address. */
|
|
2282
|
+
Validator(request: DeepPartial<QueryValidatorRequest>, metadata?: grpc.Metadata): Promise<QueryValidatorResponse>;
|
|
2283
|
+
/**
|
|
2284
|
+
* ValidatorDelegations queries delegate info for given validator.
|
|
2285
|
+
*
|
|
2286
|
+
* When called from another module, this query might consume a high amount of
|
|
2287
|
+
* gas if the pagination field is incorrectly set.
|
|
2288
|
+
*/
|
|
2289
|
+
ValidatorDelegations(
|
|
2290
|
+
request: DeepPartial<QueryValidatorDelegationsRequest>,
|
|
2291
|
+
metadata?: grpc.Metadata,
|
|
2292
|
+
): Promise<QueryValidatorDelegationsResponse>;
|
|
2293
|
+
/**
|
|
2294
|
+
* ValidatorUnbondingDelegations queries unbonding delegations of a validator.
|
|
2295
|
+
*
|
|
2296
|
+
* When called from another module, this query might consume a high amount of
|
|
2297
|
+
* gas if the pagination field is incorrectly set.
|
|
2298
|
+
*/
|
|
2299
|
+
ValidatorUnbondingDelegations(
|
|
2300
|
+
request: DeepPartial<QueryValidatorUnbondingDelegationsRequest>,
|
|
2301
|
+
metadata?: grpc.Metadata,
|
|
2302
|
+
): Promise<QueryValidatorUnbondingDelegationsResponse>;
|
|
2303
|
+
/** Delegation queries delegate info for given validator delegator pair. */
|
|
2304
|
+
Delegation(request: DeepPartial<QueryDelegationRequest>, metadata?: grpc.Metadata): Promise<QueryDelegationResponse>;
|
|
2305
|
+
/**
|
|
2306
|
+
* UnbondingDelegation queries unbonding info for given validator delegator
|
|
2307
|
+
* pair.
|
|
2308
|
+
*/
|
|
2309
|
+
UnbondingDelegation(
|
|
2310
|
+
request: DeepPartial<QueryUnbondingDelegationRequest>,
|
|
2311
|
+
metadata?: grpc.Metadata,
|
|
2312
|
+
): Promise<QueryUnbondingDelegationResponse>;
|
|
2313
|
+
/**
|
|
2314
|
+
* DelegatorDelegations queries all delegations of a given delegator address.
|
|
2315
|
+
*
|
|
2316
|
+
* When called from another module, this query might consume a high amount of
|
|
2317
|
+
* gas if the pagination field is incorrectly set.
|
|
2318
|
+
*/
|
|
2319
|
+
DelegatorDelegations(
|
|
2320
|
+
request: DeepPartial<QueryDelegatorDelegationsRequest>,
|
|
2321
|
+
metadata?: grpc.Metadata,
|
|
2322
|
+
): Promise<QueryDelegatorDelegationsResponse>;
|
|
2323
|
+
/**
|
|
2324
|
+
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
|
|
2325
|
+
* delegator address.
|
|
2326
|
+
*
|
|
2327
|
+
* When called from another module, this query might consume a high amount of
|
|
2328
|
+
* gas if the pagination field is incorrectly set.
|
|
2329
|
+
*/
|
|
2330
|
+
DelegatorUnbondingDelegations(
|
|
2331
|
+
request: DeepPartial<QueryDelegatorUnbondingDelegationsRequest>,
|
|
2332
|
+
metadata?: grpc.Metadata,
|
|
2333
|
+
): Promise<QueryDelegatorUnbondingDelegationsResponse>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Redelegations queries redelegations of given address.
|
|
2336
|
+
*
|
|
2337
|
+
* When called from another module, this query might consume a high amount of
|
|
2338
|
+
* gas if the pagination field is incorrectly set.
|
|
2339
|
+
*/
|
|
2340
|
+
Redelegations(
|
|
2341
|
+
request: DeepPartial<QueryRedelegationsRequest>,
|
|
2342
|
+
metadata?: grpc.Metadata,
|
|
2343
|
+
): Promise<QueryRedelegationsResponse>;
|
|
2344
|
+
/**
|
|
2345
|
+
* DelegatorValidators queries all validators info for given delegator
|
|
2346
|
+
* address.
|
|
2347
|
+
*
|
|
2348
|
+
* When called from another module, this query might consume a high amount of
|
|
2349
|
+
* gas if the pagination field is incorrectly set.
|
|
2350
|
+
*/
|
|
2351
|
+
DelegatorValidators(
|
|
2352
|
+
request: DeepPartial<QueryDelegatorValidatorsRequest>,
|
|
2353
|
+
metadata?: grpc.Metadata,
|
|
2354
|
+
): Promise<QueryDelegatorValidatorsResponse>;
|
|
2355
|
+
/**
|
|
2356
|
+
* DelegatorValidator queries validator info for given delegator validator
|
|
2357
|
+
* pair.
|
|
2358
|
+
*/
|
|
2359
|
+
DelegatorValidator(
|
|
2360
|
+
request: DeepPartial<QueryDelegatorValidatorRequest>,
|
|
2361
|
+
metadata?: grpc.Metadata,
|
|
2362
|
+
): Promise<QueryDelegatorValidatorResponse>;
|
|
2363
|
+
/** HistoricalInfo queries the historical info for given height. */
|
|
2364
|
+
HistoricalInfo(
|
|
2365
|
+
request: DeepPartial<QueryHistoricalInfoRequest>,
|
|
2366
|
+
metadata?: grpc.Metadata,
|
|
2367
|
+
): Promise<QueryHistoricalInfoResponse>;
|
|
2368
|
+
/** Pool queries the pool info. */
|
|
2369
|
+
Pool(request: DeepPartial<QueryPoolRequest>, metadata?: grpc.Metadata): Promise<QueryPoolResponse>;
|
|
2370
|
+
/** Parameters queries the staking parameters. */
|
|
2371
|
+
Params(request: DeepPartial<QueryParamsRequest>, metadata?: grpc.Metadata): Promise<QueryParamsResponse>;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
export class QueryClientImpl implements Query {
|
|
2375
|
+
private readonly rpc: Rpc;
|
|
2376
|
+
|
|
2377
|
+
constructor(rpc: Rpc) {
|
|
2378
|
+
this.rpc = rpc;
|
|
2379
|
+
this.Validators = this.Validators.bind(this);
|
|
2380
|
+
this.Validator = this.Validator.bind(this);
|
|
2381
|
+
this.ValidatorDelegations = this.ValidatorDelegations.bind(this);
|
|
2382
|
+
this.ValidatorUnbondingDelegations = this.ValidatorUnbondingDelegations.bind(this);
|
|
2383
|
+
this.Delegation = this.Delegation.bind(this);
|
|
2384
|
+
this.UnbondingDelegation = this.UnbondingDelegation.bind(this);
|
|
2385
|
+
this.DelegatorDelegations = this.DelegatorDelegations.bind(this);
|
|
2386
|
+
this.DelegatorUnbondingDelegations = this.DelegatorUnbondingDelegations.bind(this);
|
|
2387
|
+
this.Redelegations = this.Redelegations.bind(this);
|
|
2388
|
+
this.DelegatorValidators = this.DelegatorValidators.bind(this);
|
|
2389
|
+
this.DelegatorValidator = this.DelegatorValidator.bind(this);
|
|
2390
|
+
this.HistoricalInfo = this.HistoricalInfo.bind(this);
|
|
2391
|
+
this.Pool = this.Pool.bind(this);
|
|
2392
|
+
this.Params = this.Params.bind(this);
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
Validators(request: DeepPartial<QueryValidatorsRequest>, metadata?: grpc.Metadata): Promise<QueryValidatorsResponse> {
|
|
2396
|
+
return this.rpc.unary(QueryValidatorsDesc, QueryValidatorsRequest.fromPartial(request), metadata);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
Validator(request: DeepPartial<QueryValidatorRequest>, metadata?: grpc.Metadata): Promise<QueryValidatorResponse> {
|
|
2400
|
+
return this.rpc.unary(QueryValidatorDesc, QueryValidatorRequest.fromPartial(request), metadata);
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
ValidatorDelegations(
|
|
2404
|
+
request: DeepPartial<QueryValidatorDelegationsRequest>,
|
|
2405
|
+
metadata?: grpc.Metadata,
|
|
2406
|
+
): Promise<QueryValidatorDelegationsResponse> {
|
|
2407
|
+
return this.rpc.unary(
|
|
2408
|
+
QueryValidatorDelegationsDesc,
|
|
2409
|
+
QueryValidatorDelegationsRequest.fromPartial(request),
|
|
2410
|
+
metadata,
|
|
2411
|
+
);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
ValidatorUnbondingDelegations(
|
|
2415
|
+
request: DeepPartial<QueryValidatorUnbondingDelegationsRequest>,
|
|
2416
|
+
metadata?: grpc.Metadata,
|
|
2417
|
+
): Promise<QueryValidatorUnbondingDelegationsResponse> {
|
|
2418
|
+
return this.rpc.unary(
|
|
2419
|
+
QueryValidatorUnbondingDelegationsDesc,
|
|
2420
|
+
QueryValidatorUnbondingDelegationsRequest.fromPartial(request),
|
|
2421
|
+
metadata,
|
|
2422
|
+
);
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
Delegation(request: DeepPartial<QueryDelegationRequest>, metadata?: grpc.Metadata): Promise<QueryDelegationResponse> {
|
|
2426
|
+
return this.rpc.unary(QueryDelegationDesc, QueryDelegationRequest.fromPartial(request), metadata);
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
UnbondingDelegation(
|
|
2430
|
+
request: DeepPartial<QueryUnbondingDelegationRequest>,
|
|
2431
|
+
metadata?: grpc.Metadata,
|
|
2432
|
+
): Promise<QueryUnbondingDelegationResponse> {
|
|
2433
|
+
return this.rpc.unary(QueryUnbondingDelegationDesc, QueryUnbondingDelegationRequest.fromPartial(request), metadata);
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
DelegatorDelegations(
|
|
2437
|
+
request: DeepPartial<QueryDelegatorDelegationsRequest>,
|
|
2438
|
+
metadata?: grpc.Metadata,
|
|
2439
|
+
): Promise<QueryDelegatorDelegationsResponse> {
|
|
2440
|
+
return this.rpc.unary(
|
|
2441
|
+
QueryDelegatorDelegationsDesc,
|
|
2442
|
+
QueryDelegatorDelegationsRequest.fromPartial(request),
|
|
2443
|
+
metadata,
|
|
2444
|
+
);
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
DelegatorUnbondingDelegations(
|
|
2448
|
+
request: DeepPartial<QueryDelegatorUnbondingDelegationsRequest>,
|
|
2449
|
+
metadata?: grpc.Metadata,
|
|
2450
|
+
): Promise<QueryDelegatorUnbondingDelegationsResponse> {
|
|
2451
|
+
return this.rpc.unary(
|
|
2452
|
+
QueryDelegatorUnbondingDelegationsDesc,
|
|
2453
|
+
QueryDelegatorUnbondingDelegationsRequest.fromPartial(request),
|
|
2454
|
+
metadata,
|
|
2455
|
+
);
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
Redelegations(
|
|
2459
|
+
request: DeepPartial<QueryRedelegationsRequest>,
|
|
2460
|
+
metadata?: grpc.Metadata,
|
|
2461
|
+
): Promise<QueryRedelegationsResponse> {
|
|
2462
|
+
return this.rpc.unary(QueryRedelegationsDesc, QueryRedelegationsRequest.fromPartial(request), metadata);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
DelegatorValidators(
|
|
2466
|
+
request: DeepPartial<QueryDelegatorValidatorsRequest>,
|
|
2467
|
+
metadata?: grpc.Metadata,
|
|
2468
|
+
): Promise<QueryDelegatorValidatorsResponse> {
|
|
2469
|
+
return this.rpc.unary(QueryDelegatorValidatorsDesc, QueryDelegatorValidatorsRequest.fromPartial(request), metadata);
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
DelegatorValidator(
|
|
2473
|
+
request: DeepPartial<QueryDelegatorValidatorRequest>,
|
|
2474
|
+
metadata?: grpc.Metadata,
|
|
2475
|
+
): Promise<QueryDelegatorValidatorResponse> {
|
|
2476
|
+
return this.rpc.unary(QueryDelegatorValidatorDesc, QueryDelegatorValidatorRequest.fromPartial(request), metadata);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
HistoricalInfo(
|
|
2480
|
+
request: DeepPartial<QueryHistoricalInfoRequest>,
|
|
2481
|
+
metadata?: grpc.Metadata,
|
|
2482
|
+
): Promise<QueryHistoricalInfoResponse> {
|
|
2483
|
+
return this.rpc.unary(QueryHistoricalInfoDesc, QueryHistoricalInfoRequest.fromPartial(request), metadata);
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
Pool(request: DeepPartial<QueryPoolRequest>, metadata?: grpc.Metadata): Promise<QueryPoolResponse> {
|
|
2487
|
+
return this.rpc.unary(QueryPoolDesc, QueryPoolRequest.fromPartial(request), metadata);
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
Params(request: DeepPartial<QueryParamsRequest>, metadata?: grpc.Metadata): Promise<QueryParamsResponse> {
|
|
2491
|
+
return this.rpc.unary(QueryParamsDesc, QueryParamsRequest.fromPartial(request), metadata);
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
export const QueryDesc = { serviceName: "cosmos.staking.v1beta1.Query" };
|
|
2496
|
+
|
|
2497
|
+
export const QueryValidatorsDesc: UnaryMethodDefinitionish = {
|
|
2498
|
+
methodName: "Validators",
|
|
2499
|
+
service: QueryDesc,
|
|
2500
|
+
requestStream: false,
|
|
2501
|
+
responseStream: false,
|
|
2502
|
+
requestType: {
|
|
2503
|
+
serializeBinary() {
|
|
2504
|
+
return QueryValidatorsRequest.encode(this).finish();
|
|
2505
|
+
},
|
|
2506
|
+
} as any,
|
|
2507
|
+
responseType: {
|
|
2508
|
+
deserializeBinary(data: Uint8Array) {
|
|
2509
|
+
const value = QueryValidatorsResponse.decode(data);
|
|
2510
|
+
return {
|
|
2511
|
+
...value,
|
|
2512
|
+
toObject() {
|
|
2513
|
+
return value;
|
|
2514
|
+
},
|
|
2515
|
+
};
|
|
2516
|
+
},
|
|
2517
|
+
} as any,
|
|
2518
|
+
};
|
|
2519
|
+
|
|
2520
|
+
export const QueryValidatorDesc: UnaryMethodDefinitionish = {
|
|
2521
|
+
methodName: "Validator",
|
|
2522
|
+
service: QueryDesc,
|
|
2523
|
+
requestStream: false,
|
|
2524
|
+
responseStream: false,
|
|
2525
|
+
requestType: {
|
|
2526
|
+
serializeBinary() {
|
|
2527
|
+
return QueryValidatorRequest.encode(this).finish();
|
|
2528
|
+
},
|
|
2529
|
+
} as any,
|
|
2530
|
+
responseType: {
|
|
2531
|
+
deserializeBinary(data: Uint8Array) {
|
|
2532
|
+
const value = QueryValidatorResponse.decode(data);
|
|
2533
|
+
return {
|
|
2534
|
+
...value,
|
|
2535
|
+
toObject() {
|
|
2536
|
+
return value;
|
|
2537
|
+
},
|
|
2538
|
+
};
|
|
2539
|
+
},
|
|
2540
|
+
} as any,
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
export const QueryValidatorDelegationsDesc: UnaryMethodDefinitionish = {
|
|
2544
|
+
methodName: "ValidatorDelegations",
|
|
2545
|
+
service: QueryDesc,
|
|
2546
|
+
requestStream: false,
|
|
2547
|
+
responseStream: false,
|
|
2548
|
+
requestType: {
|
|
2549
|
+
serializeBinary() {
|
|
2550
|
+
return QueryValidatorDelegationsRequest.encode(this).finish();
|
|
2551
|
+
},
|
|
2552
|
+
} as any,
|
|
2553
|
+
responseType: {
|
|
2554
|
+
deserializeBinary(data: Uint8Array) {
|
|
2555
|
+
const value = QueryValidatorDelegationsResponse.decode(data);
|
|
2556
|
+
return {
|
|
2557
|
+
...value,
|
|
2558
|
+
toObject() {
|
|
2559
|
+
return value;
|
|
2560
|
+
},
|
|
2561
|
+
};
|
|
2562
|
+
},
|
|
2563
|
+
} as any,
|
|
2564
|
+
};
|
|
2565
|
+
|
|
2566
|
+
export const QueryValidatorUnbondingDelegationsDesc: UnaryMethodDefinitionish = {
|
|
2567
|
+
methodName: "ValidatorUnbondingDelegations",
|
|
2568
|
+
service: QueryDesc,
|
|
2569
|
+
requestStream: false,
|
|
2570
|
+
responseStream: false,
|
|
2571
|
+
requestType: {
|
|
2572
|
+
serializeBinary() {
|
|
2573
|
+
return QueryValidatorUnbondingDelegationsRequest.encode(this).finish();
|
|
2574
|
+
},
|
|
2575
|
+
} as any,
|
|
2576
|
+
responseType: {
|
|
2577
|
+
deserializeBinary(data: Uint8Array) {
|
|
2578
|
+
const value = QueryValidatorUnbondingDelegationsResponse.decode(data);
|
|
2579
|
+
return {
|
|
2580
|
+
...value,
|
|
2581
|
+
toObject() {
|
|
2582
|
+
return value;
|
|
2583
|
+
},
|
|
2584
|
+
};
|
|
2585
|
+
},
|
|
2586
|
+
} as any,
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
export const QueryDelegationDesc: UnaryMethodDefinitionish = {
|
|
2590
|
+
methodName: "Delegation",
|
|
2591
|
+
service: QueryDesc,
|
|
2592
|
+
requestStream: false,
|
|
2593
|
+
responseStream: false,
|
|
2594
|
+
requestType: {
|
|
2595
|
+
serializeBinary() {
|
|
2596
|
+
return QueryDelegationRequest.encode(this).finish();
|
|
2597
|
+
},
|
|
2598
|
+
} as any,
|
|
2599
|
+
responseType: {
|
|
2600
|
+
deserializeBinary(data: Uint8Array) {
|
|
2601
|
+
const value = QueryDelegationResponse.decode(data);
|
|
2602
|
+
return {
|
|
2603
|
+
...value,
|
|
2604
|
+
toObject() {
|
|
2605
|
+
return value;
|
|
2606
|
+
},
|
|
2607
|
+
};
|
|
2608
|
+
},
|
|
2609
|
+
} as any,
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2612
|
+
export const QueryUnbondingDelegationDesc: UnaryMethodDefinitionish = {
|
|
2613
|
+
methodName: "UnbondingDelegation",
|
|
2614
|
+
service: QueryDesc,
|
|
2615
|
+
requestStream: false,
|
|
2616
|
+
responseStream: false,
|
|
2617
|
+
requestType: {
|
|
2618
|
+
serializeBinary() {
|
|
2619
|
+
return QueryUnbondingDelegationRequest.encode(this).finish();
|
|
2620
|
+
},
|
|
2621
|
+
} as any,
|
|
2622
|
+
responseType: {
|
|
2623
|
+
deserializeBinary(data: Uint8Array) {
|
|
2624
|
+
const value = QueryUnbondingDelegationResponse.decode(data);
|
|
2625
|
+
return {
|
|
2626
|
+
...value,
|
|
2627
|
+
toObject() {
|
|
2628
|
+
return value;
|
|
2629
|
+
},
|
|
2630
|
+
};
|
|
2631
|
+
},
|
|
2632
|
+
} as any,
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
export const QueryDelegatorDelegationsDesc: UnaryMethodDefinitionish = {
|
|
2636
|
+
methodName: "DelegatorDelegations",
|
|
2637
|
+
service: QueryDesc,
|
|
2638
|
+
requestStream: false,
|
|
2639
|
+
responseStream: false,
|
|
2640
|
+
requestType: {
|
|
2641
|
+
serializeBinary() {
|
|
2642
|
+
return QueryDelegatorDelegationsRequest.encode(this).finish();
|
|
2643
|
+
},
|
|
2644
|
+
} as any,
|
|
2645
|
+
responseType: {
|
|
2646
|
+
deserializeBinary(data: Uint8Array) {
|
|
2647
|
+
const value = QueryDelegatorDelegationsResponse.decode(data);
|
|
2648
|
+
return {
|
|
2649
|
+
...value,
|
|
2650
|
+
toObject() {
|
|
2651
|
+
return value;
|
|
2652
|
+
},
|
|
2653
|
+
};
|
|
2654
|
+
},
|
|
2655
|
+
} as any,
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
export const QueryDelegatorUnbondingDelegationsDesc: UnaryMethodDefinitionish = {
|
|
2659
|
+
methodName: "DelegatorUnbondingDelegations",
|
|
2660
|
+
service: QueryDesc,
|
|
2661
|
+
requestStream: false,
|
|
2662
|
+
responseStream: false,
|
|
2663
|
+
requestType: {
|
|
2664
|
+
serializeBinary() {
|
|
2665
|
+
return QueryDelegatorUnbondingDelegationsRequest.encode(this).finish();
|
|
2666
|
+
},
|
|
2667
|
+
} as any,
|
|
2668
|
+
responseType: {
|
|
2669
|
+
deserializeBinary(data: Uint8Array) {
|
|
2670
|
+
const value = QueryDelegatorUnbondingDelegationsResponse.decode(data);
|
|
2671
|
+
return {
|
|
2672
|
+
...value,
|
|
2673
|
+
toObject() {
|
|
2674
|
+
return value;
|
|
2675
|
+
},
|
|
2676
|
+
};
|
|
2677
|
+
},
|
|
2678
|
+
} as any,
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
export const QueryRedelegationsDesc: UnaryMethodDefinitionish = {
|
|
2682
|
+
methodName: "Redelegations",
|
|
2683
|
+
service: QueryDesc,
|
|
2684
|
+
requestStream: false,
|
|
2685
|
+
responseStream: false,
|
|
2686
|
+
requestType: {
|
|
2687
|
+
serializeBinary() {
|
|
2688
|
+
return QueryRedelegationsRequest.encode(this).finish();
|
|
2689
|
+
},
|
|
2690
|
+
} as any,
|
|
2691
|
+
responseType: {
|
|
2692
|
+
deserializeBinary(data: Uint8Array) {
|
|
2693
|
+
const value = QueryRedelegationsResponse.decode(data);
|
|
2694
|
+
return {
|
|
2695
|
+
...value,
|
|
2696
|
+
toObject() {
|
|
2697
|
+
return value;
|
|
2698
|
+
},
|
|
2699
|
+
};
|
|
2700
|
+
},
|
|
2701
|
+
} as any,
|
|
2702
|
+
};
|
|
2703
|
+
|
|
2704
|
+
export const QueryDelegatorValidatorsDesc: UnaryMethodDefinitionish = {
|
|
2705
|
+
methodName: "DelegatorValidators",
|
|
2706
|
+
service: QueryDesc,
|
|
2707
|
+
requestStream: false,
|
|
2708
|
+
responseStream: false,
|
|
2709
|
+
requestType: {
|
|
2710
|
+
serializeBinary() {
|
|
2711
|
+
return QueryDelegatorValidatorsRequest.encode(this).finish();
|
|
2712
|
+
},
|
|
2713
|
+
} as any,
|
|
2714
|
+
responseType: {
|
|
2715
|
+
deserializeBinary(data: Uint8Array) {
|
|
2716
|
+
const value = QueryDelegatorValidatorsResponse.decode(data);
|
|
2717
|
+
return {
|
|
2718
|
+
...value,
|
|
2719
|
+
toObject() {
|
|
2720
|
+
return value;
|
|
2721
|
+
},
|
|
2722
|
+
};
|
|
2723
|
+
},
|
|
2724
|
+
} as any,
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
export const QueryDelegatorValidatorDesc: UnaryMethodDefinitionish = {
|
|
2728
|
+
methodName: "DelegatorValidator",
|
|
2729
|
+
service: QueryDesc,
|
|
2730
|
+
requestStream: false,
|
|
2731
|
+
responseStream: false,
|
|
2732
|
+
requestType: {
|
|
2733
|
+
serializeBinary() {
|
|
2734
|
+
return QueryDelegatorValidatorRequest.encode(this).finish();
|
|
2735
|
+
},
|
|
2736
|
+
} as any,
|
|
2737
|
+
responseType: {
|
|
2738
|
+
deserializeBinary(data: Uint8Array) {
|
|
2739
|
+
const value = QueryDelegatorValidatorResponse.decode(data);
|
|
2740
|
+
return {
|
|
2741
|
+
...value,
|
|
2742
|
+
toObject() {
|
|
2743
|
+
return value;
|
|
2744
|
+
},
|
|
2745
|
+
};
|
|
2746
|
+
},
|
|
2747
|
+
} as any,
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2750
|
+
export const QueryHistoricalInfoDesc: UnaryMethodDefinitionish = {
|
|
2751
|
+
methodName: "HistoricalInfo",
|
|
2752
|
+
service: QueryDesc,
|
|
2753
|
+
requestStream: false,
|
|
2754
|
+
responseStream: false,
|
|
2755
|
+
requestType: {
|
|
2756
|
+
serializeBinary() {
|
|
2757
|
+
return QueryHistoricalInfoRequest.encode(this).finish();
|
|
2758
|
+
},
|
|
2759
|
+
} as any,
|
|
2760
|
+
responseType: {
|
|
2761
|
+
deserializeBinary(data: Uint8Array) {
|
|
2762
|
+
const value = QueryHistoricalInfoResponse.decode(data);
|
|
2763
|
+
return {
|
|
2764
|
+
...value,
|
|
2765
|
+
toObject() {
|
|
2766
|
+
return value;
|
|
2767
|
+
},
|
|
2768
|
+
};
|
|
2769
|
+
},
|
|
2770
|
+
} as any,
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
export const QueryPoolDesc: UnaryMethodDefinitionish = {
|
|
2774
|
+
methodName: "Pool",
|
|
2775
|
+
service: QueryDesc,
|
|
2776
|
+
requestStream: false,
|
|
2777
|
+
responseStream: false,
|
|
2778
|
+
requestType: {
|
|
2779
|
+
serializeBinary() {
|
|
2780
|
+
return QueryPoolRequest.encode(this).finish();
|
|
2781
|
+
},
|
|
2782
|
+
} as any,
|
|
2783
|
+
responseType: {
|
|
2784
|
+
deserializeBinary(data: Uint8Array) {
|
|
2785
|
+
const value = QueryPoolResponse.decode(data);
|
|
2786
|
+
return {
|
|
2787
|
+
...value,
|
|
2788
|
+
toObject() {
|
|
2789
|
+
return value;
|
|
2790
|
+
},
|
|
2791
|
+
};
|
|
2792
|
+
},
|
|
2793
|
+
} as any,
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2796
|
+
export const QueryParamsDesc: UnaryMethodDefinitionish = {
|
|
2797
|
+
methodName: "Params",
|
|
2798
|
+
service: QueryDesc,
|
|
2799
|
+
requestStream: false,
|
|
2800
|
+
responseStream: false,
|
|
2801
|
+
requestType: {
|
|
2802
|
+
serializeBinary() {
|
|
2803
|
+
return QueryParamsRequest.encode(this).finish();
|
|
2804
|
+
},
|
|
2805
|
+
} as any,
|
|
2806
|
+
responseType: {
|
|
2807
|
+
deserializeBinary(data: Uint8Array) {
|
|
2808
|
+
const value = QueryParamsResponse.decode(data);
|
|
2809
|
+
return {
|
|
2810
|
+
...value,
|
|
2811
|
+
toObject() {
|
|
2812
|
+
return value;
|
|
2813
|
+
},
|
|
2814
|
+
};
|
|
2815
|
+
},
|
|
2816
|
+
} as any,
|
|
2817
|
+
};
|
|
2818
|
+
|
|
2819
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
2820
|
+
requestStream: any;
|
|
2821
|
+
responseStream: any;
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
2825
|
+
|
|
2826
|
+
interface Rpc {
|
|
2827
|
+
unary<T extends UnaryMethodDefinitionish>(
|
|
2828
|
+
methodDesc: T,
|
|
2829
|
+
request: any,
|
|
2830
|
+
metadata: grpc.Metadata | undefined,
|
|
2831
|
+
): Promise<any>;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
export class GrpcWebImpl {
|
|
2835
|
+
private host: string;
|
|
2836
|
+
private options: {
|
|
2837
|
+
transport?: grpc.TransportFactory;
|
|
2838
|
+
|
|
2839
|
+
debug?: boolean;
|
|
2840
|
+
metadata?: grpc.Metadata;
|
|
2841
|
+
upStreamRetryCodes?: number[];
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
constructor(
|
|
2845
|
+
host: string,
|
|
2846
|
+
options: {
|
|
2847
|
+
transport?: grpc.TransportFactory;
|
|
2848
|
+
|
|
2849
|
+
debug?: boolean;
|
|
2850
|
+
metadata?: grpc.Metadata;
|
|
2851
|
+
upStreamRetryCodes?: number[];
|
|
2852
|
+
},
|
|
2853
|
+
) {
|
|
2854
|
+
this.host = host;
|
|
2855
|
+
this.options = options;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
unary<T extends UnaryMethodDefinitionish>(
|
|
2859
|
+
methodDesc: T,
|
|
2860
|
+
_request: any,
|
|
2861
|
+
metadata: grpc.Metadata | undefined,
|
|
2862
|
+
): Promise<any> {
|
|
2863
|
+
const request = { ..._request, ...methodDesc.requestType };
|
|
2864
|
+
const maybeCombinedMetadata = metadata && this.options.metadata
|
|
2865
|
+
? new BrowserHeaders({ ...this.options?.metadata.headersMap, ...metadata?.headersMap })
|
|
2866
|
+
: metadata ?? this.options.metadata;
|
|
2867
|
+
return new Promise((resolve, reject) => {
|
|
2868
|
+
grpc.unary(methodDesc, {
|
|
2869
|
+
request,
|
|
2870
|
+
host: this.host,
|
|
2871
|
+
metadata: maybeCombinedMetadata ?? {},
|
|
2872
|
+
...(this.options.transport !== undefined ? { transport: this.options.transport } : {}),
|
|
2873
|
+
debug: this.options.debug ?? false,
|
|
2874
|
+
onEnd: function (response) {
|
|
2875
|
+
if (response.status === grpc.Code.OK) {
|
|
2876
|
+
resolve(response.message!.toObject());
|
|
2877
|
+
} else {
|
|
2878
|
+
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
2879
|
+
reject(err);
|
|
2880
|
+
}
|
|
2881
|
+
},
|
|
2882
|
+
});
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2888
|
+
|
|
2889
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
2890
|
+
: T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
2891
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
2892
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2893
|
+
: Partial<T>;
|
|
2894
|
+
|
|
2895
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2896
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
2897
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
2898
|
+
|
|
2899
|
+
if (_m0.util.Long !== Long) {
|
|
2900
|
+
_m0.util.Long = Long as any;
|
|
2901
|
+
_m0.configure();
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
function isSet(value: any): boolean {
|
|
2905
|
+
return value !== null && value !== undefined;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
export class GrpcWebError extends globalThis.Error {
|
|
2909
|
+
constructor(message: string, public code: grpc.Code, public metadata: grpc.Metadata) {
|
|
2910
|
+
super(message);
|
|
2911
|
+
}
|
|
2912
|
+
}
|