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.
- package/lib/clients/CarbonQueryClient.d.ts +5 -2
- package/lib/clients/CarbonQueryClient.js +59 -54
- package/lib/clients/ETHClient.js +4 -4
- package/lib/clients/NEOClient.js +1 -1
- package/lib/clients/TokenClient.d.ts +6 -1
- package/lib/clients/TokenClient.js +24 -8
- package/lib/codec/book/genesis.d.ts +1 -1
- package/lib/codec/book/genesis.js +1 -1
- package/lib/codec/book/query.d.ts +1 -1
- package/lib/codec/book/query.js +1 -1
- package/lib/codec/broker/genesis.d.ts +1 -1
- package/lib/codec/broker/genesis.js +1 -1
- package/lib/codec/broker/query.d.ts +3 -3
- package/lib/codec/broker/query.js +3 -3
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +1 -1
- package/lib/codec/btcx/denom_cross_chain_info.js +1 -1
- package/lib/codec/btcx/query.d.ts +1 -1
- package/lib/codec/btcx/query.js +1 -1
- package/lib/codec/ccm/genesis.d.ts +1 -1
- package/lib/codec/ccm/genesis.js +1 -1
- package/lib/codec/cdp/asset_params.d.ts +1 -11
- package/lib/codec/cdp/asset_params.js +32 -84
- package/lib/codec/cdp/debt_info.d.ts +2 -3
- package/lib/codec/cdp/debt_info.js +31 -42
- package/lib/codec/cdp/event.d.ts +240 -22
- package/lib/codec/cdp/event.js +1516 -80
- package/lib/codec/cdp/genesis.d.ts +80 -4
- package/lib/codec/cdp/genesis.js +531 -22
- package/lib/codec/cdp/query.d.ts +397 -94
- package/lib/codec/cdp/query.js +1586 -230
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +2 -3
- package/lib/codec/cdp/stablecoin_debt_info.js +29 -40
- package/lib/codec/cdp/tx.d.ts +466 -96
- package/lib/codec/cdp/tx.js +1961 -181
- package/lib/codec/coin/event.d.ts +1 -1
- package/lib/codec/coin/event.js +1 -1
- package/lib/codec/coin/genesis.d.ts +2 -2
- package/lib/codec/coin/genesis.js +2 -2
- package/lib/codec/coin/proposal.d.ts +1 -1
- package/lib/codec/coin/proposal.js +1 -1
- package/lib/codec/coin/query.d.ts +2 -5
- package/lib/codec/coin/query.js +2 -8
- package/lib/codec/coin/token.d.ts +11 -0
- package/lib/codec/coin/token.js +65 -1
- package/lib/codec/coin/tx.d.ts +1 -1
- package/lib/codec/coin/tx.js +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/auth/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/authz/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/bank.js +1 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +2 -2
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +3 -3
- package/lib/codec/cosmos/bank/v1beta1/query.js +3 -3
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/crisis/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/genesis.js +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/query.js +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/feegrant/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +1 -1
- package/lib/codec/cosmos/gov/v1beta1/gov.js +1 -1
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/params/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/slashing/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/authz.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/genesis.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +1 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +1 -1
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +1 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/service.js +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/tx/v1beta1/tx.js +3 -3
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/upgrade/v1beta1/query.js +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/tx.js +1 -1
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +2 -2
- package/lib/codec/cosmos/vesting/v1beta1/vesting.js +2 -2
- package/lib/codec/fee/genesis.d.ts +1 -1
- package/lib/codec/fee/genesis.js +1 -1
- package/lib/codec/fee/proposal.d.ts +1 -1
- package/lib/codec/fee/proposal.js +1 -1
- package/lib/codec/fee/query.d.ts +1 -1
- package/lib/codec/fee/query.js +1 -1
- package/lib/codec/fee/tx.d.ts +1 -1
- package/lib/codec/fee/tx.js +1 -1
- package/lib/codec/headersync/genesis.d.ts +1 -1
- package/lib/codec/headersync/genesis.js +1 -1
- package/lib/codec/headersync/query.d.ts +1 -1
- package/lib/codec/headersync/query.js +1 -1
- package/lib/codec/index.d.ts +53 -22
- package/lib/codec/index.js +520 -384
- package/lib/codec/inflation/genesis.d.ts +1 -1
- package/lib/codec/inflation/genesis.js +1 -1
- package/lib/codec/inflation/query.d.ts +1 -1
- package/lib/codec/inflation/query.js +1 -1
- package/lib/codec/insurance/genesis.d.ts +1 -1
- package/lib/codec/insurance/genesis.js +1 -1
- package/lib/codec/leverage/genesis.d.ts +1 -1
- package/lib/codec/leverage/genesis.js +1 -1
- package/lib/codec/leverage/query.d.ts +1 -1
- package/lib/codec/leverage/query.js +1 -1
- package/lib/codec/liquidation/genesis.d.ts +1 -1
- package/lib/codec/liquidation/genesis.js +1 -1
- package/lib/codec/liquidation/query.d.ts +1 -1
- package/lib/codec/liquidation/query.js +1 -1
- package/lib/codec/liquidation/quote_changes.d.ts +1 -1
- package/lib/codec/liquidation/quote_changes.js +1 -1
- package/lib/codec/liquiditypool/event.d.ts +2 -2
- package/lib/codec/liquiditypool/event.js +2 -2
- package/lib/codec/liquiditypool/genesis.d.ts +2 -2
- package/lib/codec/liquiditypool/genesis.js +2 -2
- package/lib/codec/liquiditypool/proposal.d.ts +1 -1
- package/lib/codec/liquiditypool/proposal.js +1 -1
- package/lib/codec/liquiditypool/query.d.ts +2 -2
- package/lib/codec/liquiditypool/query.js +2 -2
- package/lib/codec/liquiditypool/tx.d.ts +1 -1
- package/lib/codec/liquiditypool/tx.js +1 -1
- package/lib/codec/lockproxy/genesis.d.ts +1 -1
- package/lib/codec/lockproxy/genesis.js +1 -1
- package/lib/codec/lockproxy/query.d.ts +1 -1
- package/lib/codec/lockproxy/query.js +1 -1
- package/lib/codec/market/event.d.ts +1 -1
- package/lib/codec/market/event.js +1 -1
- package/lib/codec/market/genesis.d.ts +2 -1
- package/lib/codec/market/genesis.js +20 -2
- package/lib/codec/market/proposal.d.ts +1 -1
- package/lib/codec/market/proposal.js +1 -1
- package/lib/codec/market/query.d.ts +1 -1
- package/lib/codec/market/query.js +1 -1
- package/lib/codec/market/tx.d.ts +1 -1
- package/lib/codec/market/tx.js +1 -1
- package/lib/codec/marketstats/genesis.d.ts +1 -1
- package/lib/codec/marketstats/genesis.js +1 -1
- package/lib/codec/marketstats/query.d.ts +2 -2
- package/lib/codec/marketstats/query.js +2 -2
- package/lib/codec/misc/message.d.ts +1 -1
- package/lib/codec/misc/message.js +1 -1
- package/lib/codec/misc/query.d.ts +3 -3
- package/lib/codec/misc/query.js +3 -3
- package/lib/codec/misc/trade.d.ts +1 -0
- package/lib/codec/misc/trade.js +17 -0
- package/lib/codec/misc/transaction.d.ts +1 -1
- package/lib/codec/misc/transaction.js +1 -1
- package/lib/codec/oracle/event.d.ts +1 -1
- package/lib/codec/oracle/event.js +1 -1
- package/lib/codec/oracle/genesis.d.ts +1 -1
- package/lib/codec/oracle/genesis.js +1 -1
- package/lib/codec/oracle/proposal.d.ts +1 -1
- package/lib/codec/oracle/proposal.js +1 -1
- package/lib/codec/oracle/query.d.ts +2 -2
- package/lib/codec/oracle/query.js +2 -2
- package/lib/codec/order/event.d.ts +1 -1
- package/lib/codec/order/event.js +1 -1
- package/lib/codec/order/genesis.d.ts +1 -1
- package/lib/codec/order/genesis.js +1 -1
- package/lib/codec/order/query.d.ts +1 -1
- package/lib/codec/order/query.js +1 -1
- package/lib/codec/position/event.d.ts +1 -1
- package/lib/codec/position/event.js +1 -1
- package/lib/codec/position/genesis.d.ts +1 -1
- package/lib/codec/position/genesis.js +1 -1
- package/lib/codec/position/query.d.ts +1 -1
- package/lib/codec/position/query.js +1 -1
- package/lib/codec/pricing/event.d.ts +11 -1
- package/lib/codec/pricing/event.js +52 -2
- package/lib/codec/pricing/genesis.d.ts +2 -1
- package/lib/codec/pricing/genesis.js +20 -5
- package/lib/codec/pricing/pricing.d.ts +13 -0
- package/lib/codec/pricing/pricing.js +83 -1
- package/lib/codec/pricing/query.d.ts +1 -1
- package/lib/codec/pricing/query.js +1 -1
- package/lib/codec/profile/event.d.ts +1 -1
- package/lib/codec/profile/event.js +1 -1
- package/lib/codec/profile/genesis.d.ts +1 -1
- package/lib/codec/profile/genesis.js +1 -1
- package/lib/codec/profile/query.d.ts +1 -1
- package/lib/codec/profile/query.js +1 -1
- package/lib/codec/subaccount/genesis.d.ts +1 -1
- package/lib/codec/subaccount/genesis.js +1 -1
- package/lib/codec/subaccount/query.d.ts +1 -1
- package/lib/codec/subaccount/query.js +1 -1
- package/lib/codec/tendermint/abci/types.d.ts +4 -4
- package/lib/codec/tendermint/abci/types.js +4 -4
- package/lib/codec/tendermint/types/block.d.ts +2 -2
- package/lib/codec/tendermint/types/block.js +2 -2
- package/lib/codec/tendermint/types/evidence.d.ts +2 -2
- package/lib/codec/tendermint/types/evidence.js +2 -2
- package/lib/codec/tendermint/types/types.d.ts +3 -3
- package/lib/codec/tendermint/types/types.js +3 -3
- package/lib/codec/tendermint/types/validator.d.ts +1 -1
- package/lib/codec/tendermint/types/validator.js +1 -1
- package/lib/constant/network.d.ts +3 -0
- package/lib/constant/network.js +12 -0
- package/lib/modules/admin.d.ts +53 -1
- package/lib/modules/admin.js +175 -43
- package/lib/modules/cdp.d.ts +62 -12
- package/lib/modules/cdp.js +149 -20
- package/lib/modules/fee.d.ts +2 -2
- package/lib/modules/fee.js +4 -5
- package/lib/provider/amino/types/admin.js +48 -7
- package/lib/provider/amino/types/cdp.js +72 -32
- package/lib/provider/sdk/SDKProvider.d.ts +2 -1
- package/lib/util/tx.d.ts +42 -14
- package/lib/websocket/channel.js +44 -0
- package/lib/websocket/models.d.ts +116 -0
- package/lib/websocket/types.d.ts +58 -3
- package/lib/websocket/types.js +22 -0
- 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.
|
|
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(
|
|
37
|
+
writer.uint32(42).string(message.loanToValue);
|
|
34
38
|
}
|
|
35
39
|
if (message.liquidationThreshold !== "") {
|
|
36
|
-
writer.uint32(
|
|
40
|
+
writer.uint32(50).string(message.liquidationThreshold);
|
|
37
41
|
}
|
|
38
42
|
if (message.liquidationBonus !== "") {
|
|
39
|
-
writer.uint32(
|
|
43
|
+
writer.uint32(58).string(message.liquidationBonus);
|
|
40
44
|
}
|
|
41
45
|
if (message.supplyCap !== "") {
|
|
42
|
-
writer.uint32(
|
|
46
|
+
writer.uint32(66).string(message.supplyCap);
|
|
43
47
|
}
|
|
44
48
|
if (message.borrowCap !== "") {
|
|
45
|
-
writer.uint32(
|
|
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.
|
|
70
|
+
message.repayStablecoinInterestDebt = reader.bool();
|
|
67
71
|
break;
|
|
68
72
|
case 5:
|
|
69
|
-
message.
|
|
73
|
+
message.loanToValue = reader.string();
|
|
70
74
|
break;
|
|
71
75
|
case 6:
|
|
72
|
-
message.
|
|
76
|
+
message.liquidationThreshold = reader.string();
|
|
73
77
|
break;
|
|
74
78
|
case 7:
|
|
75
|
-
message.
|
|
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.
|
|
147
|
-
|
|
148
|
-
message.
|
|
149
|
-
message.
|
|
150
|
-
message.
|
|
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
17
|
-
|
|
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(
|
|
28
|
+
writer.uint32(26).string(message.totalPrincipal);
|
|
33
29
|
}
|
|
34
|
-
if (message.
|
|
35
|
-
writer.uint32(
|
|
30
|
+
if (message.cumulativeInterestMultiplier !== "") {
|
|
31
|
+
writer.uint32(34).string(message.cumulativeInterestMultiplier);
|
|
36
32
|
}
|
|
37
|
-
if (message.
|
|
38
|
-
writer.uint32(
|
|
33
|
+
if (message.initialCumulativeInterestMultiplier !== "") {
|
|
34
|
+
writer.uint32(42).string(message.initialCumulativeInterestMultiplier);
|
|
39
35
|
}
|
|
40
36
|
if (message.utilizationRate !== "") {
|
|
41
|
-
writer.uint32(
|
|
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.
|
|
55
|
+
message.totalPrincipal = reader.string();
|
|
60
56
|
break;
|
|
61
57
|
case 4:
|
|
62
|
-
message.
|
|
58
|
+
message.cumulativeInterestMultiplier = reader.string();
|
|
63
59
|
break;
|
|
64
60
|
case 5:
|
|
65
|
-
message.
|
|
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.
|
|
99
|
-
object.
|
|
100
|
-
object.
|
|
101
|
-
? String(object.
|
|
87
|
+
message.cumulativeInterestMultiplier =
|
|
88
|
+
object.cumulativeInterestMultiplier !== undefined &&
|
|
89
|
+
object.cumulativeInterestMultiplier !== null
|
|
90
|
+
? String(object.cumulativeInterestMultiplier)
|
|
102
91
|
: "";
|
|
103
|
-
message.
|
|
104
|
-
object.
|
|
105
|
-
object.
|
|
106
|
-
? String(object.
|
|
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.
|
|
124
|
-
(obj.
|
|
125
|
-
message.
|
|
126
|
-
(obj.
|
|
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
|
|
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.
|
|
137
|
-
message.
|
|
138
|
-
|
|
139
|
-
message.
|
|
140
|
-
|
|
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
|
};
|
package/lib/codec/cdp/event.d.ts
CHANGED
|
@@ -1,31 +1,249 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import {
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
84
|
+
export interface UpdateStablecoinDebtInfoEvent {
|
|
85
|
+
stablecoinDebtInfo?: StablecoinDebtInfo;
|
|
10
86
|
type: string;
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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 {} ? {
|