carbon-js-sdk 0.7.4-beta.1 → 0.7.4-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (944) hide show
  1. package/lib/CarbonSDK.d.ts +5 -6
  2. package/lib/CarbonSDK.js +3 -8
  3. package/lib/clients/BatchQueryClient.js +4 -4
  4. package/lib/clients/BlockchainClient.d.ts +3 -3
  5. package/lib/clients/BlockchainClient.js +1 -1
  6. package/lib/clients/CarbonQueryClient.d.ts +49 -49
  7. package/lib/clients/CarbonQueryClient.js +27 -27
  8. package/lib/clients/ETHClient.d.ts +5 -5
  9. package/lib/clients/ETHClient.js +15 -15
  10. package/lib/clients/HydrogenClient.d.ts +3 -3
  11. package/lib/clients/HydrogenClient.js +1 -1
  12. package/lib/clients/InsightsQueryClient.d.ts +4 -4
  13. package/lib/clients/InsightsQueryClient.js +3 -3
  14. package/lib/clients/NEOClient.js +8 -12
  15. package/lib/clients/TokenClient.d.ts +5 -5
  16. package/lib/clients/TokenClient.js +12 -19
  17. package/lib/clients/ZILClient.js +17 -17
  18. package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +18 -0
  19. package/lib/codec/Switcheo/carbon/adl/genesis.js +46 -0
  20. package/lib/codec/Switcheo/carbon/adl/query.d.ts +12 -0
  21. package/lib/codec/Switcheo/carbon/adl/query.js +20 -0
  22. package/lib/codec/Switcheo/carbon/adl/tx.d.ts +12 -0
  23. package/lib/codec/Switcheo/carbon/adl/tx.js +20 -0
  24. package/lib/codec/Switcheo/carbon/admin/export.d.ts +2 -0
  25. package/lib/codec/Switcheo/carbon/admin/export.js +13 -0
  26. package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +18 -0
  27. package/lib/codec/Switcheo/carbon/admin/genesis.js +46 -0
  28. package/lib/codec/Switcheo/carbon/admin/query.d.ts +62 -0
  29. package/lib/codec/Switcheo/carbon/admin/query.js +186 -0
  30. package/lib/codec/Switcheo/carbon/admin/tx.d.ts +62 -0
  31. package/lib/codec/Switcheo/carbon/admin/tx.js +198 -0
  32. package/lib/codec/Switcheo/carbon/bank/event.d.ts +65 -0
  33. package/lib/codec/Switcheo/carbon/bank/event.js +332 -0
  34. package/lib/codec/Switcheo/carbon/bank/export.d.ts +2 -0
  35. package/lib/codec/Switcheo/carbon/bank/export.js +14 -0
  36. package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +18 -0
  37. package/lib/codec/Switcheo/carbon/bank/genesis.js +46 -0
  38. package/lib/codec/Switcheo/carbon/bank/query.d.ts +77 -0
  39. package/lib/codec/Switcheo/carbon/bank/query.js +459 -0
  40. package/lib/codec/Switcheo/carbon/book/book.d.ts +57 -0
  41. package/lib/codec/Switcheo/carbon/book/book.js +319 -0
  42. package/lib/codec/Switcheo/carbon/book/event.d.ts +22 -0
  43. package/lib/codec/Switcheo/carbon/book/event.js +113 -0
  44. package/lib/codec/Switcheo/carbon/book/export.d.ts +4 -0
  45. package/lib/codec/Switcheo/carbon/book/export.js +23 -0
  46. package/lib/codec/Switcheo/carbon/book/genesis.d.ts +25 -0
  47. package/lib/codec/Switcheo/carbon/book/genesis.js +79 -0
  48. package/lib/codec/Switcheo/carbon/book/legacy.d.ts +22 -0
  49. package/lib/codec/Switcheo/carbon/book/legacy.js +120 -0
  50. package/lib/codec/Switcheo/carbon/book/query.d.ts +141 -0
  51. package/lib/codec/Switcheo/carbon/book/query.js +606 -0
  52. package/lib/codec/Switcheo/carbon/book/tx.d.ts +12 -0
  53. package/lib/codec/Switcheo/carbon/book/tx.js +20 -0
  54. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +50 -0
  55. package/lib/codec/Switcheo/carbon/broker/amm.js +326 -0
  56. package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +27 -0
  57. package/lib/codec/Switcheo/carbon/broker/candlestick.js +211 -0
  58. package/lib/codec/Switcheo/carbon/broker/event.d.ts +53 -0
  59. package/lib/codec/Switcheo/carbon/broker/event.js +485 -0
  60. package/lib/codec/Switcheo/carbon/broker/export.d.ts +7 -0
  61. package/lib/codec/Switcheo/carbon/broker/export.js +27 -0
  62. package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +25 -0
  63. package/lib/codec/Switcheo/carbon/broker/genesis.js +79 -0
  64. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +18 -0
  65. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.js +93 -0
  66. package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +19 -0
  67. package/lib/codec/Switcheo/carbon/broker/pagination.js +78 -0
  68. package/lib/codec/Switcheo/carbon/broker/query.d.ts +107 -0
  69. package/lib/codec/Switcheo/carbon/broker/query.js +597 -0
  70. package/lib/codec/Switcheo/carbon/broker/tx.d.ts +53 -0
  71. package/lib/codec/Switcheo/carbon/broker/tx.js +176 -0
  72. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +21 -0
  73. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.js +98 -0
  74. package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +24 -0
  75. package/lib/codec/Switcheo/carbon/btcx/denom_info.js +140 -0
  76. package/lib/codec/Switcheo/carbon/btcx/export.d.ts +4 -0
  77. package/lib/codec/Switcheo/carbon/btcx/export.js +19 -0
  78. package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +18 -0
  79. package/lib/codec/Switcheo/carbon/btcx/genesis.js +46 -0
  80. package/lib/codec/Switcheo/carbon/btcx/query.d.ts +68 -0
  81. package/lib/codec/Switcheo/carbon/btcx/query.js +275 -0
  82. package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +92 -0
  83. package/lib/codec/Switcheo/carbon/btcx/tx.js +436 -0
  84. package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +19 -0
  85. package/lib/codec/Switcheo/carbon/ccm/ccm.js +60 -0
  86. package/lib/codec/Switcheo/carbon/ccm/export.d.ts +4 -0
  87. package/lib/codec/Switcheo/carbon/ccm/export.js +20 -0
  88. package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +83 -0
  89. package/lib/codec/Switcheo/carbon/ccm/genesis.js +438 -0
  90. package/lib/codec/Switcheo/carbon/ccm/query.d.ts +45 -0
  91. package/lib/codec/Switcheo/carbon/ccm/query.js +197 -0
  92. package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +97 -0
  93. package/lib/codec/Switcheo/carbon/ccm/tx.js +462 -0
  94. package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +57 -0
  95. package/lib/codec/Switcheo/carbon/cdp/asset_params.js +411 -0
  96. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +32 -0
  97. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.js +288 -0
  98. package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +23 -0
  99. package/lib/codec/Switcheo/carbon/cdp/debt_info.js +158 -0
  100. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +23 -0
  101. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.js +135 -0
  102. package/lib/codec/Switcheo/carbon/cdp/event.d.ts +446 -0
  103. package/lib/codec/Switcheo/carbon/cdp/event.js +2913 -0
  104. package/lib/codec/Switcheo/carbon/cdp/export.d.ts +13 -0
  105. package/lib/codec/Switcheo/carbon/cdp/export.js +210 -0
  106. package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +134 -0
  107. package/lib/codec/Switcheo/carbon/cdp/genesis.js +825 -0
  108. package/lib/codec/Switcheo/carbon/cdp/params.d.ts +68 -0
  109. package/lib/codec/Switcheo/carbon/cdp/params.js +210 -0
  110. package/lib/codec/Switcheo/carbon/cdp/query.d.ts +644 -0
  111. package/lib/codec/Switcheo/carbon/cdp/query.js +3099 -0
  112. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +26 -0
  113. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.js +180 -0
  114. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +71 -0
  115. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.js +550 -0
  116. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +22 -0
  117. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.js +144 -0
  118. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +19 -0
  119. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.js +99 -0
  120. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1026 -0
  121. package/lib/codec/Switcheo/carbon/cdp/tx.js +5191 -0
  122. package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +24 -0
  123. package/lib/codec/Switcheo/carbon/coin/bridge.js +151 -0
  124. package/lib/codec/Switcheo/carbon/coin/event.d.ts +143 -0
  125. package/lib/codec/Switcheo/carbon/coin/event.js +775 -0
  126. package/lib/codec/Switcheo/carbon/coin/export.d.ts +8 -0
  127. package/lib/codec/Switcheo/carbon/coin/export.js +107 -0
  128. package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +42 -0
  129. package/lib/codec/Switcheo/carbon/coin/genesis.js +207 -0
  130. package/lib/codec/Switcheo/carbon/coin/group.d.ts +50 -0
  131. package/lib/codec/Switcheo/carbon/coin/group.js +230 -0
  132. package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +21 -0
  133. package/lib/codec/Switcheo/carbon/coin/proposal.js +91 -0
  134. package/lib/codec/Switcheo/carbon/coin/query.d.ts +310 -0
  135. package/lib/codec/Switcheo/carbon/coin/query.js +1439 -0
  136. package/lib/codec/Switcheo/carbon/coin/token.d.ts +104 -0
  137. package/lib/codec/Switcheo/carbon/coin/token.js +700 -0
  138. package/lib/codec/Switcheo/carbon/coin/tx.d.ts +586 -0
  139. package/lib/codec/Switcheo/carbon/coin/tx.js +3131 -0
  140. package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +41 -0
  141. package/lib/codec/Switcheo/carbon/erc20/erc20.js +144 -0
  142. package/lib/codec/Switcheo/carbon/erc20/events.d.ts +76 -0
  143. package/lib/codec/Switcheo/carbon/erc20/events.js +330 -0
  144. package/lib/codec/Switcheo/carbon/erc20/export.d.ts +5 -0
  145. package/lib/codec/Switcheo/carbon/erc20/export.js +37 -0
  146. package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +40 -0
  147. package/lib/codec/Switcheo/carbon/erc20/genesis.js +139 -0
  148. package/lib/codec/Switcheo/carbon/erc20/query.d.ts +117 -0
  149. package/lib/codec/Switcheo/carbon/erc20/query.js +333 -0
  150. package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +232 -0
  151. package/lib/codec/Switcheo/carbon/erc20/tx.js +765 -0
  152. package/lib/codec/Switcheo/carbon/evmbank/export.d.ts +2 -0
  153. package/lib/codec/Switcheo/carbon/evmbank/export.js +8 -0
  154. package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +32 -0
  155. package/lib/codec/Switcheo/carbon/evmbank/genesis.js +152 -0
  156. package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +40 -0
  157. package/lib/codec/Switcheo/carbon/evmbank/query.js +116 -0
  158. package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +18 -0
  159. package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +46 -0
  160. package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +12 -0
  161. package/lib/codec/Switcheo/carbon/evmcontract/query.js +20 -0
  162. package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +12 -0
  163. package/lib/codec/Switcheo/carbon/evmcontract/tx.js +20 -0
  164. package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +19 -0
  165. package/lib/codec/Switcheo/carbon/evmmerge/address.js +75 -0
  166. package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +20 -0
  167. package/lib/codec/Switcheo/carbon/evmmerge/event.js +90 -0
  168. package/lib/codec/Switcheo/carbon/evmmerge/export.d.ts +6 -0
  169. package/lib/codec/Switcheo/carbon/evmmerge/export.js +20 -0
  170. package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +48 -0
  171. package/lib/codec/Switcheo/carbon/evmmerge/genesis.js +216 -0
  172. package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +22 -0
  173. package/lib/codec/Switcheo/carbon/evmmerge/offchain.js +105 -0
  174. package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +75 -0
  175. package/lib/codec/Switcheo/carbon/evmmerge/query.js +254 -0
  176. package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +45 -0
  177. package/lib/codec/Switcheo/carbon/evmmerge/tx.js +128 -0
  178. package/lib/codec/Switcheo/carbon/fee/event.d.ts +20 -0
  179. package/lib/codec/Switcheo/carbon/fee/event.js +83 -0
  180. package/lib/codec/Switcheo/carbon/fee/export.d.ts +5 -0
  181. package/lib/codec/Switcheo/carbon/fee/export.js +32 -0
  182. package/lib/codec/Switcheo/carbon/fee/fee.d.ts +42 -0
  183. package/lib/codec/Switcheo/carbon/fee/fee.js +183 -0
  184. package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +23 -0
  185. package/lib/codec/Switcheo/carbon/fee/genesis.js +79 -0
  186. package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +57 -0
  187. package/lib/codec/Switcheo/carbon/fee/proposal.js +311 -0
  188. package/lib/codec/Switcheo/carbon/fee/query.d.ts +114 -0
  189. package/lib/codec/Switcheo/carbon/fee/query.js +470 -0
  190. package/lib/codec/Switcheo/carbon/fee/tx.d.ts +108 -0
  191. package/lib/codec/Switcheo/carbon/fee/tx.js +415 -0
  192. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +70 -0
  193. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.js +383 -0
  194. package/lib/codec/Switcheo/carbon/headersync/export.d.ts +4 -0
  195. package/lib/codec/Switcheo/carbon/headersync/export.js +24 -0
  196. package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +79 -0
  197. package/lib/codec/Switcheo/carbon/headersync/genesis.js +419 -0
  198. package/lib/codec/Switcheo/carbon/headersync/query.d.ts +64 -0
  199. package/lib/codec/Switcheo/carbon/headersync/query.js +231 -0
  200. package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +64 -0
  201. package/lib/codec/Switcheo/carbon/headersync/tx.js +215 -0
  202. package/lib/codec/Switcheo/carbon/inflation/export.d.ts +2 -0
  203. package/lib/codec/Switcheo/carbon/inflation/export.js +8 -0
  204. package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +25 -0
  205. package/lib/codec/Switcheo/carbon/inflation/genesis.js +79 -0
  206. package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +26 -0
  207. package/lib/codec/Switcheo/carbon/inflation/inflation.js +165 -0
  208. package/lib/codec/Switcheo/carbon/inflation/query.d.ts +41 -0
  209. package/lib/codec/Switcheo/carbon/inflation/query.js +109 -0
  210. package/lib/codec/Switcheo/carbon/inflation/tx.d.ts +12 -0
  211. package/lib/codec/Switcheo/carbon/inflation/tx.js +20 -0
  212. package/lib/codec/Switcheo/carbon/insurance/event.d.ts +24 -0
  213. package/lib/codec/Switcheo/carbon/insurance/event.js +46 -0
  214. package/lib/codec/Switcheo/carbon/insurance/export.d.ts +4 -0
  215. package/lib/codec/Switcheo/carbon/insurance/export.js +14 -0
  216. package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +29 -0
  217. package/lib/codec/Switcheo/carbon/insurance/fund.js +148 -0
  218. package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +18 -0
  219. package/lib/codec/Switcheo/carbon/insurance/genesis.js +46 -0
  220. package/lib/codec/Switcheo/carbon/insurance/query.d.ts +41 -0
  221. package/lib/codec/Switcheo/carbon/insurance/query.js +108 -0
  222. package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +44 -0
  223. package/lib/codec/Switcheo/carbon/insurance/tx.js +144 -0
  224. package/lib/codec/Switcheo/carbon/leverage/event.d.ts +21 -0
  225. package/lib/codec/Switcheo/carbon/leverage/event.js +100 -0
  226. package/lib/codec/Switcheo/carbon/leverage/export.d.ts +4 -0
  227. package/lib/codec/Switcheo/carbon/leverage/export.js +16 -0
  228. package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +24 -0
  229. package/lib/codec/Switcheo/carbon/leverage/genesis.js +64 -0
  230. package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +30 -0
  231. package/lib/codec/Switcheo/carbon/leverage/leverage.js +134 -0
  232. package/lib/codec/Switcheo/carbon/leverage/query.d.ts +70 -0
  233. package/lib/codec/Switcheo/carbon/leverage/query.js +234 -0
  234. package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +43 -0
  235. package/lib/codec/Switcheo/carbon/leverage/tx.js +127 -0
  236. package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +5 -0
  237. package/lib/codec/Switcheo/carbon/liquidation/export.js +17 -0
  238. package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +37 -0
  239. package/lib/codec/Switcheo/carbon/liquidation/genesis.js +136 -0
  240. package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +17 -0
  241. package/lib/codec/Switcheo/carbon/liquidation/liquidation.js +46 -0
  242. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +33 -0
  243. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.js +203 -0
  244. package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +77 -0
  245. package/lib/codec/Switcheo/carbon/liquidation/query.js +341 -0
  246. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +22 -0
  247. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.js +95 -0
  248. package/lib/codec/Switcheo/carbon/liquidation/tx.d.ts +12 -0
  249. package/lib/codec/Switcheo/carbon/liquidation/tx.js +20 -0
  250. package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +182 -0
  251. package/lib/codec/Switcheo/carbon/liquiditypool/event.js +1268 -0
  252. package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +6 -0
  253. package/lib/codec/Switcheo/carbon/liquiditypool/export.js +125 -0
  254. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +32 -0
  255. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.js +228 -0
  256. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +138 -0
  257. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +943 -0
  258. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +117 -0
  259. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.js +697 -0
  260. package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +370 -0
  261. package/lib/codec/Switcheo/carbon/liquiditypool/query.js +1738 -0
  262. package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +196 -0
  263. package/lib/codec/Switcheo/carbon/liquiditypool/reward.js +1204 -0
  264. package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +453 -0
  265. package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +2423 -0
  266. package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +46 -0
  267. package/lib/codec/Switcheo/carbon/lockproxy/event.js +348 -0
  268. package/lib/codec/Switcheo/carbon/lockproxy/export.d.ts +5 -0
  269. package/lib/codec/Switcheo/carbon/lockproxy/export.js +28 -0
  270. package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +68 -0
  271. package/lib/codec/Switcheo/carbon/lockproxy/genesis.js +355 -0
  272. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +22 -0
  273. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.js +147 -0
  274. package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +67 -0
  275. package/lib/codec/Switcheo/carbon/lockproxy/query.js +274 -0
  276. package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +147 -0
  277. package/lib/codec/Switcheo/carbon/lockproxy/tx.js +808 -0
  278. package/lib/codec/Switcheo/carbon/market/event.d.ts +20 -0
  279. package/lib/codec/Switcheo/carbon/market/event.js +76 -0
  280. package/lib/codec/Switcheo/carbon/market/export.d.ts +6 -0
  281. package/lib/codec/Switcheo/carbon/market/export.js +61 -0
  282. package/lib/codec/Switcheo/carbon/market/fee.d.ts +123 -0
  283. package/lib/codec/Switcheo/carbon/market/fee.js +334 -0
  284. package/lib/codec/Switcheo/carbon/market/genesis.d.ts +31 -0
  285. package/lib/codec/Switcheo/carbon/market/genesis.js +147 -0
  286. package/lib/codec/Switcheo/carbon/market/market.d.ts +131 -0
  287. package/lib/codec/Switcheo/carbon/market/market.js +1245 -0
  288. package/lib/codec/Switcheo/carbon/market/proposal.d.ts +46 -0
  289. package/lib/codec/Switcheo/carbon/market/proposal.js +245 -0
  290. package/lib/codec/Switcheo/carbon/market/query.d.ts +233 -0
  291. package/lib/codec/Switcheo/carbon/market/query.js +938 -0
  292. package/lib/codec/Switcheo/carbon/market/tx.d.ts +250 -0
  293. package/lib/codec/Switcheo/carbon/market/tx.js +1265 -0
  294. package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +3 -0
  295. package/lib/codec/Switcheo/carbon/marketstats/export.js +12 -0
  296. package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +21 -0
  297. package/lib/codec/Switcheo/carbon/marketstats/genesis.js +63 -0
  298. package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +31 -0
  299. package/lib/codec/Switcheo/carbon/marketstats/marketstats.js +258 -0
  300. package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +18 -0
  301. package/lib/codec/Switcheo/carbon/marketstats/params.js +46 -0
  302. package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +66 -0
  303. package/lib/codec/Switcheo/carbon/marketstats/query.js +195 -0
  304. package/lib/codec/Switcheo/carbon/marketstats/tx.d.ts +12 -0
  305. package/lib/codec/Switcheo/carbon/marketstats/tx.js +20 -0
  306. package/lib/codec/Switcheo/carbon/misc/block.d.ts +21 -0
  307. package/lib/codec/Switcheo/carbon/misc/block.js +105 -0
  308. package/lib/codec/Switcheo/carbon/misc/export.d.ts +6 -0
  309. package/lib/codec/Switcheo/carbon/misc/export.js +29 -0
  310. package/lib/codec/Switcheo/carbon/misc/message.d.ts +22 -0
  311. package/lib/codec/Switcheo/carbon/misc/message.js +128 -0
  312. package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +18 -0
  313. package/lib/codec/Switcheo/carbon/misc/message_type.js +60 -0
  314. package/lib/codec/Switcheo/carbon/misc/query.d.ts +192 -0
  315. package/lib/codec/Switcheo/carbon/misc/query.js +884 -0
  316. package/lib/codec/Switcheo/carbon/misc/trade.d.ts +28 -0
  317. package/lib/codec/Switcheo/carbon/misc/trade.js +224 -0
  318. package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +45 -0
  319. package/lib/codec/Switcheo/carbon/misc/transaction.js +369 -0
  320. package/lib/codec/Switcheo/carbon/oracle/event.d.ts +37 -0
  321. package/lib/codec/Switcheo/carbon/oracle/event.js +228 -0
  322. package/lib/codec/Switcheo/carbon/oracle/export.d.ts +6 -0
  323. package/lib/codec/Switcheo/carbon/oracle/export.js +58 -0
  324. package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +28 -0
  325. package/lib/codec/Switcheo/carbon/oracle/genesis.js +141 -0
  326. package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +94 -0
  327. package/lib/codec/Switcheo/carbon/oracle/oracle.js +650 -0
  328. package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +21 -0
  329. package/lib/codec/Switcheo/carbon/oracle/proposal.js +91 -0
  330. package/lib/codec/Switcheo/carbon/oracle/query.d.ts +336 -0
  331. package/lib/codec/Switcheo/carbon/oracle/query.js +1551 -0
  332. package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +33 -0
  333. package/lib/codec/Switcheo/carbon/oracle/slashing.js +191 -0
  334. package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +169 -0
  335. package/lib/codec/Switcheo/carbon/oracle/tx.js +877 -0
  336. package/lib/codec/Switcheo/carbon/order/event.d.ts +23 -0
  337. package/lib/codec/Switcheo/carbon/order/event.js +146 -0
  338. package/lib/codec/Switcheo/carbon/order/export.d.ts +5 -0
  339. package/lib/codec/Switcheo/carbon/order/export.js +39 -0
  340. package/lib/codec/Switcheo/carbon/order/genesis.d.ts +62 -0
  341. package/lib/codec/Switcheo/carbon/order/genesis.js +322 -0
  342. package/lib/codec/Switcheo/carbon/order/order.d.ts +113 -0
  343. package/lib/codec/Switcheo/carbon/order/order.js +875 -0
  344. package/lib/codec/Switcheo/carbon/order/query.d.ts +143 -0
  345. package/lib/codec/Switcheo/carbon/order/query.js +596 -0
  346. package/lib/codec/Switcheo/carbon/order/tx.d.ts +146 -0
  347. package/lib/codec/Switcheo/carbon/order/tx.js +715 -0
  348. package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +95 -0
  349. package/lib/codec/Switcheo/carbon/perpspool/event.js +561 -0
  350. package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +7 -0
  351. package/lib/codec/Switcheo/carbon/perpspool/export.js +68 -0
  352. package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +61 -0
  353. package/lib/codec/Switcheo/carbon/perpspool/genesis.js +343 -0
  354. package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +96 -0
  355. package/lib/codec/Switcheo/carbon/perpspool/market.js +493 -0
  356. package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +30 -0
  357. package/lib/codec/Switcheo/carbon/perpspool/params.js +189 -0
  358. package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +103 -0
  359. package/lib/codec/Switcheo/carbon/perpspool/pool.js +638 -0
  360. package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +247 -0
  361. package/lib/codec/Switcheo/carbon/perpspool/query.js +1141 -0
  362. package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +229 -0
  363. package/lib/codec/Switcheo/carbon/perpspool/tx.js +1144 -0
  364. package/lib/codec/Switcheo/carbon/position/event.d.ts +26 -0
  365. package/lib/codec/Switcheo/carbon/position/event.js +180 -0
  366. package/lib/codec/Switcheo/carbon/position/export.d.ts +4 -0
  367. package/lib/codec/Switcheo/carbon/position/export.js +20 -0
  368. package/lib/codec/Switcheo/carbon/position/genesis.d.ts +24 -0
  369. package/lib/codec/Switcheo/carbon/position/genesis.js +64 -0
  370. package/lib/codec/Switcheo/carbon/position/position.d.ts +74 -0
  371. package/lib/codec/Switcheo/carbon/position/position.js +601 -0
  372. package/lib/codec/Switcheo/carbon/position/query.d.ts +92 -0
  373. package/lib/codec/Switcheo/carbon/position/query.js +400 -0
  374. package/lib/codec/Switcheo/carbon/position/tx.d.ts +42 -0
  375. package/lib/codec/Switcheo/carbon/position/tx.js +127 -0
  376. package/lib/codec/Switcheo/carbon/pricing/event.d.ts +74 -0
  377. package/lib/codec/Switcheo/carbon/pricing/event.js +361 -0
  378. package/lib/codec/Switcheo/carbon/pricing/export.d.ts +6 -0
  379. package/lib/codec/Switcheo/carbon/pricing/export.js +45 -0
  380. package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +26 -0
  381. package/lib/codec/Switcheo/carbon/pricing/genesis.js +95 -0
  382. package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +22 -0
  383. package/lib/codec/Switcheo/carbon/pricing/legacy.js +93 -0
  384. package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +60 -0
  385. package/lib/codec/Switcheo/carbon/pricing/pricing.js +456 -0
  386. package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +31 -0
  387. package/lib/codec/Switcheo/carbon/pricing/proposal.js +148 -0
  388. package/lib/codec/Switcheo/carbon/pricing/query.d.ts +183 -0
  389. package/lib/codec/Switcheo/carbon/pricing/query.js +759 -0
  390. package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +131 -0
  391. package/lib/codec/Switcheo/carbon/pricing/tx.js +529 -0
  392. package/lib/codec/Switcheo/carbon/profile/event.d.ts +20 -0
  393. package/lib/codec/Switcheo/carbon/profile/event.js +78 -0
  394. package/lib/codec/Switcheo/carbon/profile/export.d.ts +4 -0
  395. package/lib/codec/Switcheo/carbon/profile/export.js +17 -0
  396. package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +24 -0
  397. package/lib/codec/Switcheo/carbon/profile/genesis.js +64 -0
  398. package/lib/codec/Switcheo/carbon/profile/profile.d.ts +20 -0
  399. package/lib/codec/Switcheo/carbon/profile/profile.js +83 -0
  400. package/lib/codec/Switcheo/carbon/profile/query.d.ts +92 -0
  401. package/lib/codec/Switcheo/carbon/profile/query.js +360 -0
  402. package/lib/codec/Switcheo/carbon/profile/tx.d.ts +43 -0
  403. package/lib/codec/Switcheo/carbon/profile/tx.js +127 -0
  404. package/lib/codec/Switcheo/carbon/sequence/export.d.ts +3 -0
  405. package/lib/codec/Switcheo/carbon/sequence/export.js +13 -0
  406. package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +30 -0
  407. package/lib/codec/Switcheo/carbon/sequence/genesis.js +122 -0
  408. package/lib/codec/Switcheo/carbon/sequence/query.d.ts +63 -0
  409. package/lib/codec/Switcheo/carbon/sequence/query.js +208 -0
  410. package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +41 -0
  411. package/lib/codec/Switcheo/carbon/sequence/tx.js +148 -0
  412. package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +4 -0
  413. package/lib/codec/Switcheo/carbon/subaccount/export.js +35 -0
  414. package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +28 -0
  415. package/lib/codec/Switcheo/carbon/subaccount/genesis.js +110 -0
  416. package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +19 -0
  417. package/lib/codec/Switcheo/carbon/subaccount/legacy.js +72 -0
  418. package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +229 -0
  419. package/lib/codec/Switcheo/carbon/subaccount/query.js +1026 -0
  420. package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +57 -0
  421. package/lib/codec/Switcheo/carbon/subaccount/subaccount.js +349 -0
  422. package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +92 -0
  423. package/lib/codec/Switcheo/carbon/subaccount/tx.js +395 -0
  424. package/lib/codec/adl/genesis.d.ts +3 -3
  425. package/lib/codec/admin/genesis.d.ts +3 -3
  426. package/lib/codec/admin/query.d.ts +6 -6
  427. package/lib/codec/admin/tx.d.ts +6 -6
  428. package/lib/codec/alliance/alliance.d.ts +5 -5
  429. package/lib/codec/alliance/delegations.d.ts +8 -8
  430. package/lib/codec/alliance/events.d.ts +6 -6
  431. package/lib/codec/alliance/genesis.d.ts +7 -7
  432. package/lib/codec/alliance/gov.d.ts +5 -5
  433. package/lib/codec/alliance/params.d.ts +4 -4
  434. package/lib/codec/alliance/query.d.ts +24 -24
  435. package/lib/codec/alliance/tx.d.ts +10 -10
  436. package/lib/codec/bank/event.d.ts +7 -7
  437. package/lib/codec/bank/genesis.d.ts +3 -3
  438. package/lib/codec/bank/query.d.ts +6 -6
  439. package/lib/codec/book/book.d.ts +6 -6
  440. package/lib/codec/book/event.d.ts +3 -3
  441. package/lib/codec/book/genesis.d.ts +3 -3
  442. package/lib/codec/book/legacy.d.ts +3 -3
  443. package/lib/codec/book/query.d.ts +12 -12
  444. package/lib/codec/broker/amm.d.ts +5 -5
  445. package/lib/codec/broker/candlestick.d.ts +3 -3
  446. package/lib/codec/broker/event.d.ts +4 -4
  447. package/lib/codec/broker/genesis.d.ts +3 -3
  448. package/lib/codec/broker/incoming_liquidations.d.ts +3 -3
  449. package/lib/codec/broker/incoming_pool_swap.d.ts +23 -0
  450. package/lib/codec/broker/incoming_pool_swap.js +136 -0
  451. package/lib/codec/broker/pagination.d.ts +3 -3
  452. package/lib/codec/broker/query.d.ts +8 -8
  453. package/lib/codec/broker/tx.d.ts +5 -5
  454. package/lib/codec/btcx/denom_cross_chain_info.d.ts +3 -3
  455. package/lib/codec/btcx/denom_info.d.ts +3 -3
  456. package/lib/codec/btcx/genesis.d.ts +3 -3
  457. package/lib/codec/btcx/query.d.ts +6 -6
  458. package/lib/codec/btcx/tx.d.ts +8 -8
  459. package/lib/codec/carbon-models.d.ts +26 -26
  460. package/lib/codec/carbon-models.js +27 -31
  461. package/lib/codec/ccm/ccm.d.ts +3 -3
  462. package/lib/codec/ccm/genesis.d.ts +7 -7
  463. package/lib/codec/ccm/query.d.ts +4 -4
  464. package/lib/codec/ccm/tx.d.ts +8 -8
  465. package/lib/codec/cdp/asset_params.d.ts +5 -5
  466. package/lib/codec/cdp/cdp_liquidations.d.ts +3 -3
  467. package/lib/codec/cdp/debt_info.d.ts +3 -3
  468. package/lib/codec/cdp/e_mode_category.d.ts +3 -3
  469. package/lib/codec/cdp/event.d.ts +36 -36
  470. package/lib/codec/cdp/genesis.d.ts +10 -10
  471. package/lib/codec/cdp/params.d.ts +3 -3
  472. package/lib/codec/cdp/query.d.ts +53 -53
  473. package/lib/codec/cdp/rate_strategy_params.d.ts +3 -3
  474. package/lib/codec/cdp/reward_scheme.d.ts +6 -6
  475. package/lib/codec/cdp/stablecoin_debt_info.d.ts +3 -3
  476. package/lib/codec/cdp/stablecoin_interest_info.d.ts +3 -3
  477. package/lib/codec/cdp/tx.d.ts +87 -87
  478. package/lib/codec/coin/bridge.d.ts +3 -3
  479. package/lib/codec/coin/event.d.ts +14 -14
  480. package/lib/codec/coin/genesis.d.ts +4 -4
  481. package/lib/codec/coin/group.d.ts +5 -5
  482. package/lib/codec/coin/proposal.d.ts +3 -3
  483. package/lib/codec/coin/query.d.ts +26 -26
  484. package/lib/codec/coin/token.d.ts +9 -9
  485. package/lib/codec/coin/tx.d.ts +48 -48
  486. package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
  487. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +4 -4
  488. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
  489. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
  490. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +5 -5
  491. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
  492. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +20 -20
  493. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
  494. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
  495. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
  496. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
  497. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
  498. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
  499. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
  500. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
  501. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +21 -21
  502. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +6 -6
  503. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +12 -12
  504. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
  505. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +4 -4
  506. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
  507. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
  508. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
  509. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
  510. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
  511. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
  512. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
  513. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
  514. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
  515. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
  516. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
  517. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
  518. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +4 -4
  519. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
  520. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
  521. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
  522. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
  523. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
  524. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
  525. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
  526. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
  527. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
  528. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +22 -22
  529. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +10 -10
  530. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
  531. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
  532. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
  533. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
  534. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
  535. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
  536. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
  537. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
  538. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
  539. package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
  540. package/lib/codec/cosmos/gov/v1/gov.d.ts +10 -10
  541. package/lib/codec/cosmos/gov/v1/query.d.ts +18 -18
  542. package/lib/codec/cosmos/gov/v1/query.js +2 -2
  543. package/lib/codec/cosmos/gov/v1/tx.d.ts +12 -12
  544. package/lib/codec/cosmos/gov/v1/tx.js +2 -2
  545. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  546. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
  547. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
  548. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  549. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
  550. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  551. package/lib/codec/cosmos/group/v1/events.d.ts +11 -11
  552. package/lib/codec/cosmos/group/v1/events.js +2 -2
  553. package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
  554. package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
  555. package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
  556. package/lib/codec/cosmos/group/v1/tx.js +4 -4
  557. package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
  558. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
  559. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
  560. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
  561. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
  562. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
  563. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
  564. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
  565. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
  566. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
  567. package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
  568. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
  569. package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
  570. package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
  571. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
  572. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
  573. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
  574. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +4 -4
  575. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
  576. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
  577. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
  578. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +22 -22
  579. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +14 -14
  580. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
  581. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +12 -12
  582. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
  583. package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
  584. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
  585. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
  586. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
  587. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
  588. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
  589. package/lib/codec/cosmos-models.js +1 -5
  590. package/lib/codec/crisis/genesis.d.ts +18 -0
  591. package/lib/codec/crisis/genesis.js +46 -0
  592. package/lib/codec/crisis/query.d.ts +43 -0
  593. package/lib/codec/crisis/query.js +103 -0
  594. package/lib/codec/crisis/tx.d.ts +12 -0
  595. package/lib/codec/crisis/tx.js +20 -0
  596. package/lib/codec/erc20/erc20.d.ts +3 -3
  597. package/lib/codec/erc20/events.d.ts +6 -6
  598. package/lib/codec/erc20/genesis.d.ts +4 -4
  599. package/lib/codec/erc20/query.d.ts +8 -8
  600. package/lib/codec/erc20/tx.d.ts +16 -16
  601. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
  602. package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
  603. package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
  604. package/lib/codec/ethermint/evm/v1/export.d.ts +1 -2
  605. package/lib/codec/ethermint/evm/v1/export.js +1 -8
  606. package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
  607. package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
  608. package/lib/codec/ethermint/evm/v1/tx.d.ts +9 -45
  609. package/lib/codec/ethermint/evm/v1/tx.js +1 -100
  610. package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
  611. package/lib/codec/ethermint/feemarket/v1/export.d.ts +0 -2
  612. package/lib/codec/ethermint/feemarket/v1/export.js +1 -7
  613. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -13
  614. package/lib/codec/ethermint/feemarket/v1/feemarket.js +1 -28
  615. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
  616. package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
  617. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +4 -4
  618. package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
  619. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
  620. package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
  621. package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
  622. package/lib/codec/ethermint-models.js +1 -5
  623. package/lib/codec/evmbank/genesis.d.ts +4 -4
  624. package/lib/codec/evmbank/query.d.ts +4 -4
  625. package/lib/codec/evmcontract/genesis.d.ts +3 -3
  626. package/lib/codec/evmmerge/address.d.ts +3 -3
  627. package/lib/codec/evmmerge/event.d.ts +3 -3
  628. package/lib/codec/evmmerge/genesis.d.ts +5 -5
  629. package/lib/codec/evmmerge/offchain.d.ts +3 -3
  630. package/lib/codec/evmmerge/query.d.ts +6 -6
  631. package/lib/codec/evmmerge/tx.d.ts +4 -4
  632. package/lib/codec/fee/event.d.ts +3 -3
  633. package/lib/codec/fee/fee.d.ts +5 -5
  634. package/lib/codec/fee/genesis.d.ts +3 -3
  635. package/lib/codec/fee/proposal.d.ts +6 -6
  636. package/lib/codec/fee/query.d.ts +10 -10
  637. package/lib/codec/fee/tx.d.ts +10 -10
  638. package/lib/codec/google/protobuf/any.d.ts +3 -3
  639. package/lib/codec/google/protobuf/duration.d.ts +3 -3
  640. package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
  641. package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
  642. package/lib/codec/headersync/consensus_peers.d.ts +7 -7
  643. package/lib/codec/headersync/genesis.d.ts +7 -7
  644. package/lib/codec/headersync/query.d.ts +6 -6
  645. package/lib/codec/headersync/tx.d.ts +6 -6
  646. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
  647. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
  648. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
  649. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
  650. package/lib/codec/ibc/applications/fee/v1/query.d.ts +22 -22
  651. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
  652. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -2
  653. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +1 -8
  654. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
  655. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +4 -30
  656. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +1 -113
  657. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +6 -6
  658. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
  659. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
  660. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
  661. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
  662. package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +1 -0
  663. package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +6 -1
  664. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +76 -0
  665. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +424 -0
  666. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
  667. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
  668. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
  669. package/lib/codec/ibc/applications/transfer/v1/export.js +1 -3
  670. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
  671. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +11 -40
  672. package/lib/codec/ibc/applications/transfer/v1/query.js +1 -110
  673. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
  674. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +8 -12
  675. package/lib/codec/ibc/applications/transfer/v1/tx.js +6 -35
  676. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -5
  677. package/lib/codec/ibc/applications/transfer/v2/packet.js +1 -14
  678. package/lib/codec/ibc/core/channel/v1/channel.d.ts +8 -28
  679. package/lib/codec/ibc/core/channel/v1/channel.js +1 -78
  680. package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
  681. package/lib/codec/ibc/core/channel/v1/export.js +2 -3
  682. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
  683. package/lib/codec/ibc/core/channel/v1/query.d.ts +28 -28
  684. package/lib/codec/ibc/core/channel/v1/tx.d.ts +34 -37
  685. package/lib/codec/ibc/core/channel/v1/tx.js +25 -50
  686. package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
  687. package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
  688. package/lib/codec/ibc/core/client/v1/export.js +1 -3
  689. package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
  690. package/lib/codec/ibc/core/client/v1/query.d.ts +19 -56
  691. package/lib/codec/ibc/core/client/v1/query.js +1 -137
  692. package/lib/codec/ibc/core/client/v1/tx.d.ts +10 -10
  693. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
  694. package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
  695. package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
  696. package/lib/codec/ibc/core/connection/v1/export.js +1 -3
  697. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
  698. package/lib/codec/ibc/core/connection/v1/query.d.ts +13 -38
  699. package/lib/codec/ibc/core/connection/v1/query.js +1 -87
  700. package/lib/codec/ibc/core/connection/v1/tx.d.ts +12 -13
  701. package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
  702. package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
  703. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
  704. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
  705. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +11 -13
  706. package/lib/codec/ibc-models.js +1 -5
  707. package/lib/codec/index.d.ts +164 -173
  708. package/lib/codec/index.js +11974 -12592
  709. package/lib/codec/inflation/genesis.d.ts +3 -3
  710. package/lib/codec/inflation/inflation.d.ts +3 -3
  711. package/lib/codec/inflation/query.d.ts +4 -4
  712. package/lib/codec/insurance/event.d.ts +3 -3
  713. package/lib/codec/insurance/fund.d.ts +4 -4
  714. package/lib/codec/insurance/genesis.d.ts +3 -3
  715. package/lib/codec/insurance/query.d.ts +4 -4
  716. package/lib/codec/insurance/tx.d.ts +4 -4
  717. package/lib/codec/leverage/event.d.ts +3 -3
  718. package/lib/codec/leverage/genesis.d.ts +3 -3
  719. package/lib/codec/leverage/leverage.d.ts +4 -4
  720. package/lib/codec/leverage/query.d.ts +6 -6
  721. package/lib/codec/leverage/tx.d.ts +4 -4
  722. package/lib/codec/liquidation/genesis.d.ts +4 -4
  723. package/lib/codec/liquidation/liquidation.d.ts +3 -3
  724. package/lib/codec/liquidation/outstanding_position.d.ts +4 -4
  725. package/lib/codec/liquidation/query.d.ts +6 -6
  726. package/lib/codec/liquidation/quote_changes.d.ts +3 -3
  727. package/lib/codec/liquiditypool/event.d.ts +15 -15
  728. package/lib/codec/liquiditypool/genesis.d.ts +3 -3
  729. package/lib/codec/liquiditypool/liquiditypool.d.ts +12 -12
  730. package/lib/codec/liquiditypool/proposal.d.ts +11 -11
  731. package/lib/codec/liquiditypool/query.d.ts +31 -31
  732. package/lib/codec/liquiditypool/reward.d.ts +18 -18
  733. package/lib/codec/liquiditypool/tx.d.ts +39 -39
  734. package/lib/codec/lockproxy/event.d.ts +4 -4
  735. package/lib/codec/lockproxy/genesis.d.ts +6 -6
  736. package/lib/codec/lockproxy/lockproxy.d.ts +3 -3
  737. package/lib/codec/lockproxy/query.d.ts +6 -6
  738. package/lib/codec/lockproxy/tx.d.ts +12 -12
  739. package/lib/codec/market/event.d.ts +3 -3
  740. package/lib/codec/market/fee.d.ts +7 -7
  741. package/lib/codec/market/genesis.d.ts +3 -3
  742. package/lib/codec/market/legacy.d.ts +62 -0
  743. package/lib/codec/market/legacy.js +630 -0
  744. package/lib/codec/market/market.d.ts +7 -7
  745. package/lib/codec/market/proposal.d.ts +5 -5
  746. package/lib/codec/market/query.d.ts +20 -20
  747. package/lib/codec/market/tx.d.ts +21 -21
  748. package/lib/codec/marketstats/genesis.d.ts +3 -3
  749. package/lib/codec/marketstats/marketstats.d.ts +3 -3
  750. package/lib/codec/marketstats/params.d.ts +3 -3
  751. package/lib/codec/marketstats/query.d.ts +6 -6
  752. package/lib/codec/misc/block.d.ts +3 -3
  753. package/lib/codec/misc/message.d.ts +3 -3
  754. package/lib/codec/misc/message_type.d.ts +3 -3
  755. package/lib/codec/misc/query.d.ts +16 -16
  756. package/lib/codec/misc/trade.d.ts +3 -3
  757. package/lib/codec/misc/transaction.d.ts +4 -4
  758. package/lib/codec/oracle/event.d.ts +4 -4
  759. package/lib/codec/oracle/genesis.d.ts +3 -3
  760. package/lib/codec/oracle/oracle.d.ts +8 -8
  761. package/lib/codec/oracle/proposal.d.ts +3 -3
  762. package/lib/codec/oracle/query.d.ts +28 -28
  763. package/lib/codec/oracle/slashing.d.ts +4 -4
  764. package/lib/codec/oracle/tx.d.ts +14 -14
  765. package/lib/codec/order/event.d.ts +3 -3
  766. package/lib/codec/order/genesis.d.ts +6 -6
  767. package/lib/codec/order/order.d.ts +9 -9
  768. package/lib/codec/order/query.d.ts +12 -12
  769. package/lib/codec/order/tx.d.ts +12 -12
  770. package/lib/codec/perpspool/event.d.ts +9 -9
  771. package/lib/codec/perpspool/genesis.d.ts +6 -6
  772. package/lib/codec/perpspool/market.d.ts +8 -8
  773. package/lib/codec/perpspool/params.d.ts +3 -3
  774. package/lib/codec/perpspool/pool.d.ts +8 -8
  775. package/lib/codec/perpspool/query.d.ts +20 -20
  776. package/lib/codec/perpspool/tx.d.ts +18 -18
  777. package/lib/codec/polynetwork-models.d.ts +4 -4
  778. package/lib/codec/polynetwork-models.js +5 -9
  779. package/lib/codec/position/event.d.ts +3 -3
  780. package/lib/codec/position/genesis.d.ts +3 -3
  781. package/lib/codec/position/position.d.ts +6 -6
  782. package/lib/codec/position/query.d.ts +8 -8
  783. package/lib/codec/position/tx.d.ts +4 -4
  784. package/lib/codec/pricing/event.d.ts +8 -8
  785. package/lib/codec/pricing/genesis.d.ts +3 -3
  786. package/lib/codec/pricing/legacy.d.ts +3 -3
  787. package/lib/codec/pricing/pricing.d.ts +5 -5
  788. package/lib/codec/pricing/proposal.d.ts +4 -4
  789. package/lib/codec/pricing/query.d.ts +16 -16
  790. package/lib/codec/pricing/tx.d.ts +12 -12
  791. package/lib/codec/profile/event.d.ts +3 -3
  792. package/lib/codec/profile/genesis.d.ts +3 -3
  793. package/lib/codec/profile/profile.d.ts +3 -3
  794. package/lib/codec/profile/query.d.ts +8 -8
  795. package/lib/codec/profile/tx.d.ts +4 -4
  796. package/lib/codec/proofs.d.ts +15 -16
  797. package/lib/codec/proofs.js +0 -6
  798. package/lib/codec/query/pagination.d.ts +29 -0
  799. package/lib/codec/query/pagination.js +126 -0
  800. package/lib/codec/sequence/genesis.d.ts +4 -4
  801. package/lib/codec/sequence/query.d.ts +6 -6
  802. package/lib/codec/sequence/tx.d.ts +4 -4
  803. package/lib/codec/subaccount/export.d.ts +1 -1
  804. package/lib/codec/subaccount/export.js +3 -1
  805. package/lib/codec/subaccount/genesis.d.ts +3 -3
  806. package/lib/codec/subaccount/legacy.d.ts +3 -3
  807. package/lib/codec/subaccount/query.d.ts +42 -17
  808. package/lib/codec/subaccount/query.js +115 -1
  809. package/lib/codec/subaccount/subaccount.d.ts +6 -6
  810. package/lib/codec/subaccount/tx.d.ts +8 -8
  811. package/lib/codec/tendermint/abci/types.d.ts +46 -46
  812. package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
  813. package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
  814. package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
  815. package/lib/codec/tendermint/p2p/types.d.ts +6 -6
  816. package/lib/codec/tendermint/types/block.d.ts +3 -3
  817. package/lib/codec/tendermint/types/evidence.d.ts +6 -6
  818. package/lib/codec/tendermint/types/params.d.ts +8 -8
  819. package/lib/codec/tendermint/types/types.d.ts +15 -15
  820. package/lib/codec/tendermint/types/validator.d.ts +5 -5
  821. package/lib/codec/tendermint/version/types.d.ts +4 -4
  822. package/lib/constant/address.d.ts +1 -1
  823. package/lib/constant/generic.js +1 -1
  824. package/lib/constant/ibc.d.ts +4 -4
  825. package/lib/constant/ibc.js +1 -5
  826. package/lib/constant/index.js +1 -5
  827. package/lib/constant/node.d.ts +1 -1
  828. package/lib/constant/token.d.ts +0 -1
  829. package/lib/eth/index.js +1 -5
  830. package/lib/hydrogen/index.js +1 -5
  831. package/lib/hydrogen/transfer.d.ts +2 -2
  832. package/lib/index.js +1 -5
  833. package/lib/insights/balance.d.ts +3 -3
  834. package/lib/insights/common.d.ts +1 -1
  835. package/lib/insights/index.js +1 -5
  836. package/lib/insights/position.d.ts +1 -1
  837. package/lib/modules/broker.js +1 -1
  838. package/lib/modules/cdp.d.ts +1 -1
  839. package/lib/modules/cdp.js +49 -50
  840. package/lib/modules/coin.js +1 -1
  841. package/lib/modules/cosmwasm.d.ts +2 -2
  842. package/lib/modules/cosmwasm.js +4 -4
  843. package/lib/modules/evm.d.ts +1 -2
  844. package/lib/modules/evm.js +7 -49
  845. package/lib/modules/gov.d.ts +1 -1
  846. package/lib/modules/gov.js +18 -18
  847. package/lib/modules/ibc.d.ts +1 -1
  848. package/lib/modules/index.d.ts +0 -1
  849. package/lib/modules/index.js +1 -6
  850. package/lib/modules/leverage.js +1 -1
  851. package/lib/modules/liquiditypool.js +1 -1
  852. package/lib/modules/market.js +1 -1
  853. package/lib/modules/oracle.js +1 -1
  854. package/lib/modules/order.js +3 -3
  855. package/lib/modules/position.js +1 -1
  856. package/lib/modules/profile.js +1 -1
  857. package/lib/modules/subaccount.d.ts +7 -1
  858. package/lib/modules/subaccount.js +8 -2
  859. package/lib/modules/vault.d.ts +56 -0
  860. package/lib/modules/vault.js +128 -0
  861. package/lib/modules/xchain.js +2 -2
  862. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.d.ts +1 -1
  863. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  864. package/lib/provider/account/EthLedgerAccount/index.js +1 -5
  865. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  866. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +1 -5
  867. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  868. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +2 -2
  869. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +4 -8
  870. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  871. package/lib/provider/account/NeoLedgerAccount/index.js +1 -5
  872. package/lib/provider/account/index.js +1 -5
  873. package/lib/provider/amino/types/admin.js +28 -32
  874. package/lib/provider/amino/types/bank.js +2 -6
  875. package/lib/provider/amino/types/broker.js +2 -6
  876. package/lib/provider/amino/types/cdp.js +27 -31
  877. package/lib/provider/amino/types/coin.js +5 -9
  878. package/lib/provider/amino/types/erc20.js +3 -7
  879. package/lib/provider/amino/types/evm.js +2 -12
  880. package/lib/provider/amino/types/evmmerge.js +2 -6
  881. package/lib/provider/amino/types/feemarket.js +2 -6
  882. package/lib/provider/amino/types/gov.js +6 -10
  883. package/lib/provider/amino/types/ibc.js +2 -6
  884. package/lib/provider/amino/types/leverage.js +2 -6
  885. package/lib/provider/amino/types/liquidityPool.js +8 -12
  886. package/lib/provider/amino/types/market.js +7 -11
  887. package/lib/provider/amino/types/oracle.js +3 -7
  888. package/lib/provider/amino/types/order.js +5 -9
  889. package/lib/provider/amino/types/perpspool.js +7 -11
  890. package/lib/provider/amino/types/position.js +2 -6
  891. package/lib/provider/amino/types/profile.js +2 -6
  892. package/lib/provider/amino/types/staking.js +5 -9
  893. package/lib/provider/amino/types/subaccount.js +4 -8
  894. package/lib/provider/amino/utils.d.ts +2 -2
  895. package/lib/provider/amino/utils.js +11 -11
  896. package/lib/provider/keplr/KeplrAccount.js +6 -6
  897. package/lib/provider/leap/LeapAccount.js +2 -2
  898. package/lib/provider/ledger/ledger.js +6 -9
  899. package/lib/provider/metamask/MetaMask.d.ts +1 -1
  900. package/lib/provider/metamask/MetaMask.js +24 -28
  901. package/lib/provider/metamask/error.d.ts +1 -1
  902. package/lib/provider/o3/O3Types.d.ts +1 -1
  903. package/lib/provider/o3/O3Wallet.js +11 -15
  904. package/lib/provider/o3/index.js +1 -5
  905. package/lib/provider/station/StationAccount.d.ts +28 -0
  906. package/lib/provider/station/StationAccount.js +168 -0
  907. package/lib/provider/station/index.d.ts +2 -0
  908. package/lib/provider/station/index.js +10 -0
  909. package/lib/provider/zilpay/Zilpay.js +4 -4
  910. package/lib/provider/zilpay/index.js +1 -5
  911. package/lib/util/address.d.ts +6 -6
  912. package/lib/util/address.js +16 -20
  913. package/lib/util/api.d.ts +3 -3
  914. package/lib/util/api.js +4 -4
  915. package/lib/util/blockchain.d.ts +7 -7
  916. package/lib/util/blockchain.js +4 -4
  917. package/lib/util/eip712.js +3 -3
  918. package/lib/util/external.d.ts +1 -1
  919. package/lib/util/fetch.js +1 -1
  920. package/lib/util/generic.d.ts +5 -6
  921. package/lib/util/generic.js +4 -4
  922. package/lib/util/gov.d.ts +1 -1
  923. package/lib/util/index.js +1 -5
  924. package/lib/util/legacyEIP712.d.ts +2 -2
  925. package/lib/util/legacyEIP712.js +2 -2
  926. package/lib/util/network.js +3 -3
  927. package/lib/util/number.d.ts +4 -4
  928. package/lib/util/number.js +5 -5
  929. package/lib/util/tx.d.ts +155 -171
  930. package/lib/util/tx.js +1 -5
  931. package/lib/util/type.d.ts +1 -1
  932. package/lib/wallet/CarbonSigner.d.ts +5 -5
  933. package/lib/wallet/CarbonSigner.js +6 -6
  934. package/lib/wallet/CarbonSigningClient.d.ts +2 -2
  935. package/lib/wallet/CarbonSigningClient.js +15 -15
  936. package/lib/wallet/CarbonWallet.d.ts +5 -5
  937. package/lib/wallet/CarbonWallet.js +13 -13
  938. package/lib/wallet/index.js +1 -5
  939. package/lib/websocket/connector.js +4 -8
  940. package/lib/websocket/index.js +1 -5
  941. package/lib/websocket/types.d.ts +1 -1
  942. package/package.json +3 -3
  943. package/lib/modules/test.d.ts +0 -0
  944. package/lib/modules/test.js +0 -1
