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

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 (506) hide show
  1. package/lib/CarbonSDK.d.ts +5 -6
  2. package/lib/CarbonSDK.js +1 -2
  3. package/lib/clients/BlockchainClient.d.ts +3 -3
  4. package/lib/clients/BlockchainClient.js +1 -1
  5. package/lib/clients/CarbonQueryClient.d.ts +28 -28
  6. package/lib/clients/CarbonQueryClient.js +26 -26
  7. package/lib/clients/TokenClient.js +3 -10
  8. package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +18 -0
  9. package/lib/codec/Switcheo/carbon/adl/genesis.js +46 -0
  10. package/lib/codec/Switcheo/carbon/adl/query.d.ts +12 -0
  11. package/lib/codec/Switcheo/carbon/adl/query.js +20 -0
  12. package/lib/codec/Switcheo/carbon/adl/tx.d.ts +12 -0
  13. package/lib/codec/Switcheo/carbon/adl/tx.js +20 -0
  14. package/lib/codec/Switcheo/carbon/admin/export.d.ts +2 -0
  15. package/lib/codec/Switcheo/carbon/admin/export.js +13 -0
  16. package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +18 -0
  17. package/lib/codec/Switcheo/carbon/admin/genesis.js +46 -0
  18. package/lib/codec/Switcheo/carbon/admin/query.d.ts +62 -0
  19. package/lib/codec/Switcheo/carbon/admin/query.js +186 -0
  20. package/lib/codec/Switcheo/carbon/admin/tx.d.ts +62 -0
  21. package/lib/codec/Switcheo/carbon/admin/tx.js +198 -0
  22. package/lib/codec/Switcheo/carbon/bank/event.d.ts +65 -0
  23. package/lib/codec/Switcheo/carbon/bank/event.js +332 -0
  24. package/lib/codec/Switcheo/carbon/bank/export.d.ts +2 -0
  25. package/lib/codec/Switcheo/carbon/bank/export.js +14 -0
  26. package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +18 -0
  27. package/lib/codec/Switcheo/carbon/bank/genesis.js +46 -0
  28. package/lib/codec/Switcheo/carbon/bank/query.d.ts +77 -0
  29. package/lib/codec/Switcheo/carbon/bank/query.js +459 -0
  30. package/lib/codec/Switcheo/carbon/book/book.d.ts +57 -0
  31. package/lib/codec/Switcheo/carbon/book/book.js +319 -0
  32. package/lib/codec/Switcheo/carbon/book/event.d.ts +22 -0
  33. package/lib/codec/Switcheo/carbon/book/event.js +113 -0
  34. package/lib/codec/Switcheo/carbon/book/export.d.ts +4 -0
  35. package/lib/codec/Switcheo/carbon/book/export.js +23 -0
  36. package/lib/codec/Switcheo/carbon/book/genesis.d.ts +25 -0
  37. package/lib/codec/Switcheo/carbon/book/genesis.js +79 -0
  38. package/lib/codec/Switcheo/carbon/book/legacy.d.ts +22 -0
  39. package/lib/codec/Switcheo/carbon/book/legacy.js +120 -0
  40. package/lib/codec/Switcheo/carbon/book/query.d.ts +141 -0
  41. package/lib/codec/Switcheo/carbon/book/query.js +606 -0
  42. package/lib/codec/Switcheo/carbon/book/tx.d.ts +12 -0
  43. package/lib/codec/Switcheo/carbon/book/tx.js +20 -0
  44. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +50 -0
  45. package/lib/codec/Switcheo/carbon/broker/amm.js +326 -0
  46. package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +27 -0
  47. package/lib/codec/Switcheo/carbon/broker/candlestick.js +211 -0
  48. package/lib/codec/Switcheo/carbon/broker/event.d.ts +53 -0
  49. package/lib/codec/Switcheo/carbon/broker/event.js +485 -0
  50. package/lib/codec/Switcheo/carbon/broker/export.d.ts +7 -0
  51. package/lib/codec/Switcheo/carbon/broker/export.js +27 -0
  52. package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +25 -0
  53. package/lib/codec/Switcheo/carbon/broker/genesis.js +79 -0
  54. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +18 -0
  55. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.js +93 -0
  56. package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +19 -0
  57. package/lib/codec/Switcheo/carbon/broker/pagination.js +78 -0
  58. package/lib/codec/Switcheo/carbon/broker/query.d.ts +107 -0
  59. package/lib/codec/Switcheo/carbon/broker/query.js +597 -0
  60. package/lib/codec/Switcheo/carbon/broker/tx.d.ts +53 -0
  61. package/lib/codec/Switcheo/carbon/broker/tx.js +176 -0
  62. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +21 -0
  63. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.js +98 -0
  64. package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +24 -0
  65. package/lib/codec/Switcheo/carbon/btcx/denom_info.js +140 -0
  66. package/lib/codec/Switcheo/carbon/btcx/export.d.ts +4 -0
  67. package/lib/codec/Switcheo/carbon/btcx/export.js +19 -0
  68. package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +18 -0
  69. package/lib/codec/Switcheo/carbon/btcx/genesis.js +46 -0
  70. package/lib/codec/Switcheo/carbon/btcx/query.d.ts +68 -0
  71. package/lib/codec/Switcheo/carbon/btcx/query.js +275 -0
  72. package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +92 -0
  73. package/lib/codec/Switcheo/carbon/btcx/tx.js +436 -0
  74. package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +19 -0
  75. package/lib/codec/Switcheo/carbon/ccm/ccm.js +60 -0
  76. package/lib/codec/Switcheo/carbon/ccm/export.d.ts +4 -0
  77. package/lib/codec/Switcheo/carbon/ccm/export.js +20 -0
  78. package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +83 -0
  79. package/lib/codec/Switcheo/carbon/ccm/genesis.js +438 -0
  80. package/lib/codec/Switcheo/carbon/ccm/query.d.ts +45 -0
  81. package/lib/codec/Switcheo/carbon/ccm/query.js +197 -0
  82. package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +97 -0
  83. package/lib/codec/Switcheo/carbon/ccm/tx.js +462 -0
  84. package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +57 -0
  85. package/lib/codec/Switcheo/carbon/cdp/asset_params.js +411 -0
  86. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +32 -0
  87. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.js +288 -0
  88. package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +23 -0
  89. package/lib/codec/Switcheo/carbon/cdp/debt_info.js +158 -0
  90. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +23 -0
  91. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.js +135 -0
  92. package/lib/codec/Switcheo/carbon/cdp/event.d.ts +446 -0
  93. package/lib/codec/Switcheo/carbon/cdp/event.js +2913 -0
  94. package/lib/codec/Switcheo/carbon/cdp/export.d.ts +13 -0
  95. package/lib/codec/Switcheo/carbon/cdp/export.js +210 -0
  96. package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +134 -0
  97. package/lib/codec/Switcheo/carbon/cdp/genesis.js +825 -0
  98. package/lib/codec/Switcheo/carbon/cdp/params.d.ts +68 -0
  99. package/lib/codec/Switcheo/carbon/cdp/params.js +210 -0
  100. package/lib/codec/Switcheo/carbon/cdp/query.d.ts +644 -0
  101. package/lib/codec/Switcheo/carbon/cdp/query.js +3099 -0
  102. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +26 -0
  103. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.js +180 -0
  104. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +71 -0
  105. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.js +550 -0
  106. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +22 -0
  107. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.js +144 -0
  108. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +19 -0
  109. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.js +99 -0
  110. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1026 -0
  111. package/lib/codec/Switcheo/carbon/cdp/tx.js +5191 -0
  112. package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +24 -0
  113. package/lib/codec/Switcheo/carbon/coin/bridge.js +151 -0
  114. package/lib/codec/Switcheo/carbon/coin/event.d.ts +143 -0
  115. package/lib/codec/Switcheo/carbon/coin/event.js +775 -0
  116. package/lib/codec/Switcheo/carbon/coin/export.d.ts +8 -0
  117. package/lib/codec/Switcheo/carbon/coin/export.js +107 -0
  118. package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +42 -0
  119. package/lib/codec/Switcheo/carbon/coin/genesis.js +207 -0
  120. package/lib/codec/Switcheo/carbon/coin/group.d.ts +50 -0
  121. package/lib/codec/Switcheo/carbon/coin/group.js +230 -0
  122. package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +21 -0
  123. package/lib/codec/Switcheo/carbon/coin/proposal.js +91 -0
  124. package/lib/codec/Switcheo/carbon/coin/query.d.ts +310 -0
  125. package/lib/codec/Switcheo/carbon/coin/query.js +1439 -0
  126. package/lib/codec/Switcheo/carbon/coin/token.d.ts +104 -0
  127. package/lib/codec/Switcheo/carbon/coin/token.js +700 -0
  128. package/lib/codec/Switcheo/carbon/coin/tx.d.ts +586 -0
  129. package/lib/codec/Switcheo/carbon/coin/tx.js +3131 -0
  130. package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +41 -0
  131. package/lib/codec/Switcheo/carbon/erc20/erc20.js +144 -0
  132. package/lib/codec/Switcheo/carbon/erc20/events.d.ts +76 -0
  133. package/lib/codec/Switcheo/carbon/erc20/events.js +330 -0
  134. package/lib/codec/Switcheo/carbon/erc20/export.d.ts +5 -0
  135. package/lib/codec/Switcheo/carbon/erc20/export.js +37 -0
  136. package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +40 -0
  137. package/lib/codec/Switcheo/carbon/erc20/genesis.js +139 -0
  138. package/lib/codec/Switcheo/carbon/erc20/query.d.ts +117 -0
  139. package/lib/codec/Switcheo/carbon/erc20/query.js +333 -0
  140. package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +232 -0
  141. package/lib/codec/Switcheo/carbon/erc20/tx.js +765 -0
  142. package/lib/codec/Switcheo/carbon/evmbank/export.d.ts +2 -0
  143. package/lib/codec/Switcheo/carbon/evmbank/export.js +8 -0
  144. package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +32 -0
  145. package/lib/codec/Switcheo/carbon/evmbank/genesis.js +152 -0
  146. package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +40 -0
  147. package/lib/codec/Switcheo/carbon/evmbank/query.js +116 -0
  148. package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +18 -0
  149. package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +46 -0
  150. package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +12 -0
  151. package/lib/codec/Switcheo/carbon/evmcontract/query.js +20 -0
  152. package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +12 -0
  153. package/lib/codec/Switcheo/carbon/evmcontract/tx.js +20 -0
  154. package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +19 -0
  155. package/lib/codec/Switcheo/carbon/evmmerge/address.js +75 -0
  156. package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +20 -0
  157. package/lib/codec/Switcheo/carbon/evmmerge/event.js +90 -0
  158. package/lib/codec/Switcheo/carbon/evmmerge/export.d.ts +6 -0
  159. package/lib/codec/Switcheo/carbon/evmmerge/export.js +20 -0
  160. package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +48 -0
  161. package/lib/codec/Switcheo/carbon/evmmerge/genesis.js +216 -0
  162. package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +22 -0
  163. package/lib/codec/Switcheo/carbon/evmmerge/offchain.js +105 -0
  164. package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +75 -0
  165. package/lib/codec/Switcheo/carbon/evmmerge/query.js +254 -0
  166. package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +45 -0
  167. package/lib/codec/Switcheo/carbon/evmmerge/tx.js +128 -0
  168. package/lib/codec/Switcheo/carbon/fee/event.d.ts +20 -0
  169. package/lib/codec/Switcheo/carbon/fee/event.js +83 -0
  170. package/lib/codec/Switcheo/carbon/fee/export.d.ts +5 -0
  171. package/lib/codec/Switcheo/carbon/fee/export.js +32 -0
  172. package/lib/codec/Switcheo/carbon/fee/fee.d.ts +42 -0
  173. package/lib/codec/Switcheo/carbon/fee/fee.js +183 -0
  174. package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +23 -0
  175. package/lib/codec/Switcheo/carbon/fee/genesis.js +79 -0
  176. package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +57 -0
  177. package/lib/codec/Switcheo/carbon/fee/proposal.js +311 -0
  178. package/lib/codec/Switcheo/carbon/fee/query.d.ts +114 -0
  179. package/lib/codec/Switcheo/carbon/fee/query.js +470 -0
  180. package/lib/codec/Switcheo/carbon/fee/tx.d.ts +108 -0
  181. package/lib/codec/Switcheo/carbon/fee/tx.js +415 -0
  182. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +70 -0
  183. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.js +383 -0
  184. package/lib/codec/Switcheo/carbon/headersync/export.d.ts +4 -0
  185. package/lib/codec/Switcheo/carbon/headersync/export.js +24 -0
  186. package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +79 -0
  187. package/lib/codec/Switcheo/carbon/headersync/genesis.js +419 -0
  188. package/lib/codec/Switcheo/carbon/headersync/query.d.ts +64 -0
  189. package/lib/codec/Switcheo/carbon/headersync/query.js +231 -0
  190. package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +64 -0
  191. package/lib/codec/Switcheo/carbon/headersync/tx.js +215 -0
  192. package/lib/codec/Switcheo/carbon/inflation/export.d.ts +2 -0
  193. package/lib/codec/Switcheo/carbon/inflation/export.js +8 -0
  194. package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +25 -0
  195. package/lib/codec/Switcheo/carbon/inflation/genesis.js +79 -0
  196. package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +26 -0
  197. package/lib/codec/Switcheo/carbon/inflation/inflation.js +165 -0
  198. package/lib/codec/Switcheo/carbon/inflation/query.d.ts +41 -0
  199. package/lib/codec/Switcheo/carbon/inflation/query.js +109 -0
  200. package/lib/codec/Switcheo/carbon/inflation/tx.d.ts +12 -0
  201. package/lib/codec/Switcheo/carbon/inflation/tx.js +20 -0
  202. package/lib/codec/Switcheo/carbon/insurance/event.d.ts +24 -0
  203. package/lib/codec/Switcheo/carbon/insurance/event.js +46 -0
  204. package/lib/codec/Switcheo/carbon/insurance/export.d.ts +4 -0
  205. package/lib/codec/Switcheo/carbon/insurance/export.js +14 -0
  206. package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +29 -0
  207. package/lib/codec/Switcheo/carbon/insurance/fund.js +148 -0
  208. package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +18 -0
  209. package/lib/codec/Switcheo/carbon/insurance/genesis.js +46 -0
  210. package/lib/codec/Switcheo/carbon/insurance/query.d.ts +41 -0
  211. package/lib/codec/Switcheo/carbon/insurance/query.js +108 -0
  212. package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +44 -0
  213. package/lib/codec/Switcheo/carbon/insurance/tx.js +144 -0
  214. package/lib/codec/Switcheo/carbon/leverage/event.d.ts +21 -0
  215. package/lib/codec/Switcheo/carbon/leverage/event.js +100 -0
  216. package/lib/codec/Switcheo/carbon/leverage/export.d.ts +4 -0
  217. package/lib/codec/Switcheo/carbon/leverage/export.js +16 -0
  218. package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +24 -0
  219. package/lib/codec/Switcheo/carbon/leverage/genesis.js +64 -0
  220. package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +30 -0
  221. package/lib/codec/Switcheo/carbon/leverage/leverage.js +134 -0
  222. package/lib/codec/Switcheo/carbon/leverage/query.d.ts +70 -0
  223. package/lib/codec/Switcheo/carbon/leverage/query.js +234 -0
  224. package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +43 -0
  225. package/lib/codec/Switcheo/carbon/leverage/tx.js +127 -0
  226. package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +5 -0
  227. package/lib/codec/Switcheo/carbon/liquidation/export.js +17 -0
  228. package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +37 -0
  229. package/lib/codec/Switcheo/carbon/liquidation/genesis.js +136 -0
  230. package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +17 -0
  231. package/lib/codec/Switcheo/carbon/liquidation/liquidation.js +46 -0
  232. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +33 -0
  233. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.js +203 -0
  234. package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +77 -0
  235. package/lib/codec/Switcheo/carbon/liquidation/query.js +341 -0
  236. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +22 -0
  237. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.js +95 -0
  238. package/lib/codec/Switcheo/carbon/liquidation/tx.d.ts +12 -0
  239. package/lib/codec/Switcheo/carbon/liquidation/tx.js +20 -0
  240. package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +182 -0
  241. package/lib/codec/Switcheo/carbon/liquiditypool/event.js +1268 -0
  242. package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +6 -0
  243. package/lib/codec/Switcheo/carbon/liquiditypool/export.js +125 -0
  244. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +32 -0
  245. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.js +228 -0
  246. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +138 -0
  247. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +943 -0
  248. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +117 -0
  249. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.js +697 -0
  250. package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +370 -0
  251. package/lib/codec/Switcheo/carbon/liquiditypool/query.js +1738 -0
  252. package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +196 -0
  253. package/lib/codec/Switcheo/carbon/liquiditypool/reward.js +1204 -0
  254. package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +453 -0
  255. package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +2423 -0
  256. package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +46 -0
  257. package/lib/codec/Switcheo/carbon/lockproxy/event.js +348 -0
  258. package/lib/codec/Switcheo/carbon/lockproxy/export.d.ts +5 -0
  259. package/lib/codec/Switcheo/carbon/lockproxy/export.js +28 -0
  260. package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +68 -0
  261. package/lib/codec/Switcheo/carbon/lockproxy/genesis.js +355 -0
  262. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +22 -0
  263. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.js +147 -0
  264. package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +67 -0
  265. package/lib/codec/Switcheo/carbon/lockproxy/query.js +274 -0
  266. package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +147 -0
  267. package/lib/codec/Switcheo/carbon/lockproxy/tx.js +808 -0
  268. package/lib/codec/Switcheo/carbon/market/event.d.ts +20 -0
  269. package/lib/codec/Switcheo/carbon/market/event.js +76 -0
  270. package/lib/codec/Switcheo/carbon/market/export.d.ts +6 -0
  271. package/lib/codec/Switcheo/carbon/market/export.js +61 -0
  272. package/lib/codec/Switcheo/carbon/market/fee.d.ts +123 -0
  273. package/lib/codec/Switcheo/carbon/market/fee.js +334 -0
  274. package/lib/codec/Switcheo/carbon/market/genesis.d.ts +31 -0
  275. package/lib/codec/Switcheo/carbon/market/genesis.js +147 -0
  276. package/lib/codec/Switcheo/carbon/market/market.d.ts +131 -0
  277. package/lib/codec/Switcheo/carbon/market/market.js +1245 -0
  278. package/lib/codec/Switcheo/carbon/market/proposal.d.ts +46 -0
  279. package/lib/codec/Switcheo/carbon/market/proposal.js +245 -0
  280. package/lib/codec/Switcheo/carbon/market/query.d.ts +233 -0
  281. package/lib/codec/Switcheo/carbon/market/query.js +938 -0
  282. package/lib/codec/Switcheo/carbon/market/tx.d.ts +250 -0
  283. package/lib/codec/Switcheo/carbon/market/tx.js +1265 -0
  284. package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +3 -0
  285. package/lib/codec/Switcheo/carbon/marketstats/export.js +12 -0
  286. package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +21 -0
  287. package/lib/codec/Switcheo/carbon/marketstats/genesis.js +63 -0
  288. package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +31 -0
  289. package/lib/codec/Switcheo/carbon/marketstats/marketstats.js +258 -0
  290. package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +18 -0
  291. package/lib/codec/Switcheo/carbon/marketstats/params.js +46 -0
  292. package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +66 -0
  293. package/lib/codec/Switcheo/carbon/marketstats/query.js +195 -0
  294. package/lib/codec/Switcheo/carbon/marketstats/tx.d.ts +12 -0
  295. package/lib/codec/Switcheo/carbon/marketstats/tx.js +20 -0
  296. package/lib/codec/Switcheo/carbon/misc/block.d.ts +21 -0
  297. package/lib/codec/Switcheo/carbon/misc/block.js +105 -0
  298. package/lib/codec/Switcheo/carbon/misc/export.d.ts +6 -0
  299. package/lib/codec/Switcheo/carbon/misc/export.js +29 -0
  300. package/lib/codec/Switcheo/carbon/misc/message.d.ts +22 -0
  301. package/lib/codec/Switcheo/carbon/misc/message.js +128 -0
  302. package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +18 -0
  303. package/lib/codec/Switcheo/carbon/misc/message_type.js +60 -0
  304. package/lib/codec/Switcheo/carbon/misc/query.d.ts +192 -0
  305. package/lib/codec/Switcheo/carbon/misc/query.js +884 -0
  306. package/lib/codec/Switcheo/carbon/misc/trade.d.ts +28 -0
  307. package/lib/codec/Switcheo/carbon/misc/trade.js +224 -0
  308. package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +45 -0
  309. package/lib/codec/Switcheo/carbon/misc/transaction.js +369 -0
  310. package/lib/codec/Switcheo/carbon/oracle/event.d.ts +37 -0
  311. package/lib/codec/Switcheo/carbon/oracle/event.js +228 -0
  312. package/lib/codec/Switcheo/carbon/oracle/export.d.ts +6 -0
  313. package/lib/codec/Switcheo/carbon/oracle/export.js +58 -0
  314. package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +28 -0
  315. package/lib/codec/Switcheo/carbon/oracle/genesis.js +141 -0
  316. package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +94 -0
  317. package/lib/codec/Switcheo/carbon/oracle/oracle.js +650 -0
  318. package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +21 -0
  319. package/lib/codec/Switcheo/carbon/oracle/proposal.js +91 -0
  320. package/lib/codec/Switcheo/carbon/oracle/query.d.ts +336 -0
  321. package/lib/codec/Switcheo/carbon/oracle/query.js +1551 -0
  322. package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +33 -0
  323. package/lib/codec/Switcheo/carbon/oracle/slashing.js +191 -0
  324. package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +169 -0
  325. package/lib/codec/Switcheo/carbon/oracle/tx.js +877 -0
  326. package/lib/codec/Switcheo/carbon/order/event.d.ts +23 -0
  327. package/lib/codec/Switcheo/carbon/order/event.js +146 -0
  328. package/lib/codec/Switcheo/carbon/order/export.d.ts +5 -0
  329. package/lib/codec/Switcheo/carbon/order/export.js +39 -0
  330. package/lib/codec/Switcheo/carbon/order/genesis.d.ts +62 -0
  331. package/lib/codec/Switcheo/carbon/order/genesis.js +322 -0
  332. package/lib/codec/Switcheo/carbon/order/order.d.ts +113 -0
  333. package/lib/codec/Switcheo/carbon/order/order.js +875 -0
  334. package/lib/codec/Switcheo/carbon/order/query.d.ts +143 -0
  335. package/lib/codec/Switcheo/carbon/order/query.js +596 -0
  336. package/lib/codec/Switcheo/carbon/order/tx.d.ts +146 -0
  337. package/lib/codec/Switcheo/carbon/order/tx.js +715 -0
  338. package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +95 -0
  339. package/lib/codec/Switcheo/carbon/perpspool/event.js +561 -0
  340. package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +7 -0
  341. package/lib/codec/Switcheo/carbon/perpspool/export.js +68 -0
  342. package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +61 -0
  343. package/lib/codec/Switcheo/carbon/perpspool/genesis.js +343 -0
  344. package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +96 -0
  345. package/lib/codec/Switcheo/carbon/perpspool/market.js +493 -0
  346. package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +30 -0
  347. package/lib/codec/Switcheo/carbon/perpspool/params.js +189 -0
  348. package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +103 -0
  349. package/lib/codec/Switcheo/carbon/perpspool/pool.js +638 -0
  350. package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +247 -0
  351. package/lib/codec/Switcheo/carbon/perpspool/query.js +1141 -0
  352. package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +229 -0
  353. package/lib/codec/Switcheo/carbon/perpspool/tx.js +1144 -0
  354. package/lib/codec/Switcheo/carbon/position/event.d.ts +26 -0
  355. package/lib/codec/Switcheo/carbon/position/event.js +180 -0
  356. package/lib/codec/Switcheo/carbon/position/export.d.ts +4 -0
  357. package/lib/codec/Switcheo/carbon/position/export.js +20 -0
  358. package/lib/codec/Switcheo/carbon/position/genesis.d.ts +24 -0
  359. package/lib/codec/Switcheo/carbon/position/genesis.js +64 -0
  360. package/lib/codec/Switcheo/carbon/position/position.d.ts +74 -0
  361. package/lib/codec/Switcheo/carbon/position/position.js +601 -0
  362. package/lib/codec/Switcheo/carbon/position/query.d.ts +92 -0
  363. package/lib/codec/Switcheo/carbon/position/query.js +400 -0
  364. package/lib/codec/Switcheo/carbon/position/tx.d.ts +42 -0
  365. package/lib/codec/Switcheo/carbon/position/tx.js +127 -0
  366. package/lib/codec/Switcheo/carbon/pricing/event.d.ts +74 -0
  367. package/lib/codec/Switcheo/carbon/pricing/event.js +361 -0
  368. package/lib/codec/Switcheo/carbon/pricing/export.d.ts +6 -0
  369. package/lib/codec/Switcheo/carbon/pricing/export.js +45 -0
  370. package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +26 -0
  371. package/lib/codec/Switcheo/carbon/pricing/genesis.js +95 -0
  372. package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +22 -0
  373. package/lib/codec/Switcheo/carbon/pricing/legacy.js +93 -0
  374. package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +60 -0
  375. package/lib/codec/Switcheo/carbon/pricing/pricing.js +456 -0
  376. package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +31 -0
  377. package/lib/codec/Switcheo/carbon/pricing/proposal.js +148 -0
  378. package/lib/codec/Switcheo/carbon/pricing/query.d.ts +183 -0
  379. package/lib/codec/Switcheo/carbon/pricing/query.js +759 -0
  380. package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +131 -0
  381. package/lib/codec/Switcheo/carbon/pricing/tx.js +529 -0
  382. package/lib/codec/Switcheo/carbon/profile/event.d.ts +20 -0
  383. package/lib/codec/Switcheo/carbon/profile/event.js +78 -0
  384. package/lib/codec/Switcheo/carbon/profile/export.d.ts +4 -0
  385. package/lib/codec/Switcheo/carbon/profile/export.js +17 -0
  386. package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +24 -0
  387. package/lib/codec/Switcheo/carbon/profile/genesis.js +64 -0
  388. package/lib/codec/Switcheo/carbon/profile/profile.d.ts +20 -0
  389. package/lib/codec/Switcheo/carbon/profile/profile.js +83 -0
  390. package/lib/codec/Switcheo/carbon/profile/query.d.ts +92 -0
  391. package/lib/codec/Switcheo/carbon/profile/query.js +360 -0
  392. package/lib/codec/Switcheo/carbon/profile/tx.d.ts +43 -0
  393. package/lib/codec/Switcheo/carbon/profile/tx.js +127 -0
  394. package/lib/codec/Switcheo/carbon/sequence/export.d.ts +3 -0
  395. package/lib/codec/Switcheo/carbon/sequence/export.js +13 -0
  396. package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +30 -0
  397. package/lib/codec/Switcheo/carbon/sequence/genesis.js +122 -0
  398. package/lib/codec/Switcheo/carbon/sequence/query.d.ts +63 -0
  399. package/lib/codec/Switcheo/carbon/sequence/query.js +208 -0
  400. package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +41 -0
  401. package/lib/codec/Switcheo/carbon/sequence/tx.js +148 -0
  402. package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +4 -0
  403. package/lib/codec/Switcheo/carbon/subaccount/export.js +35 -0
  404. package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +28 -0
  405. package/lib/codec/Switcheo/carbon/subaccount/genesis.js +110 -0
  406. package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +19 -0
  407. package/lib/codec/Switcheo/carbon/subaccount/legacy.js +72 -0
  408. package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +229 -0
  409. package/lib/codec/Switcheo/carbon/subaccount/query.js +1026 -0
  410. package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +57 -0
  411. package/lib/codec/Switcheo/carbon/subaccount/subaccount.js +349 -0
  412. package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +92 -0
  413. package/lib/codec/Switcheo/carbon/subaccount/tx.js +395 -0
  414. package/lib/codec/broker/incoming_pool_swap.d.ts +23 -0
  415. package/lib/codec/broker/incoming_pool_swap.js +136 -0
  416. package/lib/codec/carbon-models.d.ts +26 -26
  417. package/lib/codec/carbon-models.js +26 -26
  418. package/lib/codec/crisis/genesis.d.ts +18 -0
  419. package/lib/codec/crisis/genesis.js +46 -0
  420. package/lib/codec/crisis/query.d.ts +43 -0
  421. package/lib/codec/crisis/query.js +103 -0
  422. package/lib/codec/crisis/tx.d.ts +12 -0
  423. package/lib/codec/crisis/tx.js +20 -0
  424. package/lib/codec/ethermint/evm/v1/export.d.ts +1 -2
  425. package/lib/codec/ethermint/evm/v1/export.js +1 -8
  426. package/lib/codec/ethermint/evm/v1/tx.d.ts +1 -37
  427. package/lib/codec/ethermint/evm/v1/tx.js +1 -100
  428. package/lib/codec/ethermint/feemarket/v1/export.d.ts +0 -2
  429. package/lib/codec/ethermint/feemarket/v1/export.js +1 -7
  430. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +0 -10
  431. package/lib/codec/ethermint/feemarket/v1/feemarket.js +1 -28
  432. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -2
  433. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +1 -8
  434. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +0 -26
  435. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +1 -113
  436. package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +1 -0
  437. package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +6 -1
  438. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
  439. package/lib/codec/ibc/applications/transfer/v1/export.js +1 -3
  440. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +1 -30
  441. package/lib/codec/ibc/applications/transfer/v1/query.js +1 -110
  442. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -8
  443. package/lib/codec/ibc/applications/transfer/v1/tx.js +6 -35
  444. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +0 -2
  445. package/lib/codec/ibc/applications/transfer/v2/packet.js +1 -14
  446. package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -20
  447. package/lib/codec/ibc/core/channel/v1/channel.js +1 -78
  448. package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
  449. package/lib/codec/ibc/core/channel/v1/export.js +2 -3
  450. package/lib/codec/ibc/core/channel/v1/tx.d.ts +12 -15
  451. package/lib/codec/ibc/core/channel/v1/tx.js +25 -50
  452. package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
  453. package/lib/codec/ibc/core/client/v1/export.js +1 -3
  454. package/lib/codec/ibc/core/client/v1/query.d.ts +1 -38
  455. package/lib/codec/ibc/core/client/v1/query.js +1 -137
  456. package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
  457. package/lib/codec/ibc/core/connection/v1/export.js +1 -3
  458. package/lib/codec/ibc/core/connection/v1/query.d.ts +1 -26
  459. package/lib/codec/ibc/core/connection/v1/query.js +1 -87
  460. package/lib/codec/ibc/core/connection/v1/tx.d.ts +2 -3
  461. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +4 -6
  462. package/lib/codec/index.d.ts +164 -173
  463. package/lib/codec/index.js +11963 -12594
  464. package/lib/codec/market/legacy.d.ts +62 -0
  465. package/lib/codec/market/legacy.js +630 -0
  466. package/lib/codec/polynetwork-models.d.ts +4 -4
  467. package/lib/codec/polynetwork-models.js +4 -4
  468. package/lib/codec/proofs.d.ts +0 -1
  469. package/lib/codec/proofs.js +0 -6
  470. package/lib/codec/query/pagination.d.ts +29 -0
  471. package/lib/codec/query/pagination.js +126 -0
  472. package/lib/modules/broker.js +1 -1
  473. package/lib/modules/cdp.d.ts +1 -1
  474. package/lib/modules/cdp.js +4 -5
  475. package/lib/modules/coin.js +1 -1
  476. package/lib/modules/cosmwasm.d.ts +2 -2
  477. package/lib/modules/cosmwasm.js +2 -2
  478. package/lib/modules/evm.d.ts +0 -1
  479. package/lib/modules/evm.js +2 -44
  480. package/lib/modules/gov.d.ts +1 -1
  481. package/lib/modules/gov.js +6 -6
  482. package/lib/modules/ibc.d.ts +1 -1
  483. package/lib/modules/index.d.ts +0 -1
  484. package/lib/modules/index.js +0 -1
  485. package/lib/modules/leverage.js +1 -1
  486. package/lib/modules/market.js +1 -1
  487. package/lib/modules/oracle.js +1 -1
  488. package/lib/modules/order.js +1 -1
  489. package/lib/modules/position.js +1 -1
  490. package/lib/modules/profile.js +1 -1
  491. package/lib/modules/subaccount.js +1 -1
  492. package/lib/modules/vault.d.ts +56 -0
  493. package/lib/modules/vault.js +128 -0
  494. package/lib/modules/xchain.js +2 -2
  495. package/lib/provider/amino/types/evm.js +0 -6
  496. package/lib/provider/station/StationAccount.d.ts +28 -0
  497. package/lib/provider/station/StationAccount.js +168 -0
  498. package/lib/provider/station/index.d.ts +2 -0
  499. package/lib/provider/station/index.js +10 -0
  500. package/lib/util/generic.d.ts +3 -3
  501. package/lib/util/generic.js +1 -1
  502. package/lib/util/tx.d.ts +152 -168
  503. package/lib/wallet/CarbonSigningClient.d.ts +2 -2
  504. package/lib/wallet/CarbonWallet.d.ts +4 -4
  505. package/lib/wallet/CarbonWallet.js +2 -2
  506. package/package.json +3 -3
