carbon-js-sdk 0.0.2 → 0.0.3

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 (1100) hide show
  1. package/README.md +1 -1
  2. package/examples/add_collateral.ts +1 -1
  3. package/examples/add_debt.ts +1 -1
  4. package/examples/add_liquidity.ts +1 -1
  5. package/examples/broadcast_tx.ts +1 -1
  6. package/examples/cancel_all_orders.ts +1 -1
  7. package/examples/cancel_order.ts +1 -1
  8. package/examples/change_num_quotes.ts +1 -1
  9. package/examples/change_swap_fee.ts +1 -1
  10. package/examples/claim_pool_rewards.ts +1 -1
  11. package/examples/connect_sdk.ts +1 -1
  12. package/examples/create_market.ts +1 -1
  13. package/examples/create_oracle.ts +1 -1
  14. package/examples/create_order.ts +1 -1
  15. package/examples/create_pool.ts +1 -1
  16. package/examples/create_pool_with_liquidity.ts +1 -1
  17. package/examples/create_subaccount.ts +1 -1
  18. package/examples/create_token.ts +8 -11
  19. package/examples/create_vault_type.ts +1 -1
  20. package/examples/create_vote.ts +1 -1
  21. package/examples/create_withdrawal.ts +1 -1
  22. package/examples/custom_node.ts +1 -1
  23. package/examples/delegate_tokens.ts +1 -1
  24. package/examples/deposit_proposal.ts +1 -1
  25. package/examples/edit_margin.ts +1 -1
  26. package/examples/edit_order.ts +1 -1
  27. package/examples/initiate_liquidation.ts +1 -1
  28. package/examples/link_pool.ts +1 -1
  29. package/examples/mint.ts +1 -1
  30. package/examples/query.ts +16 -9
  31. package/examples/query_balance.ts +1 -1
  32. package/examples/query_external_balances.ts +40 -0
  33. package/examples/remove_collateral.ts +1 -1
  34. package/examples/remove_debt.ts +1 -1
  35. package/examples/remove_liquidity.ts +1 -1
  36. package/examples/send_tokens.ts +1 -1
  37. package/examples/set_commitment_curve.ts +1 -1
  38. package/examples/set_leverage.ts +1 -1
  39. package/examples/set_msg_fee.ts +1 -1
  40. package/examples/set_reward_curve.ts +1 -1
  41. package/examples/set_rewards_weights.ts +1 -1
  42. package/examples/set_trading_flag.ts +1 -1
  43. package/examples/stake_pool_token.ts +1 -1
  44. package/examples/submit_proposal.ts +1 -1
  45. package/examples/sync_token.ts +1 -1
  46. package/examples/unbind_token.ts +24 -0
  47. package/examples/unlink_pool.ts +1 -1
  48. package/examples/unstake_pool_token.ts +1 -1
  49. package/examples/update_market.ts +1 -1
  50. package/examples/update_profile.ts +1 -1
  51. package/examples/vote_proposal.ts +1 -1
  52. package/lib/CarbonSDK.d.ts.map +1 -1
  53. package/lib/CarbonSDK.js +4 -2
  54. package/lib/CarbonSDK.js.map +1 -1
  55. package/lib/clients/CarbonQueryClient.js +1 -1
  56. package/lib/clients/CarbonQueryClient.js.map +1 -1
  57. package/lib/clients/ETHClient.d.ts +10 -3
  58. package/lib/clients/ETHClient.d.ts.map +1 -1
  59. package/lib/clients/ETHClient.js +41 -36
  60. package/lib/clients/ETHClient.js.map +1 -1
  61. package/lib/clients/InsightsQueryClient.d.ts +3 -3
  62. package/lib/clients/InsightsQueryClient.d.ts.map +1 -1
  63. package/lib/clients/InsightsQueryClient.js +2 -2
  64. package/lib/clients/InsightsQueryClient.js.map +1 -1
  65. package/lib/clients/NEOClient.d.ts +1 -1
  66. package/lib/clients/NEOClient.d.ts.map +1 -1
  67. package/lib/clients/NEOClient.js +6 -6
  68. package/lib/clients/NEOClient.js.map +1 -1
  69. package/lib/clients/TokenClient.d.ts +6 -1
  70. package/lib/clients/TokenClient.d.ts.map +1 -1
  71. package/lib/clients/TokenClient.js +71 -6
  72. package/lib/clients/TokenClient.js.map +1 -1
  73. package/lib/clients/ZILClient.d.ts +1 -1
  74. package/lib/clients/ZILClient.d.ts.map +1 -1
  75. package/lib/clients/ZILClient.js +14 -15
  76. package/lib/clients/ZILClient.js.map +1 -1
  77. package/lib/codec/adl/genesis.d.ts +2 -2
  78. package/lib/codec/adl/genesis.d.ts.map +1 -1
  79. package/lib/codec/adl/genesis.js.map +1 -1
  80. package/lib/codec/bank/event.d.ts +2 -2
  81. package/lib/codec/bank/event.d.ts.map +1 -1
  82. package/lib/codec/bank/event.js +12 -25
  83. package/lib/codec/bank/event.js.map +1 -1
  84. package/lib/codec/book/book.d.ts +2 -2
  85. package/lib/codec/book/book.d.ts.map +1 -1
  86. package/lib/codec/book/book.js +32 -87
  87. package/lib/codec/book/book.js.map +1 -1
  88. package/lib/codec/book/event.d.ts +2 -2
  89. package/lib/codec/book/event.d.ts.map +1 -1
  90. package/lib/codec/book/event.js +20 -30
  91. package/lib/codec/book/event.js.map +1 -1
  92. package/lib/codec/book/genesis.d.ts +2 -2
  93. package/lib/codec/book/genesis.d.ts.map +1 -1
  94. package/lib/codec/book/genesis.js +6 -24
  95. package/lib/codec/book/genesis.js.map +1 -1
  96. package/lib/codec/book/query.d.ts +4 -3
  97. package/lib/codec/book/query.d.ts.map +1 -1
  98. package/lib/codec/book/query.js +32 -54
  99. package/lib/codec/book/query.js.map +1 -1
  100. package/lib/codec/broker/amm.d.ts +2 -2
  101. package/lib/codec/broker/amm.d.ts.map +1 -1
  102. package/lib/codec/broker/amm.js +20 -35
  103. package/lib/codec/broker/amm.js.map +1 -1
  104. package/lib/codec/broker/candlestick.d.ts +2 -2
  105. package/lib/codec/broker/candlestick.d.ts.map +1 -1
  106. package/lib/codec/broker/candlestick.js +38 -60
  107. package/lib/codec/broker/candlestick.js.map +1 -1
  108. package/lib/codec/broker/event.d.ts +2 -2
  109. package/lib/codec/broker/event.d.ts.map +1 -1
  110. package/lib/codec/broker/event.js +76 -114
  111. package/lib/codec/broker/event.js.map +1 -1
  112. package/lib/codec/broker/genesis.d.ts +2 -2
  113. package/lib/codec/broker/genesis.d.ts.map +1 -1
  114. package/lib/codec/broker/genesis.js +4 -12
  115. package/lib/codec/broker/genesis.js.map +1 -1
  116. package/lib/codec/broker/incoming_liquidations.d.ts +2 -2
  117. package/lib/codec/broker/incoming_liquidations.d.ts.map +1 -1
  118. package/lib/codec/broker/incoming_liquidations.js +4 -12
  119. package/lib/codec/broker/incoming_liquidations.js.map +1 -1
  120. package/lib/codec/broker/incoming_pool_swap.d.ts +2 -2
  121. package/lib/codec/broker/incoming_pool_swap.d.ts.map +1 -1
  122. package/lib/codec/broker/incoming_pool_swap.js +30 -46
  123. package/lib/codec/broker/incoming_pool_swap.js.map +1 -1
  124. package/lib/codec/broker/pagination.d.ts +20 -0
  125. package/lib/codec/broker/pagination.d.ts.map +1 -0
  126. package/lib/codec/broker/pagination.js +79 -0
  127. package/lib/codec/broker/pagination.js.map +1 -0
  128. package/lib/codec/broker/query.d.ts +37 -35
  129. package/lib/codec/broker/query.d.ts.map +1 -1
  130. package/lib/codec/broker/query.js +328 -305
  131. package/lib/codec/broker/query.js.map +1 -1
  132. package/lib/codec/broker/trade.d.ts +28 -0
  133. package/lib/codec/broker/trade.d.ts.map +1 -0
  134. package/lib/codec/broker/trade.js +208 -0
  135. package/lib/codec/broker/trade.js.map +1 -0
  136. package/lib/codec/broker/tx.d.ts +2 -2
  137. package/lib/codec/broker/tx.d.ts.map +1 -1
  138. package/lib/codec/broker/tx.js +16 -31
  139. package/lib/codec/broker/tx.js.map +1 -1
  140. package/lib/codec/cdp/event.d.ts +2 -2
  141. package/lib/codec/cdp/event.d.ts.map +1 -1
  142. package/lib/codec/cdp/event.js +36 -55
  143. package/lib/codec/cdp/event.js.map +1 -1
  144. package/lib/codec/cdp/genesis.d.ts +2 -2
  145. package/lib/codec/cdp/genesis.d.ts.map +1 -1
  146. package/lib/codec/cdp/genesis.js +6 -24
  147. package/lib/codec/cdp/genesis.js.map +1 -1
  148. package/lib/codec/cdp/query.d.ts +8 -5
  149. package/lib/codec/cdp/query.d.ts.map +1 -1
  150. package/lib/codec/cdp/query.js +87 -137
  151. package/lib/codec/cdp/query.js.map +1 -1
  152. package/lib/codec/cdp/tx.d.ts +2 -2
  153. package/lib/codec/cdp/tx.d.ts.map +1 -1
  154. package/lib/codec/cdp/tx.js +81 -122
  155. package/lib/codec/cdp/tx.js.map +1 -1
  156. package/lib/codec/cdp/vault.d.ts +2 -2
  157. package/lib/codec/cdp/vault.d.ts.map +1 -1
  158. package/lib/codec/cdp/vault.js +49 -74
  159. package/lib/codec/cdp/vault.js.map +1 -1
  160. package/lib/codec/coin/bridge.d.ts +2 -2
  161. package/lib/codec/coin/bridge.d.ts.map +1 -1
  162. package/lib/codec/coin/bridge.js +32 -48
  163. package/lib/codec/coin/bridge.js.map +1 -1
  164. package/lib/codec/coin/event.d.ts +2 -2
  165. package/lib/codec/coin/event.d.ts.map +1 -1
  166. package/lib/codec/coin/event.js +44 -66
  167. package/lib/codec/coin/event.js.map +1 -1
  168. package/lib/codec/coin/extevents.d.ts +2 -2
  169. package/lib/codec/coin/extevents.d.ts.map +1 -1
  170. package/lib/codec/coin/extevents.js +54 -85
  171. package/lib/codec/coin/extevents.js.map +1 -1
  172. package/lib/codec/coin/genesis.d.ts +2 -2
  173. package/lib/codec/coin/genesis.d.ts.map +1 -1
  174. package/lib/codec/coin/genesis.js +25 -75
  175. package/lib/codec/coin/genesis.js.map +1 -1
  176. package/lib/codec/coin/proposal.d.ts +2 -2
  177. package/lib/codec/coin/proposal.d.ts.map +1 -1
  178. package/lib/codec/coin/proposal.js +16 -24
  179. package/lib/codec/coin/proposal.js.map +1 -1
  180. package/lib/codec/coin/query.d.ts +13 -4
  181. package/lib/codec/coin/query.d.ts.map +1 -1
  182. package/lib/codec/coin/query.js +207 -309
  183. package/lib/codec/coin/query.js.map +1 -1
  184. package/lib/codec/coin/token.d.ts +2 -2
  185. package/lib/codec/coin/token.d.ts.map +1 -1
  186. package/lib/codec/coin/token.js +142 -223
  187. package/lib/codec/coin/token.js.map +1 -1
  188. package/lib/codec/coin/tx.d.ts +2 -2
  189. package/lib/codec/coin/tx.d.ts.map +1 -1
  190. package/lib/codec/coin/tx.js +204 -314
  191. package/lib/codec/coin/tx.js.map +1 -1
  192. package/lib/codec/confio/proofs.d.ts.map +1 -1
  193. package/lib/codec/confio/proofs.js +131 -32
  194. package/lib/codec/confio/proofs.js.map +1 -1
  195. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +2 -2
  196. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts.map +1 -1
  197. package/lib/codec/cosmos/auth/v1beta1/auth.js +92 -141
  198. package/lib/codec/cosmos/auth/v1beta1/auth.js.map +1 -1
  199. package/lib/codec/cosmos/auth/v1beta1/export.d.ts +1 -1
  200. package/lib/codec/cosmos/auth/v1beta1/export.d.ts.map +1 -1
  201. package/lib/codec/cosmos/auth/v1beta1/export.js +3 -1
  202. package/lib/codec/cosmos/auth/v1beta1/export.js.map +1 -1
  203. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +2 -2
  204. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts.map +1 -1
  205. package/lib/codec/cosmos/auth/v1beta1/genesis.js +12 -24
  206. package/lib/codec/cosmos/auth/v1beta1/genesis.js.map +1 -1
  207. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +32 -2
  208. package/lib/codec/cosmos/auth/v1beta1/query.d.ts.map +1 -1
  209. package/lib/codec/cosmos/auth/v1beta1/query.js +145 -31
  210. package/lib/codec/cosmos/auth/v1beta1/query.js.map +1 -1
  211. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +40 -0
  212. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts.map +1 -0
  213. package/lib/codec/cosmos/authz/v1beta1/authz.js +148 -0
  214. package/lib/codec/cosmos/authz/v1beta1/authz.js.map +1 -0
  215. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +41 -0
  216. package/lib/codec/cosmos/authz/v1beta1/event.d.ts.map +1 -0
  217. package/lib/codec/cosmos/authz/v1beta1/event.js +153 -0
  218. package/lib/codec/cosmos/authz/v1beta1/event.js.map +1 -0
  219. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +35 -0
  220. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts.map +1 -0
  221. package/lib/codec/cosmos/authz/v1beta1/genesis.js +178 -0
  222. package/lib/codec/cosmos/authz/v1beta1/genesis.js.map +1 -0
  223. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +54 -0
  224. package/lib/codec/cosmos/authz/v1beta1/query.d.ts.map +1 -0
  225. package/lib/codec/cosmos/authz/v1beta1/query.js +187 -0
  226. package/lib/codec/cosmos/authz/v1beta1/query.js.map +1 -0
  227. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +126 -0
  228. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts.map +1 -0
  229. package/lib/codec/cosmos/authz/v1beta1/tx.js +387 -0
  230. package/lib/codec/cosmos/authz/v1beta1/tx.js.map +1 -0
  231. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +24 -0
  232. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts.map +1 -0
  233. package/lib/codec/cosmos/bank/v1beta1/authz.js +65 -0
  234. package/lib/codec/cosmos/bank/v1beta1/authz.js.map +1 -0
  235. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +12 -2
  236. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts.map +1 -1
  237. package/lib/codec/cosmos/bank/v1beta1/bank.js +99 -142
  238. package/lib/codec/cosmos/bank/v1beta1/bank.js.map +1 -1
  239. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +1 -0
  240. package/lib/codec/cosmos/bank/v1beta1/export.d.ts.map +1 -1
  241. package/lib/codec/cosmos/bank/v1beta1/export.js +3 -1
  242. package/lib/codec/cosmos/bank/v1beta1/export.js.map +1 -1
  243. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +6 -3
  244. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts.map +1 -1
  245. package/lib/codec/cosmos/bank/v1beta1/genesis.js +24 -67
  246. package/lib/codec/cosmos/bank/v1beta1/genesis.js.map +1 -1
  247. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +10 -6
  248. package/lib/codec/cosmos/bank/v1beta1/query.d.ts.map +1 -1
  249. package/lib/codec/cosmos/bank/v1beta1/query.js +136 -166
  250. package/lib/codec/cosmos/bank/v1beta1/query.js.map +1 -1
  251. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  252. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts.map +1 -1
  253. package/lib/codec/cosmos/bank/v1beta1/tx.js +18 -49
  254. package/lib/codec/cosmos/bank/v1beta1/tx.js.map +1 -1
  255. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +2 -2
  256. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts.map +1 -1
  257. package/lib/codec/cosmos/base/abci/v1beta1/abci.js +188 -326
  258. package/lib/codec/cosmos/base/abci/v1beta1/abci.js.map +1 -1
  259. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +2 -2
  260. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts.map +1 -1
  261. package/lib/codec/cosmos/base/kv/v1beta1/kv.js +12 -20
  262. package/lib/codec/cosmos/base/kv/v1beta1/kv.js.map +1 -1
  263. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -2
  264. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts.map +1 -1
  265. package/lib/codec/cosmos/base/query/v1beta1/pagination.js +50 -51
  266. package/lib/codec/cosmos/base/query/v1beta1/pagination.js.map +1 -1
  267. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +2 -2
  268. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts.map +1 -1
  269. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +12 -32
  270. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js.map +1 -1
  271. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +414 -0
  272. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts.map +1 -0
  273. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +1439 -0
  274. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js.map +1 -0
  275. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +2 -2
  276. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts.map +1 -1
  277. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +32 -52
  278. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js.map +1 -1
  279. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +2 -2
  280. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts.map +1 -1
  281. package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +36 -58
  282. package/lib/codec/cosmos/base/store/v1beta1/commit_info.js.map +1 -1
  283. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +29 -0
  284. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts.map +1 -0
  285. package/lib/codec/cosmos/base/store/v1beta1/listening.js +130 -0
  286. package/lib/codec/cosmos/base/store/v1beta1/listening.js.map +1 -0
  287. package/lib/codec/cosmos/base/store/v1beta1/snapshot.d.ts +2 -2
  288. package/lib/codec/cosmos/base/store/v1beta1/snapshot.d.ts.map +1 -1
  289. package/lib/codec/cosmos/base/store/v1beta1/snapshot.js +40 -56
  290. package/lib/codec/cosmos/base/store/v1beta1/snapshot.js.map +1 -1
  291. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +3 -2
  292. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts.map +1 -1
  293. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +206 -313
  294. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js.map +1 -1
  295. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +2 -2
  296. package/lib/codec/cosmos/base/v1beta1/coin.d.ts.map +1 -1
  297. package/lib/codec/cosmos/base/v1beta1/coin.js +20 -36
  298. package/lib/codec/cosmos/base/v1beta1/coin.js.map +1 -1
  299. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +2 -2
  300. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts.map +1 -1
  301. package/lib/codec/cosmos/capability/v1beta1/capability.js +20 -36
  302. package/lib/codec/cosmos/capability/v1beta1/capability.js.map +1 -1
  303. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +2 -2
  304. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts.map +1 -1
  305. package/lib/codec/cosmos/capability/v1beta1/genesis.js +28 -48
  306. package/lib/codec/cosmos/capability/v1beta1/genesis.js.map +1 -1
  307. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +2 -2
  308. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts.map +1 -1
  309. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +8 -12
  310. package/lib/codec/cosmos/crisis/v1beta1/genesis.js.map +1 -1
  311. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +2 -2
  312. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts.map +1 -1
  313. package/lib/codec/cosmos/crisis/v1beta1/tx.js +13 -19
  314. package/lib/codec/cosmos/crisis/v1beta1/tx.js.map +1 -1
  315. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +11 -8
  316. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts.map +1 -1
  317. package/lib/codec/cosmos/crypto/ed25519/keys.js +8 -8
  318. package/lib/codec/cosmos/crypto/ed25519/keys.js.map +1 -1
  319. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +2 -2
  320. package/lib/codec/cosmos/crypto/multisig/keys.d.ts.map +1 -1
  321. package/lib/codec/cosmos/crypto/multisig/keys.js +8 -19
  322. package/lib/codec/cosmos/crypto/multisig/keys.js.map +1 -1
  323. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +2 -2
  324. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts.map +1 -1
  325. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +12 -23
  326. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js.map +1 -1
  327. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +2 -2
  328. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts.map +1 -1
  329. package/lib/codec/cosmos/crypto/secp256k1/keys.js +8 -8
  330. package/lib/codec/cosmos/crypto/secp256k1/keys.js.map +1 -1
  331. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +36 -0
  332. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts.map +1 -0
  333. package/lib/codec/cosmos/crypto/secp256r1/keys.js +139 -0
  334. package/lib/codec/cosmos/crypto/secp256r1/keys.js.map +1 -0
  335. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +2 -6
  336. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts.map +1 -1
  337. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +134 -300
  338. package/lib/codec/cosmos/distribution/v1beta1/distribution.js.map +1 -1
  339. package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +1 -1
  340. package/lib/codec/cosmos/distribution/v1beta1/export.d.ts.map +1 -1
  341. package/lib/codec/cosmos/distribution/v1beta1/export.js +1 -3
  342. package/lib/codec/cosmos/distribution/v1beta1/export.js.map +1 -1
  343. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  344. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts.map +1 -1
  345. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +143 -307
  346. package/lib/codec/cosmos/distribution/v1beta1/genesis.js.map +1 -1
  347. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +2 -33
  348. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts.map +1 -1
  349. package/lib/codec/cosmos/distribution/v1beta1/query.js +115 -315
  350. package/lib/codec/cosmos/distribution/v1beta1/query.js.map +1 -1
  351. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +2 -2
  352. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts.map +1 -1
  353. package/lib/codec/cosmos/distribution/v1beta1/tx.js +29 -55
  354. package/lib/codec/cosmos/distribution/v1beta1/tx.js.map +1 -1
  355. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +2 -2
  356. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts.map +1 -1
  357. package/lib/codec/cosmos/evidence/v1beta1/evidence.js +24 -37
  358. package/lib/codec/cosmos/evidence/v1beta1/evidence.js.map +1 -1
  359. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +2 -2
  360. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts.map +1 -1
  361. package/lib/codec/cosmos/evidence/v1beta1/genesis.js +4 -12
  362. package/lib/codec/cosmos/evidence/v1beta1/genesis.js.map +1 -1
  363. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +2 -2
  364. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts.map +1 -1
  365. package/lib/codec/cosmos/evidence/v1beta1/query.js +32 -52
  366. package/lib/codec/cosmos/evidence/v1beta1/query.js.map +1 -1
  367. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +2 -2
  368. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts.map +1 -1
  369. package/lib/codec/cosmos/evidence/v1beta1/tx.js +16 -22
  370. package/lib/codec/cosmos/evidence/v1beta1/tx.js.map +1 -1
  371. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +96 -0
  372. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts.map +1 -0
  373. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +360 -0
  374. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js.map +1 -0
  375. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +21 -0
  376. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts.map +1 -0
  377. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +65 -0
  378. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js.map +1 -0
  379. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +80 -0
  380. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts.map +1 -0
  381. package/lib/codec/cosmos/feegrant/v1beta1/query.js +272 -0
  382. package/lib/codec/cosmos/feegrant/v1beta1/query.js.map +1 -0
  383. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +85 -0
  384. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts.map +1 -0
  385. package/lib/codec/cosmos/feegrant/v1beta1/tx.js +230 -0
  386. package/lib/codec/cosmos/feegrant/v1beta1/tx.js.map +1 -0
  387. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +2 -2
  388. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts.map +1 -1
  389. package/lib/codec/cosmos/genutil/v1beta1/genesis.js +4 -12
  390. package/lib/codec/cosmos/genutil/v1beta1/genesis.js.map +1 -1
  391. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +2 -2
  392. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts.map +1 -1
  393. package/lib/codec/cosmos/gov/v1beta1/genesis.js +42 -86
  394. package/lib/codec/cosmos/gov/v1beta1/genesis.js.map +1 -1
  395. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +22 -2
  396. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts.map +1 -1
  397. package/lib/codec/cosmos/gov/v1beta1/gov.js +210 -227
  398. package/lib/codec/cosmos/gov/v1beta1/gov.js.map +1 -1
  399. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  400. package/lib/codec/cosmos/gov/v1beta1/query.d.ts.map +1 -1
  401. package/lib/codec/cosmos/gov/v1beta1/query.js +189 -301
  402. package/lib/codec/cosmos/gov/v1beta1/query.js.map +1 -1
  403. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +29 -3
  404. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts.map +1 -1
  405. package/lib/codec/cosmos/gov/v1beta1/tx.js +174 -101
  406. package/lib/codec/cosmos/gov/v1beta1/tx.js.map +1 -1
  407. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +2 -2
  408. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts.map +1 -1
  409. package/lib/codec/cosmos/mint/v1beta1/genesis.js +16 -24
  410. package/lib/codec/cosmos/mint/v1beta1/genesis.js.map +1 -1
  411. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +2 -2
  412. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts.map +1 -1
  413. package/lib/codec/cosmos/mint/v1beta1/mint.js +37 -56
  414. package/lib/codec/cosmos/mint/v1beta1/mint.js.map +1 -1
  415. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +2 -2
  416. package/lib/codec/cosmos/mint/v1beta1/query.d.ts.map +1 -1
  417. package/lib/codec/cosmos/mint/v1beta1/query.js +16 -21
  418. package/lib/codec/cosmos/mint/v1beta1/query.js.map +1 -1
  419. package/lib/codec/cosmos/params/v1beta1/params.d.ts +2 -2
  420. package/lib/codec/cosmos/params/v1beta1/params.d.ts.map +1 -1
  421. package/lib/codec/cosmos/params/v1beta1/params.js +22 -43
  422. package/lib/codec/cosmos/params/v1beta1/params.js.map +1 -1
  423. package/lib/codec/cosmos/params/v1beta1/query.d.ts +2 -2
  424. package/lib/codec/cosmos/params/v1beta1/query.d.ts.map +1 -1
  425. package/lib/codec/cosmos/params/v1beta1/query.js +14 -24
  426. package/lib/codec/cosmos/params/v1beta1/query.js.map +1 -1
  427. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +3 -3
  428. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts.map +1 -1
  429. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +48 -93
  430. package/lib/codec/cosmos/slashing/v1beta1/genesis.js.map +1 -1
  431. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  432. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts.map +1 -1
  433. package/lib/codec/cosmos/slashing/v1beta1/query.js +40 -66
  434. package/lib/codec/cosmos/slashing/v1beta1/query.js.map +1 -1
  435. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +15 -8
  436. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts.map +1 -1
  437. package/lib/codec/cosmos/slashing/v1beta1/slashing.js +73 -99
  438. package/lib/codec/cosmos/slashing/v1beta1/slashing.js.map +1 -1
  439. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +2 -2
  440. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts.map +1 -1
  441. package/lib/codec/cosmos/slashing/v1beta1/tx.js +4 -6
  442. package/lib/codec/cosmos/slashing/v1beta1/tx.js.map +1 -1
  443. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +59 -0
  444. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts.map +1 -0
  445. package/lib/codec/cosmos/staking/v1beta1/authz.js +215 -0
  446. package/lib/codec/cosmos/staking/v1beta1/authz.js.map +1 -0
  447. package/lib/codec/cosmos/staking/v1beta1/export.d.ts +1 -0
  448. package/lib/codec/cosmos/staking/v1beta1/export.d.ts.map +1 -1
  449. package/lib/codec/cosmos/staking/v1beta1/export.js +8 -2
  450. package/lib/codec/cosmos/staking/v1beta1/export.js.map +1 -1
  451. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +2 -2
  452. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts.map +1 -1
  453. package/lib/codec/cosmos/staking/v1beta1/genesis.js +41 -106
  454. package/lib/codec/cosmos/staking/v1beta1/genesis.js.map +1 -1
  455. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  456. package/lib/codec/cosmos/staking/v1beta1/query.d.ts.map +1 -1
  457. package/lib/codec/cosmos/staking/v1beta1/query.js +270 -458
  458. package/lib/codec/cosmos/staking/v1beta1/query.js.map +1 -1
  459. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +2 -2
  460. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts.map +1 -1
  461. package/lib/codec/cosmos/staking/v1beta1/staking.js +308 -520
  462. package/lib/codec/cosmos/staking/v1beta1/staking.js.map +1 -1
  463. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  464. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts.map +1 -1
  465. package/lib/codec/cosmos/staking/v1beta1/tx.js +128 -198
  466. package/lib/codec/cosmos/staking/v1beta1/tx.js.map +1 -1
  467. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +2 -2
  468. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts.map +1 -1
  469. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +64 -106
  470. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js.map +1 -1
  471. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +10 -3
  472. package/lib/codec/cosmos/tx/v1beta1/service.d.ts.map +1 -1
  473. package/lib/codec/cosmos/tx/v1beta1/service.js +106 -156
  474. package/lib/codec/cosmos/tx/v1beta1/service.js.map +1 -1
  475. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +7 -3
  476. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts.map +1 -1
  477. package/lib/codec/cosmos/tx/v1beta1/tx.js +164 -297
  478. package/lib/codec/cosmos/tx/v1beta1/tx.js.map +1 -1
  479. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +49 -5
  480. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts.map +1 -1
  481. package/lib/codec/cosmos/upgrade/v1beta1/query.js +172 -62
  482. package/lib/codec/cosmos/upgrade/v1beta1/query.js.map +1 -1
  483. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +26 -9
  484. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts.map +1 -1
  485. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +116 -81
  486. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js.map +1 -1
  487. package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +1 -1
  488. package/lib/codec/cosmos/vesting/v1beta1/export.d.ts.map +1 -1
  489. package/lib/codec/cosmos/vesting/v1beta1/export.js +2 -1
  490. package/lib/codec/cosmos/vesting/v1beta1/export.js.map +1 -1
  491. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +2 -2
  492. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts.map +1 -1
  493. package/lib/codec/cosmos/vesting/v1beta1/tx.js +25 -44
  494. package/lib/codec/cosmos/vesting/v1beta1/tx.js.map +1 -1
  495. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +17 -2
  496. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts.map +1 -1
  497. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +136 -164
  498. package/lib/codec/cosmos/vesting/v1beta1/vesting.js.map +1 -1
  499. package/lib/codec/fee/fee.d.ts +2 -2
  500. package/lib/codec/fee/fee.d.ts.map +1 -1
  501. package/lib/codec/fee/fee.js +6 -12
  502. package/lib/codec/fee/fee.js.map +1 -1
  503. package/lib/codec/fee/genesis.d.ts +2 -2
  504. package/lib/codec/fee/genesis.d.ts.map +1 -1
  505. package/lib/codec/fee/genesis.js +4 -12
  506. package/lib/codec/fee/genesis.js.map +1 -1
  507. package/lib/codec/fee/proposal.d.ts +2 -2
  508. package/lib/codec/fee/proposal.d.ts.map +1 -1
  509. package/lib/codec/fee/proposal.js +16 -24
  510. package/lib/codec/fee/proposal.js.map +1 -1
  511. package/lib/codec/fee/query.d.ts +5 -4
  512. package/lib/codec/fee/query.d.ts.map +1 -1
  513. package/lib/codec/fee/query.js +37 -59
  514. package/lib/codec/fee/query.js.map +1 -1
  515. package/lib/codec/fee/tx.d.ts +2 -2
  516. package/lib/codec/fee/tx.d.ts.map +1 -1
  517. package/lib/codec/fee/tx.js +12 -18
  518. package/lib/codec/fee/tx.js.map +1 -1
  519. package/lib/codec/google/protobuf/any.d.ts +2 -2
  520. package/lib/codec/google/protobuf/any.d.ts.map +1 -1
  521. package/lib/codec/google/protobuf/any.js +8 -10
  522. package/lib/codec/google/protobuf/any.js.map +1 -1
  523. package/lib/codec/google/protobuf/duration.d.ts +2 -2
  524. package/lib/codec/google/protobuf/duration.d.ts.map +1 -1
  525. package/lib/codec/google/protobuf/duration.js +12 -18
  526. package/lib/codec/google/protobuf/duration.js.map +1 -1
  527. package/lib/codec/google/protobuf/timestamp.d.ts +2 -2
  528. package/lib/codec/google/protobuf/timestamp.d.ts.map +1 -1
  529. package/lib/codec/google/protobuf/timestamp.js +12 -18
  530. package/lib/codec/google/protobuf/timestamp.js.map +1 -1
  531. package/lib/codec/google/protobuf/wrappers.d.ts +2 -2
  532. package/lib/codec/google/protobuf/wrappers.d.ts.map +1 -1
  533. package/lib/codec/google/protobuf/wrappers.js +44 -64
  534. package/lib/codec/google/protobuf/wrappers.js.map +1 -1
  535. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts.map +1 -1
  536. package/lib/codec/ibc/applications/transfer/v1/genesis.js +6 -2
  537. package/lib/codec/ibc/applications/transfer/v1/genesis.js.map +1 -1
  538. package/lib/codec/ibc/applications/transfer/v1/query.d.ts.map +1 -1
  539. package/lib/codec/ibc/applications/transfer/v1/query.js +6 -2
  540. package/lib/codec/ibc/applications/transfer/v1/query.js.map +1 -1
  541. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts.map +1 -1
  542. package/lib/codec/ibc/applications/transfer/v1/transfer.js +42 -10
  543. package/lib/codec/ibc/applications/transfer/v1/transfer.js.map +1 -1
  544. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts.map +1 -1
  545. package/lib/codec/ibc/applications/transfer/v1/tx.js +24 -5
  546. package/lib/codec/ibc/applications/transfer/v1/tx.js.map +1 -1
  547. package/lib/codec/ibc/core/channel/v1/channel.d.ts.map +1 -1
  548. package/lib/codec/ibc/core/channel/v1/channel.js +124 -28
  549. package/lib/codec/ibc/core/channel/v1/channel.js.map +1 -1
  550. package/lib/codec/ibc/core/channel/v1/genesis.d.ts.map +1 -1
  551. package/lib/codec/ibc/core/channel/v1/genesis.js +18 -9
  552. package/lib/codec/ibc/core/channel/v1/genesis.js.map +1 -1
  553. package/lib/codec/ibc/core/channel/v1/query.d.ts.map +1 -1
  554. package/lib/codec/ibc/core/channel/v1/query.js +205 -53
  555. package/lib/codec/ibc/core/channel/v1/query.js.map +1 -1
  556. package/lib/codec/ibc/core/channel/v1/tx.d.ts.map +1 -1
  557. package/lib/codec/ibc/core/channel/v1/tx.js +212 -44
  558. package/lib/codec/ibc/core/channel/v1/tx.js.map +1 -1
  559. package/lib/codec/ibc/core/client/v1/client.d.ts.map +1 -1
  560. package/lib/codec/ibc/core/client/v1/client.js +30 -8
  561. package/lib/codec/ibc/core/client/v1/client.js.map +1 -1
  562. package/lib/codec/ibc/core/client/v1/genesis.d.ts.map +1 -1
  563. package/lib/codec/ibc/core/client/v1/genesis.js +27 -9
  564. package/lib/codec/ibc/core/client/v1/genesis.js.map +1 -1
  565. package/lib/codec/ibc/core/client/v1/query.d.ts.map +1 -1
  566. package/lib/codec/ibc/core/client/v1/query.js +36 -11
  567. package/lib/codec/ibc/core/client/v1/query.js.map +1 -1
  568. package/lib/codec/ibc/core/client/v1/tx.d.ts.map +1 -1
  569. package/lib/codec/ibc/core/client/v1/tx.js +56 -14
  570. package/lib/codec/ibc/core/client/v1/tx.js.map +1 -1
  571. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts.map +1 -1
  572. package/lib/codec/ibc/core/commitment/v1/commitment.js +12 -4
  573. package/lib/codec/ibc/core/commitment/v1/commitment.js.map +1 -1
  574. package/lib/codec/ibc/core/connection/v1/connection.d.ts.map +1 -1
  575. package/lib/codec/ibc/core/connection/v1/connection.js +54 -14
  576. package/lib/codec/ibc/core/connection/v1/connection.js.map +1 -1
  577. package/lib/codec/ibc/core/connection/v1/genesis.js +1 -1
  578. package/lib/codec/ibc/core/connection/v1/genesis.js.map +1 -1
  579. package/lib/codec/ibc/core/connection/v1/query.d.ts.map +1 -1
  580. package/lib/codec/ibc/core/connection/v1/query.js +54 -17
  581. package/lib/codec/ibc/core/connection/v1/query.js.map +1 -1
  582. package/lib/codec/ibc/core/connection/v1/tx.d.ts.map +1 -1
  583. package/lib/codec/ibc/core/connection/v1/tx.js +105 -22
  584. package/lib/codec/ibc/core/connection/v1/tx.js.map +1 -1
  585. package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts.map +1 -1
  586. package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +6 -2
  587. package/lib/codec/ibc/lightclients/localhost/v1/localhost.js.map +1 -1
  588. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts.map +1 -1
  589. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +140 -39
  590. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -1
  591. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts.map +1 -1
  592. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +42 -12
  593. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -1
  594. package/lib/codec/index.d.ts +28 -54
  595. package/lib/codec/index.d.ts.map +1 -1
  596. package/lib/codec/index.js +295 -371
  597. package/lib/codec/index.js.map +1 -1
  598. package/lib/codec/inflation/genesis.d.ts +2 -2
  599. package/lib/codec/inflation/genesis.d.ts.map +1 -1
  600. package/lib/codec/inflation/genesis.js +12 -19
  601. package/lib/codec/inflation/genesis.js.map +1 -1
  602. package/lib/codec/inflation/inflation.d.ts +2 -2
  603. package/lib/codec/inflation/inflation.d.ts.map +1 -1
  604. package/lib/codec/inflation/inflation.js +20 -30
  605. package/lib/codec/inflation/inflation.js.map +1 -1
  606. package/lib/codec/inflation/query.d.ts +3 -6
  607. package/lib/codec/inflation/query.d.ts.map +1 -1
  608. package/lib/codec/inflation/query.js +8 -12
  609. package/lib/codec/inflation/query.js.map +1 -1
  610. package/lib/codec/insurance/event.d.ts +2 -2
  611. package/lib/codec/insurance/event.d.ts.map +1 -1
  612. package/lib/codec/insurance/event.js.map +1 -1
  613. package/lib/codec/insurance/fund.d.ts +2 -2
  614. package/lib/codec/insurance/fund.d.ts.map +1 -1
  615. package/lib/codec/insurance/fund.js +12 -16
  616. package/lib/codec/insurance/fund.js.map +1 -1
  617. package/lib/codec/insurance/genesis.d.ts +2 -2
  618. package/lib/codec/insurance/genesis.d.ts.map +1 -1
  619. package/lib/codec/insurance/genesis.js +6 -28
  620. package/lib/codec/insurance/genesis.js.map +1 -1
  621. package/lib/codec/insurance/query.d.ts +29 -0
  622. package/lib/codec/insurance/query.d.ts.map +1 -1
  623. package/lib/codec/insurance/query.js +89 -1
  624. package/lib/codec/insurance/query.js.map +1 -1
  625. package/lib/codec/leverage/event.d.ts +2 -2
  626. package/lib/codec/leverage/event.d.ts.map +1 -1
  627. package/lib/codec/leverage/event.js +16 -24
  628. package/lib/codec/leverage/event.js.map +1 -1
  629. package/lib/codec/leverage/genesis.d.ts +4 -4
  630. package/lib/codec/leverage/genesis.d.ts.map +1 -1
  631. package/lib/codec/leverage/genesis.js +11 -21
  632. package/lib/codec/leverage/genesis.js.map +1 -1
  633. package/lib/codec/leverage/leverage.d.ts +10 -10
  634. package/lib/codec/leverage/leverage.d.ts.map +1 -1
  635. package/lib/codec/leverage/leverage.js +34 -74
  636. package/lib/codec/leverage/leverage.js.map +1 -1
  637. package/lib/codec/leverage/query.d.ts +3 -3
  638. package/lib/codec/leverage/query.d.ts.map +1 -1
  639. package/lib/codec/leverage/query.js +30 -50
  640. package/lib/codec/leverage/query.js.map +1 -1
  641. package/lib/codec/leverage/tx.d.ts +2 -2
  642. package/lib/codec/leverage/tx.d.ts.map +1 -1
  643. package/lib/codec/leverage/tx.js +12 -18
  644. package/lib/codec/leverage/tx.js.map +1 -1
  645. package/lib/codec/liquidation/genesis.d.ts +2 -2
  646. package/lib/codec/liquidation/genesis.d.ts.map +1 -1
  647. package/lib/codec/liquidation/genesis.js +22 -36
  648. package/lib/codec/liquidation/genesis.js.map +1 -1
  649. package/lib/codec/liquidation/history.d.ts +2 -2
  650. package/lib/codec/liquidation/history.d.ts.map +1 -1
  651. package/lib/codec/liquidation/history.js +44 -66
  652. package/lib/codec/liquidation/history.js.map +1 -1
  653. package/lib/codec/liquidation/outstanding_position.d.ts +2 -2
  654. package/lib/codec/liquidation/outstanding_position.d.ts.map +1 -1
  655. package/lib/codec/liquidation/outstanding_position.js +25 -46
  656. package/lib/codec/liquidation/outstanding_position.js.map +1 -1
  657. package/lib/codec/liquidation/query.d.ts +5 -5
  658. package/lib/codec/liquidation/query.d.ts.map +1 -1
  659. package/lib/codec/liquidation/query.js +68 -106
  660. package/lib/codec/liquidation/query.js.map +1 -1
  661. package/lib/codec/liquiditypool/event.d.ts +2 -2
  662. package/lib/codec/liquiditypool/event.d.ts.map +1 -1
  663. package/lib/codec/liquiditypool/event.js +84 -129
  664. package/lib/codec/liquiditypool/event.js.map +1 -1
  665. package/lib/codec/liquiditypool/genesis.d.ts +10 -11
  666. package/lib/codec/liquiditypool/genesis.d.ts.map +1 -1
  667. package/lib/codec/liquiditypool/genesis.js +93 -183
  668. package/lib/codec/liquiditypool/genesis.js.map +1 -1
  669. package/lib/codec/liquiditypool/liquiditypool.d.ts +2 -2
  670. package/lib/codec/liquiditypool/liquiditypool.d.ts.map +1 -1
  671. package/lib/codec/liquiditypool/liquiditypool.js +116 -194
  672. package/lib/codec/liquiditypool/liquiditypool.js.map +1 -1
  673. package/lib/codec/liquiditypool/proposal.d.ts +11 -23
  674. package/lib/codec/liquiditypool/proposal.d.ts.map +1 -1
  675. package/lib/codec/liquiditypool/proposal.js +105 -237
  676. package/lib/codec/liquiditypool/proposal.js.map +1 -1
  677. package/lib/codec/liquiditypool/query.d.ts +20 -21
  678. package/lib/codec/liquiditypool/query.d.ts.map +1 -1
  679. package/lib/codec/liquiditypool/query.js +266 -468
  680. package/lib/codec/liquiditypool/query.js.map +1 -1
  681. package/lib/codec/liquiditypool/reward.d.ts +120 -119
  682. package/lib/codec/liquiditypool/reward.d.ts.map +1 -1
  683. package/lib/codec/liquiditypool/reward.js +566 -705
  684. package/lib/codec/liquiditypool/reward.js.map +1 -1
  685. package/lib/codec/liquiditypool/tx.d.ts +31 -73
  686. package/lib/codec/liquiditypool/tx.d.ts.map +1 -1
  687. package/lib/codec/liquiditypool/tx.js +372 -770
  688. package/lib/codec/liquiditypool/tx.js.map +1 -1
  689. package/lib/codec/market/event.d.ts +2 -2
  690. package/lib/codec/market/event.d.ts.map +1 -1
  691. package/lib/codec/market/event.js +12 -18
  692. package/lib/codec/market/event.js.map +1 -1
  693. package/lib/codec/market/genesis.d.ts +2 -2
  694. package/lib/codec/market/genesis.d.ts.map +1 -1
  695. package/lib/codec/market/genesis.js +4 -12
  696. package/lib/codec/market/genesis.js.map +1 -1
  697. package/lib/codec/market/market.d.ts +2 -2
  698. package/lib/codec/market/market.d.ts.map +1 -1
  699. package/lib/codec/market/market.js +226 -330
  700. package/lib/codec/market/market.js.map +1 -1
  701. package/lib/codec/market/proposal.d.ts +2 -2
  702. package/lib/codec/market/proposal.d.ts.map +1 -1
  703. package/lib/codec/market/proposal.js +32 -48
  704. package/lib/codec/market/proposal.js.map +1 -1
  705. package/lib/codec/market/query.d.ts +5 -4
  706. package/lib/codec/market/query.d.ts.map +1 -1
  707. package/lib/codec/market/query.js +37 -59
  708. package/lib/codec/market/query.js.map +1 -1
  709. package/lib/codec/market/tx.d.ts +2 -2
  710. package/lib/codec/market/tx.d.ts.map +1 -1
  711. package/lib/codec/market/tx.js +28 -42
  712. package/lib/codec/market/tx.js.map +1 -1
  713. package/lib/codec/misc/message.d.ts +3 -2
  714. package/lib/codec/misc/message.d.ts.map +1 -1
  715. package/lib/codec/misc/message.js +55 -25
  716. package/lib/codec/misc/message.js.map +1 -1
  717. package/lib/codec/misc/message_type.d.ts +2 -2
  718. package/lib/codec/misc/message_type.d.ts.map +1 -1
  719. package/lib/codec/misc/message_type.js +4 -6
  720. package/lib/codec/misc/message_type.js.map +1 -1
  721. package/lib/codec/misc/query.d.ts +4 -4
  722. package/lib/codec/misc/query.d.ts.map +1 -1
  723. package/lib/codec/misc/query.js +21 -45
  724. package/lib/codec/misc/query.js.map +1 -1
  725. package/lib/codec/misc/transaction.d.ts +2 -2
  726. package/lib/codec/misc/transaction.d.ts.map +1 -1
  727. package/lib/codec/misc/transaction.js +48 -79
  728. package/lib/codec/misc/transaction.js.map +1 -1
  729. package/lib/codec/oracle/event.d.ts +2 -2
  730. package/lib/codec/oracle/event.d.ts.map +1 -1
  731. package/lib/codec/oracle/event.js +40 -60
  732. package/lib/codec/oracle/event.js.map +1 -1
  733. package/lib/codec/oracle/genesis.d.ts +2 -2
  734. package/lib/codec/oracle/genesis.d.ts.map +1 -1
  735. package/lib/codec/oracle/genesis.js +8 -36
  736. package/lib/codec/oracle/genesis.js.map +1 -1
  737. package/lib/codec/oracle/oracle.d.ts +2 -2
  738. package/lib/codec/oracle/oracle.d.ts.map +1 -1
  739. package/lib/codec/oracle/oracle.js +100 -152
  740. package/lib/codec/oracle/oracle.js.map +1 -1
  741. package/lib/codec/oracle/proposal.d.ts +2 -2
  742. package/lib/codec/oracle/proposal.d.ts.map +1 -1
  743. package/lib/codec/oracle/proposal.js +16 -24
  744. package/lib/codec/oracle/proposal.js.map +1 -1
  745. package/lib/codec/oracle/query.d.ts +77 -69
  746. package/lib/codec/oracle/query.d.ts.map +1 -1
  747. package/lib/codec/oracle/query.js +210 -212
  748. package/lib/codec/oracle/query.js.map +1 -1
  749. package/lib/codec/oracle/tx.d.ts +2 -2
  750. package/lib/codec/oracle/tx.d.ts.map +1 -1
  751. package/lib/codec/oracle/tx.js +84 -130
  752. package/lib/codec/oracle/tx.js.map +1 -1
  753. package/lib/codec/order/event.d.ts +2 -2
  754. package/lib/codec/order/event.d.ts.map +1 -1
  755. package/lib/codec/order/event.js +26 -38
  756. package/lib/codec/order/event.js.map +1 -1
  757. package/lib/codec/order/genesis.d.ts +2 -2
  758. package/lib/codec/order/genesis.d.ts.map +1 -1
  759. package/lib/codec/order/genesis.js +46 -107
  760. package/lib/codec/order/genesis.js.map +1 -1
  761. package/lib/codec/order/order.d.ts +37 -2
  762. package/lib/codec/order/order.d.ts.map +1 -1
  763. package/lib/codec/order/order.js +528 -236
  764. package/lib/codec/order/order.js.map +1 -1
  765. package/lib/codec/order/query.d.ts +13 -8
  766. package/lib/codec/order/query.d.ts.map +1 -1
  767. package/lib/codec/order/query.js +90 -89
  768. package/lib/codec/order/query.js.map +1 -1
  769. package/lib/codec/order/tx.d.ts +2 -2
  770. package/lib/codec/order/tx.d.ts.map +1 -1
  771. package/lib/codec/order/tx.js +88 -138
  772. package/lib/codec/order/tx.js.map +1 -1
  773. package/lib/codec/position/event.d.ts +2 -2
  774. package/lib/codec/position/event.d.ts.map +1 -1
  775. package/lib/codec/position/event.js +56 -82
  776. package/lib/codec/position/event.js.map +1 -1
  777. package/lib/codec/position/genesis.d.ts +2 -2
  778. package/lib/codec/position/genesis.d.ts.map +1 -1
  779. package/lib/codec/position/genesis.js +4 -12
  780. package/lib/codec/position/genesis.js.map +1 -1
  781. package/lib/codec/position/position.d.ts +25 -2
  782. package/lib/codec/position/position.d.ts.map +1 -1
  783. package/lib/codec/position/position.js +291 -69
  784. package/lib/codec/position/position.js.map +1 -1
  785. package/lib/codec/position/query.d.ts +8 -8
  786. package/lib/codec/position/query.d.ts.map +1 -1
  787. package/lib/codec/position/query.js +87 -122
  788. package/lib/codec/position/query.js.map +1 -1
  789. package/lib/codec/position/tx.d.ts +2 -2
  790. package/lib/codec/position/tx.d.ts.map +1 -1
  791. package/lib/codec/position/tx.js +12 -18
  792. package/lib/codec/position/tx.js.map +1 -1
  793. package/lib/codec/pricing/event.d.ts +3 -3
  794. package/lib/codec/pricing/event.d.ts.map +1 -1
  795. package/lib/codec/pricing/event.js +14 -18
  796. package/lib/codec/pricing/event.js.map +1 -1
  797. package/lib/codec/pricing/genesis.d.ts +2 -2
  798. package/lib/codec/pricing/genesis.d.ts.map +1 -1
  799. package/lib/codec/pricing/genesis.js +4 -12
  800. package/lib/codec/pricing/genesis.js.map +1 -1
  801. package/lib/codec/pricing/pricing.d.ts +2 -2
  802. package/lib/codec/pricing/pricing.d.ts.map +1 -1
  803. package/lib/codec/pricing/pricing.js +46 -69
  804. package/lib/codec/pricing/pricing.js.map +1 -1
  805. package/lib/codec/pricing/proposal.d.ts +2 -2
  806. package/lib/codec/pricing/proposal.d.ts.map +1 -1
  807. package/lib/codec/pricing/proposal.js +24 -37
  808. package/lib/codec/pricing/proposal.js.map +1 -1
  809. package/lib/codec/pricing/query.d.ts +22 -20
  810. package/lib/codec/pricing/query.d.ts.map +1 -1
  811. package/lib/codec/pricing/query.js +63 -92
  812. package/lib/codec/pricing/query.js.map +1 -1
  813. package/lib/codec/profile/event.d.ts +2 -2
  814. package/lib/codec/profile/event.d.ts.map +1 -1
  815. package/lib/codec/profile/event.js +12 -18
  816. package/lib/codec/profile/event.js.map +1 -1
  817. package/lib/codec/profile/genesis.d.ts +2 -2
  818. package/lib/codec/profile/genesis.d.ts.map +1 -1
  819. package/lib/codec/profile/genesis.js +4 -12
  820. package/lib/codec/profile/genesis.js.map +1 -1
  821. package/lib/codec/profile/profile.d.ts +2 -2
  822. package/lib/codec/profile/profile.d.ts.map +1 -1
  823. package/lib/codec/profile/profile.js +12 -18
  824. package/lib/codec/profile/profile.js.map +1 -1
  825. package/lib/codec/profile/query.d.ts +5 -4
  826. package/lib/codec/profile/query.d.ts.map +1 -1
  827. package/lib/codec/profile/query.js +42 -66
  828. package/lib/codec/profile/query.js.map +1 -1
  829. package/lib/codec/profile/tx.d.ts +2 -2
  830. package/lib/codec/profile/tx.d.ts.map +1 -1
  831. package/lib/codec/profile/tx.js +12 -18
  832. package/lib/codec/profile/tx.js.map +1 -1
  833. package/lib/codec/query/pagination.d.ts +30 -0
  834. package/lib/codec/query/pagination.d.ts.map +1 -0
  835. package/lib/codec/query/pagination.js +127 -0
  836. package/lib/codec/query/pagination.js.map +1 -0
  837. package/lib/codec/staking/event.d.ts +4 -4
  838. package/lib/codec/staking/event.d.ts.map +1 -1
  839. package/lib/codec/staking/event.js +62 -79
  840. package/lib/codec/staking/event.js.map +1 -1
  841. package/lib/codec/subaccount/genesis.d.ts +2 -2
  842. package/lib/codec/subaccount/genesis.d.ts.map +1 -1
  843. package/lib/codec/subaccount/genesis.js +4 -12
  844. package/lib/codec/subaccount/genesis.js.map +1 -1
  845. package/lib/codec/subaccount/query.d.ts +11 -8
  846. package/lib/codec/subaccount/query.d.ts.map +1 -1
  847. package/lib/codec/subaccount/query.js +84 -114
  848. package/lib/codec/subaccount/query.js.map +1 -1
  849. package/lib/codec/subaccount/subaccount.d.ts +2 -2
  850. package/lib/codec/subaccount/subaccount.d.ts.map +1 -1
  851. package/lib/codec/subaccount/subaccount.js +20 -30
  852. package/lib/codec/subaccount/subaccount.js.map +1 -1
  853. package/lib/codec/subaccount/tx.d.ts +2 -2
  854. package/lib/codec/subaccount/tx.d.ts.map +1 -1
  855. package/lib/codec/subaccount/tx.js +25 -37
  856. package/lib/codec/subaccount/tx.js.map +1 -1
  857. package/lib/codec/tendermint/abci/types.d.ts +2 -2
  858. package/lib/codec/tendermint/abci/types.d.ts.map +1 -1
  859. package/lib/codec/tendermint/abci/types.js +871 -1373
  860. package/lib/codec/tendermint/abci/types.js.map +1 -1
  861. package/lib/codec/tendermint/crypto/keys.d.ts +2 -2
  862. package/lib/codec/tendermint/crypto/keys.d.ts.map +1 -1
  863. package/lib/codec/tendermint/crypto/keys.js +8 -6
  864. package/lib/codec/tendermint/crypto/keys.js.map +1 -1
  865. package/lib/codec/tendermint/crypto/proof.d.ts +2 -2
  866. package/lib/codec/tendermint/crypto/proof.d.ts.map +1 -1
  867. package/lib/codec/tendermint/crypto/proof.js +62 -101
  868. package/lib/codec/tendermint/crypto/proof.js.map +1 -1
  869. package/lib/codec/tendermint/p2p/types.d.ts +2 -2
  870. package/lib/codec/tendermint/p2p/types.d.ts.map +1 -1
  871. package/lib/codec/tendermint/p2p/types.js +80 -126
  872. package/lib/codec/tendermint/p2p/types.js.map +1 -1
  873. package/lib/codec/tendermint/types/block.d.ts +2 -2
  874. package/lib/codec/tendermint/types/block.d.ts.map +1 -1
  875. package/lib/codec/tendermint/types/block.js +32 -48
  876. package/lib/codec/tendermint/types/block.js.map +1 -1
  877. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  878. package/lib/codec/tendermint/types/evidence.d.ts.map +1 -1
  879. package/lib/codec/tendermint/types/evidence.js +93 -158
  880. package/lib/codec/tendermint/types/evidence.js.map +1 -1
  881. package/lib/codec/tendermint/types/params.d.ts +2 -2
  882. package/lib/codec/tendermint/types/params.d.ts.map +1 -1
  883. package/lib/codec/tendermint/types/params.js +108 -170
  884. package/lib/codec/tendermint/types/params.js.map +1 -1
  885. package/lib/codec/tendermint/types/types.d.ts +2 -2
  886. package/lib/codec/tendermint/types/types.d.ts.map +1 -1
  887. package/lib/codec/tendermint/types/types.js +305 -436
  888. package/lib/codec/tendermint/types/types.js.map +1 -1
  889. package/lib/codec/tendermint/types/validator.d.ts +2 -2
  890. package/lib/codec/tendermint/types/validator.d.ts.map +1 -1
  891. package/lib/codec/tendermint/types/validator.js +64 -104
  892. package/lib/codec/tendermint/types/validator.js.map +1 -1
  893. package/lib/codec/tendermint/version/types.d.ts +2 -2
  894. package/lib/codec/tendermint/version/types.d.ts.map +1 -1
  895. package/lib/codec/tendermint/version/types.js +28 -42
  896. package/lib/codec/tendermint/version/types.js.map +1 -1
  897. package/lib/constant/generic.js +1 -1
  898. package/lib/constant/generic.js.map +1 -1
  899. package/lib/constant/index.d.ts +1 -0
  900. package/lib/constant/index.d.ts.map +1 -1
  901. package/lib/constant/index.js +1 -0
  902. package/lib/constant/index.js.map +1 -1
  903. package/lib/constant/network.d.ts +2 -2
  904. package/lib/constant/network.d.ts.map +1 -1
  905. package/lib/constant/network.js +25 -23
  906. package/lib/constant/network.js.map +1 -1
  907. package/lib/constant/node.d.ts +6 -0
  908. package/lib/constant/node.d.ts.map +1 -0
  909. package/lib/constant/node.js +35 -0
  910. package/lib/constant/node.js.map +1 -0
  911. package/lib/index.d.ts +2 -1
  912. package/lib/index.d.ts.map +1 -1
  913. package/lib/index.js +8 -1
  914. package/lib/index.js.map +1 -1
  915. package/lib/insights/balance.d.ts +1 -1
  916. package/lib/insights/balance.d.ts.map +1 -1
  917. package/lib/insights/block.d.ts +1 -1
  918. package/lib/insights/block.d.ts.map +1 -1
  919. package/lib/insights/node.d.ts +16 -2
  920. package/lib/insights/node.d.ts.map +1 -1
  921. package/lib/insights/pool.d.ts +1 -1
  922. package/lib/insights/pool.d.ts.map +1 -1
  923. package/lib/insights/transaction.d.ts +1 -1
  924. package/lib/insights/transaction.d.ts.map +1 -1
  925. package/lib/insights/user.d.ts +1 -1
  926. package/lib/insights/user.d.ts.map +1 -1
  927. package/lib/modules/admin.d.ts +64 -15
  928. package/lib/modules/admin.d.ts.map +1 -1
  929. package/lib/modules/admin.js +137 -43
  930. package/lib/modules/admin.js.map +1 -1
  931. package/lib/modules/fee.d.ts.map +1 -1
  932. package/lib/modules/fee.js +2 -1
  933. package/lib/modules/fee.js.map +1 -1
  934. package/lib/modules/gov.d.ts +2 -2
  935. package/lib/modules/gov.d.ts.map +1 -1
  936. package/lib/modules/gov.js +21 -23
  937. package/lib/modules/gov.js.map +1 -1
  938. package/lib/modules/liquiditypool.d.ts +2 -2
  939. package/lib/modules/liquiditypool.d.ts.map +1 -1
  940. package/lib/modules/liquiditypool.js +23 -22
  941. package/lib/modules/liquiditypool.js.map +1 -1
  942. package/lib/modules/market.js +1 -1
  943. package/lib/modules/market.js.map +1 -1
  944. package/lib/modules/order.js +4 -4
  945. package/lib/modules/order.js.map +1 -1
  946. package/lib/modules/subaccount.d.ts +4 -0
  947. package/lib/modules/subaccount.d.ts.map +1 -1
  948. package/lib/modules/subaccount.js +13 -0
  949. package/lib/modules/subaccount.js.map +1 -1
  950. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  951. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js.map +1 -1
  952. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
  953. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js.map +1 -1
  954. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  955. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js.map +1 -1
  956. package/lib/provider/account/index.d.ts +1 -1
  957. package/lib/provider/account/index.d.ts.map +1 -1
  958. package/lib/provider/account/index.js +4 -1
  959. package/lib/provider/account/index.js.map +1 -1
  960. package/lib/provider/amino/AminoTypesMap.d.ts +4 -0
  961. package/lib/provider/amino/AminoTypesMap.d.ts.map +1 -0
  962. package/lib/provider/amino/AminoTypesMap.js +9 -0
  963. package/lib/provider/amino/AminoTypesMap.js.map +1 -0
  964. package/lib/provider/amino/index.d.ts +2 -0
  965. package/lib/provider/amino/index.d.ts.map +1 -0
  966. package/lib/provider/amino/index.js +9 -0
  967. package/lib/provider/amino/index.js.map +1 -0
  968. package/lib/provider/amino/types/admin.d.ts +5 -0
  969. package/lib/provider/amino/types/admin.d.ts.map +1 -0
  970. package/lib/provider/amino/types/admin.js +177 -0
  971. package/lib/provider/amino/types/admin.js.map +1 -0
  972. package/lib/provider/amino/types/bank.d.ts +5 -0
  973. package/lib/provider/amino/types/bank.d.ts.map +1 -0
  974. package/lib/provider/amino/types/bank.js +16 -0
  975. package/lib/provider/amino/types/bank.js.map +1 -0
  976. package/lib/provider/amino/types/broker.d.ts +5 -0
  977. package/lib/provider/amino/types/broker.d.ts.map +1 -0
  978. package/lib/provider/amino/types/broker.js +16 -0
  979. package/lib/provider/amino/types/broker.js.map +1 -0
  980. package/lib/provider/amino/types/cdp.d.ts +5 -0
  981. package/lib/provider/amino/types/cdp.d.ts.map +1 -0
  982. package/lib/provider/amino/types/cdp.js +46 -0
  983. package/lib/provider/amino/types/cdp.js.map +1 -0
  984. package/lib/provider/amino/types/coin.d.ts +5 -0
  985. package/lib/provider/amino/types/coin.d.ts.map +1 -0
  986. package/lib/provider/amino/types/coin.js +25 -0
  987. package/lib/provider/amino/types/coin.js.map +1 -0
  988. package/lib/provider/amino/types/gov.d.ts +5 -0
  989. package/lib/provider/amino/types/gov.d.ts.map +1 -0
  990. package/lib/provider/amino/types/gov.js +377 -0
  991. package/lib/provider/amino/types/gov.js.map +1 -0
  992. package/lib/provider/amino/types/index.d.ts +16 -0
  993. package/lib/provider/amino/types/index.d.ts.map +1 -0
  994. package/lib/provider/amino/types/index.js +37 -0
  995. package/lib/provider/amino/types/index.js.map +1 -0
  996. package/lib/provider/amino/types/leverage.d.ts +5 -0
  997. package/lib/provider/amino/types/leverage.d.ts.map +1 -0
  998. package/lib/provider/amino/types/leverage.js +18 -0
  999. package/lib/provider/amino/types/leverage.js.map +1 -0
  1000. package/lib/provider/amino/types/liquidityPool.d.ts +5 -0
  1001. package/lib/provider/amino/types/liquidityPool.d.ts.map +1 -0
  1002. package/lib/provider/amino/types/liquidityPool.js +95 -0
  1003. package/lib/provider/amino/types/liquidityPool.js.map +1 -0
  1004. package/lib/provider/amino/types/market.d.ts +5 -0
  1005. package/lib/provider/amino/types/market.d.ts.map +1 -0
  1006. package/lib/provider/amino/types/market.js +28 -0
  1007. package/lib/provider/amino/types/market.js.map +1 -0
  1008. package/lib/provider/amino/types/oracle.d.ts +5 -0
  1009. package/lib/provider/amino/types/oracle.d.ts.map +1 -0
  1010. package/lib/provider/amino/types/oracle.js +18 -0
  1011. package/lib/provider/amino/types/oracle.js.map +1 -0
  1012. package/lib/provider/amino/types/order.d.ts +5 -0
  1013. package/lib/provider/amino/types/order.d.ts.map +1 -0
  1014. package/lib/provider/amino/types/order.js +69 -0
  1015. package/lib/provider/amino/types/order.js.map +1 -0
  1016. package/lib/provider/amino/types/position.d.ts +5 -0
  1017. package/lib/provider/amino/types/position.d.ts.map +1 -0
  1018. package/lib/provider/amino/types/position.js +18 -0
  1019. package/lib/provider/amino/types/position.js.map +1 -0
  1020. package/lib/provider/amino/types/profile.d.ts +5 -0
  1021. package/lib/provider/amino/types/profile.d.ts.map +1 -0
  1022. package/lib/provider/amino/types/profile.js +32 -0
  1023. package/lib/provider/amino/types/profile.js.map +1 -0
  1024. package/lib/provider/amino/types/staking.d.ts +5 -0
  1025. package/lib/provider/amino/types/staking.d.ts.map +1 -0
  1026. package/lib/provider/amino/types/staking.js +34 -0
  1027. package/lib/provider/amino/types/staking.js.map +1 -0
  1028. package/lib/provider/amino/types/subaccount.d.ts +5 -0
  1029. package/lib/provider/amino/types/subaccount.d.ts.map +1 -0
  1030. package/lib/provider/amino/types/subaccount.js +28 -0
  1031. package/lib/provider/amino/types/subaccount.js.map +1 -0
  1032. package/lib/provider/amino/utils.d.ts +42 -0
  1033. package/lib/provider/amino/utils.d.ts.map +1 -0
  1034. package/lib/provider/amino/utils.js +187 -0
  1035. package/lib/provider/amino/utils.js.map +1 -0
  1036. package/lib/provider/index.d.ts +6 -4
  1037. package/lib/provider/index.d.ts.map +1 -1
  1038. package/lib/provider/index.js +9 -4
  1039. package/lib/provider/index.js.map +1 -1
  1040. package/lib/provider/keplr/KeplrAccount.js +1 -1
  1041. package/lib/provider/keplr/KeplrAccount.js.map +1 -1
  1042. package/lib/provider/ledger/ledger.js +2 -2
  1043. package/lib/provider/ledger/ledger.js.map +1 -1
  1044. package/lib/provider/metamask/MetaMask.d.ts.map +1 -1
  1045. package/lib/provider/metamask/MetaMask.js +5 -10
  1046. package/lib/provider/metamask/MetaMask.js.map +1 -1
  1047. package/lib/provider/zilpay/Zilpay.d.ts +34 -0
  1048. package/lib/provider/zilpay/Zilpay.d.ts.map +1 -0
  1049. package/lib/provider/zilpay/Zilpay.js +83 -0
  1050. package/lib/provider/zilpay/Zilpay.js.map +1 -0
  1051. package/lib/provider/zilpay/index.d.ts +2 -0
  1052. package/lib/provider/zilpay/index.d.ts.map +1 -0
  1053. package/lib/provider/zilpay/index.js +14 -0
  1054. package/lib/provider/zilpay/index.js.map +1 -0
  1055. package/lib/util/address.js +12 -12
  1056. package/lib/util/address.js.map +1 -1
  1057. package/lib/util/api.js +5 -5
  1058. package/lib/util/api.js.map +1 -1
  1059. package/lib/util/blockchain.d.ts.map +1 -1
  1060. package/lib/util/blockchain.js +5 -1
  1061. package/lib/util/blockchain.js.map +1 -1
  1062. package/lib/util/fetch.js +1 -1
  1063. package/lib/util/fetch.js.map +1 -1
  1064. package/lib/util/generic.js +3 -3
  1065. package/lib/util/generic.js.map +1 -1
  1066. package/lib/util/gov.d.ts +25 -0
  1067. package/lib/util/gov.d.ts.map +1 -0
  1068. package/lib/util/gov.js +59 -0
  1069. package/lib/util/gov.js.map +1 -0
  1070. package/lib/util/index.d.ts +2 -0
  1071. package/lib/util/index.d.ts.map +1 -1
  1072. package/lib/util/index.js +3 -1
  1073. package/lib/util/index.js.map +1 -1
  1074. package/lib/util/number.js +5 -5
  1075. package/lib/util/number.js.map +1 -1
  1076. package/lib/util/transferfees.d.ts +5 -0
  1077. package/lib/util/transferfees.d.ts.map +1 -1
  1078. package/lib/util/transferfees.js +7 -0
  1079. package/lib/util/transferfees.js.map +1 -1
  1080. package/lib/util/tx.d.ts +14 -78
  1081. package/lib/util/tx.d.ts.map +1 -1
  1082. package/lib/util/tx.js +1 -53
  1083. package/lib/util/tx.js.map +1 -1
  1084. package/lib/util/type.d.ts +11 -0
  1085. package/lib/util/type.d.ts.map +1 -1
  1086. package/lib/util/type.js +46 -0
  1087. package/lib/util/type.js.map +1 -1
  1088. package/lib/wallet/CarbonSigner.d.ts +23 -10
  1089. package/lib/wallet/CarbonSigner.d.ts.map +1 -1
  1090. package/lib/wallet/CarbonSigner.js +56 -23
  1091. package/lib/wallet/CarbonSigner.js.map +1 -1
  1092. package/lib/wallet/CarbonWallet.d.ts +4 -8
  1093. package/lib/wallet/CarbonWallet.d.ts.map +1 -1
  1094. package/lib/wallet/CarbonWallet.js +26 -64
  1095. package/lib/wallet/CarbonWallet.js.map +1 -1
  1096. package/lib/websocket/connector.js +3 -3
  1097. package/lib/websocket/connector.js.map +1 -1
  1098. package/lib/websocket/models.d.ts +5 -4
  1099. package/lib/websocket/models.d.ts.map +1 -1
  1100. package/package.json +4 -5
