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

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 (462) hide show
  1. package/lib/CarbonSDK.js +6 -2
  2. package/lib/clients/BatchQueryClient.js +4 -4
  3. package/lib/clients/CarbonQueryClient.js +1 -1
  4. package/lib/clients/ETHClient.js +15 -15
  5. package/lib/clients/HydrogenClient.js +1 -1
  6. package/lib/clients/InsightsQueryClient.d.ts +7 -0
  7. package/lib/clients/InsightsQueryClient.js +17 -3
  8. package/lib/clients/NEOClient.js +12 -8
  9. package/lib/clients/TokenClient.js +2 -2
  10. package/lib/clients/ZILClient.js +17 -17
  11. package/lib/codec/adl/genesis.d.ts +3 -3
  12. package/lib/codec/admin/genesis.d.ts +3 -3
  13. package/lib/codec/admin/query.d.ts +6 -6
  14. package/lib/codec/admin/tx.d.ts +6 -6
  15. package/lib/codec/alliance/alliance.d.ts +5 -5
  16. package/lib/codec/alliance/delegations.d.ts +8 -8
  17. package/lib/codec/alliance/events.d.ts +6 -6
  18. package/lib/codec/alliance/genesis.d.ts +7 -7
  19. package/lib/codec/alliance/gov.d.ts +5 -5
  20. package/lib/codec/alliance/params.d.ts +4 -4
  21. package/lib/codec/alliance/query.d.ts +24 -24
  22. package/lib/codec/alliance/tx.d.ts +10 -10
  23. package/lib/codec/bank/event.d.ts +7 -7
  24. package/lib/codec/bank/genesis.d.ts +3 -3
  25. package/lib/codec/bank/query.d.ts +6 -6
  26. package/lib/codec/book/book.d.ts +6 -6
  27. package/lib/codec/book/event.d.ts +3 -3
  28. package/lib/codec/book/genesis.d.ts +3 -3
  29. package/lib/codec/book/legacy.d.ts +3 -3
  30. package/lib/codec/book/query.d.ts +12 -12
  31. package/lib/codec/broker/amm.d.ts +5 -5
  32. package/lib/codec/broker/candlestick.d.ts +3 -3
  33. package/lib/codec/broker/event.d.ts +4 -4
  34. package/lib/codec/broker/genesis.d.ts +3 -3
  35. package/lib/codec/broker/incoming_liquidations.d.ts +3 -3
  36. package/lib/codec/broker/pagination.d.ts +3 -3
  37. package/lib/codec/broker/query.d.ts +8 -8
  38. package/lib/codec/broker/tx.d.ts +5 -5
  39. package/lib/codec/btcx/denom_cross_chain_info.d.ts +3 -3
  40. package/lib/codec/btcx/denom_info.d.ts +3 -3
  41. package/lib/codec/btcx/genesis.d.ts +3 -3
  42. package/lib/codec/btcx/query.d.ts +6 -6
  43. package/lib/codec/btcx/tx.d.ts +8 -8
  44. package/lib/codec/carbon-models.js +5 -1
  45. package/lib/codec/ccm/ccm.d.ts +3 -3
  46. package/lib/codec/ccm/genesis.d.ts +7 -7
  47. package/lib/codec/ccm/query.d.ts +4 -4
  48. package/lib/codec/ccm/tx.d.ts +8 -8
  49. package/lib/codec/cdp/asset_params.d.ts +5 -5
  50. package/lib/codec/cdp/cdp_liquidations.d.ts +3 -3
  51. package/lib/codec/cdp/debt_info.d.ts +3 -3
  52. package/lib/codec/cdp/e_mode_category.d.ts +3 -3
  53. package/lib/codec/cdp/event.d.ts +36 -36
  54. package/lib/codec/cdp/genesis.d.ts +10 -10
  55. package/lib/codec/cdp/params.d.ts +3 -3
  56. package/lib/codec/cdp/query.d.ts +53 -53
  57. package/lib/codec/cdp/rate_strategy_params.d.ts +3 -3
  58. package/lib/codec/cdp/reward_scheme.d.ts +6 -6
  59. package/lib/codec/cdp/stablecoin_debt_info.d.ts +3 -3
  60. package/lib/codec/cdp/stablecoin_interest_info.d.ts +3 -3
  61. package/lib/codec/cdp/tx.d.ts +87 -87
  62. package/lib/codec/coin/bridge.d.ts +3 -3
  63. package/lib/codec/coin/event.d.ts +14 -14
  64. package/lib/codec/coin/genesis.d.ts +4 -4
  65. package/lib/codec/coin/group.d.ts +5 -5
  66. package/lib/codec/coin/proposal.d.ts +3 -3
  67. package/lib/codec/coin/query.d.ts +26 -26
  68. package/lib/codec/coin/token.d.ts +9 -9
  69. package/lib/codec/coin/tx.d.ts +48 -48
  70. package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
  71. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +4 -4
  72. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
  73. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
  74. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +5 -5
  75. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
  76. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +20 -20
  77. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
  78. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
  79. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
  80. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
  81. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
  82. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
  83. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
  84. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
  85. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +21 -21
  86. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +6 -6
  87. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +12 -12
  88. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
  89. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +4 -4
  90. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
  91. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
  92. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
  93. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
  94. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
  95. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
  96. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
  97. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
  98. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
  99. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
  100. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
  101. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
  102. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +4 -4
  103. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
  104. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
  105. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
  106. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
  107. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
  108. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
  109. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
  110. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
  111. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
  112. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +22 -22
  113. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +10 -10
  114. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
  115. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
  116. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
  117. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
  118. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
  119. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
  120. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
  121. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
  122. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
  123. package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
  124. package/lib/codec/cosmos/gov/v1/gov.d.ts +10 -10
  125. package/lib/codec/cosmos/gov/v1/query.d.ts +18 -18
  126. package/lib/codec/cosmos/gov/v1/query.js +2 -2
  127. package/lib/codec/cosmos/gov/v1/tx.d.ts +12 -12
  128. package/lib/codec/cosmos/gov/v1/tx.js +2 -2
  129. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  130. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
  131. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
  132. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  133. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
  134. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  135. package/lib/codec/cosmos/group/v1/events.d.ts +11 -11
  136. package/lib/codec/cosmos/group/v1/events.js +2 -2
  137. package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
  138. package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
  139. package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
  140. package/lib/codec/cosmos/group/v1/tx.js +4 -4
  141. package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
  142. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
  143. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
  144. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
  145. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
  146. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
  147. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
  148. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
  149. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
  150. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
  151. package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
  152. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
  153. package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
  154. package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
  155. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
  156. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
  157. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
  158. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +4 -4
  159. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
  160. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
  161. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
  162. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +22 -22
  163. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +14 -14
  164. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
  165. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +12 -12
  166. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
  167. package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
  168. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
  169. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
  170. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
  171. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
  172. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
  173. package/lib/codec/cosmos-models.js +5 -1
  174. package/lib/codec/erc20/erc20.d.ts +3 -3
  175. package/lib/codec/erc20/events.d.ts +6 -6
  176. package/lib/codec/erc20/genesis.d.ts +4 -4
  177. package/lib/codec/erc20/query.d.ts +8 -8
  178. package/lib/codec/erc20/tx.d.ts +16 -16
  179. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
  180. package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
  181. package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
  182. package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
  183. package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
  184. package/lib/codec/ethermint/evm/v1/tx.d.ts +10 -10
  185. package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
  186. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
  187. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
  188. package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
  189. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +4 -4
  190. package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
  191. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
  192. package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
  193. package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
  194. package/lib/codec/ethermint-models.js +5 -1
  195. package/lib/codec/evmbank/genesis.d.ts +4 -4
  196. package/lib/codec/evmbank/query.d.ts +4 -4
  197. package/lib/codec/evmcontract/genesis.d.ts +3 -3
  198. package/lib/codec/evmmerge/address.d.ts +3 -3
  199. package/lib/codec/evmmerge/event.d.ts +3 -3
  200. package/lib/codec/evmmerge/genesis.d.ts +5 -5
  201. package/lib/codec/evmmerge/offchain.d.ts +3 -3
  202. package/lib/codec/evmmerge/query.d.ts +6 -6
  203. package/lib/codec/evmmerge/tx.d.ts +4 -4
  204. package/lib/codec/fee/event.d.ts +3 -3
  205. package/lib/codec/fee/fee.d.ts +5 -5
  206. package/lib/codec/fee/genesis.d.ts +3 -3
  207. package/lib/codec/fee/proposal.d.ts +6 -6
  208. package/lib/codec/fee/query.d.ts +10 -10
  209. package/lib/codec/fee/tx.d.ts +10 -10
  210. package/lib/codec/google/protobuf/any.d.ts +3 -3
  211. package/lib/codec/google/protobuf/duration.d.ts +3 -3
  212. package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
  213. package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
  214. package/lib/codec/headersync/consensus_peers.d.ts +7 -7
  215. package/lib/codec/headersync/genesis.d.ts +7 -7
  216. package/lib/codec/headersync/query.d.ts +6 -6
  217. package/lib/codec/headersync/tx.d.ts +6 -6
  218. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
  219. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
  220. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
  221. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
  222. package/lib/codec/ibc/applications/fee/v1/query.d.ts +22 -22
  223. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
  224. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
  225. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +6 -6
  226. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +6 -6
  227. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
  228. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
  229. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
  230. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
  231. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
  232. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
  233. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
  234. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +12 -12
  235. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
  236. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -4
  237. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
  238. package/lib/codec/ibc/core/channel/v1/channel.d.ts +9 -9
  239. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
  240. package/lib/codec/ibc/core/channel/v1/query.d.ts +28 -28
  241. package/lib/codec/ibc/core/channel/v1/tx.d.ts +22 -22
  242. package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
  243. package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
  244. package/lib/codec/ibc/core/client/v1/query.d.ts +20 -20
  245. package/lib/codec/ibc/core/client/v1/tx.d.ts +10 -10
  246. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
  247. package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
  248. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
  249. package/lib/codec/ibc/core/connection/v1/query.d.ts +14 -14
  250. package/lib/codec/ibc/core/connection/v1/tx.d.ts +10 -10
  251. package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
  252. package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
  253. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
  254. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
  255. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
  256. package/lib/codec/ibc-models.js +5 -1
  257. package/lib/codec/index.js +5 -1
  258. package/lib/codec/inflation/genesis.d.ts +3 -3
  259. package/lib/codec/inflation/inflation.d.ts +3 -3
  260. package/lib/codec/inflation/query.d.ts +4 -4
  261. package/lib/codec/insurance/event.d.ts +3 -3
  262. package/lib/codec/insurance/fund.d.ts +4 -4
  263. package/lib/codec/insurance/genesis.d.ts +3 -3
  264. package/lib/codec/insurance/query.d.ts +4 -4
  265. package/lib/codec/insurance/tx.d.ts +4 -4
  266. package/lib/codec/leverage/event.d.ts +3 -3
  267. package/lib/codec/leverage/genesis.d.ts +3 -3
  268. package/lib/codec/leverage/leverage.d.ts +4 -4
  269. package/lib/codec/leverage/query.d.ts +6 -6
  270. package/lib/codec/leverage/tx.d.ts +4 -4
  271. package/lib/codec/liquidation/genesis.d.ts +4 -4
  272. package/lib/codec/liquidation/liquidation.d.ts +3 -3
  273. package/lib/codec/liquidation/outstanding_position.d.ts +4 -4
  274. package/lib/codec/liquidation/query.d.ts +6 -6
  275. package/lib/codec/liquidation/quote_changes.d.ts +3 -3
  276. package/lib/codec/liquiditypool/event.d.ts +15 -15
  277. package/lib/codec/liquiditypool/genesis.d.ts +3 -3
  278. package/lib/codec/liquiditypool/liquiditypool.d.ts +12 -12
  279. package/lib/codec/liquiditypool/proposal.d.ts +11 -11
  280. package/lib/codec/liquiditypool/query.d.ts +31 -31
  281. package/lib/codec/liquiditypool/reward.d.ts +18 -18
  282. package/lib/codec/liquiditypool/tx.d.ts +39 -39
  283. package/lib/codec/lockproxy/event.d.ts +4 -4
  284. package/lib/codec/lockproxy/genesis.d.ts +6 -6
  285. package/lib/codec/lockproxy/lockproxy.d.ts +3 -3
  286. package/lib/codec/lockproxy/query.d.ts +6 -6
  287. package/lib/codec/lockproxy/tx.d.ts +12 -12
  288. package/lib/codec/market/event.d.ts +3 -3
  289. package/lib/codec/market/fee.d.ts +7 -7
  290. package/lib/codec/market/genesis.d.ts +3 -3
  291. package/lib/codec/market/market.d.ts +7 -7
  292. package/lib/codec/market/proposal.d.ts +5 -5
  293. package/lib/codec/market/query.d.ts +20 -20
  294. package/lib/codec/market/tx.d.ts +21 -21
  295. package/lib/codec/marketstats/genesis.d.ts +3 -3
  296. package/lib/codec/marketstats/marketstats.d.ts +3 -3
  297. package/lib/codec/marketstats/params.d.ts +3 -3
  298. package/lib/codec/marketstats/query.d.ts +6 -6
  299. package/lib/codec/misc/block.d.ts +3 -3
  300. package/lib/codec/misc/message.d.ts +3 -3
  301. package/lib/codec/misc/message_type.d.ts +3 -3
  302. package/lib/codec/misc/query.d.ts +16 -16
  303. package/lib/codec/misc/trade.d.ts +3 -3
  304. package/lib/codec/misc/transaction.d.ts +4 -4
  305. package/lib/codec/oracle/event.d.ts +4 -4
  306. package/lib/codec/oracle/genesis.d.ts +3 -3
  307. package/lib/codec/oracle/oracle.d.ts +8 -8
  308. package/lib/codec/oracle/proposal.d.ts +3 -3
  309. package/lib/codec/oracle/query.d.ts +28 -28
  310. package/lib/codec/oracle/slashing.d.ts +4 -4
  311. package/lib/codec/oracle/tx.d.ts +14 -14
  312. package/lib/codec/order/event.d.ts +3 -3
  313. package/lib/codec/order/genesis.d.ts +6 -6
  314. package/lib/codec/order/order.d.ts +9 -9
  315. package/lib/codec/order/query.d.ts +12 -12
  316. package/lib/codec/order/tx.d.ts +12 -12
  317. package/lib/codec/perpspool/event.d.ts +9 -9
  318. package/lib/codec/perpspool/genesis.d.ts +6 -6
  319. package/lib/codec/perpspool/market.d.ts +8 -8
  320. package/lib/codec/perpspool/params.d.ts +3 -3
  321. package/lib/codec/perpspool/pool.d.ts +8 -8
  322. package/lib/codec/perpspool/query.d.ts +20 -20
  323. package/lib/codec/perpspool/tx.d.ts +18 -18
  324. package/lib/codec/polynetwork-models.js +5 -1
  325. package/lib/codec/position/event.d.ts +3 -3
  326. package/lib/codec/position/genesis.d.ts +3 -3
  327. package/lib/codec/position/position.d.ts +6 -6
  328. package/lib/codec/position/query.d.ts +8 -8
  329. package/lib/codec/position/tx.d.ts +4 -4
  330. package/lib/codec/pricing/event.d.ts +8 -8
  331. package/lib/codec/pricing/genesis.d.ts +3 -3
  332. package/lib/codec/pricing/legacy.d.ts +3 -3
  333. package/lib/codec/pricing/pricing.d.ts +5 -5
  334. package/lib/codec/pricing/proposal.d.ts +4 -4
  335. package/lib/codec/pricing/query.d.ts +16 -16
  336. package/lib/codec/pricing/tx.d.ts +12 -12
  337. package/lib/codec/profile/event.d.ts +3 -3
  338. package/lib/codec/profile/genesis.d.ts +3 -3
  339. package/lib/codec/profile/profile.d.ts +3 -3
  340. package/lib/codec/profile/query.d.ts +8 -8
  341. package/lib/codec/profile/tx.d.ts +4 -4
  342. package/lib/codec/proofs.d.ts +15 -15
  343. package/lib/codec/sequence/genesis.d.ts +4 -4
  344. package/lib/codec/sequence/query.d.ts +6 -6
  345. package/lib/codec/sequence/tx.d.ts +4 -4
  346. package/lib/codec/subaccount/genesis.d.ts +3 -3
  347. package/lib/codec/subaccount/legacy.d.ts +3 -3
  348. package/lib/codec/subaccount/query.d.ts +17 -17
  349. package/lib/codec/subaccount/subaccount.d.ts +6 -6
  350. package/lib/codec/subaccount/tx.d.ts +8 -8
  351. package/lib/codec/tendermint/abci/types.d.ts +46 -46
  352. package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
  353. package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
  354. package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
  355. package/lib/codec/tendermint/p2p/types.d.ts +6 -6
  356. package/lib/codec/tendermint/types/block.d.ts +3 -3
  357. package/lib/codec/tendermint/types/evidence.d.ts +6 -6
  358. package/lib/codec/tendermint/types/params.d.ts +8 -8
  359. package/lib/codec/tendermint/types/types.d.ts +15 -15
  360. package/lib/codec/tendermint/types/validator.d.ts +5 -5
  361. package/lib/codec/tendermint/version/types.d.ts +4 -4
  362. package/lib/constant/address.d.ts +1 -1
  363. package/lib/constant/generic.js +1 -1
  364. package/lib/constant/ibc.d.ts +3 -3
  365. package/lib/constant/ibc.js +5 -1
  366. package/lib/constant/index.js +5 -1
  367. package/lib/constant/node.d.ts +1 -1
  368. package/lib/eth/index.js +5 -1
  369. package/lib/hydrogen/index.js +5 -1
  370. package/lib/hydrogen/transfer.d.ts +2 -2
  371. package/lib/index.js +5 -1
  372. package/lib/insights/common.d.ts +2 -1
  373. package/lib/insights/common.js +1 -0
  374. package/lib/insights/competition.d.ts +15 -0
  375. package/lib/insights/index.js +5 -1
  376. package/lib/insights/position.d.ts +1 -1
  377. package/lib/modules/cdp.js +45 -45
  378. package/lib/modules/cosmwasm.js +2 -2
  379. package/lib/modules/evm.d.ts +1 -1
  380. package/lib/modules/evm.js +5 -5
  381. package/lib/modules/gov.js +12 -12
  382. package/lib/modules/index.js +5 -1
  383. package/lib/modules/liquiditypool.js +1 -1
  384. package/lib/modules/order.js +2 -2
  385. package/lib/modules/test.d.ts +0 -0
  386. package/lib/modules/test.js +1 -0
  387. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  388. package/lib/provider/account/EthLedgerAccount/index.js +5 -1
  389. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  390. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +5 -1
  391. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  392. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
  393. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +8 -4
  394. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  395. package/lib/provider/account/NeoLedgerAccount/index.js +5 -1
  396. package/lib/provider/account/index.js +5 -1
  397. package/lib/provider/amino/types/admin.js +32 -28
  398. package/lib/provider/amino/types/bank.js +6 -2
  399. package/lib/provider/amino/types/broker.js +6 -2
  400. package/lib/provider/amino/types/cdp.js +31 -27
  401. package/lib/provider/amino/types/coin.js +9 -5
  402. package/lib/provider/amino/types/erc20.js +7 -3
  403. package/lib/provider/amino/types/evm.js +7 -3
  404. package/lib/provider/amino/types/evmmerge.js +6 -2
  405. package/lib/provider/amino/types/feemarket.js +6 -2
  406. package/lib/provider/amino/types/gov.js +10 -6
  407. package/lib/provider/amino/types/ibc.js +6 -2
  408. package/lib/provider/amino/types/leverage.js +6 -2
  409. package/lib/provider/amino/types/liquidityPool.js +12 -8
  410. package/lib/provider/amino/types/market.js +11 -7
  411. package/lib/provider/amino/types/oracle.js +7 -3
  412. package/lib/provider/amino/types/order.js +9 -5
  413. package/lib/provider/amino/types/perpspool.js +11 -7
  414. package/lib/provider/amino/types/position.js +6 -2
  415. package/lib/provider/amino/types/profile.js +6 -2
  416. package/lib/provider/amino/types/staking.js +9 -5
  417. package/lib/provider/amino/types/subaccount.js +8 -4
  418. package/lib/provider/amino/utils.d.ts +2 -2
  419. package/lib/provider/amino/utils.js +11 -11
  420. package/lib/provider/keplr/KeplrAccount.js +6 -6
  421. package/lib/provider/leap/LeapAccount.js +2 -2
  422. package/lib/provider/ledger/ledger.js +9 -6
  423. package/lib/provider/metamask/MetaMask.d.ts +1 -1
  424. package/lib/provider/metamask/MetaMask.js +28 -24
  425. package/lib/provider/metamask/error.d.ts +1 -1
  426. package/lib/provider/o3/O3Types.d.ts +1 -1
  427. package/lib/provider/o3/O3Wallet.js +15 -11
  428. package/lib/provider/o3/index.js +5 -1
  429. package/lib/provider/zilpay/Zilpay.js +4 -4
  430. package/lib/provider/zilpay/index.js +5 -1
  431. package/lib/util/address.d.ts +5 -5
  432. package/lib/util/address.js +19 -15
  433. package/lib/util/api.d.ts +3 -3
  434. package/lib/util/api.js +4 -4
  435. package/lib/util/blockchain.d.ts +7 -7
  436. package/lib/util/blockchain.js +4 -4
  437. package/lib/util/eip712.js +3 -3
  438. package/lib/util/fetch.js +1 -1
  439. package/lib/util/generic.d.ts +3 -2
  440. package/lib/util/generic.js +3 -3
  441. package/lib/util/gov.d.ts +1 -1
  442. package/lib/util/index.js +5 -1
  443. package/lib/util/legacyEIP712.d.ts +2 -2
  444. package/lib/util/legacyEIP712.js +2 -2
  445. package/lib/util/network.js +3 -3
  446. package/lib/util/number.d.ts +4 -4
  447. package/lib/util/number.js +5 -5
  448. package/lib/util/tx.d.ts +3 -3
  449. package/lib/util/tx.js +5 -1
  450. package/lib/util/type.d.ts +1 -1
  451. package/lib/wallet/CarbonSigner.d.ts +5 -5
  452. package/lib/wallet/CarbonSigner.js +6 -6
  453. package/lib/wallet/CarbonSigningClient.js +15 -15
  454. package/lib/wallet/CarbonWallet.d.ts +1 -1
  455. package/lib/wallet/CarbonWallet.js +11 -11
  456. package/lib/wallet/index.js +5 -1
  457. package/lib/websocket/connector.js +8 -4
  458. package/lib/websocket/index.js +5 -1
  459. package/lib/websocket/types.d.ts +1 -1
  460. package/package.json +1 -1
  461. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -76
  462. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -424
