carbon-js-sdk 0.2.16-dev.4 → 0.2.17

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 (296) hide show
  1. package/lib/CarbonSDK.d.ts +1 -13
  2. package/lib/CarbonSDK.js +2 -31
  3. package/lib/clients/CarbonQueryClient.js +2 -2
  4. package/lib/clients/ETHClient.d.ts +1 -1
  5. package/lib/clients/ETHClient.js +15 -15
  6. package/lib/clients/HydrogenClient.js +1 -1
  7. package/lib/clients/N3Client.js +2 -3
  8. package/lib/clients/NEOClient.d.ts +1 -1
  9. package/lib/clients/NEOClient.js +7 -7
  10. package/lib/clients/TokenClient.d.ts +0 -5
  11. package/lib/clients/TokenClient.js +10 -38
  12. package/lib/clients/ZILClient.d.ts +1 -1
  13. package/lib/clients/ZILClient.js +16 -16
  14. package/lib/codec/book/genesis.d.ts +1 -1
  15. package/lib/codec/book/genesis.js +1 -1
  16. package/lib/codec/book/query.d.ts +1 -1
  17. package/lib/codec/book/query.js +1 -1
  18. package/lib/codec/broker/genesis.d.ts +1 -1
  19. package/lib/codec/broker/genesis.js +1 -1
  20. package/lib/codec/broker/query.d.ts +3 -3
  21. package/lib/codec/broker/query.js +3 -3
  22. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  23. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  24. package/lib/codec/btcx/query.d.ts +1 -1
  25. package/lib/codec/btcx/query.js +1 -1
  26. package/lib/codec/ccm/genesis.d.ts +1 -1
  27. package/lib/codec/ccm/genesis.js +1 -1
  28. package/lib/codec/cdp/event.d.ts +22 -389
  29. package/lib/codec/cdp/event.js +83 -2494
  30. package/lib/codec/cdp/genesis.d.ts +4 -97
  31. package/lib/codec/cdp/genesis.js +23 -648
  32. package/lib/codec/cdp/query.d.ts +89 -439
  33. package/lib/codec/cdp/query.js +173 -1991
  34. package/lib/codec/cdp/tx.d.ts +96 -760
  35. package/lib/codec/cdp/tx.js +235 -3645
  36. package/lib/codec/coin/event.d.ts +1 -1
  37. package/lib/codec/coin/event.js +1 -1
  38. package/lib/codec/coin/genesis.d.ts +2 -2
  39. package/lib/codec/coin/genesis.js +2 -2
  40. package/lib/codec/coin/proposal.d.ts +1 -1
  41. package/lib/codec/coin/proposal.js +1 -1
  42. package/lib/codec/coin/query.d.ts +2 -2
  43. package/lib/codec/coin/query.js +2 -2
  44. package/lib/codec/coin/tx.d.ts +1 -1
  45. package/lib/codec/coin/tx.js +1 -1
  46. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  47. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  48. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  49. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  50. package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +1 -1
  51. package/lib/codec/cosmos/authz/v1beta1/genesis.js +1 -1
  52. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
  53. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
  54. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  55. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  56. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  57. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  58. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  59. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  60. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  61. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  62. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
  63. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
  64. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  65. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  66. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  67. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  68. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  69. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  70. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  71. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  72. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  73. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  74. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  75. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  76. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  77. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  78. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  79. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  80. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  81. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  82. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  83. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  84. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  85. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  86. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  87. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
  88. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  89. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  90. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  91. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  92. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  93. package/lib/codec/cosmos/gov/v1beta1/query.js +4 -4
  94. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  95. package/lib/codec/cosmos/gov/v1beta1/tx.js +4 -4
  96. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  97. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  98. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  99. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  100. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  101. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  102. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  103. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  104. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  105. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  106. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  107. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  108. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  109. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  110. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  111. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  112. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  113. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  114. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  115. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  116. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
  117. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
  118. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
  119. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
  120. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  121. package/lib/codec/cosmos/tx/v1beta1/tx.js +5 -5
  122. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  123. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  124. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  125. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  126. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  127. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  128. package/lib/codec/fee/genesis.d.ts +1 -1
  129. package/lib/codec/fee/genesis.js +1 -1
  130. package/lib/codec/fee/proposal.d.ts +1 -1
  131. package/lib/codec/fee/proposal.js +1 -1
  132. package/lib/codec/fee/query.d.ts +1 -1
  133. package/lib/codec/fee/query.js +1 -1
  134. package/lib/codec/fee/tx.d.ts +1 -1
  135. package/lib/codec/fee/tx.js +1 -1
  136. package/lib/codec/headersync/genesis.d.ts +1 -1
  137. package/lib/codec/headersync/genesis.js +1 -1
  138. package/lib/codec/headersync/query.d.ts +1 -1
  139. package/lib/codec/headersync/query.js +1 -1
  140. package/lib/codec/index.d.ts +18 -89
  141. package/lib/codec/index.js +180 -463
  142. package/lib/codec/inflation/genesis.d.ts +1 -1
  143. package/lib/codec/inflation/genesis.js +1 -1
  144. package/lib/codec/inflation/query.d.ts +1 -1
  145. package/lib/codec/inflation/query.js +1 -1
  146. package/lib/codec/insurance/genesis.d.ts +1 -1
  147. package/lib/codec/insurance/genesis.js +1 -1
  148. package/lib/codec/leverage/genesis.d.ts +1 -1
  149. package/lib/codec/leverage/genesis.js +1 -1
  150. package/lib/codec/leverage/query.d.ts +1 -1
  151. package/lib/codec/leverage/query.js +1 -1
  152. package/lib/codec/liquidation/genesis.d.ts +1 -1
  153. package/lib/codec/liquidation/genesis.js +1 -1
  154. package/lib/codec/liquidation/query.d.ts +1 -1
  155. package/lib/codec/liquidation/query.js +1 -1
  156. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  157. package/lib/codec/liquidation/quote_changes.js +1 -1
  158. package/lib/codec/liquiditypool/event.d.ts +2 -2
  159. package/lib/codec/liquiditypool/event.js +2 -2
  160. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  161. package/lib/codec/liquiditypool/genesis.js +2 -2
  162. package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -3
  163. package/lib/codec/liquiditypool/liquiditypool.js +1 -44
  164. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  165. package/lib/codec/liquiditypool/proposal.js +1 -1
  166. package/lib/codec/liquiditypool/query.d.ts +2 -39
  167. package/lib/codec/liquiditypool/query.js +3 -195
  168. package/lib/codec/liquiditypool/tx.d.ts +1 -3
  169. package/lib/codec/liquiditypool/tx.js +1 -35
  170. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  171. package/lib/codec/lockproxy/genesis.js +1 -1
  172. package/lib/codec/lockproxy/query.d.ts +1 -1
  173. package/lib/codec/lockproxy/query.js +1 -1
  174. package/lib/codec/market/event.d.ts +1 -1
  175. package/lib/codec/market/event.js +1 -1
  176. package/lib/codec/market/genesis.d.ts +1 -1
  177. package/lib/codec/market/genesis.js +1 -1
  178. package/lib/codec/market/proposal.d.ts +1 -1
  179. package/lib/codec/market/proposal.js +1 -1
  180. package/lib/codec/market/query.d.ts +1 -1
  181. package/lib/codec/market/query.js +1 -1
  182. package/lib/codec/market/tx.d.ts +1 -1
  183. package/lib/codec/market/tx.js +1 -1
  184. package/lib/codec/marketstats/genesis.d.ts +1 -1
  185. package/lib/codec/marketstats/genesis.js +1 -1
  186. package/lib/codec/marketstats/query.d.ts +2 -2
  187. package/lib/codec/marketstats/query.js +2 -2
  188. package/lib/codec/misc/message.d.ts +1 -1
  189. package/lib/codec/misc/message.js +1 -1
  190. package/lib/codec/misc/query.d.ts +3 -3
  191. package/lib/codec/misc/query.js +3 -3
  192. package/lib/codec/misc/transaction.d.ts +1 -1
  193. package/lib/codec/misc/transaction.js +1 -1
  194. package/lib/codec/oracle/event.d.ts +1 -1
  195. package/lib/codec/oracle/event.js +1 -1
  196. package/lib/codec/oracle/genesis.d.ts +1 -4
  197. package/lib/codec/oracle/genesis.js +3 -34
  198. package/lib/codec/oracle/proposal.d.ts +1 -1
  199. package/lib/codec/oracle/proposal.js +1 -1
  200. package/lib/codec/oracle/query.d.ts +2 -2
  201. package/lib/codec/oracle/query.js +2 -2
  202. package/lib/codec/order/event.d.ts +1 -1
  203. package/lib/codec/order/event.js +1 -1
  204. package/lib/codec/order/genesis.d.ts +1 -1
  205. package/lib/codec/order/genesis.js +1 -1
  206. package/lib/codec/order/query.d.ts +1 -1
  207. package/lib/codec/order/query.js +1 -1
  208. package/lib/codec/position/event.d.ts +1 -1
  209. package/lib/codec/position/event.js +1 -1
  210. package/lib/codec/position/genesis.d.ts +1 -1
  211. package/lib/codec/position/genesis.js +1 -1
  212. package/lib/codec/position/query.d.ts +1 -1
  213. package/lib/codec/position/query.js +1 -1
  214. package/lib/codec/pricing/event.d.ts +1 -56
  215. package/lib/codec/pricing/event.js +2 -298
  216. package/lib/codec/pricing/genesis.d.ts +1 -2
  217. package/lib/codec/pricing/genesis.js +5 -20
  218. package/lib/codec/pricing/pricing.d.ts +0 -14
  219. package/lib/codec/pricing/pricing.js +1 -103
  220. package/lib/codec/pricing/query.d.ts +1 -68
  221. package/lib/codec/pricing/query.js +2 -321
  222. package/lib/codec/pricing/tx.d.ts +0 -96
  223. package/lib/codec/pricing/tx.js +1 -399
  224. package/lib/codec/profile/event.d.ts +1 -1
  225. package/lib/codec/profile/event.js +1 -1
  226. package/lib/codec/profile/genesis.d.ts +1 -1
  227. package/lib/codec/profile/genesis.js +1 -1
  228. package/lib/codec/profile/query.d.ts +1 -1
  229. package/lib/codec/profile/query.js +1 -1
  230. package/lib/codec/subaccount/genesis.d.ts +1 -1
  231. package/lib/codec/subaccount/genesis.js +1 -1
  232. package/lib/codec/subaccount/query.d.ts +1 -1
  233. package/lib/codec/subaccount/query.js +1 -1
  234. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  235. package/lib/codec/tendermint/abci/types.js +4 -4
  236. package/lib/codec/tendermint/types/block.d.ts +2 -2
  237. package/lib/codec/tendermint/types/block.js +2 -2
  238. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  239. package/lib/codec/tendermint/types/evidence.js +2 -2
  240. package/lib/codec/tendermint/types/types.d.ts +3 -3
  241. package/lib/codec/tendermint/types/types.js +3 -3
  242. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  243. package/lib/codec/tendermint/types/validator.js +1 -1
  244. package/lib/constant/generic.js +1 -1
  245. package/lib/constant/token.d.ts +0 -4
  246. package/lib/constant/token.js +1 -5
  247. package/lib/modules/admin.d.ts +7 -114
  248. package/lib/modules/admin.js +53 -275
  249. package/lib/modules/cdp.d.ts +13 -152
  250. package/lib/modules/cdp.js +20 -800
  251. package/lib/modules/gov.js +14 -14
  252. package/lib/modules/liquiditypool.d.ts +0 -3
  253. package/lib/modules/liquiditypool.js +1 -3
  254. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  255. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  256. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  257. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
  258. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  259. package/lib/provider/amino/types/admin.js +26 -91
  260. package/lib/provider/amino/types/bank.js +1 -1
  261. package/lib/provider/amino/types/broker.js +1 -1
  262. package/lib/provider/amino/types/cdp.js +24 -135
  263. package/lib/provider/amino/types/coin.js +2 -2
  264. package/lib/provider/amino/types/gov.js +4 -4
  265. package/lib/provider/amino/types/ibc.js +1 -1
  266. package/lib/provider/amino/types/leverage.js +1 -1
  267. package/lib/provider/amino/types/liquidityPool.js +7 -9
  268. package/lib/provider/amino/types/market.js +1 -1
  269. package/lib/provider/amino/types/oracle.js +1 -1
  270. package/lib/provider/amino/types/order.js +4 -4
  271. package/lib/provider/amino/types/position.js +1 -1
  272. package/lib/provider/amino/types/profile.js +1 -1
  273. package/lib/provider/amino/types/staking.js +4 -4
  274. package/lib/provider/amino/types/subaccount.js +3 -3
  275. package/lib/provider/amino/utils.js +11 -11
  276. package/lib/provider/keplr/KeplrStore.js +1 -1
  277. package/lib/provider/ledger/ledger.js +2 -2
  278. package/lib/provider/metamask/MetaMask.js +1 -1
  279. package/lib/provider/o3/O3Wallet.js +2 -2
  280. package/lib/util/address.d.ts +0 -1
  281. package/lib/util/address.js +13 -21
  282. package/lib/util/api.js +4 -4
  283. package/lib/util/fetch.js +1 -1
  284. package/lib/util/generic.js +3 -3
  285. package/lib/util/number.d.ts +0 -1
  286. package/lib/util/number.js +6 -7
  287. package/lib/util/tx.d.ts +10 -74
  288. package/lib/wallet/CarbonSigner.js +2 -2
  289. package/lib/wallet/CarbonSigningClient.js +8 -8
  290. package/lib/wallet/CarbonWallet.js +7 -6
  291. package/lib/websocket/channel.js +21 -115
  292. package/lib/websocket/connector.js +3 -3
  293. package/lib/websocket/models.d.ts +0 -156
  294. package/lib/websocket/types.d.ts +3 -87
  295. package/lib/websocket/types.js +0 -31
  296. package/package.json +1 -1
