carbon-js-sdk 0.2.11 → 0.2.13-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/lib/clients/CarbonQueryClient.d.ts +5 -2
  2. package/lib/clients/CarbonQueryClient.js +59 -54
  3. package/lib/clients/ETHClient.js +4 -4
  4. package/lib/clients/NEOClient.js +1 -1
  5. package/lib/clients/TokenClient.d.ts +6 -1
  6. package/lib/clients/TokenClient.js +24 -8
  7. package/lib/codec/book/genesis.d.ts +1 -1
  8. package/lib/codec/book/genesis.js +1 -1
  9. package/lib/codec/book/query.d.ts +1 -1
  10. package/lib/codec/book/query.js +1 -1
  11. package/lib/codec/broker/genesis.d.ts +1 -1
  12. package/lib/codec/broker/genesis.js +1 -1
  13. package/lib/codec/broker/query.d.ts +3 -3
  14. package/lib/codec/broker/query.js +3 -3
  15. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  16. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  17. package/lib/codec/btcx/query.d.ts +1 -1
  18. package/lib/codec/btcx/query.js +1 -1
  19. package/lib/codec/ccm/genesis.d.ts +1 -1
  20. package/lib/codec/ccm/genesis.js +1 -1
  21. package/lib/codec/cdp/asset_params.d.ts +1 -11
  22. package/lib/codec/cdp/asset_params.js +32 -84
  23. package/lib/codec/cdp/debt_info.d.ts +2 -3
  24. package/lib/codec/cdp/debt_info.js +31 -42
  25. package/lib/codec/cdp/event.d.ts +240 -22
  26. package/lib/codec/cdp/event.js +1516 -80
  27. package/lib/codec/cdp/genesis.d.ts +80 -4
  28. package/lib/codec/cdp/genesis.js +531 -22
  29. package/lib/codec/cdp/query.d.ts +397 -94
  30. package/lib/codec/cdp/query.js +1586 -230
  31. package/lib/codec/cdp/stablecoin_debt_info.d.ts +2 -3
  32. package/lib/codec/cdp/stablecoin_debt_info.js +29 -40
  33. package/lib/codec/cdp/tx.d.ts +466 -96
  34. package/lib/codec/cdp/tx.js +1961 -181
  35. package/lib/codec/coin/event.d.ts +1 -1
  36. package/lib/codec/coin/event.js +1 -1
  37. package/lib/codec/coin/genesis.d.ts +2 -2
  38. package/lib/codec/coin/genesis.js +2 -2
  39. package/lib/codec/coin/proposal.d.ts +1 -1
  40. package/lib/codec/coin/proposal.js +1 -1
  41. package/lib/codec/coin/query.d.ts +2 -5
  42. package/lib/codec/coin/query.js +2 -8
  43. package/lib/codec/coin/token.d.ts +11 -0
  44. package/lib/codec/coin/token.js +65 -1
  45. package/lib/codec/coin/tx.d.ts +1 -1
  46. package/lib/codec/coin/tx.js +1 -1
  47. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  48. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  49. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  50. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  51. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
  52. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
  53. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  54. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  55. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  56. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  57. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  58. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  59. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  60. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  61. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
  62. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
  63. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  64. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  65. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  66. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  67. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  68. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  69. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  70. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  71. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  72. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  73. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  74. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  75. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  76. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  77. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  78. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  79. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  80. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  81. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  82. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  83. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  84. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  85. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  86. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
  87. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  88. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  89. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  90. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  91. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  92. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  93. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  94. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  95. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  96. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  97. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  98. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  99. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  100. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  101. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  102. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  103. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  104. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  105. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  106. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  107. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  108. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  109. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  110. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  111. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  112. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  113. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  114. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  115. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
  116. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
  117. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
  118. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
  119. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  120. package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -3
  121. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  122. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  123. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  124. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  125. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  126. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  127. package/lib/codec/fee/genesis.d.ts +1 -1
  128. package/lib/codec/fee/genesis.js +1 -1
  129. package/lib/codec/fee/proposal.d.ts +1 -1
  130. package/lib/codec/fee/proposal.js +1 -1
  131. package/lib/codec/fee/query.d.ts +1 -1
  132. package/lib/codec/fee/query.js +1 -1
  133. package/lib/codec/fee/tx.d.ts +1 -1
  134. package/lib/codec/fee/tx.js +1 -1
  135. package/lib/codec/headersync/genesis.d.ts +1 -1
  136. package/lib/codec/headersync/genesis.js +1 -1
  137. package/lib/codec/headersync/query.d.ts +1 -1
  138. package/lib/codec/headersync/query.js +1 -1
  139. package/lib/codec/index.d.ts +53 -22
  140. package/lib/codec/index.js +520 -384
  141. package/lib/codec/inflation/genesis.d.ts +1 -1
  142. package/lib/codec/inflation/genesis.js +1 -1
  143. package/lib/codec/inflation/query.d.ts +1 -1
  144. package/lib/codec/inflation/query.js +1 -1
  145. package/lib/codec/insurance/genesis.d.ts +1 -1
  146. package/lib/codec/insurance/genesis.js +1 -1
  147. package/lib/codec/leverage/genesis.d.ts +1 -1
  148. package/lib/codec/leverage/genesis.js +1 -1
  149. package/lib/codec/leverage/query.d.ts +1 -1
  150. package/lib/codec/leverage/query.js +1 -1
  151. package/lib/codec/liquidation/genesis.d.ts +1 -1
  152. package/lib/codec/liquidation/genesis.js +1 -1
  153. package/lib/codec/liquidation/query.d.ts +1 -1
  154. package/lib/codec/liquidation/query.js +1 -1
  155. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  156. package/lib/codec/liquidation/quote_changes.js +1 -1
  157. package/lib/codec/liquiditypool/event.d.ts +2 -2
  158. package/lib/codec/liquiditypool/event.js +2 -2
  159. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  160. package/lib/codec/liquiditypool/genesis.js +2 -2
  161. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  162. package/lib/codec/liquiditypool/proposal.js +1 -1
  163. package/lib/codec/liquiditypool/query.d.ts +2 -2
  164. package/lib/codec/liquiditypool/query.js +2 -2
  165. package/lib/codec/liquiditypool/tx.d.ts +1 -1
  166. package/lib/codec/liquiditypool/tx.js +1 -1
  167. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  168. package/lib/codec/lockproxy/genesis.js +1 -1
  169. package/lib/codec/lockproxy/query.d.ts +1 -1
  170. package/lib/codec/lockproxy/query.js +1 -1
  171. package/lib/codec/market/event.d.ts +1 -1
  172. package/lib/codec/market/event.js +1 -1
  173. package/lib/codec/market/genesis.d.ts +2 -1
  174. package/lib/codec/market/genesis.js +20 -2
  175. package/lib/codec/market/proposal.d.ts +1 -1
  176. package/lib/codec/market/proposal.js +1 -1
  177. package/lib/codec/market/query.d.ts +1 -1
  178. package/lib/codec/market/query.js +1 -1
  179. package/lib/codec/market/tx.d.ts +1 -1
  180. package/lib/codec/market/tx.js +1 -1
  181. package/lib/codec/marketstats/genesis.d.ts +1 -1
  182. package/lib/codec/marketstats/genesis.js +1 -1
  183. package/lib/codec/marketstats/query.d.ts +2 -2
  184. package/lib/codec/marketstats/query.js +2 -2
  185. package/lib/codec/misc/message.d.ts +1 -1
  186. package/lib/codec/misc/message.js +1 -1
  187. package/lib/codec/misc/query.d.ts +3 -3
  188. package/lib/codec/misc/query.js +3 -3
  189. package/lib/codec/misc/trade.d.ts +1 -0
  190. package/lib/codec/misc/trade.js +17 -0
  191. package/lib/codec/misc/transaction.d.ts +1 -1
  192. package/lib/codec/misc/transaction.js +1 -1
  193. package/lib/codec/oracle/event.d.ts +1 -1
  194. package/lib/codec/oracle/event.js +1 -1
  195. package/lib/codec/oracle/genesis.d.ts +1 -1
  196. package/lib/codec/oracle/genesis.js +1 -1
  197. package/lib/codec/oracle/proposal.d.ts +1 -1
  198. package/lib/codec/oracle/proposal.js +1 -1
  199. package/lib/codec/oracle/query.d.ts +2 -2
  200. package/lib/codec/oracle/query.js +2 -2
  201. package/lib/codec/order/event.d.ts +1 -1
  202. package/lib/codec/order/event.js +1 -1
  203. package/lib/codec/order/genesis.d.ts +1 -1
  204. package/lib/codec/order/genesis.js +1 -1
  205. package/lib/codec/order/query.d.ts +1 -1
  206. package/lib/codec/order/query.js +1 -1
  207. package/lib/codec/position/event.d.ts +1 -1
  208. package/lib/codec/position/event.js +1 -1
  209. package/lib/codec/position/genesis.d.ts +1 -1
  210. package/lib/codec/position/genesis.js +1 -1
  211. package/lib/codec/position/query.d.ts +1 -1
  212. package/lib/codec/position/query.js +1 -1
  213. package/lib/codec/pricing/event.d.ts +11 -1
  214. package/lib/codec/pricing/event.js +52 -2
  215. package/lib/codec/pricing/genesis.d.ts +2 -1
  216. package/lib/codec/pricing/genesis.js +20 -5
  217. package/lib/codec/pricing/pricing.d.ts +13 -0
  218. package/lib/codec/pricing/pricing.js +83 -1
  219. package/lib/codec/pricing/query.d.ts +1 -1
  220. package/lib/codec/pricing/query.js +1 -1
  221. package/lib/codec/profile/event.d.ts +1 -1
  222. package/lib/codec/profile/event.js +1 -1
  223. package/lib/codec/profile/genesis.d.ts +1 -1
  224. package/lib/codec/profile/genesis.js +1 -1
  225. package/lib/codec/profile/query.d.ts +1 -1
  226. package/lib/codec/profile/query.js +1 -1
  227. package/lib/codec/subaccount/genesis.d.ts +1 -1
  228. package/lib/codec/subaccount/genesis.js +1 -1
  229. package/lib/codec/subaccount/query.d.ts +1 -1
  230. package/lib/codec/subaccount/query.js +1 -1
  231. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  232. package/lib/codec/tendermint/abci/types.js +4 -4
  233. package/lib/codec/tendermint/types/block.d.ts +2 -2
  234. package/lib/codec/tendermint/types/block.js +2 -2
  235. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  236. package/lib/codec/tendermint/types/evidence.js +2 -2
  237. package/lib/codec/tendermint/types/types.d.ts +3 -3
  238. package/lib/codec/tendermint/types/types.js +3 -3
  239. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  240. package/lib/codec/tendermint/types/validator.js +1 -1
  241. package/lib/constant/network.d.ts +3 -0
  242. package/lib/constant/network.js +12 -0
  243. package/lib/modules/admin.d.ts +53 -1
  244. package/lib/modules/admin.js +175 -43
  245. package/lib/modules/cdp.d.ts +62 -12
  246. package/lib/modules/cdp.js +149 -20
  247. package/lib/modules/fee.d.ts +2 -2
  248. package/lib/modules/fee.js +4 -5
  249. package/lib/provider/amino/types/admin.js +48 -7
  250. package/lib/provider/amino/types/cdp.js +72 -32
  251. package/lib/provider/sdk/SDKProvider.d.ts +2 -1
  252. package/lib/util/tx.d.ts +42 -14
  253. package/lib/websocket/channel.js +44 -0
  254. package/lib/websocket/models.d.ts +116 -0
  255. package/lib/websocket/types.d.ts +58 -3
  256. package/lib/websocket/types.js +22 -0
  257. package/package.json +1 -1