@@ -1,11 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import { Network, NetworkConfig, Network as _Network } from "./constant";
3
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
3
+ import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
4
4
  import * as clients from "./clients";
5
5
  import { CarbonQueryClient, ETHClient, HydrogenClient, InsightsQueryClient, NEOClient, TokenClient, ZILClient } from "./clients";
6
6
  import GrpcQueryClient from "./clients/GrpcQueryClient";
7
7
  import N3Client from "./clients/N3Client";
8
- import { AdminModule, AllianceModule, BankModule, BrokerModule, CDPModule, CoinModule, ERC20Module, EvmMergeModule, EvmModule, FeeModule, FeemarketModule, GovModule, IBCModule, LeverageModule, LiquidityPoolModule, MarketModule, OracleModule, OrderModule, PerpspoolModule, PositionModule, ProfileModule, SubAccountModule, XChainModule } from "./modules";
8
+ import { AdminModule, AllianceModule, BankModule, BrokerModule, CDPModule, CoinModule, ERC20Module, EvmMergeModule, EvmModule, FeeModule, GovModule, IBCModule, LeverageModule, LiquidityPoolModule, MarketModule, OracleModule, OrderModule, PerpspoolModule, PositionModule, ProfileModule, SubAccountModule, XChainModule } from "./modules";
9
9
  import { StakingModule } from "./modules/staking";