@@ -43,18 +43,14 @@ exports.QueryValidatorsRequest = {
43
43
  },
44
44
  fromJSON(object) {
45
45
  const message = Object.assign({}, baseQueryValidatorsRequest);
46
- if (object.status !== undefined && object.status !== null) {
47
- message.status = String(object.status);
48
- }
49
- else {
50
- message.status = "";
51
- }
52
- if (object.pagination !== undefined && object.pagination !== null) {
53
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
54
- }
55
- else {
56
- message.pagination = undefined;
57
- }
46
+ message.status =
47
+ object.status !== undefined && object.status !== null
48
+ ? String(object.status)
49
+ : "";
50
+ message.pagination =
51
+ object.pagination !== undefined && object.pagination !== null
52
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
53
+ : undefined;
58
54
  return message;
59
55
  },
60
56
  toJSON(message) {
@@ -70,12 +66,10 @@ exports.QueryValidatorsRequest = {
70
66
  var _a;
71
67
  const message = Object.assign({}, baseQueryValidatorsRequest);
72
68
  message.status = (_a = object.status) !== null && _a !== void 0 ? _a : "";
73
- if (object.pagination !== undefined && object.pagination !== null) {
74
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
75
- }
76
- else {
77
- message.pagination = undefined;
78
- }
69
+ message.pagination =
70
+ object.pagination !== undefined && object.pagination !== null
71
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
72
+ : undefined;
79
73
  return message;
80
74
  },
81
75
  };
