carbon-js-sdk 0.2.13 → 0.2.14-dev.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.
Files changed (267) hide show
  1. package/lib/clients/NEOClient.js +1 -1
  2. package/lib/clients/TokenClient.d.ts +5 -0
  3. package/lib/clients/TokenClient.js +29 -7
  4. package/lib/codec/book/genesis.d.ts +1 -1
  5. package/lib/codec/book/genesis.js +1 -1
  6. package/lib/codec/book/query.d.ts +1 -1
  7. package/lib/codec/book/query.js +1 -1
  8. package/lib/codec/broker/genesis.d.ts +1 -1
  9. package/lib/codec/broker/genesis.js +1 -1
  10. package/lib/codec/broker/query.d.ts +3 -3
  11. package/lib/codec/broker/query.js +3 -3
  12. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  13. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  14. package/lib/codec/btcx/query.d.ts +1 -1
  15. package/lib/codec/btcx/query.js +1 -1
  16. package/lib/codec/ccm/genesis.d.ts +1 -1
  17. package/lib/codec/ccm/genesis.js +1 -1
  18. package/lib/codec/cdp/asset_params.d.ts +1 -12
  19. package/lib/codec/cdp/asset_params.js +14 -81
  20. package/lib/codec/cdp/debt_info.d.ts +1 -1
  21. package/lib/codec/cdp/debt_info.js +11 -13
  22. package/lib/codec/cdp/event.d.ts +321 -22
  23. package/lib/codec/cdp/event.js +2005 -82
  24. package/lib/codec/cdp/genesis.d.ts +80 -4
  25. package/lib/codec/cdp/genesis.js +531 -22
  26. package/lib/codec/cdp/params.d.ts +35 -0
  27. package/lib/codec/cdp/params.js +47 -1
  28. package/lib/codec/cdp/query.d.ts +437 -89
  29. package/lib/codec/cdp/query.js +1966 -177
  30. package/lib/codec/cdp/reward_scheme.d.ts +85 -0
  31. package/lib/codec/cdp/reward_scheme.js +656 -0
  32. package/lib/codec/cdp/stablecoin_debt_info.d.ts +1 -1
  33. package/lib/codec/cdp/stablecoin_debt_info.js +11 -13
  34. package/lib/codec/cdp/tx.d.ts +667 -96
  35. package/lib/codec/cdp/tx.js +3196 -243
  36. package/lib/codec/coin/event.d.ts +1 -1
  37. package/lib/codec/coin/event.js +1 -1
  38. package/lib/codec/coin/genesis.d.ts +2 -2
  39. package/lib/codec/coin/genesis.js +2 -2
  40. package/lib/codec/coin/proposal.d.ts +1 -1
  41. package/lib/codec/coin/proposal.js +1 -1
  42. package/lib/codec/coin/query.d.ts +2 -5
  43. package/lib/codec/coin/query.js +2 -8
  44. package/lib/codec/coin/token.d.ts +11 -0
  45. package/lib/codec/coin/token.js +65 -1
  46. package/lib/codec/coin/tx.d.ts +1 -1
  47. package/lib/codec/coin/tx.js +1 -1
  48. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  49. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  50. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  51. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  52. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +19 -0
  53. package/lib/codec/cosmos/authz/v1beta1/authz.js +89 -1
  54. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -15
  55. package/lib/codec/cosmos/authz/v1beta1/genesis.js +7 -120
  56. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +70 -2
  57. package/lib/codec/cosmos/authz/v1beta1/query.js +275 -3
  58. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  59. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  60. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  61. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  62. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  63. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  64. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -1
  65. package/lib/codec/cosmos/bank/v1beta1/export.js +3 -1
  66. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  67. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  68. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +43 -3
  69. package/lib/codec/cosmos/bank/v1beta1/query.js +140 -4
  70. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  71. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  72. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +64 -0
  73. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +343 -1
  74. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  75. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  76. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  77. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  78. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  79. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  80. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  81. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  82. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  83. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  84. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  85. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  86. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  87. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  88. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  89. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  90. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  91. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  92. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  93. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  94. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +35 -2
  95. package/lib/codec/cosmos/feegrant/v1beta1/query.js +139 -3
  96. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  97. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  98. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  99. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  100. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  101. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  102. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  103. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  104. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  105. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  106. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  107. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  108. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  109. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  110. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  111. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  112. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  113. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  114. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  115. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  116. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  117. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  118. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  119. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  120. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  121. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  122. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  123. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  124. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +14 -1
  125. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +19 -1
  126. package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
  127. package/lib/codec/cosmos/tx/v1beta1/export.js +3 -1
  128. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +53 -5
  129. package/lib/codec/cosmos/tx/v1beta1/service.js +179 -4
  130. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  131. package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -3
  132. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  133. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  134. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  135. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  136. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  137. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  138. package/lib/codec/fee/genesis.d.ts +1 -1
  139. package/lib/codec/fee/genesis.js +1 -1
  140. package/lib/codec/fee/proposal.d.ts +1 -1
  141. package/lib/codec/fee/proposal.js +1 -1
  142. package/lib/codec/fee/query.d.ts +1 -1
  143. package/lib/codec/fee/query.js +1 -1
  144. package/lib/codec/fee/tx.d.ts +1 -1
  145. package/lib/codec/fee/tx.js +1 -1
  146. package/lib/codec/headersync/genesis.d.ts +1 -1
  147. package/lib/codec/headersync/genesis.js +1 -1
  148. package/lib/codec/headersync/query.d.ts +1 -1
  149. package/lib/codec/headersync/query.js +1 -1
  150. package/lib/codec/index.d.ts +71 -23
  151. package/lib/codec/index.js +590 -384
  152. package/lib/codec/inflation/genesis.d.ts +1 -1
  153. package/lib/codec/inflation/genesis.js +1 -1
  154. package/lib/codec/inflation/query.d.ts +1 -1
  155. package/lib/codec/inflation/query.js +1 -1
  156. package/lib/codec/insurance/genesis.d.ts +1 -1
  157. package/lib/codec/insurance/genesis.js +1 -1
  158. package/lib/codec/leverage/genesis.d.ts +1 -1
  159. package/lib/codec/leverage/genesis.js +1 -1
  160. package/lib/codec/leverage/query.d.ts +1 -1
  161. package/lib/codec/leverage/query.js +1 -1
  162. package/lib/codec/liquidation/genesis.d.ts +1 -1
  163. package/lib/codec/liquidation/genesis.js +1 -1
  164. package/lib/codec/liquidation/query.d.ts +1 -1
  165. package/lib/codec/liquidation/query.js +1 -1
  166. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  167. package/lib/codec/liquidation/quote_changes.js +1 -1
  168. package/lib/codec/liquiditypool/event.d.ts +2 -2
  169. package/lib/codec/liquiditypool/event.js +2 -2
  170. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  171. package/lib/codec/liquiditypool/genesis.js +2 -2
  172. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  173. package/lib/codec/liquiditypool/proposal.js +1 -1
  174. package/lib/codec/liquiditypool/query.d.ts +2 -2
  175. package/lib/codec/liquiditypool/query.js +2 -2
  176. package/lib/codec/liquiditypool/tx.d.ts +1 -1
  177. package/lib/codec/liquiditypool/tx.js +1 -1
  178. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  179. package/lib/codec/lockproxy/genesis.js +1 -1
  180. package/lib/codec/lockproxy/query.d.ts +1 -1
  181. package/lib/codec/lockproxy/query.js +1 -1
  182. package/lib/codec/market/event.d.ts +1 -1
  183. package/lib/codec/market/event.js +1 -1
  184. package/lib/codec/market/genesis.d.ts +2 -1
  185. package/lib/codec/market/genesis.js +20 -2
  186. package/lib/codec/market/proposal.d.ts +1 -1
  187. package/lib/codec/market/proposal.js +1 -1
  188. package/lib/codec/market/query.d.ts +1 -1
  189. package/lib/codec/market/query.js +1 -1
  190. package/lib/codec/market/tx.d.ts +1 -1
  191. package/lib/codec/market/tx.js +1 -1
  192. package/lib/codec/marketstats/genesis.d.ts +1 -1
  193. package/lib/codec/marketstats/genesis.js +1 -1
  194. package/lib/codec/marketstats/query.d.ts +2 -2
  195. package/lib/codec/marketstats/query.js +2 -2
  196. package/lib/codec/misc/message.d.ts +1 -1
  197. package/lib/codec/misc/message.js +1 -1
  198. package/lib/codec/misc/query.d.ts +3 -3
  199. package/lib/codec/misc/query.js +3 -3
  200. package/lib/codec/misc/trade.d.ts +1 -0
  201. package/lib/codec/misc/trade.js +17 -0
  202. package/lib/codec/misc/transaction.d.ts +1 -1
  203. package/lib/codec/misc/transaction.js +1 -1
  204. package/lib/codec/oracle/event.d.ts +1 -1
  205. package/lib/codec/oracle/event.js +1 -1
  206. package/lib/codec/oracle/genesis.d.ts +1 -1
  207. package/lib/codec/oracle/genesis.js +1 -1
  208. package/lib/codec/oracle/proposal.d.ts +1 -1
  209. package/lib/codec/oracle/proposal.js +1 -1
  210. package/lib/codec/oracle/query.d.ts +2 -2
  211. package/lib/codec/oracle/query.js +2 -2
  212. package/lib/codec/order/event.d.ts +1 -1
  213. package/lib/codec/order/event.js +1 -1
  214. package/lib/codec/order/genesis.d.ts +1 -1
  215. package/lib/codec/order/genesis.js +1 -1
  216. package/lib/codec/order/query.d.ts +1 -1
  217. package/lib/codec/order/query.js +1 -1
  218. package/lib/codec/position/event.d.ts +1 -1
  219. package/lib/codec/position/event.js +1 -1
  220. package/lib/codec/position/genesis.d.ts +1 -1
  221. package/lib/codec/position/genesis.js +1 -1
  222. package/lib/codec/position/query.d.ts +1 -1
  223. package/lib/codec/position/query.js +1 -1
  224. package/lib/codec/pricing/event.d.ts +11 -1
  225. package/lib/codec/pricing/event.js +52 -2
  226. package/lib/codec/pricing/genesis.d.ts +2 -1
  227. package/lib/codec/pricing/genesis.js +20 -5
  228. package/lib/codec/pricing/pricing.d.ts +13 -0
  229. package/lib/codec/pricing/pricing.js +83 -1
  230. package/lib/codec/pricing/query.d.ts +68 -1
  231. package/lib/codec/pricing/query.js +321 -2
  232. package/lib/codec/profile/event.d.ts +1 -1
  233. package/lib/codec/profile/event.js +1 -1
  234. package/lib/codec/profile/genesis.d.ts +1 -1
  235. package/lib/codec/profile/genesis.js +1 -1
  236. package/lib/codec/profile/query.d.ts +1 -1
  237. package/lib/codec/profile/query.js +1 -1
  238. package/lib/codec/subaccount/genesis.d.ts +1 -1
  239. package/lib/codec/subaccount/genesis.js +1 -1
  240. package/lib/codec/subaccount/query.d.ts +1 -1
  241. package/lib/codec/subaccount/query.js +1 -1
  242. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  243. package/lib/codec/tendermint/abci/types.js +4 -4
  244. package/lib/codec/tendermint/types/block.d.ts +2 -2
  245. package/lib/codec/tendermint/types/block.js +2 -2
  246. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  247. package/lib/codec/tendermint/types/evidence.js +2 -2
  248. package/lib/codec/tendermint/types/types.d.ts +3 -3
  249. package/lib/codec/tendermint/types/types.js +3 -3
  250. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  251. package/lib/codec/tendermint/types/validator.js +1 -1
  252. package/lib/modules/admin.d.ts +53 -1
  253. package/lib/modules/admin.js +175 -43
  254. package/lib/modules/cdp.d.ts +104 -13
  255. package/lib/modules/cdp.js +618 -20
  256. package/lib/provider/amino/types/admin.js +48 -7
  257. package/lib/provider/amino/types/cdp.js +72 -32
  258. package/lib/util/number.d.ts +1 -0
  259. package/lib/util/number.js +2 -1
  260. package/lib/util/tx.d.ts +58 -14
  261. package/lib/wallet/CarbonSigningClient.js +27 -2
  262. package/lib/wallet/CarbonWallet.js +0 -1
  263. package/lib/websocket/channel.js +60 -0
  264. package/lib/websocket/models.d.ts +179 -21
  265. package/lib/websocket/types.d.ts +69 -3
  266. package/lib/websocket/types.js +27 -0
  267. package/package.json +1 -1
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryClientImpl = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = exports.protobufPackage = void 0;
6
+ exports.QueryClientImpl = exports.QueryAllowancesByGranterResponse = exports.QueryAllowancesByGranterRequest = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const feegrant_1 = require("../../../cosmos/feegrant/v1beta1/feegrant");
11
- const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
10
+ const feegrant_1 = require("./feegrant");
11
+ const pagination_1 = require("../../base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "cosmos.feegrant.v1beta1";
13
13
  const baseQueryAllowanceRequest = { granter: "", grantee: "" };
14
14
  exports.QueryAllowanceRequest = {
@@ -247,11 +247,142 @@ exports.QueryAllowancesResponse = {
247
247
  return message;
248
248
  },
249
249
  };
250
+ const baseQueryAllowancesByGranterRequest = { granter: "" };
251
+ exports.QueryAllowancesByGranterRequest = {
252
+ encode(message, writer = minimal_1.default.Writer.create()) {
253
+ if (message.granter !== "") {
254
+ writer.uint32(10).string(message.granter);
255
+ }
256
+ if (message.pagination !== undefined) {
257
+ pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
258
+ }
259
+ return writer;
260
+ },
261
+ decode(input, length) {
262
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
263
+ let end = length === undefined ? reader.len : reader.pos + length;
264
+ const message = Object.assign({}, baseQueryAllowancesByGranterRequest);
265
+ while (reader.pos < end) {
266
+ const tag = reader.uint32();
267
+ switch (tag >>> 3) {
268
+ case 1:
269
+ message.granter = reader.string();
270
+ break;
271
+ case 2:
272
+ message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
273
+ break;
274
+ default:
275
+ reader.skipType(tag & 7);
276
+ break;
277
+ }
278
+ }
279
+ return message;
280
+ },
281
+ fromJSON(object) {
282
+ const message = Object.assign({}, baseQueryAllowancesByGranterRequest);
283
+ message.granter =
284
+ object.granter !== undefined && object.granter !== null
285
+ ? String(object.granter)
286
+ : "";
287
+ message.pagination =
288
+ object.pagination !== undefined && object.pagination !== null
289
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
290
+ : undefined;
291
+ return message;
292
+ },
293
+ toJSON(message) {
294
+ const obj = {};
295
+ message.granter !== undefined && (obj.granter = message.granter);
296
+ message.pagination !== undefined &&
297
+ (obj.pagination = message.pagination
298
+ ? pagination_1.PageRequest.toJSON(message.pagination)
299
+ : undefined);
300
+ return obj;
301
+ },
302
+ fromPartial(object) {
303
+ var _a;
304
+ const message = Object.assign({}, baseQueryAllowancesByGranterRequest);
305
+ message.granter = (_a = object.granter) !== null && _a !== void 0 ? _a : "";
306
+ message.pagination =
307
+ object.pagination !== undefined && object.pagination !== null
308
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
309
+ : undefined;
310
+ return message;
311
+ },
312
+ };
313
+ const baseQueryAllowancesByGranterResponse = {};
314
+ exports.QueryAllowancesByGranterResponse = {
315
+ encode(message, writer = minimal_1.default.Writer.create()) {
316
+ for (const v of message.allowances) {
317
+ feegrant_1.Grant.encode(v, writer.uint32(10).fork()).ldelim();
318
+ }
319
+ if (message.pagination !== undefined) {
320
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
321
+ }
322
+ return writer;
323
+ },
324
+ decode(input, length) {
325
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
326
+ let end = length === undefined ? reader.len : reader.pos + length;
327
+ const message = Object.assign({}, baseQueryAllowancesByGranterResponse);
328
+ message.allowances = [];
329
+ while (reader.pos < end) {
330
+ const tag = reader.uint32();
331
+ switch (tag >>> 3) {
332
+ case 1:
333
+ message.allowances.push(feegrant_1.Grant.decode(reader, reader.uint32()));
334
+ break;
335
+ case 2:
336
+ message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
337
+ break;
338
+ default:
339
+ reader.skipType(tag & 7);
340
+ break;
341
+ }
342
+ }
343
+ return message;
344
+ },
345
+ fromJSON(object) {
346
+ var _a;
347
+ const message = Object.assign({}, baseQueryAllowancesByGranterResponse);
348
+ message.allowances = ((_a = object.allowances) !== null && _a !== void 0 ? _a : []).map((e) => feegrant_1.Grant.fromJSON(e));
349
+ message.pagination =
350
+ object.pagination !== undefined && object.pagination !== null
351
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
352
+ : undefined;
353
+ return message;
354
+ },
355
+ toJSON(message) {
356
+ const obj = {};
357
+ if (message.allowances) {
358
+ obj.allowances = message.allowances.map((e) => e ? feegrant_1.Grant.toJSON(e) : undefined);
359
+ }
360
+ else {
361
+ obj.allowances = [];
362
+ }
363
+ message.pagination !== undefined &&
364
+ (obj.pagination = message.pagination
365
+ ? pagination_1.PageResponse.toJSON(message.pagination)
366
+ : undefined);
367
+ return obj;
368
+ },
369
+ fromPartial(object) {
370
+ var _a;
371
+ const message = Object.assign({}, baseQueryAllowancesByGranterResponse);
372
+ message.allowances = ((_a = object.allowances) !== null && _a !== void 0 ? _a : []).map((e) => feegrant_1.Grant.fromPartial(e));
373
+ message.pagination =
374
+ object.pagination !== undefined && object.pagination !== null
375
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
376
+ : undefined;
377
+ return message;
378
+ },
379
+ };
250
380
  class QueryClientImpl {
251
381
  constructor(rpc) {
252
382
  this.rpc = rpc;
253
383
  this.Allowance = this.Allowance.bind(this);
254
384
  this.Allowances = this.Allowances.bind(this);
385
+ this.AllowancesByGranter = this.AllowancesByGranter.bind(this);
255
386
  }
256
387
  Allowance(request) {
257
388
  const data = exports.QueryAllowanceRequest.encode(request).finish();
@@ -263,6 +394,11 @@ class QueryClientImpl {
263
394
  const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data);
264
395
  return promise.then((data) => exports.QueryAllowancesResponse.decode(new minimal_1.default.Reader(data)));
265
396
  }
397
+ AllowancesByGranter(request) {
398
+ const data = exports.QueryAllowancesByGranterRequest.encode(request).finish();
399
+ const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "AllowancesByGranter", data);
400
+ return promise.then((data) => exports.QueryAllowancesByGranterResponse.decode(new minimal_1.default.Reader(data)));
401
+ }
266
402
  }
