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
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AssetData = exports.AssetUtilization = exports.AssetParams = exports.protobufPackage = void 0;
6
+ exports.AssetUtilization = exports.AssetParams = 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"));
@@ -12,6 +12,7 @@ const baseAssetParams = {
12
12
  denom: "",
13
13
  oracleId: "",
14
14
  rateStrategyName: "",
15
+ repayStablecoinInterestDebt: false,
15
16
  loanToValue: "",
16
17
  liquidationThreshold: "",
17
18
  liquidationBonus: "",
@@ -29,20 +30,23 @@ exports.AssetParams = {
29
30
  if (message.rateStrategyName !== "") {
30
31
  writer.uint32(26).string(message.rateStrategyName);
31
32
  }
33
+ if (message.repayStablecoinInterestDebt === true) {
34
+ writer.uint32(32).bool(message.repayStablecoinInterestDebt);
35
+ }
32
36
  if (message.loanToValue !== "") {
33
- writer.uint32(34).string(message.loanToValue);
37
+ writer.uint32(42).string(message.loanToValue);
34
38
  }
35
39
  if (message.liquidationThreshold !== "") {
36
- writer.uint32(42).string(message.liquidationThreshold);
40
+ writer.uint32(50).string(message.liquidationThreshold);
37
41
  }
38
42
  if (message.liquidationBonus !== "") {
39
- writer.uint32(50).string(message.liquidationBonus);
43
+ writer.uint32(58).string(message.liquidationBonus);
40
44
  }
41
45
  if (message.supplyCap !== "") {
42
- writer.uint32(58).string(message.supplyCap);
46
+ writer.uint32(66).string(message.supplyCap);
43
47
  }
44
48
  if (message.borrowCap !== "") {
45
- writer.uint32(66).string(message.borrowCap);
49
+ writer.uint32(74).string(message.borrowCap);
46
50
  }
47
51
  return writer;
48
52
  },
@@ -63,18 +67,21 @@ exports.AssetParams = {
63
67
  message.rateStrategyName = reader.string();
64
68
  break;
65
69
  case 4:
66
- message.loanToValue = reader.string();
70
+ message.repayStablecoinInterestDebt = reader.bool();
67
71
  break;
68
72
  case 5:
69
- message.liquidationThreshold = reader.string();
73
+ message.loanToValue = reader.string();
70
74
  break;
71
75
  case 6:
72
- message.liquidationBonus = reader.string();
76
+ message.liquidationThreshold = reader.string();
73
77
  break;
74
78
  case 7:
75
- message.supplyCap = reader.string();
79
+ message.liquidationBonus = reader.string();
76
80
  break;
77
81
  case 8:
82
+ message.supplyCap = reader.string();
83
+ break;
84
+ case 9:
78
85
  message.borrowCap = reader.string();
79
86
  break;
80
87
  default:
@@ -98,6 +105,11 @@ exports.AssetParams = {
98
105
  object.rateStrategyName !== undefined && object.rateStrategyName !== null
99
106
  ? String(object.rateStrategyName)
100
107
  : "";
108
+ message.repayStablecoinInterestDebt =
109
+ object.repayStablecoinInterestDebt !== undefined &&
110
+ object.repayStablecoinInterestDebt !== null
111
+ ? Boolean(object.repayStablecoinInterestDebt)
112
+ : false;
101
113
  message.loanToValue =
102
114
  object.loanToValue !== undefined && object.loanToValue !== null
103
115
  ? String(object.loanToValue)
@@ -127,6 +139,8 @@ exports.AssetParams = {
127
139
  message.oracleId !== undefined && (obj.oracleId = message.oracleId);
128
140
  message.rateStrategyName !== undefined &&
129
141
  (obj.rateStrategyName = message.rateStrategyName);
142
+ message.repayStablecoinInterestDebt !== undefined &&
143
+ (obj.repayStablecoinInterestDebt = message.repayStablecoinInterestDebt);
130
144
  message.loanToValue !== undefined &&
131
145
  (obj.loanToValue = message.loanToValue);
132
146
  message.liquidationThreshold !== undefined &&
@@ -138,16 +152,18 @@ exports.AssetParams = {
138
152
  return obj;
139
153
  },
140
154
  fromPartial(object) {
141
- var _a, _b, _c, _d, _e, _f, _g, _h;
155
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
142
156
  const message = Object.assign({}, baseAssetParams);
143
157
  message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
144
158
  message.oracleId = (_b = object.oracleId) !== null && _b !== void 0 ? _b : "";
145
159
  message.rateStrategyName = (_c = object.rateStrategyName) !== null && _c !== void 0 ? _c : "";
146
- message.loanToValue = (_d = object.loanToValue) !== null && _d !== void 0 ? _d : "";
147
- message.liquidationThreshold = (_e = object.liquidationThreshold) !== null && _e !== void 0 ? _e : "";
148
- message.liquidationBonus = (_f = object.liquidationBonus) !== null && _f !== void 0 ? _f : "";
149
- message.supplyCap = (_g = object.supplyCap) !== null && _g !== void 0 ? _g : "";
150
- message.borrowCap = (_h = object.borrowCap) !== null && _h !== void 0 ? _h : "";
160
+ message.repayStablecoinInterestDebt =
161
+ (_d = object.repayStablecoinInterestDebt) !== null && _d !== void 0 ? _d : false;
162
+ message.loanToValue = (_e = object.loanToValue) !== null && _e !== void 0 ? _e : "";
163
+ message.liquidationThreshold = (_f = object.liquidationThreshold) !== null && _f !== void 0 ? _f : "";
164
+ message.liquidationBonus = (_g = object.liquidationBonus) !== null && _g !== void 0 ? _g : "";
165
+ message.supplyCap = (_h = object.supplyCap) !== null && _h !== void 0 ? _h : "";
166
+ message.borrowCap = (_j = object.borrowCap) !== null && _j !== void 0 ? _j : "";
151
167
  return message;
152
168
  },
153
169
  };
@@ -240,74 +256,6 @@ exports.AssetUtilization = {
240
256
  return message;
241
257
  },
242
258
  };
243
- const baseAssetData = {};
244
- exports.AssetData = {
245
- encode(message, writer = minimal_1.default.Writer.create()) {
246
- if (message.assetParams !== undefined) {
247
- exports.AssetParams.encode(message.assetParams, writer.uint32(10).fork()).ldelim();
248
- }
249
- if (message.assetUtilization !== undefined) {
250
- exports.AssetUtilization.encode(message.assetUtilization, writer.uint32(18).fork()).ldelim();
251
- }
252
- return writer;
253
- },
254
- decode(input, length) {
255
- const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
256
- let end = length === undefined ? reader.len : reader.pos + length;
257
- const message = Object.assign({}, baseAssetData);
258
- while (reader.pos < end) {
259
- const tag = reader.uint32();
260
- switch (tag >>> 3) {
261
- case 1:
262
- message.assetParams = exports.AssetParams.decode(reader, reader.uint32());
263
- break;
264
- case 2:
265
- message.assetUtilization = exports.AssetUtilization.decode(reader, reader.uint32());
266
- break;
267
- default:
268
- reader.skipType(tag & 7);
269
- break;
270
- }
271
- }
272
- return message;
273
- },
274
- fromJSON(object) {
275
- const message = Object.assign({}, baseAssetData);
276
- message.assetParams =
277
- object.assetParams !== undefined && object.assetParams !== null
278
- ? exports.AssetParams.fromJSON(object.assetParams)
279
- : undefined;
280
- message.assetUtilization =
281
- object.assetUtilization !== undefined && object.assetUtilization !== null
282
- ? exports.AssetUtilization.fromJSON(object.assetUtilization)
283
- : undefined;
284
- return message;
285
- },
286
- toJSON(message) {
287
- const obj = {};
288
- message.assetParams !== undefined &&
289
- (obj.assetParams = message.assetParams
290
- ? exports.AssetParams.toJSON(message.assetParams)
291
- : undefined);
292
- message.assetUtilization !== undefined &&
293
- (obj.assetUtilization = message.assetUtilization
294
- ? exports.AssetUtilization.toJSON(message.assetUtilization)
295
- : undefined);
296
- return obj;
297
- },
298
- fromPartial(object) {
299
- const message = Object.assign({}, baseAssetData);
300
- message.assetParams =
301
- object.assetParams !== undefined && object.assetParams !== null
302
- ? exports.AssetParams.fromPartial(object.assetParams)
303
- : undefined;
304
- message.assetUtilization =
305
- object.assetUtilization !== undefined && object.assetUtilization !== null
306
- ? exports.AssetUtilization.fromPartial(object.assetUtilization)
307
- : undefined;
308
- return message;
309
- },
310
- };
311
259
  if (minimal_1.default.util.Long !== long_1.default) {
312
260
  minimal_1.default.util.Long = long_1.default;
313
261
  minimal_1.default.configure();
@@ -4,10 +4,9 @@ export declare const protobufPackage = "Switcheo.carbon.cdp";
4
4
  export interface DebtInfo {
5
5
  denom: string;
6
6
  lastUpdatedTime?: Date;
7
- totalAccInterest: string;
8
7
  totalPrincipal: string;
9
- interestPerPrincipal: string;
10
- totalPaidInterest: string;
8
+ cumulativeInterestMultiplier: string;
9
+ initialCumulativeInterestMultiplier: string;
11
10
  utilizationRate: string;
12
11
  }
13
12
  export declare const DebtInfo: {
@@ -11,10 +11,9 @@ const timestamp_1 = require("../google/protobuf/timestamp");
11
11
  exports.protobufPackage = "Switcheo.carbon.cdp";
12
12
  const baseDebtInfo = {
13
13
  denom: "",
14
- totalAccInterest: "",
15
14
  totalPrincipal: "",
16
- interestPerPrincipal: "",
17
- totalPaidInterest: "",
15
+ cumulativeInterestMultiplier: "",
16
+ initialCumulativeInterestMultiplier: "",
18
17
  utilizationRate: "",
19
18
  };
20
19
  exports.DebtInfo = {
@@ -25,20 +24,17 @@ exports.DebtInfo = {
25
24
  if (message.lastUpdatedTime !== undefined) {
26
25
  timestamp_1.Timestamp.encode(toTimestamp(message.lastUpdatedTime), writer.uint32(18).fork()).ldelim();
27
26
  }
28
- if (message.totalAccInterest !== "") {
29
- writer.uint32(26).string(message.totalAccInterest);
30
- }
31
27
  if (message.totalPrincipal !== "") {
32
- writer.uint32(34).string(message.totalPrincipal);
28
+ writer.uint32(26).string(message.totalPrincipal);
33
29
  }
34
- if (message.interestPerPrincipal !== "") {
35
- writer.uint32(42).string(message.interestPerPrincipal);
30
+ if (message.cumulativeInterestMultiplier !== "") {
31
+ writer.uint32(34).string(message.cumulativeInterestMultiplier);
36
32
  }
37
- if (message.totalPaidInterest !== "") {
38
- writer.uint32(50).string(message.totalPaidInterest);
33
+ if (message.initialCumulativeInterestMultiplier !== "") {
34
+ writer.uint32(42).string(message.initialCumulativeInterestMultiplier);
39
35
  }
40
36
  if (message.utilizationRate !== "") {
41
- writer.uint32(58).string(message.utilizationRate);
37
+ writer.uint32(50).string(message.utilizationRate);
42
38
  }
43
39
  return writer;
44
40
  },
@@ -56,18 +52,15 @@ exports.DebtInfo = {
56
52
  message.lastUpdatedTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
57
53
  break;
58
54
  case 3:
59
- message.totalAccInterest = reader.string();
55
+ message.totalPrincipal = reader.string();
60
56
  break;
61
57
  case 4:
62
- message.totalPrincipal = reader.string();
58
+ message.cumulativeInterestMultiplier = reader.string();
63
59
  break;
64
60
  case 5:
65
- message.interestPerPrincipal = reader.string();
61
+ message.initialCumulativeInterestMultiplier = reader.string();
66
62
  break;
67
63
  case 6:
68
- message.totalPaidInterest = reader.string();
69
- break;
70
- case 7:
71
64
  message.utilizationRate = reader.string();
72
65
  break;
73
66
  default:
@@ -87,23 +80,19 @@ exports.DebtInfo = {
87
80
  object.lastUpdatedTime !== undefined && object.lastUpdatedTime !== null
88
81
  ? fromJsonTimestamp(object.lastUpdatedTime)
89
82
  : undefined;
90
- message.totalAccInterest =
91
- object.totalAccInterest !== undefined && object.totalAccInterest !== null
92
- ? String(object.totalAccInterest)
93
- : "";
94
83
  message.totalPrincipal =
95
84
  object.totalPrincipal !== undefined && object.totalPrincipal !== null
96
85
  ? String(object.totalPrincipal)
97
86
  : "";
98
- message.interestPerPrincipal =
99
- object.interestPerPrincipal !== undefined &&
100
- object.interestPerPrincipal !== null
101
- ? String(object.interestPerPrincipal)
87
+ message.cumulativeInterestMultiplier =
88
+ object.cumulativeInterestMultiplier !== undefined &&
89
+ object.cumulativeInterestMultiplier !== null
90
+ ? String(object.cumulativeInterestMultiplier)
102
91
  : "";
103
- message.totalPaidInterest =
104
- object.totalPaidInterest !== undefined &&
105
- object.totalPaidInterest !== null
106
- ? String(object.totalPaidInterest)
92
+ message.initialCumulativeInterestMultiplier =
93
+ object.initialCumulativeInterestMultiplier !== undefined &&
94
+ object.initialCumulativeInterestMultiplier !== null
95
+ ? String(object.initialCumulativeInterestMultiplier)
107
96
  : "";
108
97
  message.utilizationRate =
109
98
  object.utilizationRate !== undefined && object.utilizationRate !== null
@@ -116,28 +105,28 @@ exports.DebtInfo = {
116
105
  message.denom !== undefined && (obj.denom = message.denom);
117
106
  message.lastUpdatedTime !== undefined &&
118
107
  (obj.lastUpdatedTime = message.lastUpdatedTime.toISOString());
119
- message.totalAccInterest !== undefined &&
120
- (obj.totalAccInterest = message.totalAccInterest);
121
108
  message.totalPrincipal !== undefined &&
122
109
  (obj.totalPrincipal = message.totalPrincipal);
123
- message.interestPerPrincipal !== undefined &&
124
- (obj.interestPerPrincipal = message.interestPerPrincipal);
125
- message.totalPaidInterest !== undefined &&
126
- (obj.totalPaidInterest = message.totalPaidInterest);
110
+ message.cumulativeInterestMultiplier !== undefined &&
111
+ (obj.cumulativeInterestMultiplier = message.cumulativeInterestMultiplier);
112
+ message.initialCumulativeInterestMultiplier !== undefined &&
113
+ (obj.initialCumulativeInterestMultiplier =
114
+ message.initialCumulativeInterestMultiplier);
127
115
  message.utilizationRate !== undefined &&
128
116
  (obj.utilizationRate = message.utilizationRate);
129
117
  return obj;
130
118
  },
131
119
  fromPartial(object) {
132
- var _a, _b, _c, _d, _e, _f, _g;
120
+ var _a, _b, _c, _d, _e, _f;
133
121
  const message = Object.assign({}, baseDebtInfo);
134
122
  message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : "";
135
123
  message.lastUpdatedTime = (_b = object.lastUpdatedTime) !== null && _b !== void 0 ? _b : undefined;
136
- message.totalAccInterest = (_c = object.totalAccInterest) !== null && _c !== void 0 ? _c : "";
137
- message.totalPrincipal = (_d = object.totalPrincipal) !== null && _d !== void 0 ? _d : "";
138
- message.interestPerPrincipal = (_e = object.interestPerPrincipal) !== null && _e !== void 0 ? _e : "";
139
- message.totalPaidInterest = (_f = object.totalPaidInterest) !== null && _f !== void 0 ? _f : "";
140
- message.utilizationRate = (_g = object.utilizationRate) !== null && _g !== void 0 ? _g : "";
124
+ message.totalPrincipal = (_c = object.totalPrincipal) !== null && _c !== void 0 ? _c : "";
125
+ message.cumulativeInterestMultiplier =
126
+ (_d = object.cumulativeInterestMultiplier) !== null && _d !== void 0 ? _d : "";
127
+ message.initialCumulativeInterestMultiplier =
128
+ (_e = object.initialCumulativeInterestMultiplier) !== null && _e !== void 0 ? _e : "";
129
+ message.utilizationRate = (_f = object.utilizationRate) !== null && _f !== void 0 ? _f : "";
141
130
  return message;
142
131
  },
143
132
  };
@@ -1,31 +1,249 @@
1
1
  import Long from "long";
2
2
  import _m0 from "protobufjs/minimal";
3
- import { VaultType } from "../cdp/vault";
3
+ import { RateStrategyParams } from "./rate_strategy_params";
4
+ import { AssetParams } from "./asset_params";
5
+ import { DebtInfo } from "./debt_info";
6
+ import { StablecoinDebtInfo } from "./stablecoin_debt_info";
4
7
  export declare const protobufPackage = "Switcheo.carbon.cdp";
5
- export interface VaultTypeEvent {
6
- vaultType?: VaultType;
7
- creator: string;
8
+ export interface NewRateStrategyParamsEvent {
9
+ rateStrategyParams?: RateStrategyParams;
10
+ type: string;
11
+ }
12
+ export interface UpdateRateStrategyParamsEvent {
13
+ rateStrategyParams?: RateStrategyParams;
14
+ type: string;
15
+ }
16
+ export interface RemoveRateStrategyParamsEvent {
17
+ rateStrategyParams?: RateStrategyParams;
18
+ type: string;
19
+ }
20
+ export interface NewAssetParamsEvent {
21
+ assetParams?: AssetParams;
22
+ type: string;
23
+ }
24
+ export interface UpdateAssetParamsEvent {
25
+ assetParams?: AssetParams;
26
+ type: string;
27
+ }
28
+ export interface SetInterestFeeEvent {
29
+ interestFee: string;
30
+ type: string;
31
+ }
32
+ export interface SetLiquidationFeeEvent {
33
+ liquidationFee: string;
34
+ type: string;
35
+ }
36
+ export interface SetStablecoinInterestRateEvent {
37
+ stablecoinInterestRate: string;
38
+ type: string;
39
+ }
40
+ export interface SupplyAssetEvent {
41
+ supplier: string;
42
+ denom: string;
43
+ amountSupplied: string;
44
+ cdpDenom: string;
45
+ amountMinted: string;
46
+ }
47
+ export interface WithdrawAssetEvent {
48
+ withdrawer: string;
49
+ denom: string;
50
+ amountWithdrawed: string;
51
+ cdpDenom: string;
52
+ amountBurned: string;
53
+ }
54
+ export interface BorrowAssetEvent {
55
+ borrower: string;
56
+ denom: string;
57
+ amountBorrowed: string;
58
+ healthFactor: string;
59
+ }
60
+ export interface RepayAssetEvent {
61
+ repayer: string;
62
+ debtor: string;
63
+ denom: string;
64
+ principalRepaid: string;
65
+ interestRepaid: string;
66
+ healthFactor: string;
67
+ }
68
+ export interface LockCollateralEvent {
69
+ locker: string;
70
+ cdpDenom: string;
71
+ amountLocked: string;
72
+ healthFactor: string;
73
+ }
74
+ export interface UnlockCollateralEvent {
75
+ unlocker: string;
76
+ cdpDenom: string;
77
+ amountUnlocked: string;
78
+ healthFactor: string;
79
+ }
80
+ export interface UpdateDebtInfoEvent {
81
+ debtInfo?: DebtInfo;
82
+ type: string;
8
83
  }
9
- export interface VaultEvent {
84
+ export interface UpdateStablecoinDebtInfoEvent {
85
+ stablecoinDebtInfo?: StablecoinDebtInfo;
10
86
  type: string;
11
- vaultTypeId: Long;
12
- collateralAmount: string;
87
+ }
88
+ export interface MintStablecoinEvent {
89
+ minter: string;
90
+ denom: string;
91
+ amountMinted: string;
92
+ healthFactor: string;
93
+ }
94
+ export interface ReturnStablecoinEvent {
95
+ returner: string;
96
+ debtor: string;
97
+ interestDenom: string;
98
+ interestRepaid: string;
99
+ principalRepaid: string;
100
+ healthFactor: string;
101
+ }
102
+ export interface LiquidateCollateralEvent {
103
+ liquidator: string;
104
+ debtor: string;
105
+ collateralDenom: string;
106
+ collateralAmountLiquidated: string;
107
+ collateralAmountLiquidator: string;
108
+ collateralAmountFee: string;
109
+ liquidationPrice: string;
110
+ marketPrice: string;
111
+ discount: string;
112
+ debtDenom: string;
13
113
  debtAmount: string;
14
- address: string;
15
- }
16
- export declare const VaultTypeEvent: {
17
- encode(message: VaultTypeEvent, writer?: _m0.Writer): _m0.Writer;
18
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VaultTypeEvent;
19
- fromJSON(object: any): VaultTypeEvent;
20
- toJSON(message: VaultTypeEvent): unknown;
21
- fromPartial(object: DeepPartial<VaultTypeEvent>): VaultTypeEvent;
22
- };
23
- export declare const VaultEvent: {
24
- encode(message: VaultEvent, writer?: _m0.Writer): _m0.Writer;
25
- decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VaultEvent;
26
- fromJSON(object: any): VaultEvent;
27
- toJSON(message: VaultEvent): unknown;
28
- fromPartial(object: DeepPartial<VaultEvent>): VaultEvent;
114
+ }
115
+ export declare const NewRateStrategyParamsEvent: {
116
+ encode(message: NewRateStrategyParamsEvent, writer?: _m0.Writer): _m0.Writer;
117
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): NewRateStrategyParamsEvent;
118
+ fromJSON(object: any): NewRateStrategyParamsEvent;
119
+ toJSON(message: NewRateStrategyParamsEvent): unknown;
120
+ fromPartial(object: DeepPartial<NewRateStrategyParamsEvent>): NewRateStrategyParamsEvent;
121
+ };
122
+ export declare const UpdateRateStrategyParamsEvent: {
123
+ encode(message: UpdateRateStrategyParamsEvent, writer?: _m0.Writer): _m0.Writer;
124
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateRateStrategyParamsEvent;
125
+ fromJSON(object: any): UpdateRateStrategyParamsEvent;
126
+ toJSON(message: UpdateRateStrategyParamsEvent): unknown;
127
+ fromPartial(object: DeepPartial<UpdateRateStrategyParamsEvent>): UpdateRateStrategyParamsEvent;
128
+ };
129
+ export declare const RemoveRateStrategyParamsEvent: {
130
+ encode(message: RemoveRateStrategyParamsEvent, writer?: _m0.Writer): _m0.Writer;
131
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RemoveRateStrategyParamsEvent;
132
+ fromJSON(object: any): RemoveRateStrategyParamsEvent;
133
+ toJSON(message: RemoveRateStrategyParamsEvent): unknown;
134
+ fromPartial(object: DeepPartial<RemoveRateStrategyParamsEvent>): RemoveRateStrategyParamsEvent;
135
+ };
136
+ export declare const NewAssetParamsEvent: {
137
+ encode(message: NewAssetParamsEvent, writer?: _m0.Writer): _m0.Writer;
138
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): NewAssetParamsEvent;
139
+ fromJSON(object: any): NewAssetParamsEvent;
140
+ toJSON(message: NewAssetParamsEvent): unknown;
141
+ fromPartial(object: DeepPartial<NewAssetParamsEvent>): NewAssetParamsEvent;
142
+ };
143
+ export declare const UpdateAssetParamsEvent: {
144
+ encode(message: UpdateAssetParamsEvent, writer?: _m0.Writer): _m0.Writer;
145
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateAssetParamsEvent;
146
+ fromJSON(object: any): UpdateAssetParamsEvent;
147
+ toJSON(message: UpdateAssetParamsEvent): unknown;
148
+ fromPartial(object: DeepPartial<UpdateAssetParamsEvent>): UpdateAssetParamsEvent;
149
+ };
150
+ export declare const SetInterestFeeEvent: {
151
+ encode(message: SetInterestFeeEvent, writer?: _m0.Writer): _m0.Writer;
152
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetInterestFeeEvent;
153
+ fromJSON(object: any): SetInterestFeeEvent;
154
+ toJSON(message: SetInterestFeeEvent): unknown;
155
+ fromPartial(object: DeepPartial<SetInterestFeeEvent>): SetInterestFeeEvent;
156
+ };
157
+ export declare const SetLiquidationFeeEvent: {
158
+ encode(message: SetLiquidationFeeEvent, writer?: _m0.Writer): _m0.Writer;
159
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetLiquidationFeeEvent;
160
+ fromJSON(object: any): SetLiquidationFeeEvent;
161
+ toJSON(message: SetLiquidationFeeEvent): unknown;
162
+ fromPartial(object: DeepPartial<SetLiquidationFeeEvent>): SetLiquidationFeeEvent;
163
+ };
164
+ export declare const SetStablecoinInterestRateEvent: {
165
+ encode(message: SetStablecoinInterestRateEvent, writer?: _m0.Writer): _m0.Writer;
166
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetStablecoinInterestRateEvent;
167
+ fromJSON(object: any): SetStablecoinInterestRateEvent;
168
+ toJSON(message: SetStablecoinInterestRateEvent): unknown;
169
+ fromPartial(object: DeepPartial<SetStablecoinInterestRateEvent>): SetStablecoinInterestRateEvent;
170
+ };
171
+ export declare const SupplyAssetEvent: {
172
+ encode(message: SupplyAssetEvent, writer?: _m0.Writer): _m0.Writer;
173
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SupplyAssetEvent;
174
+ fromJSON(object: any): SupplyAssetEvent;
175
+ toJSON(message: SupplyAssetEvent): unknown;
176
+ fromPartial(object: DeepPartial<SupplyAssetEvent>): SupplyAssetEvent;
177
+ };
178
+ export declare const WithdrawAssetEvent: {
179
+ encode(message: WithdrawAssetEvent, writer?: _m0.Writer): _m0.Writer;
180
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): WithdrawAssetEvent;
181
+ fromJSON(object: any): WithdrawAssetEvent;
182
+ toJSON(message: WithdrawAssetEvent): unknown;
183
+ fromPartial(object: DeepPartial<WithdrawAssetEvent>): WithdrawAssetEvent;
184
+ };
185
+ export declare const BorrowAssetEvent: {
186
+ encode(message: BorrowAssetEvent, writer?: _m0.Writer): _m0.Writer;
187
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BorrowAssetEvent;
188
+ fromJSON(object: any): BorrowAssetEvent;
189
+ toJSON(message: BorrowAssetEvent): unknown;
190
+ fromPartial(object: DeepPartial<BorrowAssetEvent>): BorrowAssetEvent;
191
+ };
192
+ export declare const RepayAssetEvent: {
193
+ encode(message: RepayAssetEvent, writer?: _m0.Writer): _m0.Writer;
194
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RepayAssetEvent;
195
+ fromJSON(object: any): RepayAssetEvent;
196
+ toJSON(message: RepayAssetEvent): unknown;
197
+ fromPartial(object: DeepPartial<RepayAssetEvent>): RepayAssetEvent;
198
+ };
199
+ export declare const LockCollateralEvent: {
200
+ encode(message: LockCollateralEvent, writer?: _m0.Writer): _m0.Writer;
201
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LockCollateralEvent;
202
+ fromJSON(object: any): LockCollateralEvent;
203
+ toJSON(message: LockCollateralEvent): unknown;
204
+ fromPartial(object: DeepPartial<LockCollateralEvent>): LockCollateralEvent;
205
+ };
206
+ export declare const UnlockCollateralEvent: {
207
+ encode(message: UnlockCollateralEvent, writer?: _m0.Writer): _m0.Writer;
208
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UnlockCollateralEvent;
209
+ fromJSON(object: any): UnlockCollateralEvent;
210
+ toJSON(message: UnlockCollateralEvent): unknown;
211
+ fromPartial(object: DeepPartial<UnlockCollateralEvent>): UnlockCollateralEvent;
212
+ };
213
+ export declare const UpdateDebtInfoEvent: {
214
+ encode(message: UpdateDebtInfoEvent, writer?: _m0.Writer): _m0.Writer;
215
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateDebtInfoEvent;
216
+ fromJSON(object: any): UpdateDebtInfoEvent;
217
+ toJSON(message: UpdateDebtInfoEvent): unknown;
218
+ fromPartial(object: DeepPartial<UpdateDebtInfoEvent>): UpdateDebtInfoEvent;
219
+ };
220
+ export declare const UpdateStablecoinDebtInfoEvent: {
221
+ encode(message: UpdateStablecoinDebtInfoEvent, writer?: _m0.Writer): _m0.Writer;
222
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateStablecoinDebtInfoEvent;
223
+ fromJSON(object: any): UpdateStablecoinDebtInfoEvent;
224
+ toJSON(message: UpdateStablecoinDebtInfoEvent): unknown;
225
+ fromPartial(object: DeepPartial<UpdateStablecoinDebtInfoEvent>): UpdateStablecoinDebtInfoEvent;
226
+ };
227
+ export declare const MintStablecoinEvent: {
228
+ encode(message: MintStablecoinEvent, writer?: _m0.Writer): _m0.Writer;
229
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MintStablecoinEvent;
230
+ fromJSON(object: any): MintStablecoinEvent;
231
+ toJSON(message: MintStablecoinEvent): unknown;
232
+ fromPartial(object: DeepPartial<MintStablecoinEvent>): MintStablecoinEvent;
233
+ };
234
+ export declare const ReturnStablecoinEvent: {
235
+ encode(message: ReturnStablecoinEvent, writer?: _m0.Writer): _m0.Writer;
236
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ReturnStablecoinEvent;
237
+ fromJSON(object: any): ReturnStablecoinEvent;
238
+ toJSON(message: ReturnStablecoinEvent): unknown;
239
+ fromPartial(object: DeepPartial<ReturnStablecoinEvent>): ReturnStablecoinEvent;
240
+ };
241
+ export declare const LiquidateCollateralEvent: {
242
+ encode(message: LiquidateCollateralEvent, writer?: _m0.Writer): _m0.Writer;
243
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): LiquidateCollateralEvent;
244
+ fromJSON(object: any): LiquidateCollateralEvent;
245
+ toJSON(message: LiquidateCollateralEvent): unknown;
246
+ fromPartial(object: DeepPartial<LiquidateCollateralEvent>): LiquidateCollateralEvent;
29
247
  };
30
248
  declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
249
  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 {} ? {