carbon-js-sdk 0.11.68-beta.2 → 0.11.68

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 (1104) hide show
  1. package/lib/CarbonSDK.js +4 -8
  2. package/lib/clients/BatchQueryClient.js +4 -4
  3. package/lib/clients/CarbonQueryClient.js +1 -1
  4. package/lib/clients/ETHClient.js +15 -15
  5. package/lib/clients/HydrogenClient.js +4 -4
  6. package/lib/clients/InsightsQueryClient.js +3 -3
  7. package/lib/clients/NEOClient.js +8 -12
  8. package/lib/clients/TokenClient.js +2 -2
  9. package/lib/clients/ZILClient.js +17 -17
  10. package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +3 -3
  11. package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +3 -3
  12. package/lib/codec/Switcheo/carbon/admin/params.d.ts +4 -4
  13. package/lib/codec/Switcheo/carbon/admin/query.d.ts +8 -8
  14. package/lib/codec/Switcheo/carbon/admin/tx.d.ts +10 -10
  15. package/lib/codec/Switcheo/carbon/bank/event.d.ts +7 -7
  16. package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +3 -3
  17. package/lib/codec/Switcheo/carbon/bank/query.d.ts +10 -10
  18. package/lib/codec/Switcheo/carbon/bank/tx.d.ts +6 -6
  19. package/lib/codec/Switcheo/carbon/book/book.d.ts +6 -6
  20. package/lib/codec/Switcheo/carbon/book/event.d.ts +6 -6
  21. package/lib/codec/Switcheo/carbon/book/genesis.d.ts +3 -3
  22. package/lib/codec/Switcheo/carbon/book/legacy.d.ts +3 -3
  23. package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -12
  24. package/lib/codec/Switcheo/carbon/bridge/bridge.d.ts +8 -8
  25. package/lib/codec/Switcheo/carbon/bridge/event.d.ts +24 -24
  26. package/lib/codec/Switcheo/carbon/bridge/genesis.d.ts +3 -3
  27. package/lib/codec/Switcheo/carbon/bridge/params.d.ts +3 -3
  28. package/lib/codec/Switcheo/carbon/bridge/pending_action.d.ts +8 -8
  29. package/lib/codec/Switcheo/carbon/bridge/query.d.ts +24 -24
  30. package/lib/codec/Switcheo/carbon/bridge/tx.d.ts +67 -67
  31. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +5 -5
  32. package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +3 -3
  33. package/lib/codec/Switcheo/carbon/broker/event.d.ts +4 -4
  34. package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +3 -3
  35. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +3 -3
  36. package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +3 -3
  37. package/lib/codec/Switcheo/carbon/broker/query.d.ts +8 -8
  38. package/lib/codec/Switcheo/carbon/broker/tx.d.ts +5 -5
  39. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +3 -3
  40. package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +3 -3
  41. package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +3 -3
  42. package/lib/codec/Switcheo/carbon/btcx/query.d.ts +6 -6
  43. package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +8 -8
  44. package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +19 -0
  45. package/lib/codec/Switcheo/carbon/ccm/ccm.js +60 -0
  46. package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +9 -9
  47. package/lib/codec/Switcheo/carbon/ccm/params.d.ts +4 -4
  48. package/lib/codec/Switcheo/carbon/ccm/query.d.ts +6 -6
  49. package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +7 -7
  50. package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +6 -6
  51. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +3 -3
  52. package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +3 -3
  53. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +3 -3
  54. package/lib/codec/Switcheo/carbon/cdp/event.d.ts +35 -35
  55. package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +10 -10
  56. package/lib/codec/Switcheo/carbon/cdp/params.d.ts +4 -4
  57. package/lib/codec/Switcheo/carbon/cdp/query.d.ts +55 -55
  58. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +3 -3
  59. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +6 -6
  60. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +3 -3
  61. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +3 -3
  62. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +71 -71
  63. package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +3 -3
  64. package/lib/codec/Switcheo/carbon/coin/event.d.ts +14 -14
  65. package/lib/codec/Switcheo/carbon/coin/export.d.ts +2 -3
  66. package/lib/codec/Switcheo/carbon/coin/export.js +2 -12
  67. package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +4 -4
  68. package/lib/codec/Switcheo/carbon/coin/group.d.ts +5 -5
  69. package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +3 -3
  70. package/lib/codec/Switcheo/carbon/coin/query.d.ts +26 -50
  71. package/lib/codec/Switcheo/carbon/coin/query.js +1 -88
  72. package/lib/codec/Switcheo/carbon/coin/token.d.ts +11 -14
  73. package/lib/codec/Switcheo/carbon/coin/token.js +21 -63
  74. package/lib/codec/Switcheo/carbon/coin/tx.d.ts +54 -104
  75. package/lib/codec/Switcheo/carbon/coin/tx.js +4 -251
  76. package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +3 -3
  77. package/lib/codec/Switcheo/carbon/erc20/events.d.ts +6 -6
  78. package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +3 -3
  79. package/lib/codec/Switcheo/carbon/erc20/params.d.ts +4 -4
  80. package/lib/codec/Switcheo/carbon/erc20/query.d.ts +8 -8
  81. package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +16 -16
  82. package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +4 -4
  83. package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +4 -4
  84. package/lib/codec/Switcheo/carbon/evmcontract/evm_hooks.d.ts +7 -7
  85. package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +3 -3
  86. package/lib/codec/Switcheo/carbon/evmcontract/params.d.ts +4 -4
  87. package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +12 -12
  88. package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +8 -8
  89. package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +3 -3
  90. package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +3 -3
  91. package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +5 -5
  92. package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +3 -3
  93. package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +6 -6
  94. package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +4 -4
  95. package/lib/codec/Switcheo/carbon/fee/event.d.ts +3 -3
  96. package/lib/codec/Switcheo/carbon/fee/fee.d.ts +5 -5
  97. package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +3 -3
  98. package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +57 -0
  99. package/lib/codec/Switcheo/carbon/fee/proposal.js +311 -0
  100. package/lib/codec/Switcheo/carbon/fee/query.d.ts +10 -10
  101. package/lib/codec/Switcheo/carbon/fee/tx.d.ts +10 -10
  102. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +7 -7
  103. package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +7 -7
  104. package/lib/codec/Switcheo/carbon/headersync/query.d.ts +4 -4
  105. package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +6 -6
  106. package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +3 -3
  107. package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +3 -3
  108. package/lib/codec/Switcheo/carbon/inflation/query.d.ts +4 -4
  109. package/lib/codec/Switcheo/carbon/insurance/event.d.ts +3 -3
  110. package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +5 -5
  111. package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +3 -3
  112. package/lib/codec/Switcheo/carbon/insurance/params.d.ts +4 -4
  113. package/lib/codec/Switcheo/carbon/insurance/query.d.ts +10 -10
  114. package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +6 -6
  115. package/lib/codec/Switcheo/carbon/leverage/event.d.ts +3 -4
  116. package/lib/codec/Switcheo/carbon/leverage/event.js +1 -14
  117. package/lib/codec/Switcheo/carbon/leverage/export.d.ts +1 -1
  118. package/lib/codec/Switcheo/carbon/leverage/export.js +1 -3
  119. package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +3 -3
  120. package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +4 -5
  121. package/lib/codec/Switcheo/carbon/leverage/leverage.js +2 -18
  122. package/lib/codec/Switcheo/carbon/leverage/query.d.ts +6 -6
  123. package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +4 -26
  124. package/lib/codec/Switcheo/carbon/leverage/tx.js +1 -96
  125. package/lib/codec/Switcheo/carbon/liquidation/event.d.ts +3 -3
  126. package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +4 -4
  127. package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +17 -0
  128. package/lib/codec/Switcheo/carbon/liquidation/liquidation.js +46 -0
  129. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +4 -4
  130. package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +4 -4
  131. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +3 -3
  132. package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +15 -15
  133. package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +1 -1
  134. package/lib/codec/Switcheo/carbon/liquiditypool/export.js +3 -1
  135. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +3 -3
  136. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +13 -12
  137. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +15 -1
  138. package/lib/codec/Switcheo/carbon/liquiditypool/params.d.ts +4 -4
  139. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +11 -11
  140. package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +33 -33
  141. package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +18 -18
  142. package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +63 -41
  143. package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +100 -1
  144. package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +4 -4
  145. package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +6 -6
  146. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +3 -3
  147. package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +6 -6
  148. package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +16 -16
  149. package/lib/codec/Switcheo/carbon/market/event.d.ts +3 -3
  150. package/lib/codec/Switcheo/carbon/market/fee.d.ts +7 -7
  151. package/lib/codec/Switcheo/carbon/market/genesis.d.ts +3 -3
  152. package/lib/codec/Switcheo/carbon/market/market.d.ts +6 -6
  153. package/lib/codec/Switcheo/carbon/market/params.d.ts +4 -4
  154. package/lib/codec/Switcheo/carbon/market/proposal.d.ts +5 -5
  155. package/lib/codec/Switcheo/carbon/market/query.d.ts +22 -22
  156. package/lib/codec/Switcheo/carbon/market/tx.d.ts +31 -31
  157. package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +3 -3
  158. package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +3 -3
  159. package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +18 -0
  160. package/lib/codec/Switcheo/carbon/marketstats/params.js +46 -0
  161. package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +4 -4
  162. package/lib/codec/Switcheo/carbon/misc/block.d.ts +3 -3
  163. package/lib/codec/Switcheo/carbon/misc/message.d.ts +3 -3
  164. package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +3 -3
  165. package/lib/codec/Switcheo/carbon/misc/query.d.ts +16 -16
  166. package/lib/codec/Switcheo/carbon/misc/trade.d.ts +3 -3
  167. package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +4 -4
  168. package/lib/codec/Switcheo/carbon/oracle/event.d.ts +4 -4
  169. package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +3 -3
  170. package/lib/codec/Switcheo/carbon/oracle/historical.d.ts +5 -5
  171. package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +5 -5
  172. package/lib/codec/Switcheo/carbon/oracle/params.d.ts +4 -4
  173. package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +21 -0
  174. package/lib/codec/Switcheo/carbon/oracle/proposal.js +91 -0
  175. package/lib/codec/Switcheo/carbon/oracle/query.d.ts +32 -32
  176. package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +4 -4
  177. package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +28 -28
  178. package/lib/codec/Switcheo/carbon/order/event.d.ts +3 -3
  179. package/lib/codec/Switcheo/carbon/order/evm_hooks.d.ts +6 -6
  180. package/lib/codec/Switcheo/carbon/order/genesis.d.ts +6 -6
  181. package/lib/codec/Switcheo/carbon/order/order.d.ts +7 -7
  182. package/lib/codec/Switcheo/carbon/order/params.d.ts +4 -4
  183. package/lib/codec/Switcheo/carbon/order/query.d.ts +14 -14
  184. package/lib/codec/Switcheo/carbon/order/tx.d.ts +16 -16
  185. package/lib/codec/Switcheo/carbon/otc/event.d.ts +4 -4
  186. package/lib/codec/Switcheo/carbon/otc/genesis.d.ts +3 -3
  187. package/lib/codec/Switcheo/carbon/otc/params.d.ts +4 -4
  188. package/lib/codec/Switcheo/carbon/otc/query.d.ts +12 -12
  189. package/lib/codec/Switcheo/carbon/otc/quote.d.ts +4 -4
  190. package/lib/codec/Switcheo/carbon/otc/rfq.d.ts +4 -4
  191. package/lib/codec/Switcheo/carbon/otc/tx.d.ts +12 -12
  192. package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +14 -14
  193. package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +7 -7
  194. package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +9 -9
  195. package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +4 -4
  196. package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +9 -9
  197. package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +35 -35
  198. package/lib/codec/Switcheo/carbon/perpspool/quote.d.ts +5 -5
  199. package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +32 -32
  200. package/lib/codec/Switcheo/carbon/perpspool/user_vault.d.ts +6 -6
  201. package/lib/codec/Switcheo/carbon/position/event.d.ts +4 -4
  202. package/lib/codec/Switcheo/carbon/position/evm_hooks.d.ts +4 -4
  203. package/lib/codec/Switcheo/carbon/position/export.d.ts +2 -2
  204. package/lib/codec/Switcheo/carbon/position/export.js +1 -5
  205. package/lib/codec/Switcheo/carbon/position/genesis.d.ts +3 -3
  206. package/lib/codec/Switcheo/carbon/position/position.d.ts +7 -31
  207. package/lib/codec/Switcheo/carbon/position/position.js +1 -177
  208. package/lib/codec/Switcheo/carbon/position/query.d.ts +13 -35
  209. package/lib/codec/Switcheo/carbon/position/query.js +1 -101
  210. package/lib/codec/Switcheo/carbon/position/tx.d.ts +4 -4
  211. package/lib/codec/Switcheo/carbon/pricing/event.d.ts +9 -9
  212. package/lib/codec/Switcheo/carbon/pricing/export.d.ts +1 -1
  213. package/lib/codec/Switcheo/carbon/pricing/export.js +2 -1
  214. package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +3 -3
  215. package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +3 -3
  216. package/lib/codec/Switcheo/carbon/pricing/params.d.ts +4 -4
  217. package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +16 -4
  218. package/lib/codec/Switcheo/carbon/pricing/pricing.js +71 -1
  219. package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +31 -0
  220. package/lib/codec/Switcheo/carbon/pricing/proposal.js +148 -0
  221. package/lib/codec/Switcheo/carbon/pricing/query.d.ts +16 -16
  222. package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +18 -18
  223. package/lib/codec/Switcheo/carbon/profile/event.d.ts +3 -3
  224. package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +3 -3
  225. package/lib/codec/Switcheo/carbon/profile/profile.d.ts +3 -3
  226. package/lib/codec/Switcheo/carbon/profile/query.d.ts +8 -8
  227. package/lib/codec/Switcheo/carbon/profile/tx.d.ts +4 -4
  228. package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +4 -4
  229. package/lib/codec/Switcheo/carbon/sequence/query.d.ts +6 -6
  230. package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +4 -4
  231. package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +3 -3
  232. package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +3 -3
  233. package/lib/codec/Switcheo/carbon/subaccount/params.d.ts +4 -4
  234. package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +21 -21
  235. package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +5 -5
  236. package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +10 -10
  237. package/lib/codec/adl/genesis.d.ts +18 -0
  238. package/lib/codec/adl/genesis.js +46 -0
  239. package/lib/codec/adl/query.d.ts +12 -0
  240. package/lib/codec/adl/query.js +20 -0
  241. package/lib/codec/adl/tx.d.ts +12 -0
  242. package/lib/codec/adl/tx.js +20 -0
  243. package/lib/codec/admin/export.d.ts +2 -0
  244. package/lib/codec/admin/export.js +13 -0
  245. package/lib/codec/admin/genesis.d.ts +18 -0
  246. package/lib/codec/admin/genesis.js +46 -0
  247. package/lib/codec/admin/query.d.ts +62 -0
  248. package/lib/codec/admin/query.js +186 -0
  249. package/lib/codec/admin/tx.d.ts +62 -0
  250. package/lib/codec/admin/tx.js +198 -0
  251. package/lib/codec/alliance/alliance/alliance.d.ts +5 -5
  252. package/lib/codec/alliance/alliance/delegations.d.ts +6 -6
  253. package/lib/codec/alliance/alliance/events.d.ts +7 -7
  254. package/lib/codec/alliance/alliance/genesis.d.ts +7 -7
  255. package/lib/codec/alliance/alliance/gov.d.ts +5 -5
  256. package/lib/codec/alliance/alliance/params.d.ts +4 -4
  257. package/lib/codec/alliance/alliance/query.d.ts +31 -31
  258. package/lib/codec/alliance/alliance/redelegations.d.ts +5 -5
  259. package/lib/codec/alliance/alliance/tx.d.ts +18 -18
  260. package/lib/codec/alliance/alliance/unbonding.d.ts +3 -3
  261. package/lib/codec/alliance/alliance.d.ts +65 -0
  262. package/lib/codec/alliance/alliance.js +354 -0
  263. package/lib/codec/alliance/delegations.d.ts +86 -0
  264. package/lib/codec/alliance/delegations.js +489 -0
  265. package/lib/codec/alliance/events.d.ts +61 -0
  266. package/lib/codec/alliance/events.js +403 -0
  267. package/lib/codec/alliance/export.d.ts +8 -0
  268. package/lib/codec/alliance/export.js +64 -0
  269. package/lib/codec/alliance/genesis.d.ts +74 -0
  270. package/lib/codec/alliance/genesis.js +469 -0
  271. package/lib/codec/alliance/gov.d.ts +78 -0
  272. package/lib/codec/alliance/gov.js +380 -0
  273. package/lib/codec/{Switcheo/carbon/coin → alliance}/params.d.ts +16 -12
  274. package/lib/codec/alliance/params.js +182 -0
  275. package/lib/codec/alliance/query.d.ts +333 -0
  276. package/lib/codec/alliance/query.js +1497 -0
  277. package/lib/codec/alliance/tx.d.ts +111 -0
  278. package/lib/codec/alliance/tx.js +495 -0
  279. package/lib/codec/bank/event.d.ts +65 -0
  280. package/lib/codec/bank/event.js +332 -0
  281. package/lib/codec/bank/export.d.ts +2 -0
  282. package/lib/codec/bank/export.js +14 -0
  283. package/lib/codec/bank/genesis.d.ts +18 -0
  284. package/lib/codec/bank/genesis.js +46 -0
  285. package/lib/codec/bank/query.d.ts +77 -0
  286. package/lib/codec/bank/query.js +459 -0
  287. package/lib/codec/book/book.d.ts +57 -0
  288. package/lib/codec/book/book.js +319 -0
  289. package/lib/codec/book/event.d.ts +22 -0
  290. package/lib/codec/book/event.js +113 -0
  291. package/lib/codec/book/export.d.ts +4 -0
  292. package/lib/codec/book/export.js +23 -0
  293. package/lib/codec/book/genesis.d.ts +25 -0
  294. package/lib/codec/book/genesis.js +79 -0
  295. package/lib/codec/book/legacy.d.ts +22 -0
  296. package/lib/codec/book/legacy.js +120 -0
  297. package/lib/codec/book/query.d.ts +141 -0
  298. package/lib/codec/book/query.js +606 -0
  299. package/lib/codec/book/tx.d.ts +12 -0
  300. package/lib/codec/book/tx.js +20 -0
  301. package/lib/codec/broker/amm.d.ts +50 -0
  302. package/lib/codec/broker/amm.js +326 -0
  303. package/lib/codec/broker/candlestick.d.ts +27 -0
  304. package/lib/codec/broker/candlestick.js +211 -0
  305. package/lib/codec/broker/event.d.ts +53 -0
  306. package/lib/codec/broker/event.js +485 -0
  307. package/lib/codec/broker/export.d.ts +7 -0
  308. package/lib/codec/broker/export.js +27 -0
  309. package/lib/codec/broker/genesis.d.ts +25 -0
  310. package/lib/codec/broker/genesis.js +79 -0
  311. package/lib/codec/broker/incoming_liquidations.d.ts +18 -0
  312. package/lib/codec/broker/incoming_liquidations.js +93 -0
  313. package/lib/codec/broker/incoming_pool_swap.d.ts +23 -0
  314. package/lib/codec/broker/incoming_pool_swap.js +136 -0
  315. package/lib/codec/broker/pagination.d.ts +19 -0
  316. package/lib/codec/broker/pagination.js +78 -0
  317. package/lib/codec/broker/query.d.ts +107 -0
  318. package/lib/codec/broker/query.js +597 -0
  319. package/lib/codec/broker/tx.d.ts +53 -0
  320. package/lib/codec/broker/tx.js +176 -0
  321. package/lib/codec/btcx/denom_cross_chain_info.d.ts +21 -0
  322. package/lib/codec/btcx/denom_cross_chain_info.js +98 -0
  323. package/lib/codec/btcx/denom_info.d.ts +24 -0
  324. package/lib/codec/btcx/denom_info.js +140 -0
  325. package/lib/codec/btcx/export.d.ts +4 -0
  326. package/lib/codec/btcx/export.js +19 -0
  327. package/lib/codec/btcx/genesis.d.ts +18 -0
  328. package/lib/codec/btcx/genesis.js +46 -0
  329. package/lib/codec/btcx/query.d.ts +68 -0
  330. package/lib/codec/btcx/query.js +275 -0
  331. package/lib/codec/btcx/tx.d.ts +92 -0
  332. package/lib/codec/btcx/tx.js +436 -0
  333. package/lib/codec/carbon-models.js +1 -5
  334. package/lib/codec/ccm/ccm.d.ts +19 -0
  335. package/lib/codec/ccm/ccm.js +60 -0
  336. package/lib/codec/ccm/export.d.ts +4 -0
  337. package/lib/codec/ccm/export.js +20 -0
  338. package/lib/codec/ccm/genesis.d.ts +83 -0
  339. package/lib/codec/ccm/genesis.js +438 -0
  340. package/lib/codec/ccm/query.d.ts +45 -0
  341. package/lib/codec/ccm/query.js +197 -0
  342. package/lib/codec/ccm/tx.d.ts +97 -0
  343. package/lib/codec/ccm/tx.js +462 -0
  344. package/lib/codec/cdp/asset_params.d.ts +57 -0
  345. package/lib/codec/cdp/asset_params.js +411 -0
  346. package/lib/codec/cdp/cdp_liquidations.d.ts +32 -0
  347. package/lib/codec/cdp/cdp_liquidations.js +288 -0
  348. package/lib/codec/cdp/debt_info.d.ts +23 -0
  349. package/lib/codec/cdp/debt_info.js +158 -0
  350. package/lib/codec/cdp/e_mode_category.d.ts +23 -0
  351. package/lib/codec/cdp/e_mode_category.js +135 -0
  352. package/lib/codec/cdp/event.d.ts +446 -0
  353. package/lib/codec/cdp/event.js +2913 -0
  354. package/lib/codec/cdp/export.d.ts +13 -0
  355. package/lib/codec/cdp/export.js +210 -0
  356. package/lib/codec/cdp/genesis.d.ts +134 -0
  357. package/lib/codec/cdp/genesis.js +825 -0
  358. package/lib/codec/cdp/params.d.ts +68 -0
  359. package/lib/codec/cdp/params.js +210 -0
  360. package/lib/codec/cdp/query.d.ts +644 -0
  361. package/lib/codec/cdp/query.js +3099 -0
  362. package/lib/codec/cdp/rate_strategy_params.d.ts +26 -0
  363. package/lib/codec/cdp/rate_strategy_params.js +180 -0
  364. package/lib/codec/cdp/reward_scheme.d.ts +71 -0
  365. package/lib/codec/cdp/reward_scheme.js +550 -0
  366. package/lib/codec/cdp/stablecoin_debt_info.d.ts +22 -0
  367. package/lib/codec/cdp/stablecoin_debt_info.js +144 -0
  368. package/lib/codec/cdp/stablecoin_interest_info.d.ts +19 -0
  369. package/lib/codec/cdp/stablecoin_interest_info.js +99 -0
  370. package/lib/codec/cdp/tx.d.ts +1026 -0
  371. package/lib/codec/cdp/tx.js +5191 -0
  372. package/lib/codec/coin/bridge.d.ts +24 -0
  373. package/lib/codec/coin/bridge.js +151 -0
  374. package/lib/codec/coin/event.d.ts +143 -0
  375. package/lib/codec/coin/event.js +775 -0
  376. package/lib/codec/coin/export.d.ts +8 -0
  377. package/lib/codec/coin/export.js +107 -0
  378. package/lib/codec/coin/genesis.d.ts +42 -0
  379. package/lib/codec/coin/genesis.js +207 -0
  380. package/lib/codec/coin/group.d.ts +50 -0
  381. package/lib/codec/coin/group.js +230 -0
  382. package/lib/codec/coin/proposal.d.ts +21 -0
  383. package/lib/codec/coin/proposal.js +91 -0
  384. package/lib/codec/coin/query.d.ts +310 -0
  385. package/lib/codec/coin/query.js +1439 -0
  386. package/lib/codec/coin/token.d.ts +104 -0
  387. package/lib/codec/coin/token.js +700 -0
  388. package/lib/codec/coin/tx.d.ts +586 -0
  389. package/lib/codec/coin/tx.js +3131 -0
  390. package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +18 -0
  391. package/lib/codec/cosmos/app/module/v1alpha1/module.js +46 -0
  392. package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +4 -4
  393. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +5 -5
  394. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
  395. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
  396. package/lib/codec/cosmos/auth/module/v1/module.d.ts +4 -4
  397. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +6 -6
  398. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
  399. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +22 -22
  400. package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +4 -4
  401. package/lib/codec/cosmos/authz/module/v1/module.d.ts +3 -3
  402. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
  403. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
  404. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
  405. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
  406. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
  407. package/lib/codec/cosmos/autocli/v1/options.d.ts +9 -9
  408. package/lib/codec/cosmos/autocli/v1/query.d.ts +5 -5
  409. package/lib/codec/cosmos/bank/module/v1/module.d.ts +3 -3
  410. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
  411. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
  412. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
  413. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +29 -29
  414. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +10 -10
  415. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +13 -13
  416. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +31 -0
  417. package/lib/codec/cosmos/base/kv/v1beta1/kv.js +154 -0
  418. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +6 -6
  419. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
  420. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
  421. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
  422. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +160 -0
  423. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +684 -0
  424. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +54 -0
  425. package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +273 -0
  426. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +62 -0
  427. package/lib/codec/cosmos/base/store/v1beta1/listening.js +341 -0
  428. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
  429. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
  430. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
  431. package/lib/codec/cosmos/capability/module/v1/module.d.ts +23 -0
  432. package/lib/codec/cosmos/capability/module/v1/module.js +59 -0
  433. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +51 -0
  434. package/lib/codec/cosmos/capability/v1beta1/capability.js +168 -0
  435. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +40 -0
  436. package/lib/codec/cosmos/capability/v1beta1/genesis.js +146 -0
  437. package/lib/codec/cosmos/circuit/module/v1/module.d.ts +3 -3
  438. package/lib/codec/cosmos/circuit/v1/query.d.ts +8 -8
  439. package/lib/codec/cosmos/circuit/v1/tx.d.ts +8 -8
  440. package/lib/codec/cosmos/circuit/v1/types.d.ts +5 -5
  441. package/lib/codec/cosmos/consensus/module/v1/module.d.ts +3 -3
  442. package/lib/codec/cosmos/consensus/v1/query.d.ts +4 -4
  443. package/lib/codec/cosmos/consensus/v1/tx.d.ts +4 -4
  444. package/lib/codec/cosmos/crisis/module/v1/module.d.ts +3 -3
  445. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
  446. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +6 -6
  447. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
  448. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
  449. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
  450. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
  451. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
  452. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
  453. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
  454. package/lib/codec/cosmos/distribution/module/v1/module.d.ts +3 -3
  455. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
  456. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
  457. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +24 -24
  458. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +16 -16
  459. package/lib/codec/cosmos/evidence/module/v1/module.d.ts +3 -3
  460. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
  461. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
  462. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
  463. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
  464. package/lib/codec/cosmos/feegrant/module/v1/module.d.ts +3 -3
  465. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
  466. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
  467. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
  468. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +8 -8
  469. package/lib/codec/cosmos/genutil/module/v1/module.d.ts +3 -3
  470. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
  471. package/lib/codec/cosmos/gov/module/v1/module.d.ts +3 -3
  472. package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
  473. package/lib/codec/cosmos/gov/v1/gov.d.ts +11 -11
  474. package/lib/codec/cosmos/gov/v1/query.d.ts +20 -20
  475. package/lib/codec/cosmos/gov/v1/query.js +2 -2
  476. package/lib/codec/cosmos/gov/v1/tx.d.ts +16 -16
  477. package/lib/codec/cosmos/gov/v1/tx.js +2 -2
  478. package/lib/codec/cosmos/gov/v1beta1/export.d.ts +3 -0
  479. package/lib/codec/cosmos/gov/v1beta1/export.js +45 -0
  480. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  481. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
  482. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
  483. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  484. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
  485. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  486. package/lib/codec/cosmos/group/module/v1/module.d.ts +3 -3
  487. package/lib/codec/cosmos/group/v1/events.d.ts +13 -13
  488. package/lib/codec/cosmos/group/v1/events.js +4 -4
  489. package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
  490. package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
  491. package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
  492. package/lib/codec/cosmos/group/v1/tx.js +4 -4
  493. package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
  494. package/lib/codec/cosmos/ics23/v1/proofs.d.ts +15 -15
  495. package/lib/codec/cosmos/mint/module/v1/module.d.ts +3 -3
  496. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
  497. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
  498. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
  499. package/lib/codec/cosmos/mint/v1beta1/tx.d.ts +4 -4
  500. package/lib/codec/cosmos/nft/module/v1/module.d.ts +3 -3
  501. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
  502. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
  503. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
  504. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
  505. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
  506. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
  507. package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +9 -9
  508. package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
  509. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
  510. package/lib/codec/cosmos/params/module/v1/module.d.ts +3 -3
  511. package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
  512. package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
  513. package/lib/codec/cosmos/reflection/v1/reflection.d.ts +4 -4
  514. package/lib/codec/cosmos/slashing/module/v1/module.d.ts +3 -3
  515. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
  516. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
  517. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
  518. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +6 -6
  519. package/lib/codec/cosmos/staking/module/v1/module.d.ts +3 -3
  520. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
  521. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
  522. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
  523. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +23 -23
  524. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +16 -16
  525. package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +4 -4
  526. package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +9 -9
  527. package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +6 -6
  528. package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +5 -5
  529. package/lib/codec/cosmos/store/v1beta1/listening.d.ts +4 -4
  530. package/lib/codec/cosmos/tx/config/v1/config.d.ts +3 -3
  531. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
  532. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +20 -20
  533. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
  534. package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
  535. package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +3 -3
  536. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
  537. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
  538. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
  539. package/lib/codec/cosmos/vesting/module/v1/module.d.ts +3 -3
  540. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
  541. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
  542. package/lib/codec/cosmos-models.js +1 -5
  543. package/lib/codec/crisis/genesis.d.ts +18 -0
  544. package/lib/codec/crisis/genesis.js +46 -0
  545. package/lib/codec/crisis/query.d.ts +43 -0
  546. package/lib/codec/crisis/query.js +103 -0
  547. package/lib/codec/crisis/tx.d.ts +12 -0
  548. package/lib/codec/crisis/tx.js +20 -0
  549. package/lib/codec/erc20/erc20.d.ts +41 -0
  550. package/lib/codec/erc20/erc20.js +144 -0
  551. package/lib/codec/erc20/events.d.ts +76 -0
  552. package/lib/codec/erc20/events.js +330 -0
  553. package/lib/codec/erc20/export.d.ts +5 -0
  554. package/lib/codec/erc20/export.js +37 -0
  555. package/lib/codec/erc20/genesis.d.ts +40 -0
  556. package/lib/codec/erc20/genesis.js +139 -0
  557. package/lib/codec/erc20/query.d.ts +117 -0
  558. package/lib/codec/erc20/query.js +333 -0
  559. package/lib/codec/erc20/tx.d.ts +232 -0
  560. package/lib/codec/erc20/tx.js +765 -0
  561. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
  562. package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
  563. package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
  564. package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
  565. package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
  566. package/lib/codec/ethermint/evm/v1/tx.d.ts +10 -10
  567. package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
  568. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
  569. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
  570. package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
  571. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +4 -4
  572. package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
  573. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
  574. package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
  575. package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
  576. package/lib/codec/ethermint-models.js +1 -5
  577. package/lib/codec/evmbank/export.d.ts +2 -0
  578. package/lib/codec/evmbank/export.js +8 -0
  579. package/lib/codec/evmbank/genesis.d.ts +32 -0
  580. package/lib/codec/evmbank/genesis.js +152 -0
  581. package/lib/codec/evmbank/query.d.ts +40 -0
  582. package/lib/codec/evmbank/query.js +116 -0
  583. package/lib/codec/evmcontract/genesis.d.ts +18 -0
  584. package/lib/codec/evmcontract/genesis.js +46 -0
  585. package/lib/codec/evmcontract/query.d.ts +12 -0
  586. package/lib/codec/evmcontract/query.js +20 -0
  587. package/lib/codec/evmcontract/tx.d.ts +12 -0
  588. package/lib/codec/evmcontract/tx.js +20 -0
  589. package/lib/codec/evmmerge/address.d.ts +19 -0
  590. package/lib/codec/evmmerge/address.js +75 -0
  591. package/lib/codec/evmmerge/event.d.ts +20 -0
  592. package/lib/codec/evmmerge/event.js +90 -0
  593. package/lib/codec/evmmerge/export.d.ts +6 -0
  594. package/lib/codec/evmmerge/export.js +20 -0
  595. package/lib/codec/evmmerge/genesis.d.ts +48 -0
  596. package/lib/codec/evmmerge/genesis.js +216 -0
  597. package/lib/codec/evmmerge/offchain.d.ts +22 -0
  598. package/lib/codec/evmmerge/offchain.js +105 -0
  599. package/lib/codec/evmmerge/query.d.ts +75 -0
  600. package/lib/codec/evmmerge/query.js +254 -0
  601. package/lib/codec/evmmerge/tx.d.ts +45 -0
  602. package/lib/codec/evmmerge/tx.js +128 -0
  603. package/lib/codec/fee/event.d.ts +20 -0
  604. package/lib/codec/fee/event.js +83 -0
  605. package/lib/codec/fee/export.d.ts +5 -0
  606. package/lib/codec/fee/export.js +32 -0
  607. package/lib/codec/fee/fee.d.ts +42 -0
  608. package/lib/codec/fee/fee.js +183 -0
  609. package/lib/codec/fee/genesis.d.ts +23 -0
  610. package/lib/codec/fee/genesis.js +79 -0
  611. package/lib/codec/fee/proposal.d.ts +57 -0
  612. package/lib/codec/fee/proposal.js +311 -0
  613. package/lib/codec/fee/query.d.ts +114 -0
  614. package/lib/codec/fee/query.js +470 -0
  615. package/lib/codec/fee/tx.d.ts +108 -0
  616. package/lib/codec/fee/tx.js +415 -0
  617. package/lib/codec/google/protobuf/any.d.ts +3 -3
  618. package/lib/codec/google/protobuf/descriptor.d.ts +112 -67
  619. package/lib/codec/google/protobuf/descriptor.js +207 -46
  620. package/lib/codec/google/protobuf/duration.d.ts +3 -3
  621. package/lib/codec/google/protobuf/empty.d.ts +3 -3
  622. package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
  623. package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
  624. package/lib/codec/headersync/consensus_peers.d.ts +70 -0
  625. package/lib/codec/headersync/consensus_peers.js +383 -0
  626. package/lib/codec/headersync/export.d.ts +4 -0
  627. package/lib/codec/headersync/export.js +24 -0
  628. package/lib/codec/headersync/genesis.d.ts +79 -0
  629. package/lib/codec/headersync/genesis.js +419 -0
  630. package/lib/codec/headersync/query.d.ts +64 -0
  631. package/lib/codec/headersync/query.js +231 -0
  632. package/lib/codec/headersync/tx.d.ts +64 -0
  633. package/lib/codec/headersync/tx.js +215 -0
  634. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
  635. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
  636. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
  637. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
  638. package/lib/codec/ibc/applications/fee/v1/query.d.ts +22 -22
  639. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
  640. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
  641. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +6 -6
  642. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +8 -8
  643. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -2
  644. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
  645. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
  646. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
  647. package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +4 -4
  648. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
  649. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +76 -0
  650. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +424 -0
  651. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
  652. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
  653. package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +4 -4
  654. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
  655. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +14 -14
  656. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
  657. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +6 -6
  658. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
  659. package/lib/codec/ibc/core/channel/v1/channel.d.ts +11 -11
  660. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
  661. package/lib/codec/ibc/core/channel/v1/query.d.ts +36 -36
  662. package/lib/codec/ibc/core/channel/v1/tx.d.ts +40 -40
  663. package/lib/codec/ibc/core/channel/v1/tx.js +4 -4
  664. package/lib/codec/ibc/core/channel/v1/upgrade.d.ts +5 -5
  665. package/lib/codec/ibc/core/channel/v1/upgrade.js +2 -2
  666. package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
  667. package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
  668. package/lib/codec/ibc/core/client/v1/query.d.ts +20 -20
  669. package/lib/codec/ibc/core/client/v1/tx.d.ts +16 -16
  670. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
  671. package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
  672. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
  673. package/lib/codec/ibc/core/connection/v1/query.d.ts +14 -14
  674. package/lib/codec/ibc/core/connection/v1/tx.d.ts +12 -12
  675. package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
  676. package/lib/codec/ibc/lightclients/localhost/v1/export.d.ts +1 -0
  677. package/lib/codec/ibc/lightclients/localhost/v1/export.js +5 -0
  678. package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +26 -0
  679. package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +76 -0
  680. package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +3 -3
  681. package/lib/codec/ibc/lightclients/solomachine/v1/export.d.ts +1 -0
  682. package/lib/codec/ibc/lightclients/solomachine/v1/export.js +23 -0
  683. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +298 -0
  684. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +1356 -0
  685. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
  686. package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +10 -10
  687. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
  688. package/lib/codec/ibc/lightclients/wasm/v1/genesis.d.ts +4 -4
  689. package/lib/codec/ibc/lightclients/wasm/v1/query.d.ts +6 -6
  690. package/lib/codec/ibc/lightclients/wasm/v1/tx.d.ts +8 -8
  691. package/lib/codec/ibc/lightclients/wasm/v1/wasm.d.ts +6 -6
  692. package/lib/codec/ibc-models.js +1 -5
  693. package/lib/codec/index.d.ts +3 -7
  694. package/lib/codec/index.js +51 -152
  695. package/lib/codec/inflation/export.d.ts +2 -0
  696. package/lib/codec/inflation/export.js +8 -0
  697. package/lib/codec/inflation/genesis.d.ts +25 -0
  698. package/lib/codec/inflation/genesis.js +79 -0
  699. package/lib/codec/inflation/inflation.d.ts +26 -0
  700. package/lib/codec/inflation/inflation.js +165 -0
  701. package/lib/codec/inflation/query.d.ts +41 -0
  702. package/lib/codec/inflation/query.js +109 -0
  703. package/lib/codec/inflation/tx.d.ts +12 -0
  704. package/lib/codec/inflation/tx.js +20 -0
  705. package/lib/codec/insurance/event.d.ts +24 -0
  706. package/lib/codec/insurance/event.js +46 -0
  707. package/lib/codec/insurance/export.d.ts +4 -0
  708. package/lib/codec/insurance/export.js +14 -0
  709. package/lib/codec/insurance/fund.d.ts +29 -0
  710. package/lib/codec/insurance/fund.js +148 -0
  711. package/lib/codec/insurance/genesis.d.ts +18 -0
  712. package/lib/codec/insurance/genesis.js +46 -0
  713. package/lib/codec/insurance/query.d.ts +41 -0
  714. package/lib/codec/insurance/query.js +108 -0
  715. package/lib/codec/insurance/tx.d.ts +44 -0
  716. package/lib/codec/insurance/tx.js +144 -0
  717. package/lib/codec/leverage/event.d.ts +21 -0
  718. package/lib/codec/leverage/event.js +100 -0
  719. package/lib/codec/leverage/export.d.ts +4 -0
  720. package/lib/codec/leverage/export.js +16 -0
  721. package/lib/codec/leverage/genesis.d.ts +24 -0
  722. package/lib/codec/leverage/genesis.js +64 -0
  723. package/lib/codec/leverage/leverage.d.ts +30 -0
  724. package/lib/codec/leverage/leverage.js +134 -0
  725. package/lib/codec/leverage/query.d.ts +70 -0
  726. package/lib/codec/leverage/query.js +234 -0
  727. package/lib/codec/leverage/tx.d.ts +43 -0
  728. package/lib/codec/leverage/tx.js +127 -0
  729. package/lib/codec/liquidation/export.d.ts +5 -0
  730. package/lib/codec/liquidation/export.js +17 -0
  731. package/lib/codec/liquidation/genesis.d.ts +37 -0
  732. package/lib/codec/liquidation/genesis.js +136 -0
  733. package/lib/codec/liquidation/liquidation.d.ts +17 -0
  734. package/lib/codec/liquidation/liquidation.js +46 -0
  735. package/lib/codec/liquidation/outstanding_position.d.ts +33 -0
  736. package/lib/codec/liquidation/outstanding_position.js +203 -0
  737. package/lib/codec/liquidation/query.d.ts +77 -0
  738. package/lib/codec/liquidation/query.js +341 -0
  739. package/lib/codec/liquidation/quote_changes.d.ts +22 -0
  740. package/lib/codec/liquidation/quote_changes.js +95 -0
  741. package/lib/codec/liquidation/tx.d.ts +12 -0
  742. package/lib/codec/liquidation/tx.js +20 -0
  743. package/lib/codec/liquiditypool/event.d.ts +182 -0
  744. package/lib/codec/liquiditypool/event.js +1268 -0
  745. package/lib/codec/liquiditypool/export.d.ts +6 -0
  746. package/lib/codec/liquiditypool/export.js +125 -0
  747. package/lib/codec/liquiditypool/genesis.d.ts +32 -0
  748. package/lib/codec/liquiditypool/genesis.js +228 -0
  749. package/lib/codec/liquiditypool/liquiditypool.d.ts +138 -0
  750. package/lib/codec/liquiditypool/liquiditypool.js +943 -0
  751. package/lib/codec/liquiditypool/proposal.d.ts +117 -0
  752. package/lib/codec/liquiditypool/proposal.js +697 -0
  753. package/lib/codec/liquiditypool/query.d.ts +370 -0
  754. package/lib/codec/liquiditypool/query.js +1738 -0
  755. package/lib/codec/liquiditypool/reward.d.ts +196 -0
  756. package/lib/codec/liquiditypool/reward.js +1204 -0
  757. package/lib/codec/liquiditypool/tx.d.ts +453 -0
  758. package/lib/codec/liquiditypool/tx.js +2423 -0
  759. package/lib/codec/lockproxy/event.d.ts +46 -0
  760. package/lib/codec/lockproxy/event.js +348 -0
  761. package/lib/codec/lockproxy/export.d.ts +5 -0
  762. package/lib/codec/lockproxy/export.js +28 -0
  763. package/lib/codec/lockproxy/genesis.d.ts +68 -0
  764. package/lib/codec/lockproxy/genesis.js +355 -0
  765. package/lib/codec/lockproxy/lockproxy.d.ts +22 -0
  766. package/lib/codec/lockproxy/lockproxy.js +147 -0
  767. package/lib/codec/lockproxy/query.d.ts +67 -0
  768. package/lib/codec/lockproxy/query.js +274 -0
  769. package/lib/codec/lockproxy/tx.d.ts +147 -0
  770. package/lib/codec/lockproxy/tx.js +808 -0
  771. package/lib/codec/market/event.d.ts +20 -0
  772. package/lib/codec/market/event.js +76 -0
  773. package/lib/codec/market/export.d.ts +6 -0
  774. package/lib/codec/market/export.js +61 -0
  775. package/lib/codec/market/fee.d.ts +123 -0
  776. package/lib/codec/market/fee.js +334 -0
  777. package/lib/codec/market/genesis.d.ts +31 -0
  778. package/lib/codec/market/genesis.js +147 -0
  779. package/lib/codec/market/legacy.d.ts +62 -0
  780. package/lib/codec/market/legacy.js +630 -0
  781. package/lib/codec/market/market.d.ts +131 -0
  782. package/lib/codec/market/market.js +1245 -0
  783. package/lib/codec/market/proposal.d.ts +46 -0
  784. package/lib/codec/market/proposal.js +245 -0
  785. package/lib/codec/market/query.d.ts +233 -0
  786. package/lib/codec/market/query.js +938 -0
  787. package/lib/codec/market/tx.d.ts +250 -0
  788. package/lib/codec/market/tx.js +1265 -0
  789. package/lib/codec/marketstats/export.d.ts +3 -0
  790. package/lib/codec/marketstats/export.js +12 -0
  791. package/lib/codec/marketstats/genesis.d.ts +21 -0
  792. package/lib/codec/marketstats/genesis.js +63 -0
  793. package/lib/codec/marketstats/marketstats.d.ts +31 -0
  794. package/lib/codec/marketstats/marketstats.js +258 -0
  795. package/lib/codec/marketstats/params.d.ts +18 -0
  796. package/lib/codec/marketstats/params.js +46 -0
  797. package/lib/codec/marketstats/query.d.ts +66 -0
  798. package/lib/codec/marketstats/query.js +195 -0
  799. package/lib/codec/marketstats/tx.d.ts +12 -0
  800. package/lib/codec/marketstats/tx.js +20 -0
  801. package/lib/codec/misc/block.d.ts +21 -0
  802. package/lib/codec/misc/block.js +105 -0
  803. package/lib/codec/misc/export.d.ts +6 -0
  804. package/lib/codec/misc/export.js +29 -0
  805. package/lib/codec/misc/message.d.ts +22 -0
  806. package/lib/codec/misc/message.js +128 -0
  807. package/lib/codec/misc/message_type.d.ts +18 -0
  808. package/lib/codec/misc/message_type.js +60 -0
  809. package/lib/codec/misc/query.d.ts +192 -0
  810. package/lib/codec/misc/query.js +884 -0
  811. package/lib/codec/misc/trade.d.ts +28 -0
  812. package/lib/codec/misc/trade.js +224 -0
  813. package/lib/codec/misc/transaction.d.ts +45 -0
  814. package/lib/codec/misc/transaction.js +369 -0
  815. package/lib/codec/oracle/event.d.ts +37 -0
  816. package/lib/codec/oracle/event.js +228 -0
  817. package/lib/codec/oracle/export.d.ts +6 -0
  818. package/lib/codec/oracle/export.js +58 -0
  819. package/lib/codec/oracle/genesis.d.ts +28 -0
  820. package/lib/codec/oracle/genesis.js +141 -0
  821. package/lib/codec/oracle/oracle.d.ts +94 -0
  822. package/lib/codec/oracle/oracle.js +650 -0
  823. package/lib/codec/oracle/proposal.d.ts +21 -0
  824. package/lib/codec/oracle/proposal.js +91 -0
  825. package/lib/codec/oracle/query.d.ts +336 -0
  826. package/lib/codec/oracle/query.js +1551 -0
  827. package/lib/codec/oracle/slashing.d.ts +33 -0
  828. package/lib/codec/oracle/slashing.js +191 -0
  829. package/lib/codec/oracle/tx.d.ts +169 -0
  830. package/lib/codec/oracle/tx.js +877 -0
  831. package/lib/codec/oraclesvc/query.js +1 -1
  832. package/lib/codec/order/event.d.ts +23 -0
  833. package/lib/codec/order/event.js +146 -0
  834. package/lib/codec/order/export.d.ts +5 -0
  835. package/lib/codec/order/export.js +39 -0
  836. package/lib/codec/order/genesis.d.ts +62 -0
  837. package/lib/codec/order/genesis.js +322 -0
  838. package/lib/codec/order/order.d.ts +113 -0
  839. package/lib/codec/order/order.js +875 -0
  840. package/lib/codec/order/query.d.ts +143 -0
  841. package/lib/codec/order/query.js +596 -0
  842. package/lib/codec/order/tx.d.ts +146 -0
  843. package/lib/codec/order/tx.js +715 -0
  844. package/lib/codec/perpsliquidity/event.d.ts +115 -0
  845. package/lib/codec/perpsliquidity/event.js +657 -0
  846. package/lib/codec/perpsliquidity/genesis.d.ts +36 -0
  847. package/lib/codec/perpsliquidity/genesis.js +163 -0
  848. package/lib/codec/perpsliquidity/market.d.ts +84 -0
  849. package/lib/codec/perpsliquidity/market.js +431 -0
  850. package/lib/codec/perpsliquidity/params.d.ts +27 -0
  851. package/lib/codec/perpsliquidity/params.js +129 -0
  852. package/lib/codec/perpsliquidity/pool.d.ts +119 -0
  853. package/lib/codec/perpsliquidity/pool.js +774 -0
  854. package/lib/codec/perpsliquidity/query.d.ts +246 -0
  855. package/lib/codec/perpsliquidity/query.js +1125 -0
  856. package/lib/codec/perpsliquidity/tx.d.ts +203 -0
  857. package/lib/codec/perpsliquidity/tx.js +973 -0
  858. package/lib/codec/perpspool/event.d.ts +95 -0
  859. package/lib/codec/perpspool/event.js +561 -0
  860. package/lib/codec/perpspool/export.d.ts +7 -0
  861. package/lib/codec/perpspool/export.js +68 -0
  862. package/lib/codec/perpspool/genesis.d.ts +61 -0
  863. package/lib/codec/perpspool/genesis.js +343 -0
  864. package/lib/codec/perpspool/market.d.ts +96 -0
  865. package/lib/codec/perpspool/market.js +493 -0
  866. package/lib/codec/perpspool/params.d.ts +30 -0
  867. package/lib/codec/perpspool/params.js +189 -0
  868. package/lib/codec/perpspool/pool.d.ts +103 -0
  869. package/lib/codec/perpspool/pool.js +638 -0
  870. package/lib/codec/perpspool/query.d.ts +247 -0
  871. package/lib/codec/perpspool/query.js +1141 -0
  872. package/lib/codec/perpspool/tx.d.ts +229 -0
  873. package/lib/codec/perpspool/tx.js +1144 -0
  874. package/lib/codec/polynetwork-models.js +1 -5
  875. package/lib/codec/position/event.d.ts +26 -0
  876. package/lib/codec/position/event.js +180 -0
  877. package/lib/codec/position/export.d.ts +4 -0
  878. package/lib/codec/position/export.js +20 -0
  879. package/lib/codec/position/genesis.d.ts +24 -0
  880. package/lib/codec/position/genesis.js +64 -0
  881. package/lib/codec/position/position.d.ts +74 -0
  882. package/lib/codec/position/position.js +601 -0
  883. package/lib/codec/position/query.d.ts +92 -0
  884. package/lib/codec/position/query.js +400 -0
  885. package/lib/codec/position/tx.d.ts +42 -0
  886. package/lib/codec/position/tx.js +127 -0
  887. package/lib/codec/pricing/event.d.ts +74 -0
  888. package/lib/codec/pricing/event.js +361 -0
  889. package/lib/codec/pricing/export.d.ts +6 -0
  890. package/lib/codec/pricing/export.js +45 -0
  891. package/lib/codec/pricing/genesis.d.ts +26 -0
  892. package/lib/codec/pricing/genesis.js +95 -0
  893. package/lib/codec/pricing/legacy.d.ts +22 -0
  894. package/lib/codec/pricing/legacy.js +93 -0
  895. package/lib/codec/pricing/pricing.d.ts +60 -0
  896. package/lib/codec/pricing/pricing.js +456 -0
  897. package/lib/codec/pricing/proposal.d.ts +31 -0
  898. package/lib/codec/pricing/proposal.js +148 -0
  899. package/lib/codec/pricing/query.d.ts +183 -0
  900. package/lib/codec/pricing/query.js +759 -0
  901. package/lib/codec/pricing/tx.d.ts +131 -0
  902. package/lib/codec/pricing/tx.js +529 -0
  903. package/lib/codec/profile/event.d.ts +20 -0
  904. package/lib/codec/profile/event.js +78 -0
  905. package/lib/codec/profile/export.d.ts +4 -0
  906. package/lib/codec/profile/export.js +17 -0
  907. package/lib/codec/profile/genesis.d.ts +24 -0
  908. package/lib/codec/profile/genesis.js +64 -0
  909. package/lib/codec/profile/profile.d.ts +20 -0
  910. package/lib/codec/profile/profile.js +83 -0
  911. package/lib/codec/profile/query.d.ts +92 -0
  912. package/lib/codec/profile/query.js +360 -0
  913. package/lib/codec/profile/tx.d.ts +43 -0
  914. package/lib/codec/profile/tx.js +127 -0
  915. package/lib/codec/proofs.d.ts +315 -0
  916. package/lib/codec/proofs.js +1304 -0
  917. package/lib/codec/query/pagination.d.ts +29 -0
  918. package/lib/codec/query/pagination.js +126 -0
  919. package/lib/codec/sequence/export.d.ts +3 -0
  920. package/lib/codec/sequence/export.js +13 -0
  921. package/lib/codec/sequence/genesis.d.ts +30 -0
  922. package/lib/codec/sequence/genesis.js +122 -0
  923. package/lib/codec/sequence/query.d.ts +63 -0
  924. package/lib/codec/sequence/query.js +208 -0
  925. package/lib/codec/sequence/tx.d.ts +41 -0
  926. package/lib/codec/sequence/tx.js +148 -0
  927. package/lib/codec/subaccount/export.d.ts +4 -0
  928. package/lib/codec/subaccount/export.js +35 -0
  929. package/lib/codec/subaccount/genesis.d.ts +28 -0
  930. package/lib/codec/subaccount/genesis.js +110 -0
  931. package/lib/codec/subaccount/legacy.d.ts +19 -0
  932. package/lib/codec/subaccount/legacy.js +72 -0
  933. package/lib/codec/subaccount/query.d.ts +229 -0
  934. package/lib/codec/subaccount/query.js +1026 -0
  935. package/lib/codec/subaccount/subaccount.d.ts +57 -0
  936. package/lib/codec/subaccount/subaccount.js +349 -0
  937. package/lib/codec/subaccount/tx.d.ts +92 -0
  938. package/lib/codec/subaccount/tx.js +395 -0
  939. package/lib/codec/tendermint/abci/types.d.ts +49 -49
  940. package/lib/codec/tendermint/abci/types.js +4 -4
  941. package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
  942. package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
  943. package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
  944. package/lib/codec/tendermint/oracle/types.d.ts +8 -8
  945. package/lib/codec/tendermint/p2p/types.d.ts +6 -6
  946. package/lib/codec/tendermint/types/block.d.ts +3 -3
  947. package/lib/codec/tendermint/types/evidence.d.ts +6 -6
  948. package/lib/codec/tendermint/types/params.d.ts +9 -9
  949. package/lib/codec/tendermint/types/types.d.ts +17 -17
  950. package/lib/codec/tendermint/types/types.js +4 -4
  951. package/lib/codec/tendermint/types/validator.d.ts +5 -5
  952. package/lib/codec/tendermint/version/types.d.ts +4 -4
  953. package/lib/constant/address.d.ts +1 -1
  954. package/lib/constant/amino.d.ts +0 -0
  955. package/lib/constant/amino.js +1 -0
  956. package/lib/constant/chainConfig.d.ts +26 -0
  957. package/lib/constant/chainConfig.js +154 -0
  958. package/lib/constant/eip6963Provider.d.ts +1 -1
  959. package/lib/constant/generic.d.ts +1 -1
  960. package/lib/constant/generic.js +1 -1
  961. package/lib/constant/ibc.d.ts +3 -3
  962. package/lib/constant/ibc.js +1 -5
  963. package/lib/constant/index.js +1 -5
  964. package/lib/constant/modules.d.ts +1 -1
  965. package/lib/constant/node.d.ts +1 -1
  966. package/lib/constant/signless.d.ts +2 -0
  967. package/lib/constant/signless.js +5 -0
  968. package/lib/constant/web3Config.js +4 -4
  969. package/lib/eth/index.js +1 -5
  970. package/lib/hydrogen/index.js +1 -5
  971. package/lib/hydrogen/transfer.d.ts +2 -2
  972. package/lib/index.js +1 -5
  973. package/lib/insights/common.d.ts +1 -1
  974. package/lib/insights/index.js +1 -5
  975. package/lib/insights/position.d.ts +1 -1
  976. package/lib/modules/alliance.js +1 -1
  977. package/lib/modules/cdp.js +46 -46
  978. package/lib/modules/coin.d.ts +0 -6
  979. package/lib/modules/coin.js +0 -18
  980. package/lib/modules/cosmwasm.js +2 -2
  981. package/lib/modules/evm.d.ts +1 -1
  982. package/lib/modules/evm.js +6 -6
  983. package/lib/modules/feemarket.d.ts +20 -0
  984. package/lib/modules/feemarket.js +45 -0
  985. package/lib/modules/gov.js +1 -1
  986. package/lib/modules/index.js +1 -5
  987. package/lib/modules/leverage.d.ts +0 -4
  988. package/lib/modules/leverage.js +0 -13
  989. package/lib/modules/liquiditypool.js +1 -1
  990. package/lib/modules/order.js +1 -1
  991. package/lib/modules/perpsliquidity.d.ts +49 -0
  992. package/lib/modules/perpsliquidity.js +118 -0
  993. package/lib/modules/signless.d.ts +24 -0
  994. package/lib/modules/signless.js +108 -0
  995. package/lib/modules/vault.d.ts +56 -0
  996. package/lib/modules/vault.js +128 -0
  997. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.d.ts +29 -0
  998. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +178 -0
  999. package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.d.ts +13 -0
  1000. package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.js +81 -0
  1001. package/lib/provider/account/EthLedgerAccount/index.d.ts +2 -0
  1002. package/lib/provider/account/EthLedgerAccount/index.js +14 -0
  1003. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  1004. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +1 -5
  1005. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  1006. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
  1007. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +4 -8
  1008. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  1009. package/lib/provider/account/NeoLedgerAccount/index.js +1 -5
  1010. package/lib/provider/account/index.js +1 -5
  1011. package/lib/provider/amino/types/admin.js +28 -32
  1012. package/lib/provider/amino/types/bank.js +2 -6
  1013. package/lib/provider/amino/types/bridge.js +3 -7
  1014. package/lib/provider/amino/types/broker.js +2 -6
  1015. package/lib/provider/amino/types/cdp.js +23 -27
  1016. package/lib/provider/amino/types/coin.js +5 -15
  1017. package/lib/provider/amino/types/erc20.js +3 -7
  1018. package/lib/provider/amino/types/evm.js +2 -6
  1019. package/lib/provider/amino/types/evmmerge.js +2 -6
  1020. package/lib/provider/amino/types/feemarket.js +2 -6
  1021. package/lib/provider/amino/types/gov.js +5 -9
  1022. package/lib/provider/amino/types/grant.js +9 -13
  1023. package/lib/provider/amino/types/group.js +4 -8
  1024. package/lib/provider/amino/types/ibc.js +2 -6
  1025. package/lib/provider/amino/types/leverage.js +2 -12
  1026. package/lib/provider/amino/types/liquidityPool.js +8 -12
  1027. package/lib/provider/amino/types/market.js +7 -11
  1028. package/lib/provider/amino/types/order.js +5 -9
  1029. package/lib/provider/amino/types/otc.js +4 -8
  1030. package/lib/provider/amino/types/perpsliquidity.d.ts +4 -0
  1031. package/lib/provider/amino/types/perpsliquidity.js +73 -0
  1032. package/lib/provider/amino/types/perpspool.js +11 -15
  1033. package/lib/provider/amino/types/position.js +2 -6
  1034. package/lib/provider/amino/types/profile.js +2 -6
  1035. package/lib/provider/amino/types/signless.d.ts +12 -0
  1036. package/lib/provider/amino/types/signless.js +193 -0
  1037. package/lib/provider/amino/types/staking.js +5 -9
  1038. package/lib/provider/amino/types/subaccount.js +4 -8
  1039. package/lib/provider/amino/utils.d.ts +2 -2
  1040. package/lib/provider/amino/utils.js +13 -13
  1041. package/lib/provider/keplr/KeplrAccount.js +7 -7
  1042. package/lib/provider/leap/LeapAccount.js +7 -7
  1043. package/lib/provider/ledger/CarbonEVMLedger/CarbonEVMLedger.d.ts +27 -0
  1044. package/lib/provider/ledger/CarbonEVMLedger/CarbonEVMLedger.js +154 -0
  1045. package/lib/provider/ledger/CarbonEVMLedger/index.d.ts +1 -0
  1046. package/lib/provider/ledger/CarbonEVMLedger/index.js +8 -0
  1047. package/lib/provider/ledger/CarbonEVMLedger/utils.d.ts +73 -0
  1048. package/lib/provider/ledger/CarbonEVMLedger/utils.js +220 -0
  1049. package/lib/provider/ledger/evm.d.ts +10 -0
  1050. package/lib/provider/ledger/ledger.js +6 -9
  1051. package/lib/provider/metamask/MetaMask.js +20 -24
  1052. package/lib/provider/metamask/error.d.ts +1 -1
  1053. package/lib/provider/o3/O3Types.d.ts +1 -1
  1054. package/lib/provider/o3/O3Wallet.js +11 -15
  1055. package/lib/provider/o3/index.js +1 -5
  1056. package/lib/provider/rainbowKit/RainbowKitAccount.js +16 -16
  1057. package/lib/provider/station/StationAccount.d.ts +28 -0
  1058. package/lib/provider/station/StationAccount.js +168 -0
  1059. package/lib/provider/station/index.d.ts +2 -0
  1060. package/lib/provider/station/index.js +10 -0
  1061. package/lib/provider/zilpay/Zilpay.js +4 -4
  1062. package/lib/provider/zilpay/index.js +1 -5
  1063. package/lib/util/address.d.ts +5 -5
  1064. package/lib/util/address.js +15 -19
  1065. package/lib/util/alliance.d.ts +1 -1
  1066. package/lib/util/api.d.ts +3 -3
  1067. package/lib/util/api.js +5 -5
  1068. package/lib/util/auth.d.ts +2 -2
  1069. package/lib/util/auth.js +3 -3
  1070. package/lib/util/blockchain.d.ts +7 -7
  1071. package/lib/util/blockchain.js +4 -4
  1072. package/lib/util/eip712.js +3 -3
  1073. package/lib/util/fetch.js +1 -1
  1074. package/lib/util/generic.d.ts +2 -3
  1075. package/lib/util/generic.js +3 -3
  1076. package/lib/util/gov.d.ts +1 -1
  1077. package/lib/util/grant.d.ts +1 -1
  1078. package/lib/util/grant.js +1 -1
  1079. package/lib/util/index.js +1 -5
  1080. package/lib/util/legacyEIP712.d.ts +2 -2
  1081. package/lib/util/legacyEIP712.js +2 -2
  1082. package/lib/util/network.js +3 -3
  1083. package/lib/util/number.d.ts +4 -4
  1084. package/lib/util/number.js +5 -5
  1085. package/lib/util/signless.d.ts +11 -0
  1086. package/lib/util/signless.js +92 -0
  1087. package/lib/util/tx.d.ts +6 -10
  1088. package/lib/util/tx.js +2 -6
  1089. package/lib/util/type.d.ts +1 -1
  1090. package/lib/wallet/CarbonSigner.d.ts +5 -5
  1091. package/lib/wallet/CarbonSigner.js +11 -11
  1092. package/lib/wallet/CarbonSigningClient.js +16 -16
  1093. package/lib/wallet/CarbonWallet.d.ts +1 -1
  1094. package/lib/wallet/CarbonWallet.js +14 -14
  1095. package/lib/wallet/index.js +1 -5
  1096. package/lib/websocket/connector.js +4 -8
  1097. package/lib/websocket/index.js +1 -5
  1098. package/lib/websocket/models.d.ts +2 -11
  1099. package/lib/websocket/types.d.ts +1 -1
  1100. package/package.json +2 -2
  1101. package/lib/codec/Switcheo/carbon/coin/params.js +0 -112
  1102. package/lib/eth/abis/ExternalTokenERC20.json +0 -340
  1103. package/lib/hydrogen/common.d.ts +0 -5
  1104. /package/lib/{hydrogen/common.js → provider/ledger/evm.js} +0 -0