@@ -87,7 +87,7 @@ class CarbonSigningClient extends stargate_1.StargateClient {
87
87
  */
88
88
  sign(signerAddress, messages, fee, memo, signerData) {
89
89
  return __awaiter(this, void 0, void 0, function* () {
90
- return proto_signing_1.isOfflineDirectSigner(this.signer)
90
+ return (0, proto_signing_1.isOfflineDirectSigner)(this.signer)
91
91
  ? this.signDirect(signerAddress, messages, fee, memo, signerData)
92
92
  : this.signAmino(signerAddress, messages, fee, memo, signerData);
93
93
  });
@@ -99,7 +99,7 @@ class CarbonSigningClient extends stargate_1.StargateClient {
99
99
  if (!accountFromSigner) {
100
100
  throw new Error("Failed to retrieve account from signer");
101
101
  }
102
- const pubkey = proto_signing_1.encodePubkey(amino_1.encodeSecp256k1Pubkey(accountFromSigner.pubkey));
102
+ const pubkey = (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(accountFromSigner.pubkey));
103
103
  const txBodyEncodeObject = {
104
104
  typeUrl: "/cosmos.tx.v1beta1.TxBody",
105
105
  value: Object.assign({ messages: messages, memo: memo }, timeoutHeight && {
@@ -108,13 +108,13 @@ class CarbonSigningClient extends stargate_1.StargateClient {
108
108
  };
109
109
  const txBodyBytes = this.registry.encode(txBodyEncodeObject);
110
110
  const gasLimit = math_1.Int53.fromString(fee.gas).toNumber();
111
- const authInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence }], fee.amount, gasLimit);
112
- const signDoc = proto_signing_1.makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber);
111
+ const authInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence }], fee.amount, gasLimit);
112
+ const signDoc = (0, proto_signing_1.makeSignDoc)(txBodyBytes, authInfoBytes, chainId, accountNumber);
113
113
  const { signature, signed } = yield signer.signDirect(signerAddress, signDoc);