@@ -112,19 +106,13 @@ exports.QueryValidatorsResponse = {
112
106
  return message;
113
107
  },
114
108
  fromJSON(object) {
109
+ var _a;
115
110
  const message = Object.assign({}, baseQueryValidatorsResponse);
116
- message.validators = [];
117
- if (object.validators !== undefined && object.validators !== null) {
118
- for (const e of object.validators) {
119
- message.validators.push(staking_1.Validator.fromJSON(e));
120
- }
121
- }
122
- if (object.pagination !== undefined && object.pagination !== null) {
123
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
124
- }
125
- else {
126
- message.pagination = undefined;
127
- }
111
+ message.validators = ((_a = object.validators) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.Validator.fromJSON(e));
112
+ message.pagination =
113
+ object.pagination !== undefined && object.pagination !== null
114
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
115
+ : undefined;
128
116
  return message;
129
117
  },
130
118
  toJSON(message) {
@@ -142,19 +130,13 @@ exports.QueryValidatorsResponse = {
142
130
  return obj;
143
131
  },
144
132
  fromPartial(object) {
133
+ var _a;
145
134
  const message = Object.assign({}, baseQueryValidatorsResponse);
146
- message.validators = [];
147
- if (object.validators !== undefined && object.validators !== null) {
148
- for (const e of object.validators) {
149
- message.validators.push(staking_1.Validator.fromPartial(e));
150
- }
151
- }
152
- if (object.pagination !== undefined && object.pagination !== null) {
153
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
154
- }
155
- else {
156
- message.pagination = undefined;
157
- }
135
+ message.validators = ((_a = object.validators) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.Validator.fromPartial(e));
136
+ message.pagination =
137
+ object.pagination !== undefined && object.pagination !== null
138
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
139
+ : undefined;
158
140
  return message;
159
141
  },
160
142
  };
