@1delta/margin-fetcher 0.0.158 → 0.0.159
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/dist/abis/compound-v2/SumerLens.d.ts +331 -0
- package/dist/abis/compound-v2/SumerLens.d.ts.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1814 -437
- package/dist/index.js.map +1 -1
- package/dist/lending/index.d.ts +2 -0
- package/dist/lending/index.d.ts.map +1 -1
- package/dist/lending/margin/base/borrow.d.ts +10 -0
- package/dist/lending/margin/base/borrow.d.ts.map +1 -0
- package/dist/lending/margin/base/deposit.d.ts +10 -0
- package/dist/lending/margin/base/deposit.d.ts.map +1 -0
- package/dist/lending/margin/base/index.d.ts +7 -0
- package/dist/lending/margin/base/index.d.ts.map +1 -0
- package/dist/lending/margin/base/repay.d.ts +10 -0
- package/dist/lending/margin/base/repay.d.ts.map +1 -0
- package/dist/lending/margin/base/utils.d.ts +17 -0
- package/dist/lending/margin/base/utils.d.ts.map +1 -0
- package/dist/lending/margin/base/withdraw.d.ts +10 -0
- package/dist/lending/margin/base/withdraw.d.ts.map +1 -0
- package/dist/lending/margin/base/yield/getIntrinsicYieldChange.d.ts +22 -0
- package/dist/lending/margin/base/yield/getIntrinsicYieldChange.d.ts.map +1 -0
- package/dist/lending/margin/base/yield/getOrganicYieldChange.d.ts +22 -0
- package/dist/lending/margin/base/yield/getOrganicYieldChange.d.ts.map +1 -0
- package/dist/lending/margin/base/yield/getRewardYieldChange.d.ts +28 -0
- package/dist/lending/margin/base/yield/getRewardYieldChange.d.ts.map +1 -0
- package/dist/lending/margin/base/yield/index.d.ts +4 -0
- package/dist/lending/margin/base/yield/index.d.ts.map +1 -0
- package/dist/lending/margin/loop/compute/computeCloseDeltas.d.ts +8 -0
- package/dist/lending/margin/loop/compute/computeCloseDeltas.d.ts.map +1 -0
- package/dist/lending/margin/loop/compute/computeCollateralSwapDeltas.d.ts +8 -0
- package/dist/lending/margin/loop/compute/computeCollateralSwapDeltas.d.ts.map +1 -0
- package/dist/lending/margin/loop/compute/computeDebtSwapDeltas.d.ts +8 -0
- package/dist/lending/margin/loop/compute/computeDebtSwapDeltas.d.ts.map +1 -0
- package/dist/lending/margin/loop/compute/computeOpenDeltas.d.ts +8 -0
- package/dist/lending/margin/loop/compute/computeOpenDeltas.d.ts.map +1 -0
- package/dist/lending/margin/loop/compute/computeZapDeltas.d.ts +8 -0
- package/dist/lending/margin/loop/compute/computeZapDeltas.d.ts.map +1 -0
- package/dist/lending/margin/loop/compute/index.d.ts +6 -0
- package/dist/lending/margin/loop/compute/index.d.ts.map +1 -0
- package/dist/lending/margin/loop/index.d.ts +5 -0
- package/dist/lending/margin/loop/index.d.ts.map +1 -0
- package/dist/lending/margin/loop/types.d.ts +28 -0
- package/dist/lending/margin/loop/types.d.ts.map +1 -0
- package/dist/lending/margin/loop/utils.d.ts +11 -0
- package/dist/lending/margin/loop/utils.d.ts.map +1 -0
- package/dist/lending/margin/loop/yield/getIntrinsicYieldChange.d.ts +6 -0
- package/dist/lending/margin/loop/yield/getIntrinsicYieldChange.d.ts.map +1 -0
- package/dist/lending/margin/loop/yield/getOraganicYieldChange.d.ts +6 -0
- package/dist/lending/margin/loop/yield/getOraganicYieldChange.d.ts.map +1 -0
- package/dist/lending/margin/loop/yield/getRewardYieldChange.d.ts +22 -0
- package/dist/lending/margin/loop/yield/getRewardYieldChange.d.ts.map +1 -0
- package/dist/lending/margin/loop/yield/index.d.ts +4 -0
- package/dist/lending/margin/loop/yield/index.d.ts.map +1 -0
- package/dist/lending/public-data/addresses/compoundV2.d.ts.map +1 -1
- package/dist/lending/public-data/compound-v2/getters/sumer.d.ts +103 -0
- package/dist/lending/public-data/compound-v2/getters/sumer.d.ts.map +1 -0
- package/dist/lending/public-data/compound-v2/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/public-data/compound-v2/publicCallParse.d.ts.map +1 -1
- package/dist/lending/public-data/fetchLender.d.ts.map +1 -1
- package/dist/lending/public-data/morpho/getMarketsFromChain.d.ts.map +1 -1
- package/dist/lending/user-data/abis.d.ts +1163 -46
- package/dist/lending/user-data/abis.d.ts.map +1 -1
- package/dist/lending/user-data/compound-v2/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/fetchUserData.d.ts +3 -3
- package/dist/lending/user-data/fetchUserData.d.ts.map +1 -1
- package/dist/lending/user-data/init/userCallBuild.d.ts +0 -4
- package/dist/lending/user-data/init/userCallBuild.d.ts.map +1 -1
- package/dist/lending/user-data/init/userCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/utils/createSumerUserState.d.ts +6 -0
- package/dist/lending/user-data/utils/createSumerUserState.d.ts.map +1 -0
- package/dist/lending/user-data/utils/index.d.ts +1 -0
- package/dist/lending/user-data/utils/index.d.ts.map +1 -1
- package/dist/lending/user-data/utils/types.d.ts +10 -0
- package/dist/lending/user-data/utils/types.d.ts.map +1 -1
- package/dist/lending-pairs/computeLendingPairs.d.ts.map +1 -1
- package/dist/token/fetchTokenBalance.d.ts +5 -2
- package/dist/token/fetchTokenBalance.d.ts.map +1 -1
- package/dist/types/apiReturnType.d.ts +1 -1
- package/dist/types/apiReturnType.d.ts.map +1 -1
- package/dist/types/lender/aave-v2-types.d.ts +1 -1
- package/dist/types/lender/aave-v2-types.d.ts.map +1 -1
- package/dist/types/lender/compound-v2-types.d.ts +2 -2
- package/dist/types/lender/compound-v2-types.d.ts.map +1 -1
- package/dist/types/lender/morpho-types.d.ts +1 -1
- package/dist/types/lender/morpho-types.d.ts.map +1 -1
- package/dist/types/lenderTypes.d.ts +1 -1
- package/dist/types/lenderTypes.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +5 -3
- package/dist/abis/morpho/blue.d.ts +0 -76
- package/dist/abis/morpho/blue.d.ts.map +0 -1
- package/dist/abis/morpho/lens.d.ts +0 -128
- package/dist/abis/morpho/lens.d.ts.map +0 -1
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
export declare const SumerLensAbi: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "contract ICToken";
|
|
4
|
+
readonly name: "cToken";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "cTokenMetadata";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly components: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "cToken";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly internalType: "uint256";
|
|
15
|
+
readonly name: "exchangeRateCurrent";
|
|
16
|
+
readonly type: "uint256";
|
|
17
|
+
}, {
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
readonly name: "supplyRatePerBlock";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
}, {
|
|
22
|
+
readonly internalType: "uint256";
|
|
23
|
+
readonly name: "borrowRatePerBlock";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}, {
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "reserveFactorMantissa";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}, {
|
|
30
|
+
readonly internalType: "uint256";
|
|
31
|
+
readonly name: "totalBorrows";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}, {
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "totalReserves";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
readonly name: "totalSupply";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "totalCash";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly internalType: "bool";
|
|
47
|
+
readonly name: "isListed";
|
|
48
|
+
readonly type: "bool";
|
|
49
|
+
}, {
|
|
50
|
+
readonly internalType: "address";
|
|
51
|
+
readonly name: "underlyingAssetAddress";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
readonly name: "cTokenDecimals";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}, {
|
|
58
|
+
readonly internalType: "uint256";
|
|
59
|
+
readonly name: "underlyingDecimals";
|
|
60
|
+
readonly type: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly internalType: "bool";
|
|
63
|
+
readonly name: "isCToken";
|
|
64
|
+
readonly type: "bool";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "bool";
|
|
67
|
+
readonly name: "isCEther";
|
|
68
|
+
readonly type: "bool";
|
|
69
|
+
}, {
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "borrowCap";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
readonly name: "depositCap";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}, {
|
|
78
|
+
readonly internalType: "uint256";
|
|
79
|
+
readonly name: "heteroLiquidationIncentive";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}, {
|
|
82
|
+
readonly internalType: "uint256";
|
|
83
|
+
readonly name: "homoLiquidationIncentive";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "sutokenLiquidationIncentive";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}, {
|
|
90
|
+
readonly internalType: "uint8";
|
|
91
|
+
readonly name: "groupId";
|
|
92
|
+
readonly type: "uint8";
|
|
93
|
+
}, {
|
|
94
|
+
readonly internalType: "uint256";
|
|
95
|
+
readonly name: "intraRate";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
readonly name: "interRate";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
readonly name: "mintRate";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}, {
|
|
106
|
+
readonly internalType: "uint256";
|
|
107
|
+
readonly name: "discountRate";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
}, {
|
|
110
|
+
readonly internalType: "bool";
|
|
111
|
+
readonly name: "interMintAllowed";
|
|
112
|
+
readonly type: "bool";
|
|
113
|
+
}];
|
|
114
|
+
readonly internalType: "struct SumerLens.CTokenMetadata";
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "tuple";
|
|
117
|
+
}];
|
|
118
|
+
readonly stateMutability: "nonpayable";
|
|
119
|
+
readonly type: "function";
|
|
120
|
+
}, {
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly internalType: "contract ICToken[]";
|
|
123
|
+
readonly name: "cTokens";
|
|
124
|
+
readonly type: "address[]";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "cTokenMetadataAll";
|
|
127
|
+
readonly outputs: readonly [{
|
|
128
|
+
readonly components: readonly [{
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
readonly name: "cToken";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
readonly name: "exchangeRateCurrent";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "uint256";
|
|
138
|
+
readonly name: "supplyRatePerBlock";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly name: "borrowRatePerBlock";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}, {
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly name: "reserveFactorMantissa";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly name: "totalBorrows";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}, {
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "totalReserves";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
readonly name: "totalSupply";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}, {
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
readonly name: "totalCash";
|
|
163
|
+
readonly type: "uint256";
|
|
164
|
+
}, {
|
|
165
|
+
readonly internalType: "bool";
|
|
166
|
+
readonly name: "isListed";
|
|
167
|
+
readonly type: "bool";
|
|
168
|
+
}, {
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
readonly name: "underlyingAssetAddress";
|
|
171
|
+
readonly type: "address";
|
|
172
|
+
}, {
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
readonly name: "cTokenDecimals";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
}, {
|
|
177
|
+
readonly internalType: "uint256";
|
|
178
|
+
readonly name: "underlyingDecimals";
|
|
179
|
+
readonly type: "uint256";
|
|
180
|
+
}, {
|
|
181
|
+
readonly internalType: "bool";
|
|
182
|
+
readonly name: "isCToken";
|
|
183
|
+
readonly type: "bool";
|
|
184
|
+
}, {
|
|
185
|
+
readonly internalType: "bool";
|
|
186
|
+
readonly name: "isCEther";
|
|
187
|
+
readonly type: "bool";
|
|
188
|
+
}, {
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly name: "borrowCap";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}, {
|
|
193
|
+
readonly internalType: "uint256";
|
|
194
|
+
readonly name: "depositCap";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
readonly name: "heteroLiquidationIncentive";
|
|
199
|
+
readonly type: "uint256";
|
|
200
|
+
}, {
|
|
201
|
+
readonly internalType: "uint256";
|
|
202
|
+
readonly name: "homoLiquidationIncentive";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
}, {
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly name: "sutokenLiquidationIncentive";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "uint8";
|
|
210
|
+
readonly name: "groupId";
|
|
211
|
+
readonly type: "uint8";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "intraRate";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}, {
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
readonly name: "interRate";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
}, {
|
|
221
|
+
readonly internalType: "uint256";
|
|
222
|
+
readonly name: "mintRate";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}, {
|
|
225
|
+
readonly internalType: "uint256";
|
|
226
|
+
readonly name: "discountRate";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
}, {
|
|
229
|
+
readonly internalType: "bool";
|
|
230
|
+
readonly name: "interMintAllowed";
|
|
231
|
+
readonly type: "bool";
|
|
232
|
+
}];
|
|
233
|
+
readonly internalType: "struct SumerLens.CTokenMetadata[]";
|
|
234
|
+
readonly name: "";
|
|
235
|
+
readonly type: "tuple[]";
|
|
236
|
+
}];
|
|
237
|
+
readonly stateMutability: "nonpayable";
|
|
238
|
+
readonly type: "function";
|
|
239
|
+
}, {
|
|
240
|
+
readonly inputs: readonly [{
|
|
241
|
+
readonly internalType: "contract ICToken";
|
|
242
|
+
readonly name: "cToken";
|
|
243
|
+
readonly type: "address";
|
|
244
|
+
}, {
|
|
245
|
+
readonly internalType: "address payable";
|
|
246
|
+
readonly name: "account";
|
|
247
|
+
readonly type: "address";
|
|
248
|
+
}];
|
|
249
|
+
readonly name: "cTokenBalances";
|
|
250
|
+
readonly outputs: readonly [{
|
|
251
|
+
readonly components: readonly [{
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly name: "cToken";
|
|
254
|
+
readonly type: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly internalType: "bool";
|
|
257
|
+
readonly name: "isCToken";
|
|
258
|
+
readonly type: "bool";
|
|
259
|
+
}, {
|
|
260
|
+
readonly internalType: "bool";
|
|
261
|
+
readonly name: "isCEther";
|
|
262
|
+
readonly type: "bool";
|
|
263
|
+
}, {
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
readonly name: "balanceOf";
|
|
266
|
+
readonly type: "uint256";
|
|
267
|
+
}, {
|
|
268
|
+
readonly internalType: "uint256";
|
|
269
|
+
readonly name: "borrowBalanceCurrent";
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
}, {
|
|
272
|
+
readonly internalType: "uint256";
|
|
273
|
+
readonly name: "balanceOfUnderlying";
|
|
274
|
+
readonly type: "uint256";
|
|
275
|
+
}, {
|
|
276
|
+
readonly internalType: "uint256";
|
|
277
|
+
readonly name: "tokenBalance";
|
|
278
|
+
readonly type: "uint256";
|
|
279
|
+
}, {
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
readonly name: "tokenAllowance";
|
|
282
|
+
readonly type: "uint256";
|
|
283
|
+
}];
|
|
284
|
+
readonly internalType: "struct SumerLens.CTokenBalances";
|
|
285
|
+
readonly name: "";
|
|
286
|
+
readonly type: "tuple";
|
|
287
|
+
}];
|
|
288
|
+
readonly stateMutability: "nonpayable";
|
|
289
|
+
readonly type: "function";
|
|
290
|
+
}];
|
|
291
|
+
export declare const SumerComptrollerAbi: readonly [{
|
|
292
|
+
readonly inputs: readonly [{
|
|
293
|
+
readonly internalType: "uint8";
|
|
294
|
+
readonly name: "groupId";
|
|
295
|
+
readonly type: "uint8";
|
|
296
|
+
}];
|
|
297
|
+
readonly name: "assetGroup";
|
|
298
|
+
readonly outputs: readonly [{
|
|
299
|
+
readonly components: readonly [{
|
|
300
|
+
readonly internalType: "uint8";
|
|
301
|
+
readonly name: "groupId";
|
|
302
|
+
readonly type: "uint8";
|
|
303
|
+
}, {
|
|
304
|
+
readonly internalType: "uint16";
|
|
305
|
+
readonly name: "intraCRatePercent";
|
|
306
|
+
readonly type: "uint16";
|
|
307
|
+
}, {
|
|
308
|
+
readonly internalType: "uint16";
|
|
309
|
+
readonly name: "intraMintRatePercent";
|
|
310
|
+
readonly type: "uint16";
|
|
311
|
+
}, {
|
|
312
|
+
readonly internalType: "uint16";
|
|
313
|
+
readonly name: "intraSuRatePercent";
|
|
314
|
+
readonly type: "uint16";
|
|
315
|
+
}, {
|
|
316
|
+
readonly internalType: "uint16";
|
|
317
|
+
readonly name: "interCRatePercent";
|
|
318
|
+
readonly type: "uint16";
|
|
319
|
+
}, {
|
|
320
|
+
readonly internalType: "uint16";
|
|
321
|
+
readonly name: "interSuRatePercent";
|
|
322
|
+
readonly type: "uint16";
|
|
323
|
+
}];
|
|
324
|
+
readonly internalType: "struct IComptroller.CompactAssetGroup";
|
|
325
|
+
readonly name: "";
|
|
326
|
+
readonly type: "tuple";
|
|
327
|
+
}];
|
|
328
|
+
readonly stateMutability: "view";
|
|
329
|
+
readonly type: "function";
|
|
330
|
+
}];
|
|
331
|
+
//# sourceMappingURL=SumerLens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SumerLens.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v2/SumerLens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqNf,CAAA;AAEV,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CtB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,11 @@ export { fetchDefillamaData, fetchDefillamaHistData, fetchMainPrices, fetchPendl
|
|
|
6
6
|
export { getLendersForChain, filterLendersByProtocol, getAavesForChain, getLenderAssets, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isAaveV3Type, isAaveV2Type, isYLDR, isAaveV32Type, isAaveType, isMultiMarket, createMarketUid, } from './utils';
|
|
7
7
|
export { fetchFlashLiquidityForChain, attachPricesToFlashLiquidity, } from './flash-liquidity';
|
|
8
8
|
export { type GenericCurrency, type GenericTokenList, type ParsedResponse, type ChainLinkResponse, type LenderRewardsMap, type NumberMap, type FullLenderRewardsMap, type AdditionalYields, type TokenList, type LenderUserQuery, type UserLendingPosition, type LenderUserResponse, type AaveV2UserReserveResponse, type AaveV3UserReserveResponse, type MorphoUserReserveResponse, type CompoundV3UserReserveResponse, type AaveV3Public, type LenderPublicBase, type LenderYields, type LenderTotalAmounts, type LenderConfigMap, type LenderConfigData, type ModeBase, type EModeData, type AaveV2Public, type CompoundV3Public, type UserApr, type InitUserReserveResponse, type InitPublic, type LenderData, type PoolData, type ConfigEntry, } from './types';
|
|
9
|
-
export {
|
|
9
|
+
export { computeDepositDelta, computeWithdrawDelta, computeBorrowDelta, computeRepayDelta, getHealthFactor, getBorrowCapacity, getAssetConfig, computePostTradeMetrics, EMPTY_BALANCE, } from './lending/margin/base';
|
|
10
|
+
export type { PostTradeMetrics } from './lending/margin/base';
|
|
11
|
+
export { computeOpenTradeDeltas, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeZapTradeDeltas, positivePart, nanTo, keysFromMaps, noOpResult, buildLoopResult, } from './lending/margin/loop';
|
|
12
|
+
export type { LoopPostTradeMetrics, LendingMode, } from './lending/margin/loop';
|
|
13
|
+
export { MorphoLensAbi } from '@1delta/abis';
|
|
10
14
|
export { type PreparedCall, type RawRpcCall, type RawRpcBatch, type MulticallRpcBatch, createRawRpcCalls, createMulticallRpcCall, multicall3Abi, } from './utils/rpcCall';
|
|
11
15
|
export { type RawRpcResponse, parseRawRpcResponses, parseRawRpcBatchResponses, parseMulticallRpcResponses, } from './utils/rpcParse';
|
|
12
16
|
export { prepareMulticallInputs } from './utils/multicall';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,sBAAsB,EACtB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,WAAW,EACX,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,+BAA+B,EAC/B,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,4BAA4B,EAE5B,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EAEnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAEnB,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,WAAW,E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EACjB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,sBAAsB,EACtB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,WAAW,EACX,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,+BAA+B,EAC/B,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,4BAA4B,EAE5B,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EAEnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAEnB,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,WAAW,EAChB,oBAAoB,EACpB,WAAW,GACZ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,KAAK,YAAY,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,KAAK,cAAc,EAC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