114
114
  return tx_1.TxRaw.fromPartial({
115
115
  bodyBytes: signed.bodyBytes,
116
116
  authInfoBytes: signed.authInfoBytes,
117
- signatures: [encoding_1.fromBase64(signature.signature)],
117
+ signatures: [(0, encoding_1.fromBase64)(signature.signature)],
118
118
  });
119
119
  });
120
120
  }
@@ -125,7 +125,7 @@ class CarbonSigningClient extends stargate_1.StargateClient {
125
125
  if (!accountFromSigner) {
126
126
  throw new Error("Failed to retrieve account from signer");
127
127
  }
128
- const pubkey = proto_signing_1.encodePubkey(amino_1.encodeSecp256k1Pubkey(accountFromSigner.pubkey));
128
+ const pubkey = (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(accountFromSigner.pubkey));
129
129
  const signMode = SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
130
130
  const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
131
131
  const signDoc = makeSignDocAmino(msgs, fee, chainId, memo, accountNumber, sequence, timeoutHeight !== null && timeoutHeight !== void 0 ? timeoutHeight : 0);
@@ -140,11 +140,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
140
140
  const signedTxBodyBytes = this.registry.encode(signedTxBodyEncodeObject);
141
141
  const signedGasLimit = math_1.Int53.fromString(signed.fee.gas).toNumber();
142
142
  const signedSequence = math_1.Int53.fromString(signed.sequence).toNumber();
143
- const signedAuthInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, signMode);
143
+ const signedAuthInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, signMode);
144
144
  return tx_1.TxRaw.fromPartial({
145
145
  bodyBytes: signedTxBodyBytes,
146
146
  authInfoBytes: signedAuthInfoBytes,
147
- signatures: [encoding_1.fromBase64(signature.signature)],
147
+ signatures: [(0, encoding_1.fromBase64)(signature.signature)],
148
148
  });
