carbon-js-sdk 0.7.6 → 0.7.7

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 (914) hide show
  1. package/lib/CarbonSDK.d.ts +4 -0
  2. package/lib/CarbonSDK.js +50 -12
  3. package/lib/clients/BatchQueryClient.js +4 -4
  4. package/lib/clients/CarbonQueryClient.js +1 -1
  5. package/lib/clients/ETHClient.js +15 -15
  6. package/lib/clients/GasFee.d.ts +12 -0
  7. package/lib/clients/GasFee.js +38 -0
  8. package/lib/clients/HydrogenClient.js +1 -1
  9. package/lib/clients/InsightsQueryClient.js +3 -3
  10. package/lib/clients/NEOClient.js +12 -8
  11. package/lib/clients/TokenClient.js +2 -2
  12. package/lib/clients/ZILClient.js +17 -17
  13. package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +3 -3
  14. package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +3 -3
  15. package/lib/codec/Switcheo/carbon/admin/query.d.ts +6 -6
  16. package/lib/codec/Switcheo/carbon/admin/tx.d.ts +6 -6
  17. package/lib/codec/Switcheo/carbon/bank/event.d.ts +7 -7
  18. package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +3 -3
  19. package/lib/codec/Switcheo/carbon/bank/query.d.ts +6 -6
  20. package/lib/codec/Switcheo/carbon/book/book.d.ts +6 -6
  21. package/lib/codec/Switcheo/carbon/book/event.d.ts +3 -3
  22. package/lib/codec/Switcheo/carbon/book/genesis.d.ts +3 -3
  23. package/lib/codec/Switcheo/carbon/book/legacy.d.ts +3 -3
  24. package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -12
  25. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +5 -5
  26. package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +3 -3
  27. package/lib/codec/Switcheo/carbon/broker/event.d.ts +4 -4
  28. package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +3 -3
  29. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +3 -3
  30. package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +3 -3
  31. package/lib/codec/Switcheo/carbon/broker/query.d.ts +8 -8
  32. package/lib/codec/Switcheo/carbon/broker/tx.d.ts +5 -5
  33. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +3 -3
  34. package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +3 -3
  35. package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +3 -3
  36. package/lib/codec/Switcheo/carbon/btcx/query.d.ts +6 -6
  37. package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +8 -8
  38. package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +3 -3
  39. package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +7 -7
  40. package/lib/codec/Switcheo/carbon/ccm/query.d.ts +4 -4
  41. package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +8 -8
  42. package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +5 -5
  43. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +3 -3
  44. package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +3 -3
  45. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +3 -3
  46. package/lib/codec/Switcheo/carbon/cdp/event.d.ts +36 -36
  47. package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +10 -10
  48. package/lib/codec/Switcheo/carbon/cdp/params.d.ts +3 -3
  49. package/lib/codec/Switcheo/carbon/cdp/query.d.ts +53 -53
  50. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +3 -3
  51. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +6 -6
  52. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +3 -3
  53. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +3 -3
  54. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +87 -87
  55. package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +3 -3
  56. package/lib/codec/Switcheo/carbon/coin/event.d.ts +14 -14
  57. package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +4 -4
  58. package/lib/codec/Switcheo/carbon/coin/group.d.ts +5 -5
  59. package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +3 -3
  60. package/lib/codec/Switcheo/carbon/coin/query.d.ts +26 -26
  61. package/lib/codec/Switcheo/carbon/coin/token.d.ts +9 -9
  62. package/lib/codec/Switcheo/carbon/coin/tx.d.ts +48 -48
  63. package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +3 -3
  64. package/lib/codec/Switcheo/carbon/erc20/events.d.ts +6 -6
  65. package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +4 -4
  66. package/lib/codec/Switcheo/carbon/erc20/query.d.ts +8 -8
  67. package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +16 -16
  68. package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +4 -4
  69. package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +4 -4
  70. package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +3 -3
  71. package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +3 -3
  72. package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +3 -3
  73. package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +5 -5
  74. package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +3 -3
  75. package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +6 -6
  76. package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +4 -4
  77. package/lib/codec/Switcheo/carbon/fee/event.d.ts +3 -3
  78. package/lib/codec/Switcheo/carbon/fee/fee.d.ts +5 -5
  79. package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +3 -3
  80. package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +6 -6
  81. package/lib/codec/Switcheo/carbon/fee/query.d.ts +10 -10
  82. package/lib/codec/Switcheo/carbon/fee/tx.d.ts +10 -10
  83. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +7 -7
  84. package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +7 -7
  85. package/lib/codec/Switcheo/carbon/headersync/query.d.ts +6 -6
  86. package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +6 -6
  87. package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +3 -3
  88. package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +3 -3
  89. package/lib/codec/Switcheo/carbon/inflation/query.d.ts +4 -4
  90. package/lib/codec/Switcheo/carbon/insurance/event.d.ts +3 -3
  91. package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +4 -4
  92. package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +3 -3
  93. package/lib/codec/Switcheo/carbon/insurance/query.d.ts +4 -4
  94. package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +4 -4
  95. package/lib/codec/Switcheo/carbon/leverage/event.d.ts +3 -3
  96. package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +3 -3
  97. package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +4 -4
  98. package/lib/codec/Switcheo/carbon/leverage/query.d.ts +6 -6
  99. package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +4 -4
  100. package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +4 -4
  101. package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +3 -3
  102. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +4 -4
  103. package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +6 -6
  104. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +3 -3
  105. package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +15 -15
  106. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +3 -3
  107. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +12 -12
  108. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +11 -11
  109. package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +31 -31
  110. package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +18 -18
  111. package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +39 -39
  112. package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +4 -4
  113. package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +6 -6
  114. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +3 -3
  115. package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +6 -6
  116. package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +12 -12
  117. package/lib/codec/Switcheo/carbon/market/event.d.ts +3 -3
  118. package/lib/codec/Switcheo/carbon/market/fee.d.ts +7 -7
  119. package/lib/codec/Switcheo/carbon/market/genesis.d.ts +3 -3
  120. package/lib/codec/Switcheo/carbon/market/market.d.ts +7 -7
  121. package/lib/codec/Switcheo/carbon/market/proposal.d.ts +5 -5
  122. package/lib/codec/Switcheo/carbon/market/query.d.ts +20 -20
  123. package/lib/codec/Switcheo/carbon/market/tx.d.ts +21 -21
  124. package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +3 -3
  125. package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +3 -3
  126. package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +3 -3
  127. package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +6 -6
  128. package/lib/codec/Switcheo/carbon/misc/block.d.ts +3 -3
  129. package/lib/codec/Switcheo/carbon/misc/message.d.ts +3 -3
  130. package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +3 -3
  131. package/lib/codec/Switcheo/carbon/misc/query.d.ts +16 -16
  132. package/lib/codec/Switcheo/carbon/misc/trade.d.ts +3 -3
  133. package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +4 -4
  134. package/lib/codec/Switcheo/carbon/oracle/event.d.ts +4 -4
  135. package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +3 -3
  136. package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +8 -8
  137. package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +3 -3
  138. package/lib/codec/Switcheo/carbon/oracle/query.d.ts +28 -28
  139. package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +4 -4
  140. package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +14 -14
  141. package/lib/codec/Switcheo/carbon/order/event.d.ts +3 -3
  142. package/lib/codec/Switcheo/carbon/order/genesis.d.ts +6 -6
  143. package/lib/codec/Switcheo/carbon/order/order.d.ts +9 -9
  144. package/lib/codec/Switcheo/carbon/order/query.d.ts +12 -12
  145. package/lib/codec/Switcheo/carbon/order/tx.d.ts +12 -12
  146. package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +9 -9
  147. package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +6 -6
  148. package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +8 -8
  149. package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +3 -3
  150. package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +8 -8
  151. package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +20 -20
  152. package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +18 -18
  153. package/lib/codec/Switcheo/carbon/position/event.d.ts +3 -3
  154. package/lib/codec/Switcheo/carbon/position/genesis.d.ts +3 -3
  155. package/lib/codec/Switcheo/carbon/position/position.d.ts +6 -6
  156. package/lib/codec/Switcheo/carbon/position/query.d.ts +8 -8
  157. package/lib/codec/Switcheo/carbon/position/tx.d.ts +4 -4
  158. package/lib/codec/Switcheo/carbon/pricing/event.d.ts +8 -8
  159. package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +3 -3
  160. package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +3 -3
  161. package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +5 -5
  162. package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +4 -4
  163. package/lib/codec/Switcheo/carbon/pricing/query.d.ts +16 -16
  164. package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +12 -12
  165. package/lib/codec/Switcheo/carbon/profile/event.d.ts +3 -3
  166. package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +3 -3
  167. package/lib/codec/Switcheo/carbon/profile/profile.d.ts +3 -3
  168. package/lib/codec/Switcheo/carbon/profile/query.d.ts +8 -8
  169. package/lib/codec/Switcheo/carbon/profile/tx.d.ts +4 -4
  170. package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +4 -4
  171. package/lib/codec/Switcheo/carbon/sequence/query.d.ts +6 -6
  172. package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +4 -4
  173. package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +3 -3
  174. package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +3 -3
  175. package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +19 -19
  176. package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +6 -6
  177. package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +8 -8
  178. package/lib/codec/alliance/alliance.d.ts +5 -5
  179. package/lib/codec/alliance/delegations.d.ts +8 -8
  180. package/lib/codec/alliance/events.d.ts +6 -6
  181. package/lib/codec/alliance/genesis.d.ts +7 -7
  182. package/lib/codec/alliance/gov.d.ts +5 -5
  183. package/lib/codec/alliance/params.d.ts +4 -4
  184. package/lib/codec/alliance/query.d.ts +24 -24
  185. package/lib/codec/alliance/tx.d.ts +10 -10
  186. package/lib/codec/carbon-models.js +5 -1
  187. package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
  188. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +4 -4
  189. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
  190. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
  191. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +5 -5
  192. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
  193. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +20 -20
  194. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
  195. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
  196. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
  197. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
  198. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
  199. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
  200. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
  201. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
  202. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +21 -21
  203. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +6 -6
  204. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +12 -12
  205. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
  206. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +4 -4
  207. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
  208. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
  209. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
  210. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
  211. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
  212. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
  213. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
  214. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
  215. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
  216. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
  217. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
  218. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
  219. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +4 -4
  220. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
  221. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
  222. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
  223. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
  224. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
  225. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
  226. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
  227. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
  228. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
  229. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +22 -22
  230. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +10 -10
  231. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
  232. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
  233. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
  234. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
  235. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
  236. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
  237. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
  238. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
  239. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
  240. package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
  241. package/lib/codec/cosmos/gov/v1/gov.d.ts +10 -10
  242. package/lib/codec/cosmos/gov/v1/query.d.ts +18 -18
  243. package/lib/codec/cosmos/gov/v1/query.js +2 -2
  244. package/lib/codec/cosmos/gov/v1/tx.d.ts +12 -12
  245. package/lib/codec/cosmos/gov/v1/tx.js +2 -2
  246. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  247. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
  248. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
  249. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  250. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
  251. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  252. package/lib/codec/cosmos/group/v1/events.d.ts +11 -11
  253. package/lib/codec/cosmos/group/v1/events.js +2 -2
  254. package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
  255. package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
  256. package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
  257. package/lib/codec/cosmos/group/v1/tx.js +4 -4
  258. package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
  259. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
  260. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
  261. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
  262. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
  263. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
  264. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
  265. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
  266. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
  267. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
  268. package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
  269. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
  270. package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
  271. package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
  272. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
  273. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
  274. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
  275. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +4 -4
  276. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
  277. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
  278. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
  279. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +22 -22
  280. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +14 -14
  281. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
  282. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +12 -12
  283. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
  284. package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
  285. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
  286. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
  287. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
  288. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
  289. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
  290. package/lib/codec/cosmos-models.js +5 -1
  291. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
  292. package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
  293. package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
  294. package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
  295. package/lib/codec/ethermint/evm/v1/tx.d.ts +8 -8
  296. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
  297. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
  298. package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
  299. package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
  300. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
  301. package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
  302. package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
  303. package/lib/codec/ethermint-models.js +5 -1
  304. package/lib/codec/google/protobuf/any.d.ts +3 -3
  305. package/lib/codec/google/protobuf/duration.d.ts +3 -3
  306. package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
  307. package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
  308. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
  309. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +4 -4
  310. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
  311. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
  312. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
  313. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +7 -7
  314. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
  315. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
  316. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
  317. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +10 -10
  318. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
  319. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -4
  320. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
  321. package/lib/codec/ibc/core/channel/v1/channel.d.ts +8 -8
  322. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
  323. package/lib/codec/ibc/core/channel/v1/query.d.ts +28 -28
  324. package/lib/codec/ibc/core/channel/v1/tx.d.ts +22 -22
  325. package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
  326. package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
  327. package/lib/codec/ibc/core/client/v1/query.d.ts +18 -18
  328. package/lib/codec/ibc/core/client/v1/tx.d.ts +10 -10
  329. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
  330. package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
  331. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
  332. package/lib/codec/ibc/core/connection/v1/query.d.ts +12 -12
  333. package/lib/codec/ibc/core/connection/v1/tx.d.ts +10 -10
  334. package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
  335. package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
  336. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
  337. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
  338. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
  339. package/lib/codec/ibc-models.js +5 -1
  340. package/lib/codec/index.js +5 -1
  341. package/lib/codec/polynetwork-models.js +5 -1
  342. package/lib/codec/proofs.d.ts +15 -15
  343. package/lib/codec/tendermint/abci/types.d.ts +46 -46
  344. package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
  345. package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
  346. package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
  347. package/lib/codec/tendermint/p2p/types.d.ts +6 -6
  348. package/lib/codec/tendermint/types/block.d.ts +3 -3
  349. package/lib/codec/tendermint/types/evidence.d.ts +6 -6
  350. package/lib/codec/tendermint/types/params.d.ts +8 -8
  351. package/lib/codec/tendermint/types/types.d.ts +15 -15
  352. package/lib/codec/tendermint/types/validator.d.ts +5 -5
  353. package/lib/codec/tendermint/version/types.d.ts +4 -4
  354. package/lib/constant/address.d.ts +1 -1
  355. package/lib/constant/generic.js +1 -1
  356. package/lib/constant/ibc.d.ts +3 -3
  357. package/lib/constant/ibc.js +5 -1
  358. package/lib/constant/index.js +5 -1
  359. package/lib/constant/node.d.ts +1 -1
  360. package/lib/eth/index.js +5 -1
  361. package/lib/hydrogen/index.js +5 -1
  362. package/lib/hydrogen/transfer.d.ts +2 -2
  363. package/lib/index.js +5 -1
  364. package/lib/insights/common.d.ts +1 -1
  365. package/lib/insights/index.js +5 -1
  366. package/lib/insights/position.d.ts +1 -1
  367. package/lib/modules/cdp.js +45 -45
  368. package/lib/modules/cosmwasm.js +2 -2
  369. package/lib/modules/evm.d.ts +1 -1
  370. package/lib/modules/evm.js +6 -6
  371. package/lib/modules/gov.js +12 -12
  372. package/lib/modules/index.js +5 -1
  373. package/lib/modules/liquiditypool.js +1 -1
  374. package/lib/modules/order.js +2 -2
  375. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  376. package/lib/provider/account/EthLedgerAccount/index.js +5 -1
  377. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  378. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +5 -1
  379. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  380. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
  381. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +8 -4
  382. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  383. package/lib/provider/account/NeoLedgerAccount/index.js +5 -1
  384. package/lib/provider/account/index.js +5 -1
  385. package/lib/provider/amino/types/admin.js +32 -28
  386. package/lib/provider/amino/types/bank.js +6 -2
  387. package/lib/provider/amino/types/broker.js +6 -2
  388. package/lib/provider/amino/types/cdp.js +31 -27
  389. package/lib/provider/amino/types/coin.js +9 -5
  390. package/lib/provider/amino/types/erc20.js +7 -3
  391. package/lib/provider/amino/types/evm.js +6 -2
  392. package/lib/provider/amino/types/evmmerge.js +6 -2
  393. package/lib/provider/amino/types/feemarket.js +6 -2
  394. package/lib/provider/amino/types/gov.js +10 -6
  395. package/lib/provider/amino/types/ibc.js +6 -2
  396. package/lib/provider/amino/types/leverage.js +6 -2
  397. package/lib/provider/amino/types/liquidityPool.js +12 -8
  398. package/lib/provider/amino/types/market.js +11 -7
  399. package/lib/provider/amino/types/oracle.js +7 -3
  400. package/lib/provider/amino/types/order.js +9 -5
  401. package/lib/provider/amino/types/perpspool.js +11 -7
  402. package/lib/provider/amino/types/position.js +6 -2
  403. package/lib/provider/amino/types/profile.js +6 -2
  404. package/lib/provider/amino/types/staking.js +9 -5
  405. package/lib/provider/amino/types/subaccount.js +8 -4
  406. package/lib/provider/amino/utils.d.ts +2 -2
  407. package/lib/provider/amino/utils.js +11 -11
  408. package/lib/provider/keplr/KeplrAccount.js +6 -6
  409. package/lib/provider/leap/LeapAccount.js +2 -2
  410. package/lib/provider/ledger/ledger.js +9 -6
  411. package/lib/provider/metamask/MetaMask.d.ts +1 -1
  412. package/lib/provider/metamask/MetaMask.js +28 -24
  413. package/lib/provider/metamask/error.d.ts +1 -1
  414. package/lib/provider/o3/O3Types.d.ts +1 -1
  415. package/lib/provider/o3/O3Wallet.js +15 -11
  416. package/lib/provider/o3/index.js +5 -1
  417. package/lib/provider/zilpay/Zilpay.js +4 -4
  418. package/lib/provider/zilpay/index.js +5 -1
  419. package/lib/util/address.d.ts +5 -5
  420. package/lib/util/address.js +19 -15
  421. package/lib/util/api.d.ts +3 -3
  422. package/lib/util/api.js +4 -4
  423. package/lib/util/blockchain.d.ts +7 -7
  424. package/lib/util/blockchain.js +4 -4
  425. package/lib/util/eip712.js +3 -3
  426. package/lib/util/fetch.js +1 -1
  427. package/lib/util/generic.d.ts +3 -2
  428. package/lib/util/generic.js +3 -3
  429. package/lib/util/gov.d.ts +1 -1
  430. package/lib/util/index.js +5 -1
  431. package/lib/util/legacyEIP712.d.ts +2 -2
  432. package/lib/util/legacyEIP712.js +2 -2
  433. package/lib/util/network.js +3 -3
  434. package/lib/util/number.d.ts +4 -4
  435. package/lib/util/number.js +5 -5
  436. package/lib/util/tx.d.ts +3 -3
  437. package/lib/util/tx.js +5 -1
  438. package/lib/util/type.d.ts +1 -1
  439. package/lib/wallet/CarbonSigner.d.ts +5 -5
  440. package/lib/wallet/CarbonSigner.js +6 -6
  441. package/lib/wallet/CarbonSigningClient.js +15 -15
  442. package/lib/wallet/CarbonWallet.d.ts +4 -14
  443. package/lib/wallet/CarbonWallet.js +23 -51
  444. package/lib/wallet/index.js +5 -1
  445. package/lib/websocket/connector.js +8 -4
  446. package/lib/websocket/index.js +5 -1
  447. package/lib/websocket/types.d.ts +1 -1
  448. package/package.json +1 -1
  449. package/lib/codec/adl/genesis.d.ts +0 -18
  450. package/lib/codec/adl/genesis.js +0 -46
  451. package/lib/codec/adl/query.d.ts +0 -12
  452. package/lib/codec/adl/query.js +0 -20
  453. package/lib/codec/adl/tx.d.ts +0 -12
  454. package/lib/codec/adl/tx.js +0 -20
  455. package/lib/codec/admin/export.d.ts +0 -2
  456. package/lib/codec/admin/export.js +0 -13
  457. package/lib/codec/admin/genesis.d.ts +0 -18
  458. package/lib/codec/admin/genesis.js +0 -46
  459. package/lib/codec/admin/query.d.ts +0 -62
  460. package/lib/codec/admin/query.js +0 -186
  461. package/lib/codec/admin/tx.d.ts +0 -62
  462. package/lib/codec/admin/tx.js +0 -198
  463. package/lib/codec/bank/event.d.ts +0 -65
  464. package/lib/codec/bank/event.js +0 -332
  465. package/lib/codec/bank/export.d.ts +0 -2
  466. package/lib/codec/bank/export.js +0 -14
  467. package/lib/codec/bank/genesis.d.ts +0 -18
  468. package/lib/codec/bank/genesis.js +0 -46
  469. package/lib/codec/bank/query.d.ts +0 -77
  470. package/lib/codec/bank/query.js +0 -459
  471. package/lib/codec/book/book.d.ts +0 -57
  472. package/lib/codec/book/book.js +0 -319
  473. package/lib/codec/book/event.d.ts +0 -22
  474. package/lib/codec/book/event.js +0 -113
  475. package/lib/codec/book/export.d.ts +0 -4
  476. package/lib/codec/book/export.js +0 -23
  477. package/lib/codec/book/genesis.d.ts +0 -25
  478. package/lib/codec/book/genesis.js +0 -79
  479. package/lib/codec/book/legacy.d.ts +0 -22
  480. package/lib/codec/book/legacy.js +0 -120
  481. package/lib/codec/book/query.d.ts +0 -141
  482. package/lib/codec/book/query.js +0 -606
  483. package/lib/codec/book/tx.d.ts +0 -12
  484. package/lib/codec/book/tx.js +0 -20
  485. package/lib/codec/broker/amm.d.ts +0 -50
  486. package/lib/codec/broker/amm.js +0 -326
  487. package/lib/codec/broker/candlestick.d.ts +0 -27
  488. package/lib/codec/broker/candlestick.js +0 -211
  489. package/lib/codec/broker/event.d.ts +0 -53
  490. package/lib/codec/broker/event.js +0 -485
  491. package/lib/codec/broker/export.d.ts +0 -7
  492. package/lib/codec/broker/export.js +0 -27
  493. package/lib/codec/broker/genesis.d.ts +0 -25
  494. package/lib/codec/broker/genesis.js +0 -79
  495. package/lib/codec/broker/incoming_liquidations.d.ts +0 -18
  496. package/lib/codec/broker/incoming_liquidations.js +0 -93
  497. package/lib/codec/broker/incoming_pool_swap.d.ts +0 -23
  498. package/lib/codec/broker/incoming_pool_swap.js +0 -136
  499. package/lib/codec/broker/pagination.d.ts +0 -19
  500. package/lib/codec/broker/pagination.js +0 -78
  501. package/lib/codec/broker/query.d.ts +0 -107
  502. package/lib/codec/broker/query.js +0 -597
  503. package/lib/codec/broker/tx.d.ts +0 -53
  504. package/lib/codec/broker/tx.js +0 -176
  505. package/lib/codec/btcx/denom_cross_chain_info.d.ts +0 -21
  506. package/lib/codec/btcx/denom_cross_chain_info.js +0 -98
  507. package/lib/codec/btcx/denom_info.d.ts +0 -24
  508. package/lib/codec/btcx/denom_info.js +0 -140
  509. package/lib/codec/btcx/export.d.ts +0 -4
  510. package/lib/codec/btcx/export.js +0 -19
  511. package/lib/codec/btcx/genesis.d.ts +0 -18
  512. package/lib/codec/btcx/genesis.js +0 -46
  513. package/lib/codec/btcx/query.d.ts +0 -68
  514. package/lib/codec/btcx/query.js +0 -275
  515. package/lib/codec/btcx/tx.d.ts +0 -92
  516. package/lib/codec/btcx/tx.js +0 -436
  517. package/lib/codec/ccm/ccm.d.ts +0 -19
  518. package/lib/codec/ccm/ccm.js +0 -60
  519. package/lib/codec/ccm/export.d.ts +0 -4
  520. package/lib/codec/ccm/export.js +0 -20
  521. package/lib/codec/ccm/genesis.d.ts +0 -83
  522. package/lib/codec/ccm/genesis.js +0 -438
  523. package/lib/codec/ccm/query.d.ts +0 -45
  524. package/lib/codec/ccm/query.js +0 -197
  525. package/lib/codec/ccm/tx.d.ts +0 -97
  526. package/lib/codec/ccm/tx.js +0 -462
  527. package/lib/codec/cdp/asset_params.d.ts +0 -57
  528. package/lib/codec/cdp/asset_params.js +0 -411
  529. package/lib/codec/cdp/cdp_liquidations.d.ts +0 -32
  530. package/lib/codec/cdp/cdp_liquidations.js +0 -288
  531. package/lib/codec/cdp/debt_info.d.ts +0 -23
  532. package/lib/codec/cdp/debt_info.js +0 -158
  533. package/lib/codec/cdp/e_mode_category.d.ts +0 -23
  534. package/lib/codec/cdp/e_mode_category.js +0 -135
  535. package/lib/codec/cdp/event.d.ts +0 -446
  536. package/lib/codec/cdp/event.js +0 -2913
  537. package/lib/codec/cdp/export.d.ts +0 -13
  538. package/lib/codec/cdp/export.js +0 -210
  539. package/lib/codec/cdp/genesis.d.ts +0 -134
  540. package/lib/codec/cdp/genesis.js +0 -825
  541. package/lib/codec/cdp/params.d.ts +0 -68
  542. package/lib/codec/cdp/params.js +0 -210
  543. package/lib/codec/cdp/query.d.ts +0 -644
  544. package/lib/codec/cdp/query.js +0 -3099
  545. package/lib/codec/cdp/rate_strategy_params.d.ts +0 -26
  546. package/lib/codec/cdp/rate_strategy_params.js +0 -180
  547. package/lib/codec/cdp/reward_scheme.d.ts +0 -71
  548. package/lib/codec/cdp/reward_scheme.js +0 -550
  549. package/lib/codec/cdp/stablecoin_debt_info.d.ts +0 -22
  550. package/lib/codec/cdp/stablecoin_debt_info.js +0 -144
  551. package/lib/codec/cdp/stablecoin_interest_info.d.ts +0 -19
  552. package/lib/codec/cdp/stablecoin_interest_info.js +0 -99
  553. package/lib/codec/cdp/tx.d.ts +0 -1026
  554. package/lib/codec/cdp/tx.js +0 -5191
  555. package/lib/codec/coin/bridge.d.ts +0 -24
  556. package/lib/codec/coin/bridge.js +0 -151
  557. package/lib/codec/coin/event.d.ts +0 -143
  558. package/lib/codec/coin/event.js +0 -775
  559. package/lib/codec/coin/export.d.ts +0 -8
  560. package/lib/codec/coin/export.js +0 -107
  561. package/lib/codec/coin/genesis.d.ts +0 -42
  562. package/lib/codec/coin/genesis.js +0 -207
  563. package/lib/codec/coin/group.d.ts +0 -50
  564. package/lib/codec/coin/group.js +0 -230
  565. package/lib/codec/coin/proposal.d.ts +0 -21
  566. package/lib/codec/coin/proposal.js +0 -91
  567. package/lib/codec/coin/query.d.ts +0 -310
  568. package/lib/codec/coin/query.js +0 -1439
  569. package/lib/codec/coin/token.d.ts +0 -104
  570. package/lib/codec/coin/token.js +0 -700
  571. package/lib/codec/coin/tx.d.ts +0 -586
  572. package/lib/codec/coin/tx.js +0 -3131
  573. package/lib/codec/crisis/genesis.d.ts +0 -18
  574. package/lib/codec/crisis/genesis.js +0 -46
  575. package/lib/codec/crisis/query.d.ts +0 -43
  576. package/lib/codec/crisis/query.js +0 -103
  577. package/lib/codec/crisis/tx.d.ts +0 -12
  578. package/lib/codec/crisis/tx.js +0 -20
  579. package/lib/codec/erc20/erc20.d.ts +0 -41
  580. package/lib/codec/erc20/erc20.js +0 -144
  581. package/lib/codec/erc20/events.d.ts +0 -76
  582. package/lib/codec/erc20/events.js +0 -330
  583. package/lib/codec/erc20/export.d.ts +0 -5
  584. package/lib/codec/erc20/export.js +0 -37
  585. package/lib/codec/erc20/genesis.d.ts +0 -40
  586. package/lib/codec/erc20/genesis.js +0 -139
  587. package/lib/codec/erc20/query.d.ts +0 -117
  588. package/lib/codec/erc20/query.js +0 -333
  589. package/lib/codec/erc20/tx.d.ts +0 -232
  590. package/lib/codec/erc20/tx.js +0 -765
  591. package/lib/codec/ethermint/evm/v1/events.d.ts +0 -72
  592. package/lib/codec/ethermint/evm/v1/events.js +0 -303
  593. package/lib/codec/ethermint/feemarket/v1/events.d.ts +0 -34
  594. package/lib/codec/ethermint/feemarket/v1/events.js +0 -116
  595. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +0 -55
  596. package/lib/codec/ethermint/feemarket/v1/tx.js +0 -120
  597. package/lib/codec/evmbank/export.d.ts +0 -2
  598. package/lib/codec/evmbank/export.js +0 -8
  599. package/lib/codec/evmbank/genesis.d.ts +0 -32
  600. package/lib/codec/evmbank/genesis.js +0 -152
  601. package/lib/codec/evmbank/query.d.ts +0 -40
  602. package/lib/codec/evmbank/query.js +0 -116
  603. package/lib/codec/evmcontract/genesis.d.ts +0 -18
  604. package/lib/codec/evmcontract/genesis.js +0 -46
  605. package/lib/codec/evmcontract/query.d.ts +0 -12
  606. package/lib/codec/evmcontract/query.js +0 -20
  607. package/lib/codec/evmcontract/tx.d.ts +0 -12
  608. package/lib/codec/evmcontract/tx.js +0 -20
  609. package/lib/codec/evmmerge/address.d.ts +0 -19
  610. package/lib/codec/evmmerge/address.js +0 -75
  611. package/lib/codec/evmmerge/event.d.ts +0 -20
  612. package/lib/codec/evmmerge/event.js +0 -90
  613. package/lib/codec/evmmerge/export.d.ts +0 -6
  614. package/lib/codec/evmmerge/export.js +0 -20
  615. package/lib/codec/evmmerge/genesis.d.ts +0 -48
  616. package/lib/codec/evmmerge/genesis.js +0 -216
  617. package/lib/codec/evmmerge/offchain.d.ts +0 -22
  618. package/lib/codec/evmmerge/offchain.js +0 -105
  619. package/lib/codec/evmmerge/query.d.ts +0 -75
  620. package/lib/codec/evmmerge/query.js +0 -254
  621. package/lib/codec/evmmerge/tx.d.ts +0 -45
  622. package/lib/codec/evmmerge/tx.js +0 -128
  623. package/lib/codec/fee/event.d.ts +0 -20
  624. package/lib/codec/fee/event.js +0 -83
  625. package/lib/codec/fee/export.d.ts +0 -5
  626. package/lib/codec/fee/export.js +0 -32
  627. package/lib/codec/fee/fee.d.ts +0 -42
  628. package/lib/codec/fee/fee.js +0 -183
  629. package/lib/codec/fee/genesis.d.ts +0 -23
  630. package/lib/codec/fee/genesis.js +0 -79
  631. package/lib/codec/fee/proposal.d.ts +0 -57
  632. package/lib/codec/fee/proposal.js +0 -311
  633. package/lib/codec/fee/query.d.ts +0 -114
  634. package/lib/codec/fee/query.js +0 -470
  635. package/lib/codec/fee/tx.d.ts +0 -108
  636. package/lib/codec/fee/tx.js +0 -415
  637. package/lib/codec/headersync/consensus_peers.d.ts +0 -70
  638. package/lib/codec/headersync/consensus_peers.js +0 -383
  639. package/lib/codec/headersync/export.d.ts +0 -4
  640. package/lib/codec/headersync/export.js +0 -24
  641. package/lib/codec/headersync/genesis.d.ts +0 -79
  642. package/lib/codec/headersync/genesis.js +0 -419
  643. package/lib/codec/headersync/query.d.ts +0 -64
  644. package/lib/codec/headersync/query.js +0 -231
  645. package/lib/codec/headersync/tx.d.ts +0 -64
  646. package/lib/codec/headersync/tx.js +0 -215
  647. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +0 -24
  648. package/lib/codec/ibc/applications/fee/v1/ack.js +0 -125
  649. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +0 -68
  650. package/lib/codec/ibc/applications/fee/v1/fee.js +0 -289
  651. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +0 -93
  652. package/lib/codec/ibc/applications/fee/v1/genesis.js +0 -390
  653. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +0 -25
  654. package/lib/codec/ibc/applications/fee/v1/metadata.js +0 -71
  655. package/lib/codec/ibc/applications/fee/v1/query.d.ts +0 -312
  656. package/lib/codec/ibc/applications/fee/v1/query.js +0 -1187
  657. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +0 -171
  658. package/lib/codec/ibc/applications/fee/v1/tx.js +0 -524
  659. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +0 -78
  660. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +0 -296
  661. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +0 -80
  662. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +0 -439
  663. package/lib/codec/inflation/export.d.ts +0 -2
  664. package/lib/codec/inflation/export.js +0 -8
  665. package/lib/codec/inflation/genesis.d.ts +0 -25
  666. package/lib/codec/inflation/genesis.js +0 -79
  667. package/lib/codec/inflation/inflation.d.ts +0 -26
  668. package/lib/codec/inflation/inflation.js +0 -165
  669. package/lib/codec/inflation/query.d.ts +0 -41
  670. package/lib/codec/inflation/query.js +0 -109
  671. package/lib/codec/inflation/tx.d.ts +0 -12
  672. package/lib/codec/inflation/tx.js +0 -20
  673. package/lib/codec/insurance/event.d.ts +0 -24
  674. package/lib/codec/insurance/event.js +0 -46
  675. package/lib/codec/insurance/export.d.ts +0 -4
  676. package/lib/codec/insurance/export.js +0 -14
  677. package/lib/codec/insurance/fund.d.ts +0 -29
  678. package/lib/codec/insurance/fund.js +0 -148
  679. package/lib/codec/insurance/genesis.d.ts +0 -18
  680. package/lib/codec/insurance/genesis.js +0 -46
  681. package/lib/codec/insurance/query.d.ts +0 -41
  682. package/lib/codec/insurance/query.js +0 -108
  683. package/lib/codec/insurance/tx.d.ts +0 -44
  684. package/lib/codec/insurance/tx.js +0 -144
  685. package/lib/codec/leverage/event.d.ts +0 -21
  686. package/lib/codec/leverage/event.js +0 -100
  687. package/lib/codec/leverage/export.d.ts +0 -4
  688. package/lib/codec/leverage/export.js +0 -16
  689. package/lib/codec/leverage/genesis.d.ts +0 -24
  690. package/lib/codec/leverage/genesis.js +0 -64
  691. package/lib/codec/leverage/leverage.d.ts +0 -30
  692. package/lib/codec/leverage/leverage.js +0 -134
  693. package/lib/codec/leverage/query.d.ts +0 -70
  694. package/lib/codec/leverage/query.js +0 -234
  695. package/lib/codec/leverage/tx.d.ts +0 -43
  696. package/lib/codec/leverage/tx.js +0 -127
  697. package/lib/codec/liquidation/export.d.ts +0 -5
  698. package/lib/codec/liquidation/export.js +0 -17
  699. package/lib/codec/liquidation/genesis.d.ts +0 -37
  700. package/lib/codec/liquidation/genesis.js +0 -136
  701. package/lib/codec/liquidation/liquidation.d.ts +0 -17
  702. package/lib/codec/liquidation/liquidation.js +0 -46
  703. package/lib/codec/liquidation/outstanding_position.d.ts +0 -33
  704. package/lib/codec/liquidation/outstanding_position.js +0 -203
  705. package/lib/codec/liquidation/query.d.ts +0 -77
  706. package/lib/codec/liquidation/query.js +0 -341
  707. package/lib/codec/liquidation/quote_changes.d.ts +0 -22
  708. package/lib/codec/liquidation/quote_changes.js +0 -95
  709. package/lib/codec/liquidation/tx.d.ts +0 -12
  710. package/lib/codec/liquidation/tx.js +0 -20
  711. package/lib/codec/liquiditypool/event.d.ts +0 -182
  712. package/lib/codec/liquiditypool/event.js +0 -1268
  713. package/lib/codec/liquiditypool/export.d.ts +0 -6
  714. package/lib/codec/liquiditypool/export.js +0 -125
  715. package/lib/codec/liquiditypool/genesis.d.ts +0 -32
  716. package/lib/codec/liquiditypool/genesis.js +0 -228
  717. package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -138
  718. package/lib/codec/liquiditypool/liquiditypool.js +0 -943
  719. package/lib/codec/liquiditypool/proposal.d.ts +0 -117
  720. package/lib/codec/liquiditypool/proposal.js +0 -697
  721. package/lib/codec/liquiditypool/query.d.ts +0 -370
  722. package/lib/codec/liquiditypool/query.js +0 -1738
  723. package/lib/codec/liquiditypool/reward.d.ts +0 -196
  724. package/lib/codec/liquiditypool/reward.js +0 -1204
  725. package/lib/codec/liquiditypool/tx.d.ts +0 -453
  726. package/lib/codec/liquiditypool/tx.js +0 -2423
  727. package/lib/codec/lockproxy/event.d.ts +0 -46
  728. package/lib/codec/lockproxy/event.js +0 -348
  729. package/lib/codec/lockproxy/export.d.ts +0 -5
  730. package/lib/codec/lockproxy/export.js +0 -28
  731. package/lib/codec/lockproxy/genesis.d.ts +0 -68
  732. package/lib/codec/lockproxy/genesis.js +0 -355
  733. package/lib/codec/lockproxy/lockproxy.d.ts +0 -22
  734. package/lib/codec/lockproxy/lockproxy.js +0 -147
  735. package/lib/codec/lockproxy/query.d.ts +0 -67
  736. package/lib/codec/lockproxy/query.js +0 -274
  737. package/lib/codec/lockproxy/tx.d.ts +0 -147
  738. package/lib/codec/lockproxy/tx.js +0 -808
  739. package/lib/codec/market/event.d.ts +0 -20
  740. package/lib/codec/market/event.js +0 -76
  741. package/lib/codec/market/export.d.ts +0 -6
  742. package/lib/codec/market/export.js +0 -61
  743. package/lib/codec/market/fee.d.ts +0 -123
  744. package/lib/codec/market/fee.js +0 -334
  745. package/lib/codec/market/genesis.d.ts +0 -31
  746. package/lib/codec/market/genesis.js +0 -147
  747. package/lib/codec/market/legacy.d.ts +0 -62
  748. package/lib/codec/market/legacy.js +0 -630
  749. package/lib/codec/market/market.d.ts +0 -131
  750. package/lib/codec/market/market.js +0 -1245
  751. package/lib/codec/market/proposal.d.ts +0 -46
  752. package/lib/codec/market/proposal.js +0 -245
  753. package/lib/codec/market/query.d.ts +0 -233
  754. package/lib/codec/market/query.js +0 -938
  755. package/lib/codec/market/tx.d.ts +0 -250
  756. package/lib/codec/market/tx.js +0 -1265
  757. package/lib/codec/marketstats/export.d.ts +0 -3
  758. package/lib/codec/marketstats/export.js +0 -12
  759. package/lib/codec/marketstats/genesis.d.ts +0 -21
  760. package/lib/codec/marketstats/genesis.js +0 -63
  761. package/lib/codec/marketstats/marketstats.d.ts +0 -31
  762. package/lib/codec/marketstats/marketstats.js +0 -258
  763. package/lib/codec/marketstats/params.d.ts +0 -18
  764. package/lib/codec/marketstats/params.js +0 -46
  765. package/lib/codec/marketstats/query.d.ts +0 -66
  766. package/lib/codec/marketstats/query.js +0 -195
  767. package/lib/codec/marketstats/tx.d.ts +0 -12
  768. package/lib/codec/marketstats/tx.js +0 -20
  769. package/lib/codec/misc/block.d.ts +0 -21
  770. package/lib/codec/misc/block.js +0 -105
  771. package/lib/codec/misc/export.d.ts +0 -6
  772. package/lib/codec/misc/export.js +0 -29
  773. package/lib/codec/misc/message.d.ts +0 -22
  774. package/lib/codec/misc/message.js +0 -128
  775. package/lib/codec/misc/message_type.d.ts +0 -18
  776. package/lib/codec/misc/message_type.js +0 -60
  777. package/lib/codec/misc/query.d.ts +0 -192
  778. package/lib/codec/misc/query.js +0 -884
  779. package/lib/codec/misc/trade.d.ts +0 -28
  780. package/lib/codec/misc/trade.js +0 -224
  781. package/lib/codec/misc/transaction.d.ts +0 -45
  782. package/lib/codec/misc/transaction.js +0 -369
  783. package/lib/codec/oracle/event.d.ts +0 -37
  784. package/lib/codec/oracle/event.js +0 -228
  785. package/lib/codec/oracle/export.d.ts +0 -6
  786. package/lib/codec/oracle/export.js +0 -58
  787. package/lib/codec/oracle/genesis.d.ts +0 -28
  788. package/lib/codec/oracle/genesis.js +0 -141
  789. package/lib/codec/oracle/oracle.d.ts +0 -94
  790. package/lib/codec/oracle/oracle.js +0 -650
  791. package/lib/codec/oracle/proposal.d.ts +0 -21
  792. package/lib/codec/oracle/proposal.js +0 -91
  793. package/lib/codec/oracle/query.d.ts +0 -336
  794. package/lib/codec/oracle/query.js +0 -1551
  795. package/lib/codec/oracle/slashing.d.ts +0 -33
  796. package/lib/codec/oracle/slashing.js +0 -191
  797. package/lib/codec/oracle/tx.d.ts +0 -169
  798. package/lib/codec/oracle/tx.js +0 -877
  799. package/lib/codec/order/event.d.ts +0 -23
  800. package/lib/codec/order/event.js +0 -146
  801. package/lib/codec/order/export.d.ts +0 -5
  802. package/lib/codec/order/export.js +0 -39
  803. package/lib/codec/order/genesis.d.ts +0 -62
  804. package/lib/codec/order/genesis.js +0 -322
  805. package/lib/codec/order/order.d.ts +0 -113
  806. package/lib/codec/order/order.js +0 -875
  807. package/lib/codec/order/query.d.ts +0 -143
  808. package/lib/codec/order/query.js +0 -596
  809. package/lib/codec/order/tx.d.ts +0 -146
  810. package/lib/codec/order/tx.js +0 -715
  811. package/lib/codec/perpsliquidity/event.d.ts +0 -115
  812. package/lib/codec/perpsliquidity/event.js +0 -657
  813. package/lib/codec/perpsliquidity/genesis.d.ts +0 -36
  814. package/lib/codec/perpsliquidity/genesis.js +0 -163
  815. package/lib/codec/perpsliquidity/market.d.ts +0 -84
  816. package/lib/codec/perpsliquidity/market.js +0 -431
  817. package/lib/codec/perpsliquidity/params.d.ts +0 -27
  818. package/lib/codec/perpsliquidity/params.js +0 -129
  819. package/lib/codec/perpsliquidity/pool.d.ts +0 -119
  820. package/lib/codec/perpsliquidity/pool.js +0 -774
  821. package/lib/codec/perpsliquidity/query.d.ts +0 -246
  822. package/lib/codec/perpsliquidity/query.js +0 -1125
  823. package/lib/codec/perpsliquidity/tx.d.ts +0 -203
  824. package/lib/codec/perpsliquidity/tx.js +0 -973
  825. package/lib/codec/perpspool/event.d.ts +0 -95
  826. package/lib/codec/perpspool/event.js +0 -561
  827. package/lib/codec/perpspool/export.d.ts +0 -7
  828. package/lib/codec/perpspool/export.js +0 -68
  829. package/lib/codec/perpspool/genesis.d.ts +0 -61
  830. package/lib/codec/perpspool/genesis.js +0 -343
  831. package/lib/codec/perpspool/market.d.ts +0 -96
  832. package/lib/codec/perpspool/market.js +0 -493
  833. package/lib/codec/perpspool/params.d.ts +0 -30
  834. package/lib/codec/perpspool/params.js +0 -189
  835. package/lib/codec/perpspool/pool.d.ts +0 -103
  836. package/lib/codec/perpspool/pool.js +0 -638
  837. package/lib/codec/perpspool/query.d.ts +0 -247
  838. package/lib/codec/perpspool/query.js +0 -1141
  839. package/lib/codec/perpspool/tx.d.ts +0 -229
  840. package/lib/codec/perpspool/tx.js +0 -1144
  841. package/lib/codec/position/event.d.ts +0 -26
  842. package/lib/codec/position/event.js +0 -180
  843. package/lib/codec/position/export.d.ts +0 -4
  844. package/lib/codec/position/export.js +0 -20
  845. package/lib/codec/position/genesis.d.ts +0 -24
  846. package/lib/codec/position/genesis.js +0 -64
  847. package/lib/codec/position/position.d.ts +0 -74
  848. package/lib/codec/position/position.js +0 -601
  849. package/lib/codec/position/query.d.ts +0 -92
  850. package/lib/codec/position/query.js +0 -400
  851. package/lib/codec/position/tx.d.ts +0 -42
  852. package/lib/codec/position/tx.js +0 -127
  853. package/lib/codec/pricing/event.d.ts +0 -74
  854. package/lib/codec/pricing/event.js +0 -361
  855. package/lib/codec/pricing/export.d.ts +0 -6
  856. package/lib/codec/pricing/export.js +0 -45
  857. package/lib/codec/pricing/genesis.d.ts +0 -26
  858. package/lib/codec/pricing/genesis.js +0 -95
  859. package/lib/codec/pricing/legacy.d.ts +0 -22
  860. package/lib/codec/pricing/legacy.js +0 -93
  861. package/lib/codec/pricing/pricing.d.ts +0 -60
  862. package/lib/codec/pricing/pricing.js +0 -456
  863. package/lib/codec/pricing/proposal.d.ts +0 -31
  864. package/lib/codec/pricing/proposal.js +0 -148
  865. package/lib/codec/pricing/query.d.ts +0 -183
  866. package/lib/codec/pricing/query.js +0 -759
  867. package/lib/codec/pricing/tx.d.ts +0 -131
  868. package/lib/codec/pricing/tx.js +0 -529
  869. package/lib/codec/profile/event.d.ts +0 -20
  870. package/lib/codec/profile/event.js +0 -78
  871. package/lib/codec/profile/export.d.ts +0 -4
  872. package/lib/codec/profile/export.js +0 -17
  873. package/lib/codec/profile/genesis.d.ts +0 -24
  874. package/lib/codec/profile/genesis.js +0 -64
  875. package/lib/codec/profile/profile.d.ts +0 -20
  876. package/lib/codec/profile/profile.js +0 -83
  877. package/lib/codec/profile/query.d.ts +0 -92
  878. package/lib/codec/profile/query.js +0 -360
  879. package/lib/codec/profile/tx.d.ts +0 -43
  880. package/lib/codec/profile/tx.js +0 -127
  881. package/lib/codec/query/pagination.d.ts +0 -29
  882. package/lib/codec/query/pagination.js +0 -126
  883. package/lib/codec/sequence/export.d.ts +0 -3
  884. package/lib/codec/sequence/export.js +0 -13
  885. package/lib/codec/sequence/genesis.d.ts +0 -30
  886. package/lib/codec/sequence/genesis.js +0 -122
  887. package/lib/codec/sequence/query.d.ts +0 -63
  888. package/lib/codec/sequence/query.js +0 -208
  889. package/lib/codec/sequence/tx.d.ts +0 -41
  890. package/lib/codec/sequence/tx.js +0 -148
  891. package/lib/codec/subaccount/export.d.ts +0 -4
  892. package/lib/codec/subaccount/export.js +0 -35
  893. package/lib/codec/subaccount/genesis.d.ts +0 -28
  894. package/lib/codec/subaccount/genesis.js +0 -110
  895. package/lib/codec/subaccount/legacy.d.ts +0 -19
  896. package/lib/codec/subaccount/legacy.js +0 -72
  897. package/lib/codec/subaccount/query.d.ts +0 -229
  898. package/lib/codec/subaccount/query.js +0 -1026
  899. package/lib/codec/subaccount/subaccount.d.ts +0 -57
  900. package/lib/codec/subaccount/subaccount.js +0 -349
  901. package/lib/codec/subaccount/tx.d.ts +0 -92
  902. package/lib/codec/subaccount/tx.js +0 -395
  903. package/lib/modules/feemarket.d.ts +0 -20
  904. package/lib/modules/feemarket.js +0 -45
  905. package/lib/modules/perpsliquidity.d.ts +0 -49
  906. package/lib/modules/perpsliquidity.js +0 -118
  907. package/lib/modules/vault.d.ts +0 -56
  908. package/lib/modules/vault.js +0 -128
  909. package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
  910. package/lib/provider/amino/types/perpsliquidity.js +0 -73
  911. package/lib/provider/station/StationAccount.d.ts +0 -28
  912. package/lib/provider/station/StationAccount.js +0 -168
  913. package/lib/provider/station/index.d.ts +0 -2
  914. package/lib/provider/station/index.js +0 -10
