carbon-js-sdk 0.11.26 → 0.11.27-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (547) hide show
  1. package/lib/CarbonSDK.d.ts +6 -6
  2. package/lib/CarbonSDK.js +8 -4
  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/HydrogenClient.js +4 -4
  7. package/lib/clients/InsightsQueryClient.js +3 -3
  8. package/lib/clients/NEOClient.js +12 -8
  9. package/lib/clients/TokenClient.js +2 -2
  10. package/lib/clients/ZILClient.js +17 -17
  11. package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +3 -3
  12. package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +3 -3
  13. package/lib/codec/Switcheo/carbon/admin/query.d.ts +6 -6
  14. package/lib/codec/Switcheo/carbon/admin/tx.d.ts +6 -6
  15. package/lib/codec/Switcheo/carbon/bank/event.d.ts +7 -7
  16. package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +3 -3
  17. package/lib/codec/Switcheo/carbon/bank/query.d.ts +10 -10
  18. package/lib/codec/Switcheo/carbon/bank/tx.d.ts +6 -6
  19. package/lib/codec/Switcheo/carbon/book/book.d.ts +6 -6
  20. package/lib/codec/Switcheo/carbon/book/event.d.ts +5 -5
  21. package/lib/codec/Switcheo/carbon/book/genesis.d.ts +3 -3
  22. package/lib/codec/Switcheo/carbon/book/legacy.d.ts +3 -3
  23. package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -12
  24. package/lib/codec/Switcheo/carbon/bridge/bridge.d.ts +8 -8
  25. package/lib/codec/Switcheo/carbon/bridge/event.d.ts +24 -24
  26. package/lib/codec/Switcheo/carbon/bridge/genesis.d.ts +3 -3
  27. package/lib/codec/Switcheo/carbon/bridge/params.d.ts +3 -3
  28. package/lib/codec/Switcheo/carbon/bridge/pending_action.d.ts +8 -8
  29. package/lib/codec/Switcheo/carbon/bridge/query.d.ts +24 -24
  30. package/lib/codec/Switcheo/carbon/bridge/tx.d.ts +65 -65
  31. package/lib/codec/Switcheo/carbon/broker/amm.d.ts +5 -5
  32. package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +3 -3
  33. package/lib/codec/Switcheo/carbon/broker/event.d.ts +4 -4
  34. package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +3 -3
  35. package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +3 -3
  36. package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +3 -3
  37. package/lib/codec/Switcheo/carbon/broker/query.d.ts +8 -8
  38. package/lib/codec/Switcheo/carbon/broker/tx.d.ts +5 -5
  39. package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +3 -3
  40. package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +3 -3
  41. package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +3 -3
  42. package/lib/codec/Switcheo/carbon/btcx/query.d.ts +6 -6
  43. package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +8 -8
  44. package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +9 -9
  45. package/lib/codec/Switcheo/carbon/ccm/params.d.ts +4 -4
  46. package/lib/codec/Switcheo/carbon/ccm/query.d.ts +6 -6
  47. package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +7 -7
  48. package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +6 -6
  49. package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +3 -3
  50. package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +3 -3
  51. package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +3 -3
  52. package/lib/codec/Switcheo/carbon/cdp/event.d.ts +35 -35
  53. package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +10 -10
  54. package/lib/codec/Switcheo/carbon/cdp/params.d.ts +4 -4
  55. package/lib/codec/Switcheo/carbon/cdp/query.d.ts +55 -55
  56. package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +3 -3
  57. package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +6 -6
  58. package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +3 -3
  59. package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +3 -3
  60. package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +71 -71
  61. package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +3 -3
  62. package/lib/codec/Switcheo/carbon/coin/event.d.ts +14 -14
  63. package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +4 -4
  64. package/lib/codec/Switcheo/carbon/coin/group.d.ts +5 -5
  65. package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +3 -3
  66. package/lib/codec/Switcheo/carbon/coin/query.d.ts +26 -26
  67. package/lib/codec/Switcheo/carbon/coin/token.d.ts +9 -9
  68. package/lib/codec/Switcheo/carbon/coin/tx.d.ts +48 -48
  69. package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +3 -3
  70. package/lib/codec/Switcheo/carbon/erc20/events.d.ts +6 -6
  71. package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +3 -3
  72. package/lib/codec/Switcheo/carbon/erc20/params.d.ts +4 -4
  73. package/lib/codec/Switcheo/carbon/erc20/query.d.ts +8 -8
  74. package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +16 -16
  75. package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +4 -4
  76. package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +4 -4
  77. package/lib/codec/Switcheo/carbon/evmcontract/evm_hooks.d.ts +7 -7
  78. package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +3 -3
  79. package/lib/codec/Switcheo/carbon/evmcontract/params.d.ts +4 -4
  80. package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +12 -12
  81. package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +8 -8
  82. package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +3 -3
  83. package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +3 -3
  84. package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +5 -5
  85. package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +3 -3
  86. package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +6 -6
  87. package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +4 -4
  88. package/lib/codec/Switcheo/carbon/fee/event.d.ts +3 -3
  89. package/lib/codec/Switcheo/carbon/fee/fee.d.ts +5 -5
  90. package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +3 -3
  91. package/lib/codec/Switcheo/carbon/fee/query.d.ts +10 -10
  92. package/lib/codec/Switcheo/carbon/fee/tx.d.ts +10 -10
  93. package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +7 -7
  94. package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +7 -7
  95. package/lib/codec/Switcheo/carbon/headersync/query.d.ts +4 -4
  96. package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +6 -6
  97. package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +3 -3
  98. package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +3 -3
  99. package/lib/codec/Switcheo/carbon/inflation/query.d.ts +4 -4
  100. package/lib/codec/Switcheo/carbon/insurance/event.d.ts +3 -3
  101. package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +4 -4
  102. package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +3 -3
  103. package/lib/codec/Switcheo/carbon/insurance/params.d.ts +4 -4
  104. package/lib/codec/Switcheo/carbon/insurance/query.d.ts +6 -6
  105. package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +6 -6
  106. package/lib/codec/Switcheo/carbon/leverage/event.d.ts +3 -3
  107. package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +3 -3
  108. package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +4 -4
  109. package/lib/codec/Switcheo/carbon/leverage/query.d.ts +6 -6
  110. package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +4 -4
  111. package/lib/codec/Switcheo/carbon/liquidation/event.d.ts +3 -3
  112. package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +4 -4
  113. package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +4 -4
  114. package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +4 -4
  115. package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +3 -3
  116. package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +15 -15
  117. package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +3 -3
  118. package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +12 -12
  119. package/lib/codec/Switcheo/carbon/liquiditypool/params.d.ts +4 -4
  120. package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +11 -11
  121. package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +33 -33
  122. package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +18 -18
  123. package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +41 -41
  124. package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +4 -4
  125. package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +6 -6
  126. package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +3 -3
  127. package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +6 -6
  128. package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +12 -12
  129. package/lib/codec/Switcheo/carbon/market/event.d.ts +3 -3
  130. package/lib/codec/Switcheo/carbon/market/fee.d.ts +7 -7
  131. package/lib/codec/Switcheo/carbon/market/genesis.d.ts +3 -3
  132. package/lib/codec/Switcheo/carbon/market/market.d.ts +6 -6
  133. package/lib/codec/Switcheo/carbon/market/params.d.ts +4 -4
  134. package/lib/codec/Switcheo/carbon/market/proposal.d.ts +5 -5
  135. package/lib/codec/Switcheo/carbon/market/query.d.ts +22 -22
  136. package/lib/codec/Switcheo/carbon/market/tx.d.ts +27 -27
  137. package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +3 -3
  138. package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +3 -3
  139. package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +4 -4
  140. package/lib/codec/Switcheo/carbon/misc/block.d.ts +3 -3
  141. package/lib/codec/Switcheo/carbon/misc/message.d.ts +3 -3
  142. package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +3 -3
  143. package/lib/codec/Switcheo/carbon/misc/query.d.ts +16 -16
  144. package/lib/codec/Switcheo/carbon/misc/trade.d.ts +3 -3
  145. package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +4 -4
  146. package/lib/codec/Switcheo/carbon/oracle/event.d.ts +4 -4
  147. package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +3 -3
  148. package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +5 -5
  149. package/lib/codec/Switcheo/carbon/oracle/params.d.ts +4 -4
  150. package/lib/codec/Switcheo/carbon/oracle/query.d.ts +28 -28
  151. package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +4 -4
  152. package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +24 -24
  153. package/lib/codec/Switcheo/carbon/order/event.d.ts +3 -3
  154. package/lib/codec/Switcheo/carbon/order/evm_hooks.d.ts +6 -6
  155. package/lib/codec/Switcheo/carbon/order/genesis.d.ts +6 -6
  156. package/lib/codec/Switcheo/carbon/order/order.d.ts +8 -8
  157. package/lib/codec/Switcheo/carbon/order/params.d.ts +4 -4
  158. package/lib/codec/Switcheo/carbon/order/query.d.ts +12 -12
  159. package/lib/codec/Switcheo/carbon/order/tx.d.ts +14 -14
  160. package/lib/codec/Switcheo/carbon/otc/event.d.ts +4 -4
  161. package/lib/codec/Switcheo/carbon/otc/genesis.d.ts +3 -3
  162. package/lib/codec/Switcheo/carbon/otc/params.d.ts +4 -4
  163. package/lib/codec/Switcheo/carbon/otc/query.d.ts +12 -12
  164. package/lib/codec/Switcheo/carbon/otc/quote.d.ts +4 -4
  165. package/lib/codec/Switcheo/carbon/otc/rfq.d.ts +4 -4
  166. package/lib/codec/Switcheo/carbon/otc/tx.d.ts +12 -12
  167. package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +9 -9
  168. package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +6 -6
  169. package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +8 -8
  170. package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +4 -4
  171. package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +8 -8
  172. package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +20 -20
  173. package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +18 -18
  174. package/lib/codec/Switcheo/carbon/position/event.d.ts +4 -4
  175. package/lib/codec/Switcheo/carbon/position/evm_hooks.d.ts +4 -4
  176. package/lib/codec/Switcheo/carbon/position/genesis.d.ts +3 -3
  177. package/lib/codec/Switcheo/carbon/position/position.d.ts +7 -7
  178. package/lib/codec/Switcheo/carbon/position/query.d.ts +12 -12
  179. package/lib/codec/Switcheo/carbon/position/tx.d.ts +4 -4
  180. package/lib/codec/Switcheo/carbon/pricing/event.d.ts +9 -9
  181. package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +3 -3
  182. package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +3 -3
  183. package/lib/codec/Switcheo/carbon/pricing/params.d.ts +4 -4
  184. package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +4 -4
  185. package/lib/codec/Switcheo/carbon/pricing/query.d.ts +16 -16
  186. package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +18 -18
  187. package/lib/codec/Switcheo/carbon/profile/event.d.ts +3 -3
  188. package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +3 -3
  189. package/lib/codec/Switcheo/carbon/profile/profile.d.ts +3 -3
  190. package/lib/codec/Switcheo/carbon/profile/query.d.ts +8 -8
  191. package/lib/codec/Switcheo/carbon/profile/tx.d.ts +4 -4
  192. package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +4 -4
  193. package/lib/codec/Switcheo/carbon/sequence/query.d.ts +6 -6
  194. package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +4 -4
  195. package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +3 -3
  196. package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +3 -3
  197. package/lib/codec/Switcheo/carbon/subaccount/params.d.ts +4 -4
  198. package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +19 -19
  199. package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +5 -5
  200. package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +10 -10
  201. package/lib/codec/alliance/alliance/alliance.d.ts +5 -5
  202. package/lib/codec/alliance/alliance/delegations.d.ts +6 -6
  203. package/lib/codec/alliance/alliance/events.d.ts +7 -7
  204. package/lib/codec/alliance/alliance/genesis.d.ts +7 -7
  205. package/lib/codec/alliance/alliance/gov.d.ts +5 -5
  206. package/lib/codec/alliance/alliance/params.d.ts +4 -4
  207. package/lib/codec/alliance/alliance/query.d.ts +31 -31
  208. package/lib/codec/alliance/alliance/redelegations.d.ts +5 -5
  209. package/lib/codec/alliance/alliance/tx.d.ts +18 -18
  210. package/lib/codec/alliance/alliance/unbonding.d.ts +3 -3
  211. package/lib/codec/carbon-models.js +5 -1
  212. package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +4 -4
  213. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +5 -5
  214. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
  215. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
  216. package/lib/codec/cosmos/auth/module/v1/module.d.ts +4 -4
  217. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +6 -6
  218. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
  219. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +22 -22
  220. package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +4 -4
  221. package/lib/codec/cosmos/authz/module/v1/module.d.ts +3 -3
  222. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
  223. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
  224. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
  225. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
  226. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
  227. package/lib/codec/cosmos/autocli/v1/options.d.ts +9 -9
  228. package/lib/codec/cosmos/autocli/v1/query.d.ts +5 -5
  229. package/lib/codec/cosmos/bank/module/v1/module.d.ts +3 -3
  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/genesis.d.ts +4 -4
  233. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +29 -29
  234. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +10 -10
  235. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +13 -13
  236. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +6 -6
  237. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
  238. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
  239. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
  240. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
  241. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
  242. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
  243. package/lib/codec/cosmos/circuit/module/v1/module.d.ts +3 -3
  244. package/lib/codec/cosmos/circuit/v1/query.d.ts +8 -8
  245. package/lib/codec/cosmos/circuit/v1/tx.d.ts +8 -8
  246. package/lib/codec/cosmos/circuit/v1/types.d.ts +5 -5
  247. package/lib/codec/cosmos/consensus/module/v1/module.d.ts +3 -3
  248. package/lib/codec/cosmos/consensus/v1/query.d.ts +4 -4
  249. package/lib/codec/cosmos/consensus/v1/tx.d.ts +4 -4
  250. package/lib/codec/cosmos/crisis/module/v1/module.d.ts +3 -3
  251. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
  252. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +6 -6
  253. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
  254. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
  255. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
  256. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
  257. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
  258. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
  259. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
  260. package/lib/codec/cosmos/distribution/module/v1/module.d.ts +3 -3
  261. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
  262. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
  263. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +24 -24
  264. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +16 -16
  265. package/lib/codec/cosmos/evidence/module/v1/module.d.ts +3 -3
  266. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
  267. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
  268. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
  269. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
  270. package/lib/codec/cosmos/feegrant/module/v1/module.d.ts +3 -3
  271. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
  272. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
  273. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
  274. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +8 -8
  275. package/lib/codec/cosmos/genutil/module/v1/module.d.ts +3 -3
  276. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
  277. package/lib/codec/cosmos/gov/module/v1/module.d.ts +3 -3
  278. package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
  279. package/lib/codec/cosmos/gov/v1/gov.d.ts +11 -11
  280. package/lib/codec/cosmos/gov/v1/query.d.ts +20 -20
  281. package/lib/codec/cosmos/gov/v1/query.js +2 -2
  282. package/lib/codec/cosmos/gov/v1/tx.d.ts +16 -16
  283. package/lib/codec/cosmos/gov/v1/tx.js +2 -2
  284. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
  285. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
  286. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
  287. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  288. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
  289. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  290. package/lib/codec/cosmos/group/module/v1/module.d.ts +3 -3
  291. package/lib/codec/cosmos/group/v1/events.d.ts +12 -12
  292. package/lib/codec/cosmos/group/v1/events.js +4 -4
  293. package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
  294. package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
  295. package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
  296. package/lib/codec/cosmos/group/v1/tx.js +4 -4
  297. package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
  298. package/lib/codec/cosmos/ics23/v1/proofs.d.ts +15 -15
  299. package/lib/codec/cosmos/mint/module/v1/module.d.ts +3 -3
  300. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
  301. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
  302. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
  303. package/lib/codec/cosmos/mint/v1beta1/tx.d.ts +4 -4
  304. package/lib/codec/cosmos/nft/module/v1/module.d.ts +3 -3
  305. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
  306. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
  307. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
  308. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
  309. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
  310. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
  311. package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +9 -9
  312. package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
  313. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
  314. package/lib/codec/cosmos/params/module/v1/module.d.ts +3 -3
  315. package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
  316. package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
  317. package/lib/codec/cosmos/reflection/v1/reflection.d.ts +4 -4
  318. package/lib/codec/cosmos/slashing/module/v1/module.d.ts +3 -3
  319. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
  320. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
  321. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
  322. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +6 -6
  323. package/lib/codec/cosmos/staking/module/v1/module.d.ts +3 -3
  324. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
  325. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
  326. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
  327. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +23 -23
  328. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +16 -16
  329. package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +4 -4
  330. package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +9 -9
  331. package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +6 -6
  332. package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +5 -5
  333. package/lib/codec/cosmos/store/v1beta1/listening.d.ts +4 -4
  334. package/lib/codec/cosmos/tx/config/v1/config.d.ts +3 -3
  335. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
  336. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +20 -20
  337. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
  338. package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
  339. package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +3 -3
  340. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
  341. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
  342. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
  343. package/lib/codec/cosmos/vesting/module/v1/module.d.ts +3 -3
  344. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
  345. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
  346. package/lib/codec/cosmos-models.js +5 -1
  347. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
  348. package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
  349. package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
  350. package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
  351. package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
  352. package/lib/codec/ethermint/evm/v1/tx.d.ts +10 -10
  353. package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
  354. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
  355. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
  356. package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
  357. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +4 -4
  358. package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
  359. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
  360. package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
  361. package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
  362. package/lib/codec/ethermint-models.js +5 -1
  363. package/lib/codec/google/protobuf/any.d.ts +3 -3
  364. package/lib/codec/google/protobuf/descriptor.d.ts +34 -34
  365. package/lib/codec/google/protobuf/duration.d.ts +3 -3
  366. package/lib/codec/google/protobuf/empty.d.ts +3 -3
  367. package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
  368. package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
  369. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
  370. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
  371. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
  372. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
  373. package/lib/codec/ibc/applications/fee/v1/query.d.ts +22 -22
  374. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
  375. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
  376. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +6 -6
  377. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +8 -8
  378. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -2
  379. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
  380. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
  381. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
  382. package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +4 -4
  383. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
  384. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
  385. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
  386. package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +4 -4
  387. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
  388. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +14 -14
  389. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
  390. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +6 -6
  391. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
  392. package/lib/codec/ibc/core/channel/v1/channel.d.ts +11 -11
  393. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
  394. package/lib/codec/ibc/core/channel/v1/query.d.ts +36 -36
  395. package/lib/codec/ibc/core/channel/v1/tx.d.ts +40 -40
  396. package/lib/codec/ibc/core/channel/v1/tx.js +4 -4
  397. package/lib/codec/ibc/core/channel/v1/upgrade.d.ts +5 -5
  398. package/lib/codec/ibc/core/channel/v1/upgrade.js +2 -2
  399. package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
  400. package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
  401. package/lib/codec/ibc/core/client/v1/query.d.ts +20 -20
  402. package/lib/codec/ibc/core/client/v1/tx.d.ts +16 -16
  403. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
  404. package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
  405. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
  406. package/lib/codec/ibc/core/connection/v1/query.d.ts +14 -14
  407. package/lib/codec/ibc/core/connection/v1/tx.d.ts +12 -12
  408. package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
  409. package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +3 -3
  410. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
  411. package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +10 -10
  412. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
  413. package/lib/codec/ibc/lightclients/wasm/v1/genesis.d.ts +4 -4
  414. package/lib/codec/ibc/lightclients/wasm/v1/query.d.ts +6 -6
  415. package/lib/codec/ibc/lightclients/wasm/v1/tx.d.ts +8 -8
  416. package/lib/codec/ibc/lightclients/wasm/v1/wasm.d.ts +6 -6
  417. package/lib/codec/ibc-models.js +5 -1
  418. package/lib/codec/index.js +5 -1
  419. package/lib/codec/oraclesvc/query.js +1 -1
  420. package/lib/codec/polynetwork-models.js +5 -1
  421. package/lib/codec/tendermint/abci/types.d.ts +49 -49
  422. package/lib/codec/tendermint/abci/types.js +4 -4
  423. package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
  424. package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
  425. package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
  426. package/lib/codec/tendermint/oracle/types.d.ts +8 -8
  427. package/lib/codec/tendermint/p2p/types.d.ts +6 -6
  428. package/lib/codec/tendermint/types/block.d.ts +3 -3
  429. package/lib/codec/tendermint/types/evidence.d.ts +6 -6
  430. package/lib/codec/tendermint/types/params.d.ts +9 -9
  431. package/lib/codec/tendermint/types/types.d.ts +17 -17
  432. package/lib/codec/tendermint/types/types.js +4 -4
  433. package/lib/codec/tendermint/types/validator.d.ts +5 -5
  434. package/lib/codec/tendermint/version/types.d.ts +4 -4
  435. package/lib/constant/address.d.ts +1 -1
  436. package/lib/constant/eip6963Provider.d.ts +1 -1
  437. package/lib/constant/generic.d.ts +1 -1
  438. package/lib/constant/generic.js +1 -1
  439. package/lib/constant/ibc.d.ts +3 -3
  440. package/lib/constant/ibc.js +5 -1
  441. package/lib/constant/index.js +5 -1
  442. package/lib/constant/node.d.ts +1 -1
  443. package/lib/constant/web3Config.js +4 -4
  444. package/lib/eth/index.js +5 -1
  445. package/lib/hydrogen/index.js +5 -1
  446. package/lib/hydrogen/transfer.d.ts +2 -2
  447. package/lib/index.js +5 -1
  448. package/lib/insights/common.d.ts +1 -1
  449. package/lib/insights/index.js +5 -1
  450. package/lib/insights/position.d.ts +1 -1
  451. package/lib/modules/alliance.js +1 -1
  452. package/lib/modules/cdp.js +46 -46
  453. package/lib/modules/cosmwasm.js +2 -2
  454. package/lib/modules/evm.d.ts +1 -1
  455. package/lib/modules/evm.js +6 -6
  456. package/lib/modules/gov.js +1 -1
  457. package/lib/modules/index.js +5 -1
  458. package/lib/modules/liquiditypool.js +1 -1
  459. package/lib/modules/order.js +1 -1
  460. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  461. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +5 -1
  462. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  463. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
  464. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +8 -4
  465. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  466. package/lib/provider/account/NeoLedgerAccount/index.js +5 -1
  467. package/lib/provider/account/index.js +5 -1
  468. package/lib/provider/amino/types/admin.js +32 -28
  469. package/lib/provider/amino/types/bank.js +6 -2
  470. package/lib/provider/amino/types/bridge.js +6 -2
  471. package/lib/provider/amino/types/broker.js +6 -2
  472. package/lib/provider/amino/types/cdp.js +26 -22
  473. package/lib/provider/amino/types/coin.js +9 -5
  474. package/lib/provider/amino/types/erc20.js +7 -3
  475. package/lib/provider/amino/types/evm.js +6 -2
  476. package/lib/provider/amino/types/evmmerge.js +6 -2
  477. package/lib/provider/amino/types/feemarket.js +6 -2
  478. package/lib/provider/amino/types/gov.js +9 -5
  479. package/lib/provider/amino/types/grant.js +14 -10
  480. package/lib/provider/amino/types/ibc.js +6 -2
  481. package/lib/provider/amino/types/leverage.js +6 -2
  482. package/lib/provider/amino/types/liquidityPool.js +12 -8
  483. package/lib/provider/amino/types/market.js +11 -7
  484. package/lib/provider/amino/types/order.js +9 -5
  485. package/lib/provider/amino/types/otc.js +8 -4
  486. package/lib/provider/amino/types/perpspool.js +11 -7
  487. package/lib/provider/amino/types/position.js +6 -2
  488. package/lib/provider/amino/types/profile.js +6 -2
  489. package/lib/provider/amino/types/staking.js +9 -5
  490. package/lib/provider/amino/types/subaccount.js +8 -4
  491. package/lib/provider/amino/utils.d.ts +2 -2
  492. package/lib/provider/amino/utils.js +13 -13
  493. package/lib/provider/keplr/KeplrAccount.js +7 -7
  494. package/lib/provider/leap/LeapAccount.js +7 -7
  495. package/lib/provider/ledger/CarbonEVMLedger/CarbonEVMLedger.d.ts +27 -0
  496. package/lib/provider/ledger/CarbonEVMLedger/CarbonEVMLedger.js +154 -0
  497. package/lib/provider/ledger/CarbonEVMLedger/index.d.ts +1 -0
  498. package/lib/provider/ledger/CarbonEVMLedger/index.js +8 -0
  499. package/lib/provider/ledger/CarbonEVMLedger/utils.d.ts +73 -0
  500. package/lib/provider/ledger/CarbonEVMLedger/utils.js +220 -0
  501. package/lib/provider/ledger/evm.d.ts +22 -0
  502. package/lib/provider/ledger/evm.js +2 -0
  503. package/lib/provider/ledger/index.d.ts +1 -0
  504. package/lib/provider/ledger/index.js +15 -0
  505. package/lib/provider/ledger/ledger.d.ts +3 -0
  506. package/lib/provider/ledger/ledger.js +17 -6
  507. package/lib/provider/metamask/MetaMask.js +25 -21
  508. package/lib/provider/metamask/error.d.ts +1 -1
  509. package/lib/provider/o3/O3Types.d.ts +1 -1
  510. package/lib/provider/o3/O3Wallet.js +15 -11
  511. package/lib/provider/o3/index.js +5 -1
  512. package/lib/provider/rainbowKit/RainbowKitAccount.js +16 -16
  513. package/lib/provider/zilpay/Zilpay.js +4 -4
  514. package/lib/provider/zilpay/index.js +5 -1
  515. package/lib/util/address.d.ts +5 -5
  516. package/lib/util/address.js +19 -15
  517. package/lib/util/alliance.d.ts +1 -1
  518. package/lib/util/api.d.ts +3 -3
  519. package/lib/util/api.js +4 -4
  520. package/lib/util/blockchain.d.ts +7 -7
  521. package/lib/util/blockchain.js +4 -4
  522. package/lib/util/eip712.js +3 -3
  523. package/lib/util/fetch.js +1 -1
  524. package/lib/util/generic.d.ts +3 -2
  525. package/lib/util/generic.js +3 -3
  526. package/lib/util/gov.d.ts +1 -1
  527. package/lib/util/grant.d.ts +1 -1
  528. package/lib/util/grant.js +1 -1
  529. package/lib/util/index.js +5 -1
  530. package/lib/util/legacyEIP712.d.ts +2 -2
  531. package/lib/util/legacyEIP712.js +2 -2
  532. package/lib/util/network.js +3 -3
  533. package/lib/util/number.d.ts +4 -4
  534. package/lib/util/number.js +5 -5
  535. package/lib/util/tx.d.ts +3 -3
  536. package/lib/util/tx.js +6 -2
  537. package/lib/util/type.d.ts +1 -1
  538. package/lib/wallet/CarbonSigner.d.ts +9 -6
  539. package/lib/wallet/CarbonSigner.js +32 -12
  540. package/lib/wallet/CarbonSigningClient.js +16 -16
  541. package/lib/wallet/CarbonWallet.d.ts +9 -2
  542. package/lib/wallet/CarbonWallet.js +24 -12
  543. package/lib/wallet/index.js +5 -1
  544. package/lib/websocket/connector.js +8 -4
  545. package/lib/websocket/index.js +5 -1
  546. package/lib/websocket/types.d.ts +1 -1
  547. package/package.json +1 -1