149
149
  });
150
150
  }
@@ -148,7 +148,7 @@ class CarbonWallet {
148
148
  const signerData = Object.assign({ accountNumber: this.accountInfo.accountNumber, chainId: this.getChainId(), sequence }, explicitSignerData);
149
149
  const fee = (_a = opts === null || opts === void 0 ? void 0 : opts.fee) !== null && _a !== void 0 ? _a : this.estimateTxFee(messages, feeDenom);
150
150
  const txRaw = yield signingClient.sign(signerAddress, messages, fee, memo, signerData);
151
- signature = amino_1.encodeSecp256k1Signature(account.pubkey, txRaw.signatures[0]);
151
+ signature = (0, amino_1.encodeSecp256k1Signature)(account.pubkey, txRaw.signatures[0]);
152
152
  return txRaw;
153
153
  }
154
154
  finally {
@@ -166,8 +166,9 @@ class CarbonWallet {
166
166
  const tx = CarbonWallet.TxRaw.encode(txRaw).finish();
167
167
  const carbonClient = this.getSigningClient();
168
168
  const response = yield carbonClient.broadcastTx(tx, timeoutMs, pollIntervalMs);
169
- if (stargate_1.isDeliverTxFailure(response)) {
169
+ if ((0, stargate_1.isDeliverTxFailure)(response)) {
170
170
  // tx failed
171
+ console.error(response);
171
172
  throw new Error(`[${response.code}] ${response.rawLog}`);
172
173
  }
173
174
  return response;
@@ -205,9 +206,9 @@ class CarbonWallet {
205
206
  try {
206
207
  if (!this.accountInfo || this.sequenceInvalidated)
207
208
  yield this.reloadAccountSequence();
208
- const heightResponse = yield fetch_1.fetch(`${this.networkConfig.tmRpcUrl}/blockchain?cache=${new Date().getTime()}`);
209
+ const heightResponse = yield (0, fetch_1.fetch)(`${this.networkConfig.tmRpcUrl}/blockchain?cache=${new Date().getTime()}`);
209
210
  const heightRes = yield heightResponse.json();
210
- const height = number_1.bnOrZero((_a = heightRes.result) === null || _a === void 0 ? void 0 : _a.last_height);
211
+ const height = (0, number_1.bnOrZero)((_a = heightRes.result) === null || _a === void 0 ? void 0 : _a.last_height);
211
212
  const timeoutHeight = height.isZero() ? undefined : height.toNumber() + this.defaultTimeoutBlocks;
212
213
  const sequence = this.accountInfo.sequence;
213
214
  this.accountInfo = Object.assign(Object.assign({}, this.accountInfo), { sequence: sequence + 1 });
@@ -341,12 +342,12 @@ class CarbonWallet {
341
342
  const queryClient = this.getQueryClient();
342
343
  const { msgGasCosts } = yield queryClient.fee.MsgGasCostAll({});
343
344
  this.txGasCosts = msgGasCosts.reduce((result, item) => {
344
- result[item.msgType] = number_1.bnOrZero(item.gasCost);
345
+ result[item.msgType] = (0, number_1.bnOrZero)(item.gasCost);
345
346
  return result;
346
347
  }, {});
347
348
  const { minGasPrices } = yield queryClient.fee.MinGasPriceAll({});
348
349
  this.txGasPrices = minGasPrices.reduce((result, item) => {
349
- result[item.denom] = number_1.bnOrZero(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
350
+ result[item.denom] = (0, number_1.bnOrZero)(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
350
351
  return result;
351
352
  }, {});
352
353
  if (!this.txGasPrices[this.defaultFeeDenom]) {
@@ -68,104 +68,60 @@ const generateChannelId = (params) => {
68
68
  const { channel, id } = params;
69
69
  return [channel, id].join(':');
70
70
  }
71
- case types_1.WSChannel.token_prices: {
72
- const { channel } = params;
73
- return [channel].join(':');
74
- }
75
- case types_1.WSChannel.token_prices_by_denom: {
76
- const { channel, denom } = params;
77
- return [channel, denom].join(':');
78
- }
79
71
  case types_1.WSChannel.commitments: {
80
72
  const { channel, address } = params;
81
73
  return [channel, address].join(':');
82
74
  }
83
- case types_1.WSChannel.cdp_borrows: {
84
- const { channel, address } = params;
85
- return [channel, address].join(':');
86
- }
87
- case types_1.WSChannel.cdp_collaterals: {
88
- const { channel, address } = params;
89
- return [channel, address].join(':');
90
- }
91
- case types_1.WSChannel.cdp_liquidate_collaterals: {
92
- const { channel } = params;
93
- return [channel].join(':');
94
- }
95
- case types_1.WSChannel.cdp_token_debts: {
96
- const { channel } = params;
97
- return [channel].join(':');
98
- }
99
- case types_1.WSChannel.cdp_token_debts_by_denom: {
100
- const { channel, denom } = params;
101
- return [channel, denom].join(':');
102
- }
103
- case types_1.WSChannel.cdp_reward_schemes: {
104
- const { channel } = params;
105
- return [channel].join(':');
106
- }
107
- case types_1.WSChannel.cdp_reward_debts: {
108
- const { channel, address } = params;
109
- return [channel, address].join(':');
110
- }
111
- case types_1.WSChannel.cdp_token_supply: {
112
- const { channel } = params;
113
- return [channel].join(':');
114
- }
115
- case types_1.WSChannel.cdp_token_supply_by_denom: {
116
- const { channel, denom } = params;
117
- return [channel, denom].join(':');
118
- }
119
75
  default:
120
76
  throw new Error(`invalid subscription channel: ${params.channel}`);
121
77
  }
122
78
  };
123
79
  exports.generateChannelId = generateChannelId;
124
80
  const parseChannelId = (rawChannelId) => {
125
- const [channel, param0, param1] = rawChannelId.split(':');
81
+ const [channel, market, resolution, address, id] = rawChannelId.split(':');
126
82
  switch (channel) {
127
83
  case types_1.WSChannel.candlesticks:
128
84
  return {
129
85
  channel,
130
- market: param0,
131
- resolution: param1,
86
+ market,
87
+ resolution,
132
88
  };
133
89
  case types_1.WSChannel.books:
134
90
  return {
135
91
  channel,
136
- market: param0,
92
+ market,
137
93
  };
138
94
  case types_1.WSChannel.recent_trades:
139
95
  return {
140
96
  channel,
141
- market: param0,
97
+ market,
142
98
  };
143
99
  case types_1.WSChannel.orders:
144
100
  return {
145
101
  channel,
146
- address: param0,
102
+ address,
147
103
  };
148
104
  case types_1.WSChannel.orders_by_market:
149
105
  return {
150
106
  channel,
151
- market: param0,
152
- address: param1,
107
+ market,
108
+ address,
153
109
  };
154
110
  case types_1.WSChannel.balances:
155
111
  return {
156
112
  channel,
157
- address: param0,
113
+ address,
158
114
  };
159
115
  case types_1.WSChannel.account_trades:
160
116
  return {
161
117
  channel,
162
- address: param0,
118
+ address,
163
119
  };
164
120
  case types_1.WSChannel.account_trades_by_market:
165
121
  return {
166
122
  channel,
167
- market: param0,
168
- address: param1,
123
+ market,
124
+ address,
169
125
  };
170
126
  case types_1.WSChannel.market_stats:
171
127
  return {
@@ -174,29 +130,29 @@ const parseChannelId = (rawChannelId) => {
174
130
  case types_1.WSChannel.market_stats_by_market:
175
131
  return {
176
132
  channel,
177
- market: param0,
133
+ market,
178
134
  };
179
135
  case types_1.WSChannel.leverages:
180
136
  return {
181
137
  channel,
182
- address: param0,
138
+ address,
183
139
  };
184
140
  case types_1.WSChannel.leverages_by_market:
185
141
  return {
186
142
  channel,
187
- market: param0,
188
- address: param1,
143
+ market,
144
+ address,
189
145
  };
190
146
  case types_1.WSChannel.positions:
191
147
  return {
192
148
  channel,
193
- address: param0,
149
+ address,
194
150
  };
195
151
  case types_1.WSChannel.positions_by_market:
196
152
  return {
197
153
  channel,
198
- market: param0,
199
- address: param1,
154
+ market,
155
+ address,
200
156
  };
201
157
  case types_1.WSChannel.pools:
202
158
  return {
@@ -205,62 +161,12 @@ const parseChannelId = (rawChannelId) => {
205
161
  case types_1.WSChannel.pools_by_id:
206
162
  return {
207
163
  channel,
208
- id: param0,
164
+ id,
209
165
  };
210
166
  case types_1.WSChannel.commitments:
211
167
  return {
212
168
  channel,
213
- address: param0,
214
- };
215
- case types_1.WSChannel.token_prices:
216
- return {
217
- channel,
218
- };
219
- case types_1.WSChannel.token_prices:
220
- return {
221
- channel,
222
- denom: param0,
223
- };
224
- case types_1.WSChannel.cdp_borrows:
225
- return {
226
- channel,
227
- address: param0,
228
- };
229
- case types_1.WSChannel.cdp_collaterals:
230
- return {
231
- channel,
232
- address: param0,
233
- };
234
- case types_1.WSChannel.cdp_liquidate_collaterals:
235
- return {
236
- channel,
237
- };
238
- case types_1.WSChannel.cdp_token_debts:
239
- return {
240
- channel,
241
- };
242
- case types_1.WSChannel.cdp_token_debts_by_denom:
243
- return {
244
- channel,
245
- denom: param0,
246
- };
247
- case types_1.WSChannel.cdp_reward_schemes:
248
- return {
249
- channel,
250
- };
251
- case types_1.WSChannel.cdp_reward_debts:
252
- return {
253
- channel,
254
- address: param0,
255
- };
256
- case types_1.WSChannel.cdp_token_supply:
257
- return {
258
- channel,
259
- };
260
- case types_1.WSChannel.cdp_token_supply_by_denom:
261
- return {
262
- channel,
263
- denom: param0,
169
+ address,
264
170
  };
265
171
  default:
266
172
  throw new Error('Error parsing channelId');
@@ -171,7 +171,7 @@ class WSConnector {
171
171
  params = [params]; // eslint-disable-line no-param-reassign
172
172
  }
173
173
  for (const param of params) {
174
- const channelId = channel_1.generateChannelId(param);
174
+ const channelId = (0, channel_1.generateChannelId)(param);
175
175
  const shouldSubscribe = this.channelHandlers[channelId] === undefined;
176
176
  this.channelHandlers[channelId] = handler;
177
177
  if (shouldSubscribe) {
@@ -193,7 +193,7 @@ class WSConnector {
193
193
  }
194
194
  const channelIds = [];
195
195
  for (const param of params) {
196
- const channelId = channel_1.generateChannelId(param);
196
+ const channelId = (0, channel_1.generateChannelId)(param);
197
197
  delete this.channelHandlers[channelId];
198
198
  }
199
199
  this.send('unsubscribe', {
@@ -279,7 +279,7 @@ class WSConnector {
279
279
  if (!channelHandler) {
280
280
  this.debugLog(`handler not found for channel: ${message.channel}`);
281
281
  try {
282
- const params = channel_1.parseChannelId(message.channel);
282
+ const params = (0, channel_1.parseChannelId)(message.channel);
283
283
  this.unsubscribe({ channel: params.channel });
284
284
  }
285
285
  catch (error) {
@@ -143,9 +143,6 @@ export interface Pool {
143
143
  num_quotes: number;
144
144
  shares_amount: string;
145
145
  market: string;
146
- amp_bps: string;
147
- v_amount_a: string;
148
- v_amount_b: string;
149
146
  };
150
147
  rewards_weight: string;
151
148
  total_commitment: string;
@@ -163,156 +160,3 @@ export interface Commitment {
163
160
  export interface CommitmentEvent extends Commitment {
164
161
  Type?: string;
165
162
  }
166
- export interface TokenPrice {
167
- denom: string;
168
- index: string;
169
- index_updated_at: string;
170
- twap: string;
171
- }
172
- export interface CDPParams {
173
- interest_fee: string;
174
- liquidation_fee: string;
175
- stablecoin_interest_rate: string;
176
- complete_liquidation_threshold: string;
177
- minimum_close_factor: string;
178
- small_liquidation_size: string;
179
- }
180
- export interface RateStrategy {
181
- name: string;
182
- optimal_usage: string;
183
- base_variable_borrow_rate: string;
184
- variable_rate_slope_1: string;
185
- variable_rate_slope_2: string;
186
- base_stable_borrow_rate: string;
187
- stable_rate_slope_1: string;
188
- stable_rate_slope_2: string;
189
- optimal_stable_to_total_debt_ratio: string;
190
- }
191
- /**
192
- * @deprecated old websocket response struct for get_cdp_assets_all
193
- * use AssetParams instead
194
- */
195
- export interface Asset {
196
- asset_params: {
197
- denom: string;
198
- oracle_id: string;
199
- rate_strategy_name: string;
200
- loan_to_value: string;
201
- liquidation_threshold: string;
202
- liquidation_bonus: string;
203
- supply_cap: string;
204
- borrow_cap: string;
205
- };
206
- asset_utilization: {
207
- denom: string;
208
- total_borrowed: string;
209
- total_amount: string;
210
- utilization_rate: string;
211
- };
212
- }
213
- export interface AssetParams {
214
- denom: string;
215
- oracle_id: string;
216
- rate_strategy_name: string;
217
- allow_repay_stablecoin_interest_debt: boolean;
218
- loan_to_value: string;
219
- liquidation_threshold: string;
220
- liquidation_discount: string;
221
- supply_cap: string;
222
- borrow_cap: string;
223
- }
224
- export interface Collateral {
225
- cdp_denom: string;
226
- denom: string;
227
- collateral_amount: string;
228
- }
229
- export interface Debt {
230
- denom: string;
231
- principal_debt: string;
232
- initial_cumulative_interest_multiplier: string;
233
- }
234
- export interface AccountData {
235
- total_collaterals_usd: string;
236
- total_debts_usd: string;
237
- available_borrows_usd: string;
238
- curr_liquidation_threshold: string;
239
- health_factor: string;
240
- }
241
- export interface CDPAccountStablecoin {
242
- principal_debt: string;
243
- interest_debt: string;
244
- initial_cumulative_interest_multiplier: string;
245
- }
246
- /**
247
- * Response for get_cdp_total_borrows and get_cdp_borrows
248
- * Do not confuse with Debt
249
- */
250
- export interface CDPBorrow {
251
- address: string;
252
- amount: string;
253
- denom: string;
254
- type: string;
255
- initial_cumulative_interest_multiplier?: string;
256
- }
257
- /**
258
- * Response for get_cdp_total_collaterals and get_cdp_collaterals
259
- * Do not confuse with Collateral
260
- */
261
- export interface CDPCollateral {
262
- address: string;
263
- amount: string;
264
- denom: string;
265
- }
266
- export interface CDPDebtInfo {
267
- denom: string;
268
- last_updated_time: string;
269
- total_principal: string;
270
- cumulative_interest_multiplier: string;
271
- total_accumulated_interest: string;
272
- utilization_rate: string;
273
- }
274
- export interface CDPStableCoinDebtInfo {
275
- denom: string;
276
- last_updated_time: string;
277
- total_principal: string;
278
- cumulative_interest_multiplier: string;
279
- total_accumulated_interest: string;
280
- }
281
- export interface CDPLiquidation {
282
- liquidator: string;
283
- debtor: string;
284
- collateral_denom: string;
285
- collateral_amount_liquidated: string;
286
- collateral_amount_liquidator: string;
287
- collateral_amount_fee: string;
288
- liquidation_price: string;
289
- market_price: string;
290
- discount: string;
291
- debt_denom: string;
292
- debt_amount: string;
293
- block_height: number;
294
- block_time: string;
295
- transaction_hash: string;
296
- }
297
- export interface RewardScheme {
298
- id: number;
299
- creator: string;
300
- reward_denom: string;
301
- asset_denom: string;
302
- reward_type: string;
303
- reward_amount_per_second: string;
304
- start_time: string;
305
- end_time: string;
306
- reward_per_share_last_updated_at: string;
307
- reward_per_share: string;
308
- }
309
- export interface RewardDebt {
310
- user_address: string;
311
- reward_scheme_id: number;
312
- reward_debt: string;
313
- last_updated_at: string;
314
- }
315
- export interface CDPTokenSupply {
316
- cdp_denom: string;
317
- amount: string;
318
- }
@@ -15,18 +15,7 @@ export declare enum WSChannel {
15
15
  positions_by_market = "positions_by_market",
16
16
  pools = "pools",
17
17
  pools_by_id = "pools_by_id",
18
- token_prices = "token_prices",
19
- token_prices_by_denom = "token_prices_by_denom",
20
- commitments = "commitments",
21
- cdp_borrows = "cdp_borrows",
22
- cdp_collaterals = "cdp_collaterals",
23
- cdp_liquidate_collaterals = "cdp_liquidate_collaterals",
24
- cdp_token_debts = "cdp_token_debts",
25
- cdp_token_debts_by_denom = "cdp_token_debts_by_denom",
26
- cdp_reward_schemes = "cdp_reward_schemes",
27
- cdp_reward_debts = "cdp_reward_debts",
28
- cdp_token_supply = "cdp_token_supply",
29
- cdp_token_supply_by_denom = "cdp_token_supply_by_denom"
18
+ commitments = "commitments"
30
19
  }
31
20
  export declare enum WSRequest {
32
21
  MarketStats = "get_market_stats",
@@ -42,27 +31,7 @@ export declare enum WSRequest {
42
31
  Balances = "get_balances",
43
32
  OrderBook = "get_orderbook",
44
33
  Pools = "get_pools",
45
- Commitments = "get_commitments",
46
- CDPAllAssets = "get_cdp_all_assets",
47
- CDPAssets = "get_cdp_assets",
48
- CDPAccountCollaterals = "get_cdp_account_collaterals",
49
- CDPAccountDebts = "get_cdp_account_debts",
50
- CDPAccountData = "get_cdp_account_data",
51
- CDPParams = "get_cdp_params",
52
- CDPAllRateStrategies = "get_cdp_all_rate_strategies",
53
- CDPRateStrategies = "get_cdp_rate_strategies",
54
- CDPBorrows = "get_cdp_borrows",
55
- CDPTotalBorrows = "get_cdp_total_borrows",
56
- CDPCollaterals = "get_cdp_collaterals",
57
- CDPTotalCollaterals = "get_cdp_total_collaterals",
58
- CDPLiquidateCollateral = "get_cdp_liquidate_collateral",
59
- CDPTokenDebt = "get_cdp_token_debt",
60
- CDPAllTokenDebts = "get_cdp_all_token_debts",
61
- CDPStablecoinDebt = "get_cdp_stablecoin_debt",
62
- CDPLiquidations = "get_cdp_liquidations",
63
- CDPAccountStablecoin = "get_cdp_account_stablecoin",
64
- CDPRewardSchemes = "get_cdp_reward_schemes",
65
- CDPRewardsDebts = "get_cdp_reward_debts"
34
+ Commitments = "get_commitments"
66
35
  }
67
36
  export interface WsGetRecentTradesParams {
68
37
  market: string;
@@ -106,31 +75,6 @@ export interface WsGetPositionsParams {
106
75
  export interface WsGetCommitmentsParams {
107
76
  address: string;
108
77
  }
109
- export interface WsGetCDPParams {
110
- }
111
- export interface WsGetCDPAssetParams {
112
- denom: string;
113
- }
114
- export interface WsGetCDPAccountParams {
115
- address: string;
116
- }
117
- export interface WsGetCDPRateStrategiesParams {
118
- name: string;
119
- }
120
- export interface WsGetCdpTokenDebt {
121
- denom: string;
122
- }
123
- export interface WsGetCdpAllTokenDebts {
124
- }
125
- export interface WsGetCdpStablecoinDebt {
126
- }
127
- export interface WsGetCdpLiquidations {
128
- }
129
- export interface WsGetCdpRewardSchemes {
130
- }
131
- export interface WsGetCdpRewardDebts {
132
- address: string;
133
- }
134
78
  export interface WsSubscribeParams {
135
79
  channel: WSChannel;
136
80
  }
@@ -193,32 +137,4 @@ export interface WsUnsubscribeCandlesticksParams extends WsSubscribeParams {
193
137
  market: string;
194
138
  resolution: string;
195
139
  }
196
- export interface WsSubscribeCDPBorrows extends WsSubscribeParams {
197
- address: string;
198
- }
199
- export interface WsSubscribeCDPCollaterals extends WsSubscribeParams {
200
- address: string;
201
- }
202
- export interface WsSubscribeCDPLiquidateCollaterals extends WsSubscribeParams {
203
- }
204
- export interface WsSubscribeTokenDebts extends WsSubscribeParams {
205
- }
206
- export interface WsSubscribeTokenDebtByDenom extends WsSubscribeParams {
207
- denom: string;
208
- }
209
- export interface WsSubscribeRewardSchemes extends WsSubscribeParams {
210
- }
211
- export interface WsSubscribeRewardDebts extends WsSubscribeParams {
212
- address?: string;
213
- }
214
- export interface WsSubscribeTokenPrices extends WsSubscribeParams {
215
- denom: string;
216
- }
217
- export interface WsSubscribeAllTokenPrices extends WsSubscribeParams {
218
- }
219
- export interface WsSubscribeCDPTokenSupplyByDenom extends WsSubscribeParams {
220
- denom: string;
221
- }
222
- export interface WsSubscribeCDPTokenSupply extends WsSubscribeParams {
223
- }
224
- export declare type WsSubscriptionParams = WsSubscribeCandlesticksParams | WsSubscribeBooksParams | WsSubscribeRecentTradesParams | WsSubscribeOrdersAllParams | WsSubscribeOrdersByMarketParams | WsSubscribeWalletBalanceParams | WsSubscribeAccountTradesAllParams | WsSubscribeAccountTradesByMarketParams | WsSubscribeMarketStatsAllParams | WsSubscribeMarketStatsByMarketParams | WsSubscribeLeveragesAllParams | WsSubscribeLeveragesByMarketParams | WsSubscribePositionsAllParams | WsSubscribePositionsByMarketParams | WsSubscribePoolsAllParams | WsSubscribePoolsByIdParams | WsSubscribeTokenPrices | WsSubscribeAllTokenPrices | WsSubscribeCommitmentParams | WsUnsubscribeCandlesticksParams | WsSubscribeCDPBorrows | WsSubscribeCDPCollaterals | WsSubscribeCDPLiquidateCollaterals | WsSubscribeTokenDebts | WsSubscribeTokenDebtByDenom | WsSubscribeRewardSchemes | WsSubscribeRewardDebts | WsSubscribeCDPTokenSupply | WsSubscribeCDPTokenSupplyByDenom;
140
+ export declare type WsSubscriptionParams = WsSubscribeCandlesticksParams | WsSubscribeBooksParams | WsSubscribeRecentTradesParams | WsSubscribeOrdersAllParams | WsSubscribeOrdersByMarketParams | WsSubscribeWalletBalanceParams | WsSubscribeAccountTradesAllParams | WsSubscribeAccountTradesByMarketParams | WsSubscribeMarketStatsAllParams | WsSubscribeMarketStatsByMarketParams | WsSubscribeLeveragesAllParams | WsSubscribeLeveragesByMarketParams | WsSubscribePositionsAllParams | WsSubscribePositionsByMarketParams | WsSubscribePoolsAllParams | WsSubscribePoolsByIdParams | WsSubscribeCommitmentParams | WsUnsubscribeCandlesticksParams;
@@ -19,18 +19,7 @@ var WSChannel;
19
19
  WSChannel["positions_by_market"] = "positions_by_market";
20
20
  WSChannel["pools"] = "pools";
21
21
  WSChannel["pools_by_id"] = "pools_by_id";
22
- WSChannel["token_prices"] = "token_prices";
23
- WSChannel["token_prices_by_denom"] = "token_prices_by_denom";
24
22
  WSChannel["commitments"] = "commitments";
25
- WSChannel["cdp_borrows"] = "cdp_borrows";
26
- WSChannel["cdp_collaterals"] = "cdp_collaterals";
27
- WSChannel["cdp_liquidate_collaterals"] = "cdp_liquidate_collaterals";
28
- WSChannel["cdp_token_debts"] = "cdp_token_debts";
29
- WSChannel["cdp_token_debts_by_denom"] = "cdp_token_debts_by_denom";
30
- WSChannel["cdp_reward_schemes"] = "cdp_reward_schemes";
31
- WSChannel["cdp_reward_debts"] = "cdp_reward_debts";
32
- WSChannel["cdp_token_supply"] = "cdp_token_supply";
33
- WSChannel["cdp_token_supply_by_denom"] = "cdp_token_supply_by_denom";
34
23
  })(WSChannel = exports.WSChannel || (exports.WSChannel = {}));
35
24
  var WSRequest;
36
25
  (function (WSRequest) {
@@ -48,24 +37,4 @@ var WSRequest;
48
37
  WSRequest["OrderBook"] = "get_orderbook";
49
38
  WSRequest["Pools"] = "get_pools";
50
39
  WSRequest["Commitments"] = "get_commitments";
51
- WSRequest["CDPAllAssets"] = "get_cdp_all_assets";
52
- WSRequest["CDPAssets"] = "get_cdp_assets";
53
- WSRequest["CDPAccountCollaterals"] = "get_cdp_account_collaterals";
54
- WSRequest["CDPAccountDebts"] = "get_cdp_account_debts";
55
- WSRequest["CDPAccountData"] = "get_cdp_account_data";
56
- WSRequest["CDPParams"] = "get_cdp_params";
57
- WSRequest["CDPAllRateStrategies"] = "get_cdp_all_rate_strategies";
58
- WSRequest["CDPRateStrategies"] = "get_cdp_rate_strategies";
59
- WSRequest["CDPBorrows"] = "get_cdp_borrows";
60
- WSRequest["CDPTotalBorrows"] = "get_cdp_total_borrows";
61
- WSRequest["CDPCollaterals"] = "get_cdp_collaterals";
62
- WSRequest["CDPTotalCollaterals"] = "get_cdp_total_collaterals";
63
- WSRequest["CDPLiquidateCollateral"] = "get_cdp_liquidate_collateral";
64
- WSRequest["CDPTokenDebt"] = "get_cdp_token_debt";
65
- WSRequest["CDPAllTokenDebts"] = "get_cdp_all_token_debts";
66
- WSRequest["CDPStablecoinDebt"] = "get_cdp_stablecoin_debt";
67
- WSRequest["CDPLiquidations"] = "get_cdp_liquidations";
68
- WSRequest["CDPAccountStablecoin"] = "get_cdp_account_stablecoin";
69
- WSRequest["CDPRewardSchemes"] = "get_cdp_reward_schemes";
70
- WSRequest["CDPRewardsDebts"] = "get_cdp_reward_debts";
71
40
  })(WSRequest = exports.WSRequest || (exports.WSRequest = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.2.16-dev.4+0ee377d97a11",
3
+ "version": "0.2.17",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",