@@ -185,12 +167,10 @@ exports.QueryValidatorRequest = {
185
167
  },
186
168
  fromJSON(object) {
187
169
  const message = Object.assign({}, baseQueryValidatorRequest);
188
- if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
189
- message.validatorAddr = String(object.validatorAddr);
190
- }
191
- else {
192
- message.validatorAddr = "";
193
- }
170
+ message.validatorAddr =
171
+ object.validatorAddr !== undefined && object.validatorAddr !== null
172
+ ? String(object.validatorAddr)
173
+ : "";
194
174
  return message;
195
175
  },
196
176
  toJSON(message) {
@@ -233,12 +213,10 @@ exports.QueryValidatorResponse = {
233
213
  },
234
214
  fromJSON(object) {
235
215
  const message = Object.assign({}, baseQueryValidatorResponse);
236
- if (object.validator !== undefined && object.validator !== null) {
237
- message.validator = staking_1.Validator.fromJSON(object.validator);
238
- }
239
- else {
240
- message.validator = undefined;
241
- }
216
+ message.validator =
217
+ object.validator !== undefined && object.validator !== null
218
+ ? staking_1.Validator.fromJSON(object.validator)
219
+ : undefined;
242
220
  return message;
243
221
  },
244
222
  toJSON(message) {
@@ -251,12 +229,10 @@ exports.QueryValidatorResponse = {
251
229
  },
252
230
  fromPartial(object) {
253
231
  const message = Object.assign({}, baseQueryValidatorResponse);
254
- if (object.validator !== undefined && object.validator !== null) {
255
- message.validator = staking_1.Validator.fromPartial(object.validator);
256
- }
257
- else {
258
- message.validator = undefined;
259
- }
232
+ message.validator =
233
+ object.validator !== undefined && object.validator !== null
234
+ ? staking_1.Validator.fromPartial(object.validator)
235
+ : undefined;
260
236
  return message;
261
237
  },
262
238
  };
@@ -293,18 +269,14 @@ exports.QueryValidatorDelegationsRequest = {
293
269
  },
294
270
  fromJSON(object) {
295
271
  const message = Object.assign({}, baseQueryValidatorDelegationsRequest);
296
- if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
297
- message.validatorAddr = String(object.validatorAddr);
298
- }
299
- else {
300
- message.validatorAddr = "";
301
- }
302
- if (object.pagination !== undefined && object.pagination !== null) {
303
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
304
- }
305
- else {
306
- message.pagination = undefined;
307
- }
272
+ message.validatorAddr =
273
+ object.validatorAddr !== undefined && object.validatorAddr !== null
274
+ ? String(object.validatorAddr)
275
+ : "";
276
+ message.pagination =
277
+ object.pagination !== undefined && object.pagination !== null
278
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
279
+ : undefined;
308
280
  return message;
309
281
  },
