carbon-js-sdk 0.7.4 → 0.7.5

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