carbon-js-sdk 0.2.7 → 0.2.9-dev.1

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 (908) hide show
  1. package/lib/CarbonSDK.d.ts +2 -4
  2. package/lib/CarbonSDK.js +4 -5
  3. package/lib/clients/BlockchainClient.d.ts +0 -1
  4. package/lib/clients/BlockchainClient.js +0 -1
  5. package/lib/clients/CarbonQueryClient.d.ts +0 -1
  6. package/lib/clients/CarbonQueryClient.js +0 -1
  7. package/lib/clients/ETHClient.d.ts +0 -1
  8. package/lib/clients/ETHClient.js +0 -1
  9. package/lib/clients/HydrogenClient.d.ts +0 -1
  10. package/lib/clients/HydrogenClient.js +1 -3
  11. package/lib/clients/InsightsQueryClient.d.ts +0 -1
  12. package/lib/clients/InsightsQueryClient.js +0 -1
  13. package/lib/clients/N3Client.d.ts +0 -1
  14. package/lib/clients/N3Client.js +0 -1
  15. package/lib/clients/NEOClient.d.ts +0 -1
  16. package/lib/clients/NEOClient.js +42 -43
  17. package/lib/clients/TokenClient.d.ts +0 -1
  18. package/lib/clients/TokenClient.js +0 -1
  19. package/lib/clients/ZILClient.d.ts +0 -1
  20. package/lib/clients/ZILClient.js +0 -1
  21. package/lib/clients/index.d.ts +0 -1
  22. package/lib/clients/index.js +0 -1
  23. package/lib/codec/adl/genesis.d.ts +0 -1
  24. package/lib/codec/adl/genesis.js +0 -1
  25. package/lib/codec/adl/query.d.ts +0 -1
  26. package/lib/codec/adl/query.js +0 -1
  27. package/lib/codec/adl/tx.d.ts +0 -1
  28. package/lib/codec/adl/tx.js +0 -1
  29. package/lib/codec/bank/event.d.ts +0 -1
  30. package/lib/codec/bank/event.js +0 -1
  31. package/lib/codec/bank/genesis.d.ts +0 -1
  32. package/lib/codec/bank/genesis.js +0 -1
  33. package/lib/codec/bank/query.d.ts +0 -1
  34. package/lib/codec/bank/query.js +0 -1
  35. package/lib/codec/bank/tx.d.ts +0 -1
  36. package/lib/codec/bank/tx.js +0 -1
  37. package/lib/codec/book/book.d.ts +0 -1
  38. package/lib/codec/book/book.js +0 -1
  39. package/lib/codec/book/event.d.ts +0 -1
  40. package/lib/codec/book/event.js +0 -1
  41. package/lib/codec/book/genesis.d.ts +1 -2
  42. package/lib/codec/book/genesis.js +1 -2
  43. package/lib/codec/book/query.d.ts +1 -2
  44. package/lib/codec/book/query.js +1 -2
  45. package/lib/codec/book/tx.d.ts +0 -1
  46. package/lib/codec/book/tx.js +0 -1
  47. package/lib/codec/broker/amm.d.ts +0 -1
  48. package/lib/codec/broker/amm.js +0 -1
  49. package/lib/codec/broker/candlestick.d.ts +0 -1
  50. package/lib/codec/broker/candlestick.js +0 -1
  51. package/lib/codec/broker/event.d.ts +0 -1
  52. package/lib/codec/broker/event.js +0 -1
  53. package/lib/codec/broker/genesis.d.ts +1 -2
  54. package/lib/codec/broker/genesis.js +1 -2
  55. package/lib/codec/broker/incoming_liquidations.d.ts +0 -1
  56. package/lib/codec/broker/incoming_liquidations.js +0 -1
  57. package/lib/codec/broker/incoming_pool_swap.d.ts +0 -1
  58. package/lib/codec/broker/incoming_pool_swap.js +0 -1
  59. package/lib/codec/broker/pagination.d.ts +0 -1
  60. package/lib/codec/broker/pagination.js +0 -1
  61. package/lib/codec/broker/query.d.ts +3 -4
  62. package/lib/codec/broker/query.js +3 -4
  63. package/lib/codec/broker/tx.d.ts +0 -1
  64. package/lib/codec/broker/tx.js +0 -1
  65. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -2
  66. package/lib/codec/btcx/denom_cross_chain_info.js +1 -2
  67. package/lib/codec/btcx/denom_info.d.ts +0 -1
  68. package/lib/codec/btcx/denom_info.js +0 -1
  69. package/lib/codec/btcx/export.d.ts +0 -1
  70. package/lib/codec/btcx/export.js +0 -1
  71. package/lib/codec/btcx/genesis.d.ts +0 -1
  72. package/lib/codec/btcx/genesis.js +0 -1
  73. package/lib/codec/btcx/query.d.ts +1 -2
  74. package/lib/codec/btcx/query.js +1 -2
  75. package/lib/codec/btcx/tx.d.ts +0 -1
  76. package/lib/codec/btcx/tx.js +0 -1
  77. package/lib/codec/ccm/ccm.d.ts +0 -1
  78. package/lib/codec/ccm/ccm.js +0 -1
  79. package/lib/codec/ccm/export.d.ts +0 -1
  80. package/lib/codec/ccm/export.js +0 -1
  81. package/lib/codec/ccm/genesis.d.ts +1 -2
  82. package/lib/codec/ccm/genesis.js +1 -2
  83. package/lib/codec/ccm/query.d.ts +0 -1
  84. package/lib/codec/ccm/query.js +0 -1
  85. package/lib/codec/ccm/tx.d.ts +0 -1
  86. package/lib/codec/ccm/tx.js +0 -1
  87. package/lib/codec/cdp/asset_params.d.ts +24 -1
  88. package/lib/codec/cdp/asset_params.js +158 -2
  89. package/lib/codec/cdp/debt_info.d.ts +4 -3
  90. package/lib/codec/cdp/debt_info.js +51 -23
  91. package/lib/codec/cdp/event.d.ts +226 -23
  92. package/lib/codec/cdp/event.js +1414 -81
  93. package/lib/codec/cdp/genesis.d.ts +57 -5
  94. package/lib/codec/cdp/genesis.js +417 -23
  95. package/lib/codec/cdp/params.d.ts +7 -5
  96. package/lib/codec/cdp/params.js +50 -6
  97. package/lib/codec/cdp/query.d.ts +191 -96
  98. package/lib/codec/cdp/query.js +676 -239
  99. package/lib/codec/cdp/rate_strategy_params.d.ts +0 -1
  100. package/lib/codec/cdp/rate_strategy_params.js +0 -1
  101. package/lib/codec/cdp/stable_coin_debt_info.d.ts +23 -0
  102. package/lib/codec/cdp/stable_coin_debt_info.js +157 -0
  103. package/lib/codec/cdp/stablecoin_debt_info.d.ts +23 -0
  104. package/lib/codec/cdp/stablecoin_debt_info.js +157 -0
  105. package/lib/codec/cdp/tx.d.ts +466 -97
  106. package/lib/codec/cdp/tx.js +1961 -182
  107. package/lib/codec/cdp/vault.d.ts +0 -1
  108. package/lib/codec/cdp/vault.js +0 -1
  109. package/lib/codec/coin/bridge.d.ts +0 -1
  110. package/lib/codec/coin/bridge.js +0 -1
  111. package/lib/codec/coin/event.d.ts +1 -2
  112. package/lib/codec/coin/event.js +1 -2
  113. package/lib/codec/coin/genesis.d.ts +2 -3
  114. package/lib/codec/coin/genesis.js +2 -3
  115. package/lib/codec/coin/proposal.d.ts +1 -2
  116. package/lib/codec/coin/proposal.js +1 -2
  117. package/lib/codec/coin/query.d.ts +2 -6
  118. package/lib/codec/coin/query.js +2 -9
  119. package/lib/codec/coin/token.d.ts +11 -1
  120. package/lib/codec/coin/token.js +65 -2
  121. package/lib/codec/coin/tx.d.ts +1 -2
  122. package/lib/codec/coin/tx.js +1 -2
  123. package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +0 -1
  124. package/lib/codec/cosmos/auth/v1beta1/auth.js +0 -1
  125. package/lib/codec/cosmos/auth/v1beta1/export.d.ts +0 -1
  126. package/lib/codec/cosmos/auth/v1beta1/export.js +0 -1
  127. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -2
  128. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -2
  129. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -3
  130. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -3
  131. package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +0 -1
  132. package/lib/codec/cosmos/authz/v1beta1/authz.js +0 -1
  133. package/lib/codec/cosmos/authz/v1beta1/event.d.ts +0 -1
  134. package/lib/codec/cosmos/authz/v1beta1/event.js +0 -1
  135. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +0 -1
  136. package/lib/codec/cosmos/authz/v1beta1/genesis.js +0 -1
  137. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -3
  138. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -3
  139. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -2
  140. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -2
  141. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -2
  142. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -2
  143. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -2
  144. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -2
  145. package/lib/codec/cosmos/bank/v1beta1/export.d.ts +0 -1
  146. package/lib/codec/cosmos/bank/v1beta1/export.js +0 -1
  147. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -3
  148. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -3
  149. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -4
  150. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -4
  151. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -3
  152. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -3
  153. package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +0 -1
  154. package/lib/codec/cosmos/base/abci/v1beta1/abci.js +0 -1
  155. package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +0 -1
  156. package/lib/codec/cosmos/base/kv/v1beta1/kv.js +0 -1
  157. package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +0 -1
  158. package/lib/codec/cosmos/base/query/v1beta1/pagination.js +0 -1
  159. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +0 -1
  160. package/lib/codec/cosmos/base/reflection/v1beta1/reflection.js +0 -1
  161. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
  162. package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.js +0 -1
  163. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +0 -1
  164. package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +0 -1
  165. package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +0 -1
  166. package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +0 -1
  167. package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +0 -1
  168. package/lib/codec/cosmos/base/store/v1beta1/listening.js +0 -1
  169. package/lib/codec/cosmos/base/store/v1beta1/snapshot.d.ts +0 -1
  170. package/lib/codec/cosmos/base/store/v1beta1/snapshot.js +0 -1
  171. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -2
  172. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -2
  173. package/lib/codec/cosmos/base/v1beta1/coin.d.ts +0 -1
  174. package/lib/codec/cosmos/base/v1beta1/coin.js +0 -1
  175. package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +0 -1
  176. package/lib/codec/cosmos/capability/v1beta1/capability.js +0 -1
  177. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -2
  178. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -2
  179. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -2
  180. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -2
  181. package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +0 -1
  182. package/lib/codec/cosmos/crisis/v1beta1/tx.js +0 -1
  183. package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +0 -1
  184. package/lib/codec/cosmos/crypto/ed25519/keys.js +0 -1
  185. package/lib/codec/cosmos/crypto/multisig/keys.d.ts +0 -1
  186. package/lib/codec/cosmos/crypto/multisig/keys.js +0 -1
  187. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -1
  188. package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.js +0 -1
  189. package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +0 -1
  190. package/lib/codec/cosmos/crypto/secp256k1/keys.js +0 -1
  191. package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +0 -1
  192. package/lib/codec/cosmos/crypto/secp256r1/keys.js +0 -1
  193. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -2
  194. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -2
  195. package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +0 -1
  196. package/lib/codec/cosmos/distribution/v1beta1/export.js +0 -1
  197. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -3
  198. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -3
  199. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -4
  200. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -4
  201. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -2
  202. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -2
  203. package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +0 -1
  204. package/lib/codec/cosmos/evidence/v1beta1/evidence.js +0 -1
  205. package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +0 -1
  206. package/lib/codec/cosmos/evidence/v1beta1/genesis.js +0 -1
  207. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -2
  208. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -2
  209. package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +0 -1
  210. package/lib/codec/cosmos/evidence/v1beta1/tx.js +0 -1
  211. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -2
  212. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -2
  213. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -2
  214. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -2
  215. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -3
  216. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -3
  217. package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +0 -1
  218. package/lib/codec/cosmos/feegrant/v1beta1/tx.js +0 -1
  219. package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +0 -1
  220. package/lib/codec/cosmos/genutil/v1beta1/genesis.js +0 -1
  221. package/lib/codec/cosmos/gov/v1beta1/export.d.ts +0 -1
  222. package/lib/codec/cosmos/gov/v1beta1/export.js +0 -1
  223. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -2
  224. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -2
  225. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -2
  226. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -2
  227. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -3
  228. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -3
  229. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -3
  230. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -3
  231. package/lib/codec/cosmos/mint/v1beta1/export.d.ts +0 -1
  232. package/lib/codec/cosmos/mint/v1beta1/export.js +0 -1
  233. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -2
  234. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -2
  235. package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +0 -1
  236. package/lib/codec/cosmos/mint/v1beta1/mint.js +0 -1
  237. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -2
  238. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -2
  239. package/lib/codec/cosmos/params/v1beta1/export.d.ts +0 -1
  240. package/lib/codec/cosmos/params/v1beta1/export.js +0 -1
  241. package/lib/codec/cosmos/params/v1beta1/params.d.ts +0 -1
  242. package/lib/codec/cosmos/params/v1beta1/params.js +0 -1
  243. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -2
  244. package/lib/codec/cosmos/params/v1beta1/query.js +1 -2
  245. package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +0 -1
  246. package/lib/codec/cosmos/slashing/v1beta1/export.js +0 -1
  247. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -2
  248. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -2
  249. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -3
  250. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -3
  251. package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +0 -1
  252. package/lib/codec/cosmos/slashing/v1beta1/slashing.js +0 -1
  253. package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +0 -1
  254. package/lib/codec/cosmos/slashing/v1beta1/tx.js +0 -1
  255. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -2
  256. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -2
  257. package/lib/codec/cosmos/staking/v1beta1/export.d.ts +0 -1
  258. package/lib/codec/cosmos/staking/v1beta1/export.js +0 -1
  259. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -2
  260. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -2
  261. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -3
  262. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -3
  263. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -2
  264. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -2
  265. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -3
  266. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -3
  267. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -2
  268. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -2
  269. package/lib/codec/cosmos/tx/v1beta1/export.d.ts +0 -1
  270. package/lib/codec/cosmos/tx/v1beta1/export.js +0 -1
  271. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -4
  272. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -4
  273. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -4
  274. package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -4
  275. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -2
  276. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -2
  277. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -1
  278. package/lib/codec/cosmos/upgrade/v1beta1/upgrade.js +0 -1
  279. package/lib/codec/cosmos/vesting/v1beta1/export.d.ts +0 -1
  280. package/lib/codec/cosmos/vesting/v1beta1/export.js +0 -1
  281. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -2
  282. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -2
  283. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -3
  284. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -3
  285. package/lib/codec/cosmos-models.d.ts +0 -1
  286. package/lib/codec/cosmos-models.js +0 -1
  287. package/lib/codec/crisis/genesis.d.ts +0 -1
  288. package/lib/codec/crisis/genesis.js +0 -1
  289. package/lib/codec/crisis/query.d.ts +0 -1
  290. package/lib/codec/crisis/query.js +0 -1
  291. package/lib/codec/crisis/tx.d.ts +0 -1
  292. package/lib/codec/crisis/tx.js +0 -1
  293. package/lib/codec/fee/event.d.ts +0 -1
  294. package/lib/codec/fee/event.js +0 -1
  295. package/lib/codec/fee/fee.d.ts +0 -1
  296. package/lib/codec/fee/fee.js +0 -1
  297. package/lib/codec/fee/genesis.d.ts +1 -2
  298. package/lib/codec/fee/genesis.js +1 -2
  299. package/lib/codec/fee/proposal.d.ts +1 -2
  300. package/lib/codec/fee/proposal.js +1 -2
  301. package/lib/codec/fee/query.d.ts +1 -2
  302. package/lib/codec/fee/query.js +1 -2
  303. package/lib/codec/fee/tx.d.ts +1 -2
  304. package/lib/codec/fee/tx.js +1 -2
  305. package/lib/codec/google/protobuf/any.d.ts +0 -1
  306. package/lib/codec/google/protobuf/any.js +0 -1
  307. package/lib/codec/google/protobuf/duration.d.ts +0 -1
  308. package/lib/codec/google/protobuf/duration.js +0 -1
  309. package/lib/codec/google/protobuf/timestamp.d.ts +0 -1
  310. package/lib/codec/google/protobuf/timestamp.js +0 -1
  311. package/lib/codec/google/protobuf/wrappers.d.ts +0 -1
  312. package/lib/codec/google/protobuf/wrappers.js +0 -1
  313. package/lib/codec/headersync/consensus_peers.d.ts +0 -1
  314. package/lib/codec/headersync/consensus_peers.js +0 -1
  315. package/lib/codec/headersync/export.d.ts +0 -1
  316. package/lib/codec/headersync/export.js +0 -1
  317. package/lib/codec/headersync/genesis.d.ts +1 -2
  318. package/lib/codec/headersync/genesis.js +1 -2
  319. package/lib/codec/headersync/query.d.ts +1 -2
  320. package/lib/codec/headersync/query.js +1 -2
  321. package/lib/codec/headersync/tx.d.ts +0 -1
  322. package/lib/codec/headersync/tx.js +0 -1
  323. package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +0 -1
  324. package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +0 -1
  325. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +0 -1
  326. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.js +0 -1
  327. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +0 -1
  328. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +0 -1
  329. package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +0 -1
  330. package/lib/codec/ibc/applications/interchain_accounts/host/export.js +0 -1
  331. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +0 -1
  332. package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.js +0 -1
  333. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +0 -1
  334. package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.js +0 -1
  335. package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +0 -1
  336. package/lib/codec/ibc/applications/interchain_accounts/v1/account.js +0 -1
  337. package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +0 -1
  338. package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +0 -1
  339. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -1
  340. package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -1
  341. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +0 -1
  342. package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.js +0 -1
  343. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +0 -1
  344. package/lib/codec/ibc/applications/interchain_accounts/v1/packet.js +0 -1
  345. package/lib/codec/ibc/applications/transfer/v1/export.d.ts +0 -1
  346. package/lib/codec/ibc/applications/transfer/v1/export.js +0 -1
  347. package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +0 -1
  348. package/lib/codec/ibc/applications/transfer/v1/genesis.js +0 -1
  349. package/lib/codec/ibc/applications/transfer/v1/query.d.ts +0 -1
  350. package/lib/codec/ibc/applications/transfer/v1/query.js +0 -1
  351. package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +0 -1
  352. package/lib/codec/ibc/applications/transfer/v1/transfer.js +0 -1
  353. package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +0 -1
  354. package/lib/codec/ibc/applications/transfer/v1/tx.js +0 -1
  355. package/lib/codec/ibc/applications/transfer/v2/export.d.ts +0 -1
  356. package/lib/codec/ibc/applications/transfer/v2/export.js +0 -1
  357. package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +0 -1
  358. package/lib/codec/ibc/applications/transfer/v2/packet.js +0 -1
  359. package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -1
  360. package/lib/codec/ibc/core/channel/v1/channel.js +0 -1
  361. package/lib/codec/ibc/core/channel/v1/export.d.ts +0 -1
  362. package/lib/codec/ibc/core/channel/v1/export.js +0 -1
  363. package/lib/codec/ibc/core/channel/v1/genesis.d.ts +0 -1
  364. package/lib/codec/ibc/core/channel/v1/genesis.js +0 -1
  365. package/lib/codec/ibc/core/channel/v1/query.d.ts +0 -1
  366. package/lib/codec/ibc/core/channel/v1/query.js +0 -1
  367. package/lib/codec/ibc/core/channel/v1/tx.d.ts +0 -1
  368. package/lib/codec/ibc/core/channel/v1/tx.js +0 -1
  369. package/lib/codec/ibc/core/client/v1/client.d.ts +0 -1
  370. package/lib/codec/ibc/core/client/v1/client.js +0 -1
  371. package/lib/codec/ibc/core/client/v1/export.d.ts +0 -1
  372. package/lib/codec/ibc/core/client/v1/export.js +0 -1
  373. package/lib/codec/ibc/core/client/v1/genesis.d.ts +0 -1
  374. package/lib/codec/ibc/core/client/v1/genesis.js +0 -1
  375. package/lib/codec/ibc/core/client/v1/query.d.ts +0 -1
  376. package/lib/codec/ibc/core/client/v1/query.js +0 -1
  377. package/lib/codec/ibc/core/client/v1/tx.d.ts +0 -1
  378. package/lib/codec/ibc/core/client/v1/tx.js +0 -1
  379. package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +0 -1
  380. package/lib/codec/ibc/core/commitment/v1/commitment.js +0 -1
  381. package/lib/codec/ibc/core/commitment/v1/export.d.ts +0 -1
  382. package/lib/codec/ibc/core/commitment/v1/export.js +0 -1
  383. package/lib/codec/ibc/core/connection/v1/connection.d.ts +0 -1
  384. package/lib/codec/ibc/core/connection/v1/connection.js +0 -1
  385. package/lib/codec/ibc/core/connection/v1/export.d.ts +0 -1
  386. package/lib/codec/ibc/core/connection/v1/export.js +0 -1
  387. package/lib/codec/ibc/core/connection/v1/genesis.d.ts +0 -1
  388. package/lib/codec/ibc/core/connection/v1/genesis.js +0 -1
  389. package/lib/codec/ibc/core/connection/v1/query.d.ts +0 -1
  390. package/lib/codec/ibc/core/connection/v1/query.js +0 -1
  391. package/lib/codec/ibc/core/connection/v1/tx.d.ts +0 -1
  392. package/lib/codec/ibc/core/connection/v1/tx.js +0 -1
  393. package/lib/codec/ibc/core/types/v1/genesis.d.ts +0 -1
  394. package/lib/codec/ibc/core/types/v1/genesis.js +0 -1
  395. package/lib/codec/ibc/lightclients/localhost/v1/export.d.ts +0 -1
  396. package/lib/codec/ibc/lightclients/localhost/v1/export.js +0 -1
  397. package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +0 -1
  398. package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +0 -1
  399. package/lib/codec/ibc/lightclients/solomachine/v1/export.d.ts +0 -1
  400. package/lib/codec/ibc/lightclients/solomachine/v1/export.js +0 -1
  401. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +0 -1
  402. package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +0 -1
  403. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +0 -1
  404. package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.js +0 -1
  405. package/lib/codec/ibc/lightclients/tendermint/v1/export.d.ts +0 -1
  406. package/lib/codec/ibc/lightclients/tendermint/v1/export.js +0 -1
  407. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +0 -1
  408. package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +0 -1
  409. package/lib/codec/ibc-models.d.ts +0 -1
  410. package/lib/codec/ibc-models.js +0 -1
  411. package/lib/codec/index.d.ts +53 -23
  412. package/lib/codec/index.js +502 -385
  413. package/lib/codec/inflation/genesis.d.ts +1 -2
  414. package/lib/codec/inflation/genesis.js +1 -2
  415. package/lib/codec/inflation/inflation.d.ts +0 -1
  416. package/lib/codec/inflation/inflation.js +0 -1
  417. package/lib/codec/inflation/query.d.ts +1 -2
  418. package/lib/codec/inflation/query.js +1 -2
  419. package/lib/codec/inflation/tx.d.ts +0 -1
  420. package/lib/codec/inflation/tx.js +0 -1
  421. package/lib/codec/insurance/event.d.ts +0 -1
  422. package/lib/codec/insurance/event.js +0 -1
  423. package/lib/codec/insurance/fund.d.ts +0 -1
  424. package/lib/codec/insurance/fund.js +0 -1
  425. package/lib/codec/insurance/genesis.d.ts +1 -2
  426. package/lib/codec/insurance/genesis.js +1 -2
  427. package/lib/codec/insurance/query.d.ts +0 -1
  428. package/lib/codec/insurance/query.js +0 -1
  429. package/lib/codec/insurance/tx.d.ts +0 -1
  430. package/lib/codec/insurance/tx.js +0 -1
  431. package/lib/codec/leverage/event.d.ts +0 -1
  432. package/lib/codec/leverage/event.js +0 -1
  433. package/lib/codec/leverage/genesis.d.ts +1 -2
  434. package/lib/codec/leverage/genesis.js +1 -2
  435. package/lib/codec/leverage/leverage.d.ts +0 -1
  436. package/lib/codec/leverage/leverage.js +0 -1
  437. package/lib/codec/leverage/query.d.ts +1 -2
  438. package/lib/codec/leverage/query.js +1 -2
  439. package/lib/codec/leverage/tx.d.ts +0 -1
  440. package/lib/codec/leverage/tx.js +0 -1
  441. package/lib/codec/liquidation/genesis.d.ts +1 -2
  442. package/lib/codec/liquidation/genesis.js +1 -2
  443. package/lib/codec/liquidation/liquidation.d.ts +0 -1
  444. package/lib/codec/liquidation/liquidation.js +0 -1
  445. package/lib/codec/liquidation/outstanding_position.d.ts +0 -1
  446. package/lib/codec/liquidation/outstanding_position.js +0 -1
  447. package/lib/codec/liquidation/query.d.ts +1 -2
  448. package/lib/codec/liquidation/query.js +1 -2
  449. package/lib/codec/liquidation/quote_changes.d.ts +1 -2
  450. package/lib/codec/liquidation/quote_changes.js +1 -2
  451. package/lib/codec/liquidation/tx.d.ts +0 -1
  452. package/lib/codec/liquidation/tx.js +0 -1
  453. package/lib/codec/liquiditypool/event.d.ts +2 -3
  454. package/lib/codec/liquiditypool/event.js +2 -3
  455. package/lib/codec/liquiditypool/genesis.d.ts +2 -3
  456. package/lib/codec/liquiditypool/genesis.js +2 -3
  457. package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -1
  458. package/lib/codec/liquiditypool/liquiditypool.js +0 -1
  459. package/lib/codec/liquiditypool/proposal.d.ts +1 -2
  460. package/lib/codec/liquiditypool/proposal.js +1 -2
  461. package/lib/codec/liquiditypool/query.d.ts +2 -3
  462. package/lib/codec/liquiditypool/query.js +2 -3
  463. package/lib/codec/liquiditypool/reward.d.ts +0 -1
  464. package/lib/codec/liquiditypool/reward.js +0 -1
  465. package/lib/codec/liquiditypool/tx.d.ts +1 -2
  466. package/lib/codec/liquiditypool/tx.js +1 -2
  467. package/lib/codec/lockproxy/event.d.ts +0 -1
  468. package/lib/codec/lockproxy/event.js +0 -1
  469. package/lib/codec/lockproxy/export.d.ts +0 -1
  470. package/lib/codec/lockproxy/export.js +0 -1
  471. package/lib/codec/lockproxy/genesis.d.ts +1 -2
  472. package/lib/codec/lockproxy/genesis.js +1 -2
  473. package/lib/codec/lockproxy/lockproxy.d.ts +0 -1
  474. package/lib/codec/lockproxy/lockproxy.js +0 -1
  475. package/lib/codec/lockproxy/query.d.ts +1 -2
  476. package/lib/codec/lockproxy/query.js +1 -2
  477. package/lib/codec/lockproxy/tx.d.ts +0 -1
  478. package/lib/codec/lockproxy/tx.js +0 -1
  479. package/lib/codec/market/event.d.ts +1 -2
  480. package/lib/codec/market/event.js +1 -2
  481. package/lib/codec/market/genesis.d.ts +2 -2
  482. package/lib/codec/market/genesis.js +20 -3
  483. package/lib/codec/market/legacy.d.ts +0 -1
  484. package/lib/codec/market/legacy.js +0 -1
  485. package/lib/codec/market/market.d.ts +0 -1
  486. package/lib/codec/market/market.js +0 -1
  487. package/lib/codec/market/proposal.d.ts +1 -2
  488. package/lib/codec/market/proposal.js +1 -2
  489. package/lib/codec/market/query.d.ts +1 -2
  490. package/lib/codec/market/query.js +1 -2
  491. package/lib/codec/market/tx.d.ts +1 -2
  492. package/lib/codec/market/tx.js +1 -2
  493. package/lib/codec/marketstats/genesis.d.ts +1 -2
  494. package/lib/codec/marketstats/genesis.js +1 -2
  495. package/lib/codec/marketstats/marketstats.d.ts +0 -1
  496. package/lib/codec/marketstats/marketstats.js +0 -1
  497. package/lib/codec/marketstats/params.d.ts +0 -1
  498. package/lib/codec/marketstats/params.js +0 -1
  499. package/lib/codec/marketstats/query.d.ts +2 -3
  500. package/lib/codec/marketstats/query.js +2 -3
  501. package/lib/codec/marketstats/tx.d.ts +0 -1
  502. package/lib/codec/marketstats/tx.js +0 -1
  503. package/lib/codec/misc/block.d.ts +0 -1
  504. package/lib/codec/misc/block.js +0 -1
  505. package/lib/codec/misc/message.d.ts +1 -2
  506. package/lib/codec/misc/message.js +1 -2
  507. package/lib/codec/misc/message_type.d.ts +0 -1
  508. package/lib/codec/misc/message_type.js +0 -1
  509. package/lib/codec/misc/query.d.ts +3 -4
  510. package/lib/codec/misc/query.js +3 -4
  511. package/lib/codec/misc/trade.d.ts +1 -1
  512. package/lib/codec/misc/trade.js +17 -1
  513. package/lib/codec/misc/transaction.d.ts +1 -2
  514. package/lib/codec/misc/transaction.js +1 -2
  515. package/lib/codec/oracle/event.d.ts +1 -2
  516. package/lib/codec/oracle/event.js +1 -2
  517. package/lib/codec/oracle/genesis.d.ts +1 -2
  518. package/lib/codec/oracle/genesis.js +1 -2
  519. package/lib/codec/oracle/oracle.d.ts +0 -1
  520. package/lib/codec/oracle/oracle.js +0 -1
  521. package/lib/codec/oracle/proposal.d.ts +1 -2
  522. package/lib/codec/oracle/proposal.js +1 -2
  523. package/lib/codec/oracle/query.d.ts +2 -3
  524. package/lib/codec/oracle/query.js +2 -3
  525. package/lib/codec/oracle/slashing.d.ts +0 -1
  526. package/lib/codec/oracle/slashing.js +0 -1
  527. package/lib/codec/oracle/tx.d.ts +0 -1
  528. package/lib/codec/oracle/tx.js +0 -1
  529. package/lib/codec/order/event.d.ts +1 -2
  530. package/lib/codec/order/event.js +1 -2
  531. package/lib/codec/order/genesis.d.ts +1 -2
  532. package/lib/codec/order/genesis.js +1 -2
  533. package/lib/codec/order/order.d.ts +0 -1
  534. package/lib/codec/order/order.js +0 -1
  535. package/lib/codec/order/query.d.ts +1 -2
  536. package/lib/codec/order/query.js +1 -2
  537. package/lib/codec/order/tx.d.ts +0 -1
  538. package/lib/codec/order/tx.js +0 -1
  539. package/lib/codec/polynetwork-models.d.ts +0 -1
  540. package/lib/codec/polynetwork-models.js +0 -1
  541. package/lib/codec/position/event.d.ts +1 -2
  542. package/lib/codec/position/event.js +1 -2
  543. package/lib/codec/position/genesis.d.ts +1 -2
  544. package/lib/codec/position/genesis.js +1 -2
  545. package/lib/codec/position/position.d.ts +0 -1
  546. package/lib/codec/position/position.js +0 -1
  547. package/lib/codec/position/query.d.ts +1 -2
  548. package/lib/codec/position/query.js +1 -2
  549. package/lib/codec/position/tx.d.ts +0 -1
  550. package/lib/codec/position/tx.js +0 -1
  551. package/lib/codec/pricing/event.d.ts +11 -2
  552. package/lib/codec/pricing/event.js +52 -3
  553. package/lib/codec/pricing/genesis.d.ts +2 -2
  554. package/lib/codec/pricing/genesis.js +20 -6
  555. package/lib/codec/pricing/pricing.d.ts +13 -1
  556. package/lib/codec/pricing/pricing.js +83 -2
  557. package/lib/codec/pricing/proposal.d.ts +0 -1
  558. package/lib/codec/pricing/proposal.js +0 -1
  559. package/lib/codec/pricing/query.d.ts +1 -2
  560. package/lib/codec/pricing/query.js +1 -2
  561. package/lib/codec/pricing/tx.d.ts +0 -1
  562. package/lib/codec/pricing/tx.js +0 -1
  563. package/lib/codec/profile/event.d.ts +1 -2
  564. package/lib/codec/profile/event.js +1 -2
  565. package/lib/codec/profile/genesis.d.ts +1 -2
  566. package/lib/codec/profile/genesis.js +1 -2
  567. package/lib/codec/profile/profile.d.ts +0 -1
  568. package/lib/codec/profile/profile.js +0 -1
  569. package/lib/codec/profile/query.d.ts +1 -2
  570. package/lib/codec/profile/query.js +1 -2
  571. package/lib/codec/profile/tx.d.ts +0 -1
  572. package/lib/codec/profile/tx.js +0 -1
  573. package/lib/codec/proofs.d.ts +0 -1
  574. package/lib/codec/proofs.js +0 -1
  575. package/lib/codec/query/pagination.d.ts +0 -1
  576. package/lib/codec/query/pagination.js +0 -1
  577. package/lib/codec/subaccount/genesis.d.ts +1 -2
  578. package/lib/codec/subaccount/genesis.js +1 -2
  579. package/lib/codec/subaccount/query.d.ts +1 -2
  580. package/lib/codec/subaccount/query.js +1 -2
  581. package/lib/codec/subaccount/subaccount.d.ts +0 -1
  582. package/lib/codec/subaccount/subaccount.js +0 -1
  583. package/lib/codec/subaccount/tx.d.ts +0 -1
  584. package/lib/codec/subaccount/tx.js +0 -1
  585. package/lib/codec/tendermint/abci/types.d.ts +4 -5
  586. package/lib/codec/tendermint/abci/types.js +4 -5
  587. package/lib/codec/tendermint/crypto/keys.d.ts +0 -1
  588. package/lib/codec/tendermint/crypto/keys.js +0 -1
  589. package/lib/codec/tendermint/crypto/proof.d.ts +0 -1
  590. package/lib/codec/tendermint/crypto/proof.js +0 -1
  591. package/lib/codec/tendermint/libs/bits/types.d.ts +0 -1
  592. package/lib/codec/tendermint/libs/bits/types.js +0 -1
  593. package/lib/codec/tendermint/p2p/types.d.ts +0 -1
  594. package/lib/codec/tendermint/p2p/types.js +0 -1
  595. package/lib/codec/tendermint/types/block.d.ts +2 -3
  596. package/lib/codec/tendermint/types/block.js +2 -3
  597. package/lib/codec/tendermint/types/evidence.d.ts +2 -3
  598. package/lib/codec/tendermint/types/evidence.js +2 -3
  599. package/lib/codec/tendermint/types/params.d.ts +0 -1
  600. package/lib/codec/tendermint/types/params.js +0 -1
  601. package/lib/codec/tendermint/types/types.d.ts +3 -4
  602. package/lib/codec/tendermint/types/types.js +3 -4
  603. package/lib/codec/tendermint/types/validator.d.ts +1 -2
  604. package/lib/codec/tendermint/types/validator.js +1 -2
  605. package/lib/codec/tendermint/version/types.d.ts +0 -1
  606. package/lib/codec/tendermint/version/types.js +0 -1
  607. package/lib/constant/address.d.ts +0 -1
  608. package/lib/constant/address.js +0 -1
  609. package/lib/constant/generic.d.ts +0 -1
  610. package/lib/constant/generic.js +0 -1
  611. package/lib/constant/ibc.d.ts +0 -1
  612. package/lib/constant/ibc.js +0 -1
  613. package/lib/constant/index.d.ts +0 -1
  614. package/lib/constant/index.js +0 -1
  615. package/lib/constant/network.d.ts +0 -1
  616. package/lib/constant/network.js +0 -1
  617. package/lib/constant/node.d.ts +0 -1
  618. package/lib/constant/node.js +0 -1
  619. package/lib/constant/token.d.ts +0 -1
  620. package/lib/constant/token.js +0 -1
  621. package/lib/constant/walletProvider.d.ts +0 -1
  622. package/lib/constant/walletProvider.js +0 -1
  623. package/lib/eth/abis/index.d.ts +0 -1
  624. package/lib/eth/abis/index.js +0 -1
  625. package/lib/eth/index.d.ts +0 -1
  626. package/lib/eth/index.js +0 -1
  627. package/lib/hydrogen/feeQuote.d.ts +5 -5
  628. package/lib/hydrogen/feeQuote.js +0 -1
  629. package/lib/hydrogen/index.d.ts +0 -1
  630. package/lib/hydrogen/index.js +0 -1
  631. package/lib/hydrogen/relays.d.ts +0 -1
  632. package/lib/hydrogen/relays.js +0 -1
  633. package/lib/hydrogen/stats.d.ts +0 -1
  634. package/lib/hydrogen/stats.js +0 -1
  635. package/lib/hydrogen/transfer.d.ts +0 -1
  636. package/lib/hydrogen/transfer.js +0 -1
  637. package/lib/index.d.ts +0 -1
  638. package/lib/index.js +0 -1
  639. package/lib/insights/balance.d.ts +0 -1
  640. package/lib/insights/balance.js +0 -1
  641. package/lib/insights/block.d.ts +0 -1
  642. package/lib/insights/block.js +0 -1
  643. package/lib/insights/chain.d.ts +0 -1
  644. package/lib/insights/chain.js +0 -1
  645. package/lib/insights/common.d.ts +0 -1
  646. package/lib/insights/common.js +0 -1
  647. package/lib/insights/competition.d.ts +0 -1
  648. package/lib/insights/competition.js +0 -1
  649. package/lib/insights/funding.d.ts +0 -1
  650. package/lib/insights/funding.js +0 -1
  651. package/lib/insights/index.d.ts +0 -1
  652. package/lib/insights/index.js +0 -1
  653. package/lib/insights/market.d.ts +0 -1
  654. package/lib/insights/market.js +0 -1
  655. package/lib/insights/node.d.ts +0 -1
  656. package/lib/insights/node.js +0 -1
  657. package/lib/insights/pool.d.ts +0 -1
  658. package/lib/insights/pool.js +0 -1
  659. package/lib/insights/position.d.ts +0 -1
  660. package/lib/insights/position.js +0 -1
  661. package/lib/insights/transaction.d.ts +0 -1
  662. package/lib/insights/transaction.js +0 -1
  663. package/lib/insights/user.d.ts +0 -1
  664. package/lib/insights/user.js +0 -1
  665. package/lib/modules/admin.d.ts +53 -2
  666. package/lib/modules/admin.js +174 -43
  667. package/lib/modules/bank.d.ts +0 -1
  668. package/lib/modules/bank.js +0 -1
  669. package/lib/modules/base.d.ts +0 -1
  670. package/lib/modules/base.js +0 -1
  671. package/lib/modules/broker.d.ts +0 -1
  672. package/lib/modules/broker.js +0 -1
  673. package/lib/modules/cdp.d.ts +55 -13
  674. package/lib/modules/cdp.js +134 -21
  675. package/lib/modules/coin.d.ts +0 -1
  676. package/lib/modules/coin.js +0 -1
  677. package/lib/modules/fee.d.ts +0 -1
  678. package/lib/modules/fee.js +0 -1
  679. package/lib/modules/gov.d.ts +0 -1
  680. package/lib/modules/gov.js +0 -1
  681. package/lib/modules/ibc.d.ts +0 -1
  682. package/lib/modules/ibc.js +0 -1
  683. package/lib/modules/index.d.ts +0 -1
  684. package/lib/modules/index.js +0 -1
  685. package/lib/modules/leverage.d.ts +0 -1
  686. package/lib/modules/leverage.js +0 -1
  687. package/lib/modules/liquiditypool.d.ts +0 -1
  688. package/lib/modules/liquiditypool.js +0 -1
  689. package/lib/modules/market.d.ts +0 -1
  690. package/lib/modules/market.js +0 -1
  691. package/lib/modules/oracle.d.ts +0 -1
  692. package/lib/modules/oracle.js +0 -1
  693. package/lib/modules/order.d.ts +0 -1
  694. package/lib/modules/order.js +0 -1
  695. package/lib/modules/position.d.ts +0 -1
  696. package/lib/modules/position.js +0 -1
  697. package/lib/modules/profile.d.ts +0 -1
  698. package/lib/modules/profile.js +0 -1
  699. package/lib/modules/staking.d.ts +0 -1
  700. package/lib/modules/staking.js +0 -1
  701. package/lib/modules/subaccount.d.ts +0 -1
  702. package/lib/modules/subaccount.js +0 -1
  703. package/lib/modules/xchain.d.ts +0 -1
  704. package/lib/modules/xchain.js +0 -1
  705. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.d.ts +0 -1
  706. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +0 -1
  707. package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.d.ts +0 -1
  708. package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.js +0 -1
  709. package/lib/provider/account/EthLedgerAccount/index.d.ts +0 -1
  710. package/lib/provider/account/EthLedgerAccount/index.js +0 -1
  711. package/lib/provider/account/NeoLedgerAccount/N3Ledger/BIP44.d.ts +0 -1
  712. package/lib/provider/account/NeoLedgerAccount/N3Ledger/BIP44.js +0 -1
  713. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.d.ts +0 -1
  714. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +0 -1
  715. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.d.ts +0 -1
  716. package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +0 -1
  717. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.d.ts +0 -1
  718. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +0 -1
  719. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +0 -1
  720. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +0 -1
  721. package/lib/provider/account/NeoLedgerAccount/NeonLedger.d.ts +0 -1
  722. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +0 -1
  723. package/lib/provider/account/NeoLedgerAccount/index.d.ts +0 -1
  724. package/lib/provider/account/NeoLedgerAccount/index.js +0 -1
  725. package/lib/provider/account/index.d.ts +0 -1
  726. package/lib/provider/account/index.js +0 -1
  727. package/lib/provider/amino/AminoTypesMap.d.ts +0 -1
  728. package/lib/provider/amino/AminoTypesMap.js +0 -1
  729. package/lib/provider/amino/index.d.ts +0 -1
  730. package/lib/provider/amino/index.js +0 -1
  731. package/lib/provider/amino/types/admin.d.ts +0 -1
  732. package/lib/provider/amino/types/admin.js +48 -8
  733. package/lib/provider/amino/types/bank.d.ts +0 -1
  734. package/lib/provider/amino/types/bank.js +0 -1
  735. package/lib/provider/amino/types/broker.d.ts +0 -1
  736. package/lib/provider/amino/types/broker.js +0 -1
  737. package/lib/provider/amino/types/cdp.d.ts +0 -1
  738. package/lib/provider/amino/types/cdp.js +72 -33
  739. package/lib/provider/amino/types/coin.d.ts +0 -1
  740. package/lib/provider/amino/types/coin.js +0 -1
  741. package/lib/provider/amino/types/gov.d.ts +0 -1
  742. package/lib/provider/amino/types/gov.js +0 -1
  743. package/lib/provider/amino/types/ibc.d.ts +0 -1
  744. package/lib/provider/amino/types/ibc.js +0 -1
  745. package/lib/provider/amino/types/index.d.ts +0 -1
  746. package/lib/provider/amino/types/index.js +0 -1
  747. package/lib/provider/amino/types/leverage.d.ts +0 -1
  748. package/lib/provider/amino/types/leverage.js +0 -1
  749. package/lib/provider/amino/types/liquidityPool.d.ts +0 -1
  750. package/lib/provider/amino/types/liquidityPool.js +0 -1
  751. package/lib/provider/amino/types/market.d.ts +0 -1
  752. package/lib/provider/amino/types/market.js +0 -1
  753. package/lib/provider/amino/types/oracle.d.ts +0 -1
  754. package/lib/provider/amino/types/oracle.js +0 -1
  755. package/lib/provider/amino/types/order.d.ts +0 -1
  756. package/lib/provider/amino/types/order.js +0 -1
  757. package/lib/provider/amino/types/position.d.ts +0 -1
  758. package/lib/provider/amino/types/position.js +0 -1
  759. package/lib/provider/amino/types/profile.d.ts +0 -1
  760. package/lib/provider/amino/types/profile.js +0 -1
  761. package/lib/provider/amino/types/staking.d.ts +0 -1
  762. package/lib/provider/amino/types/staking.js +0 -1
  763. package/lib/provider/amino/types/subaccount.d.ts +0 -1
  764. package/lib/provider/amino/types/subaccount.js +0 -1
  765. package/lib/provider/amino/utils.d.ts +0 -1
  766. package/lib/provider/amino/utils.js +0 -1
  767. package/lib/provider/index.d.ts +0 -1
  768. package/lib/provider/index.js +0 -1
  769. package/lib/provider/keplr/KeplrAccount.d.ts +0 -1
  770. package/lib/provider/keplr/KeplrAccount.js +0 -1
  771. package/lib/provider/keplr/KeplrStore.d.ts +0 -1
  772. package/lib/provider/keplr/KeplrStore.js +0 -1
  773. package/lib/provider/keplr/index.d.ts +0 -1
  774. package/lib/provider/keplr/index.js +0 -1
  775. package/lib/provider/ledger/index.d.ts +0 -1
  776. package/lib/provider/ledger/index.js +0 -1
  777. package/lib/provider/ledger/ledger.d.ts +0 -1
  778. package/lib/provider/ledger/ledger.js +0 -1
  779. package/lib/provider/metamask/MetaMask.d.ts +0 -1
  780. package/lib/provider/metamask/MetaMask.js +0 -1
  781. package/lib/provider/metamask/index.d.ts +0 -1
  782. package/lib/provider/metamask/index.js +0 -1
  783. package/lib/provider/o3/O3Types.d.ts +0 -1
  784. package/lib/provider/o3/O3Types.js +0 -1
  785. package/lib/provider/o3/O3Wallet.d.ts +0 -1
  786. package/lib/provider/o3/O3Wallet.js +5 -7
  787. package/lib/provider/o3/index.d.ts +0 -1
  788. package/lib/provider/o3/index.js +0 -1
  789. package/lib/provider/sdk/SDKProvider.d.ts +0 -1
  790. package/lib/provider/sdk/SDKProvider.js +0 -1
  791. package/lib/provider/sdk/index.d.ts +0 -1
  792. package/lib/provider/sdk/index.js +0 -1
  793. package/lib/provider/zilpay/Zilpay.d.ts +0 -1
  794. package/lib/provider/zilpay/Zilpay.js +0 -1
  795. package/lib/provider/zilpay/index.d.ts +0 -1
  796. package/lib/provider/zilpay/index.js +0 -1
  797. package/lib/util/address.d.ts +0 -1
  798. package/lib/util/address.js +0 -1
  799. package/lib/util/api.d.ts +0 -1
  800. package/lib/util/api.js +0 -1
  801. package/lib/util/blockchain.d.ts +0 -1
  802. package/lib/util/blockchain.js +0 -1
  803. package/lib/util/external.d.ts +0 -1
  804. package/lib/util/external.js +0 -1
  805. package/lib/util/fetch.d.ts +0 -1
  806. package/lib/util/fetch.js +0 -1
  807. package/lib/util/generic.d.ts +0 -1
  808. package/lib/util/generic.js +0 -1
  809. package/lib/util/gov.d.ts +0 -1
  810. package/lib/util/gov.js +0 -1
  811. package/lib/util/ibc.d.ts +0 -1
  812. package/lib/util/ibc.js +0 -1
  813. package/lib/util/index.d.ts +0 -1
  814. package/lib/util/index.js +0 -1
  815. package/lib/util/ledger.d.ts +0 -1
  816. package/lib/util/ledger.js +0 -1
  817. package/lib/util/network.d.ts +0 -1
  818. package/lib/util/network.js +0 -1
  819. package/lib/util/number.d.ts +0 -1
  820. package/lib/util/number.js +0 -1
  821. package/lib/util/token.d.ts +0 -1
  822. package/lib/util/token.js +0 -1
  823. package/lib/util/transferfees.d.ts +0 -1
  824. package/lib/util/transferfees.js +0 -1
  825. package/lib/util/tx.d.ts +42 -15
  826. package/lib/util/tx.js +0 -1
  827. package/lib/util/type.d.ts +0 -1
  828. package/lib/util/type.js +0 -1
  829. package/lib/wallet/CarbonSigner.d.ts +0 -1
  830. package/lib/wallet/CarbonSigner.js +0 -1
  831. package/lib/wallet/CarbonSigningClient.d.ts +0 -1
  832. package/lib/wallet/CarbonSigningClient.js +0 -1
  833. package/lib/wallet/CarbonWallet.d.ts +0 -1
  834. package/lib/wallet/CarbonWallet.js +0 -1
  835. package/lib/wallet/index.d.ts +0 -1
  836. package/lib/wallet/index.js +0 -1
  837. package/lib/websocket/channel.d.ts +0 -1
  838. package/lib/websocket/channel.js +26 -1
  839. package/lib/websocket/connector.d.ts +0 -1
  840. package/lib/websocket/connector.js +0 -1
  841. package/lib/websocket/index.d.ts +0 -1
  842. package/lib/websocket/index.js +0 -1
  843. package/lib/websocket/models.d.ts +63 -1
  844. package/lib/websocket/models.js +0 -1
  845. package/lib/websocket/types.d.ts +38 -4
  846. package/lib/websocket/types.js +16 -1
  847. package/package.json +9 -11
  848. package/examples/_sdk.ts +0 -1
  849. package/examples/_setup.ts +0 -3
  850. package/examples/add_collateral.ts +0 -24
  851. package/examples/add_debt.ts +0 -29
  852. package/examples/add_liquidity.ts +0 -26
  853. package/examples/address_convert.ts +0 -24
  854. package/examples/bind_token.ts +0 -21
  855. package/examples/broadcast_tx.ts +0 -37
  856. package/examples/cancel_all_orders.ts +0 -30
  857. package/examples/cancel_order.ts +0 -22
  858. package/examples/claim_pool_rewards.ts +0 -22
  859. package/examples/clone_sdk.ts +0 -34
  860. package/examples/connect_sdk.ts +0 -18
  861. package/examples/create_deposit.ts +0 -168
  862. package/examples/create_ibc_transfer.ts +0 -96
  863. package/examples/create_market.ts +0 -34
  864. package/examples/create_oracle.ts +0 -29
  865. package/examples/create_order.ts +0 -65
  866. package/examples/create_pool.ts +0 -28
  867. package/examples/create_pool_with_liquidity.ts +0 -30
  868. package/examples/create_subaccount.ts +0 -22
  869. package/examples/create_token.ts +0 -29
  870. package/examples/create_vault_type.ts +0 -25
  871. package/examples/create_vote.ts +0 -24
  872. package/examples/create_withdrawal.ts +0 -27
  873. package/examples/custom_node.ts +0 -19
  874. package/examples/delegate_tokens.ts +0 -31
  875. package/examples/deposit_proposal.ts +0 -24
  876. package/examples/edit_margin.ts +0 -24
  877. package/examples/edit_order.ts +0 -22
  878. package/examples/edit_order_bulk.ts +0 -26
  879. package/examples/get_crosschain_txs.ts +0 -21
  880. package/examples/initiate_liquidation.ts +0 -27
  881. package/examples/link_pool.ts +0 -23
  882. package/examples/mint.ts +0 -31
  883. package/examples/n3_query_balance.ts +0 -57
  884. package/examples/query.ts +0 -133
  885. package/examples/query_balance.ts +0 -23
  886. package/examples/query_external_balances.ts +0 -40
  887. package/examples/query_ibc.ts +0 -16
  888. package/examples/query_insights.ts +0 -83
  889. package/examples/remove_collateral.ts +0 -24
  890. package/examples/remove_debt.ts +0 -24
  891. package/examples/remove_liquidity.ts +0 -25
  892. package/examples/send_tokens.ts +0 -27
  893. package/examples/set_commitment_curve.ts +0 -23
  894. package/examples/set_leverage.ts +0 -24
  895. package/examples/set_msg_fee.ts +0 -54
  896. package/examples/set_reward_curve.ts +0 -27
  897. package/examples/set_rewards_weights.ts +0 -23
  898. package/examples/set_trading_flag.ts +0 -23
  899. package/examples/stake_pool_token.ts +0 -28
  900. package/examples/submit_proposal.ts +0 -62
  901. package/examples/sync_token.ts +0 -22
  902. package/examples/unlink_pool.ts +0 -22
  903. package/examples/unstake_pool_token.ts +0 -25
  904. package/examples/update_market.ts +0 -44
  905. package/examples/update_pool.ts +0 -25
  906. package/examples/update_profile.ts +0 -23
  907. package/examples/vote_proposal.ts +0 -23
  908. package/examples/websocket.ts +0 -32
