carbon-js-sdk 0.2.10 → 0.2.11-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 (288) hide show
  1. package/lib/clients/CarbonQueryClient.js +1 -1
  2. package/lib/clients/ETHClient.js +15 -15
  3. package/lib/clients/HydrogenClient.js +1 -1
  4. package/lib/clients/InsightsQueryClient.d.ts +3 -1
  5. package/lib/clients/InsightsQueryClient.js +17 -6
  6. package/lib/clients/NEOClient.js +7 -7
  7. package/lib/clients/ZILClient.js +16 -16
  8. package/lib/codec/book/genesis.d.ts +1 -1
  9. package/lib/codec/book/genesis.js +1 -1
  10. package/lib/codec/book/query.d.ts +1 -1
  11. package/lib/codec/book/query.js +1 -1
  12. package/lib/codec/broker/genesis.d.ts +1 -1
  13. package/lib/codec/broker/genesis.js +1 -1
  14. package/lib/codec/broker/query.d.ts +3 -3
  15. package/lib/codec/broker/query.js +3 -3
  16. package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
  17. package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
  18. package/lib/codec/btcx/query.d.ts +1 -1
  19. package/lib/codec/btcx/query.js +1 -1
  20. package/lib/codec/ccm/genesis.d.ts +1 -1
  21. package/lib/codec/ccm/genesis.js +1 -1
  22. package/lib/codec/cdp/asset_params.d.ts +1 -0
  23. package/lib/codec/cdp/asset_params.js +31 -15
  24. package/lib/codec/cdp/event.d.ts +226 -22
  25. package/lib/codec/cdp/event.js +1414 -80
  26. package/lib/codec/cdp/genesis.d.ts +57 -4
  27. package/lib/codec/cdp/genesis.js +417 -22
  28. package/lib/codec/cdp/query.d.ts +328 -94
  29. package/lib/codec/cdp/query.js +1300 -236
  30. package/lib/codec/cdp/tx.d.ts +466 -96
  31. package/lib/codec/cdp/tx.js +1961 -181
  32. package/lib/codec/coin/event.d.ts +1 -1
  33. package/lib/codec/coin/event.js +1 -1
  34. package/lib/codec/coin/genesis.d.ts +2 -2
  35. package/lib/codec/coin/genesis.js +2 -2
  36. package/lib/codec/coin/proposal.d.ts +1 -1
  37. package/lib/codec/coin/proposal.js +1 -1
  38. package/lib/codec/coin/query.d.ts +2 -5
  39. package/lib/codec/coin/query.js +2 -8
  40. package/lib/codec/coin/token.d.ts +11 -0
  41. package/lib/codec/coin/token.js +65 -1
  42. package/lib/codec/coin/tx.d.ts +1 -1
  43. package/lib/codec/coin/tx.js +1 -1
  44. package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
  45. package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
  46. package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
  47. package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
  48. package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
  49. package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
  50. package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
  51. package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
  52. package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
  53. package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
  54. package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
  55. package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
  56. package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
  57. package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
  58. package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
  59. package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
  60. package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
  61. package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
  62. package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
  63. package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
  64. package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
  65. package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
  66. package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
  67. package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
  68. package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
  69. package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
  70. package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
  71. package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
  72. package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
  73. package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
  74. package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
  75. package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
  76. package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
  77. package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
  78. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
  79. package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
  80. package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
  81. package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
  82. package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
  83. package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
  84. package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
  85. package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
  86. package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
  87. package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
  88. package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
  89. package/lib/codec/cosmos/gov/v1beta1/query.js +4 -4
  90. package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
  91. package/lib/codec/cosmos/gov/v1beta1/tx.js +4 -4
  92. package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
  93. package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
  94. package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
  95. package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
  96. package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
  97. package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
  98. package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
  99. package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
  100. package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
  101. package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
  102. package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
  103. package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
  104. package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
  105. package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
  106. package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
  107. package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
  108. package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
  109. package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
  110. package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
  111. package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
  112. package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
  113. package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
  114. package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
  115. package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
  116. package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
  117. package/lib/codec/cosmos/tx/v1beta1/tx.js +5 -5
  118. package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
  119. package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
  120. package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
  121. package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
  122. package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
  123. package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
  124. package/lib/codec/fee/genesis.d.ts +1 -1
  125. package/lib/codec/fee/genesis.js +1 -1
  126. package/lib/codec/fee/proposal.d.ts +1 -1
  127. package/lib/codec/fee/proposal.js +1 -1
  128. package/lib/codec/fee/query.d.ts +1 -1
  129. package/lib/codec/fee/query.js +1 -1
  130. package/lib/codec/fee/tx.d.ts +1 -1
  131. package/lib/codec/fee/tx.js +1 -1
  132. package/lib/codec/headersync/genesis.d.ts +1 -1
  133. package/lib/codec/headersync/genesis.js +1 -1
  134. package/lib/codec/headersync/query.d.ts +1 -1
  135. package/lib/codec/headersync/query.js +1 -1
  136. package/lib/codec/index.d.ts +53 -22
  137. package/lib/codec/index.js +514 -384
  138. package/lib/codec/inflation/genesis.d.ts +1 -1
  139. package/lib/codec/inflation/genesis.js +1 -1
  140. package/lib/codec/inflation/query.d.ts +1 -1
  141. package/lib/codec/inflation/query.js +1 -1
  142. package/lib/codec/insurance/genesis.d.ts +1 -1
  143. package/lib/codec/insurance/genesis.js +1 -1
  144. package/lib/codec/leverage/genesis.d.ts +1 -1
  145. package/lib/codec/leverage/genesis.js +1 -1
  146. package/lib/codec/leverage/query.d.ts +1 -1
  147. package/lib/codec/leverage/query.js +1 -1
  148. package/lib/codec/liquidation/genesis.d.ts +1 -1
  149. package/lib/codec/liquidation/genesis.js +1 -1
  150. package/lib/codec/liquidation/query.d.ts +1 -1
  151. package/lib/codec/liquidation/query.js +1 -1
  152. package/lib/codec/liquidation/quote_changes.d.ts +1 -1
  153. package/lib/codec/liquidation/quote_changes.js +1 -1
  154. package/lib/codec/liquiditypool/event.d.ts +2 -2
  155. package/lib/codec/liquiditypool/event.js +2 -2
  156. package/lib/codec/liquiditypool/genesis.d.ts +2 -2
  157. package/lib/codec/liquiditypool/genesis.js +2 -2
  158. package/lib/codec/liquiditypool/proposal.d.ts +1 -1
  159. package/lib/codec/liquiditypool/proposal.js +1 -1
  160. package/lib/codec/liquiditypool/query.d.ts +2 -2
  161. package/lib/codec/liquiditypool/query.js +2 -2
  162. package/lib/codec/liquiditypool/tx.d.ts +1 -1
  163. package/lib/codec/liquiditypool/tx.js +1 -1
  164. package/lib/codec/lockproxy/genesis.d.ts +1 -1
  165. package/lib/codec/lockproxy/genesis.js +1 -1
  166. package/lib/codec/lockproxy/query.d.ts +1 -1
  167. package/lib/codec/lockproxy/query.js +1 -1
  168. package/lib/codec/market/event.d.ts +1 -1
  169. package/lib/codec/market/event.js +1 -1
  170. package/lib/codec/market/genesis.d.ts +2 -1
  171. package/lib/codec/market/genesis.js +20 -2
  172. package/lib/codec/market/proposal.d.ts +1 -1
  173. package/lib/codec/market/proposal.js +1 -1
  174. package/lib/codec/market/query.d.ts +1 -1
  175. package/lib/codec/market/query.js +1 -1
  176. package/lib/codec/market/tx.d.ts +1 -1
  177. package/lib/codec/market/tx.js +1 -1
  178. package/lib/codec/marketstats/genesis.d.ts +1 -1
  179. package/lib/codec/marketstats/genesis.js +1 -1
  180. package/lib/codec/marketstats/query.d.ts +2 -2
  181. package/lib/codec/marketstats/query.js +2 -2
  182. package/lib/codec/misc/message.d.ts +1 -1
  183. package/lib/codec/misc/message.js +1 -1
  184. package/lib/codec/misc/query.d.ts +3 -3
  185. package/lib/codec/misc/query.js +3 -3
  186. package/lib/codec/misc/trade.d.ts +1 -0
  187. package/lib/codec/misc/trade.js +17 -0
  188. package/lib/codec/misc/transaction.d.ts +1 -1
  189. package/lib/codec/misc/transaction.js +1 -1
  190. package/lib/codec/oracle/event.d.ts +1 -1
  191. package/lib/codec/oracle/event.js +1 -1
  192. package/lib/codec/oracle/genesis.d.ts +1 -1
  193. package/lib/codec/oracle/genesis.js +1 -1
  194. package/lib/codec/oracle/proposal.d.ts +1 -1
  195. package/lib/codec/oracle/proposal.js +1 -1
  196. package/lib/codec/oracle/query.d.ts +2 -2
  197. package/lib/codec/oracle/query.js +2 -2
  198. package/lib/codec/order/event.d.ts +1 -1
  199. package/lib/codec/order/event.js +1 -1
  200. package/lib/codec/order/genesis.d.ts +1 -1
  201. package/lib/codec/order/genesis.js +1 -1
  202. package/lib/codec/order/query.d.ts +1 -1
  203. package/lib/codec/order/query.js +1 -1
  204. package/lib/codec/position/event.d.ts +1 -1
  205. package/lib/codec/position/event.js +1 -1
  206. package/lib/codec/position/genesis.d.ts +1 -1
  207. package/lib/codec/position/genesis.js +1 -1
  208. package/lib/codec/position/query.d.ts +1 -1
  209. package/lib/codec/position/query.js +1 -1
  210. package/lib/codec/pricing/event.d.ts +11 -1
  211. package/lib/codec/pricing/event.js +52 -2
  212. package/lib/codec/pricing/genesis.d.ts +2 -1
  213. package/lib/codec/pricing/genesis.js +20 -5
  214. package/lib/codec/pricing/pricing.d.ts +13 -0
  215. package/lib/codec/pricing/pricing.js +83 -1
  216. package/lib/codec/pricing/query.d.ts +1 -1
  217. package/lib/codec/pricing/query.js +1 -1
  218. package/lib/codec/profile/event.d.ts +1 -1
  219. package/lib/codec/profile/event.js +1 -1
  220. package/lib/codec/profile/genesis.d.ts +1 -1
  221. package/lib/codec/profile/genesis.js +1 -1
  222. package/lib/codec/profile/query.d.ts +1 -1
  223. package/lib/codec/profile/query.js +1 -1
  224. package/lib/codec/subaccount/genesis.d.ts +1 -1
  225. package/lib/codec/subaccount/genesis.js +1 -1
  226. package/lib/codec/subaccount/query.d.ts +1 -1
  227. package/lib/codec/subaccount/query.js +1 -1
  228. package/lib/codec/tendermint/abci/types.d.ts +4 -4
  229. package/lib/codec/tendermint/abci/types.js +4 -4
  230. package/lib/codec/tendermint/types/block.d.ts +2 -2
  231. package/lib/codec/tendermint/types/block.js +2 -2
  232. package/lib/codec/tendermint/types/evidence.d.ts +2 -2
  233. package/lib/codec/tendermint/types/evidence.js +2 -2
  234. package/lib/codec/tendermint/types/types.d.ts +3 -3
  235. package/lib/codec/tendermint/types/types.js +3 -3
  236. package/lib/codec/tendermint/types/validator.d.ts +1 -1
  237. package/lib/codec/tendermint/types/validator.js +1 -1
  238. package/lib/constant/generic.js +1 -1
  239. package/lib/insights/common.d.ts +2 -0
  240. package/lib/insights/common.js +2 -0
  241. package/lib/insights/competition.d.ts +49 -7
  242. package/lib/modules/admin.d.ts +61 -1
  243. package/lib/modules/admin.js +193 -42
  244. package/lib/modules/cdp.d.ts +55 -12
  245. package/lib/modules/cdp.js +134 -20
  246. package/lib/modules/gov.js +14 -14
  247. package/lib/modules/liquiditypool.js +1 -1
  248. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  249. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  250. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  251. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
  252. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  253. package/lib/provider/amino/types/admin.js +67 -26
  254. package/lib/provider/amino/types/bank.js +1 -1
  255. package/lib/provider/amino/types/broker.js +1 -1
  256. package/lib/provider/amino/types/cdp.js +72 -32
  257. package/lib/provider/amino/types/coin.js +2 -2
  258. package/lib/provider/amino/types/gov.js +4 -4
  259. package/lib/provider/amino/types/ibc.js +1 -1
  260. package/lib/provider/amino/types/leverage.js +1 -1
  261. package/lib/provider/amino/types/liquidityPool.js +7 -7
  262. package/lib/provider/amino/types/market.js +1 -1
  263. package/lib/provider/amino/types/oracle.js +1 -1
  264. package/lib/provider/amino/types/order.js +4 -4
  265. package/lib/provider/amino/types/position.js +1 -1
  266. package/lib/provider/amino/types/profile.js +1 -1
  267. package/lib/provider/amino/types/staking.js +4 -4
  268. package/lib/provider/amino/types/subaccount.js +3 -3
  269. package/lib/provider/amino/utils.js +11 -11
  270. package/lib/provider/keplr/KeplrStore.js +1 -1
  271. package/lib/provider/ledger/ledger.js +2 -2
  272. package/lib/provider/metamask/MetaMask.js +1 -1
  273. package/lib/provider/o3/O3Wallet.js +2 -2
  274. package/lib/util/address.js +13 -13
  275. package/lib/util/api.js +4 -4
  276. package/lib/util/fetch.js +1 -1
  277. package/lib/util/generic.js +3 -3
  278. package/lib/util/number.js +5 -5
  279. package/lib/util/tx.d.ts +42 -14
  280. package/lib/wallet/CarbonSigner.js +2 -2
  281. package/lib/wallet/CarbonSigningClient.js +8 -8
  282. package/lib/wallet/CarbonWallet.js +6 -6
  283. package/lib/websocket/channel.js +26 -0
  284. package/lib/websocket/connector.js +3 -3
  285. package/lib/websocket/models.d.ts +63 -0
  286. package/lib/websocket/types.d.ts +38 -3
  287. package/lib/websocket/types.js +16 -0
  288. package/package.json +2 -1