package/lib/CarbonSDK.js CHANGED
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -86,7 +82,7 @@ class CarbonSDK {
86
82
  if (!opts.query) {
87
83
  let grpcClient;
88
84
  if (opts.useTmAbciQuery !== true && this.networkConfig.grpcUrl) {
89
- const transport = typeof window === "undefined" ? (0, grpc_web_node_http_transport_1.NodeHttpTransport)() : undefined;
85
+ const transport = typeof window === "undefined" ? grpc_web_node_http_transport_1.NodeHttpTransport() : undefined;
90
86
  grpcClient = (_h = opts.grpcQueryClient) !== null && _h !== void 0 ? _h : new GrpcQueryClient_1.default(this.networkConfig.restUrl, {
91
87
  transport,
92
88
  });
@@ -252,14 +248,14 @@ class CarbonSDK {
252
248
  pagination: constant_1.PAGINATE_10K,
253
249
  });
254
250
  const txGasCosts = msgGasCosts.reduce((result, item) => {
255
- result[item.msgType] = (0, number_1.bnOrZero)(item.gasCost);
251
+ result[item.msgType] = number_1.bnOrZero(item.gasCost);
256
252
  return result;
257
253
  }, {});
258
254
  const { minGasPrices } = yield queryClient.fee.MinGasPriceAll({
259
255
  pagination: constant_1.PAGINATE_10K,
260
256
  });
261
257
  const txGasPrices = minGasPrices.reduce((result, item) => {
262
- result[item.denom] = (0, number_1.bnOrZero)(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
258
+ result[item.denom] = number_1.bnOrZero(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
263
259
  return result;
264
260
  }, {});
265
261
  return new GasFee_1.default(txGasCosts, txGasPrices);
@@ -29,7 +29,7 @@ class BatchQueryClient {
29
29
  };
30
30
  if (typeof endpoint === "string") {
31
31
  // accept host.name:port and assume http protocol
32
- this.url = (0, rpcclient_1.hasProtocol)(endpoint) ? endpoint : "http://" + endpoint;
32
+ this.url = rpcclient_1.hasProtocol(endpoint) ? endpoint : "http://" + endpoint;
33
33
  }
34
34
  else {
35
35
  this.url = endpoint.url;
@@ -71,7 +71,7 @@ class BatchQueryClient {
71
71
  return;
72
72
  const requests = batch.map((s) => s.request);
73
73
  const requestIds = requests.map((request) => request.id);
74
- (0, http_1.http)("POST", this.url, this.headers, requests).then((raw) => {
74
+ http_1.http("POST", this.url, this.headers, requests).then((raw) => {
75
75
  // Requests with a single entry return as an object
76
76
  const arr = Array.isArray(raw) ? raw : [raw];
77
77
  arr.forEach((el, i) => {
@@ -79,8 +79,8 @@ class BatchQueryClient {
79
79
  if (!req)
80
80
  return;
81
81
  const { reject, resolve } = req;
82
- const response = (0, json_rpc_1.parseJsonRpcResponse)(el);
83
- if ((0, json_rpc_1.isJsonRpcErrorResponse)(response)) {
82
+ const response = json_rpc_1.parseJsonRpcResponse(el);
83
+ if (json_rpc_1.isJsonRpcErrorResponse(response)) {
84
84
  reject(new Error(JSON.stringify(response.error)));
85
85
  }
86
86
  else {
@@ -59,7 +59,7 @@ const BlockchainClient_1 = __importDefault(require("./BlockchainClient"));
59
59
  class CarbonQueryClient {
60
60
  constructor(opts) {
61
61
  var _a;
62
- const rpcClient = (_a = opts.grpcClient) !== null && _a !== void 0 ? _a : (0, stargate_1.createProtobufRpcClient)(new stargate_1.QueryClient(opts.tmClient));
62
+ const rpcClient = (_a = opts.grpcClient) !== null && _a !== void 0 ? _a : stargate_1.createProtobufRpcClient(new stargate_1.QueryClient(opts.tmClient));
63
63
  this.chain = BlockchainClient_1.default.connectWithTm(opts.tmClient);
64
64
  this.adl = new query_1.QueryClientImpl(rpcClient);
65
65
  this.alliance = new query_48.QueryClientImpl(rpcClient);
@@ -46,15 +46,15 @@ class ETHClient {
46
46
  ?
47
47
  this.tokenClient.getBlockchainV2(token.denom) == this.blockchain
48
48
  :
49
- (0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), api.network) == blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[this.blockchain];
49
+ blockchain_1.blockchainForChainId(token.chainId.toNumber(), api.network) == blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[this.blockchain];
50
50
  return isCorrectBlockchain &&
51
51
  token.tokenAddress.length == 40 &&
52
- token.bridgeAddress.toLowerCase() == (0, generic_1.stripHexPrefix)(lockProxyAddress) &&
52
+ token.bridgeAddress.toLowerCase() == generic_1.stripHexPrefix(lockProxyAddress) &&
53
53
  (!whitelistDenoms || whitelistDenoms.includes(token.denom)) &&
54
- this.verifyChecksum((0, generic_1.appendHexPrefix)(token.tokenAddress));
54
+ this.verifyChecksum(generic_1.appendHexPrefix(token.tokenAddress));
55
55
  });
56
56
  const assetIds = tokens.map((token) => {
57
- return this.verifyChecksum((0, generic_1.appendHexPrefix)(token.tokenAddress));
57
+ return this.verifyChecksum(generic_1.appendHexPrefix(token.tokenAddress));
58
58
  });
59
59
  const provider = this.getProvider();
60
60
  const contractAddress = this.getBalanceReaderAddress();
@@ -103,14 +103,14 @@ class ETHClient {
103
103
  }
104
104
  const carbonNetwork = networkConfig.network;
105
105
  const fromTokenId = fromToken.id;
106
- const fromTokenAddress = (0, generic_1.appendHexPrefix)(fromToken.tokenAddress);
106
+ const fromTokenAddress = generic_1.appendHexPrefix(fromToken.tokenAddress);
107
107
  const toTokenDenom = toToken.denom;
108
108
  const recoveryAddressHex = ethers_1.ethers.utils.hexlify(util_1.AddressUtils.SWTHAddress.getAddressBytes(recoveryAddress, carbonNetwork));
109
109
  const fromAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(fromTokenId));
110
110
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(toTokenDenom));
111
111
  const nonce = yield this.getTxNonce(fromAddress, params.nonce, rpcProvider);
112
112
  const contract = new ethers_1.ethers.Contract(this.getBridgeEntranceAddr(), eth_1.ABIs.bridgeEntrance, rpcProvider);
113
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
113
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
114
114
  const tokenCreator = fromToken.creator;
115
115
  const targetAddressBytes = util_1.AddressUtils.SWTHAddress.getAddressBytes(tokenCreator, carbonNetwork);
116
116
  const targetProxyHash = ethers_1.ethers.utils.hexlify(targetAddressBytes);
@@ -139,9 +139,9 @@ class ETHClient {
139
139
  throw new Error("Minimum gas required: 150,000");
140
140
  }
141
141
  const networkConfig = this.getNetworkConfig();
142
- const assetId = (0, generic_1.appendHexPrefix)(token.tokenAddress);
143
- const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(token));
144
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
142
+ const assetId = generic_1.appendHexPrefix(token.tokenAddress);
143
+ const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(token));
144
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
145
145
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(token.id));
146
146
  const swthAddress = ethers_1.ethers.utils.hexlify(address);
147
147
  const contractAddress = this.getLockProxyAddress();
@@ -192,15 +192,15 @@ class ETHClient {
192
192
  return "insufficient balance";
193
193
  }
194
194
  const networkConfig = this.getNetworkConfig();
195
- const assetId = (0, generic_1.appendHexPrefix)(tokenWithExternalBalances.tokenAddress);
196
- const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(tokenWithExternalBalances));
197
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
195
+ const assetId = generic_1.appendHexPrefix(tokenWithExternalBalances.tokenAddress);
196
+ const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(tokenWithExternalBalances));
197
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
198
198
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(tokenWithExternalBalances.id));
199
199
  const nonce = Math.floor(Math.random() * 1000000000); // random nonce to prevent replay attacks
200
200
  const message = ethers_1.ethers.utils.solidityKeccak256(["string", "address", "bytes", "bytes", "bytes", "uint256", "uint256", "uint256"], ["sendTokens", assetId, targetProxyHash, toAssetHash, feeAddress, amount, feeAmount, nonce]);
201
201
  // logger("sendDeposit message", message)
202
202
  const { address, signature } = yield getSignatureCallback(message);
203
- const signatureBytes = ethers_1.ethers.utils.arrayify((0, generic_1.appendHexPrefix)(signature));
203
+ const signatureBytes = ethers_1.ethers.utils.arrayify(generic_1.appendHexPrefix(signature));
204
204
  const rsv = ethers_1.ethers.utils.splitSignature(signatureBytes);
205
205
  // logger("sign result", address, signature)
206
206
  const signatureResult = {
@@ -239,7 +239,7 @@ class ETHClient {
239
239
  if (!feeInfo.deposit_fee) {
240
240
  throw new Error("unsupported token");
241
241
  }
242
- if ((0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), this.configProvider.getConfig().network) !== blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[this.blockchain]) {
242
+ if (blockchain_1.blockchainForChainId(token.chainId.toNumber(), this.configProvider.getConfig().network) !== blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[this.blockchain]) {
243
243
  throw new Error("unsupported token");
244
244
  }
245
245
  let feeAmount = ethers_1.ethers.BigNumber.from(feeInfo.deposit_fee);
@@ -299,7 +299,7 @@ class ETHClient {
299
299
  getTargetProxyHash(token) {
300
300
  const networkConfig = this.getNetworkConfig();
301
301
  const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
302
- const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
302
+ const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
303
303
  return addressHex;
304
304
  }
305
305
  getProvider() {
@@ -32,7 +32,7 @@ exports.HydrogenEndpoints = {
32
32
  const formatDateField = (value) => {
33
33
  if (typeof value !== "string")
34
34
  return null;
35
- return (0, dayjs_1.default)(value);
35
+ return dayjs_1.default(value);
36
36
  };
37
37
  // temporary function to parse okt/okc blockchain
38
38
  // to remove when automatic deposit/withdraw feature is deployed
@@ -104,14 +104,14 @@ class HydrogenClient {
104
104
  // brdg tokens will all be chain_id 0 which will also be deprecated in future
105
105
  // hence for brdg tokens cannot use chain_id to differentiate between blockchains
106
106
  const isBridgeToken = this.tokenClient.isBridgedToken(value.carbon_token_id);
107
- return Object.assign(Object.assign({}, value), { created_at: formatDateField((_a = value.created_at) === null || _a === void 0 ? void 0 : _a.toString()), updated_at: formatDateField((_b = value.updated_at) === null || _b === void 0 ? void 0 : _b.toString()), source_blockchain: isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id), bridging_blockchain: getBridgeBlockchainFromId(value.bridge_id), destination_blockchain: isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id), source_event: formatChainEventV2(value.source_event, (_c = value.source_blockchain) !== null && _c !== void 0 ? _c : ''), bridging_event: formatChainEventV2(value.bridging_event, getBridgeBlockchainFromId(value.bridge_id)), destination_event: formatChainEventV2(value.destination_event, (_d = value.destination_blockchain) !== null && _d !== void 0 ? _d : ''), relay: formatRelaysTransfers(value.relay) });
107
+ return Object.assign(Object.assign({}, value), { created_at: formatDateField((_a = value.created_at) === null || _a === void 0 ? void 0 : _a.toString()), updated_at: formatDateField((_b = value.updated_at) === null || _b === void 0 ? void 0 : _b.toString()), source_blockchain: isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id), bridging_blockchain: getBridgeBlockchainFromId(value.bridge_id), destination_blockchain: isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id), source_event: formatChainEventV2(value.source_event, (_c = value.source_blockchain) !== null && _c !== void 0 ? _c : ''), bridging_event: formatChainEventV2(value.bridging_event, getBridgeBlockchainFromId(value.bridge_id)), destination_event: formatChainEventV2(value.destination_event, (_d = value.destination_blockchain) !== null && _d !== void 0 ? _d : ''), relay: formatRelaysTransfers(value.relay) });
108
108
  };
109
109
  this.formatCrossChainTransferDetailedV2 = (value) => {
110
110
  if (!value || typeof value !== "object")
111
111
  return value;
112
112
  const isBridgeToken = this.tokenClient.isBridgedToken(value.carbon_token_id);
113
- const source_blockchain = isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id);
114
- const destination_blockchain = isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id);
113
+ const source_blockchain = isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id);
114
+ const destination_blockchain = isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id);
115
115
  const bridging_blockchain = getBridgeBlockchainFromId(value.bridge_id);
116
116
  return Object.assign(Object.assign({}, this.formatCrossChainTransferV2(value)), { source_event: formatChainEventV2(value.source_event, source_blockchain !== null && source_blockchain !== void 0 ? source_blockchain : ''), bridging_event: formatChainEventV2(value.bridging_event, bridging_blockchain), destination_event: formatChainEventV2(value.destination_event, destination_blockchain !== null && destination_blockchain !== void 0 ? destination_blockchain : '') });
117
117
  };
@@ -101,12 +101,12 @@ class InsightsQueryClient {
101
101
  const meta = response.data.result.meta;
102
102
  const parsedEntries = rawEntries.map(entry => ({
103
103
  lastHeight: entry.lastHeight,
104
- time: (0, dayjs_1.default)(entry.time),
104
+ time: dayjs_1.default(entry.time),
105
105
  volumeValue: new bignumber_js_1.default(entry.volumeValue),
106
106
  }));
107
107
  const parsedMeta = {
108
- from: (0, dayjs_1.default)(meta.from),
109
- until: (0, dayjs_1.default)(meta.until),
108
+ from: dayjs_1.default(meta.from),
109
+ until: dayjs_1.default(meta.until),
110
110
  interval: meta.interval,
111
111
  };
112
112
  return { result: { entries: parsedEntries, meta: parsedMeta } };
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -72,13 +68,13 @@ class NEOClient {
72
68
  ?
73
69
  !!sdk.token.getBlockchainV2(token.denom) && (blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[sdk.token.getBlockchainV2(token.denom)] == this.blockchain)
74
70
  :
75
- (0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), sdk.network) == this.blockchain;
71
+ blockchain_1.blockchainForChainId(token.chainId.toNumber(), sdk.network) == this.blockchain;
76
72
  return (isCorrectBlockchain || token.denom === "swth") && token.tokenAddress.length == 40 && token.bridgeAddress.length == 40;
77
73
  });
78
74
  const client = new Neon.rpc.RPCClient(url, "2.5.2"); // TODO: should we change the RPC version??
79
75
  // NOTE: fetching of tokens is chunked in sets of 15 as we may hit
80
76
  // the gas limit on the RPC node and error out otherwise
81
- const promises = (0, lodash_1.chunk)(tokens, 75).map((partition) => __awaiter(this, void 0, void 0, function* () {
77
+ const promises = lodash_1.chunk(tokens, 75).map((partition) => __awaiter(this, void 0, void 0, function* () {
82
78
  var _a, _b, _c;
83
79
  const acc = {};
84
80
  for (const token of partition) {
@@ -120,8 +116,8 @@ class NEOClient {
120
116
  const targetProxyHash = this.getTargetProxyHash(token);
121
117
  const toAssetHash = Neon.u.str2hexstring(token.id);
122
118
  const addressBytes = address_1.SWTHAddress.getAddressBytes(swthAddress, networkConfig.network);
123
- const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
124
- const zeroAddressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(constant_1.ZeroAddress));
119
+ const toAddress = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
120
+ const zeroAddressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(constant_1.ZeroAddress));
125
121
  const amount = ethers_1.ethers.BigNumber.from(token.externalBalance);
126
122
  const feeAmount = ethers_1.ethers.BigNumber.from(feeAmountInput !== null && feeAmountInput !== void 0 ? feeAmountInput : "100000000");
127
123
  const feeAddress = feeAmount.isZero() ? zeroAddressHex : networkConfig.feeAddress;
@@ -166,7 +162,7 @@ class NEOClient {
166
162
  const fromAddress = util_1.AddressUtils.NEOAddress.publicKeyToAddress(publicKeyOutput.publicKey);
167
163
  const targetProxyHash = this.getTargetProxyHash(token);
168
164
  const toAssetHash = Neon.u.str2hexstring(token.id);
169
- const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
165
+ const toAddress = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(address));
170
166
  const nonce = Math.floor(Math.random() * 1000000);
171
167
  if (amount.lt(feeAmount)) {
172
168
  throw new Error("Invalid amount");
@@ -202,7 +198,7 @@ class NEOClient {
202
198
  const fromAddress = ledger.scriptHash;
203
199
  const targetProxyHash = this.getTargetProxyHash(token);
204
200
  const toAssetHash = Neon.u.str2hexstring(token.id);
205
- const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
201
+ const toAddress = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(address));
206
202
  const feeAddress = networkConfig.feeAddress;
207
203
  const nonce = Math.floor(Math.random() * 1000000);
208
204
  if (amount.lt(feeAmount)) {
@@ -315,7 +311,7 @@ class NEOClient {
315
311
  getTargetProxyHash(token) {
316
312
  const networkConfig = this.getNetworkConfig();
317
313
  const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
318
- const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
314
+ const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
319
315
  return addressHex;
320
316
  }
321
317
  getNetworkConfig() {
@@ -619,7 +619,7 @@ class TokenClient {
619
619
  if (!token)
620
620
  return undefined;
621
621
  const bridge = this.getBridgeFromToken(token);
622
- if (!bridge || !(0, blockchain_1.isIbcBridge)(bridge))
622
+ if (!bridge || !blockchain_1.isIbcBridge(bridge))
623
623
  return undefined;
624
624
  return bridge.chain_id_name;
625
625
  }
@@ -698,7 +698,7 @@ class TokenClient {
698
698
  processTokenPrices(tokenPrices) {
699
699
  return tokenPrices.reduce((prevPrices, price) => {
700
700
  const newPrev = prevPrices;
701
- newPrev[price.denom] = (0, number_1.bnOrZero)(price.twap).shiftedBy(-constant_1.decTypeDecimals);
701
+ newPrev[price.denom] = number_1.bnOrZero(price.twap).shiftedBy(-constant_1.decTypeDecimals);
702
702
  return newPrev;
703
703
  }, {});
704
704
  }
@@ -77,12 +77,12 @@ class ZILClient {
77
77
  ?
78
78
  !!sdk.token.getBlockchainV2(token.denom) && (blockchain_1.BLOCKCHAIN_V2_TO_V1_MAPPING[sdk.token.getBlockchainV2(token.denom)] == this.blockchain)
79
79
  :
80
- (0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), sdk.network) == this.blockchain;
80
+ blockchain_1.blockchainForChainId(token.chainId.toNumber(), sdk.network) == this.blockchain;
81
81
  return isCorrectBlockchain && token.tokenAddress.length == 40 && (!whitelistDenoms || whitelistDenoms.includes(token.denom));
82
82
  });
83
83
  const requests = tokens.map((token) => token.tokenAddress === zeroAddress
84
- ? (0, exports.balanceBatchRequest)(address.replace(/^0x/i, ""))
85
- : (0, exports.tokenBalanceBatchRequest)(token.tokenAddress, address));
84
+ ? exports.balanceBatchRequest(address.replace(/^0x/i, ""))
85
+ : exports.tokenBalanceBatchRequest(token.tokenAddress, address));
86
86
  const response = yield fetch(this.getProviderUrl(), {
87
87
  method: "post",
88
88
  headers: { "content-type": "application/json" },
@@ -102,7 +102,7 @@ class ZILClient {
102
102
  });
103
103
  }
104
104
  formatWithdrawalAddress(bech32Address) {
105
- return (0, zilliqa_1.fromBech32Address)(bech32Address).toLowerCase().substr(2);
105
+ return zilliqa_1.fromBech32Address(bech32Address).toLowerCase().substr(2);
106
106
  }
107
107
  // see examplesV2/zil_client.ts on how to confirm the transactions
108
108
  // to confirm the zilpay method, use :
@@ -147,7 +147,7 @@ class ZILClient {
147
147
  zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
148
148
  }
149
149
  const deployedContract = (this.walletProvider || zilliqa).contracts.at(contractAddress);
150
- const balanceAndNonceResp = yield zilliqa.blockchain.getBalance((0, generic_1.stripHexPrefix)(zilAddress));
150
+ const balanceAndNonceResp = yield zilliqa.blockchain.getBalance(generic_1.stripHexPrefix(zilAddress));
151
151
  if (balanceAndNonceResp.error !== undefined) {
152
152
  throw new Error(balanceAndNonceResp.error.message);
153
153
  }
@@ -165,7 +165,7 @@ class ZILClient {
165
165
  vname: "spender",
166
166
  type: "ByStr20",
167
167
  // TODO: Check if bridgeAddress corresponds to carbon token lock_proxy_hash
168
- value: spenderAddress !== null && spenderAddress !== void 0 ? spenderAddress : (0, generic_1.appendHexPrefix)(token.bridgeAddress),
168
+ value: spenderAddress !== null && spenderAddress !== void 0 ? spenderAddress : generic_1.appendHexPrefix(token.bridgeAddress),
169
169
  },
170
170
  {
171
171
  vname: "amount",
@@ -183,7 +183,7 @@ class ZILClient {
183
183
  }
184
184
  checkAllowanceZRC2(token, owner, spender) {
185
185
  return __awaiter(this, void 0, void 0, function* () {
186
- const contractAddress = (0, generic_1.appendHexPrefix)(token.tokenAddress);
186
+ const contractAddress = generic_1.appendHexPrefix(token.tokenAddress);
187
187
  const zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
188
188
  const resp = yield zilliqa.blockchain.getSmartContractSubState(contractAddress, "allowances", [owner, spender]);
189
189
  if (resp.error !== undefined) {
@@ -205,13 +205,13 @@ class ZILClient {
205
205
  }
206
206
  const carbonNetwork = networkConfig.network;
207
207
  const fromTokenId = fromToken.id;
208
- const fromTokenAddr = (0, generic_1.appendHexPrefix)(fromToken.tokenAddress);
208
+ const fromTokenAddr = generic_1.appendHexPrefix(fromToken.tokenAddress);
209
209
  const toTokenDenom = toToken.denom;
210
- const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(fromToken));
210
+ const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(fromToken));
211
211
  const recoveryAddressHex = ethers_1.ethers.utils.hexlify(index_1.AddressUtils.SWTHAddress.getAddressBytes(recoveryAddress, carbonNetwork));
212
212
  const fromAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(fromTokenId));
213
213
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(toTokenDenom));
214
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
214
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
215
215
  const contractAddress = this.getBridgeEntranceAddr();
216
216
  let zilliqa;
217
217
  if (typeof signer === "string") {
@@ -226,7 +226,7 @@ class ZILClient {
226
226
  zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
227
227
  }
228
228
  const deployedContract = (this.walletProvider || zilliqa).contracts.at(contractAddress);
229
- const balanceAndNonceResp = yield zilliqa.blockchain.getBalance((0, generic_1.stripHexPrefix)(fromAddress));
229
+ const balanceAndNonceResp = yield zilliqa.blockchain.getBalance(generic_1.stripHexPrefix(fromAddress));
230
230
  if (balanceAndNonceResp.error !== undefined) {
231
231
  throw new Error(balanceAndNonceResp.error.message);
232
232
  }
@@ -303,13 +303,13 @@ class ZILClient {
303
303
  return __awaiter(this, void 0, void 0, function* () {
304
304
  const { address, amount, token, gasPrice, gasLimit, zilAddress, signer } = params;
305
305
  const networkConfig = this.getNetworkConfig();
306
- const assetId = (0, generic_1.appendHexPrefix)(token.tokenAddress);
307
- const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(token));
308
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
306
+ const assetId = generic_1.appendHexPrefix(token.tokenAddress);
307
+ const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(token));
308
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
309
309
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(token.id));
310
310
  const swthAddress = ethers_1.ethers.utils.hexlify(address);
311
311
  // TODO: Check if bridgeAddress corresponds to carbon token lock_proxy_hash
312
- const contractAddress = (0, generic_1.appendHexPrefix)(token.bridgeAddress);
312
+ const contractAddress = generic_1.appendHexPrefix(token.bridgeAddress);
313
313
  let zilliqa;
314
314
  if (typeof signer === "string") {
315
315
  zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
@@ -323,7 +323,7 @@ class ZILClient {
323
323
  zilliqa = new zilliqa_1.Zilliqa(this.getProviderUrl());
324
324
  }
325
325
  const deployedContract = (this.walletProvider || zilliqa).contracts.at(contractAddress);
326
- const balanceAndNonceResp = yield zilliqa.blockchain.getBalance((0, generic_1.stripHexPrefix)(zilAddress));
326
+ const balanceAndNonceResp = yield zilliqa.blockchain.getBalance(generic_1.stripHexPrefix(zilAddress));
327
327
  if (balanceAndNonceResp.error !== undefined) {
328
328
  throw new Error(balanceAndNonceResp.error.message);
329
329
  }
@@ -408,7 +408,7 @@ class ZILClient {
408
408
  getTargetProxyHash(token) {
409
409
  const networkConfig = this.getNetworkConfig();
410
410
  const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
411
- const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
411
+ const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
412
412
  return addressHex;
413
413
  }
414
414
  getNetworkConfig() {
@@ -6,13 +6,13 @@ export interface GenesisState {
6
6
  }
7
7
  export declare const GenesisState: {
8
8
  encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
9
- decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
9
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
10
10
  fromJSON(_: any): GenesisState;
11
11
  toJSON(_: GenesisState): unknown;
12
12
  fromPartial(_: DeepPartial<GenesisState>): GenesisState;
13
13
  };
14
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
14
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
16
16
  [K in keyof T]?: DeepPartial<T[K]>;
17
17
  } : Partial<T>;
18
18
  export {};
@@ -11,13 +11,13 @@ export interface GenesisState {
11
11
  }
12
12
  export declare const GenesisState: {
13
13
  encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
14
- decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
14
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
15
15
  fromJSON(object: any): GenesisState;
16
16
  toJSON(message: GenesisState): unknown;
17
17
  fromPartial(object: DeepPartial<GenesisState>): GenesisState;
18
18
  };
19
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
20
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
19
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
20
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
21
21
  [K in keyof T]?: DeepPartial<T[K]>;
22
22
  } : Partial<T>;
23
23
  export {};
@@ -11,20 +11,20 @@ export interface ParamsToUpdate {
11
11
  }
12
12
  export declare const Params: {
13
13
  encode(message: Params, writer?: _m0.Writer): _m0.Writer;
14
- decode(input: _m0.Reader | Uint8Array, length?: number): Params;
14
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
15
15
  fromJSON(object: any): Params;
16
16
  toJSON(message: Params): unknown;
17
17
  fromPartial(object: DeepPartial<Params>): Params;
18
18
  };
19
19
  export declare const ParamsToUpdate: {
20
20
  encode(message: ParamsToUpdate, writer?: _m0.Writer): _m0.Writer;
21
- decode(input: _m0.Reader | Uint8Array, length?: number): ParamsToUpdate;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ParamsToUpdate;
22
22
  fromJSON(object: any): ParamsToUpdate;
23
23
  toJSON(message: ParamsToUpdate): unknown;
24
24
  fromPartial(object: DeepPartial<ParamsToUpdate>): ParamsToUpdate;
25
25
  };
26
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
26
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
28
28
  [K in keyof T]?: DeepPartial<T[K]>;
29
29
  } : Partial<T>;
30
30
  export {};
@@ -22,42 +22,42 @@ export interface QueryParamsResponse {
22
22
  }
23
23
  export declare const QueryAdminRequest: {
24
24
  encode(_: QueryAdminRequest, writer?: _m0.Writer): _m0.Writer;
25
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminRequest;
25
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRequest;
26
26
  fromJSON(_: any): QueryAdminRequest;
27
27
  toJSON(_: QueryAdminRequest): unknown;
28
28
  fromPartial(_: DeepPartial<QueryAdminRequest>): QueryAdminRequest;
29
29
  };
30
30
  export declare const QueryAdminResponse: {
31
31
  encode(message: QueryAdminResponse, writer?: _m0.Writer): _m0.Writer;
32
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminResponse;
32
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminResponse;
33
33
  fromJSON(object: any): QueryAdminResponse;
34
34
  toJSON(message: QueryAdminResponse): unknown;
35
35
  fromPartial(object: DeepPartial<QueryAdminResponse>): QueryAdminResponse;
36
36
  };
37
37
  export declare const QueryAdminRecipientRequest: {
38
38
  encode(_: QueryAdminRecipientRequest, writer?: _m0.Writer): _m0.Writer;
39
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminRecipientRequest;
39
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientRequest;
40
40
  fromJSON(_: any): QueryAdminRecipientRequest;
41
41
  toJSON(_: QueryAdminRecipientRequest): unknown;
42
42
  fromPartial(_: DeepPartial<QueryAdminRecipientRequest>): QueryAdminRecipientRequest;
43
43
  };
44
44
  export declare const QueryAdminRecipientResponse: {
45
45
  encode(message: QueryAdminRecipientResponse, writer?: _m0.Writer): _m0.Writer;
46
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminRecipientResponse;
46
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientResponse;
47
47
  fromJSON(object: any): QueryAdminRecipientResponse;
48
48
  toJSON(message: QueryAdminRecipientResponse): unknown;
49
49
  fromPartial(object: DeepPartial<QueryAdminRecipientResponse>): QueryAdminRecipientResponse;
50
50
  };
51
51
  export declare const QueryParamsRequest: {
52
52
  encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
53
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
53
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsRequest;
54
54
  fromJSON(_: any): QueryParamsRequest;
55
55
  toJSON(_: QueryParamsRequest): unknown;
56
56
  fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
57
57
  };
58
58
  export declare const QueryParamsResponse: {
59
59
  encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
60
- decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
60
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsResponse;
61
61
  fromJSON(object: any): QueryParamsResponse;
62
62
  toJSON(message: QueryParamsResponse): unknown;
63
63
  fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
@@ -81,8 +81,8 @@ export declare class QueryClientImpl implements Query {
81
81
  interface Rpc {
82
82
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
83
83
  }
84
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
85
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
84
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
85
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
86
86
  [K in keyof T]?: DeepPartial<T[K]>;
87
87
  } : Partial<T>;
88
88
  export {};
@@ -39,56 +39,56 @@ export interface MsgHaltCurrentVersionResponse {
39
39
  }
40
40
  export declare const MsgInitiateAdminTransfer: {
41
41
  encode(message: MsgInitiateAdminTransfer, writer?: _m0.Writer): _m0.Writer;
42
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgInitiateAdminTransfer;
42
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgInitiateAdminTransfer;
43
43
  fromJSON(object: any): MsgInitiateAdminTransfer;
44
44
  toJSON(message: MsgInitiateAdminTransfer): unknown;
45
45
  fromPartial(object: DeepPartial<MsgInitiateAdminTransfer>): MsgInitiateAdminTransfer;
46
46
  };
47
47
  export declare const MsgInitiateAdminTransferResponse: {
48
48
  encode(_: MsgInitiateAdminTransferResponse, writer?: _m0.Writer): _m0.Writer;
49
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgInitiateAdminTransferResponse;
49
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgInitiateAdminTransferResponse;
50
50
  fromJSON(_: any): MsgInitiateAdminTransferResponse;
51
51
  toJSON(_: MsgInitiateAdminTransferResponse): unknown;
52
52
  fromPartial(_: DeepPartial<MsgInitiateAdminTransferResponse>): MsgInitiateAdminTransferResponse;
53
53
  };
54
54
  export declare const MsgAcceptAdminTransfer: {
55
55
  encode(message: MsgAcceptAdminTransfer, writer?: _m0.Writer): _m0.Writer;
56
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAcceptAdminTransfer;
56
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAcceptAdminTransfer;
57
57
  fromJSON(object: any): MsgAcceptAdminTransfer;
58
58
  toJSON(message: MsgAcceptAdminTransfer): unknown;
59
59
  fromPartial(object: DeepPartial<MsgAcceptAdminTransfer>): MsgAcceptAdminTransfer;
60
60
  };
61
61
  export declare const MsgAcceptAdminTransferResponse: {
62
62
  encode(_: MsgAcceptAdminTransferResponse, writer?: _m0.Writer): _m0.Writer;
63
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgAcceptAdminTransferResponse;
63
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAcceptAdminTransferResponse;
64
64
  fromJSON(_: any): MsgAcceptAdminTransferResponse;
65
65
  toJSON(_: MsgAcceptAdminTransferResponse): unknown;
66
66
  fromPartial(_: DeepPartial<MsgAcceptAdminTransferResponse>): MsgAcceptAdminTransferResponse;
67
67
  };
68
68
  export declare const MsgUpdateParams: {
69
69
  encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
70
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
70
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
71
71
  fromJSON(object: any): MsgUpdateParams;
72
72
  toJSON(message: MsgUpdateParams): unknown;
73
73
  fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
74
74
  };
75
75
  export declare const MsgUpdateParamsResponse: {
76
76
  encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
77
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
77
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
78
78
  fromJSON(_: any): MsgUpdateParamsResponse;
79
79
  toJSON(_: MsgUpdateParamsResponse): unknown;
80
80
  fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
81
81
  };
82
82
  export declare const MsgHaltCurrentVersion: {
83
83
  encode(message: MsgHaltCurrentVersion, writer?: _m0.Writer): _m0.Writer;
84
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgHaltCurrentVersion;
84
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgHaltCurrentVersion;
85
85
  fromJSON(object: any): MsgHaltCurrentVersion;
86
86
  toJSON(message: MsgHaltCurrentVersion): unknown;
87
87
  fromPartial(object: DeepPartial<MsgHaltCurrentVersion>): MsgHaltCurrentVersion;
88
88
  };
89
89
  export declare const MsgHaltCurrentVersionResponse: {
90
90
  encode(_: MsgHaltCurrentVersionResponse, writer?: _m0.Writer): _m0.Writer;
91
- decode(input: _m0.Reader | Uint8Array, length?: number): MsgHaltCurrentVersionResponse;
91
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgHaltCurrentVersionResponse;
92
92
  fromJSON(_: any): MsgHaltCurrentVersionResponse;
93
93
  toJSON(_: MsgHaltCurrentVersionResponse): unknown;
94
94
  fromPartial(_: DeepPartial<MsgHaltCurrentVersionResponse>): MsgHaltCurrentVersionResponse;
@@ -116,8 +116,8 @@ export declare class MsgClientImpl implements Msg {
116
116
  interface Rpc {
117
117
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
118
118
  }
119
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
120
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
119
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
120
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
121
121
  [K in keyof T]?: DeepPartial<T[K]>;
122
122
  } : Partial<T>;
123
123
  export {};