310
282
  toJSON(message) {
@@ -321,12 +293,10 @@ exports.QueryValidatorDelegationsRequest = {
321
293
  var _a;
322
294
  const message = Object.assign({}, baseQueryValidatorDelegationsRequest);
323
295
  message.validatorAddr = (_a = object.validatorAddr) !== null && _a !== void 0 ? _a : "";
324
- if (object.pagination !== undefined && object.pagination !== null) {
325
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
326
- }
327
- else {
328
- message.pagination = undefined;
329
- }
296
+ message.pagination =
297
+ object.pagination !== undefined && object.pagination !== null
298
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
299
+ : undefined;
330
300
  return message;
331
301
  },
332
302
  };
@@ -363,20 +333,13 @@ exports.QueryValidatorDelegationsResponse = {
363
333
  return message;
364
334
  },
365
335
  fromJSON(object) {
336
+ var _a;
366
337
  const message = Object.assign({}, baseQueryValidatorDelegationsResponse);
367
- message.delegationResponses = [];
368
- if (object.delegationResponses !== undefined &&
369
- object.delegationResponses !== null) {
370
- for (const e of object.delegationResponses) {
371
- message.delegationResponses.push(staking_1.DelegationResponse.fromJSON(e));
372
- }
373
- }
374
- if (object.pagination !== undefined && object.pagination !== null) {
375
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
376
- }
377
- else {
378
- message.pagination = undefined;
379
- }
338
+ message.delegationResponses = ((_a = object.delegationResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.DelegationResponse.fromJSON(e));
339
+ message.pagination =
340
+ object.pagination !== undefined && object.pagination !== null
341
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
342
+ : undefined;
380
343
  return message;
381
344
  },
382
345
  toJSON(message) {
@@ -394,20 +357,13 @@ exports.QueryValidatorDelegationsResponse = {
394
357
  return obj;
395
358
  },
396
359
  fromPartial(object) {
360
+ var _a;
397
361
  const message = Object.assign({}, baseQueryValidatorDelegationsResponse);
398
- message.delegationResponses = [];
399
- if (object.delegationResponses !== undefined &&
400
- object.delegationResponses !== null) {
401
- for (const e of object.delegationResponses) {
402
- message.delegationResponses.push(staking_1.DelegationResponse.fromPartial(e));
403
- }
404
- }
405
- if (object.pagination !== undefined && object.pagination !== null) {
406
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
407
- }
408
- else {
409
- message.pagination = undefined;
410
- }
362
+ message.delegationResponses = ((_a = object.delegationResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.DelegationResponse.fromPartial(e));
363
+ message.pagination =
364
+ object.pagination !== undefined && object.pagination !== null
365
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
366
+ : undefined;
411
367
  return message;
412
368
  },
413
369
  };
@@ -446,18 +402,14 @@ exports.QueryValidatorUnbondingDelegationsRequest = {
446
402
  },
447
403
  fromJSON(object) {
448
404
  const message = Object.assign({}, baseQueryValidatorUnbondingDelegationsRequest);
449
- if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
450
- message.validatorAddr = String(object.validatorAddr);
451
- }
452
- else {
453
- message.validatorAddr = "";
454
- }
455
- if (object.pagination !== undefined && object.pagination !== null) {
456
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
457
- }
458
- else {
459
- message.pagination = undefined;
460
- }
405
+ message.validatorAddr =
406
+ object.validatorAddr !== undefined && object.validatorAddr !== null
407
+ ? String(object.validatorAddr)
408
+ : "";
409
+ message.pagination =
410
+ object.pagination !== undefined && object.pagination !== null
411
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
412
+ : undefined;
461
413
  return message;
462
414
  },
463
415
  toJSON(message) {
@@ -474,12 +426,10 @@ exports.QueryValidatorUnbondingDelegationsRequest = {
474
426
  var _a;
475
427
  const message = Object.assign({}, baseQueryValidatorUnbondingDelegationsRequest);
476
428
  message.validatorAddr = (_a = object.validatorAddr) !== null && _a !== void 0 ? _a : "";
477
- if (object.pagination !== undefined && object.pagination !== null) {
478
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
479
- }
480
- else {
481
- message.pagination = undefined;
482
- }
429
+ message.pagination =
430
+ object.pagination !== undefined && object.pagination !== null
431
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
432
+ : undefined;
483
433
  return message;
484
434
  },
485
435
  };
@@ -516,20 +466,13 @@ exports.QueryValidatorUnbondingDelegationsResponse = {
516
466
  return message;
517
467
  },
518
468
  fromJSON(object) {
469
+ var _a;
519
470
  const message = Object.assign({}, baseQueryValidatorUnbondingDelegationsResponse);
520
- message.unbondingResponses = [];
521
- if (object.unbondingResponses !== undefined &&
522
- object.unbondingResponses !== null) {
523
- for (const e of object.unbondingResponses) {
524
- message.unbondingResponses.push(staking_1.UnbondingDelegation.fromJSON(e));
525
- }
526
- }
527
- if (object.pagination !== undefined && object.pagination !== null) {
528
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
529
- }
530
- else {
531
- message.pagination = undefined;
532
- }
471
+ message.unbondingResponses = ((_a = object.unbondingResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.UnbondingDelegation.fromJSON(e));
472
+ message.pagination =
473
+ object.pagination !== undefined && object.pagination !== null
474
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
475
+ : undefined;
533
476
  return message;
534
477
  },
535
478
  toJSON(message) {
@@ -547,20 +490,13 @@ exports.QueryValidatorUnbondingDelegationsResponse = {
547
490
  return obj;
548
491
  },
549
492
  fromPartial(object) {
493
+ var _a;
550
494
  const message = Object.assign({}, baseQueryValidatorUnbondingDelegationsResponse);
551
- message.unbondingResponses = [];
552
- if (object.unbondingResponses !== undefined &&
553
- object.unbondingResponses !== null) {
554
- for (const e of object.unbondingResponses) {
555
- message.unbondingResponses.push(staking_1.UnbondingDelegation.fromPartial(e));
556
- }
557
- }
558
- if (object.pagination !== undefined && object.pagination !== null) {
559
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
560
- }
561
- else {
562
- message.pagination = undefined;
563
- }
495
+ message.unbondingResponses = ((_a = object.unbondingResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.UnbondingDelegation.fromPartial(e));
496
+ message.pagination =
497
+ object.pagination !== undefined && object.pagination !== null
498
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
499
+ : undefined;
564
500
  return message;
565
501
  },
566
502
  };
@@ -600,18 +536,14 @@ exports.QueryDelegationRequest = {
600
536
  },
601
537
  fromJSON(object) {
602
538
  const message = Object.assign({}, baseQueryDelegationRequest);
603
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
604
- message.delegatorAddr = String(object.delegatorAddr);
605
- }
606
- else {
607
- message.delegatorAddr = "";
608
- }
609
- if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
610
- message.validatorAddr = String(object.validatorAddr);
611
- }
612
- else {
613
- message.validatorAddr = "";
614
- }
539
+ message.delegatorAddr =
540
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
541
+ ? String(object.delegatorAddr)
542
+ : "";
543
+ message.validatorAddr =
544
+ object.validatorAddr !== undefined && object.validatorAddr !== null
545
+ ? String(object.validatorAddr)
546
+ : "";
615
547
  return message;
616
548
  },
617
549
  toJSON(message) {
@@ -657,13 +589,11 @@ exports.QueryDelegationResponse = {
657
589
  },
658
590
  fromJSON(object) {
659
591
  const message = Object.assign({}, baseQueryDelegationResponse);
660
- if (object.delegationResponse !== undefined &&
661
- object.delegationResponse !== null) {
662
- message.delegationResponse = staking_1.DelegationResponse.fromJSON(object.delegationResponse);
663
- }
664
- else {
665
- message.delegationResponse = undefined;
666
- }
592
+ message.delegationResponse =
593
+ object.delegationResponse !== undefined &&
594
+ object.delegationResponse !== null
595
+ ? staking_1.DelegationResponse.fromJSON(object.delegationResponse)
596
+ : undefined;
667
597
  return message;
668
598
  },
669
599
  toJSON(message) {
@@ -676,13 +606,11 @@ exports.QueryDelegationResponse = {
676
606
  },
677
607
  fromPartial(object) {
678
608
  const message = Object.assign({}, baseQueryDelegationResponse);
679
- if (object.delegationResponse !== undefined &&
680
- object.delegationResponse !== null) {
681
- message.delegationResponse = staking_1.DelegationResponse.fromPartial(object.delegationResponse);
682
- }
683
- else {
684
- message.delegationResponse = undefined;
685
- }
609
+ message.delegationResponse =
610
+ object.delegationResponse !== undefined &&
611
+ object.delegationResponse !== null
612
+ ? staking_1.DelegationResponse.fromPartial(object.delegationResponse)
613
+ : undefined;
686
614
  return message;
687
615
  },
688
616
  };
@@ -722,18 +650,14 @@ exports.QueryUnbondingDelegationRequest = {
722
650
  },
723
651
  fromJSON(object) {
724
652
  const message = Object.assign({}, baseQueryUnbondingDelegationRequest);
725
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
726
- message.delegatorAddr = String(object.delegatorAddr);
727
- }
728
- else {
729
- message.delegatorAddr = "";
730
- }
731
- if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
732
- message.validatorAddr = String(object.validatorAddr);
733
- }
734
- else {
735
- message.validatorAddr = "";
736
- }
653
+ message.delegatorAddr =
654
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
655
+ ? String(object.delegatorAddr)
656
+ : "";
657
+ message.validatorAddr =
658
+ object.validatorAddr !== undefined && object.validatorAddr !== null
659
+ ? String(object.validatorAddr)
660
+ : "";
737
661
  return message;
738
662
  },
