carbon-js-sdk 0.9.1-beta.1 → 0.9.1-beta2

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