@@ -16,60 +16,174 @@ exports.CDPModule = void 0;
16
16
  const tx_1 = require("../codec/cdp/tx");
17
17
  const util_1 = require("../util");
18
18
  const base_1 = __importDefault(require("./base"));
19
- const long_1 = __importDefault(require("long"));
20
19
  class CDPModule extends base_1.default {
21
- addCollateral(params, opts) {
20
+ supplyAsset(params, opts) {
22
21
  return __awaiter(this, void 0, void 0, function* () {
23
22
  const wallet = this.getWallet();
24
- const value = tx_1.MsgAddCollateral.fromPartial({
23
+ const value = tx_1.MsgSupplyAsset.fromPartial({
25
24
  creator: wallet.bech32Address,
26
- vaultTypeId: new long_1.default(params.vaultTypeId),
25
+ denom: params.denom,
27
26
  amount: params.amount.toString(10),
28
27
  });
29
28
  return yield wallet.sendTx({
30
- typeUrl: util_1.CarbonTx.Types.MsgAddCollateral,
31
- value,
29
+ typeUrl: util_1.CarbonTx.Types.MsgSupplyAsset,
30
+ value
32
31
  }, opts);
33
32
  });
34
33
  }
35
- removeCollateral(params, opts) {
34
+ withdrawAsset(params, opts) {
36
35
  return __awaiter(this, void 0, void 0, function* () {
37
36
  const wallet = this.getWallet();
38
- const value = tx_1.MsgRemoveCollateral.fromPartial({
37
+ const value = tx_1.MsgWithdrawAsset.fromPartial({
39
38
  creator: wallet.bech32Address,
40
- vaultTypeId: new long_1.default(params.vaultTypeId),
39
+ cdpDenom: params.cdpDenom,
41
40
  amount: params.amount.toString(10),
42
41
  });
43
42
  return yield wallet.sendTx({
44
- typeUrl: util_1.CarbonTx.Types.MsgRemoveCollateral,
45
- value,
43
+ typeUrl: util_1.CarbonTx.Types.MsgWithdrawAsset,
44
+ value
46
45
  }, opts);
47
46
  });
48
47
  }
49
- addDebt(params, opts) {
48
+ lockCollateral(params, opts) {
50
49
  return __awaiter(this, void 0, void 0, function* () {
51
50
  const wallet = this.getWallet();
52
- const value = tx_1.MsgAddDebt.fromPartial({
51
+ const value = tx_1.MsgLockCollateral.fromPartial({
53
52
  creator: wallet.bech32Address,
54
- vaultTypeId: new long_1.default(params.vaultTypeId),
53
+ cdpDenom: params.cdpDenom,
55
54
  amount: params.amount.toString(10),
56
55
  });
57
56
  return yield wallet.sendTx({
58
- typeUrl: util_1.CarbonTx.Types.MsgAddDebt,
59
- value,
57
+ typeUrl: util_1.CarbonTx.Types.MsgLockCollateral,
58
+ value
59
+ }, opts);
60
+ });
61
+ }
62
+ unlockCollateral(params, opts) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const wallet = this.getWallet();
65
+ const value = tx_1.MsgUnlockCollateral.fromPartial({
66
+ creator: wallet.bech32Address,
67
+ cdpDenom: params.cdpDenom,
68
+ amount: params.amount.toString(10),
69
+ });
70
+ return yield wallet.sendTx({
71
+ typeUrl: util_1.CarbonTx.Types.MsgUnlockCollateral,
72
+ value
73
+ }, opts);
74
+ });
75
+ }
76
+ borrowAsset(params, opts) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ const wallet = this.getWallet();
79
+ const value = tx_1.MsgBorrowAsset.fromPartial({
80
+ creator: wallet.bech32Address,
81
+ denom: params.denom,
82
+ amount: params.amount.toString(10),
83
+ });
84
+ return yield wallet.sendTx({
85
+ typeUrl: util_1.CarbonTx.Types.MsgBorrowAsset,
86
+ value
87
+ }, opts);
88
+ });
89
+ }
90
+ repayAsset(params, opts) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const wallet = this.getWallet();
93
+ const value = tx_1.MsgRepayAsset.fromPartial({
94
+ creator: wallet.bech32Address,
95
+ denom: params.denom,
96
+ amount: params.amount.toString(10),
97
+ });
98
+ return yield wallet.sendTx({
99
+ typeUrl: util_1.CarbonTx.Types.MsgRepayAsset,
100
+ value
101
+ }, opts);
102
+ });
103
+ }
104
+ supplyAssetAndLockCollateral(params, opts) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const wallet = this.getWallet();
107
+ const value = tx_1.MsgSupplyAssetAndLockCollateral.fromPartial({
108
+ creator: wallet.bech32Address,
109
+ denom: params.denom,
110
+ supplyAmount: params.supplyAmount.toString(10),
111
+ lockAmount: params.lockAmount.toString(10),
112
+ });
113
+ return yield wallet.sendTx({
114
+ typeUrl: util_1.CarbonTx.Types.MsgSupplyAssetAndLockCollateral,
115
+ value
116
+ }, opts);
117
+ });
118
+ }
119
+ unlockCollateralAndWithdrawAsset(params, opts) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const wallet = this.getWallet();
122
+ const value = tx_1.MsgUnlockCollateralAndWithdrawAsset.fromPartial({
123
+ creator: wallet.bech32Address,
124
+ cdpDenom: params.cdpDenom,
125
+ unlockAmount: params.unlockAmount.toString(10),
126
+ withdrawAmount: params.withdrawAmount.toString(10),
127
+ });
128
+ return yield wallet.sendTx({
129
+ typeUrl: util_1.CarbonTx.Types.MsgUnlockCollateralAndWithdrawAsset,
130
+ value
131
+ }, opts);
132
+ });
133
+ }
134
+ liquidateCollateral(params, opts) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const wallet = this.getWallet();
137
+ const value = tx_1.MsgLiquidateCollateral.fromPartial({
138
+ creator: wallet.bech32Address,
139
+ debtor: params.debtor,
140
+ collateralDenom: params.collateralDenom,
141
+ debtDenom: params.debtDenom,
142
+ debtAmount: params.debtAmount.toString(10),
143
+ });
144
+ return yield wallet.sendTx({
145
+ typeUrl: util_1.CarbonTx.Types.MsgLiquidateCollateral,
146
+ value
147
+ }, opts);
148
+ });
149
+ }
150
+ repayAssetWithCdpTokens(params, opts) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const wallet = this.getWallet();
153
+ const value = tx_1.MsgRepayAssetWithCdpTokens.fromPartial({
154
+ creator: wallet.bech32Address,
155
+ cdpDenom: params.cdpDenom,
156
+ amount: params.amount.toString(10),
157
+ });
158
+ return yield wallet.sendTx({
159
+ typeUrl: util_1.CarbonTx.Types.MsgRepayAssetWithCdpTokens,
160
+ value
161
+ }, opts);
162
+ });
163
+ }
164
+ repayAssetWithCollateral(params, opts) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const wallet = this.getWallet();
167
+ const value = tx_1.MsgRepayAssetWithCollateral.fromPartial({
168
+ creator: wallet.bech32Address,
169
+ cdpDenom: params.cdpDenom,
170
+ amount: params.amount.toString(10),
171
+ });
172
+ return yield wallet.sendTx({
173
+ typeUrl: util_1.CarbonTx.Types.MsgRepayAssetWithCollateral,
174
+ value
60
175
  }, opts);