739
663
  toJSON(message) {
@@ -779,12 +703,10 @@ exports.QueryUnbondingDelegationResponse = {
779
703
  },
780
704
  fromJSON(object) {
781
705
  const message = Object.assign({}, baseQueryUnbondingDelegationResponse);
782
- if (object.unbond !== undefined && object.unbond !== null) {
783
- message.unbond = staking_1.UnbondingDelegation.fromJSON(object.unbond);
784
- }
785
- else {
786
- message.unbond = undefined;
787
- }
706
+ message.unbond =
707
+ object.unbond !== undefined && object.unbond !== null
708
+ ? staking_1.UnbondingDelegation.fromJSON(object.unbond)
709
+ : undefined;
788
710
  return message;
789
711
  },
790
712
  toJSON(message) {
@@ -797,12 +719,10 @@ exports.QueryUnbondingDelegationResponse = {
797
719
  },
798
720
  fromPartial(object) {
799
721
  const message = Object.assign({}, baseQueryUnbondingDelegationResponse);
800
- if (object.unbond !== undefined && object.unbond !== null) {
801
- message.unbond = staking_1.UnbondingDelegation.fromPartial(object.unbond);
802
- }
803
- else {
804
- message.unbond = undefined;
805
- }
722
+ message.unbond =
723
+ object.unbond !== undefined && object.unbond !== null
724
+ ? staking_1.UnbondingDelegation.fromPartial(object.unbond)
725
+ : undefined;
806
726
  return message;
807
727
  },
808
728
  };
@@ -839,18 +759,14 @@ exports.QueryDelegatorDelegationsRequest = {
839
759
  },
840
760
  fromJSON(object) {
841
761
  const message = Object.assign({}, baseQueryDelegatorDelegationsRequest);
842
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
843
- message.delegatorAddr = String(object.delegatorAddr);
844
- }
845
- else {
846
- message.delegatorAddr = "";
847
- }
848
- if (object.pagination !== undefined && object.pagination !== null) {
849
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
850
- }
851
- else {
852
- message.pagination = undefined;
853
- }
762
+ message.delegatorAddr =
763
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
764
+ ? String(object.delegatorAddr)
765
+ : "";
766
+ message.pagination =
767
+ object.pagination !== undefined && object.pagination !== null
768
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
769
+ : undefined;
854
770
  return message;
855
771
  },