@@ -1,6 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  import { Network, Network as _Network, NetworkConfig } from "./constant";
3
- import { OfflineDirectSigner, OfflineSigner } from "@cosmjs/proto-signing";
4
3
  import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
5
4
  import { CarbonQueryClient, ETHClient, HydrogenClient, InsightsQueryClient, NEOClient, TokenClient, ZILClient } from "./clients";
6
5
  import N3Client from "./clients/N3Client";
@@ -70,7 +69,7 @@ declare class CarbonSDK {
70
69
  static instanceWithWallet(wallet: CarbonWallet, sdkOpts?: CarbonSDKInitOpts): Promise<ConnectedCarbonSDK>;
71
70
  static instanceWithPrivateKey(privateKey: string | Buffer, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
72
71
  static instanceWithMnemonic(mnemonic: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
73
- static instanceWithSigner(signer: CarbonSigner, publicKeyBase64: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts, customSigner?: OfflineSigner & OfflineDirectSigner): Promise<ConnectedCarbonSDK>;
72
+ static instanceWithSigner(signer: CarbonSigner, publicKeyBase64: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
74
73
  static instanceWithLedger(ledger: CosmosLedger, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
75
74
  static instanceWithKeplr(keplr: Keplr, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
76
75
  static instanceViewOnly(bech32Address: string, sdkOpts?: CarbonSDKInitOpts, walletOpts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
@@ -81,7 +80,7 @@ declare class CarbonSDK {
81
80
  disconnect(): CarbonSDK;
82
81
  connectWithPrivateKey(privateKey: string | Buffer, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
83
82
  connectWithMnemonic(mnemonic: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
84
- connectWithSigner(signer: CarbonSigner, publicKeyBase64: string, opts?: CarbonWalletGenericOpts, customSigner?: OfflineSigner & OfflineDirectSigner): Promise<ConnectedCarbonSDK>;
83
+ connectWithSigner(signer: CarbonSigner, publicKeyBase64: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
85
84
  connectWithLedger(ledger: CosmosLedger, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
86
85
  connectWithKeplr(keplr: Keplr, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
87
86
  connectViewOnly(bech32Address: string, opts?: CarbonWalletGenericOpts): Promise<ConnectedCarbonSDK>;
@@ -101,4 +100,3 @@ declare namespace CarbonSDK {
101
100
  export import Network = _Network;
102
101
  }
103
102
  export default CarbonSDK;
104
- //# sourceMappingURL=CarbonSDK.d.ts.map
package/lib/CarbonSDK.js CHANGED
@@ -124,10 +124,10 @@ class CarbonSDK {
124
124
  return sdk.connectWithMnemonic(mnemonic, walletOpts);
125
125
  });
126
126
  }
127
- static instanceWithSigner(signer, publicKeyBase64, sdkOpts = DEFAULT_SDK_INIT_OPTS, walletOpts, customSigner) {
127
+ static instanceWithSigner(signer, publicKeyBase64, sdkOpts = DEFAULT_SDK_INIT_OPTS, walletOpts) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
129
  const sdk = yield CarbonSDK.instance(sdkOpts);
130
- return sdk.connectWithSigner(signer, publicKeyBase64, walletOpts, customSigner);
130
+ return sdk.connectWithSigner(signer, publicKeyBase64, walletOpts);
131
131
  });
132
132
  }
133
133
  static instanceWithLedger(ledger, sdkOpts = DEFAULT_SDK_INIT_OPTS, walletOpts) {
@@ -202,9 +202,9 @@ class CarbonSDK {
202
202
  return this.connect(wallet);
203
203
  });
204
204
  }
205
- connectWithSigner(signer, publicKeyBase64, opts, customSigner) {
205
+ connectWithSigner(signer, publicKeyBase64, opts) {
206
206
  return __awaiter(this, void 0, void 0, function* () {
207
- const wallet = wallet_1.CarbonWallet.withSigner(signer, publicKeyBase64, Object.assign(Object.assign({}, opts), { network: this.network, config: this.configOverride, customSigner }));
207
+ const wallet = wallet_1.CarbonWallet.withSigner(signer, publicKeyBase64, Object.assign(Object.assign({}, opts), { network: this.network, config: this.configOverride }));
208
208
  return this.connect(wallet);
209
209
  });
210
210
  }
@@ -269,4 +269,3 @@ exports.ConnectedCarbonSDK = ConnectedCarbonSDK;
269
269
  CarbonSDK.Network = constant_1.Network;
270
270
  })(CarbonSDK || (CarbonSDK = {}));
271
271
  exports.default = CarbonSDK;
272
- //# sourceMappingURL=CarbonSDK.js.map
@@ -14,4 +14,3 @@ declare class BlockchainClient extends StargateClient {
14
14
  static connectWithTm(tmClient: Tendermint34Client): BlockchainClient;
15
15
  }
16
16
  export default BlockchainClient;
17
- //# sourceMappingURL=BlockchainClient.d.ts.map
@@ -17,4 +17,3 @@ class BlockchainClient extends stargate_1.StargateClient {
17
17
  }
18
18
  }
19
19
  exports.default = BlockchainClient;
20
- //# sourceMappingURL=BlockchainClient.js.map
@@ -78,4 +78,3 @@ declare class CarbonQueryClient {
78
78
  constructor(tmClient: Tendermint34Client);
79
79
  }
80
80
  export default CarbonQueryClient;
81
- //# sourceMappingURL=CarbonQueryClient.d.ts.map
@@ -84,4 +84,3 @@ class CarbonQueryClient {
84
84
  }
85
85
  }
86
86
  exports.default = CarbonQueryClient;
87
- //# sourceMappingURL=CarbonQueryClient.js.map
@@ -99,4 +99,3 @@ export declare class ETHClient {
99
99
  verifyChecksum(input: string): string | undefined;
100
100
  }
101
101
  export default ETHClient;
102
- //# sourceMappingURL=ETHClient.d.ts.map
@@ -355,4 +355,3 @@ ETHClient.BLOCKCHAIN_KEY = {
355
355
  [blockchain_1.Blockchain.Ethereum]: "eth",
356
356
  };
357
357
  exports.default = ETHClient;
358
- //# sourceMappingURL=ETHClient.js.map
@@ -19,4 +19,3 @@ declare class HydrogenClient {
19
19
  getFeeQuote(req: GetFeeQuoteRequest): Promise<GetFeeQuoteResponse>;
20
20
  }
21
21
  export default HydrogenClient;
22
- //# sourceMappingURL=HydrogenClient.d.ts.map
@@ -105,8 +105,7 @@ class HydrogenClient {
105
105
  }
106
106
  getFeeQuote(req) {
107
107
  return __awaiter(this, void 0, void 0, function* () {
108
- // TODO: Uncomment when this query is deployed on production
109
- // this.checkState();
108
+ this.checkState();
110
109
  const request = this.apiManager.path('fee_quote', {}, Object.assign({}, req));
111
110
  const response = yield request.get();
112
111
  const result = response.data;
@@ -115,4 +114,3 @@ class HydrogenClient {
115
114
  }
116
115
  }
117
116
  exports.default = HydrogenClient;
118
- //# sourceMappingURL=HydrogenClient.js.map
@@ -34,4 +34,3 @@ declare class InsightsQueryClient {
34
34
  FundingHistory(query: Insights.QueryGetFundingRateRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingRateResponse>>;
35
35
  }
36
36
  export default InsightsQueryClient;
37
- //# sourceMappingURL=InsightsQueryClient.d.ts.map
@@ -306,4 +306,3 @@ class InsightsQueryClient {
306
306
  }
307
307
  }
308
308
  exports.default = InsightsQueryClient;
309
- //# sourceMappingURL=InsightsQueryClient.js.map
@@ -71,4 +71,3 @@ export declare class N3Client {
71
71
  }>;
72
72
  }
73
73
  export default N3Client;
74
- //# sourceMappingURL=N3Client.d.ts.map
@@ -284,4 +284,3 @@ N3Client.BLOCKCHAIN_KEY = {
284
284
  [blockchain_1.Blockchain.Neo3]: "Neo3",
285
285
  };
286
286
  exports.default = N3Client;
287
- //# sourceMappingURL=N3Client.js.map
@@ -55,4 +55,3 @@ export declare class NEOClient {
55
55
  getProviderUrl(): string;
56
56
  }
57
57
  export default NEOClient;
58
- //# sourceMappingURL=NEOClient.d.ts.map
@@ -37,8 +37,8 @@ const util_1 = require("../util");
37
37
  const address_1 = require("../util/address");
38
38
  const blockchain_1 = require("../util/blockchain");
39
39
  const generic_1 = require("../util/generic");
40
- const neon_core_1 = require("@cityofzion/neon-core");
41
- const neon_js_1 = __importStar(require("@cityofzion/neon-js"));
40
+ const Neon = __importStar(require("@cityofzion/neon-core"));
41
+ const neon_js_1 = require("@cityofzion/neon-js");
42
42
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
43
43
  const ethers_1 = require("ethers");
44
44
  const lodash_1 = require("lodash");
@@ -57,16 +57,16 @@ class NEOClient {
57
57
  if (!hex || typeof (hex) !== "string")
58
58
  return "0";
59
59
  const res = hex.length % 2 !== 0 ? `0${hex}` : hex;
60
- return new bignumber_js_1.default(res ? neon_core_1.u.reverseHex(res) : "00", 16).shiftedBy(-exp).toString();
60
+ return new bignumber_js_1.default(res ? Neon.u.reverseHex(res) : "00", 16).shiftedBy(-exp).toString();
61
61
  }
62
62
  getExternalBalances(sdk, address, url, whitelistDenoms) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
64
  const tokenQueryResults = yield sdk.token.getAllTokens();
65
- const account = new neon_core_1.wallet.Account(address);
65
+ const account = new Neon.wallet.Account(address);
66
66
  const tokens = tokenQueryResults.filter(token => (0, blockchain_1.blockchainForChainId)(token.chainId.toNumber()) == this.blockchain &&
67
67
  token.tokenAddress.length == 40 &&
68
68
  token.bridgeAddress.length == 40);
69
- const client = new neon_core_1.rpc.RPCClient(url, "2.5.2"); // TODO: should we change the RPC version??
69
+ const client = new Neon.rpc.RPCClient(url, "2.5.2"); // TODO: should we change the RPC version??
70
70
  // NOTE: fetching of tokens is chunked in sets of 15 as we may hit
71
71
  // the gas limit on the RPC node and error out otherwise
72
72
  const promises = (0, lodash_1.chunk)(tokens, 75).map((partition) => __awaiter(this, void 0, void 0, function* () {
@@ -75,8 +75,8 @@ class NEOClient {
75
75
  for (const token of partition) {
76
76
  if (whitelistDenoms && !whitelistDenoms.includes(token.denom))
77
77
  continue;
78
- const sb = new neon_core_1.sc.ScriptBuilder();
79
- sb.emitAppCall(neon_js_1.default.u.reverseHex(token.tokenAddress), "balanceOf", [neon_core_1.u.reverseHex(account.scriptHash)]);
78
+ const sb = new Neon.sc.ScriptBuilder();
79
+ sb.emitAppCall(Neon.u.reverseHex(token.tokenAddress), "balanceOf", [Neon.u.reverseHex(account.scriptHash)]);
80
80
  try {
81
81
  const response = yield client.invokeScript(sb.str);
82
82
  acc[token.denom.toUpperCase()] = ((_a = response.stack[0]) === null || _a === void 0 ? void 0 : _a.type) === "Integer" // Happens on polychain devnet
@@ -102,13 +102,13 @@ class NEOClient {
102
102
  }
103
103
  lockDeposit(token, feeAmountInput, swthAddress, neoPrivateKey) {
104
104
  return __awaiter(this, void 0, void 0, function* () {
105
- const account = neon_js_1.default.create.account(neoPrivateKey);
105
+ const account = new Neon.wallet.Account(neoPrivateKey);
106
106
  const networkConfig = this.getNetworkConfig();
107
- const scriptHash = neon_js_1.u.reverseHex(token.bridgeAddress);
107
+ const scriptHash = Neon.u.reverseHex(token.bridgeAddress);
108
108
  const fromAssetHash = token.tokenAddress;
109
- const fromAddress = neon_js_1.u.reverseHex(account.scriptHash);
109
+ const fromAddress = Neon.u.reverseHex(account.scriptHash);
110
110
  const targetProxyHash = this.getTargetProxyHash(token);
111
- const toAssetHash = neon_js_1.u.str2hexstring(token.id);
111
+ const toAssetHash = Neon.u.str2hexstring(token.id);
112
112
  const addressBytes = address_1.SWTHAddress.getAddressBytes(swthAddress, networkConfig.network);
113
113
  const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(addressBytes));
114
114
  const amount = ethers_1.ethers.BigNumber.from(token.externalBalance);
@@ -118,7 +118,7 @@ class NEOClient {
118
118
  if (amount.lt(feeAmount)) {
119
119
  return false;
120
120
  }
121
- const sb = neon_js_1.default.create.scriptBuilder();
121
+ const sb = new Neon.sc.ScriptBuilder();
122
122
  sb.emitAppCall(scriptHash, "lock", [
123
123
  fromAssetHash,
124
124
  fromAddress,
@@ -134,7 +134,7 @@ class NEOClient {
134
134
  const apiProvider = networkConfig.network === CarbonSDK_1.default.Network.MainNet
135
135
  ? new neon_js_1.api.neonDB.instance("https://api.switcheo.network")
136
136
  : new neon_js_1.api.neoCli.instance(rpcUrl);
137
- return neon_js_1.default.doInvoke({
137
+ return neon_js_1.api.doInvoke({
138
138
  api: apiProvider,
139
139
  url: rpcUrl,
140
140
  account,
@@ -152,26 +152,26 @@ class NEOClient {
152
152
  }
153
153
  const publicKeyOutput = yield o3Wallet.getPublicKeyOutput();
154
154
  const networkConfig = this.getNetworkConfig();
155
- const scriptHash = neon_js_1.u.reverseHex(token.bridgeAddress);
156
- const fromAssetHash = neon_js_1.u.reverseHex(token.tokenAddress);
155
+ const scriptHash = Neon.u.reverseHex(token.bridgeAddress);
156
+ const fromAssetHash = Neon.u.reverseHex(token.tokenAddress);
157
157
  const fromAddress = util_1.AddressUtils.NEOAddress.publicKeyToAddress(publicKeyOutput.publicKey);
158
158
  const targetProxyHash = this.getTargetProxyHash(token);
159
- const toAssetHash = neon_js_1.u.str2hexstring(token.id);
159
+ const toAssetHash = Neon.u.str2hexstring(token.id);
160
160
  const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
161
161
  const nonce = Math.floor(Math.random() * 1000000);
162
162
  if (amount.lt(feeAmount)) {
163
163
  throw new Error("Invalid amount");
164
164
  }
165
165
  const data = [
166
- neon_js_1.sc.ContractParam.hash160(fromAssetHash),
167
- neon_js_1.sc.ContractParam.hash160(fromAddress),
168
- neon_js_1.sc.ContractParam.byteArray(targetProxyHash, "hex"),
169
- neon_js_1.sc.ContractParam.byteArray(toAssetHash, "hex"),
170
- neon_js_1.sc.ContractParam.byteArray(toAddress, "hex"),
171
- neon_js_1.sc.ContractParam.integer(amount.toNumber()),
172
- neon_js_1.sc.ContractParam.integer(feeAmount.toNumber()),
173
- neon_js_1.sc.ContractParam.byteArray(networkConfig.feeAddress, "hex"),
174
- neon_js_1.sc.ContractParam.integer(nonce),
166
+ Neon.sc.ContractParam.hash160(fromAssetHash),
167
+ Neon.sc.ContractParam.hash160(fromAddress),
168
+ Neon.sc.ContractParam.byteArray(targetProxyHash, "hex"),
169
+ Neon.sc.ContractParam.byteArray(toAssetHash, "hex"),
170
+ Neon.sc.ContractParam.byteArray(toAddress, "hex"),
171
+ Neon.sc.ContractParam.integer(amount.toNumber()),
172
+ Neon.sc.ContractParam.integer(feeAmount.toNumber()),
173
+ Neon.sc.ContractParam.byteArray(networkConfig.feeAddress, "hex"),
174
+ Neon.sc.ContractParam.integer(nonce),
175
175
  ];
176
176
  const tx = yield o3Wallet.getDAPI().invoke({
177
177
  scriptHash,
@@ -186,20 +186,20 @@ class NEOClient {
186
186
  var _a;
187
187
  return __awaiter(this, void 0, void 0, function* () {
188
188
  const { feeAmount, address, amount, token, ledger, signCompleteCallback, } = params;
189
- const compressedPublicKey = neon_core_1.wallet.getPublicKeyEncoded(ledger.publicKey);
189
+ const compressedPublicKey = Neon.wallet.getPublicKeyEncoded(ledger.publicKey);
190
190
  const networkConfig = this.getNetworkConfig();
191
- const scriptHash = neon_js_1.u.reverseHex(token.bridgeAddress);
191
+ const scriptHash = Neon.u.reverseHex(token.bridgeAddress);
192
192
  const fromAssetHash = token.tokenAddress;
193
193
  const fromAddress = ledger.scriptHash;
194
194
  const targetProxyHash = this.getTargetProxyHash(token);
195
- const toAssetHash = neon_js_1.u.str2hexstring(token.id);
195
+ const toAssetHash = Neon.u.str2hexstring(token.id);
196
196
  const toAddress = (0, generic_1.stripHexPrefix)(ethers_1.ethers.utils.hexlify(address));
197
197
  const feeAddress = networkConfig.feeAddress;
198
198
  const nonce = Math.floor(Math.random() * 1000000);
199
199
  if (amount.lt(feeAmount)) {
200
200
  throw new Error("Invalid amount");
201
201
  }
202
- const sb = neon_js_1.default.create.scriptBuilder();
202
+ const sb = new Neon.sc.ScriptBuilder();
203
203
  const data = [
204
204
  fromAssetHash,
205
205
  fromAddress,
@@ -217,12 +217,12 @@ class NEOClient {
217
217
  ? new neon_js_1.api.neonDB.instance("https://api.switcheo.network")
218
218
  : new neon_js_1.api.neoCli.instance(rpcUrl);
219
219
  let invokeTxConfig = {
220
- account: Object.assign(Object.assign({}, neon_js_1.default.create.account("")), {
220
+ account: Object.assign(Object.assign({}, new Neon.wallet.Account("")), {
221
221
  // overwrite the address and public key to values provided by the ledger.
222
222
  address: ledger.displayAddress, publicKey: compressedPublicKey }),
223
223
  signingFunction: (tx, publicKey) => __awaiter(this, void 0, void 0, function* () {
224
224
  const signature = yield ledger.sign(tx);
225
- const witness = neon_js_1.tx.Witness.fromSignature(signature, publicKey);
225
+ const witness = Neon.tx.Witness.fromSignature(signature, publicKey);
226
226
  return witness.serialize();
227
227
  }),
228
228
  api: apiProvider,
@@ -250,25 +250,25 @@ class NEOClient {
250
250
  var _a, _b, _c, _d, _e;
251
251
  return __awaiter(this, void 0, void 0, function* () {
252
252
  const url = this.getProviderUrl();
253
- const sb = neon_js_1.default.create.scriptBuilder();
253
+ const sb = new Neon.sc.ScriptBuilder();
254
254
  sb.emitAppCall(scriptHash, "symbol", []);
255
255
  sb.emitAppCall(scriptHash, "name", []);
256
256
  sb.emitAppCall(scriptHash, "decimals", []);
257
- const response = yield neon_js_1.rpc.Query.invokeScript(sb.str).execute(url);
257
+ const response = yield Neon.rpc.Query.invokeScript(sb.str).execute(url);
258
258
  if (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.state) !== "HALT")
259
259
  throw new Error("retrieve failed");
260
- const symbol = neon_js_1.default.u.hexstring2str((_b = response.result.stack) === null || _b === void 0 ? void 0 : _b[0].value);
261
- const name = neon_js_1.default.u.hexstring2str((_c = response.result.stack) === null || _c === void 0 ? void 0 : _c[1].value);
260
+ const symbol = Neon.u.hexstring2str((_b = response.result.stack) === null || _b === void 0 ? void 0 : _b[0].value);
261
+ const name = Neon.u.hexstring2str((_c = response.result.stack) === null || _c === void 0 ? void 0 : _c[1].value);
262
262
  const decimals = parseInt((_e = (_d = response.result.stack) === null || _d === void 0 ? void 0 : _d[2].value) !== null && _e !== void 0 ? _e : "0", 10);
263
263
  return { address: scriptHash, decimals, name, symbol };
264
264
  });
265
265
  }
266
266
  wrapNeoToNneo(neoAmount, neoPrivateKey) {
267
267
  return __awaiter(this, void 0, void 0, function* () {
268
- const account = neon_js_1.default.create.account(neoPrivateKey);
268
+ const account = new Neon.wallet.Account(neoPrivateKey);
269
269
  const rpcUrl = yield this.getProviderUrl();
270
270
  const wrapperContractScriptHash = this.getConfig().wrapperScriptHash;
271
- const wrapperContractAddress = neon_core_1.wallet.getAddressFromScriptHash(wrapperContractScriptHash);
271
+ const wrapperContractAddress = Neon.wallet.getAddressFromScriptHash(wrapperContractScriptHash);
272
272
  // Build config
273
273
  const intent = neon_js_1.api.makeIntent({ NEO: neoAmount.toNumber() }, wrapperContractAddress);
274
274
  const props = {
@@ -276,7 +276,7 @@ class NEOClient {
276
276
  operation: "mintTokens",
277
277
  args: []
278
278
  };
279
- const script = neon_js_1.default.create.script(props);
279
+ const script = Neon.sc.createScript(props);
280
280
  const networkConfig = this.getNetworkConfig();
281
281
  const apiProvider = networkConfig.network === CarbonSDK_1.default.Network.MainNet
282
282
  ? new neon_js_1.api.neonDB.instance("https://api.switcheo.network")
@@ -289,19 +289,19 @@ class NEOClient {
289
289
  script: script
290
290
  };
291
291
  // Neon API
292
- const response = yield neon_js_1.default.doInvoke(config);
292
+ const response = yield neon_js_1.api.doInvoke(config);
293
293
  return response;
294
294
  });
295
295
  }
296
296
  formatWithdrawalAddress(address) {
297
297
  return __awaiter(this, void 0, void 0, function* () {
298
- const isValidAddress = neon_core_1.wallet.isAddress(address);
298
+ const isValidAddress = Neon.wallet.isAddress(address);
299
299
  if (!isValidAddress) {
300
300
  throw new Error("invalid address");
301
301
  }
302
- const scriptHash = neon_core_1.wallet.getScriptHashFromAddress(address);
302
+ const scriptHash = Neon.wallet.getScriptHashFromAddress(address);
303
303
  // return the little endian version of the address
304
- return neon_core_1.u.reverseHex(scriptHash);
304
+ return Neon.u.reverseHex(scriptHash);
305
305
  });
306
306
  }
307
307
  /**
@@ -333,4 +333,3 @@ NEOClient.BLOCKCHAIN_KEY = {
333
333
  [blockchain_1.Blockchain.Neo]: "Neo",
334
334
  };
335
335
  exports.default = NEOClient;
336
- //# sourceMappingURL=NEOClient.js.map
@@ -54,4 +54,3 @@ declare class TokenClient {
54
54
  setCommonAssetConfig(): void;
55
55
  }
56
56
  export default TokenClient;
57
- //# sourceMappingURL=TokenClient.d.ts.map
@@ -445,4 +445,3 @@ class TokenClient {
445
445
  }
446
446
  TokenClient.Blacklist = constant_1.TokenBlacklist;
447
447
  exports.default = TokenClient;
448
- //# sourceMappingURL=TokenClient.js.map
@@ -104,4 +104,3 @@ export declare class ZILClient {
104
104
  getBridgeEntranceAddr(): string;
105
105
  }
106
106
  export default ZILClient;
107
- //# sourceMappingURL=ZILClient.d.ts.map
@@ -434,4 +434,3 @@ ZILClient.BLOCKCHAIN_KEY = {
434
434
  [blockchain_1.Blockchain.Zilliqa]: "zil"
435
435
  };
436
436
  exports.default = ZILClient;
437
- //# sourceMappingURL=ZILClient.js.map
@@ -6,4 +6,3 @@ export { default as ZILClient } from "./ZILClient";
6
6
  export { default as TokenClient } from "./TokenClient";
7
7
  export { default as InsightsQueryClient } from "./InsightsQueryClient";
8
8
  export { default as HydrogenClient } from "./HydrogenClient";
9
- //# sourceMappingURL=index.d.ts.map
@@ -20,4 +20,3 @@ var InsightsQueryClient_1 = require("./InsightsQueryClient");
20
20
  Object.defineProperty(exports, "InsightsQueryClient", { enumerable: true, get: function () { return __importDefault(InsightsQueryClient_1).default; } });
21
21
  var HydrogenClient_1 = require("./HydrogenClient");
22
22
  Object.defineProperty(exports, "HydrogenClient", { enumerable: true, get: function () { return __importDefault(HydrogenClient_1).default; } });
23
- //# sourceMappingURL=index.js.map
@@ -16,4 +16,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
16
16
  [K in keyof T]?: DeepPartial<T[K]>;
17
17
  } : Partial<T>;
18
18
  export {};
19
- //# sourceMappingURL=genesis.d.ts.map
@@ -44,4 +44,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
44
44
  minimal_1.default.util.Long = long_1.default;
45
45
  minimal_1.default.configure();
46
46
  }
47
- //# sourceMappingURL=genesis.js.map
@@ -10,4 +10,3 @@ interface Rpc {
10
10
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
11
11
  }
12
12
  export {};
13
- //# sourceMappingURL=query.d.ts.map
@@ -18,4 +18,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
18
18
  minimal_1.default.util.Long = long_1.default;
19
19
  minimal_1.default.configure();
20
20
  }
21
- //# sourceMappingURL=query.js.map
@@ -10,4 +10,3 @@ interface Rpc {
10
10
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
11
11
  }
12
12
  export {};
13
- //# sourceMappingURL=tx.d.ts.map
@@ -18,4 +18,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
18
18
  minimal_1.default.util.Long = long_1.default;
19
19
  minimal_1.default.configure();
20
20
  }
21
- //# sourceMappingURL=tx.js.map
@@ -29,4 +29,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
29
29
  [K in keyof T]?: DeepPartial<T[K]>;
30
30
  } : Partial<T>;
31
31
  export {};
32
- //# sourceMappingURL=event.d.ts.map
@@ -135,4 +135,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
135
135
  minimal_1.default.util.Long = long_1.default;
136
136
  minimal_1.default.configure();
137
137
  }
138
- //# sourceMappingURL=event.js.map
@@ -16,4 +16,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
16
16
  [K in keyof T]?: DeepPartial<T[K]>;
17
17
  } : Partial<T>;
18
18
  export {};
19
- //# sourceMappingURL=genesis.d.ts.map
@@ -44,4 +44,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
44
44
  minimal_1.default.util.Long = long_1.default;
45
45
  minimal_1.default.configure();
46
46
  }
47
- //# sourceMappingURL=genesis.js.map
@@ -9,4 +9,3 @@ interface Rpc {
9
9
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
10
10
  }
11
11
  export {};
12
- //# sourceMappingURL=query.d.ts.map
@@ -18,4 +18,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
18
18
  minimal_1.default.util.Long = long_1.default;
19
19
  minimal_1.default.configure();
20
20
  }
21
- //# sourceMappingURL=query.js.map
@@ -62,4 +62,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
62
62
  [K in keyof T]?: DeepPartial<T[K]>;
63
63
  } : Partial<T>;
64
64
  export {};
65
- //# sourceMappingURL=tx.d.ts.map
@@ -234,4 +234,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
234
234
  minimal_1.default.util.Long = long_1.default;
235
235
  minimal_1.default.configure();
236
236
  }
237
- //# sourceMappingURL=tx.js.map
@@ -42,4 +42,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
42
42
  [K in keyof T]?: DeepPartial<T[K]>;
43
43
  } : Partial<T>;
44
44
  export {};
45
- //# sourceMappingURL=book.d.ts.map
@@ -238,4 +238,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
238
238
  minimal_1.default.util.Long = long_1.default;
239
239
  minimal_1.default.configure();
240
240
  }
241
- //# sourceMappingURL=book.js.map
@@ -20,4 +20,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
20
20
  [K in keyof T]?: DeepPartial<T[K]>;
21
21
  } : Partial<T>;
22
22
  export {};
23
- //# sourceMappingURL=event.d.ts.map
@@ -111,4 +111,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
111
111
  minimal_1.default.util.Long = long_1.default;
112
112
  minimal_1.default.configure();
113
113
  }
114
- //# sourceMappingURL=event.js.map
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { OrderBook, StopBook } from "../book/book";
3
+ import { OrderBook, StopBook } from "./book";
4
4
  export declare const protobufPackage = "Switcheo.carbon.book";
5
5
  /** GenesisState defines the book module's genesis state. */
6
6
  export interface GenesisState {
@@ -23,4 +23,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
23
23
  [K in keyof T]?: DeepPartial<T[K]>;
24
24
  } : Partial<T>;
25
25
  export {};
26
- //# sourceMappingURL=genesis.d.ts.map
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const book_1 = require("../book/book");
10
+ const book_1 = require("./book");
11
11
  exports.protobufPackage = "Switcheo.carbon.book";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -77,4 +77,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
77
77
  minimal_1.default.util.Long = long_1.default;
78
78
  minimal_1.default.configure();
79
79
  }
80
- //# sourceMappingURL=genesis.js.map
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { OrderBook } from "../book/book";
3
+ import { OrderBook } from "./book";
4
4
  import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination";
5
5
  export declare const protobufPackage = "Switcheo.carbon.book";
6
6
  /** this line is used by starport scaffolding # 3 */
@@ -66,4 +66,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
66
66
  [K in keyof T]?: DeepPartial<T[K]>;
67
67
  } : Partial<T>;
68
68
  export {};
69
- //# sourceMappingURL=query.d.ts.map
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryAllBookResponse = exports.QueryAllBookReq
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const book_1 = require("../book/book");
10
+ const book_1 = require("./book");
11
11
  const pagination_1 = require("../cosmos/base/query/v1beta1/pagination");
12
12
  exports.protobufPackage = "Switcheo.carbon.book";
13
13
  const baseQueryGetBookRequest = { market: "" };
@@ -242,4 +242,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
242
242
  minimal_1.default.util.Long = long_1.default;
243
243
  minimal_1.default.configure();
244
244
  }
245
- //# sourceMappingURL=query.js.map
@@ -10,4 +10,3 @@ interface Rpc {
10
10
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
11
11
  }
12
12
  export {};
13
- //# sourceMappingURL=tx.d.ts.map
@@ -18,4 +18,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
18
18
  minimal_1.default.util.Long = long_1.default;
19
19
  minimal_1.default.configure();
20
20
  }
21
- //# sourceMappingURL=tx.js.map
@@ -19,4 +19,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
19
19
  [K in keyof T]?: DeepPartial<T[K]>;
20
20
  } : Partial<T>;
21
21
  export {};
22
- //# sourceMappingURL=amm.d.ts.map
@@ -135,4 +135,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
135
135
  minimal_1.default.util.Long = long_1.default;
136
136
  minimal_1.default.configure();
137
137
  }
138
- //# sourceMappingURL=amm.js.map
@@ -24,4 +24,3 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? st
24
24
  [K in keyof T]?: DeepPartial<T[K]>;
25
25
  } : Partial<T>;
26
26
  export {};
27
- //# sourceMappingURL=candlestick.d.ts.map
@@ -190,4 +190,3 @@ if (minimal_1.default.util.Long !== long_1.default) {
190
190
  minimal_1.default.util.Long = long_1.default;
191
191
  minimal_1.default.configure();
192
192
  }
193
- //# sourceMappingURL=candlestick.js.map