@defisaver/positions-sdk 0.0.166-dev → 0.0.166-dev10-liquity-v2
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/.mocharc.json +4 -4
- package/.nvmrc +1 -1
- package/README.md +69 -69
- package/cjs/config/contracts.d.ts +7 -45
- package/cjs/config/contracts.js +3 -3
- package/cjs/contracts.d.ts +1 -1
- package/cjs/contracts.js +2 -2
- package/cjs/helpers/index.d.ts +1 -1
- package/cjs/helpers/index.js +2 -2
- package/cjs/helpers/liquityV2Helpers/index.d.ts +12 -0
- package/cjs/helpers/liquityV2Helpers/index.js +63 -0
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +3 -3
- package/cjs/liquityV2/index.d.ts +16 -0
- package/cjs/liquityV2/index.js +139 -0
- package/cjs/markets/compound/marketsAssets.js +3 -3
- package/cjs/markets/index.d.ts +1 -1
- package/cjs/markets/index.js +3 -3
- package/cjs/markets/liquityV2/index.d.ts +8 -0
- package/cjs/markets/liquityV2/index.js +34 -0
- package/cjs/markets/morphoBlue/index.d.ts +4 -0
- package/cjs/markets/morphoBlue/index.js +36 -1
- package/cjs/markets/spark/marketAssets.js +1 -1
- package/cjs/moneymarket/moneymarketCommonService.js +1 -1
- package/cjs/services/utils.d.ts +0 -2
- package/cjs/services/utils.js +1 -4
- package/cjs/staking/staking.d.ts +1 -0
- package/cjs/staking/staking.js +31 -2
- package/cjs/types/contracts/generated/LiquityV2View.d.ts +240 -0
- package/cjs/types/contracts/generated/index.d.ts +1 -1
- package/cjs/types/index.d.ts +1 -1
- package/cjs/types/index.js +1 -1
- package/cjs/types/liquityV2.d.ts +90 -0
- package/cjs/types/liquityV2.js +8 -0
- package/cjs/types/morphoBlue.d.ts +3 -1
- package/cjs/types/morphoBlue.js +2 -0
- package/esm/config/contracts.d.ts +7 -45
- package/esm/config/contracts.js +3 -3
- package/esm/contracts.d.ts +1 -1
- package/esm/contracts.js +1 -1
- package/esm/helpers/index.d.ts +1 -1
- package/esm/helpers/index.js +1 -1
- package/esm/helpers/liquityV2Helpers/index.d.ts +12 -0
- package/esm/helpers/liquityV2Helpers/index.js +55 -0
- package/esm/index.d.ts +2 -2
- package/esm/index.js +2 -2
- package/esm/liquityV2/index.d.ts +16 -0
- package/esm/liquityV2/index.js +129 -0
- package/esm/markets/compound/marketsAssets.js +3 -3
- package/esm/markets/index.d.ts +1 -1
- package/esm/markets/index.js +1 -1
- package/esm/markets/liquityV2/index.d.ts +8 -0
- package/esm/markets/liquityV2/index.js +28 -0
- package/esm/markets/morphoBlue/index.d.ts +4 -0
- package/esm/markets/morphoBlue/index.js +33 -0
- package/esm/markets/spark/marketAssets.js +1 -1
- package/esm/moneymarket/moneymarketCommonService.js +1 -1
- package/esm/services/utils.d.ts +0 -2
- package/esm/services/utils.js +0 -2
- package/esm/staking/staking.d.ts +1 -0
- package/esm/staking/staking.js +29 -1
- package/esm/types/contracts/generated/LiquityV2View.d.ts +240 -0
- package/esm/types/contracts/generated/index.d.ts +1 -1
- package/esm/types/index.d.ts +1 -1
- package/esm/types/index.js +1 -1
- package/esm/types/liquityV2.d.ts +90 -0
- package/esm/types/liquityV2.js +5 -0
- package/esm/types/morphoBlue.d.ts +3 -1
- package/esm/types/morphoBlue.js +2 -0
- package/package.json +49 -44
- package/src/aaveV2/index.ts +227 -227
- package/src/aaveV3/index.ts +590 -590
- package/src/assets/index.ts +60 -60
- package/src/chickenBonds/index.ts +123 -123
- package/src/compoundV2/index.ts +219 -219
- package/src/compoundV3/index.ts +281 -281
- package/src/config/contracts.js +1040 -1040
- package/src/constants/index.ts +6 -6
- package/src/contracts.ts +130 -130
- package/src/curveUsd/index.ts +229 -229
- package/src/exchange/index.ts +17 -17
- package/src/helpers/aaveHelpers/index.ts +194 -194
- package/src/helpers/chickenBondsHelpers/index.ts +23 -23
- package/src/helpers/compoundHelpers/index.ts +246 -246
- package/src/helpers/curveUsdHelpers/index.ts +40 -40
- package/src/helpers/index.ts +9 -9
- package/src/helpers/liquityV2Helpers/index.ts +80 -0
- package/src/helpers/llamaLendHelpers/index.ts +53 -53
- package/src/helpers/makerHelpers/index.ts +94 -94
- package/src/helpers/morphoBlueHelpers/index.ts +115 -115
- package/src/helpers/sparkHelpers/index.ts +150 -150
- package/src/index.ts +48 -48
- package/src/liquity/index.ts +116 -116
- package/src/liquityV2/index.ts +159 -0
- package/src/llamaLend/index.ts +275 -275
- package/src/maker/index.ts +117 -117
- package/src/markets/aave/index.ts +152 -152
- package/src/markets/aave/marketAssets.ts +46 -46
- package/src/markets/compound/index.ts +173 -173
- package/src/markets/compound/marketsAssets.ts +64 -64
- package/src/markets/curveUsd/index.ts +69 -69
- package/src/markets/index.ts +23 -24
- package/src/markets/liquityV2/index.ts +31 -0
- package/src/markets/llamaLend/contractAddresses.ts +141 -141
- package/src/markets/llamaLend/index.ts +235 -235
- package/src/markets/morphoBlue/index.ts +728 -691
- package/src/markets/spark/index.ts +29 -29
- package/src/markets/spark/marketAssets.ts +10 -10
- package/src/moneymarket/moneymarketCommonService.ts +80 -80
- package/src/morphoAaveV2/index.ts +256 -256
- package/src/morphoAaveV3/index.ts +630 -630
- package/src/morphoBlue/index.ts +171 -171
- package/src/multicall/index.ts +22 -22
- package/src/services/dsrService.ts +15 -15
- package/src/services/priceService.ts +21 -21
- package/src/services/utils.ts +54 -57
- package/src/setup.ts +8 -8
- package/src/spark/index.ts +424 -424
- package/src/staking/staking.ts +218 -189
- package/src/types/aave.ts +262 -262
- package/src/types/chickenBonds.ts +45 -45
- package/src/types/common.ts +84 -84
- package/src/types/compound.ts +129 -129
- package/src/types/contracts/generated/LiquityV2View.ts +311 -0
- package/src/types/contracts/generated/index.ts +1 -1
- package/src/types/curveUsd.ts +118 -118
- package/src/types/index.ts +10 -10
- package/src/types/liquity.ts +30 -30
- package/src/types/liquityV2.ts +96 -0
- package/src/types/llamaLend.ts +155 -155
- package/src/types/maker.ts +50 -50
- package/src/types/morphoBlue.ts +146 -144
- package/src/types/spark.ts +127 -127
- package/cjs/eulerV2/index.d.ts +0 -40
- package/cjs/eulerV2/index.js +0 -207
- package/cjs/helpers/eulerHelpers/index.d.ts +0 -27
- package/cjs/helpers/eulerHelpers/index.js +0 -232
- package/cjs/markets/euler/index.d.ts +0 -10
- package/cjs/markets/euler/index.js +0 -41
- package/cjs/types/contracts/generated/EulerV2View.d.ts +0 -333
- package/cjs/types/euler.d.ts +0 -148
- package/cjs/types/euler.js +0 -15
- package/esm/eulerV2/index.d.ts +0 -40
- package/esm/eulerV2/index.js +0 -199
- package/esm/helpers/eulerHelpers/index.d.ts +0 -27
- package/esm/helpers/eulerHelpers/index.js +0 -219
- package/esm/markets/euler/index.d.ts +0 -10
- package/esm/markets/euler/index.js +0 -34
- package/esm/types/contracts/generated/EulerV2View.d.ts +0 -333
- package/esm/types/euler.d.ts +0 -148
- package/esm/types/euler.js +0 -12
- package/src/eulerV2/index.ts +0 -286
- package/src/helpers/eulerHelpers/index.ts +0 -231
- package/src/markets/euler/index.ts +0 -38
- package/src/types/contracts/generated/EulerV2View.ts +0 -434
- package/src/types/euler.ts +0 -171
- /package/cjs/types/contracts/generated/{EulerV2View.js → LiquityV2View.js} +0 -0
- /package/esm/types/contracts/generated/{EulerV2View.js → LiquityV2View.js} +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type BN from "bn.js";
|
|
3
|
+
import type { ContractOptions } from "web3-eth-contract";
|
|
4
|
+
import type { EventLog } from "web3-core";
|
|
5
|
+
import type { EventEmitter } from "events";
|
|
6
|
+
import type { Callback, NonPayableTransactionObject, BlockType, BaseContract } from "./types";
|
|
7
|
+
export interface EventOptions {
|
|
8
|
+
filter?: object;
|
|
9
|
+
fromBlock?: BlockType;
|
|
10
|
+
topics?: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare namespace LiquityV2View {
|
|
13
|
+
type MarketDataStruct = [
|
|
14
|
+
string,
|
|
15
|
+
number | string | BN,
|
|
16
|
+
number | string | BN,
|
|
17
|
+
number | string | BN,
|
|
18
|
+
number | string | BN,
|
|
19
|
+
number | string | BN,
|
|
20
|
+
number | string | BN,
|
|
21
|
+
number | string | BN,
|
|
22
|
+
string,
|
|
23
|
+
string,
|
|
24
|
+
string,
|
|
25
|
+
string,
|
|
26
|
+
string,
|
|
27
|
+
string,
|
|
28
|
+
string,
|
|
29
|
+
string,
|
|
30
|
+
string,
|
|
31
|
+
number | string | BN,
|
|
32
|
+
boolean
|
|
33
|
+
] | {
|
|
34
|
+
market: string;
|
|
35
|
+
CCR: number | string | BN;
|
|
36
|
+
MCR: number | string | BN;
|
|
37
|
+
SCR: number | string | BN;
|
|
38
|
+
LIQUIDATION_PENALTY_SP: number | string | BN;
|
|
39
|
+
LIQUIDATION_PENALTY_REDISTRIBUTION: number | string | BN;
|
|
40
|
+
entireSystemColl: number | string | BN;
|
|
41
|
+
entireSystemDebt: number | string | BN;
|
|
42
|
+
collToken: string;
|
|
43
|
+
troveNFT: string;
|
|
44
|
+
borrowerOperations: string;
|
|
45
|
+
troveManager: string;
|
|
46
|
+
stabilityPool: string;
|
|
47
|
+
sortedTroves: string;
|
|
48
|
+
collSurplusPool: string;
|
|
49
|
+
hintHelpers: string;
|
|
50
|
+
priceFeed: string;
|
|
51
|
+
collPrice: number | string | BN;
|
|
52
|
+
isShutDown: boolean;
|
|
53
|
+
};
|
|
54
|
+
type MarketDataStructOutputArray = [
|
|
55
|
+
string,
|
|
56
|
+
string,
|
|
57
|
+
string,
|
|
58
|
+
string,
|
|
59
|
+
string,
|
|
60
|
+
string,
|
|
61
|
+
string,
|
|
62
|
+
string,
|
|
63
|
+
string,
|
|
64
|
+
string,
|
|
65
|
+
string,
|
|
66
|
+
string,
|
|
67
|
+
string,
|
|
68
|
+
string,
|
|
69
|
+
string,
|
|
70
|
+
string,
|
|
71
|
+
string,
|
|
72
|
+
string,
|
|
73
|
+
boolean
|
|
74
|
+
];
|
|
75
|
+
type MarketDataStructOutputStruct = {
|
|
76
|
+
market: string;
|
|
77
|
+
CCR: string;
|
|
78
|
+
MCR: string;
|
|
79
|
+
SCR: string;
|
|
80
|
+
LIQUIDATION_PENALTY_SP: string;
|
|
81
|
+
LIQUIDATION_PENALTY_REDISTRIBUTION: string;
|
|
82
|
+
entireSystemColl: string;
|
|
83
|
+
entireSystemDebt: string;
|
|
84
|
+
collToken: string;
|
|
85
|
+
troveNFT: string;
|
|
86
|
+
borrowerOperations: string;
|
|
87
|
+
troveManager: string;
|
|
88
|
+
stabilityPool: string;
|
|
89
|
+
sortedTroves: string;
|
|
90
|
+
collSurplusPool: string;
|
|
91
|
+
hintHelpers: string;
|
|
92
|
+
priceFeed: string;
|
|
93
|
+
collPrice: string;
|
|
94
|
+
isShutDown: boolean;
|
|
95
|
+
};
|
|
96
|
+
type MarketDataStructOutput = MarketDataStructOutputArray & MarketDataStructOutputStruct;
|
|
97
|
+
type TroveDataStruct = [
|
|
98
|
+
number | string | BN,
|
|
99
|
+
string,
|
|
100
|
+
string,
|
|
101
|
+
number | string | BN,
|
|
102
|
+
number | string | BN,
|
|
103
|
+
number | string | BN,
|
|
104
|
+
number | string | BN,
|
|
105
|
+
number | string | BN,
|
|
106
|
+
number | string | BN,
|
|
107
|
+
string,
|
|
108
|
+
number | string | BN
|
|
109
|
+
] | {
|
|
110
|
+
troveId: number | string | BN;
|
|
111
|
+
owner: string;
|
|
112
|
+
collToken: string;
|
|
113
|
+
status: number | string | BN;
|
|
114
|
+
collAmount: number | string | BN;
|
|
115
|
+
debtAmount: number | string | BN;
|
|
116
|
+
collPrice: number | string | BN;
|
|
117
|
+
TCRatio: number | string | BN;
|
|
118
|
+
annualInterestRate: number | string | BN;
|
|
119
|
+
interestBatchManager: string;
|
|
120
|
+
batchDebtShares: number | string | BN;
|
|
121
|
+
};
|
|
122
|
+
type TroveDataStructOutputArray = [
|
|
123
|
+
string,
|
|
124
|
+
string,
|
|
125
|
+
string,
|
|
126
|
+
string,
|
|
127
|
+
string,
|
|
128
|
+
string,
|
|
129
|
+
string,
|
|
130
|
+
string,
|
|
131
|
+
string,
|
|
132
|
+
string,
|
|
133
|
+
string
|
|
134
|
+
];
|
|
135
|
+
type TroveDataStructOutputStruct = {
|
|
136
|
+
troveId: string;
|
|
137
|
+
owner: string;
|
|
138
|
+
collToken: string;
|
|
139
|
+
status: string;
|
|
140
|
+
collAmount: string;
|
|
141
|
+
debtAmount: string;
|
|
142
|
+
collPrice: string;
|
|
143
|
+
TCRatio: string;
|
|
144
|
+
annualInterestRate: string;
|
|
145
|
+
interestBatchManager: string;
|
|
146
|
+
batchDebtShares: string;
|
|
147
|
+
};
|
|
148
|
+
type TroveDataStructOutput = TroveDataStructOutputArray & TroveDataStructOutputStruct;
|
|
149
|
+
type ExistingTroveStruct = [number | string | BN, boolean] | {
|
|
150
|
+
troveId: number | string | BN;
|
|
151
|
+
ownedByUser: boolean;
|
|
152
|
+
};
|
|
153
|
+
type ExistingTroveStructOutputArray = [string, boolean];
|
|
154
|
+
type ExistingTroveStructOutputStruct = {
|
|
155
|
+
troveId: string;
|
|
156
|
+
ownedByUser: boolean;
|
|
157
|
+
};
|
|
158
|
+
type ExistingTroveStructOutput = ExistingTroveStructOutputArray & ExistingTroveStructOutputStruct;
|
|
159
|
+
}
|
|
160
|
+
export interface LiquityV2View extends BaseContract {
|
|
161
|
+
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): LiquityV2View;
|
|
162
|
+
clone(): LiquityV2View;
|
|
163
|
+
methods: {
|
|
164
|
+
findInsertPosition(_market: string, _interestRate: number | string | BN, _prevId: number | string | BN, _nextId: number | string | BN): NonPayableTransactionObject<[
|
|
165
|
+
string,
|
|
166
|
+
string
|
|
167
|
+
] & {
|
|
168
|
+
prevId: string;
|
|
169
|
+
nextId: string;
|
|
170
|
+
}>;
|
|
171
|
+
getApproxHint(_market: string, _collIndex: number | string | BN, _interestRate: number | string | BN, _numTrials: number | string | BN, _inputRandomSeed: number | string | BN): NonPayableTransactionObject<[
|
|
172
|
+
string,
|
|
173
|
+
string,
|
|
174
|
+
string
|
|
175
|
+
] & {
|
|
176
|
+
hintId: string;
|
|
177
|
+
diff: string;
|
|
178
|
+
latestRandomSeed: string;
|
|
179
|
+
}>;
|
|
180
|
+
getDebtInFront(_market: string, _troveId: number | string | BN, _acc: number | string | BN, _iterations: number | string | BN): NonPayableTransactionObject<[
|
|
181
|
+
string,
|
|
182
|
+
string
|
|
183
|
+
] & {
|
|
184
|
+
next: string;
|
|
185
|
+
debt: string;
|
|
186
|
+
}>;
|
|
187
|
+
getDebtInFrontByInterestRate(_market: string, _troveId: number | string | BN, _acc: number | string | BN, _iterations: number | string | BN, _targetIR: number | string | BN): NonPayableTransactionObject<[
|
|
188
|
+
string,
|
|
189
|
+
string
|
|
190
|
+
] & {
|
|
191
|
+
next: string;
|
|
192
|
+
debt: string;
|
|
193
|
+
}>;
|
|
194
|
+
getDebtInFrontByTroveNum(_market: string, _numTroves: number | string | BN): NonPayableTransactionObject<string>;
|
|
195
|
+
getDepositorInfo(_market: string, _depositor: string): NonPayableTransactionObject<[
|
|
196
|
+
string,
|
|
197
|
+
string,
|
|
198
|
+
string
|
|
199
|
+
] & {
|
|
200
|
+
compoundedBOLD: string;
|
|
201
|
+
collGain: string;
|
|
202
|
+
boldGain: string;
|
|
203
|
+
}>;
|
|
204
|
+
getInsertPosition(_market: string, _collIndex: number | string | BN, _interestRate: number | string | BN, _numTrials: number | string | BN, _inputRandomSeed: number | string | BN): NonPayableTransactionObject<[
|
|
205
|
+
string,
|
|
206
|
+
string
|
|
207
|
+
] & {
|
|
208
|
+
prevId: string;
|
|
209
|
+
nextId: string;
|
|
210
|
+
}>;
|
|
211
|
+
getMarketData(_market: string): NonPayableTransactionObject<LiquityV2View.MarketDataStructOutput>;
|
|
212
|
+
getNumOfTrovesInFrontOfTrove(_market: string, _troveId: number | string | BN, _iterations: number | string | BN): NonPayableTransactionObject<[
|
|
213
|
+
string,
|
|
214
|
+
string
|
|
215
|
+
] & {
|
|
216
|
+
next: string;
|
|
217
|
+
numTroves: string;
|
|
218
|
+
}>;
|
|
219
|
+
getTroveInfo(_market: string, _troveId: number | string | BN): NonPayableTransactionObject<LiquityV2View.TroveDataStructOutput>;
|
|
220
|
+
getTrovePosition(_market: string, _collIndex: number | string | BN, _troveId: number | string | BN, _numTrials: number | string | BN, _inputRandomSeed: number | string | BN): NonPayableTransactionObject<[
|
|
221
|
+
string,
|
|
222
|
+
string
|
|
223
|
+
] & {
|
|
224
|
+
prevId: string;
|
|
225
|
+
nextId: string;
|
|
226
|
+
}>;
|
|
227
|
+
getUserTroves(_user: string, _market: string, _startIndex: number | string | BN, _endIndex: number | string | BN): NonPayableTransactionObject<[
|
|
228
|
+
LiquityV2View.ExistingTroveStructOutput[],
|
|
229
|
+
string
|
|
230
|
+
] & {
|
|
231
|
+
troves: LiquityV2View.ExistingTroveStructOutput[];
|
|
232
|
+
nextFreeTroveIndex: string;
|
|
233
|
+
}>;
|
|
234
|
+
isShutDown(_market: string): NonPayableTransactionObject<boolean>;
|
|
235
|
+
predictAdjustTroveUpfrontFee(_market: string, _collIndex: number | string | BN, _troveId: number | string | BN, _debtIncrease: number | string | BN): NonPayableTransactionObject<string>;
|
|
236
|
+
};
|
|
237
|
+
events: {
|
|
238
|
+
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
@@ -26,7 +26,6 @@ export type { CompoundLoanInfo } from "./CompoundLoanInfo";
|
|
|
26
26
|
export type { Comptroller } from "./Comptroller";
|
|
27
27
|
export type { ETHPriceFeed } from "./ETHPriceFeed";
|
|
28
28
|
export type { Erc20 } from "./Erc20";
|
|
29
|
-
export type { EulerV2View } from "./EulerV2View";
|
|
30
29
|
export type { FeedRegistry } from "./FeedRegistry";
|
|
31
30
|
export type { GHO } from "./GHO";
|
|
32
31
|
export type { GhoDiscountRateStrategy } from "./GhoDiscountRateStrategy";
|
|
@@ -35,6 +34,7 @@ export type { IVariableDebtToken } from "./IVariableDebtToken";
|
|
|
35
34
|
export type { LendingPoolAddressesProvider } from "./LendingPoolAddressesProvider";
|
|
36
35
|
export type { Lido } from "./Lido";
|
|
37
36
|
export type { LiquityActivePool } from "./LiquityActivePool";
|
|
37
|
+
export type { LiquityV2View } from "./LiquityV2View";
|
|
38
38
|
export type { LiquityView } from "./LiquityView";
|
|
39
39
|
export type { LlamaLendControllerAbi } from "./LlamaLendControllerAbi";
|
|
40
40
|
export type { LlamaLendView } from "./LlamaLendView";
|
package/cjs/types/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export * from './compound';
|
|
|
3
3
|
export * from './spark';
|
|
4
4
|
export * from './curveUsd';
|
|
5
5
|
export * from './liquity';
|
|
6
|
+
export * from './liquityV2';
|
|
6
7
|
export * from './maker';
|
|
7
8
|
export * from './chickenBonds';
|
|
8
9
|
export * from './morphoBlue';
|
|
9
10
|
export * from './llamaLend';
|
|
10
|
-
export * from './euler';
|
package/cjs/types/index.js
CHANGED
|
@@ -19,8 +19,8 @@ __exportStar(require("./compound"), exports);
|
|
|
19
19
|
__exportStar(require("./spark"), exports);
|
|
20
20
|
__exportStar(require("./curveUsd"), exports);
|
|
21
21
|
__exportStar(require("./liquity"), exports);
|
|
22
|
+
__exportStar(require("./liquityV2"), exports);
|
|
22
23
|
__exportStar(require("./maker"), exports);
|
|
23
24
|
__exportStar(require("./chickenBonds"), exports);
|
|
24
25
|
__exportStar(require("./morphoBlue"), exports);
|
|
25
26
|
__exportStar(require("./llamaLend"), exports);
|
|
26
|
-
__exportStar(require("./euler"), exports);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { EthAddress, NetworkNumber } from './common';
|
|
2
|
+
export declare enum LiquityV2Versions {
|
|
3
|
+
LiquityV2Eth = "liquityv2eth",
|
|
4
|
+
LiquityV2WstEth = "liquityv2wsteth"
|
|
5
|
+
}
|
|
6
|
+
export interface LiquityV2MarketInfo {
|
|
7
|
+
chainIds: NetworkNumber[];
|
|
8
|
+
label: string;
|
|
9
|
+
shortLabel: string;
|
|
10
|
+
url: string;
|
|
11
|
+
value: LiquityV2Versions;
|
|
12
|
+
debtToken: string;
|
|
13
|
+
collateralToken: string;
|
|
14
|
+
marketAddress: string;
|
|
15
|
+
protocolName: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LiquityV2AssetData {
|
|
18
|
+
symbol: string;
|
|
19
|
+
address: string;
|
|
20
|
+
price: string;
|
|
21
|
+
incentiveSupplyApy?: string;
|
|
22
|
+
incentiveSupplyToken?: string;
|
|
23
|
+
totalSupply: string;
|
|
24
|
+
totalBorrow: string;
|
|
25
|
+
canBeSupplied: boolean;
|
|
26
|
+
canBeBorrowed: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type LiquityV2AssetsData = {
|
|
29
|
+
[key: string]: LiquityV2AssetData;
|
|
30
|
+
};
|
|
31
|
+
export interface InnerLiquityV2MarketData {
|
|
32
|
+
minCollRatio: string;
|
|
33
|
+
hintHelperAddress: EthAddress;
|
|
34
|
+
troveNFTAddress: EthAddress;
|
|
35
|
+
borrowerOperationsAddress: EthAddress;
|
|
36
|
+
troveManagerAddress: EthAddress;
|
|
37
|
+
stabilityPoolAddress: EthAddress;
|
|
38
|
+
collSurplusPoolAddress: EthAddress;
|
|
39
|
+
}
|
|
40
|
+
export interface LiquityV2MarketData {
|
|
41
|
+
assetsData: LiquityV2AssetsData;
|
|
42
|
+
marketData: InnerLiquityV2MarketData;
|
|
43
|
+
}
|
|
44
|
+
export interface LiquityV2UsedAsset {
|
|
45
|
+
symbol: string;
|
|
46
|
+
collateral?: boolean;
|
|
47
|
+
supplied: string;
|
|
48
|
+
suppliedUsd: string;
|
|
49
|
+
borrowed: string;
|
|
50
|
+
borrowedUsd: string;
|
|
51
|
+
isSupplied: boolean;
|
|
52
|
+
isBorrowed: boolean;
|
|
53
|
+
}
|
|
54
|
+
export type LiquityV2UsedAssets = {
|
|
55
|
+
[key: string]: LiquityV2UsedAsset;
|
|
56
|
+
};
|
|
57
|
+
export interface LiquityV2AggregatedTroveData {
|
|
58
|
+
suppliedUsd: string;
|
|
59
|
+
borrowedUsd: string;
|
|
60
|
+
borrowLimitUsd: string;
|
|
61
|
+
leftToBorrowUsd: string;
|
|
62
|
+
netApy: string;
|
|
63
|
+
incentiveUsd: string;
|
|
64
|
+
totalInterestUsd: string;
|
|
65
|
+
leveragedType: string;
|
|
66
|
+
leveragedAsset: string;
|
|
67
|
+
liquidationPrice: string;
|
|
68
|
+
ratio: string;
|
|
69
|
+
collRatio: string;
|
|
70
|
+
}
|
|
71
|
+
export interface LiquityV2TroveData {
|
|
72
|
+
usedAssets: LiquityV2UsedAssets;
|
|
73
|
+
troveId: string;
|
|
74
|
+
ratio: string;
|
|
75
|
+
collRatio: string;
|
|
76
|
+
interestRate: string;
|
|
77
|
+
leftToBorrowUsd: string;
|
|
78
|
+
borrowLimitUsd: string;
|
|
79
|
+
suppliedUsd: string;
|
|
80
|
+
borrowedUsd: string;
|
|
81
|
+
netApy: string;
|
|
82
|
+
incentiveUsd: string;
|
|
83
|
+
totalInterestUsd: string;
|
|
84
|
+
interestBatchManager: EthAddress;
|
|
85
|
+
troveStatus: string;
|
|
86
|
+
leveragedType: string;
|
|
87
|
+
leveragedAsset: string;
|
|
88
|
+
liquidationPrice: string;
|
|
89
|
+
debtInFront: string;
|
|
90
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiquityV2Versions = void 0;
|
|
4
|
+
var LiquityV2Versions;
|
|
5
|
+
(function (LiquityV2Versions) {
|
|
6
|
+
LiquityV2Versions["LiquityV2Eth"] = "liquityv2eth";
|
|
7
|
+
LiquityV2Versions["LiquityV2WstEth"] = "liquityv2wsteth";
|
|
8
|
+
})(LiquityV2Versions || (exports.LiquityV2Versions = LiquityV2Versions = {}));
|
|
@@ -9,6 +9,7 @@ export declare enum MorphoBlueVersions {
|
|
|
9
9
|
MorphoBlueWstEthUSDA_Exchange_Rate = "morphobluewstethusda_exchange_rate",
|
|
10
10
|
MorphoBlueWstEthPYUSD = "morphobluwstethpyusd",
|
|
11
11
|
MorphoBlueWeEthEth = "morphoblueweetheth",
|
|
12
|
+
MorphoBlueREthEth_945 = "morphoblueretheth_945",
|
|
12
13
|
MorphoBlueWBTCPYUSD = "morphobluewbtcpyusd",
|
|
13
14
|
MorphoBlueWBTCEth = "morphobluewbtceth",
|
|
14
15
|
MorphoBlueUSDeUSDT = "morphoblueusdeusdt",
|
|
@@ -40,7 +41,8 @@ export declare enum MorphoBlueVersions {
|
|
|
40
41
|
MorphoBlueREthUSDC_860_Base = "morphobluerethusdc_860_base",
|
|
41
42
|
MorphoBlueREthEth_945_Base = "morphoblueretheth_945_base",
|
|
42
43
|
MorphoBlueCbBTCEth_915_Base = "morphobluecbbtceth_915_base",
|
|
43
|
-
MorphoBlueCbBTCUSDC_860_Base = "morphobluecbbtcusdc_860_base"
|
|
44
|
+
MorphoBlueCbBTCUSDC_860_Base = "morphobluecbbtcusdc_860_base",
|
|
45
|
+
MorphoBlueWsuperOETHbWETH_915_Base = "morphobluewsuperoethbweth_915_base"
|
|
44
46
|
}
|
|
45
47
|
export declare enum MorphoBlueOracleType {
|
|
46
48
|
MARKET_RATE = "Market rate",
|
package/cjs/types/morphoBlue.js
CHANGED
|
@@ -13,6 +13,7 @@ var MorphoBlueVersions;
|
|
|
13
13
|
MorphoBlueVersions["MorphoBlueWstEthUSDA_Exchange_Rate"] = "morphobluewstethusda_exchange_rate";
|
|
14
14
|
MorphoBlueVersions["MorphoBlueWstEthPYUSD"] = "morphobluwstethpyusd";
|
|
15
15
|
MorphoBlueVersions["MorphoBlueWeEthEth"] = "morphoblueweetheth";
|
|
16
|
+
MorphoBlueVersions["MorphoBlueREthEth_945"] = "morphoblueretheth_945";
|
|
16
17
|
MorphoBlueVersions["MorphoBlueWBTCPYUSD"] = "morphobluewbtcpyusd";
|
|
17
18
|
MorphoBlueVersions["MorphoBlueWBTCEth"] = "morphobluewbtceth";
|
|
18
19
|
MorphoBlueVersions["MorphoBlueUSDeUSDT"] = "morphoblueusdeusdt";
|
|
@@ -49,6 +50,7 @@ var MorphoBlueVersions;
|
|
|
49
50
|
MorphoBlueVersions["MorphoBlueREthEth_945_Base"] = "morphoblueretheth_945_base";
|
|
50
51
|
MorphoBlueVersions["MorphoBlueCbBTCEth_915_Base"] = "morphobluecbbtceth_915_base";
|
|
51
52
|
MorphoBlueVersions["MorphoBlueCbBTCUSDC_860_Base"] = "morphobluecbbtcusdc_860_base";
|
|
53
|
+
MorphoBlueVersions["MorphoBlueWsuperOETHbWETH_915_Base"] = "morphobluewsuperoethbweth_915_base";
|
|
52
54
|
})(MorphoBlueVersions || (exports.MorphoBlueVersions = MorphoBlueVersions = {}));
|
|
53
55
|
var MorphoBlueOracleType;
|
|
54
56
|
(function (MorphoBlueOracleType) {
|
|
@@ -6696,23 +6696,15 @@ export namespace LlamaLendControllerAbi {
|
|
|
6696
6696
|
let networks_76: {};
|
|
6697
6697
|
export { networks_76 as networks };
|
|
6698
6698
|
}
|
|
6699
|
-
export namespace
|
|
6700
|
-
let abi_77:
|
|
6699
|
+
export namespace LiquityV2View {
|
|
6700
|
+
let abi_77: {
|
|
6701
6701
|
inputs: {
|
|
6702
6702
|
internalType: string;
|
|
6703
6703
|
name: string;
|
|
6704
6704
|
type: string;
|
|
6705
6705
|
}[];
|
|
6706
6706
|
name: string;
|
|
6707
|
-
outputs: {
|
|
6708
|
-
internalType: string;
|
|
6709
|
-
name: string;
|
|
6710
|
-
type: string;
|
|
6711
|
-
}[];
|
|
6712
|
-
stateMutability: string;
|
|
6713
|
-
type: string;
|
|
6714
|
-
} | {
|
|
6715
|
-
inputs: {
|
|
6707
|
+
outputs: ({
|
|
6716
6708
|
components: {
|
|
6717
6709
|
internalType: string;
|
|
6718
6710
|
name: string;
|
|
@@ -6721,45 +6713,15 @@ export namespace EulerV2View {
|
|
|
6721
6713
|
internalType: string;
|
|
6722
6714
|
name: string;
|
|
6723
6715
|
type: string;
|
|
6724
|
-
}
|
|
6725
|
-
name: string;
|
|
6726
|
-
outputs: {
|
|
6727
|
-
internalType: string;
|
|
6728
|
-
name: string;
|
|
6729
|
-
type: string;
|
|
6730
|
-
}[];
|
|
6731
|
-
stateMutability: string;
|
|
6732
|
-
type: string;
|
|
6733
|
-
} | {
|
|
6734
|
-
inputs: {
|
|
6735
|
-
internalType: string;
|
|
6736
|
-
name: string;
|
|
6737
|
-
type: string;
|
|
6738
|
-
}[];
|
|
6739
|
-
name: string;
|
|
6740
|
-
outputs: {
|
|
6741
|
-
components: ({
|
|
6742
|
-
internalType: string;
|
|
6743
|
-
name: string;
|
|
6744
|
-
type: string;
|
|
6745
|
-
components?: undefined;
|
|
6746
|
-
} | {
|
|
6747
|
-
components: {
|
|
6748
|
-
internalType: string;
|
|
6749
|
-
name: string;
|
|
6750
|
-
type: string;
|
|
6751
|
-
}[];
|
|
6752
|
-
internalType: string;
|
|
6753
|
-
name: string;
|
|
6754
|
-
type: string;
|
|
6755
|
-
})[];
|
|
6716
|
+
} | {
|
|
6756
6717
|
internalType: string;
|
|
6757
6718
|
name: string;
|
|
6758
6719
|
type: string;
|
|
6759
|
-
|
|
6720
|
+
components?: undefined;
|
|
6721
|
+
})[];
|
|
6760
6722
|
stateMutability: string;
|
|
6761
6723
|
type: string;
|
|
6762
|
-
}
|
|
6724
|
+
}[];
|
|
6763
6725
|
export { abi_77 as abi };
|
|
6764
6726
|
let networks_77: {
|
|
6765
6727
|
"1": {
|