@@ -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
@@ -113,7 +113,6 @@ class CarbonSDK {
113
113
  this.xchain = new modules_1.XChainModule(this);
114
114
  this.evm = new modules_1.EvmModule(this);
115
115
  this.evmmerge = new modules_1.EvmMergeModule(this);
116
- this.feemarket = new modules_1.FeemarketModule(this);
117
116
  this.neo = clients_1.NEOClient.instance({
118
117
  configProvider: this,
119
118
  blockchain: blockchain_1.Blockchain.Neo,
@@ -159,7 +158,7 @@ class CarbonSDK {
159
158
  const configOverride = (_b = opts.config) !== null && _b !== void 0 ? _b : {};
160
159
  const defaultTimeoutBlocks = opts.defaultTimeoutBlocks;
161
160
  const networkConfig = util_1.GenericUtils.overrideConfig(constant_1.NetworkConfigs[network], configOverride);
162
- 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
163
162
  let chainId = networkConfig.chainId; // fallback chain ID
164
163
  let normalInit = true;
165
164
  try {
@@ -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,11 +1,11 @@
1
- import { QueryClientImpl as ADLQueryClient } from "../codec/adl/query";
2
- import { QueryClientImpl as BookQueryClient } from "../codec/book/query";
3
- import { QueryClientImpl as BrokerQueryClient } from "../codec/broker/query";
4
- import { QueryClientImpl as CDPQueryClient } from "../codec/cdp/query";
5
- import { QueryClientImpl as CoinQueryClient } from "../codec/coin/query";
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
6
  import { QueryClientImpl as AuthQueryClient } from "../codec/cosmos/auth/v1beta1/query";
7
7
  import { QueryClientImpl as BankQueryClient } from "../codec/cosmos/bank/v1beta1/query";
8
- import { QueryClientImpl as NativeBankQueryClient } from "../codec/bank/query";
8
+ import { QueryClientImpl as NativeBankQueryClient } from "../codec/Switcheo/carbon/bank/query";
9
9
  import { ServiceClientImpl as CosmosTmClient } from "../codec/cosmos/base/tendermint/v1beta1/query";
10
10
  import { QueryClientImpl as DistributionQueryClient } from "../codec/cosmos/distribution/v1beta1/query";
11
11
  import { QueryClientImpl as EvidenceQueryClient } from "../codec/cosmos/evidence/v1beta1/query";
@@ -17,35 +17,35 @@ import { QueryClientImpl as SlashingQueryClient } from "../codec/cosmos/slashing
17
17
  import { QueryClientImpl as StakingQueryClient } from "../codec/cosmos/staking/v1beta1/query";
18
18
  import { QueryClientImpl as UpgradeQueryClient } from "../codec/cosmos/upgrade/v1beta1/query";
19
19
  import { QueryClientImpl as EthermintEVMQueryClient } from "../codec/ethermint/evm/v1/query";
20
- import { QueryClientImpl as EvmMergeQueryClient } from "../codec/evmmerge/query";
21
- import { QueryClientImpl as EvmBankQueryClient } from "../codec/evmbank/query";
20
+ import { QueryClientImpl as EvmMergeQueryClient } from "../codec/Switcheo/carbon/evmmerge/query";
21
+ import { QueryClientImpl as EvmBankQueryClient } from "../codec/Switcheo/carbon/evmbank/query";
22
22
  import { QueryClientImpl as EthermintFeeMarketQueryClient } from "../codec/ethermint/feemarket/v1/query";
23
- import { QueryClientImpl as FeeQueryClient } from "../codec/fee/query";
24
- import { QueryClientImpl as HeadersyncQueryClient } from "../codec/headersync/query";
23
+ import { QueryClientImpl as FeeQueryClient } from "../codec/Switcheo/carbon/fee/query";
24
+ import { QueryClientImpl as HeadersyncQueryClient } from "../codec/Switcheo/carbon/headersync/query";
25
25
  import { QueryClientImpl as IBCInterchainControlQueryClient } from "../codec/ibc/applications/interchain_accounts/controller/v1/query";
26
26
  import { QueryClientImpl as IBCInterchainHostQueryClient } from "../codec/ibc/applications/interchain_accounts/host/v1/query";
27
27
  import { QueryClientImpl as IBCTransferQueryClient } from "../codec/ibc/applications/transfer/v1/query";
28
28
  import { QueryClientImpl as IBCClientQueryClient } from "../codec/ibc/core/client/v1/query";
29
29
  import { QueryClientImpl as IBCConnectionQueryClient } from "../codec/ibc/core/connection/v1/query";
30
30
  import { QueryClientImpl as IBCChannelQueryClient } from "../codec/ibc/core/channel/v1/query";
31
- import { QueryClientImpl as InflationQueryClient } from "../codec/inflation/query";
32
- import { QueryClientImpl as InsuranceQueryClient } from "../codec/insurance/query";
33
- import { QueryClientImpl as LeverageQueryClient } from "../codec/leverage/query";
34
- import { QueryClientImpl as LiquidationQueryClient } from "../codec/liquidation/query";
35
- import { QueryClientImpl as LiquidityPoolQueryClient } from "../codec/liquiditypool/query";
36
- import { QueryClientImpl as MarketQueryClient } from "../codec/market/query";
37
- import { QueryClientImpl as MarketStatsQueryClient } from "../codec/marketstats/query";
38
- import { QueryClientImpl as MiscQueryClient } from "../codec/misc/query";
39
- import { QueryClientImpl as OracleQueryClient } from "../codec/oracle/query";
40
- import { QueryClientImpl as OrderQueryClient } from "../codec/order/query";
41
- import { QueryClientImpl as PositionQueryClient } from "../codec/position/query";
42
- import { QueryClientImpl as PricingQueryClient } from "../codec/pricing/query";
43
- import { QueryClientImpl as ProfileQueryClient } from "../codec/profile/query";
44
- import { QueryClientImpl as SubaccountQueryClient } from "../codec/subaccount/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
45
  import { QueryClientImpl as AllianceClient } from "../codec/alliance/query";
46
- import { QueryClientImpl as PerpspoolQueryClient } from "../codec/perpspool/query";
47
- import { QueryClientImpl as ERC20QueryClient } from "../codec/erc20/query";
48
- import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
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,34 +22,34 @@ 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 {
@@ -656,19 +656,12 @@ class TokenClient {
656
656
  });
657
657
  }
658
658
  getDenomToGeckoIdMap() {
659
- var _a;
660
659
  return __awaiter(this, void 0, void 0, function* () {
661
660
  const networkConfig = this.configProvider.getConfig();
662
661
  const insights = new InsightsQueryClient_1.default(networkConfig);
663
- let tokens = {};
664
- try {
665
- const response = yield insights.DenomToGeckoIdMap();
666
- tokens = response.result.gecko;
667
- return tokens;
668
- }
669
- catch (err) {
670
- throw new Error((_a = err.message) !== null && _a !== void 0 ? _a : "Unknown gecko query error");
671
- }
662
+ const response = yield insights.DenomToGeckoIdMap();
663
+ const tokens = response.result.gecko;
664
+ return tokens;
672
665
  });
673
666
  }
674
667
  setCommonAssetConfig() {
@@ -0,0 +1,18 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "Switcheo.carbon.adl";
4
+ /** GenesisState defines the adl module's genesis state. */
5
+ export interface GenesisState {
6
+ }
7
+ export declare const GenesisState: {
8
+ encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
9
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
10
+ fromJSON(_: any): GenesisState;
11
+ toJSON(_: GenesisState): unknown;
12
+ fromPartial(_: DeepPartial<GenesisState>): GenesisState;
13
+ };
14
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
16
+ [K in keyof T]?: DeepPartial<T[K]>;
17
+ } : Partial<T>;
18
+ export {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GenesisState = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "Switcheo.carbon.adl";
11
+ const baseGenesisState = {};
12
+ exports.GenesisState = {
13
+ encode(_, writer = minimal_1.default.Writer.create()) {
14
+ return writer;
15
+ },
16
+ decode(input, length) {
17
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
18
+ let end = length === undefined ? reader.len : reader.pos + length;
19
+ const message = Object.assign({}, baseGenesisState);
20
+ while (reader.pos < end) {
21
+ const tag = reader.uint32();
22
+ switch (tag >>> 3) {
23
+ default:
24
+ reader.skipType(tag & 7);
25
+ break;
26
+ }
27
+ }
28
+ return message;
29
+ },
30
+ fromJSON(_) {
31
+ const message = Object.assign({}, baseGenesisState);
32
+ return message;
33
+ },
34
+ toJSON(_) {
35
+ const obj = {};
36
+ return obj;
37
+ },
38
+ fromPartial(_) {
39
+ const message = Object.assign({}, baseGenesisState);
40
+ return message;
41
+ },
42
+ };
43
+ if (minimal_1.default.util.Long !== long_1.default) {
44
+ minimal_1.default.util.Long = long_1.default;
45
+ minimal_1.default.configure();
46
+ }
@@ -0,0 +1,12 @@
1
+ export declare const protobufPackage = "Switcheo.carbon.adl";
2
+ /** Query defines the gRPC querier service. */
3
+ export interface Query {
4
+ }
5
+ export declare class QueryClientImpl implements Query {
6
+ private readonly rpc;
7
+ constructor(rpc: Rpc);
8
+ }
9
+ interface Rpc {
10
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
11
+ }
12
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.QueryClientImpl = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "Switcheo.carbon.adl";
11
+ class QueryClientImpl {
12
+ constructor(rpc) {
13
+ this.rpc = rpc;
14
+ }
15
+ }
16
+ exports.QueryClientImpl = QueryClientImpl;
17
+ if (minimal_1.default.util.Long !== long_1.default) {
18
+ minimal_1.default.util.Long = long_1.default;
19
+ minimal_1.default.configure();
20
+ }
@@ -0,0 +1,12 @@
1
+ export declare const protobufPackage = "Switcheo.carbon.adl";
2
+ /** Msg defines the Msg service. */
3
+ export interface Msg {
4
+ }
5
+ export declare class MsgClientImpl implements Msg {
6
+ private readonly rpc;
7
+ constructor(rpc: Rpc);
8
+ }
9
+ interface Rpc {
10
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
11
+ }
12
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MsgClientImpl = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "Switcheo.carbon.adl";
11
+ class MsgClientImpl {
12
+ constructor(rpc) {
13
+ this.rpc = rpc;
14
+ }
15
+ }
16
+ exports.MsgClientImpl = MsgClientImpl;
17
+ if (minimal_1.default.util.Long !== long_1.default) {
18
+ minimal_1.default.util.Long = long_1.default;
19
+ minimal_1.default.configure();
20
+ }
@@ -0,0 +1,2 @@
1
+ export { QueryAdminRequest, QueryAdminResponse, QueryAdminRecipientRequest, QueryAdminRecipientResponse } from "./query";
2
+ export { MsgInitiateAdminTransfer, MsgInitiateAdminTransferResponse, MsgAcceptAdminTransfer, MsgAcceptAdminTransferResponse } from "./tx";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MsgAcceptAdminTransferResponse = exports.MsgAcceptAdminTransfer = exports.MsgInitiateAdminTransferResponse = exports.MsgInitiateAdminTransfer = exports.QueryAdminRecipientResponse = exports.QueryAdminRecipientRequest = exports.QueryAdminResponse = exports.QueryAdminRequest = void 0;
4
+ var query_1 = require("./query");
5
+ Object.defineProperty(exports, "QueryAdminRequest", { enumerable: true, get: function () { return query_1.QueryAdminRequest; } });
6
+ Object.defineProperty(exports, "QueryAdminResponse", { enumerable: true, get: function () { return query_1.QueryAdminResponse; } });
7
+ Object.defineProperty(exports, "QueryAdminRecipientRequest", { enumerable: true, get: function () { return query_1.QueryAdminRecipientRequest; } });
8
+ Object.defineProperty(exports, "QueryAdminRecipientResponse", { enumerable: true, get: function () { return query_1.QueryAdminRecipientResponse; } });
9
+ var tx_1 = require("./tx");
10
+ Object.defineProperty(exports, "MsgInitiateAdminTransfer", { enumerable: true, get: function () { return tx_1.MsgInitiateAdminTransfer; } });
11
+ Object.defineProperty(exports, "MsgInitiateAdminTransferResponse", { enumerable: true, get: function () { return tx_1.MsgInitiateAdminTransferResponse; } });
12
+ Object.defineProperty(exports, "MsgAcceptAdminTransfer", { enumerable: true, get: function () { return tx_1.MsgAcceptAdminTransfer; } });
13
+ Object.defineProperty(exports, "MsgAcceptAdminTransferResponse", { enumerable: true, get: function () { return tx_1.MsgAcceptAdminTransferResponse; } });
@@ -0,0 +1,18 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "Switcheo.carbon.admin";
4
+ /** GenesisState defines the admin module's genesis state. */
5
+ export interface GenesisState {
6
+ }
7
+ export declare const GenesisState: {
8
+ encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
9
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
10
+ fromJSON(_: any): GenesisState;
11
+ toJSON(_: GenesisState): unknown;
12
+ fromPartial(_: DeepPartial<GenesisState>): GenesisState;
13
+ };
14
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
16
+ [K in keyof T]?: DeepPartial<T[K]>;
17
+ } : Partial<T>;
18
+ export {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GenesisState = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "Switcheo.carbon.admin";
11
+ const baseGenesisState = {};
12
+ exports.GenesisState = {
13
+ encode(_, writer = minimal_1.default.Writer.create()) {
14
+ return writer;
15
+ },
16
+ decode(input, length) {
17
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
18
+ let end = length === undefined ? reader.len : reader.pos + length;
19
+ const message = Object.assign({}, baseGenesisState);
20
+ while (reader.pos < end) {
21
+ const tag = reader.uint32();
22
+ switch (tag >>> 3) {
23
+ default:
24
+ reader.skipType(tag & 7);
25
+ break;
26
+ }
27
+ }
28
+ return message;
29
+ },
30
+ fromJSON(_) {
31
+ const message = Object.assign({}, baseGenesisState);
32
+ return message;
33
+ },
34
+ toJSON(_) {
35
+ const obj = {};
36
+ return obj;
37
+ },
38
+ fromPartial(_) {
39
+ const message = Object.assign({}, baseGenesisState);
40
+ return message;
41
+ },
42
+ };
43
+ if (minimal_1.default.util.Long !== long_1.default) {
44
+ minimal_1.default.util.Long = long_1.default;
45
+ minimal_1.default.configure();
46
+ }
@@ -0,0 +1,62 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "Switcheo.carbon.admin";
4
+ export interface QueryAdminRequest {
5
+ }
6
+ export interface QueryAdminResponse {
7
+ address: string;
8
+ }
9
+ export interface QueryAdminRecipientRequest {
10
+ }
11
+ export interface QueryAdminRecipientResponse {
12
+ address: string;
13
+ }
14
+ export declare const QueryAdminRequest: {
15
+ encode(_: QueryAdminRequest, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRequest;
17
+ fromJSON(_: any): QueryAdminRequest;
18
+ toJSON(_: QueryAdminRequest): unknown;
19
+ fromPartial(_: DeepPartial<QueryAdminRequest>): QueryAdminRequest;
20
+ };
21
+ export declare const QueryAdminResponse: {
22
+ encode(message: QueryAdminResponse, writer?: _m0.Writer): _m0.Writer;
23
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminResponse;
24
+ fromJSON(object: any): QueryAdminResponse;
25
+ toJSON(message: QueryAdminResponse): unknown;
26
+ fromPartial(object: DeepPartial<QueryAdminResponse>): QueryAdminResponse;
27
+ };
28
+ export declare const QueryAdminRecipientRequest: {
29
+ encode(_: QueryAdminRecipientRequest, writer?: _m0.Writer): _m0.Writer;
30
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientRequest;
31
+ fromJSON(_: any): QueryAdminRecipientRequest;
32
+ toJSON(_: QueryAdminRecipientRequest): unknown;
33
+ fromPartial(_: DeepPartial<QueryAdminRecipientRequest>): QueryAdminRecipientRequest;
34
+ };
35
+ export declare const QueryAdminRecipientResponse: {
36
+ encode(message: QueryAdminRecipientResponse, writer?: _m0.Writer): _m0.Writer;
37
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientResponse;
38
+ fromJSON(object: any): QueryAdminRecipientResponse;
39
+ toJSON(message: QueryAdminRecipientResponse): unknown;
40
+ fromPartial(object: DeepPartial<QueryAdminRecipientResponse>): QueryAdminRecipientResponse;
41
+ };
42
+ /** Query defines the gRPC querier service. */
43
+ export interface Query {
44
+ /** Queries a list of Admin items. */
45
+ Admin(request: QueryAdminRequest): Promise<QueryAdminResponse>;
46
+ /** Queries a list of AdminRecipient items. */
47
+ AdminRecipient(request: QueryAdminRecipientRequest): Promise<QueryAdminRecipientResponse>;
48
+ }
49
+ export declare class QueryClientImpl implements Query {
50
+ private readonly rpc;
51
+ constructor(rpc: Rpc);
52
+ Admin(request: QueryAdminRequest): Promise<QueryAdminResponse>;
53
+ AdminRecipient(request: QueryAdminRecipientRequest): Promise<QueryAdminRecipientResponse>;
54
+ }
55
+ interface Rpc {
56
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
57
+ }
58
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
60
+ [K in keyof T]?: DeepPartial<T[K]>;
61
+ } : Partial<T>;
62
+ export {};