10
10
  import { CosmosLedger, Keplr, LeapExtended } from "./provider";
11
11
  import { MetaMask } from "./provider/metamask/MetaMask";
@@ -16,7 +16,7 @@ export { DenomPrefix } from "./constant";
16
16
  export * as Carbon from "./codec/carbon-models";
17
17
  export interface CarbonSDKOpts {
18
18
  network: Network;
19
- tmClient: Tendermint34Client;
19
+ tmClient: Tendermint37Client;
20
20
  wallet?: CarbonWallet;
21
21
  chainId?: string;
22
22
  evmChainId?: string;
@@ -31,7 +31,7 @@ export interface CarbonSDKOpts {
31
31
  }
32
32
  export interface CarbonSDKInitOpts {
33
33
  network: Network;
34
- tmClient?: Tendermint34Client;
34
+ tmClient?: Tendermint37Client;
35
35
  config?: Partial<NetworkConfig>;
36
36
  wallet?: CarbonWallet;
37
37
  skipInit?: boolean;
@@ -61,7 +61,7 @@ declare class CarbonSDK {
61
61
  network: Network;
62
62
  configOverride: Partial<NetworkConfig>;
63
63
  networkConfig: NetworkConfig;
64
- tmClient: Tendermint34Client;
64
+ tmClient: Tendermint37Client;
65
65
  token: TokenClient;
66
66
  admin: AdminModule;
67
67
  alliance: AllianceModule;
@@ -86,7 +86,6 @@ declare class CarbonSDK {
86
86
  xchain: XChainModule;
87
87
  evm: EvmModule;
88
88
  evmmerge: EvmMergeModule;
89
- feemarket: FeemarketModule;
90
89
  neo: NEOClient;
91
90
  eth: ETHClient;
92
91
  bsc: ETHClient;
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];
@@ -80,7 +76,7 @@ class CarbonSDK {
80
76
  if (!opts.query) {
81
77
  let grpcClient;
82
78
  if (opts.useTmAbciQuery !== true && this.networkConfig.grpcUrl) {
83
- const transport = typeof window === "undefined" ? (0, grpc_web_node_http_transport_1.NodeHttpTransport)() : undefined;
79
+ const transport = typeof window === "undefined" ? grpc_web_node_http_transport_1.NodeHttpTransport() : undefined;
84
80
  grpcClient = (_h = opts.grpcQueryClient) !== null && _h !== void 0 ? _h : new GrpcQueryClient_1.default(this.networkConfig.grpcWebUrl, {
85
81
  transport,
86
82
  });
@@ -117,7 +113,6 @@ class CarbonSDK {
117
113
  this.xchain = new modules_1.XChainModule(this);
118
114
  this.evm = new modules_1.EvmModule(this);
119
115
  this.evmmerge = new modules_1.EvmMergeModule(this);
120
- this.feemarket = new modules_1.FeemarketModule(this);
121
116
  this.neo = clients_1.NEOClient.instance({
122
117
  configProvider: this,
123
118
  blockchain: blockchain_1.Blockchain.Neo,
@@ -163,7 +158,7 @@ class CarbonSDK {
163
158
  const configOverride = (_b = opts.config) !== null && _b !== void 0 ? _b : {};
164
159
  const defaultTimeoutBlocks = opts.defaultTimeoutBlocks;
165
160
  const networkConfig = util_1.GenericUtils.overrideConfig(constant_1.NetworkConfigs[network], configOverride);
166
- const tmClient = (_c = opts.tmClient) !== null && _c !== void 0 ? _c : new tendermint_rpc_1.Tendermint34Client(new clients.BatchQueryClient(networkConfig.tmRpcUrl)); // fallback tmClient
161
+ const tmClient = (_c = opts.tmClient) !== null && _c !== void 0 ? _c : new tendermint_rpc_1.Tendermint37Client(new clients.BatchQueryClient(networkConfig.tmRpcUrl)); // fallback tmClient
167
162
  let chainId = networkConfig.chainId; // fallback chain ID
168
163
  let normalInit = true;
169
164
  try {
@@ -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 {
@@ -1,16 +1,16 @@
1
1
  import { StargateClient } from "@cosmjs/stargate";
2
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
2
+ import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
3
3
  /**
4
4
  * BlockchainClient is functionally the same with StargateClient,
5
5
  * with an additional static initializer:
6
6
  *
7
7
  * ```
8
- * BlockchainClient.connectWithTm(tmClient: Tendermint34Client)
8
+ * BlockchainClient.connectWithTm(tmClient: Tendermint37Client)
9
9
  * ```
10
10
  *
11
11
  * @see StargateClient
12
12
  */
13
13
  declare class BlockchainClient extends StargateClient {
14
- static connectWithTm(tmClient: Tendermint34Client): BlockchainClient;
14
+ static connectWithTm(tmClient: Tendermint37Client): BlockchainClient;
15
15
  }
16
16
  export default BlockchainClient;
@@ -6,7 +6,7 @@ const stargate_1 = require("@cosmjs/stargate");
6
6
  * with an additional static initializer:
7
7
  *
8
8
  * ```
9
- * BlockchainClient.connectWithTm(tmClient: Tendermint34Client)
9
+ * BlockchainClient.connectWithTm(tmClient: Tendermint37Client)
10
10
  * ```
11
11
  *
12
12
  * @see StargateClient
@@ -1,51 +1,51 @@
1
- import { QueryClientImpl as ADLQueryClient } from "@carbon-sdk/codec/adl/query";
2
- import { QueryClientImpl as BookQueryClient } from "@carbon-sdk/codec/book/query";
3
- import { QueryClientImpl as BrokerQueryClient } from "@carbon-sdk/codec/broker/query";
4
- import { QueryClientImpl as CDPQueryClient } from "@carbon-sdk/codec/cdp/query";
5
- import { QueryClientImpl as CoinQueryClient } from "@carbon-sdk/codec/coin/query";
6
- import { QueryClientImpl as AuthQueryClient } from "@carbon-sdk/codec/cosmos/auth/v1beta1/query";
7
- import { QueryClientImpl as BankQueryClient } from "@carbon-sdk/codec/cosmos/bank/v1beta1/query";
8
- import { QueryClientImpl as NativeBankQueryClient } from "@carbon-sdk/codec/bank/query";
9
- import { ServiceClientImpl as CosmosTmClient } from "@carbon-sdk/codec/cosmos/base/tendermint/v1beta1/query";
10
- import { QueryClientImpl as DistributionQueryClient } from "@carbon-sdk/codec/cosmos/distribution/v1beta1/query";
11
- import { QueryClientImpl as EvidenceQueryClient } from "@carbon-sdk/codec/cosmos/evidence/v1beta1/query";
12
- import { QueryClientImpl as GovQueryClient } from "@carbon-sdk/codec/cosmos/gov/v1beta1/query";
13
- import { QueryClientImpl as GroupQueryClient } from "@carbon-sdk/codec/cosmos/group/v1/query";
14
- import { QueryClientImpl as MintQueryClient } from "@carbon-sdk/codec/cosmos/mint/v1beta1/query";
15
- import { QueryClientImpl as ParamsQueryClient } from "@carbon-sdk/codec/cosmos/params/v1beta1/query";
16
- import { QueryClientImpl as SlashingQueryClient } from "@carbon-sdk/codec/cosmos/slashing/v1beta1/query";
17
- import { QueryClientImpl as StakingQueryClient } from "@carbon-sdk/codec/cosmos/staking/v1beta1/query";
18
- import { QueryClientImpl as UpgradeQueryClient } from "@carbon-sdk/codec/cosmos/upgrade/v1beta1/query";
19
- import { QueryClientImpl as EthermintEVMQueryClient } from "@carbon-sdk/codec/ethermint/evm/v1/query";
20
- import { QueryClientImpl as EvmMergeQueryClient } from "@carbon-sdk/codec/evmmerge/query";
21
- import { QueryClientImpl as EvmBankQueryClient } from "@carbon-sdk/codec/evmbank/query";
22
- import { QueryClientImpl as EthermintFeeMarketQueryClient } from "@carbon-sdk/codec/ethermint/feemarket/v1/query";
23
- import { QueryClientImpl as FeeQueryClient } from "@carbon-sdk/codec/fee/query";
24
- import { QueryClientImpl as HeadersyncQueryClient } from "@carbon-sdk/codec/headersync/query";
25
- import { QueryClientImpl as IBCInterchainControlQueryClient } from "@carbon-sdk/codec/ibc/applications/interchain_accounts/controller/v1/query";
26
- import { QueryClientImpl as IBCInterchainHostQueryClient } from "@carbon-sdk/codec/ibc/applications/interchain_accounts/host/v1/query";
27
- import { QueryClientImpl as IBCTransferQueryClient } from "@carbon-sdk/codec/ibc/applications/transfer/v1/query";
28
- import { QueryClientImpl as IBCClientQueryClient } from "@carbon-sdk/codec/ibc/core/client/v1/query";
29
- import { QueryClientImpl as IBCConnectionQueryClient } from "@carbon-sdk/codec/ibc/core/connection/v1/query";
30
- import { QueryClientImpl as IBCChannelQueryClient } from "@carbon-sdk/codec/ibc/core/channel/v1/query";
31
- import { QueryClientImpl as InflationQueryClient } from "@carbon-sdk/codec/inflation/query";
32
- import { QueryClientImpl as InsuranceQueryClient } from "@carbon-sdk/codec/insurance/query";
33
- import { QueryClientImpl as LeverageQueryClient } from "@carbon-sdk/codec/leverage/query";
34
- import { QueryClientImpl as LiquidationQueryClient } from "@carbon-sdk/codec/liquidation/query";
35
- import { QueryClientImpl as LiquidityPoolQueryClient } from "@carbon-sdk/codec/liquiditypool/query";
36
- import { QueryClientImpl as MarketQueryClient } from "@carbon-sdk/codec/market/query";
37
- import { QueryClientImpl as MarketStatsQueryClient } from "@carbon-sdk/codec/marketstats/query";
38
- import { QueryClientImpl as MiscQueryClient } from "@carbon-sdk/codec/misc/query";
39
- import { QueryClientImpl as OracleQueryClient } from "@carbon-sdk/codec/oracle/query";
40
- import { QueryClientImpl as OrderQueryClient } from "@carbon-sdk/codec/order/query";
41
- import { QueryClientImpl as PositionQueryClient } from "@carbon-sdk/codec/position/query";
42
- import { QueryClientImpl as PricingQueryClient } from "@carbon-sdk/codec/pricing/query";
43
- import { QueryClientImpl as ProfileQueryClient } from "@carbon-sdk/codec/profile/query";
44
- import { QueryClientImpl as SubaccountQueryClient } from "@carbon-sdk/codec/subaccount/query";
45
- import { QueryClientImpl as AllianceClient } from "@carbon-sdk/codec/alliance/query";
46
- import { QueryClientImpl as PerpspoolQueryClient } from "@carbon-sdk/codec/perpspool/query";
47
- import { QueryClientImpl as ERC20QueryClient } from "@carbon-sdk/codec/erc20/query";
48
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
1
+ import { QueryClientImpl as ADLQueryClient } from "../codec/Switcheo/carbon/adl/query";
2
+ import { QueryClientImpl as BookQueryClient } from "../codec/Switcheo/carbon/book/query";
3
+ import { QueryClientImpl as BrokerQueryClient } from "../codec/Switcheo/carbon/broker/query";
4
+ import { QueryClientImpl as CDPQueryClient } from "../codec/Switcheo/carbon/cdp/query";
5
+ import { QueryClientImpl as CoinQueryClient } from "../codec/Switcheo/carbon/coin/query";
6
+ import { QueryClientImpl as AuthQueryClient } from "../codec/cosmos/auth/v1beta1/query";
7
+ import { QueryClientImpl as BankQueryClient } from "../codec/cosmos/bank/v1beta1/query";
8
+ import { QueryClientImpl as NativeBankQueryClient } from "../codec/Switcheo/carbon/bank/query";
9
+ import { ServiceClientImpl as CosmosTmClient } from "../codec/cosmos/base/tendermint/v1beta1/query";
10
+ import { QueryClientImpl as DistributionQueryClient } from "../codec/cosmos/distribution/v1beta1/query";
11
+ import { QueryClientImpl as EvidenceQueryClient } from "../codec/cosmos/evidence/v1beta1/query";
12
+ import { QueryClientImpl as GovQueryClient } from "../codec/cosmos/gov/v1beta1/query";
13
+ import { QueryClientImpl as GroupQueryClient } from "../codec/cosmos/group/v1/query";
14
+ import { QueryClientImpl as MintQueryClient } from "../codec/cosmos/mint/v1beta1/query";
15
+ import { QueryClientImpl as ParamsQueryClient } from "../codec/cosmos/params/v1beta1/query";
16
+ import { QueryClientImpl as SlashingQueryClient } from "../codec/cosmos/slashing/v1beta1/query";
17
+ import { QueryClientImpl as StakingQueryClient } from "../codec/cosmos/staking/v1beta1/query";
18
+ import { QueryClientImpl as UpgradeQueryClient } from "../codec/cosmos/upgrade/v1beta1/query";
19
+ import { QueryClientImpl as EthermintEVMQueryClient } from "../codec/ethermint/evm/v1/query";
20
+ import { QueryClientImpl as EvmMergeQueryClient } from "../codec/Switcheo/carbon/evmmerge/query";
21
+ import { QueryClientImpl as EvmBankQueryClient } from "../codec/Switcheo/carbon/evmbank/query";
22
+ import { QueryClientImpl as EthermintFeeMarketQueryClient } from "../codec/ethermint/feemarket/v1/query";
23
+ import { QueryClientImpl as FeeQueryClient } from "../codec/Switcheo/carbon/fee/query";
24
+ import { QueryClientImpl as HeadersyncQueryClient } from "../codec/Switcheo/carbon/headersync/query";
25
+ import { QueryClientImpl as IBCInterchainControlQueryClient } from "../codec/ibc/applications/interchain_accounts/controller/v1/query";
26
+ import { QueryClientImpl as IBCInterchainHostQueryClient } from "../codec/ibc/applications/interchain_accounts/host/v1/query";
27
+ import { QueryClientImpl as IBCTransferQueryClient } from "../codec/ibc/applications/transfer/v1/query";
28
+ import { QueryClientImpl as IBCClientQueryClient } from "../codec/ibc/core/client/v1/query";
29
+ import { QueryClientImpl as IBCConnectionQueryClient } from "../codec/ibc/core/connection/v1/query";
30
+ import { QueryClientImpl as IBCChannelQueryClient } from "../codec/ibc/core/channel/v1/query";
31
+ import { QueryClientImpl as InflationQueryClient } from "../codec/Switcheo/carbon/inflation/query";
32
+ import { QueryClientImpl as InsuranceQueryClient } from "../codec/Switcheo/carbon/insurance/query";
33
+ import { QueryClientImpl as LeverageQueryClient } from "../codec/Switcheo/carbon/leverage/query";
34
+ import { QueryClientImpl as LiquidationQueryClient } from "../codec/Switcheo/carbon/liquidation/query";
35
+ import { QueryClientImpl as LiquidityPoolQueryClient } from "../codec/Switcheo/carbon/liquiditypool/query";
36
+ import { QueryClientImpl as MarketQueryClient } from "../codec/Switcheo/carbon/market/query";
37
+ import { QueryClientImpl as MarketStatsQueryClient } from "../codec/Switcheo/carbon/marketstats/query";
38
+ import { QueryClientImpl as MiscQueryClient } from "../codec/Switcheo/carbon/misc/query";
39
+ import { QueryClientImpl as OracleQueryClient } from "../codec/Switcheo/carbon/oracle/query";
40
+ import { QueryClientImpl as OrderQueryClient } from "../codec/Switcheo/carbon/order/query";
41
+ import { QueryClientImpl as PositionQueryClient } from "../codec/Switcheo/carbon/position/query";
42
+ import { QueryClientImpl as PricingQueryClient } from "../codec/Switcheo/carbon/pricing/query";
43
+ import { QueryClientImpl as ProfileQueryClient } from "../codec/Switcheo/carbon/profile/query";
44
+ import { QueryClientImpl as SubaccountQueryClient } from "../codec/Switcheo/carbon/subaccount/query";
45
+ import { QueryClientImpl as AllianceClient } from "../codec/alliance/query";
46
+ import { QueryClientImpl as PerpspoolQueryClient } from "../codec/Switcheo/carbon/perpspool/query";
47
+ import { QueryClientImpl as ERC20QueryClient } from "../codec/Switcheo/carbon/erc20/query";
48
+ import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
49
49
  import BlockchainClient from "./BlockchainClient";
50
50
  import GrpcQueryClient from "./GrpcQueryClient";
51
51
  export interface IBCClientGroup {
@@ -61,7 +61,7 @@ export interface EthermintClientGroup {
61
61
  feeMarket: EthermintFeeMarketQueryClient;
62
62
  }
63
63
  export interface CarbonQueryClientOpts {
64
- tmClient: Tendermint34Client;
64
+ tmClient: Tendermint37Client;
65
65
  grpcClient?: GrpcQueryClient;
66
66
  }
67
67
  declare class CarbonQueryClient {
@@ -3,14 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const query_1 = require("../codec/adl/query");
7
- const query_2 = require("../codec/book/query");
8
- const query_3 = require("../codec/broker/query");
9
- const query_4 = require("../codec/cdp/query");
10
- const query_5 = require("../codec/coin/query");
6
+ const query_1 = require("../codec/Switcheo/carbon/adl/query");
7
+ const query_2 = require("../codec/Switcheo/carbon/book/query");
8
+ const query_3 = require("../codec/Switcheo/carbon/broker/query");
9
+ const query_4 = require("../codec/Switcheo/carbon/cdp/query");
10
+ const query_5 = require("../codec/Switcheo/carbon/coin/query");
11
11
  const query_6 = require("../codec/cosmos/auth/v1beta1/query");
12
12
  const query_7 = require("../codec/cosmos/bank/v1beta1/query");
13
- const query_8 = require("../codec/bank/query");
13
+ const query_8 = require("../codec/Switcheo/carbon/bank/query");
14
14
  const query_9 = require("../codec/cosmos/base/tendermint/v1beta1/query");
15
15
  const query_10 = require("../codec/cosmos/distribution/v1beta1/query");
16
16
  const query_11 = require("../codec/cosmos/evidence/v1beta1/query");
@@ -22,40 +22,40 @@ const query_16 = require("../codec/cosmos/slashing/v1beta1/query");
22
22
  const query_17 = require("../codec/cosmos/staking/v1beta1/query");
23
23
  const query_18 = require("../codec/cosmos/upgrade/v1beta1/query");
24
24
  const query_19 = require("../codec/ethermint/evm/v1/query");
25
- const query_20 = require("../codec/evmmerge/query");
26
- const query_21 = require("../codec/evmbank/query");
25
+ const query_20 = require("../codec/Switcheo/carbon/evmmerge/query");
26
+ const query_21 = require("../codec/Switcheo/carbon/evmbank/query");
27
27
  const query_22 = require("../codec/ethermint/feemarket/v1/query");
28
- const query_23 = require("../codec/fee/query");
29
- const query_24 = require("../codec/headersync/query");
28
+ const query_23 = require("../codec/Switcheo/carbon/fee/query");
29
+ const query_24 = require("../codec/Switcheo/carbon/headersync/query");
30
30
  const query_25 = require("../codec/ibc/applications/interchain_accounts/controller/v1/query");
31
31
  const query_26 = require("../codec/ibc/applications/interchain_accounts/host/v1/query");
32
32
  const query_27 = require("../codec/ibc/applications/transfer/v1/query");
33
33
  const query_28 = require("../codec/ibc/core/client/v1/query");
34
34
  const query_29 = require("../codec/ibc/core/connection/v1/query");
35
35
  const query_30 = require("../codec/ibc/core/channel/v1/query");
36
- const query_31 = require("../codec/inflation/query");
37
- const query_32 = require("../codec/insurance/query");
38
- const query_33 = require("../codec/leverage/query");
39
- const query_34 = require("../codec/liquidation/query");
40
- const query_35 = require("../codec/liquiditypool/query");
41
- const query_36 = require("../codec/market/query");
42
- const query_37 = require("../codec/marketstats/query");
43
- const query_38 = require("../codec/misc/query");
44
- const query_39 = require("../codec/oracle/query");
45
- const query_40 = require("../codec/order/query");
46
- const query_41 = require("../codec/position/query");
47
- const query_42 = require("../codec/pricing/query");
48
- const query_43 = require("../codec/profile/query");
49
- const query_44 = require("../codec/subaccount/query");
36
+ const query_31 = require("../codec/Switcheo/carbon/inflation/query");
37
+ const query_32 = require("../codec/Switcheo/carbon/insurance/query");
38
+ const query_33 = require("../codec/Switcheo/carbon/leverage/query");
39
+ const query_34 = require("../codec/Switcheo/carbon/liquidation/query");
40
+ const query_35 = require("../codec/Switcheo/carbon/liquiditypool/query");
41
+ const query_36 = require("../codec/Switcheo/carbon/market/query");
42
+ const query_37 = require("../codec/Switcheo/carbon/marketstats/query");
43
+ const query_38 = require("../codec/Switcheo/carbon/misc/query");
44
+ const query_39 = require("../codec/Switcheo/carbon/oracle/query");
45
+ const query_40 = require("../codec/Switcheo/carbon/order/query");
46
+ const query_41 = require("../codec/Switcheo/carbon/position/query");
47
+ const query_42 = require("../codec/Switcheo/carbon/pricing/query");
48
+ const query_43 = require("../codec/Switcheo/carbon/profile/query");
49
+ const query_44 = require("../codec/Switcheo/carbon/subaccount/query");
50
50
  const query_45 = require("../codec/alliance/query");
51
- const query_46 = require("../codec/perpspool/query");
52
- const query_47 = require("../codec/erc20/query");
51
+ const query_46 = require("../codec/Switcheo/carbon/perpspool/query");
52
+ const query_47 = require("../codec/Switcheo/carbon/erc20/query");
53
53
  const stargate_1 = require("@cosmjs/stargate");
54
54
  const BlockchainClient_1 = __importDefault(require("./BlockchainClient"));
55
55
  class CarbonQueryClient {
56
56
  constructor(opts) {
57
57
  var _a;
58
- const rpcClient = (_a = opts.grpcClient) !== null && _a !== void 0 ? _a : (0, stargate_1.createProtobufRpcClient)(new stargate_1.QueryClient(opts.tmClient));
58
+ const rpcClient = (_a = opts.grpcClient) !== null && _a !== void 0 ? _a : stargate_1.createProtobufRpcClient(new stargate_1.QueryClient(opts.tmClient));
59
59
  this.chain = BlockchainClient_1.default.connectWithTm(opts.tmClient);
60
60
  this.adl = new query_1.QueryClientImpl(rpcClient);
61
61
  this.alliance = new query_45.QueryClientImpl(rpcClient);
@@ -1,8 +1,8 @@
1
- import CarbonSDK from "@carbon-sdk/CarbonSDK";
2
- import { EthNetworkConfig, NetworkConfig, NetworkConfigProvider } from "@carbon-sdk/constant";
3
- import { Carbon } from "@carbon-sdk/CarbonSDK";
4
- import { Blockchain } from "@carbon-sdk/util/blockchain";
5
- import { TokenInitInfo, TokensWithExternalBalance } from "@carbon-sdk/util/external";
1
+ import CarbonSDK from "../CarbonSDK";
2
+ import { EthNetworkConfig, NetworkConfig, NetworkConfigProvider } from "../constant";
3
+ import { Carbon } from "../CarbonSDK";
4
+ import { Blockchain } from "../util/blockchain";
5
+ import { TokenInitInfo, TokensWithExternalBalance } from "../util/external";
6
6
  import BigNumber from "bignumber.js";
7
7
  import { ethers } from "ethers";
8
8
  import TokenClient from "./TokenClient";
@@ -44,15 +44,15 @@ class ETHClient {
44
44
  ?
45
45
  this.tokenClient.getBlockchainV2(token.denom) == ETHClient.BLOCKCHAINV2_MAPPING[this.blockchain]
46
46
  :
47
- (0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), api.network) == this.blockchain;
47
+ blockchain_1.blockchainForChainId(token.chainId.toNumber(), api.network) == this.blockchain;
48
48
  return isCorrectBlockchain &&
49
49
  token.tokenAddress.length == 40 &&
50
- token.bridgeAddress.toLowerCase() == (0, generic_1.stripHexPrefix)(lockProxyAddress) &&
50
+ token.bridgeAddress.toLowerCase() == generic_1.stripHexPrefix(lockProxyAddress) &&
51
51
  (!whitelistDenoms || whitelistDenoms.includes(token.denom)) &&
52
- this.verifyChecksum((0, generic_1.appendHexPrefix)(token.tokenAddress));
52
+ this.verifyChecksum(generic_1.appendHexPrefix(token.tokenAddress));
53
53
  });
54
54
  const assetIds = tokens.map((token) => {
55
- return this.verifyChecksum((0, generic_1.appendHexPrefix)(token.tokenAddress));
55
+ return this.verifyChecksum(generic_1.appendHexPrefix(token.tokenAddress));
56
56
  });
57
57
  const provider = this.getProvider();
58
58
  const contractAddress = this.getBalanceReaderAddress();
@@ -101,14 +101,14 @@ class ETHClient {
101
101
  }
102
102
  const carbonNetwork = networkConfig.network;
103
103
  const fromTokenId = fromToken.id;
104
- const fromTokenAddress = (0, generic_1.appendHexPrefix)(fromToken.tokenAddress);
104
+ const fromTokenAddress = generic_1.appendHexPrefix(fromToken.tokenAddress);
105
105
  const toTokenDenom = toToken.denom;
106
106
  const recoveryAddressHex = ethers_1.ethers.utils.hexlify(util_1.AddressUtils.SWTHAddress.getAddressBytes(recoveryAddress, carbonNetwork));
107
107
  const fromAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(fromTokenId));
108
108
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(toTokenDenom));
109
109
  const nonce = yield this.getTxNonce(fromAddress, params.nonce, rpcProvider);
110
110
  const contract = new ethers_1.ethers.Contract(this.getBridgeEntranceAddr(), eth_1.ABIs.bridgeEntrance, rpcProvider);
111
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
111
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
112
112
  const tokenCreator = fromToken.creator;
113
113
  const targetAddressBytes = util_1.AddressUtils.SWTHAddress.getAddressBytes(tokenCreator, carbonNetwork);
114
114
  const targetProxyHash = ethers_1.ethers.utils.hexlify(targetAddressBytes);
@@ -137,9 +137,9 @@ class ETHClient {
137
137
  throw new Error("Minimum gas required: 150,000");
138
138
  }
139
139
  const networkConfig = this.getNetworkConfig();
140
- const assetId = (0, generic_1.appendHexPrefix)(token.tokenAddress);
141
- const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(token));
142
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
140
+ const assetId = generic_1.appendHexPrefix(token.tokenAddress);
141
+ const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(token));
142
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
143
143
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(token.id));
144
144
  const swthAddress = ethers_1.ethers.utils.hexlify(address);
145
145
  const contractAddress = this.getLockProxyAddress();
@@ -190,15 +190,15 @@ class ETHClient {
190
190
  return "insufficient balance";
191
191
  }
192
192
  const networkConfig = this.getNetworkConfig();
193
- const assetId = (0, generic_1.appendHexPrefix)(tokenWithExternalBalances.tokenAddress);
194
- const targetProxyHash = (0, generic_1.appendHexPrefix)(this.getTargetProxyHash(tokenWithExternalBalances));
195
- const feeAddress = (0, generic_1.appendHexPrefix)(networkConfig.feeAddress);
193
+ const assetId = generic_1.appendHexPrefix(tokenWithExternalBalances.tokenAddress);
194
+ const targetProxyHash = generic_1.appendHexPrefix(this.getTargetProxyHash(tokenWithExternalBalances));
195
+ const feeAddress = generic_1.appendHexPrefix(networkConfig.feeAddress);
196
196
  const toAssetHash = ethers_1.ethers.utils.hexlify(ethers_1.ethers.utils.toUtf8Bytes(tokenWithExternalBalances.id));
197
197
  const nonce = Math.floor(Math.random() * 1000000000); // random nonce to prevent replay attacks
198
198
  const message = ethers_1.ethers.utils.solidityKeccak256(["string", "address", "bytes", "bytes", "bytes", "uint256", "uint256", "uint256"], ["sendTokens", assetId, targetProxyHash, toAssetHash, feeAddress, amount, feeAmount, nonce]);
199
199
  // logger("sendDeposit message", message)
200
200
  const { address, signature } = yield getSignatureCallback(message);
201
- const signatureBytes = ethers_1.ethers.utils.arrayify((0, generic_1.appendHexPrefix)(signature));
201
+ const signatureBytes = ethers_1.ethers.utils.arrayify(generic_1.appendHexPrefix(signature));
202
202
  const rsv = ethers_1.ethers.utils.splitSignature(signatureBytes);
203
203
  // logger("sign result", address, signature)
204
204
  const signatureResult = {
@@ -237,7 +237,7 @@ class ETHClient {
237
237
  if (!feeInfo.deposit_fee) {
238
238
  throw new Error("unsupported token");
239
239
  }
240
- if ((0, blockchain_1.blockchainForChainId)(token.chainId.toNumber(), this.configProvider.getConfig().network) !== this.blockchain) {
240
+ if (blockchain_1.blockchainForChainId(token.chainId.toNumber(), this.configProvider.getConfig().network) !== this.blockchain) {
241
241
  throw new Error("unsupported token");
242
242
  }
243
243
  let feeAmount = ethers_1.ethers.BigNumber.from(feeInfo.deposit_fee);
@@ -303,7 +303,7 @@ class ETHClient {
303
303
  getTargetProxyHash(token) {
304
304
  const networkConfig = this.getNetworkConfig();
305
305
  const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
306
- const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
306
+ const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
307
307
  return addressHex;
308
308
  }
309
309
  getProvider() {
@@ -1,7 +1,7 @@
1
- import { NetworkConfig } from "@carbon-sdk/constant";
2
- import { BlockchainUtils } from "@carbon-sdk/util";
1
+ import { NetworkConfig } from "../constant";
2
+ import { BlockchainUtils } from "../util";
3
3
  import { ChainTransaction, CrossChainTransfer, CrossChainTransferDetailed, GetDetailedTransfersResponse, GetRelaysRequest, GetRelaysResponse, GetStatsResponse, GetTransfersRequest, GetTransfersResponse, RelaysResponse } from "../hydrogen";
4
- import { GetFeeQuoteRequest, GetFeeQuoteResponse } from "@carbon-sdk/hydrogen/feeQuote";
4
+ import { GetFeeQuoteRequest, GetFeeQuoteResponse } from "../hydrogen/feeQuote";
5
5
  import TokenClient from './TokenClient';
6
6
  export declare const HydrogenEndpoints: {
7
7
  stats: string;
@@ -29,7 +29,7 @@ exports.HydrogenEndpoints = {
29
29
  const formatDateField = (value) => {
30
30
  if (typeof value !== "string")
31
31
  return null;
32
- return (0, dayjs_1.default)(value);
32
+ return dayjs_1.default(value);
33
33
  };
34
34
  // temporary function to parse okt/okc blockchain
35
35
  // to remove when automatic deposit/withdraw feature is deployed
@@ -1,7 +1,7 @@
1
- import { NetworkConfig } from "@carbon-sdk/constant";
2
- import { Insights } from "@carbon-sdk/index";
3
- import { InsightsQueryResponse } from "@carbon-sdk/insights";
4
- import { APIUtils } from "@carbon-sdk/util";
1
+ import { NetworkConfig } from "../constant";
2
+ import { Insights } from "../index";
3
+ import { InsightsQueryResponse } from "../insights";
4
+ import { APIUtils } from "../util";
5
5
  declare class InsightsQueryClient {
6
6
  readonly apiManager: APIUtils.APIManager<typeof Insights.InsightsEndpoints>;
7
7
  constructor(config: NetworkConfig);
@@ -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)) {
@@ -317,7 +313,7 @@ class NEOClient {
317
313
  getTargetProxyHash(token) {
318
314
  const networkConfig = this.getNetworkConfig();
319
315
  const addressBytes = address_1.SWTHAddress.getAddressBytes(token.creator, networkConfig.network);
320
- const addressHex = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
316
+ const addressHex = generic_1.stripHexPrefix(ethers_1.ethers.utils.hexlify(addressBytes));
321
317
  return addressHex;
322
318
  }
323
319
  getNetworkConfig() {
@@ -1,8 +1,8 @@
1
- import { Carbon } from "@carbon-sdk/CarbonSDK";
2
- import { NetworkConfigProvider } from "@carbon-sdk/constant";
3
- import { GetFeeQuoteResponse } from "@carbon-sdk/hydrogen/feeQuote";
4
- import { BlockchainUtils, TypeUtils } from "@carbon-sdk/util";
5
- import { BlockchainV2, BridgeMap, IbcBridge } from '@carbon-sdk/util/blockchain';
1
+ import { Carbon } from "../CarbonSDK";
2
+ import { NetworkConfigProvider } from "../constant";
3
+ import { GetFeeQuoteResponse } from "../hydrogen/feeQuote";
4
+ import { BlockchainUtils, TypeUtils } from "../util";
5
+ import { BlockchainV2, BridgeMap, IbcBridge } from '../util/blockchain';
6
6
  import BigNumber from "bignumber.js";
7
7
  import CarbonQueryClient from "./CarbonQueryClient";
8
8
  declare class TokenClient {