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