@@ -5,6 +5,7 @@ import { QueryClientImpl as CDPQueryClient } from "../codec/cdp/query";
5
5
  import { QueryClientImpl as CoinQueryClient } from "../codec/coin/query";
6
6
  import { QueryClientImpl as AuthQueryClient } from "../codec/cosmos/auth/v1beta1/query";
7
7
  import { QueryClientImpl as BankQueryClient } from "../codec/cosmos/bank/v1beta1/query";
8
+ import { ServiceClientImpl as CosmosTmClient } from "../codec/cosmos/base/tendermint/v1beta1/query";
8
9
  import { QueryClientImpl as DistributionQueryClient } from "../codec/cosmos/distribution/v1beta1/query";
9
10
  import { QueryClientImpl as EvidenceQueryClient } from "../codec/cosmos/evidence/v1beta1/query";
10
11
  import { QueryClientImpl as GovQueryClient } from "../codec/cosmos/gov/v1beta1/query";
@@ -13,10 +14,11 @@ import { QueryClientImpl as ParamsQueryClient } from "../codec/cosmos/params/v1b
13
14
  import { QueryClientImpl as SlashingQueryClient } from "../codec/cosmos/slashing/v1beta1/query";
14
15
  import { QueryClientImpl as StakingQueryClient } from "../codec/cosmos/staking/v1beta1/query";
