carbon-js-sdk 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/codec/cdp/asset_params.d.ts +0 -11
- package/lib/codec/cdp/asset_params.js +1 -69
- package/lib/codec/coin/query.d.ts +0 -3
- package/lib/codec/coin/query.js +0 -6
- package/lib/codec/coin/token.d.ts +11 -0
- package/lib/codec/coin/token.js +65 -1
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +19 -0
- package/lib/codec/cosmos/authz/v1beta1/authz.js +89 -1
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -15
- package/lib/codec/cosmos/authz/v1beta1/genesis.js +7 -120
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +69 -1
- package/lib/codec/cosmos/authz/v1beta1/query.js +273 -1
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +40 -0
- package/lib/codec/cosmos/bank/v1beta1/query.js +137 -1
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +64 -0
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +343 -1
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +33 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +137 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +13 -0
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +18 -0
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +50 -2
- package/lib/codec/cosmos/tx/v1beta1/service.js +176 -1
- package/lib/codec/index.d.ts +1 -6
- package/lib/codec/index.js +334 -347
- package/lib/codec/market/genesis.d.ts +1 -0
- package/lib/codec/market/genesis.js +19 -1
- package/lib/codec/misc/trade.d.ts +1 -0
- package/lib/codec/misc/trade.js +17 -0
- package/lib/util/tx.d.ts +0 -4
- package/lib/wallet/CarbonSigningClient.js +27 -2
- package/lib/websocket/models.d.ts +37 -21
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
4
|
-
import { Grant } from "../../../cosmos/authz/v1beta1/authz";
|
|
4
|
+
import { Grant, GrantAuthorization } from "../../../cosmos/authz/v1beta1/authz";
|
|
5
5
|
export declare const protobufPackage = "cosmos.authz.v1beta1";
|
|
6
6
|
/** Since: cosmos-sdk 0.43 */
|
|
7
7
|
/** QueryGrantsRequest is the request type for the Query/Grants RPC method. */
|
|
@@ -20,6 +20,32 @@ export interface QueryGrantsResponse {
|
|
|
20
20
|
/** pagination defines an pagination for the response. */
|
|
21
21
|
pagination?: PageResponse;
|
|
22
22
|
}
|
|
23
|
+
/** QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. */
|
|
24
|
+
export interface QueryGranterGrantsRequest {
|
|
25
|
+
granter: string;
|
|
26
|
+
/** pagination defines an pagination for the request. */
|
|
27
|
+
pagination?: PageRequest;
|
|
28
|
+
}
|
|
29
|
+
/** QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. */
|
|
30
|
+
export interface QueryGranterGrantsResponse {
|
|
31
|
+
/** grants is a list of grants granted by the granter. */
|
|
32
|
+
grants: GrantAuthorization[];
|
|
33
|
+
/** pagination defines an pagination for the response. */
|
|
34
|
+
pagination?: PageResponse;
|
|
35
|
+
}
|
|
36
|
+
/** QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method. */
|
|
37
|
+
export interface QueryGranteeGrantsRequest {
|
|
38
|
+
grantee: string;
|
|
39
|
+
/** pagination defines an pagination for the request. */
|
|
40
|
+
pagination?: PageRequest;
|
|
41
|
+
}
|
|
42
|
+
/** QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. */
|
|
43
|
+
export interface QueryGranteeGrantsResponse {
|
|
44
|
+
/** grants is a list of grants granted to the grantee. */
|
|
45
|
+
grants: GrantAuthorization[];
|
|
46
|
+
/** pagination defines an pagination for the response. */
|
|
47
|
+
pagination?: PageResponse;
|
|
48
|
+
}
|
|
23
49
|
export declare const QueryGrantsRequest: {
|
|
24
50
|
encode(message: QueryGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
25
51
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGrantsRequest;
|
|
@@ -34,15 +60,57 @@ export declare const QueryGrantsResponse: {
|
|
|
34
60
|
toJSON(message: QueryGrantsResponse): unknown;
|
|
35
61
|
fromPartial(object: DeepPartial<QueryGrantsResponse>): QueryGrantsResponse;
|
|
36
62
|
};
|
|
63
|
+
export declare const QueryGranterGrantsRequest: {
|
|
64
|
+
encode(message: QueryGranterGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
65
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGranterGrantsRequest;
|
|
66
|
+
fromJSON(object: any): QueryGranterGrantsRequest;
|
|
67
|
+
toJSON(message: QueryGranterGrantsRequest): unknown;
|
|
68
|
+
fromPartial(object: DeepPartial<QueryGranterGrantsRequest>): QueryGranterGrantsRequest;
|
|
69
|
+
};
|
|
70
|
+
export declare const QueryGranterGrantsResponse: {
|
|
71
|
+
encode(message: QueryGranterGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGranterGrantsResponse;
|
|
73
|
+
fromJSON(object: any): QueryGranterGrantsResponse;
|
|
74
|
+
toJSON(message: QueryGranterGrantsResponse): unknown;
|
|
75
|
+
fromPartial(object: DeepPartial<QueryGranterGrantsResponse>): QueryGranterGrantsResponse;
|
|
76
|
+
};
|
|
77
|
+
export declare const QueryGranteeGrantsRequest: {
|
|
78
|
+
encode(message: QueryGranteeGrantsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
79
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGranteeGrantsRequest;
|
|
80
|
+
fromJSON(object: any): QueryGranteeGrantsRequest;
|
|
81
|
+
toJSON(message: QueryGranteeGrantsRequest): unknown;
|
|
82
|
+
fromPartial(object: DeepPartial<QueryGranteeGrantsRequest>): QueryGranteeGrantsRequest;
|
|
83
|
+
};
|
|
84
|
+
export declare const QueryGranteeGrantsResponse: {
|
|
85
|
+
encode(message: QueryGranteeGrantsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
86
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryGranteeGrantsResponse;
|
|
87
|
+
fromJSON(object: any): QueryGranteeGrantsResponse;
|
|
88
|
+
toJSON(message: QueryGranteeGrantsResponse): unknown;
|
|
89
|
+
fromPartial(object: DeepPartial<QueryGranteeGrantsResponse>): QueryGranteeGrantsResponse;
|
|
90
|
+
};
|
|
37
91
|
/** Query defines the gRPC querier service. */
|
|
38
92
|
export interface Query {
|
|
39
93
|
/** Returns list of `Authorization`, granted to the grantee by the granter. */
|
|
40
94
|
Grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* GranterGrants returns list of `GrantAuthorization`, granted by granter.
|
|
97
|
+
*
|
|
98
|
+
* Since: cosmos-sdk 0.45.2
|
|
99
|
+
*/
|
|
100
|
+
GranterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* GranteeGrants returns a list of `GrantAuthorization` by grantee.
|
|
103
|
+
*
|
|
104
|
+
* Since: cosmos-sdk 0.45.2
|
|
105
|
+
*/
|
|
106
|
+
GranteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponse>;
|
|
41
107
|
}
|
|
42
108
|
export declare class QueryClientImpl implements Query {
|
|
43
109
|
private readonly rpc;
|
|
44
110
|
constructor(rpc: Rpc);
|
|
45
111
|
Grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
|
|
112
|
+
GranterGrants(request: QueryGranterGrantsRequest): Promise<QueryGranterGrantsResponse>;
|
|
113
|
+
GranteeGrants(request: QueryGranteeGrantsRequest): Promise<QueryGranteeGrantsResponse>;
|
|
46
114
|
}
|
|
47
115
|
interface Rpc {
|
|
48
116
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryGrantsResponse = exports.QueryGrantsRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryGranteeGrantsResponse = exports.QueryGranteeGrantsRequest = exports.QueryGranterGrantsResponse = exports.QueryGranterGrantsRequest = exports.QueryGrantsResponse = exports.QueryGrantsRequest = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -168,16 +168,288 @@ exports.QueryGrantsResponse = {
|
|
|
168
168
|
return message;
|
|
169
169
|
},
|
|
170
170
|
};
|
|
171
|
+
const baseQueryGranterGrantsRequest = { granter: "" };
|
|
172
|
+
exports.QueryGranterGrantsRequest = {
|
|
173
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
174
|
+
if (message.granter !== "") {
|
|
175
|
+
writer.uint32(10).string(message.granter);
|
|
176
|
+
}
|
|
177
|
+
if (message.pagination !== undefined) {
|
|
178
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
179
|
+
}
|
|
180
|
+
return writer;
|
|
181
|
+
},
|
|
182
|
+
decode(input, length) {
|
|
183
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
184
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
185
|
+
const message = Object.assign({}, baseQueryGranterGrantsRequest);
|
|
186
|
+
while (reader.pos < end) {
|
|
187
|
+
const tag = reader.uint32();
|
|
188
|
+
switch (tag >>> 3) {
|
|
189
|
+
case 1:
|
|
190
|
+
message.granter = reader.string();
|
|
191
|
+
break;
|
|
192
|
+
case 2:
|
|
193
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
194
|
+
break;
|
|
195
|
+
default:
|
|
196
|
+
reader.skipType(tag & 7);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return message;
|
|
201
|
+
},
|
|
202
|
+
fromJSON(object) {
|
|
203
|
+
const message = Object.assign({}, baseQueryGranterGrantsRequest);
|
|
204
|
+
message.granter =
|
|
205
|
+
object.granter !== undefined && object.granter !== null
|
|
206
|
+
? String(object.granter)
|
|
207
|
+
: "";
|
|
208
|
+
message.pagination =
|
|
209
|
+
object.pagination !== undefined && object.pagination !== null
|
|
210
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
211
|
+
: undefined;
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
toJSON(message) {
|
|
215
|
+
const obj = {};
|
|
216
|
+
message.granter !== undefined && (obj.granter = message.granter);
|
|
217
|
+
message.pagination !== undefined &&
|
|
218
|
+
(obj.pagination = message.pagination
|
|
219
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
220
|
+
: undefined);
|
|
221
|
+
return obj;
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
var _a;
|
|
225
|
+
const message = Object.assign({}, baseQueryGranterGrantsRequest);
|
|
226
|
+
message.granter = (_a = object.granter) !== null && _a !== void 0 ? _a : "";
|
|
227
|
+
message.pagination =
|
|
228
|
+
object.pagination !== undefined && object.pagination !== null
|
|
229
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
230
|
+
: undefined;
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
const baseQueryGranterGrantsResponse = {};
|
|
235
|
+
exports.QueryGranterGrantsResponse = {
|
|
236
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
237
|
+
for (const v of message.grants) {
|
|
238
|
+
authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim();
|
|
239
|
+
}
|
|
240
|
+
if (message.pagination !== undefined) {
|
|
241
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
242
|
+
}
|
|
243
|
+
return writer;
|
|
244
|
+
},
|
|
245
|
+
decode(input, length) {
|
|
246
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
247
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
248
|
+
const message = Object.assign({}, baseQueryGranterGrantsResponse);
|
|
249
|
+
message.grants = [];
|
|
250
|
+
while (reader.pos < end) {
|
|
251
|
+
const tag = reader.uint32();
|
|
252
|
+
switch (tag >>> 3) {
|
|
253
|
+
case 1:
|
|
254
|
+
message.grants.push(authz_1.GrantAuthorization.decode(reader, reader.uint32()));
|
|
255
|
+
break;
|
|
256
|
+
case 2:
|
|
257
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
258
|
+
break;
|
|
259
|
+
default:
|
|
260
|
+
reader.skipType(tag & 7);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return message;
|
|
265
|
+
},
|
|
266
|
+
fromJSON(object) {
|
|
267
|
+
var _a;
|
|
268
|
+
const message = Object.assign({}, baseQueryGranterGrantsResponse);
|
|
269
|
+
message.grants = ((_a = object.grants) !== null && _a !== void 0 ? _a : []).map((e) => authz_1.GrantAuthorization.fromJSON(e));
|
|
270
|
+
message.pagination =
|
|
271
|
+
object.pagination !== undefined && object.pagination !== null
|
|
272
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
273
|
+
: undefined;
|
|
274
|
+
return message;
|
|
275
|
+
},
|
|
276
|
+
toJSON(message) {
|
|
277
|
+
const obj = {};
|
|
278
|
+
if (message.grants) {
|
|
279
|
+
obj.grants = message.grants.map((e) => e ? authz_1.GrantAuthorization.toJSON(e) : undefined);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
obj.grants = [];
|
|
283
|
+
}
|
|
284
|
+
message.pagination !== undefined &&
|
|
285
|
+
(obj.pagination = message.pagination
|
|
286
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
287
|
+
: undefined);
|
|
288
|
+
return obj;
|
|
289
|
+
},
|
|
290
|
+
fromPartial(object) {
|
|
291
|
+
var _a;
|
|
292
|
+
const message = Object.assign({}, baseQueryGranterGrantsResponse);
|
|
293
|
+
message.grants = ((_a = object.grants) !== null && _a !== void 0 ? _a : []).map((e) => authz_1.GrantAuthorization.fromPartial(e));
|
|
294
|
+
message.pagination =
|
|
295
|
+
object.pagination !== undefined && object.pagination !== null
|
|
296
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
297
|
+
: undefined;
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
const baseQueryGranteeGrantsRequest = { grantee: "" };
|
|
302
|
+
exports.QueryGranteeGrantsRequest = {
|
|
303
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
304
|
+
if (message.grantee !== "") {
|
|
305
|
+
writer.uint32(10).string(message.grantee);
|
|
306
|
+
}
|
|
307
|
+
if (message.pagination !== undefined) {
|
|
308
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
309
|
+
}
|
|
310
|
+
return writer;
|
|
311
|
+
},
|
|
312
|
+
decode(input, length) {
|
|
313
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
314
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
315
|
+
const message = Object.assign({}, baseQueryGranteeGrantsRequest);
|
|
316
|
+
while (reader.pos < end) {
|
|
317
|
+
const tag = reader.uint32();
|
|
318
|
+
switch (tag >>> 3) {
|
|
319
|
+
case 1:
|
|
320
|
+
message.grantee = reader.string();
|
|
321
|
+
break;
|
|
322
|
+
case 2:
|
|
323
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
324
|
+
break;
|
|
325
|
+
default:
|
|
326
|
+
reader.skipType(tag & 7);
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return message;
|
|
331
|
+
},
|
|
332
|
+
fromJSON(object) {
|
|
333
|
+
const message = Object.assign({}, baseQueryGranteeGrantsRequest);
|
|
334
|
+
message.grantee =
|
|
335
|
+
object.grantee !== undefined && object.grantee !== null
|
|
336
|
+
? String(object.grantee)
|
|
337
|
+
: "";
|
|
338
|
+
message.pagination =
|
|
339
|
+
object.pagination !== undefined && object.pagination !== null
|
|
340
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
341
|
+
: undefined;
|
|
342
|
+
return message;
|
|
343
|
+
},
|
|
344
|
+
toJSON(message) {
|
|
345
|
+
const obj = {};
|
|
346
|
+
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
347
|
+
message.pagination !== undefined &&
|
|
348
|
+
(obj.pagination = message.pagination
|
|
349
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
350
|
+
: undefined);
|
|
351
|
+
return obj;
|
|
352
|
+
},
|
|
353
|
+
fromPartial(object) {
|
|
354
|
+
var _a;
|
|
355
|
+
const message = Object.assign({}, baseQueryGranteeGrantsRequest);
|
|
356
|
+
message.grantee = (_a = object.grantee) !== null && _a !== void 0 ? _a : "";
|
|
357
|
+
message.pagination =
|
|
358
|
+
object.pagination !== undefined && object.pagination !== null
|
|
359
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
360
|
+
: undefined;
|
|
361
|
+
return message;
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
const baseQueryGranteeGrantsResponse = {};
|
|
365
|
+
exports.QueryGranteeGrantsResponse = {
|
|
366
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
367
|
+
for (const v of message.grants) {
|
|
368
|
+
authz_1.GrantAuthorization.encode(v, writer.uint32(10).fork()).ldelim();
|
|
369
|
+
}
|
|
370
|
+
if (message.pagination !== undefined) {
|
|
371
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
372
|
+
}
|
|
373
|
+
return writer;
|
|
374
|
+
},
|
|
375
|
+
decode(input, length) {
|
|
376
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
377
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
378
|
+
const message = Object.assign({}, baseQueryGranteeGrantsResponse);
|
|
379
|
+
message.grants = [];
|
|
380
|
+
while (reader.pos < end) {
|
|
381
|
+
const tag = reader.uint32();
|
|
382
|
+
switch (tag >>> 3) {
|
|
383
|
+
case 1:
|
|
384
|
+
message.grants.push(authz_1.GrantAuthorization.decode(reader, reader.uint32()));
|
|
385
|
+
break;
|
|
386
|
+
case 2:
|
|
387
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
388
|
+
break;
|
|
389
|
+
default:
|
|
390
|
+
reader.skipType(tag & 7);
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return message;
|
|
395
|
+
},
|
|
396
|
+
fromJSON(object) {
|
|
397
|
+
var _a;
|
|
398
|
+
const message = Object.assign({}, baseQueryGranteeGrantsResponse);
|
|
399
|
+
message.grants = ((_a = object.grants) !== null && _a !== void 0 ? _a : []).map((e) => authz_1.GrantAuthorization.fromJSON(e));
|
|
400
|
+
message.pagination =
|
|
401
|
+
object.pagination !== undefined && object.pagination !== null
|
|
402
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
403
|
+
: undefined;
|
|
404
|
+
return message;
|
|
405
|
+
},
|
|
406
|
+
toJSON(message) {
|
|
407
|
+
const obj = {};
|
|
408
|
+
if (message.grants) {
|
|
409
|
+
obj.grants = message.grants.map((e) => e ? authz_1.GrantAuthorization.toJSON(e) : undefined);
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
obj.grants = [];
|
|
413
|
+
}
|
|
414
|
+
message.pagination !== undefined &&
|
|
415
|
+
(obj.pagination = message.pagination
|
|
416
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
417
|
+
: undefined);
|
|
418
|
+
return obj;
|
|
419
|
+
},
|
|
420
|
+
fromPartial(object) {
|
|
421
|
+
var _a;
|
|
422
|
+
const message = Object.assign({}, baseQueryGranteeGrantsResponse);
|
|
423
|
+
message.grants = ((_a = object.grants) !== null && _a !== void 0 ? _a : []).map((e) => authz_1.GrantAuthorization.fromPartial(e));
|
|
424
|
+
message.pagination =
|
|
425
|
+
object.pagination !== undefined && object.pagination !== null
|
|
426
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
427
|
+
: undefined;
|
|
428
|
+
return message;
|
|
429
|
+
},
|
|
430
|
+
};
|
|
171
431
|
class QueryClientImpl {
|
|
172
432
|
constructor(rpc) {
|
|
173
433
|
this.rpc = rpc;
|
|
174
434
|
this.Grants = this.Grants.bind(this);
|
|
435
|
+
this.GranterGrants = this.GranterGrants.bind(this);
|
|
436
|
+
this.GranteeGrants = this.GranteeGrants.bind(this);
|
|
175
437
|
}
|
|
176
438
|
Grants(request) {
|
|
177
439
|
const data = exports.QueryGrantsRequest.encode(request).finish();
|
|
178
440
|
const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data);
|
|
179
441
|
return promise.then((data) => exports.QueryGrantsResponse.decode(new minimal_1.default.Reader(data)));
|
|
180
442
|
}
|
|
443
|
+
GranterGrants(request) {
|
|
444
|
+
const data = exports.QueryGranterGrantsRequest.encode(request).finish();
|
|
445
|
+
const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranterGrants", data);
|
|
446
|
+
return promise.then((data) => exports.QueryGranterGrantsResponse.decode(new minimal_1.default.Reader(data)));
|
|
447
|
+
}
|
|
448
|
+
GranteeGrants(request) {
|
|
449
|
+
const data = exports.QueryGranteeGrantsRequest.encode(request).finish();
|
|
450
|
+
const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "GranteeGrants", data);
|
|
451
|
+
return promise.then((data) => exports.QueryGranteeGrantsResponse.decode(new minimal_1.default.Reader(data)));
|
|
452
|
+
}
|
|
181
453
|
}
|
|
182
454
|
exports.QueryClientImpl = QueryClientImpl;
|
|
183
455
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { SendAuthorization } from "./authz";
|
|
2
2
|
export { Params, SendEnabled, Input, Output, Supply, DenomUnit, Metadata } from "./bank";
|
|
3
3
|
export { Balance } from "./genesis";
|
|
4
|
-
export { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse } from "./query";
|
|
4
|
+
export { QueryBalanceRequest, QueryBalanceResponse, QueryAllBalancesRequest, QueryAllBalancesResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryParamsRequest, QueryParamsResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse } from "./query";
|
|
5
5
|
export { MsgSend, MsgSendResponse, MsgMultiSend, MsgMultiSendResponse } from "./tx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgMultiSendResponse = exports.MsgMultiSend = exports.MsgSendResponse = exports.MsgSend = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.Balance = exports.Metadata = exports.DenomUnit = exports.Supply = exports.Output = exports.Input = exports.SendEnabled = exports.Params = exports.SendAuthorization = void 0;
|
|
3
|
+
exports.MsgMultiSendResponse = exports.MsgMultiSend = exports.MsgSendResponse = exports.MsgSend = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QuerySpendableBalancesResponse = exports.QuerySpendableBalancesRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.Balance = exports.Metadata = exports.DenomUnit = exports.Supply = exports.Output = exports.Input = exports.SendEnabled = exports.Params = exports.SendAuthorization = void 0;
|
|
4
4
|
var authz_1 = require("./authz");
|
|
5
5
|
Object.defineProperty(exports, "SendAuthorization", { enumerable: true, get: function () { return authz_1.SendAuthorization; } });
|
|
6
6
|
var bank_1 = require("./bank");
|
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "QueryBalanceRequest", { enumerable: true, get: f
|
|
|
18
18
|
Object.defineProperty(exports, "QueryBalanceResponse", { enumerable: true, get: function () { return query_1.QueryBalanceResponse; } });
|
|
19
19
|
Object.defineProperty(exports, "QueryAllBalancesRequest", { enumerable: true, get: function () { return query_1.QueryAllBalancesRequest; } });
|
|
20
20
|
Object.defineProperty(exports, "QueryAllBalancesResponse", { enumerable: true, get: function () { return query_1.QueryAllBalancesResponse; } });
|
|
21
|
+
Object.defineProperty(exports, "QuerySpendableBalancesRequest", { enumerable: true, get: function () { return query_1.QuerySpendableBalancesRequest; } });
|
|
22
|
+
Object.defineProperty(exports, "QuerySpendableBalancesResponse", { enumerable: true, get: function () { return query_1.QuerySpendableBalancesResponse; } });
|
|
21
23
|
Object.defineProperty(exports, "QueryTotalSupplyRequest", { enumerable: true, get: function () { return query_1.QueryTotalSupplyRequest; } });
|
|
22
24
|
Object.defineProperty(exports, "QueryTotalSupplyResponse", { enumerable: true, get: function () { return query_1.QueryTotalSupplyResponse; } });
|
|
23
25
|
Object.defineProperty(exports, "QuerySupplyOfRequest", { enumerable: true, get: function () { return query_1.QuerySupplyOfRequest; } });
|
|
@@ -33,6 +33,26 @@ export interface QueryAllBalancesResponse {
|
|
|
33
33
|
/** pagination defines the pagination in the response. */
|
|
34
34
|
pagination?: PageResponse;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* QuerySpendableBalancesRequest defines the gRPC request structure for querying
|
|
38
|
+
* an account's spendable balances.
|
|
39
|
+
*/
|
|
40
|
+
export interface QuerySpendableBalancesRequest {
|
|
41
|
+
/** address is the address to query spendable balances for. */
|
|
42
|
+
address: string;
|
|
43
|
+
/** pagination defines an optional pagination for the request. */
|
|
44
|
+
pagination?: PageRequest;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* QuerySpendableBalancesResponse defines the gRPC response structure for querying
|
|
48
|
+
* an account's spendable balances.
|
|
49
|
+
*/
|
|
50
|
+
export interface QuerySpendableBalancesResponse {
|
|
51
|
+
/** balances is the spendable balances of all the coins. */
|
|
52
|
+
balances: Coin[];
|
|
53
|
+
/** pagination defines the pagination in the response. */
|
|
54
|
+
pagination?: PageResponse;
|
|
55
|
+
}
|
|
36
56
|
/**
|
|
37
57
|
* QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC
|
|
38
58
|
* method.
|
|
@@ -132,6 +152,20 @@ export declare const QueryAllBalancesResponse: {
|
|
|
132
152
|
toJSON(message: QueryAllBalancesResponse): unknown;
|
|
133
153
|
fromPartial(object: DeepPartial<QueryAllBalancesResponse>): QueryAllBalancesResponse;
|
|
134
154
|
};
|
|
155
|
+
export declare const QuerySpendableBalancesRequest: {
|
|
156
|
+
encode(message: QuerySpendableBalancesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
157
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QuerySpendableBalancesRequest;
|
|
158
|
+
fromJSON(object: any): QuerySpendableBalancesRequest;
|
|
159
|
+
toJSON(message: QuerySpendableBalancesRequest): unknown;
|
|
160
|
+
fromPartial(object: DeepPartial<QuerySpendableBalancesRequest>): QuerySpendableBalancesRequest;
|
|
161
|
+
};
|
|
162
|
+
export declare const QuerySpendableBalancesResponse: {
|
|
163
|
+
encode(message: QuerySpendableBalancesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
164
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QuerySpendableBalancesResponse;
|
|
165
|
+
fromJSON(object: any): QuerySpendableBalancesResponse;
|
|
166
|
+
toJSON(message: QuerySpendableBalancesResponse): unknown;
|
|
167
|
+
fromPartial(object: DeepPartial<QuerySpendableBalancesResponse>): QuerySpendableBalancesResponse;
|
|
168
|
+
};
|
|
135
169
|
export declare const QueryTotalSupplyRequest: {
|
|
136
170
|
encode(message: QueryTotalSupplyRequest, writer?: _m0.Writer): _m0.Writer;
|
|
137
171
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTotalSupplyRequest;
|
|
@@ -208,6 +242,11 @@ export interface Query {
|
|
|
208
242
|
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
209
243
|
/** AllBalances queries the balance of all coins for a single account. */
|
|
210
244
|
AllBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
|
245
|
+
/**
|
|
246
|
+
* SpendableBalances queries the spenable balance of all coins for a single
|
|
247
|
+
* account.
|
|
248
|
+
*/
|
|
249
|
+
SpendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
|
211
250
|
/** TotalSupply queries the total supply of all coins. */
|
|
212
251
|
TotalSupply(request: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
|
213
252
|
/** SupplyOf queries the supply of a single coin. */
|
|
@@ -224,6 +263,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
224
263
|
constructor(rpc: Rpc);
|
|
225
264
|
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
226
265
|
AllBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
|
|
266
|
+
SpendableBalances(request: QuerySpendableBalancesRequest): Promise<QuerySpendableBalancesResponse>;
|
|
227
267
|
TotalSupply(request: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
|
|
228
268
|
SupplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
|
|
229
269
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QuerySpendableBalancesResponse = exports.QuerySpendableBalancesRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -248,6 +248,136 @@ exports.QueryAllBalancesResponse = {
|
|
|
248
248
|
return message;
|
|
249
249
|
},
|
|
250
250
|
};
|
|
251
|
+
const baseQuerySpendableBalancesRequest = { address: "" };
|
|
252
|
+
exports.QuerySpendableBalancesRequest = {
|
|
253
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
254
|
+
if (message.address !== "") {
|
|
255
|
+
writer.uint32(10).string(message.address);
|
|
256
|
+
}
|
|
257
|
+
if (message.pagination !== undefined) {
|
|
258
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
259
|
+
}
|
|
260
|
+
return writer;
|
|
261
|
+
},
|
|
262
|
+
decode(input, length) {
|
|
263
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
264
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
265
|
+
const message = Object.assign({}, baseQuerySpendableBalancesRequest);
|
|
266
|
+
while (reader.pos < end) {
|
|
267
|
+
const tag = reader.uint32();
|
|
268
|
+
switch (tag >>> 3) {
|
|
269
|
+
case 1:
|
|
270
|
+
message.address = reader.string();
|
|
271
|
+
break;
|
|
272
|
+
case 2:
|
|
273
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
reader.skipType(tag & 7);
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromJSON(object) {
|
|
283
|
+
const message = Object.assign({}, baseQuerySpendableBalancesRequest);
|
|
284
|
+
message.address =
|
|
285
|
+
object.address !== undefined && object.address !== null
|
|
286
|
+
? String(object.address)
|
|
287
|
+
: "";
|
|
288
|
+
message.pagination =
|
|
289
|
+
object.pagination !== undefined && object.pagination !== null
|
|
290
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
291
|
+
: undefined;
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
toJSON(message) {
|
|
295
|
+
const obj = {};
|
|
296
|
+
message.address !== undefined && (obj.address = message.address);
|
|
297
|
+
message.pagination !== undefined &&
|
|
298
|
+
(obj.pagination = message.pagination
|
|
299
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
300
|
+
: undefined);
|
|
301
|
+
return obj;
|
|
302
|
+
},
|
|
303
|
+
fromPartial(object) {
|
|
304
|
+
var _a;
|
|
305
|
+
const message = Object.assign({}, baseQuerySpendableBalancesRequest);
|
|
306
|
+
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
307
|
+
message.pagination =
|
|
308
|
+
object.pagination !== undefined && object.pagination !== null
|
|
309
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
310
|
+
: undefined;
|
|
311
|
+
return message;
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
const baseQuerySpendableBalancesResponse = {};
|
|
315
|
+
exports.QuerySpendableBalancesResponse = {
|
|
316
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
317
|
+
for (const v of message.balances) {
|
|
318
|
+
coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
319
|
+
}
|
|
320
|
+
if (message.pagination !== undefined) {
|
|
321
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
322
|
+
}
|
|
323
|
+
return writer;
|
|
324
|
+
},
|
|
325
|
+
decode(input, length) {
|
|
326
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
+
const message = Object.assign({}, baseQuerySpendableBalancesResponse);
|
|
329
|
+
message.balances = [];
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
const tag = reader.uint32();
|
|
332
|
+
switch (tag >>> 3) {
|
|
333
|
+
case 1:
|
|
334
|
+
message.balances.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
335
|
+
break;
|
|
336
|
+
case 2:
|
|
337
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
reader.skipType(tag & 7);
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return message;
|
|
345
|
+
},
|
|
346
|
+
fromJSON(object) {
|
|
347
|
+
var _a;
|
|
348
|
+
const message = Object.assign({}, baseQuerySpendableBalancesResponse);
|
|
349
|
+
message.balances = ((_a = object.balances) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
350
|
+
message.pagination =
|
|
351
|
+
object.pagination !== undefined && object.pagination !== null
|
|
352
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
353
|
+
: undefined;
|
|
354
|
+
return message;
|
|
355
|
+
},
|
|
356
|
+
toJSON(message) {
|
|
357
|
+
const obj = {};
|
|
358
|
+
if (message.balances) {
|
|
359
|
+
obj.balances = message.balances.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
obj.balances = [];
|
|
363
|
+
}
|
|
364
|
+
message.pagination !== undefined &&
|
|
365
|
+
(obj.pagination = message.pagination
|
|
366
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
367
|
+
: undefined);
|
|
368
|
+
return obj;
|
|
369
|
+
},
|
|
370
|
+
fromPartial(object) {
|
|
371
|
+
var _a;
|
|
372
|
+
const message = Object.assign({}, baseQuerySpendableBalancesResponse);
|
|
373
|
+
message.balances = ((_a = object.balances) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
374
|
+
message.pagination =
|
|
375
|
+
object.pagination !== undefined && object.pagination !== null
|
|
376
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
377
|
+
: undefined;
|
|
378
|
+
return message;
|
|
379
|
+
},
|
|
380
|
+
};
|
|
251
381
|
const baseQueryTotalSupplyRequest = {};
|
|
252
382
|
exports.QueryTotalSupplyRequest = {
|
|
253
383
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -755,6 +885,7 @@ class QueryClientImpl {
|
|
|
755
885
|
this.rpc = rpc;
|
|
756
886
|
this.Balance = this.Balance.bind(this);
|
|
757
887
|
this.AllBalances = this.AllBalances.bind(this);
|
|
888
|
+
this.SpendableBalances = this.SpendableBalances.bind(this);
|
|
758
889
|
this.TotalSupply = this.TotalSupply.bind(this);
|
|
759
890
|
this.SupplyOf = this.SupplyOf.bind(this);
|
|
760
891
|
this.Params = this.Params.bind(this);
|
|
@@ -771,6 +902,11 @@ class QueryClientImpl {
|
|
|
771
902
|
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data);
|
|
772
903
|
return promise.then((data) => exports.QueryAllBalancesResponse.decode(new minimal_1.default.Reader(data)));
|
|
773
904
|
}
|
|
905
|
+
SpendableBalances(request) {
|
|
906
|
+
const data = exports.QuerySpendableBalancesRequest.encode(request).finish();
|
|
907
|
+
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SpendableBalances", data);
|
|
908
|
+
return promise.then((data) => exports.QuerySpendableBalancesResponse.decode(new minimal_1.default.Reader(data)));
|
|
909
|
+
}
|
|
774
910
|
TotalSupply(request) {
|
|
775
911
|
const data = exports.QueryTotalSupplyRequest.encode(request).finish();
|
|
776
912
|
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data);
|