@@ -90,10 +90,10 @@ class CarbonSigningClient extends stargate_1.StargateClient {
90
90
  */
91
91
  sign(signerAddress, messages, fee, memo, signerData) {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
- if (CarbonSigner_1.isCarbonEIP712Signer(this.signer) && this.signer.legacyEip712SignMode) {
93
+ if ((0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) && this.signer.legacyEip712SignMode) {
94
94
  return this.signLegacyEip712(signerAddress, messages, fee, memo, signerData);
95
95
  }
96
- return proto_signing_1.isOfflineDirectSigner(this.signer)
96
+ return (0, proto_signing_1.isOfflineDirectSigner)(this.signer)
97
97
  ? this.signDirect(signerAddress, messages, fee, memo, signerData)
98
98
  : this.signAmino(signerAddress, messages, fee, memo, signerData);
99
99
  });
@@ -102,11 +102,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
102
102
  return __awaiter(this, void 0, void 0, function* () {
103
103
  const signer = this.signer;
104
104
  const accountFromSigner = (yield this.signer.getAccounts()).find((account) => account.address === signerAddress);
105
- if (!CarbonSigner_1.isCarbonEIP712Signer(this.signer) && !accountFromSigner) {
105
+ if (!(0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) && !accountFromSigner) {
106
106
  throw new Error("Failed to retrieve account from signer");
107
107
  }
108
108
  const pubKeyBz = accountFromSigner ? accountFromSigner.pubkey : (yield this.signer.getAccounts())[0].pubkey;
109
- const pubkey = CarbonSigner_1.isCarbonEIP712Signer(this.signer) ? ethermint_1.encodeAnyEthSecp256k1PubKey(pubKeyBz) : proto_signing_1.encodePubkey(amino_1.encodeSecp256k1Pubkey(pubKeyBz));
109
+ const pubkey = (0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) ? (0, ethermint_1.encodeAnyEthSecp256k1PubKey)(pubKeyBz) : (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(pubKeyBz));
110
110
  const txBodyEncodeObject = {
111
111
  typeUrl: "/cosmos.tx.v1beta1.TxBody",
112
112
  value: Object.assign({ messages: messages, memo: memo }, (timeoutHeight && {
@@ -115,13 +115,13 @@ class CarbonSigningClient extends stargate_1.StargateClient {
115
115
  };
116
116
  const txBodyBytes = this.registry.encode(txBodyEncodeObject);
117
117
  const gasLimit = math_1.Int53.fromString(fee.gas).toNumber();
118
- const authInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence }], fee.amount, gasLimit, undefined, undefined);
119
- const signDoc = proto_signing_1.makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber);
118
+ const authInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence }], fee.amount, gasLimit, undefined, undefined);
119
+ const signDoc = (0, proto_signing_1.makeSignDoc)(txBodyBytes, authInfoBytes, chainId, accountNumber);
120
120
  const { signature, signed } = yield signer.signDirect(signerAddress, signDoc);
121
121
  return tx_1.TxRaw.fromPartial({
122
122
  bodyBytes: signed.bodyBytes,
123
123
  authInfoBytes: signed.authInfoBytes,
124
- signatures: [encoding_1.fromBase64(signature.signature)],
124
+ signatures: [(0, encoding_1.fromBase64)(signature.signature)],
125
125
  });
126
126
  });