15
16
  import { QueryClientImpl as UpgradeQueryClient } from "../codec/cosmos/upgrade/v1beta1/query";
17
+ import { QueryClientImpl as FeeQueryClient } from "../codec/fee/query";
18
+ import { QueryClientImpl as HeadersyncQueryClient } from "../codec/headersync/query";
16
19
  import { QueryClientImpl as IBCInterchainControlQueryClient } from "../codec/ibc/applications/interchain_accounts/controller/v1/query";
17
20
  import { QueryClientImpl as IBCInterchainHostQueryClient } from "../codec/ibc/applications/interchain_accounts/host/v1/query";
18
21
  import { QueryClientImpl as IBCTransferQueryClient } from "../codec/ibc/applications/transfer/v1/query";
19
- import { QueryClientImpl as FeeQueryClient } from "../codec/fee/query";
20
22
  import { QueryClientImpl as InflationQueryClient } from "../codec/inflation/query";
21
23
  import { QueryClientImpl as InsuranceQueryClient } from "../codec/insurance/query";
22
24
  import { QueryClientImpl as LeverageQueryClient } from "../codec/leverage/query";
@@ -31,7 +33,6 @@ import { QueryClientImpl as PositionQueryClient } from "../codec/position/query"
31
33
  import { QueryClientImpl as PricingQueryClient } from "../codec/pricing/query";
32
34
  import { QueryClientImpl as ProfileQueryClient } from "../codec/profile/query";
33
35
  import { QueryClientImpl as SubaccountQueryClient } from "../codec/subaccount/query";
34
- import { QueryClientImpl as HeadersyncQueryClient } from "../codec/headersync/query";
35
36
  import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
36
37
  import BlockchainClient from "./BlockchainClient";