@@ -2,20 +2,20 @@
2
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
- import { CarbonQueryClient, AxelarBridgeClient, ETHClient, HydrogenClient, InsightsQueryClient, NEOClient, TokenClient, ZILClient } from "./clients";
5
+ import { AxelarBridgeClient, CarbonQueryClient, ETHClient, HydrogenClient, InsightsQueryClient, NEOClient, TokenClient, ZILClient } from "./clients";
6
6
  import GasFee from "./clients/GasFee";
7
7
  import GrpcQueryClient from "./clients/GrpcQueryClient";
8
8
  import N3Client from "./clients/N3Client";
9
- import { AdminModule, AllianceModule, BankModule, BridgeModule, BrokerModule, CDPModule, CoinModule, ERC20Module, EvmMergeModule, EvmModule, FeeModule, GovModule, IBCModule, LeverageModule, LiquidityPoolModule, MarketModule, OracleModule, OrderModule, PerpspoolModule, PositionModule, ProfileModule, SubAccountModule, XChainModule, OTCModule } from "./modules";
9
+ import { AdminModule, AllianceModule, BankModule, BridgeModule, BrokerModule, CDPModule, CoinModule, ERC20Module, EvmMergeModule, EvmModule, FeeModule, GovModule, IBCModule, LeverageModule, LiquidityPoolModule, MarketModule, OTCModule, OracleModule, OrderModule, PerpspoolModule, PositionModule, ProfileModule, SubAccountModule, XChainModule } from "./modules";
10
10
  import { GrantModule } from "./modules/grant";