127
127
  }
@@ -129,11 +129,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
129
129
  return __awaiter(this, void 0, void 0, function* () {
130
130
  const signer = this.signer;
131
131
  const accountFromSigner = (yield this.signer.getAccounts()).find((account) => account.address === signerAddress);
132
- if (!CarbonSigner_1.isCarbonEIP712Signer(this.signer) && !accountFromSigner) {
132
+ if (!(0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) && !accountFromSigner) {
133
133
  throw new Error("Failed to retrieve account from signer");
134
134
  }
135
135
  const pubKeyBz = accountFromSigner ? accountFromSigner.pubkey : (yield this.signer.getAccounts())[0].pubkey;
136
- const pubkey = CarbonSigner_1.isCarbonEIP712Signer(this.signer) ? ethermint_1.encodeAnyEthSecp256k1PubKey(pubKeyBz) : proto_signing_1.encodePubkey(amino_1.encodeSecp256k1Pubkey(pubKeyBz));
136
+ const pubkey = (0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) ? (0, ethermint_1.encodeAnyEthSecp256k1PubKey)(pubKeyBz) : (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(pubKeyBz));
137
137
  const signMode = SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
138
138
  const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
139
139
  const signDoc = makeSignDocAmino(msgs, fee, chainId, memo, accountNumber, sequence, timeoutHeight !== null && timeoutHeight !== void 0 ? timeoutHeight : 0);
@@ -148,11 +148,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
148
148
  const signedTxBodyBytes = this.registry.encode(signedTxBodyEncodeObject);
149
149
  const signedGasLimit = math_1.Int53.fromString(signed.fee.gas).toNumber();
150
150
  const signedSequence = math_1.Int53.fromString(signed.sequence).toNumber();
151
- const signedAuthInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
151
+ const signedAuthInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
152
152
  return tx_1.TxRaw.fromPartial({
153
153
  bodyBytes: signedTxBodyBytes,
154
154
  authInfoBytes: signedAuthInfoBytes,
155
- signatures: [encoding_1.fromBase64(signature.signature)],
155
+ signatures: [(0, encoding_1.fromBase64)(signature.signature)],
156
156
  });
157
157
  });
158
158
  }
