coreum-js 2.16.3 → 2.17.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/dist/main/client/index.js +15 -16
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/main/coreum/asset/ft/v1/token.js +276 -200
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/extensions/ft.js +2 -1
- package/dist/main/coreum/extensions/nft.js +2 -1
- package/dist/main/coreum/extensions/nftbeta.js +2 -1
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/bank.js +2 -1
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +11 -10
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +16 -9
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.d.ts +2636 -6
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.d.ts +14 -2
- package/dist/main/google/protobuf/any.js +6 -7
- package/dist/main/google/protobuf/duration.d.ts +14 -2
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.d.ts +14 -2
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/index.js +7 -17
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.d.ts +6360 -92
- package/dist/main/tendermint/abci/types.js +195 -235
- package/dist/main/tendermint/crypto/keys.d.ts +14 -2
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.d.ts +152 -10
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.d.ts +196 -12
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.d.ts +1744 -26
- package/dist/main/tendermint/types/types.js +62 -73
- package/dist/main/tendermint/types/validator.d.ts +230 -6
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.d.ts +28 -4
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/utils/convertStringToAny.d.ts +0 -1
- package/dist/main/utils/nft.js +2 -1
- package/dist/main/wasm/v1/authz.d.ts +20 -75
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/extensions/wasm.js +2 -1
- package/dist/main/wasm/v1/genesis.d.ts +14 -34
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -26
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.d.ts +40 -4
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -106
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -187
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -210
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -67
- package/dist/main/wasm/v1/types.js +224 -195
- package/dist/module/client/index.js +2 -1
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/google/api/http.d.ts +2636 -6
- package/dist/module/google/protobuf/any.d.ts +14 -2
- package/dist/module/google/protobuf/duration.d.ts +14 -2
- package/dist/module/google/protobuf/timestamp.d.ts +14 -2
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/tendermint/abci/types.d.ts +6360 -92
- package/dist/module/tendermint/crypto/keys.d.ts +14 -2
- package/dist/module/tendermint/crypto/proof.d.ts +152 -10
- package/dist/module/tendermint/types/params.d.ts +196 -12
- package/dist/module/tendermint/types/types.d.ts +1744 -26
- package/dist/module/tendermint/types/validator.d.ts +230 -6
- package/dist/module/tendermint/version/types.d.ts +28 -4
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/utils/convertStringToAny.d.ts +0 -1
- package/dist/module/wasm/v1/authz.d.ts +20 -75
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -34
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -26
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/pagination.d.ts +40 -4
- package/dist/module/wasm/v1/proposal.d.ts +23 -106
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -187
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -210
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -67
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: coreum-protos/ft/query.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryWhitelistedBalanceResponse = exports.QueryWhitelistedBalanceRequest = exports.QueryWhitelistedBalancesResponse = exports.QueryWhitelistedBalancesRequest = exports.QueryFrozenBalanceResponse = exports.QueryFrozenBalanceRequest = exports.QueryFrozenBalancesResponse = exports.QueryFrozenBalancesRequest = exports.QueryTokensResponse = exports.QueryTokensRequest = exports.QueryTokenResponse = exports.QueryTokenRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryDEXSettingsResponse = exports.QueryDEXSettingsRequest = exports.QueryWhitelistedBalanceResponse = exports.QueryWhitelistedBalanceRequest = exports.QueryWhitelistedBalancesResponse = exports.QueryWhitelistedBalancesRequest = exports.QueryFrozenBalanceResponse = exports.QueryFrozenBalanceRequest = exports.QueryFrozenBalancesResponse = exports.QueryFrozenBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.QueryTokensResponse = exports.QueryTokensRequest = exports.QueryTokenUpgradeStatusesResponse = exports.QueryTokenUpgradeStatusesRequest = exports.QueryTokenResponse = exports.QueryTokenRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const pagination_1 = require("cosmjs-types/cosmos/base/query/v1beta1/pagination");
|
|
11
12
|
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
12
13
|
const params_1 = require("./params");
|
|
@@ -16,21 +17,21 @@ function createBaseQueryParamsRequest() {
|
|
|
16
17
|
return {};
|
|
17
18
|
}
|
|
18
19
|
exports.QueryParamsRequest = {
|
|
19
|
-
encode(_, writer =
|
|
20
|
+
encode(_, writer = new binary_1.BinaryWriter()) {
|
|
20
21
|
return writer;
|
|
21
22
|
},
|
|
22
23
|
decode(input, length) {
|
|
23
|
-
const reader = input instanceof
|
|
24
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
24
25
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
26
|
const message = createBaseQueryParamsRequest();
|
|
26
27
|
while (reader.pos < end) {
|
|
27
28
|
const tag = reader.uint32();
|
|
28
29
|
switch (tag >>> 3) {
|
|
29
30
|
}
|
|
30
|
-
if ((tag & 7)
|
|
31
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
32
|
break;
|
|
32
33
|
}
|
|
33
|
-
reader.
|
|
34
|
+
reader.skip(tag & 7);
|
|
34
35
|
}
|
|
35
36
|
return message;
|
|
36
37
|
},
|
|
@@ -42,7 +43,7 @@ exports.QueryParamsRequest = {
|
|
|
42
43
|
return obj;
|
|
43
44
|
},
|
|
44
45
|
create(base) {
|
|
45
|
-
return exports.QueryParamsRequest.fromPartial(base
|
|
46
|
+
return exports.QueryParamsRequest.fromPartial(base ?? {});
|
|
46
47
|
},
|
|
47
48
|
fromPartial(_) {
|
|
48
49
|
const message = createBaseQueryParamsRequest();
|
|
@@ -53,30 +54,31 @@ function createBaseQueryParamsResponse() {
|
|
|
53
54
|
return { params: undefined };
|
|
54
55
|
}
|
|
55
56
|
exports.QueryParamsResponse = {
|
|
56
|
-
encode(message, writer =
|
|
57
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
57
58
|
if (message.params !== undefined) {
|
|
58
59
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
59
60
|
}
|
|
60
61
|
return writer;
|
|
61
62
|
},
|
|
62
63
|
decode(input, length) {
|
|
63
|
-
const reader = input instanceof
|
|
64
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
64
65
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
66
|
const message = createBaseQueryParamsResponse();
|
|
66
67
|
while (reader.pos < end) {
|
|
67
68
|
const tag = reader.uint32();
|
|
68
69
|
switch (tag >>> 3) {
|
|
69
|
-
case 1:
|
|
70
|
-
if (tag
|
|
70
|
+
case 1: {
|
|
71
|
+
if (tag !== 10) {
|
|
71
72
|
break;
|
|
72
73
|
}
|
|
73
74
|
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
74
75
|
continue;
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
|
-
if ((tag & 7)
|
|
78
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
79
|
break;
|
|
78
80
|
}
|
|
79
|
-
reader.
|
|
81
|
+
reader.skip(tag & 7);
|
|
80
82
|
}
|
|
81
83
|
return message;
|
|
82
84
|
},
|
|
@@ -87,12 +89,13 @@ exports.QueryParamsResponse = {
|
|
|
87
89
|
},
|
|
88
90
|
toJSON(message) {
|
|
89
91
|
const obj = {};
|
|
90
|
-
message.params !== undefined
|
|
91
|
-
|
|
92
|
+
if (message.params !== undefined) {
|
|
93
|
+
obj.params = params_1.Params.toJSON(message.params);
|
|
94
|
+
}
|
|
92
95
|
return obj;
|
|
93
96
|
},
|
|
94
97
|
create(base) {
|
|
95
|
-
return exports.QueryParamsResponse.fromPartial(base
|
|
98
|
+
return exports.QueryParamsResponse.fromPartial(base ?? {});
|
|
96
99
|
},
|
|
97
100
|
fromPartial(object) {
|
|
98
101
|
const message = createBaseQueryParamsResponse();
|
|
@@ -107,48 +110,52 @@ function createBaseQueryTokenRequest() {
|
|
|
107
110
|
return { denom: "" };
|
|
108
111
|
}
|
|
109
112
|
exports.QueryTokenRequest = {
|
|
110
|
-
encode(message, writer =
|
|
113
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
111
114
|
if (message.denom !== "") {
|
|
112
115
|
writer.uint32(10).string(message.denom);
|
|
113
116
|
}
|
|
114
117
|
return writer;
|
|
115
118
|
},
|
|
116
119
|
decode(input, length) {
|
|
117
|
-
const reader = input instanceof
|
|
120
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
118
121
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
119
122
|
const message = createBaseQueryTokenRequest();
|
|
120
123
|
while (reader.pos < end) {
|
|
121
124
|
const tag = reader.uint32();
|
|
122
125
|
switch (tag >>> 3) {
|
|
123
|
-
case 1:
|
|
124
|
-
if (tag
|
|
126
|
+
case 1: {
|
|
127
|
+
if (tag !== 10) {
|
|
125
128
|
break;
|
|
126
129
|
}
|
|
127
130
|
message.denom = reader.string();
|
|
128
131
|
continue;
|
|
132
|
+
}
|
|
129
133
|
}
|
|
130
|
-
if ((tag & 7)
|
|
134
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
131
135
|
break;
|
|
132
136
|
}
|
|
133
|
-
reader.
|
|
137
|
+
reader.skip(tag & 7);
|
|
134
138
|
}
|
|
135
139
|
return message;
|
|
136
140
|
},
|
|
137
141
|
fromJSON(object) {
|
|
138
|
-
return {
|
|
142
|
+
return {
|
|
143
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
144
|
+
};
|
|
139
145
|
},
|
|
140
146
|
toJSON(message) {
|
|
141
147
|
const obj = {};
|
|
142
|
-
message.denom !==
|
|
148
|
+
if (message.denom !== "") {
|
|
149
|
+
obj.denom = message.denom;
|
|
150
|
+
}
|
|
143
151
|
return obj;
|
|
144
152
|
},
|
|
145
153
|
create(base) {
|
|
146
|
-
return exports.QueryTokenRequest.fromPartial(base
|
|
154
|
+
return exports.QueryTokenRequest.fromPartial(base ?? {});
|
|
147
155
|
},
|
|
148
156
|
fromPartial(object) {
|
|
149
|
-
var _a;
|
|
150
157
|
const message = createBaseQueryTokenRequest();
|
|
151
|
-
message.denom =
|
|
158
|
+
message.denom = object.denom ?? "";
|
|
152
159
|
return message;
|
|
153
160
|
},
|
|
154
161
|
};
|
|
@@ -156,30 +163,31 @@ function createBaseQueryTokenResponse() {
|
|
|
156
163
|
return { token: undefined };
|
|
157
164
|
}
|
|
158
165
|
exports.QueryTokenResponse = {
|
|
159
|
-
encode(message, writer =
|
|
166
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
160
167
|
if (message.token !== undefined) {
|
|
161
168
|
token_1.Token.encode(message.token, writer.uint32(10).fork()).ldelim();
|
|
162
169
|
}
|
|
163
170
|
return writer;
|
|
164
171
|
},
|
|
165
172
|
decode(input, length) {
|
|
166
|
-
const reader = input instanceof
|
|
173
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
167
174
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
168
175
|
const message = createBaseQueryTokenResponse();
|
|
169
176
|
while (reader.pos < end) {
|
|
170
177
|
const tag = reader.uint32();
|
|
171
178
|
switch (tag >>> 3) {
|
|
172
|
-
case 1:
|
|
173
|
-
if (tag
|
|
179
|
+
case 1: {
|
|
180
|
+
if (tag !== 10) {
|
|
174
181
|
break;
|
|
175
182
|
}
|
|
176
183
|
message.token = token_1.Token.decode(reader, reader.uint32());
|
|
177
184
|
continue;
|
|
185
|
+
}
|
|
178
186
|
}
|
|
179
|
-
if ((tag & 7)
|
|
187
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
180
188
|
break;
|
|
181
189
|
}
|
|
182
|
-
reader.
|
|
190
|
+
reader.skip(tag & 7);
|
|
183
191
|
}
|
|
184
192
|
return message;
|
|
185
193
|
},
|
|
@@ -190,12 +198,13 @@ exports.QueryTokenResponse = {
|
|
|
190
198
|
},
|
|
191
199
|
toJSON(message) {
|
|
192
200
|
const obj = {};
|
|
193
|
-
message.token !== undefined
|
|
194
|
-
|
|
201
|
+
if (message.token !== undefined) {
|
|
202
|
+
obj.token = token_1.Token.toJSON(message.token);
|
|
203
|
+
}
|
|
195
204
|
return obj;
|
|
196
205
|
},
|
|
197
206
|
create(base) {
|
|
198
|
-
return exports.QueryTokenResponse.fromPartial(base
|
|
207
|
+
return exports.QueryTokenResponse.fromPartial(base ?? {});
|
|
199
208
|
},
|
|
200
209
|
fromPartial(object) {
|
|
201
210
|
const message = createBaseQueryTokenResponse();
|
|
@@ -206,11 +215,122 @@ exports.QueryTokenResponse = {
|
|
|
206
215
|
return message;
|
|
207
216
|
},
|
|
208
217
|
};
|
|
218
|
+
function createBaseQueryTokenUpgradeStatusesRequest() {
|
|
219
|
+
return { denom: "" };
|
|
220
|
+
}
|
|
221
|
+
exports.QueryTokenUpgradeStatusesRequest = {
|
|
222
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
223
|
+
if (message.denom !== "") {
|
|
224
|
+
writer.uint32(10).string(message.denom);
|
|
225
|
+
}
|
|
226
|
+
return writer;
|
|
227
|
+
},
|
|
228
|
+
decode(input, length) {
|
|
229
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
230
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
231
|
+
const message = createBaseQueryTokenUpgradeStatusesRequest();
|
|
232
|
+
while (reader.pos < end) {
|
|
233
|
+
const tag = reader.uint32();
|
|
234
|
+
switch (tag >>> 3) {
|
|
235
|
+
case 1: {
|
|
236
|
+
if (tag !== 10) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.denom = reader.string();
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
reader.skip(tag & 7);
|
|
247
|
+
}
|
|
248
|
+
return message;
|
|
249
|
+
},
|
|
250
|
+
fromJSON(object) {
|
|
251
|
+
return {
|
|
252
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
toJSON(message) {
|
|
256
|
+
const obj = {};
|
|
257
|
+
if (message.denom !== "") {
|
|
258
|
+
obj.denom = message.denom;
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
},
|
|
262
|
+
create(base) {
|
|
263
|
+
return exports.QueryTokenUpgradeStatusesRequest.fromPartial(base ?? {});
|
|
264
|
+
},
|
|
265
|
+
fromPartial(object) {
|
|
266
|
+
const message = createBaseQueryTokenUpgradeStatusesRequest();
|
|
267
|
+
message.denom = object.denom ?? "";
|
|
268
|
+
return message;
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
function createBaseQueryTokenUpgradeStatusesResponse() {
|
|
272
|
+
return { statuses: undefined };
|
|
273
|
+
}
|
|
274
|
+
exports.QueryTokenUpgradeStatusesResponse = {
|
|
275
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
276
|
+
if (message.statuses !== undefined) {
|
|
277
|
+
token_1.TokenUpgradeStatuses.encode(message.statuses, writer.uint32(10).fork()).ldelim();
|
|
278
|
+
}
|
|
279
|
+
return writer;
|
|
280
|
+
},
|
|
281
|
+
decode(input, length) {
|
|
282
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
283
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
284
|
+
const message = createBaseQueryTokenUpgradeStatusesResponse();
|
|
285
|
+
while (reader.pos < end) {
|
|
286
|
+
const tag = reader.uint32();
|
|
287
|
+
switch (tag >>> 3) {
|
|
288
|
+
case 1: {
|
|
289
|
+
if (tag !== 10) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
message.statuses = token_1.TokenUpgradeStatuses.decode(reader, reader.uint32());
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
reader.skip(tag & 7);
|
|
300
|
+
}
|
|
301
|
+
return message;
|
|
302
|
+
},
|
|
303
|
+
fromJSON(object) {
|
|
304
|
+
return {
|
|
305
|
+
statuses: isSet(object.statuses)
|
|
306
|
+
? token_1.TokenUpgradeStatuses.fromJSON(object.statuses)
|
|
307
|
+
: undefined,
|
|
308
|
+
};
|
|
309
|
+
},
|
|
310
|
+
toJSON(message) {
|
|
311
|
+
const obj = {};
|
|
312
|
+
if (message.statuses !== undefined) {
|
|
313
|
+
obj.statuses = token_1.TokenUpgradeStatuses.toJSON(message.statuses);
|
|
314
|
+
}
|
|
315
|
+
return obj;
|
|
316
|
+
},
|
|
317
|
+
create(base) {
|
|
318
|
+
return exports.QueryTokenUpgradeStatusesResponse.fromPartial(base ?? {});
|
|
319
|
+
},
|
|
320
|
+
fromPartial(object) {
|
|
321
|
+
const message = createBaseQueryTokenUpgradeStatusesResponse();
|
|
322
|
+
message.statuses =
|
|
323
|
+
object.statuses !== undefined && object.statuses !== null
|
|
324
|
+
? token_1.TokenUpgradeStatuses.fromPartial(object.statuses)
|
|
325
|
+
: undefined;
|
|
326
|
+
return message;
|
|
327
|
+
},
|
|
328
|
+
};
|
|
209
329
|
function createBaseQueryTokensRequest() {
|
|
210
330
|
return { pagination: undefined, issuer: "" };
|
|
211
331
|
}
|
|
212
332
|
exports.QueryTokensRequest = {
|
|
213
|
-
encode(message, writer =
|
|
333
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
214
334
|
if (message.pagination !== undefined) {
|
|
215
335
|
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
216
336
|
}
|
|
@@ -220,29 +340,31 @@ exports.QueryTokensRequest = {
|
|
|
220
340
|
return writer;
|
|
221
341
|
},
|
|
222
342
|
decode(input, length) {
|
|
223
|
-
const reader = input instanceof
|
|
343
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
224
344
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
225
345
|
const message = createBaseQueryTokensRequest();
|
|
226
346
|
while (reader.pos < end) {
|
|
227
347
|
const tag = reader.uint32();
|
|
228
348
|
switch (tag >>> 3) {
|
|
229
|
-
case 1:
|
|
230
|
-
if (tag
|
|
349
|
+
case 1: {
|
|
350
|
+
if (tag !== 10) {
|
|
231
351
|
break;
|
|
232
352
|
}
|
|
233
353
|
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
234
354
|
continue;
|
|
235
|
-
|
|
236
|
-
|
|
355
|
+
}
|
|
356
|
+
case 2: {
|
|
357
|
+
if (tag !== 18) {
|
|
237
358
|
break;
|
|
238
359
|
}
|
|
239
360
|
message.issuer = reader.string();
|
|
240
361
|
continue;
|
|
362
|
+
}
|
|
241
363
|
}
|
|
242
|
-
if ((tag & 7)
|
|
364
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
243
365
|
break;
|
|
244
366
|
}
|
|
245
|
-
reader.
|
|
367
|
+
reader.skip(tag & 7);
|
|
246
368
|
}
|
|
247
369
|
return message;
|
|
248
370
|
},
|
|
@@ -251,29 +373,29 @@ exports.QueryTokensRequest = {
|
|
|
251
373
|
pagination: isSet(object.pagination)
|
|
252
374
|
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
253
375
|
: undefined,
|
|
254
|
-
issuer: isSet(object.issuer) ? String(object.issuer) : "",
|
|
376
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
255
377
|
};
|
|
256
378
|
},
|
|
257
379
|
toJSON(message) {
|
|
258
380
|
const obj = {};
|
|
259
|
-
message.pagination !== undefined
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
381
|
+
if (message.pagination !== undefined) {
|
|
382
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
383
|
+
}
|
|
384
|
+
if (message.issuer !== "") {
|
|
385
|
+
obj.issuer = message.issuer;
|
|
386
|
+
}
|
|
264
387
|
return obj;
|
|
265
388
|
},
|
|
266
389
|
create(base) {
|
|
267
|
-
return exports.QueryTokensRequest.fromPartial(base
|
|
390
|
+
return exports.QueryTokensRequest.fromPartial(base ?? {});
|
|
268
391
|
},
|
|
269
392
|
fromPartial(object) {
|
|
270
|
-
var _a;
|
|
271
393
|
const message = createBaseQueryTokensRequest();
|
|
272
394
|
message.pagination =
|
|
273
395
|
object.pagination !== undefined && object.pagination !== null
|
|
274
396
|
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
275
397
|
: undefined;
|
|
276
|
-
message.issuer =
|
|
398
|
+
message.issuer = object.issuer ?? "";
|
|
277
399
|
return message;
|
|
278
400
|
},
|
|
279
401
|
};
|
|
@@ -281,7 +403,7 @@ function createBaseQueryTokensResponse() {
|
|
|
281
403
|
return { pagination: undefined, tokens: [] };
|
|
282
404
|
}
|
|
283
405
|
exports.QueryTokensResponse = {
|
|
284
|
-
encode(message, writer =
|
|
406
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
285
407
|
if (message.pagination !== undefined) {
|
|
286
408
|
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
287
409
|
}
|
|
@@ -291,29 +413,31 @@ exports.QueryTokensResponse = {
|
|
|
291
413
|
return writer;
|
|
292
414
|
},
|
|
293
415
|
decode(input, length) {
|
|
294
|
-
const reader = input instanceof
|
|
416
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
295
417
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
296
418
|
const message = createBaseQueryTokensResponse();
|
|
297
419
|
while (reader.pos < end) {
|
|
298
420
|
const tag = reader.uint32();
|
|
299
421
|
switch (tag >>> 3) {
|
|
300
|
-
case 1:
|
|
301
|
-
if (tag
|
|
422
|
+
case 1: {
|
|
423
|
+
if (tag !== 10) {
|
|
302
424
|
break;
|
|
303
425
|
}
|
|
304
426
|
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
305
427
|
continue;
|
|
306
|
-
|
|
307
|
-
|
|
428
|
+
}
|
|
429
|
+
case 2: {
|
|
430
|
+
if (tag !== 18) {
|
|
308
431
|
break;
|
|
309
432
|
}
|
|
310
433
|
message.tokens.push(token_1.Token.decode(reader, reader.uint32()));
|
|
311
434
|
continue;
|
|
435
|
+
}
|
|
312
436
|
}
|
|
313
|
-
if ((tag & 7)
|
|
437
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
314
438
|
break;
|
|
315
439
|
}
|
|
316
|
-
reader.
|
|
440
|
+
reader.skip(tag & 7);
|
|
317
441
|
}
|
|
318
442
|
return message;
|
|
319
443
|
},
|
|
@@ -322,36 +446,258 @@ exports.QueryTokensResponse = {
|
|
|
322
446
|
pagination: isSet(object.pagination)
|
|
323
447
|
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
324
448
|
: undefined,
|
|
325
|
-
tokens: Array.isArray(object
|
|
449
|
+
tokens: globalThis.Array.isArray(object?.tokens)
|
|
326
450
|
? object.tokens.map((e) => token_1.Token.fromJSON(e))
|
|
327
451
|
: [],
|
|
328
452
|
};
|
|
329
453
|
},
|
|
330
454
|
toJSON(message) {
|
|
331
455
|
const obj = {};
|
|
332
|
-
message.pagination !== undefined
|
|
333
|
-
|
|
334
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
335
|
-
: undefined);
|
|
336
|
-
if (message.tokens) {
|
|
337
|
-
obj.tokens = message.tokens.map((e) => (e ? token_1.Token.toJSON(e) : undefined));
|
|
456
|
+
if (message.pagination !== undefined) {
|
|
457
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
338
458
|
}
|
|
339
|
-
|
|
340
|
-
obj.tokens =
|
|
459
|
+
if (message.tokens?.length) {
|
|
460
|
+
obj.tokens = message.tokens.map((e) => token_1.Token.toJSON(e));
|
|
341
461
|
}
|
|
342
462
|
return obj;
|
|
343
463
|
},
|
|
344
464
|
create(base) {
|
|
345
|
-
return exports.QueryTokensResponse.fromPartial(base
|
|
465
|
+
return exports.QueryTokensResponse.fromPartial(base ?? {});
|
|
346
466
|
},
|
|
347
467
|
fromPartial(object) {
|
|
348
|
-
var _a;
|
|
349
468
|
const message = createBaseQueryTokensResponse();
|
|
350
469
|
message.pagination =
|
|
351
470
|
object.pagination !== undefined && object.pagination !== null
|
|
352
471
|
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
353
472
|
: undefined;
|
|
354
|
-
message.tokens =
|
|
473
|
+
message.tokens = object.tokens?.map((e) => token_1.Token.fromPartial(e)) || [];
|
|
474
|
+
return message;
|
|
475
|
+
},
|
|
476
|
+
};
|
|
477
|
+
function createBaseQueryBalanceRequest() {
|
|
478
|
+
return { account: "", denom: "" };
|
|
479
|
+
}
|
|
480
|
+
exports.QueryBalanceRequest = {
|
|
481
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
482
|
+
if (message.account !== "") {
|
|
483
|
+
writer.uint32(10).string(message.account);
|
|
484
|
+
}
|
|
485
|
+
if (message.denom !== "") {
|
|
486
|
+
writer.uint32(18).string(message.denom);
|
|
487
|
+
}
|
|
488
|
+
return writer;
|
|
489
|
+
},
|
|
490
|
+
decode(input, length) {
|
|
491
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
492
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
493
|
+
const message = createBaseQueryBalanceRequest();
|
|
494
|
+
while (reader.pos < end) {
|
|
495
|
+
const tag = reader.uint32();
|
|
496
|
+
switch (tag >>> 3) {
|
|
497
|
+
case 1: {
|
|
498
|
+
if (tag !== 10) {
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
message.account = reader.string();
|
|
502
|
+
continue;
|
|
503
|
+
}
|
|
504
|
+
case 2: {
|
|
505
|
+
if (tag !== 18) {
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
message.denom = reader.string();
|
|
509
|
+
continue;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
reader.skip(tag & 7);
|
|
516
|
+
}
|
|
517
|
+
return message;
|
|
518
|
+
},
|
|
519
|
+
fromJSON(object) {
|
|
520
|
+
return {
|
|
521
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
522
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
523
|
+
};
|
|
524
|
+
},
|
|
525
|
+
toJSON(message) {
|
|
526
|
+
const obj = {};
|
|
527
|
+
if (message.account !== "") {
|
|
528
|
+
obj.account = message.account;
|
|
529
|
+
}
|
|
530
|
+
if (message.denom !== "") {
|
|
531
|
+
obj.denom = message.denom;
|
|
532
|
+
}
|
|
533
|
+
return obj;
|
|
534
|
+
},
|
|
535
|
+
create(base) {
|
|
536
|
+
return exports.QueryBalanceRequest.fromPartial(base ?? {});
|
|
537
|
+
},
|
|
538
|
+
fromPartial(object) {
|
|
539
|
+
const message = createBaseQueryBalanceRequest();
|
|
540
|
+
message.account = object.account ?? "";
|
|
541
|
+
message.denom = object.denom ?? "";
|
|
542
|
+
return message;
|
|
543
|
+
},
|
|
544
|
+
};
|
|
545
|
+
function createBaseQueryBalanceResponse() {
|
|
546
|
+
return {
|
|
547
|
+
balance: "",
|
|
548
|
+
whitelisted: "",
|
|
549
|
+
frozen: "",
|
|
550
|
+
locked: "",
|
|
551
|
+
lockedInVesting: "",
|
|
552
|
+
lockedInDex: "",
|
|
553
|
+
expectedToReceiveInDex: "",
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
exports.QueryBalanceResponse = {
|
|
557
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
558
|
+
if (message.balance !== "") {
|
|
559
|
+
writer.uint32(10).string(message.balance);
|
|
560
|
+
}
|
|
561
|
+
if (message.whitelisted !== "") {
|
|
562
|
+
writer.uint32(18).string(message.whitelisted);
|
|
563
|
+
}
|
|
564
|
+
if (message.frozen !== "") {
|
|
565
|
+
writer.uint32(26).string(message.frozen);
|
|
566
|
+
}
|
|
567
|
+
if (message.locked !== "") {
|
|
568
|
+
writer.uint32(34).string(message.locked);
|
|
569
|
+
}
|
|
570
|
+
if (message.lockedInVesting !== "") {
|
|
571
|
+
writer.uint32(42).string(message.lockedInVesting);
|
|
572
|
+
}
|
|
573
|
+
if (message.lockedInDex !== "") {
|
|
574
|
+
writer.uint32(50).string(message.lockedInDex);
|
|
575
|
+
}
|
|
576
|
+
if (message.expectedToReceiveInDex !== "") {
|
|
577
|
+
writer.uint32(58).string(message.expectedToReceiveInDex);
|
|
578
|
+
}
|
|
579
|
+
return writer;
|
|
580
|
+
},
|
|
581
|
+
decode(input, length) {
|
|
582
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
583
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
584
|
+
const message = createBaseQueryBalanceResponse();
|
|
585
|
+
while (reader.pos < end) {
|
|
586
|
+
const tag = reader.uint32();
|
|
587
|
+
switch (tag >>> 3) {
|
|
588
|
+
case 1: {
|
|
589
|
+
if (tag !== 10) {
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
message.balance = reader.string();
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
case 2: {
|
|
596
|
+
if (tag !== 18) {
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
message.whitelisted = reader.string();
|
|
600
|
+
continue;
|
|
601
|
+
}
|
|
602
|
+
case 3: {
|
|
603
|
+
if (tag !== 26) {
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
message.frozen = reader.string();
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
case 4: {
|
|
610
|
+
if (tag !== 34) {
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
message.locked = reader.string();
|
|
614
|
+
continue;
|
|
615
|
+
}
|
|
616
|
+
case 5: {
|
|
617
|
+
if (tag !== 42) {
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
message.lockedInVesting = reader.string();
|
|
621
|
+
continue;
|
|
622
|
+
}
|
|
623
|
+
case 6: {
|
|
624
|
+
if (tag !== 50) {
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
message.lockedInDex = reader.string();
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
case 7: {
|
|
631
|
+
if (tag !== 58) {
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
message.expectedToReceiveInDex = reader.string();
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
reader.skip(tag & 7);
|
|
642
|
+
}
|
|
643
|
+
return message;
|
|
644
|
+
},
|
|
645
|
+
fromJSON(object) {
|
|
646
|
+
return {
|
|
647
|
+
balance: isSet(object.balance) ? globalThis.String(object.balance) : "",
|
|
648
|
+
whitelisted: isSet(object.whitelisted)
|
|
649
|
+
? globalThis.String(object.whitelisted)
|
|
650
|
+
: "",
|
|
651
|
+
frozen: isSet(object.frozen) ? globalThis.String(object.frozen) : "",
|
|
652
|
+
locked: isSet(object.locked) ? globalThis.String(object.locked) : "",
|
|
653
|
+
lockedInVesting: isSet(object.lockedInVesting)
|
|
654
|
+
? globalThis.String(object.lockedInVesting)
|
|
655
|
+
: "",
|
|
656
|
+
lockedInDex: isSet(object.lockedInDex)
|
|
657
|
+
? globalThis.String(object.lockedInDex)
|
|
658
|
+
: "",
|
|
659
|
+
expectedToReceiveInDex: isSet(object.expectedToReceiveInDex)
|
|
660
|
+
? globalThis.String(object.expectedToReceiveInDex)
|
|
661
|
+
: "",
|
|
662
|
+
};
|
|
663
|
+
},
|
|
664
|
+
toJSON(message) {
|
|
665
|
+
const obj = {};
|
|
666
|
+
if (message.balance !== "") {
|
|
667
|
+
obj.balance = message.balance;
|
|
668
|
+
}
|
|
669
|
+
if (message.whitelisted !== "") {
|
|
670
|
+
obj.whitelisted = message.whitelisted;
|
|
671
|
+
}
|
|
672
|
+
if (message.frozen !== "") {
|
|
673
|
+
obj.frozen = message.frozen;
|
|
674
|
+
}
|
|
675
|
+
if (message.locked !== "") {
|
|
676
|
+
obj.locked = message.locked;
|
|
677
|
+
}
|
|
678
|
+
if (message.lockedInVesting !== "") {
|
|
679
|
+
obj.lockedInVesting = message.lockedInVesting;
|
|
680
|
+
}
|
|
681
|
+
if (message.lockedInDex !== "") {
|
|
682
|
+
obj.lockedInDex = message.lockedInDex;
|
|
683
|
+
}
|
|
684
|
+
if (message.expectedToReceiveInDex !== "") {
|
|
685
|
+
obj.expectedToReceiveInDex = message.expectedToReceiveInDex;
|
|
686
|
+
}
|
|
687
|
+
return obj;
|
|
688
|
+
},
|
|
689
|
+
create(base) {
|
|
690
|
+
return exports.QueryBalanceResponse.fromPartial(base ?? {});
|
|
691
|
+
},
|
|
692
|
+
fromPartial(object) {
|
|
693
|
+
const message = createBaseQueryBalanceResponse();
|
|
694
|
+
message.balance = object.balance ?? "";
|
|
695
|
+
message.whitelisted = object.whitelisted ?? "";
|
|
696
|
+
message.frozen = object.frozen ?? "";
|
|
697
|
+
message.locked = object.locked ?? "";
|
|
698
|
+
message.lockedInVesting = object.lockedInVesting ?? "";
|
|
699
|
+
message.lockedInDex = object.lockedInDex ?? "";
|
|
700
|
+
message.expectedToReceiveInDex = object.expectedToReceiveInDex ?? "";
|
|
355
701
|
return message;
|
|
356
702
|
},
|
|
357
703
|
};
|
|
@@ -359,7 +705,7 @@ function createBaseQueryFrozenBalancesRequest() {
|
|
|
359
705
|
return { pagination: undefined, account: "" };
|
|
360
706
|
}
|
|
361
707
|
exports.QueryFrozenBalancesRequest = {
|
|
362
|
-
encode(message, writer =
|
|
708
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
363
709
|
if (message.pagination !== undefined) {
|
|
364
710
|
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
365
711
|
}
|
|
@@ -369,29 +715,31 @@ exports.QueryFrozenBalancesRequest = {
|
|
|
369
715
|
return writer;
|
|
370
716
|
},
|
|
371
717
|
decode(input, length) {
|
|
372
|
-
const reader = input instanceof
|
|
718
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
373
719
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
374
720
|
const message = createBaseQueryFrozenBalancesRequest();
|
|
375
721
|
while (reader.pos < end) {
|
|
376
722
|
const tag = reader.uint32();
|
|
377
723
|
switch (tag >>> 3) {
|
|
378
|
-
case 1:
|
|
379
|
-
if (tag
|
|
724
|
+
case 1: {
|
|
725
|
+
if (tag !== 10) {
|
|
380
726
|
break;
|
|
381
727
|
}
|
|
382
728
|
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
383
729
|
continue;
|
|
384
|
-
|
|
385
|
-
|
|
730
|
+
}
|
|
731
|
+
case 2: {
|
|
732
|
+
if (tag !== 18) {
|
|
386
733
|
break;
|
|
387
734
|
}
|
|
388
735
|
message.account = reader.string();
|
|
389
736
|
continue;
|
|
737
|
+
}
|
|
390
738
|
}
|
|
391
|
-
if ((tag & 7)
|
|
739
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
392
740
|
break;
|
|
393
741
|
}
|
|
394
|
-
reader.
|
|
742
|
+
reader.skip(tag & 7);
|
|
395
743
|
}
|
|
396
744
|
return message;
|
|
397
745
|
},
|
|
@@ -400,29 +748,29 @@ exports.QueryFrozenBalancesRequest = {
|
|
|
400
748
|
pagination: isSet(object.pagination)
|
|
401
749
|
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
402
750
|
: undefined,
|
|
403
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
751
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
404
752
|
};
|
|
405
753
|
},
|
|
406
754
|
toJSON(message) {
|
|
407
755
|
const obj = {};
|
|
408
|
-
message.pagination !== undefined
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
756
|
+
if (message.pagination !== undefined) {
|
|
757
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
758
|
+
}
|
|
759
|
+
if (message.account !== "") {
|
|
760
|
+
obj.account = message.account;
|
|
761
|
+
}
|
|
413
762
|
return obj;
|
|
414
763
|
},
|
|
415
764
|
create(base) {
|
|
416
|
-
return exports.QueryFrozenBalancesRequest.fromPartial(base
|
|
765
|
+
return exports.QueryFrozenBalancesRequest.fromPartial(base ?? {});
|
|
417
766
|
},
|
|
418
767
|
fromPartial(object) {
|
|
419
|
-
var _a;
|
|
420
768
|
const message = createBaseQueryFrozenBalancesRequest();
|
|
421
769
|
message.pagination =
|
|
422
770
|
object.pagination !== undefined && object.pagination !== null
|
|
423
771
|
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
424
772
|
: undefined;
|
|
425
|
-
message.account =
|
|
773
|
+
message.account = object.account ?? "";
|
|
426
774
|
return message;
|
|
427
775
|
},
|
|
428
776
|
};
|
|
@@ -430,7 +778,7 @@ function createBaseQueryFrozenBalancesResponse() {
|
|
|
430
778
|
return { pagination: undefined, balances: [] };
|
|
431
779
|
}
|
|
432
780
|
exports.QueryFrozenBalancesResponse = {
|
|
433
|
-
encode(message, writer =
|
|
781
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
434
782
|
if (message.pagination !== undefined) {
|
|
435
783
|
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
436
784
|
}
|
|
@@ -440,29 +788,31 @@ exports.QueryFrozenBalancesResponse = {
|
|
|
440
788
|
return writer;
|
|
441
789
|
},
|
|
442
790
|
decode(input, length) {
|
|
443
|
-
const reader = input instanceof
|
|
791
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
444
792
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
445
793
|
const message = createBaseQueryFrozenBalancesResponse();
|
|
446
794
|
while (reader.pos < end) {
|
|
447
795
|
const tag = reader.uint32();
|
|
448
796
|
switch (tag >>> 3) {
|
|
449
|
-
case 1:
|
|
450
|
-
if (tag
|
|
797
|
+
case 1: {
|
|
798
|
+
if (tag !== 10) {
|
|
451
799
|
break;
|
|
452
800
|
}
|
|
453
801
|
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
454
802
|
continue;
|
|
455
|
-
|
|
456
|
-
|
|
803
|
+
}
|
|
804
|
+
case 2: {
|
|
805
|
+
if (tag !== 18) {
|
|
457
806
|
break;
|
|
458
807
|
}
|
|
459
808
|
message.balances.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
460
809
|
continue;
|
|
810
|
+
}
|
|
461
811
|
}
|
|
462
|
-
if ((tag & 7)
|
|
812
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
463
813
|
break;
|
|
464
814
|
}
|
|
465
|
-
reader.
|
|
815
|
+
reader.skip(tag & 7);
|
|
466
816
|
}
|
|
467
817
|
return message;
|
|
468
818
|
},
|
|
@@ -471,36 +821,31 @@ exports.QueryFrozenBalancesResponse = {
|
|
|
471
821
|
pagination: isSet(object.pagination)
|
|
472
822
|
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
473
823
|
: undefined,
|
|
474
|
-
balances: Array.isArray(object
|
|
824
|
+
balances: globalThis.Array.isArray(object?.balances)
|
|
475
825
|
? object.balances.map((e) => coin_1.Coin.fromJSON(e))
|
|
476
826
|
: [],
|
|
477
827
|
};
|
|
478
828
|
},
|
|
479
829
|
toJSON(message) {
|
|
480
830
|
const obj = {};
|
|
481
|
-
message.pagination !== undefined
|
|
482
|
-
|
|
483
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
484
|
-
: undefined);
|
|
485
|
-
if (message.balances) {
|
|
486
|
-
obj.balances = message.balances.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
831
|
+
if (message.pagination !== undefined) {
|
|
832
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
487
833
|
}
|
|
488
|
-
|
|
489
|
-
obj.balances =
|
|
834
|
+
if (message.balances?.length) {
|
|
835
|
+
obj.balances = message.balances.map((e) => coin_1.Coin.toJSON(e));
|
|
490
836
|
}
|
|
491
837
|
return obj;
|
|
492
838
|
},
|
|
493
839
|
create(base) {
|
|
494
|
-
return exports.QueryFrozenBalancesResponse.fromPartial(base
|
|
840
|
+
return exports.QueryFrozenBalancesResponse.fromPartial(base ?? {});
|
|
495
841
|
},
|
|
496
842
|
fromPartial(object) {
|
|
497
|
-
var _a;
|
|
498
843
|
const message = createBaseQueryFrozenBalancesResponse();
|
|
499
844
|
message.pagination =
|
|
500
845
|
object.pagination !== undefined && object.pagination !== null
|
|
501
846
|
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
502
847
|
: undefined;
|
|
503
|
-
message.balances =
|
|
848
|
+
message.balances = object.balances?.map((e) => coin_1.Coin.fromPartial(e)) || [];
|
|
504
849
|
return message;
|
|
505
850
|
},
|
|
506
851
|
};
|
|
@@ -508,7 +853,7 @@ function createBaseQueryFrozenBalanceRequest() {
|
|
|
508
853
|
return { account: "", denom: "" };
|
|
509
854
|
}
|
|
510
855
|
exports.QueryFrozenBalanceRequest = {
|
|
511
|
-
encode(message, writer =
|
|
856
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
512
857
|
if (message.account !== "") {
|
|
513
858
|
writer.uint32(10).string(message.account);
|
|
514
859
|
}
|
|
@@ -518,52 +863,57 @@ exports.QueryFrozenBalanceRequest = {
|
|
|
518
863
|
return writer;
|
|
519
864
|
},
|
|
520
865
|
decode(input, length) {
|
|
521
|
-
const reader = input instanceof
|
|
866
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
522
867
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
523
868
|
const message = createBaseQueryFrozenBalanceRequest();
|
|
524
869
|
while (reader.pos < end) {
|
|
525
870
|
const tag = reader.uint32();
|
|
526
871
|
switch (tag >>> 3) {
|
|
527
|
-
case 1:
|
|
528
|
-
if (tag
|
|
872
|
+
case 1: {
|
|
873
|
+
if (tag !== 10) {
|
|
529
874
|
break;
|
|
530
875
|
}
|
|
531
876
|
message.account = reader.string();
|
|
532
877
|
continue;
|
|
533
|
-
|
|
534
|
-
|
|
878
|
+
}
|
|
879
|
+
case 2: {
|
|
880
|
+
if (tag !== 18) {
|
|
535
881
|
break;
|
|
536
882
|
}
|
|
537
883
|
message.denom = reader.string();
|
|
538
884
|
continue;
|
|
885
|
+
}
|
|
539
886
|
}
|
|
540
|
-
if ((tag & 7)
|
|
887
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
541
888
|
break;
|
|
542
889
|
}
|
|
543
|
-
reader.
|
|
890
|
+
reader.skip(tag & 7);
|
|
544
891
|
}
|
|
545
892
|
return message;
|
|
546
893
|
},
|
|
547
894
|
fromJSON(object) {
|
|
548
895
|
return {
|
|
549
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
550
|
-
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
896
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
897
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
551
898
|
};
|
|
552
899
|
},
|
|
553
900
|
toJSON(message) {
|
|
554
901
|
const obj = {};
|
|
555
|
-
message.account !==
|
|
556
|
-
|
|
902
|
+
if (message.account !== "") {
|
|
903
|
+
obj.account = message.account;
|
|
904
|
+
}
|
|
905
|
+
if (message.denom !== "") {
|
|
906
|
+
obj.denom = message.denom;
|
|
907
|
+
}
|
|
557
908
|
return obj;
|
|
558
909
|
},
|
|
559
910
|
create(base) {
|
|
560
|
-
return exports.QueryFrozenBalanceRequest.fromPartial(base
|
|
911
|
+
return exports.QueryFrozenBalanceRequest.fromPartial(base ?? {});
|
|
561
912
|
},
|
|
562
913
|
fromPartial(object) {
|
|
563
|
-
var _a, _b;
|
|
564
914
|
const message = createBaseQueryFrozenBalanceRequest();
|
|
565
|
-
message.account =
|
|
566
|
-
message.denom =
|
|
915
|
+
message.account = object.account ?? "";
|
|
916
|
+
message.denom = object.denom ?? "";
|
|
567
917
|
return message;
|
|
568
918
|
},
|
|
569
919
|
};
|
|
@@ -571,30 +921,31 @@ function createBaseQueryFrozenBalanceResponse() {
|
|
|
571
921
|
return { balance: undefined };
|
|
572
922
|
}
|
|
573
923
|
exports.QueryFrozenBalanceResponse = {
|
|
574
|
-
encode(message, writer =
|
|
924
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
575
925
|
if (message.balance !== undefined) {
|
|
576
926
|
coin_1.Coin.encode(message.balance, writer.uint32(10).fork()).ldelim();
|
|
577
927
|
}
|
|
578
928
|
return writer;
|
|
579
929
|
},
|
|
580
930
|
decode(input, length) {
|
|
581
|
-
const reader = input instanceof
|
|
931
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
582
932
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
583
933
|
const message = createBaseQueryFrozenBalanceResponse();
|
|
584
934
|
while (reader.pos < end) {
|
|
585
935
|
const tag = reader.uint32();
|
|
586
936
|
switch (tag >>> 3) {
|
|
587
|
-
case 1:
|
|
588
|
-
if (tag
|
|
937
|
+
case 1: {
|
|
938
|
+
if (tag !== 10) {
|
|
589
939
|
break;
|
|
590
940
|
}
|
|
591
941
|
message.balance = coin_1.Coin.decode(reader, reader.uint32());
|
|
592
942
|
continue;
|
|
943
|
+
}
|
|
593
944
|
}
|
|
594
|
-
if ((tag & 7)
|
|
945
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
595
946
|
break;
|
|
596
947
|
}
|
|
597
|
-
reader.
|
|
948
|
+
reader.skip(tag & 7);
|
|
598
949
|
}
|
|
599
950
|
return message;
|
|
600
951
|
},
|
|
@@ -607,14 +958,13 @@ exports.QueryFrozenBalanceResponse = {
|
|
|
607
958
|
},
|
|
608
959
|
toJSON(message) {
|
|
609
960
|
const obj = {};
|
|
610
|
-
message.balance !== undefined
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
: undefined);
|
|
961
|
+
if (message.balance !== undefined) {
|
|
962
|
+
obj.balance = coin_1.Coin.toJSON(message.balance);
|
|
963
|
+
}
|
|
614
964
|
return obj;
|
|
615
965
|
},
|
|
616
966
|
create(base) {
|
|
617
|
-
return exports.QueryFrozenBalanceResponse.fromPartial(base
|
|
967
|
+
return exports.QueryFrozenBalanceResponse.fromPartial(base ?? {});
|
|
618
968
|
},
|
|
619
969
|
fromPartial(object) {
|
|
620
970
|
const message = createBaseQueryFrozenBalanceResponse();
|
|
@@ -629,7 +979,7 @@ function createBaseQueryWhitelistedBalancesRequest() {
|
|
|
629
979
|
return { pagination: undefined, account: "" };
|
|
630
980
|
}
|
|
631
981
|
exports.QueryWhitelistedBalancesRequest = {
|
|
632
|
-
encode(message, writer =
|
|
982
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
633
983
|
if (message.pagination !== undefined) {
|
|
634
984
|
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
635
985
|
}
|
|
@@ -639,29 +989,31 @@ exports.QueryWhitelistedBalancesRequest = {
|
|
|
639
989
|
return writer;
|
|
640
990
|
},
|
|
641
991
|
decode(input, length) {
|
|
642
|
-
const reader = input instanceof
|
|
992
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
643
993
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
644
994
|
const message = createBaseQueryWhitelistedBalancesRequest();
|
|
645
995
|
while (reader.pos < end) {
|
|
646
996
|
const tag = reader.uint32();
|
|
647
997
|
switch (tag >>> 3) {
|
|
648
|
-
case 1:
|
|
649
|
-
if (tag
|
|
998
|
+
case 1: {
|
|
999
|
+
if (tag !== 10) {
|
|
650
1000
|
break;
|
|
651
1001
|
}
|
|
652
1002
|
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
653
1003
|
continue;
|
|
654
|
-
|
|
655
|
-
|
|
1004
|
+
}
|
|
1005
|
+
case 2: {
|
|
1006
|
+
if (tag !== 18) {
|
|
656
1007
|
break;
|
|
657
1008
|
}
|
|
658
1009
|
message.account = reader.string();
|
|
659
1010
|
continue;
|
|
1011
|
+
}
|
|
660
1012
|
}
|
|
661
|
-
if ((tag & 7)
|
|
1013
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
662
1014
|
break;
|
|
663
1015
|
}
|
|
664
|
-
reader.
|
|
1016
|
+
reader.skip(tag & 7);
|
|
665
1017
|
}
|
|
666
1018
|
return message;
|
|
667
1019
|
},
|
|
@@ -670,29 +1022,29 @@ exports.QueryWhitelistedBalancesRequest = {
|
|
|
670
1022
|
pagination: isSet(object.pagination)
|
|
671
1023
|
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
672
1024
|
: undefined,
|
|
673
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
1025
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
674
1026
|
};
|
|
675
1027
|
},
|
|
676
1028
|
toJSON(message) {
|
|
677
1029
|
const obj = {};
|
|
678
|
-
message.pagination !== undefined
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
1030
|
+
if (message.pagination !== undefined) {
|
|
1031
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
1032
|
+
}
|
|
1033
|
+
if (message.account !== "") {
|
|
1034
|
+
obj.account = message.account;
|
|
1035
|
+
}
|
|
683
1036
|
return obj;
|
|
684
1037
|
},
|
|
685
1038
|
create(base) {
|
|
686
|
-
return exports.QueryWhitelistedBalancesRequest.fromPartial(base
|
|
1039
|
+
return exports.QueryWhitelistedBalancesRequest.fromPartial(base ?? {});
|
|
687
1040
|
},
|
|
688
1041
|
fromPartial(object) {
|
|
689
|
-
var _a;
|
|
690
1042
|
const message = createBaseQueryWhitelistedBalancesRequest();
|
|
691
1043
|
message.pagination =
|
|
692
1044
|
object.pagination !== undefined && object.pagination !== null
|
|
693
1045
|
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
694
1046
|
: undefined;
|
|
695
|
-
message.account =
|
|
1047
|
+
message.account = object.account ?? "";
|
|
696
1048
|
return message;
|
|
697
1049
|
},
|
|
698
1050
|
};
|
|
@@ -700,7 +1052,7 @@ function createBaseQueryWhitelistedBalancesResponse() {
|
|
|
700
1052
|
return { pagination: undefined, balances: [] };
|
|
701
1053
|
}
|
|
702
1054
|
exports.QueryWhitelistedBalancesResponse = {
|
|
703
|
-
encode(message, writer =
|
|
1055
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
704
1056
|
if (message.pagination !== undefined) {
|
|
705
1057
|
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
706
1058
|
}
|
|
@@ -710,29 +1062,31 @@ exports.QueryWhitelistedBalancesResponse = {
|
|
|
710
1062
|
return writer;
|
|
711
1063
|
},
|
|
712
1064
|
decode(input, length) {
|
|
713
|
-
const reader = input instanceof
|
|
1065
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
714
1066
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
715
1067
|
const message = createBaseQueryWhitelistedBalancesResponse();
|
|
716
1068
|
while (reader.pos < end) {
|
|
717
1069
|
const tag = reader.uint32();
|
|
718
1070
|
switch (tag >>> 3) {
|
|
719
|
-
case 1:
|
|
720
|
-
if (tag
|
|
1071
|
+
case 1: {
|
|
1072
|
+
if (tag !== 10) {
|
|
721
1073
|
break;
|
|
722
1074
|
}
|
|
723
1075
|
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
724
1076
|
continue;
|
|
725
|
-
|
|
726
|
-
|
|
1077
|
+
}
|
|
1078
|
+
case 2: {
|
|
1079
|
+
if (tag !== 18) {
|
|
727
1080
|
break;
|
|
728
1081
|
}
|
|
729
1082
|
message.balances.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
730
1083
|
continue;
|
|
1084
|
+
}
|
|
731
1085
|
}
|
|
732
|
-
if ((tag & 7)
|
|
1086
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
733
1087
|
break;
|
|
734
1088
|
}
|
|
735
|
-
reader.
|
|
1089
|
+
reader.skip(tag & 7);
|
|
736
1090
|
}
|
|
737
1091
|
return message;
|
|
738
1092
|
},
|
|
@@ -741,36 +1095,31 @@ exports.QueryWhitelistedBalancesResponse = {
|
|
|
741
1095
|
pagination: isSet(object.pagination)
|
|
742
1096
|
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
743
1097
|
: undefined,
|
|
744
|
-
balances: Array.isArray(object
|
|
1098
|
+
balances: globalThis.Array.isArray(object?.balances)
|
|
745
1099
|
? object.balances.map((e) => coin_1.Coin.fromJSON(e))
|
|
746
1100
|
: [],
|
|
747
1101
|
};
|
|
748
1102
|
},
|
|
749
1103
|
toJSON(message) {
|
|
750
1104
|
const obj = {};
|
|
751
|
-
message.pagination !== undefined
|
|
752
|
-
|
|
753
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
754
|
-
: undefined);
|
|
755
|
-
if (message.balances) {
|
|
756
|
-
obj.balances = message.balances.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
1105
|
+
if (message.pagination !== undefined) {
|
|
1106
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
757
1107
|
}
|
|
758
|
-
|
|
759
|
-
obj.balances =
|
|
1108
|
+
if (message.balances?.length) {
|
|
1109
|
+
obj.balances = message.balances.map((e) => coin_1.Coin.toJSON(e));
|
|
760
1110
|
}
|
|
761
1111
|
return obj;
|
|
762
1112
|
},
|
|
763
1113
|
create(base) {
|
|
764
|
-
return exports.QueryWhitelistedBalancesResponse.fromPartial(base
|
|
1114
|
+
return exports.QueryWhitelistedBalancesResponse.fromPartial(base ?? {});
|
|
765
1115
|
},
|
|
766
1116
|
fromPartial(object) {
|
|
767
|
-
var _a;
|
|
768
1117
|
const message = createBaseQueryWhitelistedBalancesResponse();
|
|
769
1118
|
message.pagination =
|
|
770
1119
|
object.pagination !== undefined && object.pagination !== null
|
|
771
1120
|
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
772
1121
|
: undefined;
|
|
773
|
-
message.balances =
|
|
1122
|
+
message.balances = object.balances?.map((e) => coin_1.Coin.fromPartial(e)) || [];
|
|
774
1123
|
return message;
|
|
775
1124
|
},
|
|
776
1125
|
};
|
|
@@ -778,7 +1127,7 @@ function createBaseQueryWhitelistedBalanceRequest() {
|
|
|
778
1127
|
return { account: "", denom: "" };
|
|
779
1128
|
}
|
|
780
1129
|
exports.QueryWhitelistedBalanceRequest = {
|
|
781
|
-
encode(message, writer =
|
|
1130
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
782
1131
|
if (message.account !== "") {
|
|
783
1132
|
writer.uint32(10).string(message.account);
|
|
784
1133
|
}
|
|
@@ -788,52 +1137,57 @@ exports.QueryWhitelistedBalanceRequest = {
|
|
|
788
1137
|
return writer;
|
|
789
1138
|
},
|
|
790
1139
|
decode(input, length) {
|
|
791
|
-
const reader = input instanceof
|
|
1140
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
792
1141
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
793
1142
|
const message = createBaseQueryWhitelistedBalanceRequest();
|
|
794
1143
|
while (reader.pos < end) {
|
|
795
1144
|
const tag = reader.uint32();
|
|
796
1145
|
switch (tag >>> 3) {
|
|
797
|
-
case 1:
|
|
798
|
-
if (tag
|
|
1146
|
+
case 1: {
|
|
1147
|
+
if (tag !== 10) {
|
|
799
1148
|
break;
|
|
800
1149
|
}
|
|
801
1150
|
message.account = reader.string();
|
|
802
1151
|
continue;
|
|
803
|
-
|
|
804
|
-
|
|
1152
|
+
}
|
|
1153
|
+
case 2: {
|
|
1154
|
+
if (tag !== 18) {
|
|
805
1155
|
break;
|
|
806
1156
|
}
|
|
807
1157
|
message.denom = reader.string();
|
|
808
1158
|
continue;
|
|
1159
|
+
}
|
|
809
1160
|
}
|
|
810
|
-
if ((tag & 7)
|
|
1161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
811
1162
|
break;
|
|
812
1163
|
}
|
|
813
|
-
reader.
|
|
1164
|
+
reader.skip(tag & 7);
|
|
814
1165
|
}
|
|
815
1166
|
return message;
|
|
816
1167
|
},
|
|
817
1168
|
fromJSON(object) {
|
|
818
1169
|
return {
|
|
819
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
820
|
-
denom: isSet(object.denom) ? String(object.denom) : "",
|
|
1170
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
1171
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
821
1172
|
};
|
|
822
1173
|
},
|
|
823
1174
|
toJSON(message) {
|
|
824
1175
|
const obj = {};
|
|
825
|
-
message.account !==
|
|
826
|
-
|
|
1176
|
+
if (message.account !== "") {
|
|
1177
|
+
obj.account = message.account;
|
|
1178
|
+
}
|
|
1179
|
+
if (message.denom !== "") {
|
|
1180
|
+
obj.denom = message.denom;
|
|
1181
|
+
}
|
|
827
1182
|
return obj;
|
|
828
1183
|
},
|
|
829
1184
|
create(base) {
|
|
830
|
-
return exports.QueryWhitelistedBalanceRequest.fromPartial(base
|
|
1185
|
+
return exports.QueryWhitelistedBalanceRequest.fromPartial(base ?? {});
|
|
831
1186
|
},
|
|
832
1187
|
fromPartial(object) {
|
|
833
|
-
var _a, _b;
|
|
834
1188
|
const message = createBaseQueryWhitelistedBalanceRequest();
|
|
835
|
-
message.account =
|
|
836
|
-
message.denom =
|
|
1189
|
+
message.account = object.account ?? "";
|
|
1190
|
+
message.denom = object.denom ?? "";
|
|
837
1191
|
return message;
|
|
838
1192
|
},
|
|
839
1193
|
};
|
|
@@ -841,30 +1195,31 @@ function createBaseQueryWhitelistedBalanceResponse() {
|
|
|
841
1195
|
return { balance: undefined };
|
|
842
1196
|
}
|
|
843
1197
|
exports.QueryWhitelistedBalanceResponse = {
|
|
844
|
-
encode(message, writer =
|
|
1198
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
845
1199
|
if (message.balance !== undefined) {
|
|
846
1200
|
coin_1.Coin.encode(message.balance, writer.uint32(10).fork()).ldelim();
|
|
847
1201
|
}
|
|
848
1202
|
return writer;
|
|
849
1203
|
},
|
|
850
1204
|
decode(input, length) {
|
|
851
|
-
const reader = input instanceof
|
|
1205
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
852
1206
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
853
1207
|
const message = createBaseQueryWhitelistedBalanceResponse();
|
|
854
1208
|
while (reader.pos < end) {
|
|
855
1209
|
const tag = reader.uint32();
|
|
856
1210
|
switch (tag >>> 3) {
|
|
857
|
-
case 1:
|
|
858
|
-
if (tag
|
|
1211
|
+
case 1: {
|
|
1212
|
+
if (tag !== 10) {
|
|
859
1213
|
break;
|
|
860
1214
|
}
|
|
861
1215
|
message.balance = coin_1.Coin.decode(reader, reader.uint32());
|
|
862
1216
|
continue;
|
|
1217
|
+
}
|
|
863
1218
|
}
|
|
864
|
-
if ((tag & 7)
|
|
1219
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
865
1220
|
break;
|
|
866
1221
|
}
|
|
867
|
-
reader.
|
|
1222
|
+
reader.skip(tag & 7);
|
|
868
1223
|
}
|
|
869
1224
|
return message;
|
|
870
1225
|
},
|
|
@@ -877,14 +1232,13 @@ exports.QueryWhitelistedBalanceResponse = {
|
|
|
877
1232
|
},
|
|
878
1233
|
toJSON(message) {
|
|
879
1234
|
const obj = {};
|
|
880
|
-
message.balance !== undefined
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
: undefined);
|
|
1235
|
+
if (message.balance !== undefined) {
|
|
1236
|
+
obj.balance = coin_1.Coin.toJSON(message.balance);
|
|
1237
|
+
}
|
|
884
1238
|
return obj;
|
|
885
1239
|
},
|
|
886
1240
|
create(base) {
|
|
887
|
-
return exports.QueryWhitelistedBalanceResponse.fromPartial(base
|
|
1241
|
+
return exports.QueryWhitelistedBalanceResponse.fromPartial(base ?? {});
|
|
888
1242
|
},
|
|
889
1243
|
fromPartial(object) {
|
|
890
1244
|
const message = createBaseQueryWhitelistedBalanceResponse();
|
|
@@ -895,59 +1249,185 @@ exports.QueryWhitelistedBalanceResponse = {
|
|
|
895
1249
|
return message;
|
|
896
1250
|
},
|
|
897
1251
|
};
|
|
1252
|
+
function createBaseQueryDEXSettingsRequest() {
|
|
1253
|
+
return { denom: "" };
|
|
1254
|
+
}
|
|
1255
|
+
exports.QueryDEXSettingsRequest = {
|
|
1256
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1257
|
+
if (message.denom !== "") {
|
|
1258
|
+
writer.uint32(10).string(message.denom);
|
|
1259
|
+
}
|
|
1260
|
+
return writer;
|
|
1261
|
+
},
|
|
1262
|
+
decode(input, length) {
|
|
1263
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1264
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1265
|
+
const message = createBaseQueryDEXSettingsRequest();
|
|
1266
|
+
while (reader.pos < end) {
|
|
1267
|
+
const tag = reader.uint32();
|
|
1268
|
+
switch (tag >>> 3) {
|
|
1269
|
+
case 1: {
|
|
1270
|
+
if (tag !== 10) {
|
|
1271
|
+
break;
|
|
1272
|
+
}
|
|
1273
|
+
message.denom = reader.string();
|
|
1274
|
+
continue;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
1280
|
+
reader.skip(tag & 7);
|
|
1281
|
+
}
|
|
1282
|
+
return message;
|
|
1283
|
+
},
|
|
1284
|
+
fromJSON(object) {
|
|
1285
|
+
return {
|
|
1286
|
+
denom: isSet(object.denom) ? globalThis.String(object.denom) : "",
|
|
1287
|
+
};
|
|
1288
|
+
},
|
|
1289
|
+
toJSON(message) {
|
|
1290
|
+
const obj = {};
|
|
1291
|
+
if (message.denom !== "") {
|
|
1292
|
+
obj.denom = message.denom;
|
|
1293
|
+
}
|
|
1294
|
+
return obj;
|
|
1295
|
+
},
|
|
1296
|
+
create(base) {
|
|
1297
|
+
return exports.QueryDEXSettingsRequest.fromPartial(base ?? {});
|
|
1298
|
+
},
|
|
1299
|
+
fromPartial(object) {
|
|
1300
|
+
const message = createBaseQueryDEXSettingsRequest();
|
|
1301
|
+
message.denom = object.denom ?? "";
|
|
1302
|
+
return message;
|
|
1303
|
+
},
|
|
1304
|
+
};
|
|
1305
|
+
function createBaseQueryDEXSettingsResponse() {
|
|
1306
|
+
return { dexSettings: undefined };
|
|
1307
|
+
}
|
|
1308
|
+
exports.QueryDEXSettingsResponse = {
|
|
1309
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1310
|
+
if (message.dexSettings !== undefined) {
|
|
1311
|
+
token_1.DEXSettings.encode(message.dexSettings, writer.uint32(10).fork()).ldelim();
|
|
1312
|
+
}
|
|
1313
|
+
return writer;
|
|
1314
|
+
},
|
|
1315
|
+
decode(input, length) {
|
|
1316
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1317
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1318
|
+
const message = createBaseQueryDEXSettingsResponse();
|
|
1319
|
+
while (reader.pos < end) {
|
|
1320
|
+
const tag = reader.uint32();
|
|
1321
|
+
switch (tag >>> 3) {
|
|
1322
|
+
case 1: {
|
|
1323
|
+
if (tag !== 10) {
|
|
1324
|
+
break;
|
|
1325
|
+
}
|
|
1326
|
+
message.dexSettings = token_1.DEXSettings.decode(reader, reader.uint32());
|
|
1327
|
+
continue;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
reader.skip(tag & 7);
|
|
1334
|
+
}
|
|
1335
|
+
return message;
|
|
1336
|
+
},
|
|
1337
|
+
fromJSON(object) {
|
|
1338
|
+
return {
|
|
1339
|
+
dexSettings: isSet(object.dexSettings)
|
|
1340
|
+
? token_1.DEXSettings.fromJSON(object.dexSettings)
|
|
1341
|
+
: undefined,
|
|
1342
|
+
};
|
|
1343
|
+
},
|
|
1344
|
+
toJSON(message) {
|
|
1345
|
+
const obj = {};
|
|
1346
|
+
if (message.dexSettings !== undefined) {
|
|
1347
|
+
obj.dexSettings = token_1.DEXSettings.toJSON(message.dexSettings);
|
|
1348
|
+
}
|
|
1349
|
+
return obj;
|
|
1350
|
+
},
|
|
1351
|
+
create(base) {
|
|
1352
|
+
return exports.QueryDEXSettingsResponse.fromPartial(base ?? {});
|
|
1353
|
+
},
|
|
1354
|
+
fromPartial(object) {
|
|
1355
|
+
const message = createBaseQueryDEXSettingsResponse();
|
|
1356
|
+
message.dexSettings =
|
|
1357
|
+
object.dexSettings !== undefined && object.dexSettings !== null
|
|
1358
|
+
? token_1.DEXSettings.fromPartial(object.dexSettings)
|
|
1359
|
+
: undefined;
|
|
1360
|
+
return message;
|
|
1361
|
+
},
|
|
1362
|
+
};
|
|
1363
|
+
exports.QueryServiceName = "coreum.asset.ft.v1.Query";
|
|
898
1364
|
class QueryClientImpl {
|
|
899
1365
|
constructor(rpc, opts) {
|
|
900
|
-
this.service =
|
|
1366
|
+
this.service = opts?.service || exports.QueryServiceName;
|
|
901
1367
|
this.rpc = rpc;
|
|
902
1368
|
this.Params = this.Params.bind(this);
|
|
903
1369
|
this.Tokens = this.Tokens.bind(this);
|
|
904
1370
|
this.Token = this.Token.bind(this);
|
|
1371
|
+
this.TokenUpgradeStatuses = this.TokenUpgradeStatuses.bind(this);
|
|
1372
|
+
this.Balance = this.Balance.bind(this);
|
|
905
1373
|
this.FrozenBalances = this.FrozenBalances.bind(this);
|
|
906
1374
|
this.FrozenBalance = this.FrozenBalance.bind(this);
|
|
907
1375
|
this.WhitelistedBalances = this.WhitelistedBalances.bind(this);
|
|
908
1376
|
this.WhitelistedBalance = this.WhitelistedBalance.bind(this);
|
|
1377
|
+
this.DEXSettings = this.DEXSettings.bind(this);
|
|
909
1378
|
}
|
|
910
1379
|
Params(request) {
|
|
911
1380
|
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
912
1381
|
const promise = this.rpc.request(this.service, "Params", data);
|
|
913
|
-
return promise.then((data) => exports.QueryParamsResponse.decode(
|
|
1382
|
+
return promise.then((data) => exports.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
914
1383
|
}
|
|
915
1384
|
Tokens(request) {
|
|
916
1385
|
const data = exports.QueryTokensRequest.encode(request).finish();
|
|
917
1386
|
const promise = this.rpc.request(this.service, "Tokens", data);
|
|
918
|
-
return promise.then((data) => exports.QueryTokensResponse.decode(
|
|
1387
|
+
return promise.then((data) => exports.QueryTokensResponse.decode(new binary_1.BinaryReader(data)));
|
|
919
1388
|
}
|
|
920
1389
|
Token(request) {
|
|
921
1390
|
const data = exports.QueryTokenRequest.encode(request).finish();
|
|
922
1391
|
const promise = this.rpc.request(this.service, "Token", data);
|
|
923
|
-
return promise.then((data) => exports.QueryTokenResponse.decode(
|
|
1392
|
+
return promise.then((data) => exports.QueryTokenResponse.decode(new binary_1.BinaryReader(data)));
|
|
1393
|
+
}
|
|
1394
|
+
TokenUpgradeStatuses(request) {
|
|
1395
|
+
const data = exports.QueryTokenUpgradeStatusesRequest.encode(request).finish();
|
|
1396
|
+
const promise = this.rpc.request(this.service, "TokenUpgradeStatuses", data);
|
|
1397
|
+
return promise.then((data) => exports.QueryTokenUpgradeStatusesResponse.decode(new binary_1.BinaryReader(data)));
|
|
1398
|
+
}
|
|
1399
|
+
Balance(request) {
|
|
1400
|
+
const data = exports.QueryBalanceRequest.encode(request).finish();
|
|
1401
|
+
const promise = this.rpc.request(this.service, "Balance", data);
|
|
1402
|
+
return promise.then((data) => exports.QueryBalanceResponse.decode(new binary_1.BinaryReader(data)));
|
|
924
1403
|
}
|
|
925
1404
|
FrozenBalances(request) {
|
|
926
1405
|
const data = exports.QueryFrozenBalancesRequest.encode(request).finish();
|
|
927
1406
|
const promise = this.rpc.request(this.service, "FrozenBalances", data);
|
|
928
|
-
return promise.then((data) => exports.QueryFrozenBalancesResponse.decode(
|
|
1407
|
+
return promise.then((data) => exports.QueryFrozenBalancesResponse.decode(new binary_1.BinaryReader(data)));
|
|
929
1408
|
}
|
|
930
1409
|
FrozenBalance(request) {
|
|
931
1410
|
const data = exports.QueryFrozenBalanceRequest.encode(request).finish();
|
|
932
1411
|
const promise = this.rpc.request(this.service, "FrozenBalance", data);
|
|
933
|
-
return promise.then((data) => exports.QueryFrozenBalanceResponse.decode(
|
|
1412
|
+
return promise.then((data) => exports.QueryFrozenBalanceResponse.decode(new binary_1.BinaryReader(data)));
|
|
934
1413
|
}
|
|
935
1414
|
WhitelistedBalances(request) {
|
|
936
1415
|
const data = exports.QueryWhitelistedBalancesRequest.encode(request).finish();
|
|
937
1416
|
const promise = this.rpc.request(this.service, "WhitelistedBalances", data);
|
|
938
|
-
return promise.then((data) => exports.QueryWhitelistedBalancesResponse.decode(
|
|
1417
|
+
return promise.then((data) => exports.QueryWhitelistedBalancesResponse.decode(new binary_1.BinaryReader(data)));
|
|
939
1418
|
}
|
|
940
1419
|
WhitelistedBalance(request) {
|
|
941
1420
|
const data = exports.QueryWhitelistedBalanceRequest.encode(request).finish();
|
|
942
1421
|
const promise = this.rpc.request(this.service, "WhitelistedBalance", data);
|
|
943
|
-
return promise.then((data) => exports.QueryWhitelistedBalanceResponse.decode(
|
|
1422
|
+
return promise.then((data) => exports.QueryWhitelistedBalanceResponse.decode(new binary_1.BinaryReader(data)));
|
|
1423
|
+
}
|
|
1424
|
+
DEXSettings(request) {
|
|
1425
|
+
const data = exports.QueryDEXSettingsRequest.encode(request).finish();
|
|
1426
|
+
const promise = this.rpc.request(this.service, "DEXSettings", data);
|
|
1427
|
+
return promise.then((data) => exports.QueryDEXSettingsResponse.decode(new binary_1.BinaryReader(data)));
|
|
944
1428
|
}
|
|
945
1429
|
}
|
|
946
1430
|
exports.QueryClientImpl = QueryClientImpl;
|
|
947
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
948
|
-
minimal_1.default.util.Long = long_1.default;
|
|
949
|
-
minimal_1.default.configure();
|
|
950
|
-
}
|
|
951
1431
|
function isSet(value) {
|
|
952
1432
|
return value !== null && value !== undefined;
|
|
953
1433
|
}
|