11
11
  import { StakingModule } from "./modules/staking";
12
12
  import { CosmosLedger, Keplr, LeapExtended } from "./provider";
13
13
  import { MetaMask } from "./provider/metamask/MetaMask";
14
- import { CarbonSigner, CarbonWallet, CarbonWalletGenericOpts, MetaMaskWalletOpts } from "./wallet";
14
+ import RainbowKitAccount, { RainbowKitWalletOpts } from "./provider/rainbowKit/RainbowKitAccount";
15
+ import { CarbonLedgerWalletGenericOpts, CarbonSigner, CarbonWallet, CarbonWalletGenericOpts, MetaMaskWalletOpts } from "./wallet";
15
16
  export { CarbonTx } from "./util";
16
17
  export { CarbonSigner, CarbonSignerTypes, CarbonWallet, CarbonWalletGenericOpts, CarbonWalletInitOpts } from "./wallet";
17
18
  export * as Carbon from "./codec/carbon-models";
18
- import RainbowKitAccount, { RainbowKitWalletOpts } from "./provider/rainbowKit/RainbowKitAccount";
19
19
  export interface CarbonSDKOpts {
20
20
  network: Network;
21
21
  tmClient: Tendermint37Client;
@@ -117,7 +117,7 @@ declare class CarbonSDK {
117
117
  static instanceWithPrivateKey(privateKey: string | Buffer, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
118
118
  static instanceWithMnemonic(mnemonic: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
119
119
  static instanceWithSigner(signer: CarbonSigner, publicKeyBase64: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
120
- static instanceWithLedger(ledger: CosmosLedger, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
120
+ static instanceWithLedger(ledger: CosmosLedger, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonLedgerWalletGenericOpts): Promise<ConnectedCarbonSDK>;
121
121
  static instanceWithKeplr(keplr: Keplr, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
122
122
  static instanceWithLeap(leap: LeapExtended, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
123
123
  static instanceWithMetamask(metamask: MetaMask, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts, metamaskWalletOpts?: MetaMaskWalletOpts): Promise<ConnectedCarbonSDK>;
@@ -132,7 +132,7 @@ declare class CarbonSDK {
132
132
  connectWithPrivateKey(privateKey: string | Buffer, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
133
133
  connectWithMnemonic(mnemonic: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
134
134
  connectWithSigner(signer: CarbonSigner, publicKeyBase64: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
135
- connectWithLedger(ledger: CosmosLedger, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
135
+ connectWithLedger(ledger: CosmosLedger, opts?: CarbonLedgerWalletGenericOpts): Promise<ConnectedCarbonSDK>;
136
136
  connectWithKeplr(keplr: Keplr, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
137
137
  connectWithLeap(leap: LeapExtended, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
138
138
  connectWithMetamask(metamask: MetaMask, opts?: CarbonWalletGenericOpts, metamaskWalletOpts?: MetaMaskWalletOpts): 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];
@@ -78,7 +82,7 @@ class CarbonSDK {
78
82
  if (!opts.query) {
79
83
  let grpcClient;
80
84
  if (opts.useTmAbciQuery !== true && this.networkConfig.grpcUrl) {
81
- const transport = typeof window === "undefined" ? grpc_web_node_http_transport_1.NodeHttpTransport() : undefined;
85
+ const transport = typeof window === "undefined" ? (0, grpc_web_node_http_transport_1.NodeHttpTransport)() : undefined;
82
86
  grpcClient = (_h = opts.grpcQueryClient) !== null && _h !== void 0 ? _h : new GrpcQueryClient_1.default(this.networkConfig.restUrl, {
83
87
  transport,
84
88
  });
@@ -286,14 +290,14 @@ class CarbonSDK {
286
290
  pagination: constant_1.PAGINATE_10K,
287
291
  });
288
292
  const txGasCosts = msgGasCosts.reduce((result, item) => {
289
- result[item.msgType] = number_1.bnOrZero(item.gasCost);
293
+ result[item.msgType] = (0, number_1.bnOrZero)(item.gasCost);
290
294
  return result;
291
295
  }, {});
292
296
  const { minGasPrices } = yield queryClient.fee.MinGasPriceAll({
293
297
  pagination: constant_1.PAGINATE_10K,
294
298
  });
295
299
  const txGasPrices = minGasPrices.reduce((result, item) => {
296
- result[item.denom] = number_1.bnOrZero(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
300
+ result[item.denom] = (0, number_1.bnOrZero)(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
297
301
  return result;
298
302
  }, {});
299
303
  return new GasFee_1.default(txGasCosts, txGasPrices);
@@ -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 {
@@ -58,7 +58,7 @@ const BlockchainClient_1 = __importDefault(require("./BlockchainClient"));
58
58
  class CarbonQueryClient {
59
59
  constructor(opts) {
60
60
  var _a;
61
- const rpcClient = (_a = opts.grpcClient) !== null && _a !== void 0 ? _a : stargate_1.createProtobufRpcClient(new stargate_1.QueryClient(opts.tmClient));
61
+ const rpcClient = (_a = opts.grpcClient) !== null && _a !== void 0 ? _a : (0, stargate_1.createProtobufRpcClient)(new stargate_1.QueryClient(opts.tmClient));
62
62
  this.chain = BlockchainClient_1.default.connectWithTm(opts.tmClient);
63
63
  this.adl = new query_1.QueryClientImpl(rpcClient);
64
64
  this.alliance = new query_48.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() {
@@ -32,7 +32,7 @@ exports.HydrogenEndpoints = {
32
32
  const formatDateField = (value) => {
33
33
  if (typeof value !== "string")
34
34
  return null;
35
- return dayjs_1.default(value);
35
+ return (0, dayjs_1.default)(value);
36
36
  };
37
37
  // temporary function to parse okt/okc blockchain
38
38
  // to remove when automatic deposit/withdraw feature is deployed
@@ -92,14 +92,14 @@ class HydrogenClient {
92
92
  // brdg tokens will all be chain_id 0 which will also be deprecated in future
93
93
  // hence for brdg tokens cannot use chain_id to differentiate between blockchains
94
94
  const isBridgeToken = this.tokenClient.isBridgedToken(value.carbon_token_id);
95
- return Object.assign(Object.assign({}, value), { created_at: formatDateField((_a = value.created_at) === null || _a === void 0 ? void 0 : _a.toString()), updated_at: formatDateField((_b = value.updated_at) === null || _b === void 0 ? void 0 : _b.toString()), source_blockchain: isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id), bridging_blockchain: getBridgeBlockchainFromId(value.bridge_id), destination_blockchain: isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id), source_event: this.formatChainEventV2(value.source_event, (_c = value.source_blockchain) !== null && _c !== void 0 ? _c : ''), bridging_event: this.formatChainEventV2(value.bridging_event, getBridgeBlockchainFromId(value.bridge_id)), destination_event: this.formatChainEventV2(value.destination_event, (_d = value.destination_blockchain) !== null && _d !== void 0 ? _d : ''), relay: this.formatRelaysTransfersV2(value.relay) });
95
+ return Object.assign(Object.assign({}, value), { created_at: formatDateField((_a = value.created_at) === null || _a === void 0 ? void 0 : _a.toString()), updated_at: formatDateField((_b = value.updated_at) === null || _b === void 0 ? void 0 : _b.toString()), source_blockchain: isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id), bridging_blockchain: getBridgeBlockchainFromId(value.bridge_id), destination_blockchain: isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id), source_event: this.formatChainEventV2(value.source_event, (_c = value.source_blockchain) !== null && _c !== void 0 ? _c : ''), bridging_event: this.formatChainEventV2(value.bridging_event, getBridgeBlockchainFromId(value.bridge_id)), destination_event: this.formatChainEventV2(value.destination_event, (_d = value.destination_blockchain) !== null && _d !== void 0 ? _d : ''), relay: this.formatRelaysTransfersV2(value.relay) });
96
96
  };
97
97
  this.formatCrossChainTransferDetailedV2 = (value) => {
98
98
  if (!value || typeof value !== "object")
99
99
  return value;
100
100
  const isBridgeToken = this.tokenClient.isBridgedToken(value.carbon_token_id);
101
- const source_blockchain = isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id);
102
- const destination_blockchain = isBridgeToken ? blockchain_1.getFormattedBlockchainName(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id);
101
+ const source_blockchain = isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.source_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.from_chain_id), value.bridge_id);
102
+ const destination_blockchain = isBridgeToken ? (0, blockchain_1.getFormattedBlockchainName)(value.destination_blockchain) : this.tokenClient.getBlockchainV2FromIDs(Number(value.to_chain_id), value.bridge_id);
103
103
  const bridging_blockchain = getBridgeBlockchainFromId(value.bridge_id);
104
104
  return Object.assign(Object.assign({}, this.formatCrossChainTransferV2(value)), { source_event: this.formatChainEventV2(value.source_event, source_blockchain !== null && source_blockchain !== void 0 ? source_blockchain : ''), bridging_event: this.formatChainEventV2(value.bridging_event, bridging_blockchain), destination_event: this.formatChainEventV2(value.destination_event, destination_blockchain !== null && destination_blockchain !== void 0 ? destination_blockchain : '') });
105
105
  };
@@ -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() {
@@ -612,7 +612,7 @@ class TokenClient {
612
612
  if (!token)
613
613
  return undefined;
614
614
  const bridge = this.getBridgeFromToken(token);
615
- if (!bridge || !blockchain_1.isIbcBridge(bridge))
615
+ if (!bridge || !(0, blockchain_1.isIbcBridge)(bridge))
616
616
  return undefined;
617
617
  return bridge.chain_id_name;
618
618
  }
@@ -691,7 +691,7 @@ class TokenClient {
691
691
  processTokenPrices(tokenPrices) {
692
692
  return tokenPrices.reduce((prevPrices, price) => {
693
693
  const newPrev = prevPrices;
694
- newPrev[price.denom] = number_1.bnOrZero(price.twap).shiftedBy(-constant_1.decTypeDecimals);
694
+ newPrev[price.denom] = (0, number_1.bnOrZero)(price.twap).shiftedBy(-constant_1.decTypeDecimals);
695
695
  return newPrev;
696
696
  }, {});
697
697
  }
@@ -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() {
@@ -6,13 +6,13 @@ export interface GenesisState {
6
6
  }
7
7
  export declare const GenesisState: {
8
8
  encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
9
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
9
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
10
10
  fromJSON(_: any): GenesisState;
11
11
  toJSON(_: GenesisState): unknown;
12
12
  fromPartial(_: DeepPartial<GenesisState>): GenesisState;
13
13
  };
14
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
- export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
14
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
16
16
  [K in keyof T]?: DeepPartial<T[K]>;
17
17
  } : Partial<T>;
18
18
  export {};
@@ -6,13 +6,13 @@ export interface GenesisState {
6
6
  }
7
7
  export declare const GenesisState: {
8
8
  encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
9
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
9
+ decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
10
10
  fromJSON(_: any): GenesisState;
11
11
  toJSON(_: GenesisState): unknown;
12
12
  fromPartial(_: DeepPartial<GenesisState>): GenesisState;
13
13
  };
14
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
- export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
14
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
16
16
  [K in keyof T]?: DeepPartial<T[K]>;
17
17
  } : Partial<T>;
18
18
  export {};
@@ -13,28 +13,28 @@ export interface QueryAdminRecipientResponse {
13
13
  }
14
14
  export declare const QueryAdminRequest: {
15
15
  encode(_: QueryAdminRequest, writer?: _m0.Writer): _m0.Writer;
16
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRequest;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminRequest;
17
17
  fromJSON(_: any): QueryAdminRequest;
18
18
  toJSON(_: QueryAdminRequest): unknown;
19
19
  fromPartial(_: DeepPartial<QueryAdminRequest>): QueryAdminRequest;
20
20
  };
21
21
  export declare const QueryAdminResponse: {
22
22
  encode(message: QueryAdminResponse, writer?: _m0.Writer): _m0.Writer;
23
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminResponse;
23
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminResponse;
24
24
  fromJSON(object: any): QueryAdminResponse;
25
25
  toJSON(message: QueryAdminResponse): unknown;
26
26
  fromPartial(object: DeepPartial<QueryAdminResponse>): QueryAdminResponse;
27
27
  };
28
28
  export declare const QueryAdminRecipientRequest: {
29
29
  encode(_: QueryAdminRecipientRequest, writer?: _m0.Writer): _m0.Writer;
30
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientRequest;
30
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminRecipientRequest;
31
31
  fromJSON(_: any): QueryAdminRecipientRequest;
32
32
  toJSON(_: QueryAdminRecipientRequest): unknown;
33
33
  fromPartial(_: DeepPartial<QueryAdminRecipientRequest>): QueryAdminRecipientRequest;
34
34
  };
35
35
  export declare const QueryAdminRecipientResponse: {
36
36
  encode(message: QueryAdminRecipientResponse, writer?: _m0.Writer): _m0.Writer;
37
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientResponse;
37
+ decode(input: _m0.Reader | Uint8Array, length?: number): QueryAdminRecipientResponse;
38
38
  fromJSON(object: any): QueryAdminRecipientResponse;
39
39
  toJSON(message: QueryAdminRecipientResponse): unknown;
40
40
  fromPartial(object: DeepPartial<QueryAdminRecipientResponse>): QueryAdminRecipientResponse;
@@ -55,8 +55,8 @@ export declare class QueryClientImpl implements Query {
55
55
  interface Rpc {
56
56
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
57
57
  }
58
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
- export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
58
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
60
60
  [K in keyof T]?: DeepPartial<T[K]>;
61
61
  } : Partial<T>;
62
62
  export {};
@@ -14,28 +14,28 @@ export interface MsgAcceptAdminTransferResponse {
14
14
  }
15
15
  export declare const MsgInitiateAdminTransfer: {
16
16
  encode(message: MsgInitiateAdminTransfer, writer?: _m0.Writer): _m0.Writer;
17
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgInitiateAdminTransfer;
17
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInitiateAdminTransfer;
18
18
  fromJSON(object: any): MsgInitiateAdminTransfer;
19
19
  toJSON(message: MsgInitiateAdminTransfer): unknown;
20
20
  fromPartial(object: DeepPartial<MsgInitiateAdminTransfer>): MsgInitiateAdminTransfer;
21
21
  };
22
22
  export declare const MsgInitiateAdminTransferResponse: {
23
23
  encode(_: MsgInitiateAdminTransferResponse, writer?: _m0.Writer): _m0.Writer;
24
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgInitiateAdminTransferResponse;
24
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgInitiateAdminTransferResponse;
25
25
  fromJSON(_: any): MsgInitiateAdminTransferResponse;
26
26
  toJSON(_: MsgInitiateAdminTransferResponse): unknown;
27
27
  fromPartial(_: DeepPartial<MsgInitiateAdminTransferResponse>): MsgInitiateAdminTransferResponse;
28
28
  };
29
29
  export declare const MsgAcceptAdminTransfer: {
30
30
  encode(message: MsgAcceptAdminTransfer, writer?: _m0.Writer): _m0.Writer;
31
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAcceptAdminTransfer;
31
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgAcceptAdminTransfer;
32
32
  fromJSON(object: any): MsgAcceptAdminTransfer;
33
33
  toJSON(message: MsgAcceptAdminTransfer): unknown;
34
34
  fromPartial(object: DeepPartial<MsgAcceptAdminTransfer>): MsgAcceptAdminTransfer;
35
35
  };
36
36
  export declare const MsgAcceptAdminTransferResponse: {
37
37
  encode(_: MsgAcceptAdminTransferResponse, writer?: _m0.Writer): _m0.Writer;
38
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAcceptAdminTransferResponse;
38
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgAcceptAdminTransferResponse;
39
39
  fromJSON(_: any): MsgAcceptAdminTransferResponse;
40
40
  toJSON(_: MsgAcceptAdminTransferResponse): unknown;
41
41
  fromPartial(_: DeepPartial<MsgAcceptAdminTransferResponse>): MsgAcceptAdminTransferResponse;
@@ -55,8 +55,8 @@ export declare class MsgClientImpl implements Msg {
55
55
  interface Rpc {
56
56
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
57
57
  }
58
- declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
- export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
58
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
60
60
  [K in keyof T]?: DeepPartial<T[K]>;
61
61
  } : Partial<T>;
62
62
  export {};