@@ -1,606 +0,0 @@
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.QueryAllStopBookResponse = exports.QueryAllStopBookRequest = exports.QueryGetStopBookResponse = exports.QueryGetStopBookRequest = exports.QueryAllBookResponse = exports.QueryAllBookRequest = exports.QueryGetBookResponse = exports.QueryGetBookRequest = exports.QueryImpactPriceResponse = exports.QueryImpactPriceRequest = exports.protobufPackage = void 0;
7
- /* eslint-disable */
8
- const long_1 = __importDefault(require("long"));
9
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const book_1 = require("./book");
11
- const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
- exports.protobufPackage = "Switcheo.carbon.book";
13
- const baseQueryImpactPriceRequest = { market: "", quoteAmount: "" };
14
- exports.QueryImpactPriceRequest = {
15
- encode(message, writer = minimal_1.default.Writer.create()) {
16
- if (message.market !== "") {
17
- writer.uint32(10).string(message.market);
18
- }
19
- if (message.quoteAmount !== "") {
20
- writer.uint32(18).string(message.quoteAmount);
21
- }
22
- return writer;
23
- },
24
- decode(input, length) {
25
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
26
- let end = length === undefined ? reader.len : reader.pos + length;
27
- const message = Object.assign({}, baseQueryImpactPriceRequest);
28
- while (reader.pos < end) {
29
- const tag = reader.uint32();
30
- switch (tag >>> 3) {
31
- case 1:
32
- message.market = reader.string();
33
- break;
34
- case 2:
35
- message.quoteAmount = reader.string();
36
- break;
37
- default:
38
- reader.skipType(tag & 7);
39
- break;
40
- }
41
- }
42
- return message;
43
- },
44
- fromJSON(object) {
45
- const message = Object.assign({}, baseQueryImpactPriceRequest);
46
- message.market =
47
- object.market !== undefined && object.market !== null
48
- ? String(object.market)
49
- : "";
50
- message.quoteAmount =
51
- object.quoteAmount !== undefined && object.quoteAmount !== null
52
- ? String(object.quoteAmount)
53
- : "";
54
- return message;
55
- },
56
- toJSON(message) {
57
- const obj = {};
58
- message.market !== undefined && (obj.market = message.market);
59
- message.quoteAmount !== undefined &&
60
- (obj.quoteAmount = message.quoteAmount);
61
- return obj;
62
- },
63
- fromPartial(object) {
64
- var _a, _b;
65
- const message = Object.assign({}, baseQueryImpactPriceRequest);
66
- message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
67
- message.quoteAmount = (_b = object.quoteAmount) !== null && _b !== void 0 ? _b : "";
68
- return message;
69
- },
70
- };
71
- const baseQueryImpactPriceResponse = {
72
- impactPrice: "",
73
- baseAmount: "",
74
- quoteAmount: "",
75
- };
76
- exports.QueryImpactPriceResponse = {
77
- encode(message, writer = minimal_1.default.Writer.create()) {
78
- if (message.impactPrice !== "") {
79
- writer.uint32(10).string(message.impactPrice);
80
- }
81
- if (message.baseAmount !== "") {
82
- writer.uint32(18).string(message.baseAmount);
83
- }
84
- if (message.quoteAmount !== "") {
85
- writer.uint32(26).string(message.quoteAmount);
86
- }
87
- return writer;
88
- },
89
- decode(input, length) {
90
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
91
- let end = length === undefined ? reader.len : reader.pos + length;
92
- const message = Object.assign({}, baseQueryImpactPriceResponse);
93
- while (reader.pos < end) {
94
- const tag = reader.uint32();
95
- switch (tag >>> 3) {
96
- case 1:
97
- message.impactPrice = reader.string();
98
- break;
99
- case 2:
100
- message.baseAmount = reader.string();
101
- break;
102
- case 3:
103
- message.quoteAmount = reader.string();
104
- break;
105
- default:
106
- reader.skipType(tag & 7);
107
- break;
108
- }
109
- }
110
- return message;
111
- },
112
- fromJSON(object) {
113
- const message = Object.assign({}, baseQueryImpactPriceResponse);
114
- message.impactPrice =
115
- object.impactPrice !== undefined && object.impactPrice !== null
116
- ? String(object.impactPrice)
117
- : "";
118
- message.baseAmount =
119
- object.baseAmount !== undefined && object.baseAmount !== null
120
- ? String(object.baseAmount)
121
- : "";
122
- message.quoteAmount =
123
- object.quoteAmount !== undefined && object.quoteAmount !== null
124
- ? String(object.quoteAmount)
125
- : "";
126
- return message;
127
- },
128
- toJSON(message) {
129
- const obj = {};
130
- message.impactPrice !== undefined &&
131
- (obj.impactPrice = message.impactPrice);
132
- message.baseAmount !== undefined && (obj.baseAmount = message.baseAmount);
133
- message.quoteAmount !== undefined &&
134
- (obj.quoteAmount = message.quoteAmount);
135
- return obj;
136
- },
137
- fromPartial(object) {
138
- var _a, _b, _c;
139
- const message = Object.assign({}, baseQueryImpactPriceResponse);
140
- message.impactPrice = (_a = object.impactPrice) !== null && _a !== void 0 ? _a : "";
141
- message.baseAmount = (_b = object.baseAmount) !== null && _b !== void 0 ? _b : "";
142
- message.quoteAmount = (_c = object.quoteAmount) !== null && _c !== void 0 ? _c : "";
143
- return message;
144
- },
145
- };
146
- const baseQueryGetBookRequest = { market: "" };
147
- exports.QueryGetBookRequest = {
148
- encode(message, writer = minimal_1.default.Writer.create()) {
149
- if (message.market !== "") {
150
- writer.uint32(10).string(message.market);
151
- }
152
- return writer;
153
- },
154
- decode(input, length) {
155
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
156
- let end = length === undefined ? reader.len : reader.pos + length;
157
- const message = Object.assign({}, baseQueryGetBookRequest);
158
- while (reader.pos < end) {
159
- const tag = reader.uint32();
160
- switch (tag >>> 3) {
161
- case 1:
162
- message.market = reader.string();
163
- break;
164
- default:
165
- reader.skipType(tag & 7);
166
- break;
167
- }
168
- }
169
- return message;
170
- },
171
- fromJSON(object) {
172
- const message = Object.assign({}, baseQueryGetBookRequest);
173
- message.market =
174
- object.market !== undefined && object.market !== null
175
- ? String(object.market)
176
- : "";
177
- return message;
178
- },
179
- toJSON(message) {
180
- const obj = {};
181
- message.market !== undefined && (obj.market = message.market);
182
- return obj;
183
- },
184
- fromPartial(object) {
185
- var _a;
186
- const message = Object.assign({}, baseQueryGetBookRequest);
187
- message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
188
- return message;
189
- },
190
- };
191
- const baseQueryGetBookResponse = {};
192
- exports.QueryGetBookResponse = {
193
- encode(message, writer = minimal_1.default.Writer.create()) {
194
- if (message.book !== undefined) {
195
- book_1.OrderBook.encode(message.book, writer.uint32(10).fork()).ldelim();
196
- }
197
- return writer;
198
- },
199
- decode(input, length) {
200
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
201
- let end = length === undefined ? reader.len : reader.pos + length;
202
- const message = Object.assign({}, baseQueryGetBookResponse);
203
- while (reader.pos < end) {
204
- const tag = reader.uint32();
205
- switch (tag >>> 3) {
206
- case 1:
207
- message.book = book_1.OrderBook.decode(reader, reader.uint32());
208
- break;
209
- default:
210
- reader.skipType(tag & 7);
211
- break;
212
- }
213
- }
214
- return message;
215
- },
216
- fromJSON(object) {
217
- const message = Object.assign({}, baseQueryGetBookResponse);
218
- message.book =
219
- object.book !== undefined && object.book !== null
220
- ? book_1.OrderBook.fromJSON(object.book)
221
- : undefined;
222
- return message;
223
- },
224
- toJSON(message) {
225
- const obj = {};
226
- message.book !== undefined &&
227
- (obj.book = message.book ? book_1.OrderBook.toJSON(message.book) : undefined);
228
- return obj;
229
- },
230
- fromPartial(object) {
231
- const message = Object.assign({}, baseQueryGetBookResponse);
232
- message.book =
233
- object.book !== undefined && object.book !== null
234
- ? book_1.OrderBook.fromPartial(object.book)
235
- : undefined;
236
- return message;
237
- },
238
- };
239
- const baseQueryAllBookRequest = {};
240
- exports.QueryAllBookRequest = {
241
- encode(message, writer = minimal_1.default.Writer.create()) {
242
- if (message.pagination !== undefined) {
243
- pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
244
- }
245
- return writer;
246
- },
247
- decode(input, length) {
248
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
249
- let end = length === undefined ? reader.len : reader.pos + length;
250
- const message = Object.assign({}, baseQueryAllBookRequest);
251
- while (reader.pos < end) {
252
- const tag = reader.uint32();
253
- switch (tag >>> 3) {
254
- case 1:
255
- message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
256
- break;
257
- default:
258
- reader.skipType(tag & 7);
259
- break;
260
- }
261
- }
262
- return message;
263
- },
264
- fromJSON(object) {
265
- const message = Object.assign({}, baseQueryAllBookRequest);
266
- message.pagination =
267
- object.pagination !== undefined && object.pagination !== null
268
- ? pagination_1.PageRequest.fromJSON(object.pagination)
269
- : undefined;
270
- return message;
271
- },
272
- toJSON(message) {
273
- const obj = {};
274
- message.pagination !== undefined &&
275
- (obj.pagination = message.pagination
276
- ? pagination_1.PageRequest.toJSON(message.pagination)
277
- : undefined);
278
- return obj;
279
- },
280
- fromPartial(object) {
281
- const message = Object.assign({}, baseQueryAllBookRequest);
282
- message.pagination =
283
- object.pagination !== undefined && object.pagination !== null
284
- ? pagination_1.PageRequest.fromPartial(object.pagination)
285
- : undefined;
286
- return message;
287
- },
288
- };
289
- const baseQueryAllBookResponse = {};
290
- exports.QueryAllBookResponse = {
291
- encode(message, writer = minimal_1.default.Writer.create()) {
292
- for (const v of message.books) {
293
- book_1.OrderBook.encode(v, writer.uint32(10).fork()).ldelim();
294
- }
295
- if (message.pagination !== undefined) {
296
- pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
297
- }
298
- return writer;
299
- },
300
- decode(input, length) {
301
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
302
- let end = length === undefined ? reader.len : reader.pos + length;
303
- const message = Object.assign({}, baseQueryAllBookResponse);
304
- message.books = [];
305
- while (reader.pos < end) {
306
- const tag = reader.uint32();
307
- switch (tag >>> 3) {
308
- case 1:
309
- message.books.push(book_1.OrderBook.decode(reader, reader.uint32()));
310
- break;
311
- case 2:
312
- message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
313
- break;
314
- default:
315
- reader.skipType(tag & 7);
316
- break;
317
- }
318
- }
319
- return message;
320
- },
321
- fromJSON(object) {
322
- var _a;
323
- const message = Object.assign({}, baseQueryAllBookResponse);
324
- message.books = ((_a = object.books) !== null && _a !== void 0 ? _a : []).map((e) => book_1.OrderBook.fromJSON(e));
325
- message.pagination =
326
- object.pagination !== undefined && object.pagination !== null
327
- ? pagination_1.PageResponse.fromJSON(object.pagination)
328
- : undefined;
329
- return message;
330
- },
331
- toJSON(message) {
332
- const obj = {};
333
- if (message.books) {
334
- obj.books = message.books.map((e) => e ? book_1.OrderBook.toJSON(e) : undefined);
335
- }
336
- else {
337
- obj.books = [];
338
- }
339
- message.pagination !== undefined &&
340
- (obj.pagination = message.pagination
341
- ? pagination_1.PageResponse.toJSON(message.pagination)
342
- : undefined);
343
- return obj;
344
- },
345
- fromPartial(object) {
346
- var _a;
347
- const message = Object.assign({}, baseQueryAllBookResponse);
348
- message.books = ((_a = object.books) !== null && _a !== void 0 ? _a : []).map((e) => book_1.OrderBook.fromPartial(e));
349
- message.pagination =
350
- object.pagination !== undefined && object.pagination !== null
351
- ? pagination_1.PageResponse.fromPartial(object.pagination)
352
- : undefined;
353
- return message;
354
- },
355
- };
356
- const baseQueryGetStopBookRequest = { market: "" };
357
- exports.QueryGetStopBookRequest = {
358
- encode(message, writer = minimal_1.default.Writer.create()) {
359
- if (message.market !== "") {
360
- writer.uint32(10).string(message.market);
361
- }
362
- return writer;
363
- },
364
- decode(input, length) {
365
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
366
- let end = length === undefined ? reader.len : reader.pos + length;
367
- const message = Object.assign({}, baseQueryGetStopBookRequest);
368
- while (reader.pos < end) {
369
- const tag = reader.uint32();
370
- switch (tag >>> 3) {
371
- case 1:
372
- message.market = reader.string();
373
- break;
374
- default:
375
- reader.skipType(tag & 7);
376
- break;
377
- }
378
- }
379
- return message;
380
- },
381
- fromJSON(object) {
382
- const message = Object.assign({}, baseQueryGetStopBookRequest);
383
- message.market =
384
- object.market !== undefined && object.market !== null
385
- ? String(object.market)
386
- : "";
387
- return message;
388
- },
389
- toJSON(message) {
390
- const obj = {};
391
- message.market !== undefined && (obj.market = message.market);
392
- return obj;
393
- },
394
- fromPartial(object) {
395
- var _a;
396
- const message = Object.assign({}, baseQueryGetStopBookRequest);
397
- message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
398
- return message;
399
- },
400
- };
401
- const baseQueryGetStopBookResponse = {};
402
- exports.QueryGetStopBookResponse = {
403
- encode(message, writer = minimal_1.default.Writer.create()) {
404
- for (const v of message.books) {
405
- book_1.StopBook.encode(v, writer.uint32(10).fork()).ldelim();
406
- }
407
- return writer;
408
- },
409
- decode(input, length) {
410
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
411
- let end = length === undefined ? reader.len : reader.pos + length;
412
- const message = Object.assign({}, baseQueryGetStopBookResponse);
413
- message.books = [];
414
- while (reader.pos < end) {
415
- const tag = reader.uint32();
416
- switch (tag >>> 3) {
417
- case 1:
418
- message.books.push(book_1.StopBook.decode(reader, reader.uint32()));
419
- break;
420
- default:
421
- reader.skipType(tag & 7);
422
- break;
423
- }
424
- }
425
- return message;
426
- },
427
- fromJSON(object) {
428
- var _a;
429
- const message = Object.assign({}, baseQueryGetStopBookResponse);
430
- message.books = ((_a = object.books) !== null && _a !== void 0 ? _a : []).map((e) => book_1.StopBook.fromJSON(e));
431
- return message;
432
- },
433
- toJSON(message) {
434
- const obj = {};
435
- if (message.books) {
436
- obj.books = message.books.map((e) => e ? book_1.StopBook.toJSON(e) : undefined);
437
- }
438
- else {
439
- obj.books = [];
440
- }
441
- return obj;
442
- },
443
- fromPartial(object) {
444
- var _a;
445
- const message = Object.assign({}, baseQueryGetStopBookResponse);
446
- message.books = ((_a = object.books) !== null && _a !== void 0 ? _a : []).map((e) => book_1.StopBook.fromPartial(e));
447
- return message;
448
- },
449
- };
450
- const baseQueryAllStopBookRequest = {};
451
- exports.QueryAllStopBookRequest = {
452
- encode(message, writer = minimal_1.default.Writer.create()) {
453
- if (message.pagination !== undefined) {
454
- pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
455
- }
456
- return writer;
457
- },
458
- decode(input, length) {
459
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
460
- let end = length === undefined ? reader.len : reader.pos + length;
461
- const message = Object.assign({}, baseQueryAllStopBookRequest);
462
- while (reader.pos < end) {
463
- const tag = reader.uint32();
464
- switch (tag >>> 3) {
465
- case 1:
466
- message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
467
- break;
468
- default:
469
- reader.skipType(tag & 7);
470
- break;
471
- }
472
- }
473
- return message;
474
- },
475
- fromJSON(object) {
476
- const message = Object.assign({}, baseQueryAllStopBookRequest);
477
- message.pagination =
478
- object.pagination !== undefined && object.pagination !== null
479
- ? pagination_1.PageRequest.fromJSON(object.pagination)
480
- : undefined;
481
- return message;
482
- },
483
- toJSON(message) {
484
- const obj = {};
485
- message.pagination !== undefined &&
486
- (obj.pagination = message.pagination
487
- ? pagination_1.PageRequest.toJSON(message.pagination)
488
- : undefined);
489
- return obj;
490
- },
491
- fromPartial(object) {
492
- const message = Object.assign({}, baseQueryAllStopBookRequest);
493
- message.pagination =
494
- object.pagination !== undefined && object.pagination !== null
495
- ? pagination_1.PageRequest.fromPartial(object.pagination)
496
- : undefined;
497
- return message;
498
- },
499
- };
500
- const baseQueryAllStopBookResponse = {};
501
- exports.QueryAllStopBookResponse = {
502
- encode(message, writer = minimal_1.default.Writer.create()) {
503
- for (const v of message.books) {
504
- book_1.StopBook.encode(v, writer.uint32(10).fork()).ldelim();
505
- }
506
- if (message.pagination !== undefined) {
507
- pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
508
- }
509
- return writer;
510
- },
511
- decode(input, length) {
512
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
513
- let end = length === undefined ? reader.len : reader.pos + length;
514
- const message = Object.assign({}, baseQueryAllStopBookResponse);
515
- message.books = [];
516
- while (reader.pos < end) {
517
- const tag = reader.uint32();
518
- switch (tag >>> 3) {
519
- case 1:
520
- message.books.push(book_1.StopBook.decode(reader, reader.uint32()));
521
- break;
522
- case 2:
523
- message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
524
- break;
525
- default:
526
- reader.skipType(tag & 7);
527
- break;
528
- }
529
- }
530
- return message;
531
- },
532
- fromJSON(object) {
533
- var _a;
534
- const message = Object.assign({}, baseQueryAllStopBookResponse);
535
- message.books = ((_a = object.books) !== null && _a !== void 0 ? _a : []).map((e) => book_1.StopBook.fromJSON(e));
536
- message.pagination =
537
- object.pagination !== undefined && object.pagination !== null
538
- ? pagination_1.PageResponse.fromJSON(object.pagination)
539
- : undefined;
540
- return message;
541
- },
542
- toJSON(message) {
543
- const obj = {};
544
- if (message.books) {
545
- obj.books = message.books.map((e) => e ? book_1.StopBook.toJSON(e) : undefined);
546
- }
547
- else {
548
- obj.books = [];
549
- }
550
- message.pagination !== undefined &&
551
- (obj.pagination = message.pagination
552
- ? pagination_1.PageResponse.toJSON(message.pagination)
553
- : undefined);
554
- return obj;
555
- },
556
- fromPartial(object) {
557
- var _a;
558
- const message = Object.assign({}, baseQueryAllStopBookResponse);
559
- message.books = ((_a = object.books) !== null && _a !== void 0 ? _a : []).map((e) => book_1.StopBook.fromPartial(e));
560
- message.pagination =
561
- object.pagination !== undefined && object.pagination !== null
562
- ? pagination_1.PageResponse.fromPartial(object.pagination)
563
- : undefined;
564
- return message;
565
- },
566
- };
567
- class QueryClientImpl {
568
- constructor(rpc) {
569
- this.rpc = rpc;
570
- this.ImpactPrice = this.ImpactPrice.bind(this);
571
- this.Book = this.Book.bind(this);
572
- this.StopBook = this.StopBook.bind(this);
573
- this.BookAll = this.BookAll.bind(this);
574
- this.StopBookAll = this.StopBookAll.bind(this);
575
- }
576
- ImpactPrice(request) {
577
- const data = exports.QueryImpactPriceRequest.encode(request).finish();
578
- const promise = this.rpc.request("Switcheo.carbon.book.Query", "ImpactPrice", data);
579
- return promise.then((data) => exports.QueryImpactPriceResponse.decode(new minimal_1.default.Reader(data)));
580
- }
581
- Book(request) {
582
- const data = exports.QueryGetBookRequest.encode(request).finish();
583
- const promise = this.rpc.request("Switcheo.carbon.book.Query", "Book", data);
584
- return promise.then((data) => exports.QueryGetBookResponse.decode(new minimal_1.default.Reader(data)));
585
- }
586
- StopBook(request) {
587
- const data = exports.QueryGetStopBookRequest.encode(request).finish();
588
- const promise = this.rpc.request("Switcheo.carbon.book.Query", "StopBook", data);
589
- return promise.then((data) => exports.QueryGetStopBookResponse.decode(new minimal_1.default.Reader(data)));
590
- }
591
- BookAll(request) {
592
- const data = exports.QueryAllBookRequest.encode(request).finish();
593
- const promise = this.rpc.request("Switcheo.carbon.book.Query", "BookAll", data);
594
- return promise.then((data) => exports.QueryAllBookResponse.decode(new minimal_1.default.Reader(data)));
595
- }
596
- StopBookAll(request) {
597
- const data = exports.QueryAllStopBookRequest.encode(request).finish();
598
- const promise = this.rpc.request("Switcheo.carbon.book.Query", "StopBookAll", data);
599
- return promise.then((data) => exports.QueryAllStopBookResponse.decode(new minimal_1.default.Reader(data)));
600
- }
601
- }
602
- exports.QueryClientImpl = QueryClientImpl;
603
- if (minimal_1.default.util.Long !== long_1.default) {
604
- minimal_1.default.util.Long = long_1.default;
605
- minimal_1.default.configure();
606
- }
@@ -1,12 +0,0 @@
1
- export declare const protobufPackage = "Switcheo.carbon.book";
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 {};
@@ -1,20 +0,0 @@
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.book";
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
- }
@@ -1,50 +0,0 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
3
- export declare const protobufPackage = "Switcheo.carbon.broker";
4
- /** SpotAmm exists when there is a quote on the orderbook */
5
- export interface SpotAmm {
6
- poolId: Long;
7
- market: string;
8
- reservesHash: Uint8Array;
9
- orders: string[];
10
- poolRoute: Uint8Array;
11
- }
12
- /** PerpsAmm exists when there is at least 1 PerpsMarketAmm */
13
- export interface PerpsAmm {
14
- poolId: Long;
15
- quotingHash: Uint8Array;
16
- lastQuotedAt: Long;
17
- markets: PerpsMarketAmm[];
18
- }
19
- /** PerpsMarketAmm exists when it is active or when there's orders or open position */
20
- export interface PerpsMarketAmm {
21
- market: string;
22
- orders: string[];
23
- lastIndexPrice: string;
24
- }
25
- export declare const SpotAmm: {
26
- encode(message: SpotAmm, writer?: _m0.Writer): _m0.Writer;
27
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SpotAmm;
28
- fromJSON(object: any): SpotAmm;
29
- toJSON(message: SpotAmm): unknown;
30
- fromPartial(object: DeepPartial<SpotAmm>): SpotAmm;
31
- };
32
- export declare const PerpsAmm: {
33
- encode(message: PerpsAmm, writer?: _m0.Writer): _m0.Writer;
34
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PerpsAmm;
35
- fromJSON(object: any): PerpsAmm;
36
- toJSON(message: PerpsAmm): unknown;
37
- fromPartial(object: DeepPartial<PerpsAmm>): PerpsAmm;
38
- };
39
- export declare const PerpsMarketAmm: {
40
- encode(message: PerpsMarketAmm, writer?: _m0.Writer): _m0.Writer;
41
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PerpsMarketAmm;
42
- fromJSON(object: any): PerpsMarketAmm;
43
- toJSON(message: PerpsMarketAmm): unknown;
44
- fromPartial(object: DeepPartial<PerpsMarketAmm>): PerpsMarketAmm;
45
- };
46
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
47
- 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 {} ? {
48
- [K in keyof T]?: DeepPartial<T[K]>;
49
- } : Partial<T>;
50
- export {};