@burnt-labs/xion-types 25.0.0 → 25.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/abstractaccount/bundle.ts +14 -14
- package/types/cosmos/bundle.ts +226 -226
- package/types/cosmwasm/bundle.ts +14 -14
- package/types/cosmwasm/wasm/v1/query.lcd.ts +1 -1
- package/types/cosmwasm/wasm/v1/types.ts +16 -16
- package/types/ibc/bundle.ts +96 -96
- package/types/xion/bundle.ts +88 -66
- package/types/xion/indexer/authz/v1/query.lcd.ts +63 -0
- package/types/xion/indexer/authz/v1/query.rpc.Query.ts +61 -0
- package/types/xion/indexer/authz/v1/query.ts +753 -0
- package/types/xion/indexer/feegrant/v1/query.lcd.ts +44 -0
- package/types/xion/indexer/feegrant/v1/query.rpc.Query.ts +53 -0
- package/types/xion/indexer/feegrant/v1/query.ts +694 -0
- package/types/xion/lcd.ts +12 -0
- package/types/xion/rpc.query.ts +8 -0
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { Grant, GrantAmino, GrantSDKType } from "../../../../cosmos/feegrant/v1beta1/feegrant";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
5
|
+
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
|
6
|
+
export interface QueryAllowanceRequest {
|
|
7
|
+
/** granter is the address of the user granting an allowance of their funds. */
|
|
8
|
+
granter: string;
|
|
9
|
+
/**
|
|
10
|
+
* grantee is the address of the user being granted an allowance of another
|
|
11
|
+
* user's funds.
|
|
12
|
+
*/
|
|
13
|
+
grantee: string;
|
|
14
|
+
}
|
|
15
|
+
export interface QueryAllowanceRequestProtoMsg {
|
|
16
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowanceRequest";
|
|
17
|
+
value: Uint8Array;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* QueryAllowanceRequest is the request type for the Query/Allowance RPC method.
|
|
21
|
+
* @name QueryAllowanceRequestAmino
|
|
22
|
+
* @package xion.indexer.feegrant.v1
|
|
23
|
+
* @see proto type: xion.indexer.feegrant.v1.QueryAllowanceRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface QueryAllowanceRequestAmino {
|
|
26
|
+
/**
|
|
27
|
+
* granter is the address of the user granting an allowance of their funds.
|
|
28
|
+
*/
|
|
29
|
+
granter?: string;
|
|
30
|
+
/**
|
|
31
|
+
* grantee is the address of the user being granted an allowance of another
|
|
32
|
+
* user's funds.
|
|
33
|
+
*/
|
|
34
|
+
grantee?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface QueryAllowanceRequestAminoMsg {
|
|
37
|
+
type: "/xion.indexer.feegrant.v1.QueryAllowanceRequest";
|
|
38
|
+
value: QueryAllowanceRequestAmino;
|
|
39
|
+
}
|
|
40
|
+
/** QueryAllowanceRequest is the request type for the Query/Allowance RPC method. */
|
|
41
|
+
export interface QueryAllowanceRequestSDKType {
|
|
42
|
+
granter: string;
|
|
43
|
+
grantee: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* QueryAllowanceResponse is the response type for the Query/Allowance RPC
|
|
47
|
+
* method.
|
|
48
|
+
*/
|
|
49
|
+
export interface QueryAllowanceResponse {
|
|
50
|
+
/** allowance is a allowance granted for grantee by granter. */
|
|
51
|
+
allowance?: Grant;
|
|
52
|
+
}
|
|
53
|
+
export interface QueryAllowanceResponseProtoMsg {
|
|
54
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowanceResponse";
|
|
55
|
+
value: Uint8Array;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* QueryAllowanceResponse is the response type for the Query/Allowance RPC
|
|
59
|
+
* method.
|
|
60
|
+
* @name QueryAllowanceResponseAmino
|
|
61
|
+
* @package xion.indexer.feegrant.v1
|
|
62
|
+
* @see proto type: xion.indexer.feegrant.v1.QueryAllowanceResponse
|
|
63
|
+
*/
|
|
64
|
+
export interface QueryAllowanceResponseAmino {
|
|
65
|
+
/**
|
|
66
|
+
* allowance is a allowance granted for grantee by granter.
|
|
67
|
+
*/
|
|
68
|
+
allowance?: GrantAmino;
|
|
69
|
+
}
|
|
70
|
+
export interface QueryAllowanceResponseAminoMsg {
|
|
71
|
+
type: "/xion.indexer.feegrant.v1.QueryAllowanceResponse";
|
|
72
|
+
value: QueryAllowanceResponseAmino;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* QueryAllowanceResponse is the response type for the Query/Allowance RPC
|
|
76
|
+
* method.
|
|
77
|
+
*/
|
|
78
|
+
export interface QueryAllowanceResponseSDKType {
|
|
79
|
+
allowance?: GrantSDKType;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* QueryAllowancesRequest is the request type for the Query/Allowances RPC
|
|
83
|
+
* method.
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryAllowancesRequest {
|
|
86
|
+
/** grantee is the address of the user being granted fee allowances */
|
|
87
|
+
grantee: string;
|
|
88
|
+
/** pagination defines pagination for the request. */
|
|
89
|
+
pagination?: PageRequest;
|
|
90
|
+
}
|
|
91
|
+
export interface QueryAllowancesRequestProtoMsg {
|
|
92
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesRequest";
|
|
93
|
+
value: Uint8Array;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* QueryAllowancesRequest is the request type for the Query/Allowances RPC
|
|
97
|
+
* method.
|
|
98
|
+
* @name QueryAllowancesRequestAmino
|
|
99
|
+
* @package xion.indexer.feegrant.v1
|
|
100
|
+
* @see proto type: xion.indexer.feegrant.v1.QueryAllowancesRequest
|
|
101
|
+
*/
|
|
102
|
+
export interface QueryAllowancesRequestAmino {
|
|
103
|
+
/**
|
|
104
|
+
* grantee is the address of the user being granted fee allowances
|
|
105
|
+
*/
|
|
106
|
+
grantee?: string;
|
|
107
|
+
/**
|
|
108
|
+
* pagination defines pagination for the request.
|
|
109
|
+
*/
|
|
110
|
+
pagination?: PageRequestAmino;
|
|
111
|
+
}
|
|
112
|
+
export interface QueryAllowancesRequestAminoMsg {
|
|
113
|
+
type: "/xion.indexer.feegrant.v1.QueryAllowancesRequest";
|
|
114
|
+
value: QueryAllowancesRequestAmino;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* QueryAllowancesRequest is the request type for the Query/Allowances RPC
|
|
118
|
+
* method.
|
|
119
|
+
*/
|
|
120
|
+
export interface QueryAllowancesRequestSDKType {
|
|
121
|
+
grantee: string;
|
|
122
|
+
pagination?: PageRequestSDKType;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* QueryAllowancesResponse is the response type for the Query/Allowances RPC
|
|
126
|
+
* method.
|
|
127
|
+
*/
|
|
128
|
+
export interface QueryAllowancesResponse {
|
|
129
|
+
/** allowances are allowances granted for grantee by granter. */
|
|
130
|
+
allowances: Grant[];
|
|
131
|
+
/** pagination defines pagination for the response. */
|
|
132
|
+
pagination?: PageResponse;
|
|
133
|
+
}
|
|
134
|
+
export interface QueryAllowancesResponseProtoMsg {
|
|
135
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesResponse";
|
|
136
|
+
value: Uint8Array;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* QueryAllowancesResponse is the response type for the Query/Allowances RPC
|
|
140
|
+
* method.
|
|
141
|
+
* @name QueryAllowancesResponseAmino
|
|
142
|
+
* @package xion.indexer.feegrant.v1
|
|
143
|
+
* @see proto type: xion.indexer.feegrant.v1.QueryAllowancesResponse
|
|
144
|
+
*/
|
|
145
|
+
export interface QueryAllowancesResponseAmino {
|
|
146
|
+
/**
|
|
147
|
+
* allowances are allowances granted for grantee by granter.
|
|
148
|
+
*/
|
|
149
|
+
allowances?: GrantAmino[];
|
|
150
|
+
/**
|
|
151
|
+
* pagination defines pagination for the response.
|
|
152
|
+
*/
|
|
153
|
+
pagination?: PageResponseAmino;
|
|
154
|
+
}
|
|
155
|
+
export interface QueryAllowancesResponseAminoMsg {
|
|
156
|
+
type: "/xion.indexer.feegrant.v1.QueryAllowancesResponse";
|
|
157
|
+
value: QueryAllowancesResponseAmino;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* QueryAllowancesResponse is the response type for the Query/Allowances RPC
|
|
161
|
+
* method.
|
|
162
|
+
*/
|
|
163
|
+
export interface QueryAllowancesResponseSDKType {
|
|
164
|
+
allowances: GrantSDKType[];
|
|
165
|
+
pagination?: PageResponseSDKType;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* QueryAllowancesByGranterRequest is the request type for the
|
|
169
|
+
* Query/AllowancesByGranter RPC method.
|
|
170
|
+
*/
|
|
171
|
+
export interface QueryAllowancesByGranterRequest {
|
|
172
|
+
/** granter is the address of the user granting fee allowances */
|
|
173
|
+
granter: string;
|
|
174
|
+
/** pagination defines pagination for the request. */
|
|
175
|
+
pagination?: PageRequest;
|
|
176
|
+
}
|
|
177
|
+
export interface QueryAllowancesByGranterRequestProtoMsg {
|
|
178
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterRequest";
|
|
179
|
+
value: Uint8Array;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* QueryAllowancesByGranterRequest is the request type for the
|
|
183
|
+
* Query/AllowancesByGranter RPC method.
|
|
184
|
+
* @name QueryAllowancesByGranterRequestAmino
|
|
185
|
+
* @package xion.indexer.feegrant.v1
|
|
186
|
+
* @see proto type: xion.indexer.feegrant.v1.QueryAllowancesByGranterRequest
|
|
187
|
+
*/
|
|
188
|
+
export interface QueryAllowancesByGranterRequestAmino {
|
|
189
|
+
/**
|
|
190
|
+
* granter is the address of the user granting fee allowances
|
|
191
|
+
*/
|
|
192
|
+
granter?: string;
|
|
193
|
+
/**
|
|
194
|
+
* pagination defines pagination for the request.
|
|
195
|
+
*/
|
|
196
|
+
pagination?: PageRequestAmino;
|
|
197
|
+
}
|
|
198
|
+
export interface QueryAllowancesByGranterRequestAminoMsg {
|
|
199
|
+
type: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterRequest";
|
|
200
|
+
value: QueryAllowancesByGranterRequestAmino;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* QueryAllowancesByGranterRequest is the request type for the
|
|
204
|
+
* Query/AllowancesByGranter RPC method.
|
|
205
|
+
*/
|
|
206
|
+
export interface QueryAllowancesByGranterRequestSDKType {
|
|
207
|
+
granter: string;
|
|
208
|
+
pagination?: PageRequestSDKType;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* QueryAllowancesByGranterResponse is the response type for the
|
|
212
|
+
* Query/AllowancesByGranter RPC method.
|
|
213
|
+
*/
|
|
214
|
+
export interface QueryAllowancesByGranterResponse {
|
|
215
|
+
/** allowances that have been issued by the granter. */
|
|
216
|
+
allowances: Grant[];
|
|
217
|
+
/** pagination defines pagination for the response. */
|
|
218
|
+
pagination?: PageResponse;
|
|
219
|
+
}
|
|
220
|
+
export interface QueryAllowancesByGranterResponseProtoMsg {
|
|
221
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterResponse";
|
|
222
|
+
value: Uint8Array;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* QueryAllowancesByGranterResponse is the response type for the
|
|
226
|
+
* Query/AllowancesByGranter RPC method.
|
|
227
|
+
* @name QueryAllowancesByGranterResponseAmino
|
|
228
|
+
* @package xion.indexer.feegrant.v1
|
|
229
|
+
* @see proto type: xion.indexer.feegrant.v1.QueryAllowancesByGranterResponse
|
|
230
|
+
*/
|
|
231
|
+
export interface QueryAllowancesByGranterResponseAmino {
|
|
232
|
+
/**
|
|
233
|
+
* allowances that have been issued by the granter.
|
|
234
|
+
*/
|
|
235
|
+
allowances?: GrantAmino[];
|
|
236
|
+
/**
|
|
237
|
+
* pagination defines pagination for the response.
|
|
238
|
+
*/
|
|
239
|
+
pagination?: PageResponseAmino;
|
|
240
|
+
}
|
|
241
|
+
export interface QueryAllowancesByGranterResponseAminoMsg {
|
|
242
|
+
type: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterResponse";
|
|
243
|
+
value: QueryAllowancesByGranterResponseAmino;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* QueryAllowancesByGranterResponse is the response type for the
|
|
247
|
+
* Query/AllowancesByGranter RPC method.
|
|
248
|
+
*/
|
|
249
|
+
export interface QueryAllowancesByGranterResponseSDKType {
|
|
250
|
+
allowances: GrantSDKType[];
|
|
251
|
+
pagination?: PageResponseSDKType;
|
|
252
|
+
}
|
|
253
|
+
function createBaseQueryAllowanceRequest(): QueryAllowanceRequest {
|
|
254
|
+
return {
|
|
255
|
+
granter: "",
|
|
256
|
+
grantee: ""
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
export const QueryAllowanceRequest = {
|
|
260
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowanceRequest",
|
|
261
|
+
encode(message: QueryAllowanceRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
262
|
+
if (message.granter !== "") {
|
|
263
|
+
writer.uint32(10).string(message.granter);
|
|
264
|
+
}
|
|
265
|
+
if (message.grantee !== "") {
|
|
266
|
+
writer.uint32(18).string(message.grantee);
|
|
267
|
+
}
|
|
268
|
+
return writer;
|
|
269
|
+
},
|
|
270
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceRequest {
|
|
271
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
272
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
+
const message = createBaseQueryAllowanceRequest();
|
|
274
|
+
while (reader.pos < end) {
|
|
275
|
+
const tag = reader.uint32();
|
|
276
|
+
switch (tag >>> 3) {
|
|
277
|
+
case 1:
|
|
278
|
+
message.granter = reader.string();
|
|
279
|
+
break;
|
|
280
|
+
case 2:
|
|
281
|
+
message.grantee = reader.string();
|
|
282
|
+
break;
|
|
283
|
+
default:
|
|
284
|
+
reader.skipType(tag & 7);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return message;
|
|
289
|
+
},
|
|
290
|
+
fromPartial(object: Partial<QueryAllowanceRequest>): QueryAllowanceRequest {
|
|
291
|
+
const message = createBaseQueryAllowanceRequest();
|
|
292
|
+
message.granter = object.granter ?? "";
|
|
293
|
+
message.grantee = object.grantee ?? "";
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
fromAmino(object: QueryAllowanceRequestAmino): QueryAllowanceRequest {
|
|
297
|
+
const message = createBaseQueryAllowanceRequest();
|
|
298
|
+
if (object.granter !== undefined && object.granter !== null) {
|
|
299
|
+
message.granter = object.granter;
|
|
300
|
+
}
|
|
301
|
+
if (object.grantee !== undefined && object.grantee !== null) {
|
|
302
|
+
message.grantee = object.grantee;
|
|
303
|
+
}
|
|
304
|
+
return message;
|
|
305
|
+
},
|
|
306
|
+
toAmino(message: QueryAllowanceRequest): QueryAllowanceRequestAmino {
|
|
307
|
+
const obj: any = {};
|
|
308
|
+
obj.granter = message.granter === "" ? undefined : message.granter;
|
|
309
|
+
obj.grantee = message.grantee === "" ? undefined : message.grantee;
|
|
310
|
+
return obj;
|
|
311
|
+
},
|
|
312
|
+
fromAminoMsg(object: QueryAllowanceRequestAminoMsg): QueryAllowanceRequest {
|
|
313
|
+
return QueryAllowanceRequest.fromAmino(object.value);
|
|
314
|
+
},
|
|
315
|
+
fromProtoMsg(message: QueryAllowanceRequestProtoMsg): QueryAllowanceRequest {
|
|
316
|
+
return QueryAllowanceRequest.decode(message.value);
|
|
317
|
+
},
|
|
318
|
+
toProto(message: QueryAllowanceRequest): Uint8Array {
|
|
319
|
+
return QueryAllowanceRequest.encode(message).finish();
|
|
320
|
+
},
|
|
321
|
+
toProtoMsg(message: QueryAllowanceRequest): QueryAllowanceRequestProtoMsg {
|
|
322
|
+
return {
|
|
323
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowanceRequest",
|
|
324
|
+
value: QueryAllowanceRequest.encode(message).finish()
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
function createBaseQueryAllowanceResponse(): QueryAllowanceResponse {
|
|
329
|
+
return {
|
|
330
|
+
allowance: undefined
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
export const QueryAllowanceResponse = {
|
|
334
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowanceResponse",
|
|
335
|
+
encode(message: QueryAllowanceResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
336
|
+
if (message.allowance !== undefined) {
|
|
337
|
+
Grant.encode(message.allowance, writer.uint32(10).fork()).ldelim();
|
|
338
|
+
}
|
|
339
|
+
return writer;
|
|
340
|
+
},
|
|
341
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowanceResponse {
|
|
342
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
343
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
344
|
+
const message = createBaseQueryAllowanceResponse();
|
|
345
|
+
while (reader.pos < end) {
|
|
346
|
+
const tag = reader.uint32();
|
|
347
|
+
switch (tag >>> 3) {
|
|
348
|
+
case 1:
|
|
349
|
+
message.allowance = Grant.decode(reader, reader.uint32());
|
|
350
|
+
break;
|
|
351
|
+
default:
|
|
352
|
+
reader.skipType(tag & 7);
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return message;
|
|
357
|
+
},
|
|
358
|
+
fromPartial(object: Partial<QueryAllowanceResponse>): QueryAllowanceResponse {
|
|
359
|
+
const message = createBaseQueryAllowanceResponse();
|
|
360
|
+
message.allowance = object.allowance !== undefined && object.allowance !== null ? Grant.fromPartial(object.allowance) : undefined;
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
fromAmino(object: QueryAllowanceResponseAmino): QueryAllowanceResponse {
|
|
364
|
+
const message = createBaseQueryAllowanceResponse();
|
|
365
|
+
if (object.allowance !== undefined && object.allowance !== null) {
|
|
366
|
+
message.allowance = Grant.fromAmino(object.allowance);
|
|
367
|
+
}
|
|
368
|
+
return message;
|
|
369
|
+
},
|
|
370
|
+
toAmino(message: QueryAllowanceResponse): QueryAllowanceResponseAmino {
|
|
371
|
+
const obj: any = {};
|
|
372
|
+
obj.allowance = message.allowance ? Grant.toAmino(message.allowance) : undefined;
|
|
373
|
+
return obj;
|
|
374
|
+
},
|
|
375
|
+
fromAminoMsg(object: QueryAllowanceResponseAminoMsg): QueryAllowanceResponse {
|
|
376
|
+
return QueryAllowanceResponse.fromAmino(object.value);
|
|
377
|
+
},
|
|
378
|
+
fromProtoMsg(message: QueryAllowanceResponseProtoMsg): QueryAllowanceResponse {
|
|
379
|
+
return QueryAllowanceResponse.decode(message.value);
|
|
380
|
+
},
|
|
381
|
+
toProto(message: QueryAllowanceResponse): Uint8Array {
|
|
382
|
+
return QueryAllowanceResponse.encode(message).finish();
|
|
383
|
+
},
|
|
384
|
+
toProtoMsg(message: QueryAllowanceResponse): QueryAllowanceResponseProtoMsg {
|
|
385
|
+
return {
|
|
386
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowanceResponse",
|
|
387
|
+
value: QueryAllowanceResponse.encode(message).finish()
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
function createBaseQueryAllowancesRequest(): QueryAllowancesRequest {
|
|
392
|
+
return {
|
|
393
|
+
grantee: "",
|
|
394
|
+
pagination: undefined
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
export const QueryAllowancesRequest = {
|
|
398
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesRequest",
|
|
399
|
+
encode(message: QueryAllowancesRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
400
|
+
if (message.grantee !== "") {
|
|
401
|
+
writer.uint32(10).string(message.grantee);
|
|
402
|
+
}
|
|
403
|
+
if (message.pagination !== undefined) {
|
|
404
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
405
|
+
}
|
|
406
|
+
return writer;
|
|
407
|
+
},
|
|
408
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesRequest {
|
|
409
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
410
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
411
|
+
const message = createBaseQueryAllowancesRequest();
|
|
412
|
+
while (reader.pos < end) {
|
|
413
|
+
const tag = reader.uint32();
|
|
414
|
+
switch (tag >>> 3) {
|
|
415
|
+
case 1:
|
|
416
|
+
message.grantee = reader.string();
|
|
417
|
+
break;
|
|
418
|
+
case 2:
|
|
419
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
420
|
+
break;
|
|
421
|
+
default:
|
|
422
|
+
reader.skipType(tag & 7);
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return message;
|
|
427
|
+
},
|
|
428
|
+
fromPartial(object: Partial<QueryAllowancesRequest>): QueryAllowancesRequest {
|
|
429
|
+
const message = createBaseQueryAllowancesRequest();
|
|
430
|
+
message.grantee = object.grantee ?? "";
|
|
431
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
432
|
+
return message;
|
|
433
|
+
},
|
|
434
|
+
fromAmino(object: QueryAllowancesRequestAmino): QueryAllowancesRequest {
|
|
435
|
+
const message = createBaseQueryAllowancesRequest();
|
|
436
|
+
if (object.grantee !== undefined && object.grantee !== null) {
|
|
437
|
+
message.grantee = object.grantee;
|
|
438
|
+
}
|
|
439
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
440
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
441
|
+
}
|
|
442
|
+
return message;
|
|
443
|
+
},
|
|
444
|
+
toAmino(message: QueryAllowancesRequest): QueryAllowancesRequestAmino {
|
|
445
|
+
const obj: any = {};
|
|
446
|
+
obj.grantee = message.grantee === "" ? undefined : message.grantee;
|
|
447
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
448
|
+
return obj;
|
|
449
|
+
},
|
|
450
|
+
fromAminoMsg(object: QueryAllowancesRequestAminoMsg): QueryAllowancesRequest {
|
|
451
|
+
return QueryAllowancesRequest.fromAmino(object.value);
|
|
452
|
+
},
|
|
453
|
+
fromProtoMsg(message: QueryAllowancesRequestProtoMsg): QueryAllowancesRequest {
|
|
454
|
+
return QueryAllowancesRequest.decode(message.value);
|
|
455
|
+
},
|
|
456
|
+
toProto(message: QueryAllowancesRequest): Uint8Array {
|
|
457
|
+
return QueryAllowancesRequest.encode(message).finish();
|
|
458
|
+
},
|
|
459
|
+
toProtoMsg(message: QueryAllowancesRequest): QueryAllowancesRequestProtoMsg {
|
|
460
|
+
return {
|
|
461
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesRequest",
|
|
462
|
+
value: QueryAllowancesRequest.encode(message).finish()
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
function createBaseQueryAllowancesResponse(): QueryAllowancesResponse {
|
|
467
|
+
return {
|
|
468
|
+
allowances: [],
|
|
469
|
+
pagination: undefined
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
export const QueryAllowancesResponse = {
|
|
473
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesResponse",
|
|
474
|
+
encode(message: QueryAllowancesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
475
|
+
for (const v of message.allowances) {
|
|
476
|
+
Grant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
477
|
+
}
|
|
478
|
+
if (message.pagination !== undefined) {
|
|
479
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
480
|
+
}
|
|
481
|
+
return writer;
|
|
482
|
+
},
|
|
483
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesResponse {
|
|
484
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
485
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
486
|
+
const message = createBaseQueryAllowancesResponse();
|
|
487
|
+
while (reader.pos < end) {
|
|
488
|
+
const tag = reader.uint32();
|
|
489
|
+
switch (tag >>> 3) {
|
|
490
|
+
case 1:
|
|
491
|
+
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
492
|
+
break;
|
|
493
|
+
case 2:
|
|
494
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
495
|
+
break;
|
|
496
|
+
default:
|
|
497
|
+
reader.skipType(tag & 7);
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return message;
|
|
502
|
+
},
|
|
503
|
+
fromPartial(object: Partial<QueryAllowancesResponse>): QueryAllowancesResponse {
|
|
504
|
+
const message = createBaseQueryAllowancesResponse();
|
|
505
|
+
message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || [];
|
|
506
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
507
|
+
return message;
|
|
508
|
+
},
|
|
509
|
+
fromAmino(object: QueryAllowancesResponseAmino): QueryAllowancesResponse {
|
|
510
|
+
const message = createBaseQueryAllowancesResponse();
|
|
511
|
+
message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || [];
|
|
512
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
513
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
514
|
+
}
|
|
515
|
+
return message;
|
|
516
|
+
},
|
|
517
|
+
toAmino(message: QueryAllowancesResponse): QueryAllowancesResponseAmino {
|
|
518
|
+
const obj: any = {};
|
|
519
|
+
if (message.allowances) {
|
|
520
|
+
obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined);
|
|
521
|
+
} else {
|
|
522
|
+
obj.allowances = message.allowances;
|
|
523
|
+
}
|
|
524
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
525
|
+
return obj;
|
|
526
|
+
},
|
|
527
|
+
fromAminoMsg(object: QueryAllowancesResponseAminoMsg): QueryAllowancesResponse {
|
|
528
|
+
return QueryAllowancesResponse.fromAmino(object.value);
|
|
529
|
+
},
|
|
530
|
+
fromProtoMsg(message: QueryAllowancesResponseProtoMsg): QueryAllowancesResponse {
|
|
531
|
+
return QueryAllowancesResponse.decode(message.value);
|
|
532
|
+
},
|
|
533
|
+
toProto(message: QueryAllowancesResponse): Uint8Array {
|
|
534
|
+
return QueryAllowancesResponse.encode(message).finish();
|
|
535
|
+
},
|
|
536
|
+
toProtoMsg(message: QueryAllowancesResponse): QueryAllowancesResponseProtoMsg {
|
|
537
|
+
return {
|
|
538
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesResponse",
|
|
539
|
+
value: QueryAllowancesResponse.encode(message).finish()
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
function createBaseQueryAllowancesByGranterRequest(): QueryAllowancesByGranterRequest {
|
|
544
|
+
return {
|
|
545
|
+
granter: "",
|
|
546
|
+
pagination: undefined
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
export const QueryAllowancesByGranterRequest = {
|
|
550
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterRequest",
|
|
551
|
+
encode(message: QueryAllowancesByGranterRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
552
|
+
if (message.granter !== "") {
|
|
553
|
+
writer.uint32(10).string(message.granter);
|
|
554
|
+
}
|
|
555
|
+
if (message.pagination !== undefined) {
|
|
556
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
557
|
+
}
|
|
558
|
+
return writer;
|
|
559
|
+
},
|
|
560
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterRequest {
|
|
561
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
562
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
563
|
+
const message = createBaseQueryAllowancesByGranterRequest();
|
|
564
|
+
while (reader.pos < end) {
|
|
565
|
+
const tag = reader.uint32();
|
|
566
|
+
switch (tag >>> 3) {
|
|
567
|
+
case 1:
|
|
568
|
+
message.granter = reader.string();
|
|
569
|
+
break;
|
|
570
|
+
case 2:
|
|
571
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
572
|
+
break;
|
|
573
|
+
default:
|
|
574
|
+
reader.skipType(tag & 7);
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return message;
|
|
579
|
+
},
|
|
580
|
+
fromPartial(object: Partial<QueryAllowancesByGranterRequest>): QueryAllowancesByGranterRequest {
|
|
581
|
+
const message = createBaseQueryAllowancesByGranterRequest();
|
|
582
|
+
message.granter = object.granter ?? "";
|
|
583
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
584
|
+
return message;
|
|
585
|
+
},
|
|
586
|
+
fromAmino(object: QueryAllowancesByGranterRequestAmino): QueryAllowancesByGranterRequest {
|
|
587
|
+
const message = createBaseQueryAllowancesByGranterRequest();
|
|
588
|
+
if (object.granter !== undefined && object.granter !== null) {
|
|
589
|
+
message.granter = object.granter;
|
|
590
|
+
}
|
|
591
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
592
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
593
|
+
}
|
|
594
|
+
return message;
|
|
595
|
+
},
|
|
596
|
+
toAmino(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestAmino {
|
|
597
|
+
const obj: any = {};
|
|
598
|
+
obj.granter = message.granter === "" ? undefined : message.granter;
|
|
599
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
600
|
+
return obj;
|
|
601
|
+
},
|
|
602
|
+
fromAminoMsg(object: QueryAllowancesByGranterRequestAminoMsg): QueryAllowancesByGranterRequest {
|
|
603
|
+
return QueryAllowancesByGranterRequest.fromAmino(object.value);
|
|
604
|
+
},
|
|
605
|
+
fromProtoMsg(message: QueryAllowancesByGranterRequestProtoMsg): QueryAllowancesByGranterRequest {
|
|
606
|
+
return QueryAllowancesByGranterRequest.decode(message.value);
|
|
607
|
+
},
|
|
608
|
+
toProto(message: QueryAllowancesByGranterRequest): Uint8Array {
|
|
609
|
+
return QueryAllowancesByGranterRequest.encode(message).finish();
|
|
610
|
+
},
|
|
611
|
+
toProtoMsg(message: QueryAllowancesByGranterRequest): QueryAllowancesByGranterRequestProtoMsg {
|
|
612
|
+
return {
|
|
613
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterRequest",
|
|
614
|
+
value: QueryAllowancesByGranterRequest.encode(message).finish()
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
function createBaseQueryAllowancesByGranterResponse(): QueryAllowancesByGranterResponse {
|
|
619
|
+
return {
|
|
620
|
+
allowances: [],
|
|
621
|
+
pagination: undefined
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
export const QueryAllowancesByGranterResponse = {
|
|
625
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterResponse",
|
|
626
|
+
encode(message: QueryAllowancesByGranterResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
627
|
+
for (const v of message.allowances) {
|
|
628
|
+
Grant.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
629
|
+
}
|
|
630
|
+
if (message.pagination !== undefined) {
|
|
631
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
632
|
+
}
|
|
633
|
+
return writer;
|
|
634
|
+
},
|
|
635
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowancesByGranterResponse {
|
|
636
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
637
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
638
|
+
const message = createBaseQueryAllowancesByGranterResponse();
|
|
639
|
+
while (reader.pos < end) {
|
|
640
|
+
const tag = reader.uint32();
|
|
641
|
+
switch (tag >>> 3) {
|
|
642
|
+
case 1:
|
|
643
|
+
message.allowances.push(Grant.decode(reader, reader.uint32()));
|
|
644
|
+
break;
|
|
645
|
+
case 2:
|
|
646
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
647
|
+
break;
|
|
648
|
+
default:
|
|
649
|
+
reader.skipType(tag & 7);
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return message;
|
|
654
|
+
},
|
|
655
|
+
fromPartial(object: Partial<QueryAllowancesByGranterResponse>): QueryAllowancesByGranterResponse {
|
|
656
|
+
const message = createBaseQueryAllowancesByGranterResponse();
|
|
657
|
+
message.allowances = object.allowances?.map(e => Grant.fromPartial(e)) || [];
|
|
658
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
659
|
+
return message;
|
|
660
|
+
},
|
|
661
|
+
fromAmino(object: QueryAllowancesByGranterResponseAmino): QueryAllowancesByGranterResponse {
|
|
662
|
+
const message = createBaseQueryAllowancesByGranterResponse();
|
|
663
|
+
message.allowances = object.allowances?.map(e => Grant.fromAmino(e)) || [];
|
|
664
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
665
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
666
|
+
}
|
|
667
|
+
return message;
|
|
668
|
+
},
|
|
669
|
+
toAmino(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseAmino {
|
|
670
|
+
const obj: any = {};
|
|
671
|
+
if (message.allowances) {
|
|
672
|
+
obj.allowances = message.allowances.map(e => e ? Grant.toAmino(e) : undefined);
|
|
673
|
+
} else {
|
|
674
|
+
obj.allowances = message.allowances;
|
|
675
|
+
}
|
|
676
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
677
|
+
return obj;
|
|
678
|
+
},
|
|
679
|
+
fromAminoMsg(object: QueryAllowancesByGranterResponseAminoMsg): QueryAllowancesByGranterResponse {
|
|
680
|
+
return QueryAllowancesByGranterResponse.fromAmino(object.value);
|
|
681
|
+
},
|
|
682
|
+
fromProtoMsg(message: QueryAllowancesByGranterResponseProtoMsg): QueryAllowancesByGranterResponse {
|
|
683
|
+
return QueryAllowancesByGranterResponse.decode(message.value);
|
|
684
|
+
},
|
|
685
|
+
toProto(message: QueryAllowancesByGranterResponse): Uint8Array {
|
|
686
|
+
return QueryAllowancesByGranterResponse.encode(message).finish();
|
|
687
|
+
},
|
|
688
|
+
toProtoMsg(message: QueryAllowancesByGranterResponse): QueryAllowancesByGranterResponseProtoMsg {
|
|
689
|
+
return {
|
|
690
|
+
typeUrl: "/xion.indexer.feegrant.v1.QueryAllowancesByGranterResponse",
|
|
691
|
+
value: QueryAllowancesByGranterResponse.encode(message).finish()
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
};
|