856
772
  toJSON(message) {
@@ -867,12 +783,10 @@ exports.QueryDelegatorDelegationsRequest = {
867
783
  var _a;
868
784
  const message = Object.assign({}, baseQueryDelegatorDelegationsRequest);
869
785
  message.delegatorAddr = (_a = object.delegatorAddr) !== null && _a !== void 0 ? _a : "";
870
- if (object.pagination !== undefined && object.pagination !== null) {
871
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
872
- }
873
- else {
874
- message.pagination = undefined;
875
- }
786
+ message.pagination =
787
+ object.pagination !== undefined && object.pagination !== null
788
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
789
+ : undefined;
876
790
  return message;
877
791
  },
878
792
  };
@@ -909,20 +823,13 @@ exports.QueryDelegatorDelegationsResponse = {
909
823
  return message;
910
824
  },
911
825
  fromJSON(object) {
826
+ var _a;
912
827
  const message = Object.assign({}, baseQueryDelegatorDelegationsResponse);
913
- message.delegationResponses = [];
914
- if (object.delegationResponses !== undefined &&
915
- object.delegationResponses !== null) {
916
- for (const e of object.delegationResponses) {
917
- message.delegationResponses.push(staking_1.DelegationResponse.fromJSON(e));
918
- }
919
- }
920
- if (object.pagination !== undefined && object.pagination !== null) {
921
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
922
- }
923
- else {
924
- message.pagination = undefined;
925
- }
828
+ message.delegationResponses = ((_a = object.delegationResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.DelegationResponse.fromJSON(e));
829
+ message.pagination =
830
+ object.pagination !== undefined && object.pagination !== null
831
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
832
+ : undefined;
926
833
  return message;
927
834
  },
928
835
  toJSON(message) {
@@ -940,20 +847,13 @@ exports.QueryDelegatorDelegationsResponse = {
940
847
  return obj;
941
848
  },
942
849
  fromPartial(object) {
850
+ var _a;
943
851
  const message = Object.assign({}, baseQueryDelegatorDelegationsResponse);
944
- message.delegationResponses = [];
945
- if (object.delegationResponses !== undefined &&
946
- object.delegationResponses !== null) {
947
- for (const e of object.delegationResponses) {
948
- message.delegationResponses.push(staking_1.DelegationResponse.fromPartial(e));
949
- }
950
- }
951
- if (object.pagination !== undefined && object.pagination !== null) {
952
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
953
- }
954
- else {
955
- message.pagination = undefined;
956
- }
852
+ message.delegationResponses = ((_a = object.delegationResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.DelegationResponse.fromPartial(e));
853
+ message.pagination =
854
+ object.pagination !== undefined && object.pagination !== null
855
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
856
+ : undefined;
957
857
  return message;
958
858
  },
959
859
  };
@@ -992,18 +892,14 @@ exports.QueryDelegatorUnbondingDelegationsRequest = {
992
892
  },
993
893
  fromJSON(object) {
994
894
  const message = Object.assign({}, baseQueryDelegatorUnbondingDelegationsRequest);
995
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
996
- message.delegatorAddr = String(object.delegatorAddr);
997
- }
998
- else {
999
- message.delegatorAddr = "";
1000
- }
1001
- if (object.pagination !== undefined && object.pagination !== null) {
1002
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
1003
- }
1004
- else {
1005
- message.pagination = undefined;
1006
- }
895
+ message.delegatorAddr =
896
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
897
+ ? String(object.delegatorAddr)
898
+ : "";
899
+ message.pagination =
900
+ object.pagination !== undefined && object.pagination !== null
901
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
902
+ : undefined;
1007
903
  return message;
1008
904
  },
1009
905
  toJSON(message) {
@@ -1020,12 +916,10 @@ exports.QueryDelegatorUnbondingDelegationsRequest = {
1020
916
  var _a;
1021
917
  const message = Object.assign({}, baseQueryDelegatorUnbondingDelegationsRequest);
1022
918
  message.delegatorAddr = (_a = object.delegatorAddr) !== null && _a !== void 0 ? _a : "";
1023
- if (object.pagination !== undefined && object.pagination !== null) {
1024
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
1025
- }
1026
- else {
1027
- message.pagination = undefined;
1028
- }
919
+ message.pagination =
920
+ object.pagination !== undefined && object.pagination !== null
921
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
922
+ : undefined;
1029
923
  return message;
1030
924
  },
1031
925
  };
@@ -1062,20 +956,13 @@ exports.QueryDelegatorUnbondingDelegationsResponse = {
1062
956
  return message;
1063
957
  },
1064
958
  fromJSON(object) {
959
+ var _a;
1065
960
  const message = Object.assign({}, baseQueryDelegatorUnbondingDelegationsResponse);
1066
- message.unbondingResponses = [];
1067
- if (object.unbondingResponses !== undefined &&
1068
- object.unbondingResponses !== null) {
1069
- for (const e of object.unbondingResponses) {
1070
- message.unbondingResponses.push(staking_1.UnbondingDelegation.fromJSON(e));
1071
- }
1072
- }
1073
- if (object.pagination !== undefined && object.pagination !== null) {
1074
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
1075
- }
1076
- else {
1077
- message.pagination = undefined;
1078
- }
961
+ message.unbondingResponses = ((_a = object.unbondingResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.UnbondingDelegation.fromJSON(e));
962
+ message.pagination =
963
+ object.pagination !== undefined && object.pagination !== null
964
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
965
+ : undefined;
1079
966
  return message;
1080
967
  },
1081
968
  toJSON(message) {
@@ -1093,20 +980,13 @@ exports.QueryDelegatorUnbondingDelegationsResponse = {
1093
980
  return obj;
1094
981
  },
1095
982
  fromPartial(object) {
983
+ var _a;
1096
984
  const message = Object.assign({}, baseQueryDelegatorUnbondingDelegationsResponse);
1097
- message.unbondingResponses = [];
1098
- if (object.unbondingResponses !== undefined &&
1099
- object.unbondingResponses !== null) {
1100
- for (const e of object.unbondingResponses) {
1101
- message.unbondingResponses.push(staking_1.UnbondingDelegation.fromPartial(e));
1102
- }
1103
- }
1104
- if (object.pagination !== undefined && object.pagination !== null) {
1105
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
1106
- }
1107
- else {
1108
- message.pagination = undefined;
1109
- }
985
+ message.unbondingResponses = ((_a = object.unbondingResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.UnbondingDelegation.fromPartial(e));
986
+ message.pagination =
987
+ object.pagination !== undefined && object.pagination !== null
988
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
989
+ : undefined;
1110
990
  return message;
1111
991
  },
1112
992
  };
@@ -1159,32 +1039,22 @@ exports.QueryRedelegationsRequest = {
1159
1039
  },
1160
1040
  fromJSON(object) {
1161
1041
  const message = Object.assign({}, baseQueryRedelegationsRequest);
1162
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
1163
- message.delegatorAddr = String(object.delegatorAddr);
1164
- }
1165
- else {
1166
- message.delegatorAddr = "";
1167
- }
1168
- if (object.srcValidatorAddr !== undefined &&
1169
- object.srcValidatorAddr !== null) {
1170
- message.srcValidatorAddr = String(object.srcValidatorAddr);
1171
- }
1172
- else {
1173
- message.srcValidatorAddr = "";
1174
- }
1175
- if (object.dstValidatorAddr !== undefined &&
1176
- object.dstValidatorAddr !== null) {
1177
- message.dstValidatorAddr = String(object.dstValidatorAddr);
1178
- }
1179
- else {
1180
- message.dstValidatorAddr = "";
1181
- }
1182
- if (object.pagination !== undefined && object.pagination !== null) {
1183
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
1184
- }
1185
- else {
1186
- message.pagination = undefined;
1187
- }
1042
+ message.delegatorAddr =
1043
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
1044
+ ? String(object.delegatorAddr)
1045
+ : "";
1046
+ message.srcValidatorAddr =
1047
+ object.srcValidatorAddr !== undefined && object.srcValidatorAddr !== null
1048
+ ? String(object.srcValidatorAddr)
1049
+ : "";
1050
+ message.dstValidatorAddr =
1051
+ object.dstValidatorAddr !== undefined && object.dstValidatorAddr !== null
1052
+ ? String(object.dstValidatorAddr)
1053
+ : "";
1054
+ message.pagination =
1055
+ object.pagination !== undefined && object.pagination !== null
1056
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
1057
+ : undefined;
1188
1058
  return message;
1189
1059
  },
1190
1060
  toJSON(message) {
@@ -1207,12 +1077,10 @@ exports.QueryRedelegationsRequest = {
1207
1077
  message.delegatorAddr = (_a = object.delegatorAddr) !== null && _a !== void 0 ? _a : "";
1208
1078
  message.srcValidatorAddr = (_b = object.srcValidatorAddr) !== null && _b !== void 0 ? _b : "";
1209
1079
  message.dstValidatorAddr = (_c = object.dstValidatorAddr) !== null && _c !== void 0 ? _c : "";
1210
- if (object.pagination !== undefined && object.pagination !== null) {
1211
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
1212
- }
1213
- else {
1214
- message.pagination = undefined;
1215
- }
1080
+ message.pagination =
1081
+ object.pagination !== undefined && object.pagination !== null
1082
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
1083
+ : undefined;
1216
1084
  return message;
1217
1085
  },
1218
1086
  };
@@ -1249,20 +1117,13 @@ exports.QueryRedelegationsResponse = {
1249
1117
  return message;
1250
1118
  },
1251
1119
  fromJSON(object) {
1120
+ var _a;
1252
1121
  const message = Object.assign({}, baseQueryRedelegationsResponse);
1253
- message.redelegationResponses = [];
1254
- if (object.redelegationResponses !== undefined &&
1255
- object.redelegationResponses !== null) {
1256
- for (const e of object.redelegationResponses) {
1257
- message.redelegationResponses.push(staking_1.RedelegationResponse.fromJSON(e));
1258
- }
1259
- }
1260
- if (object.pagination !== undefined && object.pagination !== null) {
1261
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
1262
- }
1263
- else {
1264
- message.pagination = undefined;
1265
- }
1122
+ message.redelegationResponses = ((_a = object.redelegationResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.RedelegationResponse.fromJSON(e));
1123
+ message.pagination =
1124
+ object.pagination !== undefined && object.pagination !== null
1125
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
1126
+ : undefined;
1266
1127
  return message;
1267
1128
  },
1268
1129
  toJSON(message) {
@@ -1280,20 +1141,13 @@ exports.QueryRedelegationsResponse = {
1280
1141
  return obj;
1281
1142
  },
1282
1143
  fromPartial(object) {
1144
+ var _a;
1283
1145
  const message = Object.assign({}, baseQueryRedelegationsResponse);
1284
- message.redelegationResponses = [];
1285
- if (object.redelegationResponses !== undefined &&
1286
- object.redelegationResponses !== null) {
1287
- for (const e of object.redelegationResponses) {
1288
- message.redelegationResponses.push(staking_1.RedelegationResponse.fromPartial(e));
1289
- }
1290
- }
1291
- if (object.pagination !== undefined && object.pagination !== null) {
1292
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
1293
- }
1294
- else {
1295
- message.pagination = undefined;
1296
- }
1146
+ message.redelegationResponses = ((_a = object.redelegationResponses) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.RedelegationResponse.fromPartial(e));
1147
+ message.pagination =
1148
+ object.pagination !== undefined && object.pagination !== null
1149
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
1150
+ : undefined;
1297
1151
  return message;
1298
1152
  },
1299
1153
  };
@@ -1330,18 +1184,14 @@ exports.QueryDelegatorValidatorsRequest = {
1330
1184
  },
1331
1185
  fromJSON(object) {
1332
1186
  const message = Object.assign({}, baseQueryDelegatorValidatorsRequest);
1333
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
1334
- message.delegatorAddr = String(object.delegatorAddr);
1335
- }
1336
- else {
1337
- message.delegatorAddr = "";
1338
- }
1339
- if (object.pagination !== undefined && object.pagination !== null) {
1340
- message.pagination = pagination_1.PageRequest.fromJSON(object.pagination);
1341
- }
1342
- else {
1343
- message.pagination = undefined;
1344
- }
1187
+ message.delegatorAddr =
1188
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
1189
+ ? String(object.delegatorAddr)
1190
+ : "";
1191
+ message.pagination =
1192
+ object.pagination !== undefined && object.pagination !== null
1193
+ ? pagination_1.PageRequest.fromJSON(object.pagination)
1194
+ : undefined;
1345
1195
  return message;
1346
1196
  },
1347
1197
  toJSON(message) {
@@ -1358,12 +1208,10 @@ exports.QueryDelegatorValidatorsRequest = {
1358
1208
  var _a;
1359
1209
  const message = Object.assign({}, baseQueryDelegatorValidatorsRequest);
1360
1210
  message.delegatorAddr = (_a = object.delegatorAddr) !== null && _a !== void 0 ? _a : "";
1361
- if (object.pagination !== undefined && object.pagination !== null) {
1362
- message.pagination = pagination_1.PageRequest.fromPartial(object.pagination);
1363
- }
1364
- else {
1365
- message.pagination = undefined;
1366
- }
1211
+ message.pagination =
1212
+ object.pagination !== undefined && object.pagination !== null
1213
+ ? pagination_1.PageRequest.fromPartial(object.pagination)
1214
+ : undefined;
1367
1215
  return message;
1368
1216
  },
1369
1217
  };
@@ -1400,19 +1248,13 @@ exports.QueryDelegatorValidatorsResponse = {
1400
1248
  return message;
1401
1249
  },
1402
1250
  fromJSON(object) {
1251
+ var _a;
1403
1252
  const message = Object.assign({}, baseQueryDelegatorValidatorsResponse);
1404
- message.validators = [];
1405
- if (object.validators !== undefined && object.validators !== null) {
1406
- for (const e of object.validators) {
1407
- message.validators.push(staking_1.Validator.fromJSON(e));
1408
- }
1409
- }
1410
- if (object.pagination !== undefined && object.pagination !== null) {
1411
- message.pagination = pagination_1.PageResponse.fromJSON(object.pagination);
1412
- }
1413
- else {
1414
- message.pagination = undefined;
1415
- }
1253
+ message.validators = ((_a = object.validators) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.Validator.fromJSON(e));
1254
+ message.pagination =
1255
+ object.pagination !== undefined && object.pagination !== null
1256
+ ? pagination_1.PageResponse.fromJSON(object.pagination)
1257
+ : undefined;
1416
1258
  return message;
1417
1259
  },
1418
1260
  toJSON(message) {
@@ -1430,19 +1272,13 @@ exports.QueryDelegatorValidatorsResponse = {
1430
1272
  return obj;
1431
1273
  },
1432
1274
  fromPartial(object) {
1275
+ var _a;
1433
1276
  const message = Object.assign({}, baseQueryDelegatorValidatorsResponse);
1434
- message.validators = [];
1435
- if (object.validators !== undefined && object.validators !== null) {
1436
- for (const e of object.validators) {
1437
- message.validators.push(staking_1.Validator.fromPartial(e));
1438
- }
1439
- }
1440
- if (object.pagination !== undefined && object.pagination !== null) {
1441
- message.pagination = pagination_1.PageResponse.fromPartial(object.pagination);
1442
- }
1443
- else {
1444
- message.pagination = undefined;
1445
- }
1277
+ message.validators = ((_a = object.validators) !== null && _a !== void 0 ? _a : []).map((e) => staking_1.Validator.fromPartial(e));
1278
+ message.pagination =
1279
+ object.pagination !== undefined && object.pagination !== null
1280
+ ? pagination_1.PageResponse.fromPartial(object.pagination)
1281
+ : undefined;
1446
1282
  return message;
1447
1283
  },
1448
1284
  };
@@ -1482,18 +1318,14 @@ exports.QueryDelegatorValidatorRequest = {
1482
1318
  },
1483
1319
  fromJSON(object) {
1484
1320
  const message = Object.assign({}, baseQueryDelegatorValidatorRequest);
1485
- if (object.delegatorAddr !== undefined && object.delegatorAddr !== null) {
1486
- message.delegatorAddr = String(object.delegatorAddr);
1487
- }
1488
- else {
1489
- message.delegatorAddr = "";
1490
- }
1491
- if (object.validatorAddr !== undefined && object.validatorAddr !== null) {
1492
- message.validatorAddr = String(object.validatorAddr);
1493
- }
1494
- else {
1495
- message.validatorAddr = "";
1496
- }
1321
+ message.delegatorAddr =
1322
+ object.delegatorAddr !== undefined && object.delegatorAddr !== null
1323
+ ? String(object.delegatorAddr)
1324
+ : "";
1325
+ message.validatorAddr =
1326
+ object.validatorAddr !== undefined && object.validatorAddr !== null
1327
+ ? String(object.validatorAddr)
1328
+ : "";
1497
1329
  return message;
1498
1330
  },
1499
1331
  toJSON(message) {
@@ -1539,12 +1371,10 @@ exports.QueryDelegatorValidatorResponse = {
1539
1371
  },
1540
1372
  fromJSON(object) {
1541
1373
  const message = Object.assign({}, baseQueryDelegatorValidatorResponse);
1542
- if (object.validator !== undefined && object.validator !== null) {
1543
- message.validator = staking_1.Validator.fromJSON(object.validator);
1544
- }
1545
- else {
1546
- message.validator = undefined;
1547
- }
1374
+ message.validator =
1375
+ object.validator !== undefined && object.validator !== null
1376
+ ? staking_1.Validator.fromJSON(object.validator)
1377
+ : undefined;
1548
1378
  return message;
1549
1379
  },
1550
1380
  toJSON(message) {
@@ -1557,12 +1387,10 @@ exports.QueryDelegatorValidatorResponse = {
1557
1387
  },
1558
1388
  fromPartial(object) {
1559
1389
  const message = Object.assign({}, baseQueryDelegatorValidatorResponse);
1560
- if (object.validator !== undefined && object.validator !== null) {
1561
- message.validator = staking_1.Validator.fromPartial(object.validator);
1562
- }
1563
- else {
1564
- message.validator = undefined;
1565
- }
1390
+ message.validator =
1391
+ object.validator !== undefined && object.validator !== null
1392
+ ? staking_1.Validator.fromPartial(object.validator)
1393
+ : undefined;
1566
1394
  return message;
1567
1395
  },
1568
1396
  };
@@ -1593,12 +1421,10 @@ exports.QueryHistoricalInfoRequest = {
1593
1421
  },
1594
1422
  fromJSON(object) {
1595
1423
  const message = Object.assign({}, baseQueryHistoricalInfoRequest);
1596
- if (object.height !== undefined && object.height !== null) {
1597
- message.height = long_1.default.fromString(object.height);
1598
- }
1599
- else {
1600
- message.height = long_1.default.ZERO;
1601
- }
1424
+ message.height =
1425
+ object.height !== undefined && object.height !== null
1426
+ ? long_1.default.fromString(object.height)
1427
+ : long_1.default.ZERO;
1602
1428
  return message;
1603
1429
  },
1604
1430
  toJSON(message) {
@@ -1609,12 +1435,10 @@ exports.QueryHistoricalInfoRequest = {
1609
1435
  },
1610
1436
  fromPartial(object) {
1611
1437
  const message = Object.assign({}, baseQueryHistoricalInfoRequest);
1612
- if (object.height !== undefined && object.height !== null) {
1613
- message.height = object.height;
1614
- }
1615
- else {
1616
- message.height = long_1.default.ZERO;
1617
- }
1438
+ message.height =
1439
+ object.height !== undefined && object.height !== null
1440
+ ? long_1.default.fromValue(object.height)
1441
+ : long_1.default.ZERO;
1618
1442
  return message;
1619
1443
  },
1620
1444
  };
@@ -1645,12 +1469,10 @@ exports.QueryHistoricalInfoResponse = {
1645
1469
  },
1646
1470
  fromJSON(object) {
1647
1471
  const message = Object.assign({}, baseQueryHistoricalInfoResponse);
1648
- if (object.hist !== undefined && object.hist !== null) {
1649
- message.hist = staking_1.HistoricalInfo.fromJSON(object.hist);
1650
- }
1651
- else {
1652
- message.hist = undefined;
1653
- }
1472
+ message.hist =
1473
+ object.hist !== undefined && object.hist !== null
1474
+ ? staking_1.HistoricalInfo.fromJSON(object.hist)
1475
+ : undefined;
1654
1476
  return message;
1655
1477
  },
1656
1478
  toJSON(message) {
@@ -1663,12 +1485,10 @@ exports.QueryHistoricalInfoResponse = {
1663
1485
  },
1664
1486
  fromPartial(object) {
1665
1487
  const message = Object.assign({}, baseQueryHistoricalInfoResponse);
1666
- if (object.hist !== undefined && object.hist !== null) {
1667
- message.hist = staking_1.HistoricalInfo.fromPartial(object.hist);
1668
- }
1669
- else {
1670
- message.hist = undefined;
1671
- }
1488
+ message.hist =
1489
+ object.hist !== undefined && object.hist !== null
1490
+ ? staking_1.HistoricalInfo.fromPartial(object.hist)
1491
+ : undefined;
1672
1492
  return message;
1673
1493
  },
1674
1494
  };
@@ -1731,12 +1551,10 @@ exports.QueryPoolResponse = {
1731
1551
  },
1732
1552
  fromJSON(object) {
1733
1553
  const message = Object.assign({}, baseQueryPoolResponse);
1734
- if (object.pool !== undefined && object.pool !== null) {
1735
- message.pool = staking_1.Pool.fromJSON(object.pool);
1736
- }
1737
- else {
1738
- message.pool = undefined;
1739
- }
1554
+ message.pool =
1555
+ object.pool !== undefined && object.pool !== null
1556
+ ? staking_1.Pool.fromJSON(object.pool)
1557
+ : undefined;
1740
1558
  return message;
1741
1559
  },
1742
1560
  toJSON(message) {
@@ -1747,12 +1565,10 @@ exports.QueryPoolResponse = {
1747
1565
  },
1748
1566
  fromPartial(object) {
1749
1567
  const message = Object.assign({}, baseQueryPoolResponse);
1750
- if (object.pool !== undefined && object.pool !== null) {
1751
- message.pool = staking_1.Pool.fromPartial(object.pool);
1752
- }
1753
- else {
1754
- message.pool = undefined;
1755
- }
1568
+ message.pool =
1569
+ object.pool !== undefined && object.pool !== null
1570
+ ? staking_1.Pool.fromPartial(object.pool)
1571
+ : undefined;
1756
1572
  return message;
1757
1573
  },
1758
1574
  };
@@ -1815,12 +1631,10 @@ exports.QueryParamsResponse = {
1815
1631
  },
1816
1632
  fromJSON(object) {
1817
1633
  const message = Object.assign({}, baseQueryParamsResponse);
1818
- if (object.params !== undefined && object.params !== null) {
1819
- message.params = staking_1.Params.fromJSON(object.params);
1820
- }
1821
- else {
1822
- message.params = undefined;
1823
- }
1634
+ message.params =
1635
+ object.params !== undefined && object.params !== null
1636
+ ? staking_1.Params.fromJSON(object.params)
1637
+ : undefined;
1824
1638
  return message;
1825
1639
  },
1826
1640
  toJSON(message) {
@@ -1831,12 +1645,10 @@ exports.QueryParamsResponse = {
1831
1645
  },
1832
1646
  fromPartial(object) {
1833
1647
  const message = Object.assign({}, baseQueryParamsResponse);
1834
- if (object.params !== undefined && object.params !== null) {
1835
- message.params = staking_1.Params.fromPartial(object.params);
1836
- }
1837
- else {
1838
- message.params = undefined;
1839
- }
1648
+ message.params =
1649
+ object.params !== undefined && object.params !== null
1650
+ ? staking_1.Params.fromPartial(object.params)
1651
+ : undefined;
1840
1652
  return message;
1841
1653
  },
1842
1654
  };