61
176
  });
62
177
  }
63
- removeDebt(params, opts) {
178
+ mintStablecoin(params, opts) {
64
179
  return __awaiter(this, void 0, void 0, function* () {
65
180
  const wallet = this.getWallet();
66
- const value = tx_1.MsgRemoveDebt.fromPartial({
181
+ const value = tx_1.MsgMintStablecoin.fromPartial({
67
182
  creator: wallet.bech32Address,
68
- vaultTypeId: new long_1.default(params.vaultTypeId),
69
183
  amount: params.amount.toString(10),
70
184
  });
71
185
  return yield wallet.sendTx({
72
- typeUrl: util_1.CarbonTx.Types.MsgRemoveDebt,
186
+ typeUrl: util_1.CarbonTx.Types.MsgMintStablecoin,
73
187
  value,
74
188
  }, opts);
75
189
  });
@@ -48,7 +48,7 @@ class GovModule extends base_1.default {
48
48
  const value = tx_1.MsgDeposit.fromPartial({
49
49
  proposalId: new long_1.default(params.proposalId),
50
50
  depositor: wallet.bech32Address,
51
- amount: amino_1.coins(params.amount, params.denom)
51
+ amount: (0, amino_1.coins)(params.amount, params.denom)
52
52
  });
53
53
  return yield wallet.sendTx({
54
54
  typeUrl: util_1.CarbonTx.Types.MsgDeposit,
@@ -78,21 +78,21 @@ class GovModule extends base_1.default {
78
78
  const createTokenMsg = {
79
79
  title: title,
80
80
  description: description,
81
- msg: admin_1.transfromCreateTokenParams(msg, wallet.bech32Address)
81
+ msg: (0, admin_1.transfromCreateTokenParams)(msg, wallet.bech32Address)
82
82
  };
83
83
  return proposal_1.CreateTokenProposal.encode(createTokenMsg).finish();
84
84
  case "SetMsgGasCostProposal":
85
85
  const setMsgGasCostMsg = {
86
86
  title: title,
87
87
  description: description,
88
- msg: admin_1.transfromSetMsgGasCostParams(msg)
88
+ msg: (0, admin_1.transfromSetMsgGasCostParams)(msg)
89
89
  };
90
90
  return proposal_2.SetMsgGasCostProposal.encode(setMsgGasCostMsg).finish();
91
91
  case "SetMinGasPriceProposal":
92
92
  const setMinGasPriceMsg = {
93
93
  title: title,
94
94
  description: description,
95
- msg: admin_1.transfromSetMinGasPriceParams(msg)
95
+ msg: (0, admin_1.transfromSetMinGasPriceParams)(msg)
96
96
  };
97
97
  return proposal_2.SetMinGasPriceProposal.encode(setMinGasPriceMsg).finish();
98
98
  case "RemoveMsgGasCostProposal":
@@ -113,63 +113,63 @@ class GovModule extends base_1.default {
113
113
  const linkPoolMsg = {
114
114
  title: title,
115
115
  description: description,
116
- msg: admin_1.transfromLinkPoolParams(msg)
116
+ msg: (0, admin_1.transfromLinkPoolParams)(msg)
117
117
  };
118
118
  return proposal_3.LinkPoolProposal.encode(linkPoolMsg).finish();
119
119
  case "UnlinkPoolProposal":
120
120
  const unlinkPoolMsg = {
121
121
  title: title,
122
122
  description: description,
123
- msg: admin_1.transfromUnlinkPoolParams(msg)
123
+ msg: (0, admin_1.transfromUnlinkPoolParams)(msg)
124
124
  };
125
125
  return proposal_3.UnlinkPoolProposal.encode(unlinkPoolMsg).finish();
126
126
  case "SetRewardCurveProposal":
127
127
  const setRewardCurveMsg = {
128
128
  title: title,
129
129
  description: description,
130
- msg: admin_1.transfromSetRewardCurveParams(msg)
130
+ msg: (0, admin_1.transfromSetRewardCurveParams)(msg)
131
131
  };
132
132
  return proposal_3.SetRewardCurveProposal.encode(setRewardCurveMsg).finish();
133
133
  case "SetCommitmentCurveProposal":
134
134
  const setCommitmentCurveMsg = {
135
135
  title: title,
136
136
  description: description,
137
- msg: admin_1.transfromSetCommitmentCurveParams(msg)
137
+ msg: (0, admin_1.transfromSetCommitmentCurveParams)(msg)
138
138
  };
139
139
  return proposal_3.SetCommitmentCurveProposal.encode(setCommitmentCurveMsg).finish();
140
140
  case "SetRewardsWeightsProposal":
141
141
  const setRewardsWeightsMsg = {
142
142
  title: title,
143
143
  description: description,
144
- msg: admin_1.transfromSetRewardsWeightsParams(msg)
144
+ msg: (0, admin_1.transfromSetRewardsWeightsParams)(msg)
145
145
  };
146
146
  return proposal_3.SetRewardsWeightsProposal.encode(setRewardsWeightsMsg).finish();
147
147
  case "UpdatePoolProposal":
148
148
  const updatePoolProposalMsg = {
149
149
  title: title,
150
150
  description: description,
151
- msg: admin_1.transfromUpdatePoolParams(msg)
151
+ msg: (0, admin_1.transfromUpdatePoolParams)(msg)
152
152
  };
153
153
  return proposal_3.UpdatePoolProposal.encode(updatePoolProposalMsg).finish();
154
154
  case "UpdateMarketProposal":
155
155
  const updateMarketProposalMsg = {
156
156
  title: title,
157
157
  description: description,
158
- msg: market_1.transfromUpdateMarketParams(msg)
158
+ msg: (0, market_1.transfromUpdateMarketParams)(msg)
159
159
  };
160
160
  return proposal_4.UpdateMarketProposal.encode(updateMarketProposalMsg).finish();
161
161
  case "CreateOracleProposal":
162
162
  const createOracleProposalMsg = {
163
163
  title: title,
164
164
  description: description,
165
- msg: admin_1.transfromCreateOracleParams(msg, wallet.bech32Address)
165
+ msg: (0, admin_1.transfromCreateOracleParams)(msg, wallet.bech32Address)
166
166
  };
167
167
  return proposal_5.CreateOracleProposal.encode(createOracleProposalMsg).finish();
168
168
  case "SettlementPriceProposal":
169
169
  const settlementPriceProposalMsg = {
170
170
  title: title,
171
171
  description: description,
172
- msg: admin_1.transformSetSettlementPriceParams(msg),
172
+ msg: (0, admin_1.transformSetSettlementPriceParams)(msg),
173
173
  };
174
174
  return proposal_6.SettlementPriceProposal.encode(settlementPriceProposalMsg).finish();
175
175
  case "ParameterChangeProposal":
@@ -191,7 +191,7 @@ class GovModule extends base_1.default {
191
191
  title: title,
192
192
  description: description,
193
193
  recipient: proposalMsg.recipient,
194
- amount: admin_1.transformCommunityPoolSpendAmount(proposalMsg.amount),
194
+ amount: (0, admin_1.transformCommunityPoolSpendAmount)(proposalMsg.amount),
195
195
  };
196
196
  return distribution_1.CommunityPoolSpendProposal.encode(communityPoolSpendProposalMsg).finish();
197
197
  case "CancelSoftwareUpgradeProposal":
@@ -145,7 +145,7 @@ class LiquidityPoolModule extends base_1.default {
145
145
  const SECONDS_IN_A_WEEK = new bignumber_js_1.BigNumber(604800);
146
146
  const mintDataResponse = yield this.sdkProvider.query.inflation.MintData({});
147
147
  const mintData = mintDataResponse.mintData;
148
- const nowTime = new bignumber_js_1.BigNumber(dayjs_1.default().unix());
148
+ const nowTime = new bignumber_js_1.BigNumber((0, dayjs_1.default)().unix());
149
149
  const firstBlockTime = (_a = mintData === null || mintData === void 0 ? void 0 : mintData.firstBlockTime.toNumber()) !== null && _a !== void 0 ? _a : 0;
150
150
  const difference = nowTime.minus(firstBlockTime);
151
151
  const currentWeek = difference.div(SECONDS_IN_A_WEEK).dp(0, bignumber_js_1.BigNumber.ROUND_DOWN);
@@ -85,7 +85,7 @@ class EthLedgerAccount {
85
85
  static tryConnect() {
86
86
  return __awaiter(this, void 0, void 0, function* () {
87
87
  try {
88
- const transport = yield ledger_1.getLedgerTransport();
88
+ const transport = yield (0, ledger_1.getLedgerTransport)();
89
89
  // get public key to assert that NEO app is open
90
90
  const ethApp = new hw_app_eth_1.default(transport);
91
91
  const bipString = EthLedgerAccount.getETHBIP44String();
@@ -39,7 +39,7 @@ exports.looksLikeTransportStatusError = looksLikeTransportStatusError;
39
39
  * @returns error with modified message if found.
40
40
  */
41
41
  function evalTransportError(err) {
42
- const transportErr = lodash_1.cloneDeep(err);
42
+ const transportErr = (0, lodash_1.cloneDeep)(err);
43
43
  switch (transportErr.statusCode) {
44
44
  case StatusWord.APP_CLOSED:
45
45
  transportErr.message = "Your NEO app is closed! Please login.";
@@ -49,8 +49,8 @@ function getAppName(ledger) {
49
49
  return version.substring(0, version.length - 2); // take of status word
50
50
  }
51
51
  catch (e) {
52
- if (ErrorCode_1.looksLikeTransportStatusError(e)) {
53
- throw ErrorCode_1.evalTransportError(e);
52
+ if ((0, ErrorCode_1.looksLikeTransportStatusError)(e)) {
53
+ throw (0, ErrorCode_1.evalTransportError)(e);
54
54
  }
55
55
  throw e;
56
56
  }
@@ -72,8 +72,8 @@ function getAppVersion(ledger) {
72
72
  return major.toString() + "." + minor.toString() + "." + patch.toString();
73
73
  }
74
74
  catch (e) {
75
- if (ErrorCode_1.looksLikeTransportStatusError(e)) {
76
- throw ErrorCode_1.evalTransportError(e);
75
+ if ((0, ErrorCode_1.looksLikeTransportStatusError)(e)) {
76
+ throw (0, ErrorCode_1.evalTransportError)(e);
77
77
  }
78
78
  throw e;
79
79
  }
@@ -109,8 +109,8 @@ function getPublicKey(ledger, bip44String, showAddressOnDevice = false) {
109
109
  return response.toString("hex").substring(0, 130);
110
110
  }
111
111
  catch (e) {
112
- if (ErrorCode_1.looksLikeTransportStatusError(e)) {
113
- throw ErrorCode_1.evalTransportError(e);
112
+ if ((0, ErrorCode_1.looksLikeTransportStatusError)(e)) {
113
+ throw (0, ErrorCode_1.evalTransportError)(e);
114
114
  }
115
115
  throw e;
116
116
  }
@@ -142,8 +142,8 @@ function getSignature(ledger, payload, bip44String, network) {
142
142
  return DerToHexSignature(response.toString("hex"));
143
143
  }
144
144
  catch (e) {
145
- if (ErrorCode_1.looksLikeTransportStatusError(e)) {
146
- throw ErrorCode_1.evalTransportError(e);
145
+ if ((0, ErrorCode_1.looksLikeTransportStatusError)(e)) {
146
+ throw (0, ErrorCode_1.evalTransportError)(e);
147
147
  }
148
148
  throw e;
149
149
  }
@@ -109,8 +109,8 @@ class NeoLedgerAccount {
109
109
  */
110
110
  static tryConnect(version = "neo") {
111
111
  return __awaiter(this, void 0, void 0, function* () {
112
- const bipString = NeonLedger_1.getNEOBIP44String();
113
- const ledger = yield ledger_1.getLedgerTransport();
112
+ const bipString = (0, NeonLedger_1.getNEOBIP44String)();
113
+ const ledger = yield (0, ledger_1.getLedgerTransport)();
114
114
  // get public key to assert that NEO app is open
115
115
  const ledgerAdapter = adapterForVersion(version);
116
116
  const publicKey = yield ledgerAdapter.getPublicKey(ledger, bipString);
@@ -127,7 +127,7 @@ class NeoLedgerAccount {
127
127
  }
128
128
  sign(msg, magic = neon_core_next_1.CONST.MAGIC_NUMBER.MainNet) {
129
129
  return __awaiter(this, void 0, void 0, function* () {
130
- const bipString = NeonLedger_1.getNEOBIP44String();
130
+ const bipString = (0, NeonLedger_1.getNEOBIP44String)();
131
131
  const ledger = this.useLedger();
132
132
  const ledgerAdapter = adapterForVersion(this.version);
133
133
  console.log("getsignature", ledgerAdapter, ledger, msg, bipString, magic);
@@ -41,7 +41,7 @@ function evalTransportError(err) {
41
41
  transportErr.message = "Transaction signing denied";
42
42
  break;
43
43
  default:
44
- transportErr.message = hw_transport_1.getAltStatusMessage(transportErr.statusCode);
44
+ transportErr.message = (0, hw_transport_1.getAltStatusMessage)(transportErr.statusCode);
45
45
  }
46
46
  return err;
47
47
  }
@@ -43,6 +43,14 @@ const TxTypes = {
43
43
  RemoveMinGasPrice: "fee/RemoveMinGasPrice",
44
44
  CreateValidator: "cosmos-sdk/MsgCreateValidator",
45
45
  EditValidator: "cosmos-sdk/MsgEditValidator",
46
+ AddRateStrategy: "cdp/AddRateStrategy",
47
+ UpdateRateStrategy: "cdp/UpdateRateStrategy",
48
+ RemoveRateStrategy: "cdp/RemoveRateStrategy",
49
+ AddAsset: "cdp/AddAsset",
50
+ UpdateAsset: "cdp/UpdateAsset",
51
+ SetLiquidationFee: "cdp/SetLiquidationFee",
52
+ SetInterestFee: "cdp/SetInterestFee",
53
+ SetStableCoinInterestRate: "cdp/SetStableCoinInterestRate",
46
54
  };
47
55
  const MsgCreateOracle = {
48
56
  aminoType: TxTypes.CreateOracle,
@@ -84,12 +92,6 @@ const MsgCreateMarket = {
84
92
  currentQuotePriceUsd: utils_1.ConvertEncType.Dec,
85
93
  },
86
94
  };
87
- const MsgCreateVaultType = {
88
- aminoType: TxTypes.CreateVaultType,
89
- valueMap: {
90
- collateralizationRatio: utils_1.ConvertEncType.Dec,
91
- },
92
- };
93
95
  const MsgLinkPool = {
94
96
  aminoType: TxTypes.LinkPool,
95
97
  valueMap: {
@@ -177,26 +179,65 @@ const MsgEditValidator = {
177
179
  commissionRate: utils_1.ConvertEncType.Dec,
178
180
  },
179
181
  };
182
+ const MsgAddRateStrategy = {
183
+ aminoType: TxTypes.AddRateStrategy,
184
+ valueMap: {}
185
+ };
186
+ const MsgUpdateRateStrategy = {
187
+ aminoType: TxTypes.UpdateRateStrategy,
188
+ valueMap: {}
189
+ };
190
+ const MsgRemoveRateStrategy = {
191
+ aminoType: TxTypes.RemoveRateStrategy,
192
+ valueMap: {}
193
+ };
194
+ const MsgAddAsset = {
195
+ aminoType: TxTypes.AddAsset,
196
+ valueMap: {}
197
+ };
198
+ const MsgUpdateAsset = {
199
+ aminoType: TxTypes.UpdateAsset,
200
+ valueMap: {}
201
+ };
202
+ const MsgSetLiquidationFee = {
203
+ aminoType: TxTypes.SetLiquidationFee,
204
+ valueMap: {}
205
+ };
206
+ const MsgSetInterestFee = {
207
+ aminoType: TxTypes.SetInterestFee,
208
+ valueMap: {}
209
+ };
210
+ const MsgSetStableCoinInterestRate = {
211
+ aminoType: TxTypes.SetStableCoinInterestRate,
212
+ valueMap: {}
213
+ };
180
214
  const AdminAmino = {
181
- [CarbonTx.Types.MsgCreateOracle]: utils_1.generateAminoType(MsgCreateOracle),
182
- [CarbonTx.Types.MsgBindToken]: utils_1.generateAminoType(MsgBindToken),
183
- [CarbonTx.Types.MsgCreateToken]: utils_1.generateAminoType(MsgCreateToken),
184
- [CarbonTx.Types.MsgLinkToken]: utils_1.generateAminoType(MsgLinkToken),
185
- [CarbonTx.Types.MsgSyncToken]: utils_1.generateAminoType(MsgSyncToken),
186
- [CarbonTx.Types.MsgCreateMarket]: utils_1.generateAminoType(MsgCreateMarket),
187
- [CarbonTx.Types.MsgCreateVaultType]: utils_1.generateAminoType(MsgCreateVaultType),
188
- [CarbonTx.Types.MsgLinkPool]: utils_1.generateAminoType(MsgLinkPool),
189
- [CarbonTx.Types.MsgUnlinkPool]: utils_1.generateAminoType(MsgUnlinkPool),
190
- [CarbonTx.Types.MsgUpdatePool]: utils_1.generateAminoType(MsgUpdatePool),
191
- [CarbonTx.Types.MsgSetRewardsWeights]: utils_1.generateAminoType(MsgSetRewardsWeights),
192
- [CarbonTx.Types.MsgSetRewardCurve]: utils_1.generateAminoType(MsgSetRewardCurve),
193
- [CarbonTx.Types.MsgSetCommitmentCurve]: utils_1.generateAminoType(MsgSetCommitmentCurve),
194
- [CarbonTx.Types.MsgSetTradingFlag]: utils_1.generateAminoType(MsgSetTradingFlag),
195
- [CarbonTx.Types.MsgSetGasCost]: utils_1.generateAminoType(MsgSetGasCost),
196
- [CarbonTx.Types.MsgSetMinGasPrice]: utils_1.generateAminoType(MsgSetMinGasPrice),
197
- [CarbonTx.Types.MsgRemoveGasCost]: utils_1.generateAminoType(MsgRemoveGasCost),
198
- [CarbonTx.Types.MsgRemoveMinGasPrice]: utils_1.generateAminoType(MsgRemoveMinGasPrice),
199
- [CarbonTx.Types.MsgCreateValidator]: utils_1.generateAminoType(MsgCreateValidator),
200
- [CarbonTx.Types.MsgEditValidator]: utils_1.generateAminoType(MsgEditValidator),
215
+ [CarbonTx.Types.MsgCreateOracle]: (0, utils_1.generateAminoType)(MsgCreateOracle),
216
+ [CarbonTx.Types.MsgBindToken]: (0, utils_1.generateAminoType)(MsgBindToken),
217
+ [CarbonTx.Types.MsgCreateToken]: (0, utils_1.generateAminoType)(MsgCreateToken),
218
+ [CarbonTx.Types.MsgLinkToken]: (0, utils_1.generateAminoType)(MsgLinkToken),
219
+ [CarbonTx.Types.MsgSyncToken]: (0, utils_1.generateAminoType)(MsgSyncToken),
220
+ [CarbonTx.Types.MsgCreateMarket]: (0, utils_1.generateAminoType)(MsgCreateMarket),
221
+ [CarbonTx.Types.MsgLinkPool]: (0, utils_1.generateAminoType)(MsgLinkPool),
222
+ [CarbonTx.Types.MsgUnlinkPool]: (0, utils_1.generateAminoType)(MsgUnlinkPool),
223
+ [CarbonTx.Types.MsgUpdatePool]: (0, utils_1.generateAminoType)(MsgUpdatePool),
224
+ [CarbonTx.Types.MsgSetRewardsWeights]: (0, utils_1.generateAminoType)(MsgSetRewardsWeights),
225
+ [CarbonTx.Types.MsgSetRewardCurve]: (0, utils_1.generateAminoType)(MsgSetRewardCurve),
226
+ [CarbonTx.Types.MsgSetCommitmentCurve]: (0, utils_1.generateAminoType)(MsgSetCommitmentCurve),
227
+ [CarbonTx.Types.MsgSetTradingFlag]: (0, utils_1.generateAminoType)(MsgSetTradingFlag),
228
+ [CarbonTx.Types.MsgSetGasCost]: (0, utils_1.generateAminoType)(MsgSetGasCost),
229
+ [CarbonTx.Types.MsgSetMinGasPrice]: (0, utils_1.generateAminoType)(MsgSetMinGasPrice),
230
+ [CarbonTx.Types.MsgRemoveGasCost]: (0, utils_1.generateAminoType)(MsgRemoveGasCost),
231
+ [CarbonTx.Types.MsgRemoveMinGasPrice]: (0, utils_1.generateAminoType)(MsgRemoveMinGasPrice),
232
+ [CarbonTx.Types.MsgCreateValidator]: (0, utils_1.generateAminoType)(MsgCreateValidator),
233
+ [CarbonTx.Types.MsgEditValidator]: (0, utils_1.generateAminoType)(MsgEditValidator),
234
+ [CarbonTx.Types.MsgAddRateStrategy]: (0, utils_1.generateAminoType)(MsgAddRateStrategy),
235
+ [CarbonTx.Types.MsgUpdateRateStrategy]: (0, utils_1.generateAminoType)(MsgUpdateRateStrategy),
236
+ [CarbonTx.Types.MsgRemoveRateStrategy]: (0, utils_1.generateAminoType)(MsgRemoveRateStrategy),
237
+ [CarbonTx.Types.MsgAddAsset]: (0, utils_1.generateAminoType)(MsgAddAsset),
238
+ [CarbonTx.Types.MsgUpdateAsset]: (0, utils_1.generateAminoType)(MsgUpdateAsset),
239
+ [CarbonTx.Types.MsgSetLiquidationFee]: (0, utils_1.generateAminoType)(MsgSetLiquidationFee),
240
+ [CarbonTx.Types.MsgSetInterestFee]: (0, utils_1.generateAminoType)(MsgSetInterestFee),
241
+ [CarbonTx.Types.MsgSetStablecoinInterestRate]: (0, utils_1.generateAminoType)(MsgSetStableCoinInterestRate),
201
242
  };
202
243
  exports.default = AdminAmino;
@@ -29,6 +29,6 @@ const MsgSend = {
29
29
  valueMap: {},
30
30
  };
31
31
  const BankAmino = {
32
- [CarbonTx.Types.MsgSend]: utils_1.generateAminoType(MsgSend),
32
+ [CarbonTx.Types.MsgSend]: (0, utils_1.generateAminoType)(MsgSend),
33
33
  };
34
34
  exports.default = BankAmino;
@@ -29,6 +29,6 @@ const MsgInitiateLiquidation = {
29
29
  valueMap: {},
30
30
  };
31
31
  const BrokerAmino = {
32
- [CarbonTx.Types.MsgInitiateLiquidation]: utils_1.generateAminoType(MsgInitiateLiquidation),
32
+ [CarbonTx.Types.MsgInitiateLiquidation]: (0, utils_1.generateAminoType)(MsgInitiateLiquidation),
33
33
  };
34
34
  exports.default = BrokerAmino;