267
403
  exports.QueryClientImpl = QueryClientImpl;
268
404
  if (minimal_1.default.util.Long !== long_1.default) {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { DepositParams, VotingParams, TallyParams, Deposit, Vote, Proposal } from "../../../cosmos/gov/v1beta1/gov";
3
+ import { DepositParams, VotingParams, TallyParams, Deposit, Vote, Proposal } from "./gov";
4
4
  export declare const protobufPackage = "cosmos.gov.v1beta1";
5
5
  /** GenesisState defines the gov module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const gov_1 = require("../../../cosmos/gov/v1beta1/gov");
10
+ const gov_1 = require("./gov");
11
11
  exports.protobufPackage = "cosmos.gov.v1beta1";
12
12
  const baseGenesisState = { startingProposalId: long_1.default.UZERO };
13
13
  exports.GenesisState = {
@@ -2,7 +2,7 @@ import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Any } from "../../../google/protobuf/any";
4
4
  import { Duration } from "../../../google/protobuf/duration";
5
- import { Coin } from "../../../cosmos/base/v1beta1/coin";
5
+ import { Coin } from "../../base/v1beta1/coin";
6
6
  export declare const protobufPackage = "cosmos.gov.v1beta1";
7
7
  /** VoteOption enumerates the valid vote options for a given governance proposal. */
8
8
  export declare enum VoteOption {
@@ -10,7 +10,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const any_1 = require("../../../google/protobuf/any");
11
11
  const duration_1 = require("../../../google/protobuf/duration");
12
12
  const timestamp_1 = require("../../../google/protobuf/timestamp");
13
- const coin_1 = require("../../../cosmos/base/v1beta1/coin");
13
+ const coin_1 = require("../../base/v1beta1/coin");
14
14
  exports.protobufPackage = "cosmos.gov.v1beta1";
15
15
  /** VoteOption enumerates the valid vote options for a given governance proposal. */
16
16
  var VoteOption;
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Proposal, ProposalStatus, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "../../../cosmos/gov/v1beta1/gov";
4
- import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
3
+ import { Proposal, ProposalStatus, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "./gov";
4
+ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "cosmos.gov.v1beta1";
6
6
  /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
7
7
  export interface QueryProposalRequest {
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QueryTallyResultResponse = exports.QueryTallyR
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const gov_1 = require("../../../cosmos/gov/v1beta1/gov");
11
- const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
10
+ const gov_1 = require("./gov");
11
+ const pagination_1 = require("../../base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "cosmos.gov.v1beta1";
13
13
  const baseQueryProposalRequest = { proposalId: long_1.default.UZERO };
14
14
  exports.QueryProposalRequest = {
@@ -1,8 +1,8 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Any } from "../../../google/protobuf/any";
4
- import { VoteOption, WeightedVoteOption } from "../../../cosmos/gov/v1beta1/gov";
5
- import { Coin } from "../../../cosmos/base/v1beta1/coin";
4
+ import { VoteOption, WeightedVoteOption } from "./gov";
5
+ import { Coin } from "../../base/v1beta1/coin";
6
6
  export declare const protobufPackage = "cosmos.gov.v1beta1";
7
7
  /**
8
8
  * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
@@ -8,8 +8,8 @@ exports.MsgClientImpl = exports.MsgDepositResponse = exports.MsgDeposit = export
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const any_1 = require("../../../google/protobuf/any");
11
- const gov_1 = require("../../../cosmos/gov/v1beta1/gov");
12
- const coin_1 = require("../../../cosmos/base/v1beta1/coin");
11
+ const gov_1 = require("./gov");
12
+ const coin_1 = require("../../base/v1beta1/coin");
13
13
  exports.protobufPackage = "cosmos.gov.v1beta1";
14
14
  const baseMsgSubmitProposal = { proposer: "" };
15
15
  exports.MsgSubmitProposal = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Minter, Params } from "../../../cosmos/mint/v1beta1/mint";
3
+ import { Minter, Params } from "./mint";
4
4
  export declare const protobufPackage = "cosmos.mint.v1beta1";
5
5
  /** GenesisState defines the mint module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const mint_1 = require("../../../cosmos/mint/v1beta1/mint");
10
+ const mint_1 = require("./mint");
11
11
  exports.protobufPackage = "cosmos.mint.v1beta1";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params } from "../../../cosmos/mint/v1beta1/mint";
3
+ import { Params } from "./mint";
4
4
  export declare const protobufPackage = "cosmos.mint.v1beta1";
5
5
  /** QueryParamsRequest is the request type for the Query/Params RPC method. */
6
6
  export interface QueryParamsRequest {
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAnnualProvisionsResponse = exports.QueryA
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const mint_1 = require("../../../cosmos/mint/v1beta1/mint");
10
+ const mint_1 = require("./mint");
11
11
  exports.protobufPackage = "cosmos.mint.v1beta1";
12
12
  const baseQueryParamsRequest = {};
13
13
  exports.QueryParamsRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { ParamChange } from "../../../cosmos/params/v1beta1/params";
3
+ import { ParamChange } from "./params";
4
4
  export declare const protobufPackage = "cosmos.params.v1beta1";
5
5
  /** QueryParamsRequest is request type for the Query/Params RPC method. */
6
6
  export interface QueryParamsRequest {
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const params_1 = require("../../../cosmos/params/v1beta1/params");
10
+ const params_1 = require("./params");
11
11
  exports.protobufPackage = "cosmos.params.v1beta1";
12
12
  const baseQueryParamsRequest = { subspace: "", key: "" };
13
13
  exports.QueryParamsRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params, ValidatorSigningInfo } from "../../../cosmos/slashing/v1beta1/slashing";
3
+ import { Params, ValidatorSigningInfo } from "./slashing";
4
4
  export declare const protobufPackage = "cosmos.slashing.v1beta1";
5
5
  /** GenesisState defines the slashing module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.MissedBlock = exports.ValidatorMissedBlocks = exports.SigningInfo = expo
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const slashing_1 = require("../../../cosmos/slashing/v1beta1/slashing");
10
+ const slashing_1 = require("./slashing");
11
11
  exports.protobufPackage = "cosmos.slashing.v1beta1";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params, ValidatorSigningInfo } from "../../../cosmos/slashing/v1beta1/slashing";
4
- import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
3
+ import { Params, ValidatorSigningInfo } from "./slashing";
4
+ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "cosmos.slashing.v1beta1";
6
6
  /** QueryParamsRequest is the request type for the Query/Params RPC method */
7
7
  export interface QueryParamsRequest {
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QuerySigningInfosResponse = exports.QuerySigni
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const slashing_1 = require("../../../cosmos/slashing/v1beta1/slashing");
11
- const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
10
+ const slashing_1 = require("./slashing");
11
+ const pagination_1 = require("../../base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "cosmos.slashing.v1beta1";
13
13
  const baseQueryParamsRequest = {};
14
14
  exports.QueryParamsRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
+ import { Coin } from "../../base/v1beta1/coin";
4
4
  export declare const protobufPackage = "cosmos.staking.v1beta1";
5
5
  /**
6
6
  * AuthorizationType defines the type of staking module authorization type
@@ -7,7 +7,7 @@ exports.StakeAuthorization_Validators = exports.StakeAuthorization = exports.aut
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const coin_1 = require("../../../cosmos/base/v1beta1/coin");
10
+ const coin_1 = require("../../base/v1beta1/coin");
11
11
  exports.protobufPackage = "cosmos.staking.v1beta1";
12
12
  /**
13
13
  * AuthorizationType defines the type of staking module authorization type
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params, Validator, Delegation, UnbondingDelegation, Redelegation } from "../../../cosmos/staking/v1beta1/staking";
3
+ import { Params, Validator, Delegation, UnbondingDelegation, Redelegation } from "./staking";
4
4
  export declare const protobufPackage = "cosmos.staking.v1beta1";
5
5
  /** GenesisState defines the staking module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.LastValidatorPower = exports.GenesisState = exports.protobufPackage = vo
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const staking_1 = require("../../../cosmos/staking/v1beta1/staking");
10
+ const staking_1 = require("./staking");
11
11
  exports.protobufPackage = "cosmos.staking.v1beta1";
12
12
  const baseGenesisState = { exported: false };
13
13
  exports.GenesisState = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
4
- import { Validator, DelegationResponse, UnbondingDelegation, HistoricalInfo, Pool, Params, RedelegationResponse } from "../../../cosmos/staking/v1beta1/staking";
3
+ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
4
+ import { Validator, DelegationResponse, UnbondingDelegation, HistoricalInfo, Pool, Params, RedelegationResponse } from "./staking";
5
5
  export declare const protobufPackage = "cosmos.staking.v1beta1";
6
6
  /** QueryValidatorsRequest is request type for Query/Validators RPC method. */
7
7
  export interface QueryValidatorsRequest {
@@ -7,8 +7,8 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");
11
- const staking_1 = require("../../../cosmos/staking/v1beta1/staking");
10
+ const pagination_1 = require("../../base/query/v1beta1/pagination");
11
+ const staking_1 = require("./staking");
12
12
  exports.protobufPackage = "cosmos.staking.v1beta1";
13
13
  const baseQueryValidatorsRequest = { status: "" };
14
14
  exports.QueryValidatorsRequest = {
@@ -3,7 +3,7 @@ import _m0 from "protobufjs/minimal";
3
3
  import { Header } from "../../../tendermint/types/types";
4
4
  import { Any } from "../../../google/protobuf/any";
5
5
  import { Duration } from "../../../google/protobuf/duration";
6
- import { Coin } from "../../../cosmos/base/v1beta1/coin";
6
+ import { Coin } from "../../base/v1beta1/coin";
7
7
  export declare const protobufPackage = "cosmos.staking.v1beta1";
8
8
  /** BondStatus is the status of a validator. */
9
9
  export declare enum BondStatus {
@@ -10,7 +10,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const types_1 = require("../../../tendermint/types/types");
11
11
  const any_1 = require("../../../google/protobuf/any");
12
12
  const duration_1 = require("../../../google/protobuf/duration");
13
- const coin_1 = require("../../../cosmos/base/v1beta1/coin");
13
+ const coin_1 = require("../../base/v1beta1/coin");
14
14
  const timestamp_1 = require("../../../google/protobuf/timestamp");
15
15
  exports.protobufPackage = "cosmos.staking.v1beta1";
16
16
  /** BondStatus is the status of a validator. */
@@ -1,8 +1,8 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Description, CommissionRates } from "../../../cosmos/staking/v1beta1/staking";
3
+ import { Description, CommissionRates } from "./staking";
4
4
  import { Any } from "../../../google/protobuf/any";
5
- import { Coin } from "../../../cosmos/base/v1beta1/coin";
5
+ import { Coin } from "../../base/v1beta1/coin";
6
6
  export declare const protobufPackage = "cosmos.staking.v1beta1";
7
7
  /** MsgCreateValidator defines a SDK message for creating a new validator. */
8
8
  export interface MsgCreateValidator {
@@ -7,9 +7,9 @@ exports.MsgClientImpl = exports.MsgUndelegateResponse = exports.MsgUndelegate =
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const staking_1 = require("../../../cosmos/staking/v1beta1/staking");
10
+ const staking_1 = require("./staking");
11
11
  const any_1 = require("../../../google/protobuf/any");
12
- const coin_1 = require("../../../cosmos/base/v1beta1/coin");
12
+ const coin_1 = require("../../base/v1beta1/coin");
13
13
  const timestamp_1 = require("../../../google/protobuf/timestamp");
14
14
  exports.protobufPackage = "cosmos.staking.v1beta1";
15
15
  const baseMsgCreateValidator = {
@@ -1,7 +1,7 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { Any } from "../../../../google/protobuf/any";
4
- import { CompactBitArray } from "../../../../cosmos/crypto/multisig/v1beta1/multisig";
4
+ import { CompactBitArray } from "../../../crypto/multisig/v1beta1/multisig";
5
5
  export declare const protobufPackage = "cosmos.tx.signing.v1beta1";
6
6
  /** SignMode represents a signing mode with its own security guarantees. */
7
7
  export declare enum SignMode {
@@ -26,6 +26,19 @@ export declare enum SignMode {
26
26
  * Amino JSON and will be removed in the future
27
27
  */
28
28
  SIGN_MODE_LEGACY_AMINO_JSON = 127,
29
+ /**
30
+ * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
31
+ * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
32
+ *
33
+ * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
34
+ * but is not implemented on the SDK by default. To enable EIP-191, you need
35
+ * to pass a custom `TxConfig` that has an implementation of
36
+ * `SignModeHandler` for EIP-191. The SDK may decide to fully support
37
+ * EIP-191 in the future.
38
+ *
39
+ * Since: cosmos-sdk 0.45.2
40
+ */
41
+ SIGN_MODE_EIP_191 = 191,
29
42
  UNRECOGNIZED = -1
30
43
  }
31
44
  export declare function signModeFromJSON(object: any): SignMode;
@@ -8,7 +8,7 @@ exports.SignatureDescriptor_Data_Multi = exports.SignatureDescriptor_Data_Single
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const any_1 = require("../../../../google/protobuf/any");
11
- const multisig_1 = require("../../../../cosmos/crypto/multisig/v1beta1/multisig");
11
+ const multisig_1 = require("../../../crypto/multisig/v1beta1/multisig");
12
12
  exports.protobufPackage = "cosmos.tx.signing.v1beta1";
13
13
  /** SignMode represents a signing mode with its own security guarantees. */
14
14
  var SignMode;
@@ -34,6 +34,19 @@ var SignMode;
34
34
  * Amino JSON and will be removed in the future
35
35
  */
36
36
  SignMode[SignMode["SIGN_MODE_LEGACY_AMINO_JSON"] = 127] = "SIGN_MODE_LEGACY_AMINO_JSON";
37
+ /**
38
+ * SIGN_MODE_EIP_191 - SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
39
+ * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
40
+ *
41
+ * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
42
+ * but is not implemented on the SDK by default. To enable EIP-191, you need
43
+ * to pass a custom `TxConfig` that has an implementation of
44
+ * `SignModeHandler` for EIP-191. The SDK may decide to fully support
45
+ * EIP-191 in the future.
46
+ *
47
+ * Since: cosmos-sdk 0.45.2
48
+ */
49
+ SignMode[SignMode["SIGN_MODE_EIP_191"] = 191] = "SIGN_MODE_EIP_191";
37
50
  SignMode[SignMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
38
51
  })(SignMode = exports.SignMode || (exports.SignMode = {}));
39
52
  function signModeFromJSON(object) {
@@ -50,6 +63,9 @@ function signModeFromJSON(object) {
50
63
  case 127:
51
64
  case "SIGN_MODE_LEGACY_AMINO_JSON":
52
65
  return SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
66
+ case 191:
67
+ case "SIGN_MODE_EIP_191":
68
+ return SignMode.SIGN_MODE_EIP_191;
53
69
  case -1:
54
70
  case "UNRECOGNIZED":
55
71
  default:
@@ -67,6 +83,8 @@ function signModeToJSON(object) {
67
83
  return "SIGN_MODE_TEXTUAL";
68
84
  case SignMode.SIGN_MODE_LEGACY_AMINO_JSON:
69
85
  return "SIGN_MODE_LEGACY_AMINO_JSON";
86
+ case SignMode.SIGN_MODE_EIP_191:
87
+ return "SIGN_MODE_EIP_191";
70
88
  default:
71
89
  return "UNKNOWN";
72
90
  }
@@ -1,2 +1,2 @@
1
- export { OrderBy, orderByFromJSON, orderByToJSON, BroadcastMode, broadcastModeFromJSON, broadcastModeToJSON, GetTxsEventRequest, GetTxsEventResponse, BroadcastTxRequest, BroadcastTxResponse, SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, ServiceClientImpl } from "./service";
1
+ export { OrderBy, orderByFromJSON, orderByToJSON, BroadcastMode, broadcastModeFromJSON, broadcastModeToJSON, GetTxsEventRequest, GetTxsEventResponse, BroadcastTxRequest, BroadcastTxResponse, SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse, ServiceClientImpl } from "./service";
2
2
  export { Tx, TxRaw, SignDoc, TxBody, AuthInfo, SignerInfo, ModeInfo, ModeInfo_Single, ModeInfo_Multi, Fee } from "./tx";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDoc = exports.TxRaw = exports.Tx = exports.ServiceClientImpl = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = void 0;
3
+ exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDoc = exports.TxRaw = exports.Tx = exports.ServiceClientImpl = exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = void 0;
4
4
  var service_1 = require("./service");
5
5
  Object.defineProperty(exports, "OrderBy", { enumerable: true, get: function () { return service_1.OrderBy; } });
6
6
  Object.defineProperty(exports, "orderByFromJSON", { enumerable: true, get: function () { return service_1.orderByFromJSON; } });
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "SimulateRequest", { enumerable: true, get: funct
16
16
  Object.defineProperty(exports, "SimulateResponse", { enumerable: true, get: function () { return service_1.SimulateResponse; } });
17
17
  Object.defineProperty(exports, "GetTxRequest", { enumerable: true, get: function () { return service_1.GetTxRequest; } });
18
18
  Object.defineProperty(exports, "GetTxResponse", { enumerable: true, get: function () { return service_1.GetTxResponse; } });
19
+ Object.defineProperty(exports, "GetBlockWithTxsRequest", { enumerable: true, get: function () { return service_1.GetBlockWithTxsRequest; } });
20
+ Object.defineProperty(exports, "GetBlockWithTxsResponse", { enumerable: true, get: function () { return service_1.GetBlockWithTxsResponse; } });
19
21
  Object.defineProperty(exports, "ServiceClientImpl", { enumerable: true, get: function () { return service_1.ServiceClientImpl; } });
20
22
  var tx_1 = require("./tx");
21
23
  Object.defineProperty(exports, "Tx", { enumerable: true, get: function () { return tx_1.Tx; } });