@@ -163,7 +163,7 @@ class CarbonSigningClient extends stargate_1.StargateClient {
163
163
  }
164
164
  const signer = this.signer;
165
165
  const pubKeyBz = (yield this.signer.getAccounts())[0].pubkey;
166
- const pubkey = ethermint_1.encodeAnyEthSecp256k1PubKey(pubKeyBz);
166
+ const pubkey = (0, ethermint_1.encodeAnyEthSecp256k1PubKey)(pubKeyBz);
167
167
  const signMode = SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
168
168
  const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
169
169
  const signDoc = makeSignDocAmino(msgs, fee, evmChainId, memo, accountNumber, sequence);
@@ -171,14 +171,14 @@ class CarbonSigningClient extends stargate_1.StargateClient {
171
171
  const eip712ExtensionOptions = {
172
172
  typeUrl: "/ethermint.types.v1.ExtensionOptionsWeb3Tx",
173
173
  value: web3_1.ExtensionOptionsWeb3Tx.encode(web3_1.ExtensionOptionsWeb3Tx.fromPartial({
174
- typedDataChainId: ethermint_1.parseChainId(evmChainId),
174
+ typedDataChainId: (0, ethermint_1.parseChainId)(evmChainId),
175
175
  feePayer,
176
- feePayerSig: encoding_1.fromBase64(signature.signature),
176
+ feePayerSig: (0, encoding_1.fromBase64)(signature.signature),
177
177
  })).finish(),
178
178
  };
179
179
  const signedGasLimit = math_1.Int53.fromString(signed.fee.gas).toNumber();
180
180
  const signedSequence = math_1.Int53.fromString(signed.sequence).toNumber();
181
- const signedAuthInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
181
+ const signedAuthInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
182
182
  const signedTxBody = {
183
183
  messages: signed.msgs.map((msg) => this.aminoTypes.fromAmino(msg)),
184
184
  memo: signed.memo,
@@ -50,7 +50,7 @@ export interface MetaMaskWalletOpts {
50
50
  publicKeyMessage?: string;
51
51
  publicKeyBase64?: string;
52
52
  }
53
- export declare type CarbonWalletInitOpts = CarbonWalletGenericOpts & ({
53
+ export type CarbonWalletInitOpts = CarbonWalletGenericOpts & ({
54
54
  mnemonic: string;
55
55
  privateKey?: string | Buffer;
56
56
  signer?: CarbonSigner;
@@ -175,7 +175,7 @@ class CarbonWallet {
175
175
  const fee = (_a = opts === null || opts === void 0 ? void 0 : opts.fee) !== null && _a !== void 0 ? _a : this.estimateTxFee(messages, feeDenom);
176
176
  const txRaw = yield signingClient.sign(signerAddress, messages, fee, memo, signerData);
177
177
  let sig;
178
- if (CarbonSigner_1.isCarbonEIP712Signer(this.signer)) {
178
+ if ((0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer)) {
179
179
  if (this.signer.legacyEip712SignMode) {
180
180
  const feePayerSigBz = web3_1.ExtensionOptionsWeb3Tx.decode(tx_2.TxBody.decode(txRaw.bodyBytes).extensionOptions[0].value).feePayerSig;
181
181
  sig = Uint8Array.from(Buffer.from(feePayerSigBz.slice(0, -1)));
@@ -183,11 +183,11 @@ class CarbonWallet {
183
183
  else {
184
184
  sig = txRaw.signatures[0];
185
185
  }
186
- signature = amino_1.encodeSecp256k1Signature(account.pubkey, sig);
186
+ signature = (0, amino_1.encodeSecp256k1Signature)(account.pubkey, sig);
187
187
  signature = Object.assign(Object.assign({}, signature), { pub_key: Object.assign(Object.assign({}, signature.pub_key), { type: ethermint_1.ETH_SECP256K1_TYPE }) });
188
188
  return txRaw;
189
189
  }
190
- signature = amino_1.encodeSecp256k1Signature(account.pubkey, txRaw.signatures[0]);
190
+ signature = (0, amino_1.encodeSecp256k1Signature)(account.pubkey, txRaw.signatures[0]);
191
191
  return txRaw;
192
192
  }
193
193
  finally {
@@ -226,7 +226,7 @@ class CarbonWallet {
226
226
  const tx = CarbonWallet.TxRaw.encode(txRaw).finish();
227
227
  const carbonClient = this.getSigningClient();
228
228
  const response = yield carbonClient.broadcastTx(tx, timeoutMs, pollIntervalMs);
229
- if (stargate_1.isDeliverTxFailure(response)) {
229
+ if ((0, stargate_1.isDeliverTxFailure)(response)) {
230
230
  // tx failed
231
231
  throw new tx_1.CarbonCustomError(`[${response.code}] ${response.rawLog}`, tx_1.ErrorType.BLOCK_FAIL, response);
232
232
  }
@@ -242,7 +242,7 @@ class CarbonWallet {
242
242
  const tx = CarbonWallet.TxRaw.encode(txRaw).finish();
243
243
  const tmClient = this.getTmClient();
244
244
  const response = yield tmClient.broadcastTxSync({ tx });
245
- if (!responses_1.broadcastTxSyncSuccess(response)) {
245
+ if (!(0, responses_1.broadcastTxSyncSuccess)(response)) {
246
246
  // tx failed
247
247
  throw new tx_1.CarbonCustomError(`[${response.code}] ${response.log}`, tx_1.ErrorType.BROADCAST_FAIL, response);
248
248
  }
@@ -283,12 +283,12 @@ class CarbonWallet {
283
283
  || ((_a = this.accountInfo) === null || _a === void 0 ? void 0 : _a.address) === this.evmBech32Address // refresh to check if carbon acc is present
284
284
  || this.sequenceInvalidated)
285
285
  yield this.reloadAccountSequence();
286
- const heightResponse = yield fetch_1.fetch(`${this.networkConfig.tmRpcUrl}/blockchain?cache=${new Date().getTime()}`);
286
+ const heightResponse = yield (0, fetch_1.fetch)(`${this.networkConfig.tmRpcUrl}/blockchain?cache=${new Date().getTime()}`);
287
287
  const heightRes = yield heightResponse.json();
288
- const height = number_1.bnOrZero((_b = heightRes.result) === null || _b === void 0 ? void 0 : _b.last_height);
288
+ const height = (0, number_1.bnOrZero)((_b = heightRes.result) === null || _b === void 0 ? void 0 : _b.last_height);
289
289
  let timeoutHeight;
290
290
  // timeoutHeight is not supported for EIP-712
291
- if (!CarbonSigner_1.isCarbonEIP712Signer(this.signer)) {
291
+ if (!(0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer)) {
292
292
  timeoutHeight = height.isZero() ? undefined : height.toNumber() + this.defaultTimeoutBlocks;
293
293
  }
294
294
  let sequence;
@@ -443,7 +443,7 @@ class CarbonWallet {
443
443
  catch (err) {
444
444
  const error = err;
445
445
  if (this.isTxHashNotFound(error, txId)) {
446
- yield utils_1.sleep(pollIntervalMs);
446
+ yield (0, utils_1.sleep)(pollIntervalMs);
447
447
  return pollForTx(txId);
448
448
  }
449
449
  throw err;
@@ -550,12 +550,12 @@ class CarbonWallet {
550
550
  const queryClient = this.getQueryClient();
551
551
  const { msgGasCosts } = yield queryClient.fee.MsgGasCostAll({});
552
552
  this.txGasCosts = msgGasCosts.reduce((result, item) => {
553
- result[item.msgType] = number_1.bnOrZero(item.gasCost);
553
+ result[item.msgType] = (0, number_1.bnOrZero)(item.gasCost);
554
554
  return result;
555
555
  }, {});
556
556
  const { minGasPrices } = yield queryClient.fee.MinGasPriceAll({});
557
557
  this.txGasPrices = minGasPrices.reduce((result, item) => {
558
- result[item.denom] = number_1.bnOrZero(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
558
+ result[item.denom] = (0, number_1.bnOrZero)(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
559
559
  return result;
560
560
  }, {});
561
561
  if (!this.txGasPrices[this.defaultFeeDenom]) {
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -171,7 +175,7 @@ class WSConnector {
171
175
  params = [params]; // eslint-disable-line no-param-reassign
172
176
  }
173
177
  for (const param of params) {
174
- const channelId = channel_1.generateChannelId(param);
178
+ const channelId = (0, channel_1.generateChannelId)(param);
175
179
  const shouldSubscribe = this.channelHandlers[channelId] === undefined;
176
180
  this.channelHandlers[channelId] = handler;
177
181
  if (shouldSubscribe) {
@@ -193,7 +197,7 @@ class WSConnector {
193
197
  }
194
198
  const channelIds = [];
195
199
  for (const param of params) {
196
- const channelId = channel_1.generateChannelId(param);
200
+ const channelId = (0, channel_1.generateChannelId)(param);
197
201
  const shouldUnsubscribe = this.channelHandlers[channelId] !== undefined;
198
202
  delete this.channelHandlers[channelId];
199
203
  if (shouldUnsubscribe) {
@@ -281,7 +285,7 @@ class WSConnector {
281
285
  if (!channelHandler) {
282
286
  this.debugLog(`handler not found for channel: ${message.channel}`);
283
287
  try {
284
- const params = channel_1.parseChannelId(message.channel);
288
+ const params = (0, channel_1.parseChannelId)(message.channel);
285
289
  this.unsubscribe({ channel: params.channel });
286
290
  }
287
291
  catch (error) {
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -230,4 +230,4 @@ export interface WsSubscribeTokenSupplyByDenom extends WsSubscribeParams {
230
230
  }
231
231
  export interface WsSubscribeMarketLiquidityUsageMultiplier extends WsSubscribeParams {
232
232
  }
233
- export declare type WsSubscriptionParams = WsSubscribeCandlesticksParams | WsSubscribeBooksParams | WsSubscribeRecentTradesParams | WsSubscribeOrdersAllParams | WsSubscribeOrdersByMarketParams | WsSubscribeWalletBalanceParams | WsSubscribeAccountTradesAllParams | WsSubscribeAccountTradesByMarketParams | WsSubscribeMarketStatsAllParams | WsSubscribeMarketStatsByMarketParams | WsSubscribeLeveragesAllParams | WsSubscribeLeveragesByMarketParams | WsSubscribePositionsAllParams | WsSubscribePositionsByMarketParams | WsSubscribePoolsAllParams | WsSubscribePoolsByIdParams | WsSubscribeTokenPrices | WsSubscribeAllTokenPrices | WsSubscribeCommitmentParams | WsUnsubscribeCandlesticksParams | WsSubscribeCDPBorrows | WsSubscribeCDPCollaterals | WsSubscribeCDPLiquidateCollaterals | WsSubscribeTokenDebts | WsSubscribeTokenDebtByDenom | WsSubscribeRewardSchemes | WsSubscribeRewardDebts | WsSubscribeCDPTokenSupply | WsSubscribeCDPTokenSupplyByDenom | WsSubscribeTokenSupplyByDenom | WsSubscribeMarketLiquidityUsageMultiplier;
233
+ export type WsSubscriptionParams = WsSubscribeCandlesticksParams | WsSubscribeBooksParams | WsSubscribeRecentTradesParams | WsSubscribeOrdersAllParams | WsSubscribeOrdersByMarketParams | WsSubscribeWalletBalanceParams | WsSubscribeAccountTradesAllParams | WsSubscribeAccountTradesByMarketParams | WsSubscribeMarketStatsAllParams | WsSubscribeMarketStatsByMarketParams | WsSubscribeLeveragesAllParams | WsSubscribeLeveragesByMarketParams | WsSubscribePositionsAllParams | WsSubscribePositionsByMarketParams | WsSubscribePoolsAllParams | WsSubscribePoolsByIdParams | WsSubscribeTokenPrices | WsSubscribeAllTokenPrices | WsSubscribeCommitmentParams | WsUnsubscribeCandlesticksParams | WsSubscribeCDPBorrows | WsSubscribeCDPCollaterals | WsSubscribeCDPLiquidateCollaterals | WsSubscribeTokenDebts | WsSubscribeTokenDebtByDenom | WsSubscribeRewardSchemes | WsSubscribeRewardDebts | WsSubscribeCDPTokenSupply | WsSubscribeCDPTokenSupplyByDenom | WsSubscribeTokenSupplyByDenom | WsSubscribeMarketLiquidityUsageMultiplier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.7.2-beta.2",
3
+ "version": "0.7.2",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,76 +0,0 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
3
- import { Params } from "../controller/v1/controller";
4
- import { Params as Params1 } from "../host/v1/host";
5
- export declare const protobufPackage = "ibc.applications.interchain_accounts.v1";
6
- /** GenesisState defines the interchain accounts genesis state */
7
- export interface GenesisState {
8
- controllerGenesisState?: ControllerGenesisState;
9
- hostGenesisState?: HostGenesisState;
10
- }
11
- /** ControllerGenesisState defines the interchain accounts controller genesis state */
12
- export interface ControllerGenesisState {
13
- activeChannels: ActiveChannel[];
14
- interchainAccounts: RegisteredInterchainAccount[];
15
- ports: string[];
16
- params?: Params;
17
- }
18
- /** HostGenesisState defines the interchain accounts host genesis state */
19
- export interface HostGenesisState {
20
- activeChannels: ActiveChannel[];
21
- interchainAccounts: RegisteredInterchainAccount[];
22
- port: string;
23
- params?: Params1;
24
- }
25
- /** ActiveChannel contains a connection ID, port ID and associated active channel ID */
26
- export interface ActiveChannel {
27
- connectionId: string;
28
- portId: string;
29
- channelId: string;
30
- }
31
- /** RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address */
32
- export interface RegisteredInterchainAccount {
33
- connectionId: string;
34
- portId: string;
35
- accountAddress: string;
36
- }
37
- export declare const GenesisState: {
38
- encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
39
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
40
- fromJSON(object: any): GenesisState;
41
- toJSON(message: GenesisState): unknown;
42
- fromPartial(object: DeepPartial<GenesisState>): GenesisState;
43
- };
44
- export declare const ControllerGenesisState: {
45
- encode(message: ControllerGenesisState, writer?: _m0.Writer): _m0.Writer;
46
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ControllerGenesisState;
47
- fromJSON(object: any): ControllerGenesisState;
48
- toJSON(message: ControllerGenesisState): unknown;
49
- fromPartial(object: DeepPartial<ControllerGenesisState>): ControllerGenesisState;
50
- };
51
- export declare const HostGenesisState: {
52
- encode(message: HostGenesisState, writer?: _m0.Writer): _m0.Writer;
53
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HostGenesisState;
54
- fromJSON(object: any): HostGenesisState;
55
- toJSON(message: HostGenesisState): unknown;
56
- fromPartial(object: DeepPartial<HostGenesisState>): HostGenesisState;
57
- };
58
- export declare const ActiveChannel: {
59
- encode(message: ActiveChannel, writer?: _m0.Writer): _m0.Writer;
60
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ActiveChannel;
61
- fromJSON(object: any): ActiveChannel;
62
- toJSON(message: ActiveChannel): unknown;
63
- fromPartial(object: DeepPartial<ActiveChannel>): ActiveChannel;
64
- };
65
- export declare const RegisteredInterchainAccount: {
66
- encode(message: RegisteredInterchainAccount, writer?: _m0.Writer): _m0.Writer;
67
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RegisteredInterchainAccount;
68
- fromJSON(object: any): RegisteredInterchainAccount;
69
- toJSON(message: RegisteredInterchainAccount): unknown;
70
- fromPartial(object: DeepPartial<RegisteredInterchainAccount>): RegisteredInterchainAccount;
71
- };
72
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
73
- 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 {} ? {
74
- [K in keyof T]?: DeepPartial<T[K]>;
75
- } : Partial<T>;
76
- export {};