37
38
  export interface IBCClientGroup {
@@ -72,9 +73,11 @@ declare class CarbonQueryClient {
72
73
  slashing: SlashingQueryClient;
73
74
  staking: StakingQueryClient;
74
75
  upgrade: UpgradeQueryClient;
76
+ cosmosTm: CosmosTmClient;
75
77
  chain: BlockchainClient;
76
78
  ibc: IBCClientGroup;
77
79
  private baseClient;
78
80
  constructor(tmClient: Tendermint34Client);
81
+ getProtobufRpcClient(): import("@cosmjs/stargate").ProtobufRpcClient;
79
82
  }
80
83
  export default CarbonQueryClient;
@@ -10,33 +10,34 @@ const query_4 = require("../codec/cdp/query");
10
10
  const query_5 = require("../codec/coin/query");
11
11
  const query_6 = require("../codec/cosmos/auth/v1beta1/query");
12
12
  const query_7 = require("../codec/cosmos/bank/v1beta1/query");
13
- const query_8 = require("../codec/cosmos/distribution/v1beta1/query");
14
- const query_9 = require("../codec/cosmos/evidence/v1beta1/query");
15
- const query_10 = require("../codec/cosmos/gov/v1beta1/query");
16
- const query_11 = require("../codec/cosmos/mint/v1beta1/query");
17
- const query_12 = require("../codec/cosmos/params/v1beta1/query");
18
- const query_13 = require("../codec/cosmos/slashing/v1beta1/query");
19
- const query_14 = require("../codec/cosmos/staking/v1beta1/query");
20
- const query_15 = require("../codec/cosmos/upgrade/v1beta1/query");
21
- const query_16 = require("../codec/ibc/applications/interchain_accounts/controller/v1/query");
22
- const query_17 = require("../codec/ibc/applications/interchain_accounts/host/v1/query");
23
- const query_18 = require("../codec/ibc/applications/transfer/v1/query");
24
- const query_19 = require("../codec/fee/query");
25
- const query_20 = require("../codec/inflation/query");
26
- const query_21 = require("../codec/insurance/query");
27
- const query_22 = require("../codec/leverage/query");
28
- const query_23 = require("../codec/liquidation/query");
29
- const query_24 = require("../codec/liquiditypool/query");
30
- const query_25 = require("../codec/market/query");
31
- const query_26 = require("../codec/marketstats/query");
32
- const query_27 = require("../codec/misc/query");
33
- const query_28 = require("../codec/oracle/query");
34
- const query_29 = require("../codec/order/query");
35
- const query_30 = require("../codec/position/query");
36
- const query_31 = require("../codec/pricing/query");
37
- const query_32 = require("../codec/profile/query");
38
- const query_33 = require("../codec/subaccount/query");
39
- const query_34 = require("../codec/headersync/query");
13
+ const query_8 = require("../codec/cosmos/base/tendermint/v1beta1/query");
14
+ const query_9 = require("../codec/cosmos/distribution/v1beta1/query");
15
+ const query_10 = require("../codec/cosmos/evidence/v1beta1/query");
16
+ const query_11 = require("../codec/cosmos/gov/v1beta1/query");
17
+ const query_12 = require("../codec/cosmos/mint/v1beta1/query");
18
+ const query_13 = require("../codec/cosmos/params/v1beta1/query");
19
+ const query_14 = require("../codec/cosmos/slashing/v1beta1/query");
20
+ const query_15 = require("../codec/cosmos/staking/v1beta1/query");
21
+ const query_16 = require("../codec/cosmos/upgrade/v1beta1/query");
22
+ const query_17 = require("../codec/fee/query");
23
+ const query_18 = require("../codec/headersync/query");
24
+ const query_19 = require("../codec/ibc/applications/interchain_accounts/controller/v1/query");
25
+ const query_20 = require("../codec/ibc/applications/interchain_accounts/host/v1/query");
26
+ const query_21 = require("../codec/ibc/applications/transfer/v1/query");
27
+ const query_22 = require("../codec/inflation/query");
28
+ const query_23 = require("../codec/insurance/query");
29
+ const query_24 = require("../codec/leverage/query");
30
+ const query_25 = require("../codec/liquidation/query");
31
+ const query_26 = require("../codec/liquiditypool/query");
32
+ const query_27 = require("../codec/market/query");
33
+ const query_28 = require("../codec/marketstats/query");
34
+ const query_29 = require("../codec/misc/query");
35
+ const query_30 = require("../codec/oracle/query");
36
+ const query_31 = require("../codec/order/query");
37
+ const query_32 = require("../codec/position/query");
38
+ const query_33 = require("../codec/pricing/query");
39
+ const query_34 = require("../codec/profile/query");
40
+ const query_35 = require("../codec/subaccount/query");
40
41
  const stargate_1 = require("@cosmjs/stargate");
41
42
  const BlockchainClient_1 = __importDefault(require("./BlockchainClient"));
42
43
  class CarbonQueryClient {
@@ -50,37 +51,41 @@ class CarbonQueryClient {
50
51
  this.broker = new query_3.QueryClientImpl(rpcClient);
51
52
  this.coin = new query_5.QueryClientImpl(rpcClient);
52
53
  this.cdp = new query_4.QueryClientImpl(rpcClient);
53
- this.fee = new query_19.QueryClientImpl(rpcClient);
54
- this.inflation = new query_20.QueryClientImpl(rpcClient);
55
- this.insurance = new query_21.QueryClientImpl(rpcClient);
56
- this.leverage = new query_22.QueryClientImpl(rpcClient);
57
- this.liquidation = new query_23.QueryClientImpl(rpcClient);
58
- this.liquiditypool = new query_24.QueryClientImpl(rpcClient);
59
- this.market = new query_25.QueryClientImpl(rpcClient);
60
- this.marketstats = new query_26.QueryClientImpl(rpcClient);
61
- this.misc = new query_27.QueryClientImpl(rpcClient);
62
- this.oracle = new query_28.QueryClientImpl(rpcClient);
63
- this.order = new query_29.QueryClientImpl(rpcClient);
64
- this.position = new query_30.QueryClientImpl(rpcClient);
65
- this.pricing = new query_31.QueryClientImpl(rpcClient);
66
- this.profile = new query_32.QueryClientImpl(rpcClient);
67
- this.subaccount = new query_33.QueryClientImpl(rpcClient);
68
- this.headersync = new query_34.QueryClientImpl(rpcClient);
54
+ this.fee = new query_17.QueryClientImpl(rpcClient);
55
+ this.inflation = new query_22.QueryClientImpl(rpcClient);
56
+ this.insurance = new query_23.QueryClientImpl(rpcClient);
57
+ this.leverage = new query_24.QueryClientImpl(rpcClient);
58
+ this.liquidation = new query_25.QueryClientImpl(rpcClient);
59
+ this.liquiditypool = new query_26.QueryClientImpl(rpcClient);
60
+ this.market = new query_27.QueryClientImpl(rpcClient);
61
+ this.marketstats = new query_28.QueryClientImpl(rpcClient);
62
+ this.misc = new query_29.QueryClientImpl(rpcClient);
63
+ this.oracle = new query_30.QueryClientImpl(rpcClient);
64
+ this.order = new query_31.QueryClientImpl(rpcClient);
65
+ this.position = new query_32.QueryClientImpl(rpcClient);
66
+ this.pricing = new query_33.QueryClientImpl(rpcClient);
67
+ this.profile = new query_34.QueryClientImpl(rpcClient);
68
+ this.subaccount = new query_35.QueryClientImpl(rpcClient);
69
+ this.headersync = new query_18.QueryClientImpl(rpcClient);
69
70
  this.auth = new query_6.QueryClientImpl(rpcClient);
70
71
  this.bank = new query_7.QueryClientImpl(rpcClient);
71
- this.distribution = new query_8.QueryClientImpl(rpcClient);
72
- this.evidence = new query_9.QueryClientImpl(rpcClient);
73
- this.gov = new query_10.QueryClientImpl(rpcClient);
74
- this.mint = new query_11.QueryClientImpl(rpcClient);
75
- this.params = new query_12.QueryClientImpl(rpcClient);
76
- this.slashing = new query_13.QueryClientImpl(rpcClient);
77
- this.staking = new query_14.QueryClientImpl(rpcClient);
78
- this.upgrade = new query_15.QueryClientImpl(rpcClient);
72
+ this.distribution = new query_9.QueryClientImpl(rpcClient);
73
+ this.evidence = new query_10.QueryClientImpl(rpcClient);
74
+ this.gov = new query_11.QueryClientImpl(rpcClient);
75
+ this.mint = new query_12.QueryClientImpl(rpcClient);
76
+ this.params = new query_13.QueryClientImpl(rpcClient);
77
+ this.slashing = new query_14.QueryClientImpl(rpcClient);
78
+ this.staking = new query_15.QueryClientImpl(rpcClient);
79
+ this.upgrade = new query_16.QueryClientImpl(rpcClient);
80
+ this.cosmosTm = new query_8.ServiceClientImpl(rpcClient);
79
81
  this.ibc = {
80
- controller: new query_16.QueryClientImpl(rpcClient),
81
- host: new query_17.QueryClientImpl(rpcClient),
82
- transfer: new query_18.QueryClientImpl(rpcClient),
82
+ controller: new query_19.QueryClientImpl(rpcClient),
83
+ host: new query_20.QueryClientImpl(rpcClient),
84
+ transfer: new query_21.QueryClientImpl(rpcClient),
83
85
  };
84
86
  }
87
+ getProtobufRpcClient() {
88
+ return (0, stargate_1.createProtobufRpcClient)(this.baseClient);
89
+ }
85
90
  }
86
91
  exports.default = CarbonQueryClient;
@@ -186,7 +186,7 @@ class ETHClient {
186
186
  feeAmount = overrideFee;
187
187
  }
188
188
  const amount = ethers_1.ethers.BigNumber.from(tokenWithExternalBalances.externalBalance);
189
- if (amount.lt(feeAmount.mul(exports.FEE_MULTIPLIER))) {
189
+ if (amount.lt(feeAmount)) {
190
190
  return "insufficient balance";
191
191
  }
192
192
  const networkConfig = this.getNetworkConfig();
@@ -235,16 +235,16 @@ class ETHClient {
235
235
  getDepositFeeAmount(token, depositAddress) {
236
236
  return __awaiter(this, void 0, void 0, function* () {
237
237
  const feeInfo = yield this.tokenClient.getFeeInfo(token.denom);
238
- if (!feeInfo.details.deposit.fee) {
238
+ if (!feeInfo.deposit_fee) {
239
239
  throw new Error("unsupported token");
240
240
  }
241
241
  if ((0, blockchain_1.blockchainForChainId)(token.chainId.toNumber()) !== this.blockchain) {
242
242
  throw new Error("unsupported token");
243
243
  }
244
- let feeAmount = ethers_1.ethers.BigNumber.from(feeInfo.details.deposit.fee);
244
+ let feeAmount = ethers_1.ethers.BigNumber.from(feeInfo.deposit_fee);
245
245
  const walletContractDeployed = yield this.isContract(depositAddress);
246
246
  if (!walletContractDeployed) {
247
- feeAmount = feeAmount.add(ethers_1.ethers.BigNumber.from(feeInfo.details.createWallet.fee));
247
+ feeAmount = feeAmount.add(ethers_1.ethers.BigNumber.from(feeInfo.create_wallet_fee));
248
248
  }
249
249
  return feeAmount;
250
250
  });
@@ -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_js_1 = require("@cityofzion/neon-js");
41
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");
@@ -1,5 +1,6 @@
1
1
  import { Token } from "../codec";
2
2
  import { NetworkConfigProvider } from "../constant";
3
+ import { FeeQuote } from "../hydrogen/feeQuote";
3
4
  import { BlockchainUtils, TypeUtils } from "../util";
4
5
  import BigNumber from "bignumber.js";
5
6
  import CarbonQueryClient from "./CarbonQueryClient";
@@ -10,6 +11,7 @@ declare class TokenClient {
10
11
  readonly tokens: TypeUtils.SimpleMap<Token>;
11
12
  readonly wrapperMap: TypeUtils.SimpleMap<string>;
12
13
  readonly poolTokens: TypeUtils.SimpleMap<Token>;
14
+ readonly cdpTokens: TypeUtils.SimpleMap<Token>;
13
15
  readonly symbols: TypeUtils.SimpleMap<string>;
14
16
  readonly usdValues: TypeUtils.SimpleMap<BigNumber>;
15
17
  readonly commonAssetNames: TypeUtils.SimpleMap<string>;
@@ -28,12 +30,13 @@ declare class TokenClient {
28
30
  toUnitless(denom: string, humanAmt: BigNumber): BigNumber;
29
31
  tokenForId(id: string): Token | undefined;
30
32
  tokenForDenom(denom: string): Token | undefined;
31
- getFeeInfo(denom: string): Promise<any>;
33
+ getFeeInfo(denom: string): Promise<FeeQuote>;
32
34
  getTokenName(denom: string, overrideMap?: TypeUtils.SimpleMap<string>): string;
33
35
  getTokenDesc(denom: string): string;
34
36
  static isPoolTokenNew(denom: string): boolean;
35
37
  static isPoolTokenLegacy(denom: string): boolean;
36
38
  static isPoolToken(denom: string): boolean;
39
+ static isCdpToken(denom: string): boolean;
37
40
  static isIBCDenom(denom: string): boolean;
38
41
  isWrappedToken(denom?: string): boolean;
39
42
  hasWrappedToken(denom?: string): boolean;
@@ -41,7 +44,9 @@ declare class TokenClient {
41
44
  getWrappedToken(denom: string, blockchain?: BlockchainUtils.Blockchain): Token | null;
42
45
  getSourceToken(denom: string): Token | null;
43
46
  getNativeToken(): Token | undefined;
47
+ getNativeStablecoin(): Token | undefined;
44
48
  isNativeToken(denom: string): boolean;
49
+ isNativeStablecoin(denom: string): boolean;
45
50
  getDepositTokenFor(tokenDenom: string, chain: BlockchainUtils.Blockchain): Token | undefined;
46
51
  getAllTokens(): Promise<Token[]>;
47
52
  reloadTokens(): Promise<TypeUtils.SimpleMap<Token>>;
@@ -39,6 +39,7 @@ class TokenClient {
39
39
  this.tokens = {};
40
40
  this.wrapperMap = {};
41
41
  this.poolTokens = {};
42
+ this.cdpTokens = {};
42
43
  this.symbols = {};
43
44
  this.usdValues = {};
44
45
  this.commonAssetNames = constant_1.CommonAssetName;
@@ -72,16 +73,16 @@ class TokenClient {
72
73
  return (_a = this.commonAssetNames[denom]) !== null && _a !== void 0 ? _a : denom;
73
74
  }
74
75
  getDecimals(denom) {
75
- var _a, _b;
76
- return (_b = ((_a = this.tokens[denom]) !== null && _a !== void 0 ? _a : this.poolTokens[denom])) === null || _b === void 0 ? void 0 : _b.decimals.toNumber();
76
+ var _a, _b, _c;
77
+ return (_c = ((_b = (_a = this.tokens[denom]) !== null && _a !== void 0 ? _a : this.poolTokens[denom]) !== null && _b !== void 0 ? _b : this.cdpTokens[denom])) === null || _c === void 0 ? void 0 : _c.decimals.toNumber();
77
78
  }
78
79
  getBlockchain(denom) {
79
80
  var _a, _b, _c;
80
81
  // chainId defaults to 3 so that blockchain will be undefined
81
82
  let chainId = (_c = (_b = (_a = this.tokens[denom]) === null || _a === void 0 ? void 0 : _a.chainId) === null || _b === void 0 ? void 0 : _b.toNumber()) !== null && _c !== void 0 ? _c : 3;
82
- if (this.isNativeToken(denom) || TokenClient.isPoolToken(denom)) {
83
- // native denom "swth" should be native.
84
- // pool tokens are on the Native blockchain, hence 0
83
+ if (this.isNativeToken(denom) || this.isNativeStablecoin(denom) || TokenClient.isPoolToken(denom) || TokenClient.isCdpToken(denom)) {
84
+ // native denoms "swth" and "usc" should be native.
85
+ // pool and cdp tokens are on the Native blockchain, hence 0
85
86
  chainId = 0;
86
87
  }
87
88
  if (TokenClient.isIBCDenom(denom)) {
@@ -117,7 +118,7 @@ class TokenClient {
117
118
  getFeeInfo(denom) {
118
119
  return __awaiter(this, void 0, void 0, function* () {
119
120
  const config = this.configProvider.getConfig();
120
- const url = `${config.feeURL}/fees?denom=${denom}`;
121
+ const url = `${config.hydrogenUrl}/fee_quote?token_denom=${denom}`;
121
122
  const result = yield fetch(url).then(res => res.json());
122
123
  return result;
123
124
  });
@@ -155,7 +156,7 @@ class TokenClient {
155
156
  return symbol;
156
157
  }
157
158
  getTokenDesc(denom) {
158
- var _a, _b;
159
+ var _a, _b, _c, _d;
159
160
  if (typeof denom !== 'string')
160
161
  return '';
161
162
  denom = denom.toLowerCase();
@@ -172,7 +173,10 @@ class TokenClient {
172
173
  const symbolB = this.getTokenName(denomB);
173
174
  return `${weightA}% ${symbolA} / ${weightB}% ${symbolB}`;
174
175
  }
175
- return (_b = (_a = this.tokens[denom]) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getSymbol(denom);
176
+ if (TokenClient.isCdpToken(denom)) {
177
+ return (_b = (_a = this.cdpTokens[denom]) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getSymbol(denom);
178
+ }
179
+ return (_d = (_c = this.tokens[denom]) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : this.getSymbol(denom);
176
180
  }
177
181
  static isPoolTokenNew(denom) {
178
182
  return denom.match(/^clpt\/(\d+)$/i) !== null;
@@ -183,6 +187,9 @@ class TokenClient {
183
187
  static isPoolToken(denom) {
184
188
  return this.isPoolTokenNew(denom) || this.isPoolTokenLegacy(denom);
185
189
  }
190
+ static isCdpToken(denom) {
191
+ return denom.includes('cdp/');
192
+ }
186
193
  static isIBCDenom(denom) {
187
194
  return denom.match(ibc_1.ibcTokenRegex) !== null;
188
195
  }
@@ -252,9 +259,15 @@ class TokenClient {
252
259
  getNativeToken() {
253
260
  return this.tokenForId("swth");
254
261
  }
262
+ getNativeStablecoin() {
263
+ return this.tokenForId("usc");
264
+ }
255
265
  isNativeToken(denom) {
256
266
  return denom === "swth";
257
267
  }
268
+ isNativeStablecoin(denom) {
269
+ return denom === "usc";
270
+ }
258
271
  getDepositTokenFor(tokenDenom, chain) {
259
272
  const token = this.tokenForDenom(tokenDenom);
260
273
  if (!token) {
@@ -300,6 +313,9 @@ class TokenClient {
300
313
  if (TokenClient.isPoolToken(token.denom)) {
301
314
  this.poolTokens[token.denom] = token;
302
315
  }
316
+ else if (TokenClient.isCdpToken(token.denom)) {
317
+ this.cdpTokens[token.denom] = token;
318
+ }
303
319
  else {
304
320
  if (this.isNativeToken(token.denom)) {
305
321
  // Change token name to Carbon
@@ -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 {
@@ -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 = {
@@ -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 */
@@ -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: "" };
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Amm } from "../broker/amm";
3
+ import { Amm } from "./amm";
4
4
  export declare const protobufPackage = "Switcheo.carbon.broker";
5
5
  /** GenesisState defines the broker module's genesis state. */
6
6
  export interface GenesisState {
@@ -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 amm_1 = require("../broker/amm");
10
+ const amm_1 = require("./amm");
11
11
  exports.protobufPackage = "Switcheo.carbon.broker";
12
12
  const baseGenesisState = {};
13
13
  exports.GenesisState = {
@@ -1,9 +1,9 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
3
  import { PageRequest, PageResponse } from "../query/pagination";
4
- import { MinMaxBoundary } from "../broker/pagination";
5
- import { Candlestick } from "../broker/candlestick";
6
- import { TradeEvent } from "../broker/event";
4
+ import { MinMaxBoundary } from "./pagination";
5
+ import { Candlestick } from "./candlestick";
6
+ import { TradeEvent } from "./event";
7
7
  export declare const protobufPackage = "Switcheo.carbon.broker";
8
8
  export interface QueryCandlesticksRequest {
9
9
  market: string;
@@ -8,9 +8,9 @@ exports.QueryClientImpl = exports.QueryTradesForPositionResponse = exports.Query
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
10
  const pagination_1 = require("../query/pagination");
11
- const pagination_2 = require("../broker/pagination");
12
- const candlestick_1 = require("../broker/candlestick");
13
- const event_1 = require("../broker/event");
11
+ const pagination_2 = require("./pagination");
12
+ const candlestick_1 = require("./candlestick");
13
+ const event_1 = require("./event");
14
14
  exports.protobufPackage = "Switcheo.carbon.broker";
15
15
  const baseQueryCandlesticksRequest = {
16
16
  market: "",
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { DenomInfo } from "../btcx/denom_info";
3
+ import { DenomInfo } from "./denom_info";
4
4
  export declare const protobufPackage = "Switcheo.carbon.btcx";
5
5
  export interface DenomCrossChainInfo {
6
6
  denomInfo?: DenomInfo;
@@ -7,7 +7,7 @@ exports.DenomCrossChainInfo = 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 denom_info_1 = require("../btcx/denom_info");
10
+ const denom_info_1 = require("./denom_info");
11
11
  exports.protobufPackage = "Switcheo.carbon.btcx";
12
12
  const baseDenomCrossChainInfo = {
13
13
  toChainId: long_1.default.UZERO,
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { DenomInfo } from "../btcx/denom_info";
3
+ import { DenomInfo } from "./denom_info";
4
4
  export declare const protobufPackage = "Switcheo.carbon.btcx";
5
5
  /** this line is used by starport scaffolding # 3 */
6
6
  export interface QueryGetDenomInfoRequest {
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryGetDenomCrossChainInfoResponse = exports.
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const denom_info_1 = require("../btcx/denom_info");
10
+ const denom_info_1 = require("./denom_info");
11
11
  exports.protobufPackage = "Switcheo.carbon.btcx";
12
12
  const baseQueryGetDenomInfoRequest = { denom: "" };
13
13
  exports.QueryGetDenomInfoRequest = {
@@ -1,6 +1,6 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { Params } from "../ccm/ccm";
3
+ import { Params } from "./ccm";
4
4
  export declare const protobufPackage = "Switcheo.carbon.ccm";
5
5
  /** GenesisState defines the ccm module's genesis state. */
6
6
  export interface GenesisState {
@@ -7,7 +7,7 @@ exports.GenesisState_ZionCreatedTxDetailsEntry = exports.GenesisState_DenomCreat
7
7
  /* eslint-disable */
8
8
  const long_1 = __importDefault(require("long"));
9
9
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
- const ccm_1 = require("../ccm/ccm");
10
+ const ccm_1 = require("./ccm");
11
11
  exports.protobufPackage = "Switcheo.carbon.ccm";
12
12
  const baseGenesisState = { createdTxCount: "" };
13
13
  exports.GenesisState = {
@@ -5,6 +5,7 @@ export interface AssetParams {
5
5
  denom: string;
6
6
  oracleId: string;
7
7
  rateStrategyName: string;
8
+ repayStablecoinInterestDebt: boolean;
8
9
  loanToValue: string;
9
10
  liquidationThreshold: string;
10
11
  liquidationBonus: string;
@@ -17,10 +18,6 @@ export interface AssetUtilization {
17
18
  totalAmount: string;
18
19
  utilizationRate: string;
19
20
  }
20
- export interface AssetData {
21
- assetParams?: AssetParams;
22
- assetUtilization?: AssetUtilization;
23
- }
24
21
  export declare const AssetParams: {
25
22
  encode(message: AssetParams, writer?: _m0.Writer): _m0.Writer;
26
23
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AssetParams;
@@ -35,13 +32,6 @@ export declare const AssetUtilization: {
35
32
  toJSON(message: AssetUtilization): unknown;
36
33
  fromPartial(object: DeepPartial<AssetUtilization>): AssetUtilization;
37
34
  };
38
- export declare const AssetData: {
39
- encode(message: AssetData, writer?: _m0.Writer): _m0.Writer;
40
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AssetData;
41
- fromJSON(object: any): AssetData;
42
- toJSON(message: AssetData): unknown;
43
- fromPartial(object: DeepPartial<AssetData>): AssetData;
44
- };
45
35
  declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
46
36
  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 {} ? {
47
37
  [K in keyof T]?: DeepPartial<T[K]>;