@1delta/margin-fetcher 0.0.163 → 0.0.165

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 (123) hide show
  1. package/dist/abis/compound-v2/BenqiLens.d.ts +253 -0
  2. package/dist/abis/compound-v2/BenqiLens.d.ts.map +1 -0
  3. package/dist/abis/compound-v2/TectonicLens.d.ts +125 -0
  4. package/dist/abis/compound-v2/TectonicLens.d.ts.map +1 -0
  5. package/dist/index.d.ts +5 -3
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +9312 -8131
  8. package/dist/index.js.map +1 -1
  9. package/dist/lending/index.d.ts +1 -1
  10. package/dist/lending/index.d.ts.map +1 -1
  11. package/dist/lending/margin/base/borrow.d.ts +18 -4
  12. package/dist/lending/margin/base/borrow.d.ts.map +1 -1
  13. package/dist/lending/margin/base/deposit.d.ts +18 -4
  14. package/dist/lending/margin/base/deposit.d.ts.map +1 -1
  15. package/dist/lending/margin/base/index.d.ts +3 -0
  16. package/dist/lending/margin/base/index.d.ts.map +1 -1
  17. package/dist/lending/margin/base/repay.d.ts +18 -4
  18. package/dist/lending/margin/base/repay.d.ts.map +1 -1
  19. package/dist/lending/margin/base/standard/borrow.d.ts +10 -0
  20. package/dist/lending/margin/base/standard/borrow.d.ts.map +1 -0
  21. package/dist/lending/margin/base/standard/deposit.d.ts +10 -0
  22. package/dist/lending/margin/base/standard/deposit.d.ts.map +1 -0
  23. package/dist/lending/margin/base/standard/repay.d.ts +10 -0
  24. package/dist/lending/margin/base/standard/repay.d.ts.map +1 -0
  25. package/dist/lending/margin/base/standard/withdraw.d.ts +10 -0
  26. package/dist/lending/margin/base/standard/withdraw.d.ts.map +1 -0
  27. package/dist/lending/margin/{sumer → base/sumer}/borrow.d.ts +2 -2
  28. package/dist/lending/margin/base/sumer/borrow.d.ts.map +1 -0
  29. package/dist/lending/margin/{sumer → base/sumer}/deposit.d.ts +2 -2
  30. package/dist/lending/margin/base/sumer/deposit.d.ts.map +1 -0
  31. package/dist/lending/margin/base/sumer/index.d.ts.map +1 -0
  32. package/dist/lending/margin/{sumer → base/sumer}/repay.d.ts +2 -2
  33. package/dist/lending/margin/base/sumer/repay.d.ts.map +1 -0
  34. package/dist/lending/margin/{sumer → base/sumer}/types.d.ts +1 -1
  35. package/dist/lending/margin/base/sumer/types.d.ts.map +1 -0
  36. package/dist/lending/margin/{sumer → base/sumer}/waterfall.d.ts +1 -2
  37. package/dist/lending/margin/base/sumer/waterfall.d.ts.map +1 -0
  38. package/dist/lending/margin/{sumer → base/sumer}/withdraw.d.ts +2 -2
  39. package/dist/lending/margin/base/sumer/withdraw.d.ts.map +1 -0
  40. package/dist/lending/margin/base/utils.d.ts +11 -7
  41. package/dist/lending/margin/base/utils.d.ts.map +1 -1
  42. package/dist/lending/margin/base/withdraw.d.ts +17 -4
  43. package/dist/lending/margin/base/withdraw.d.ts.map +1 -1
  44. package/dist/lending/margin/e-mode/index.d.ts.map +1 -1
  45. package/dist/lending/margin/loop/types.d.ts +11 -7
  46. package/dist/lending/margin/loop/types.d.ts.map +1 -1
  47. package/dist/lending/margin/loop/utils.d.ts.map +1 -1
  48. package/dist/lending/public-data/addresses/compoundV2.d.ts.map +1 -1
  49. package/dist/lending/public-data/compound-v2/convert/benqi.d.ts +47 -0
  50. package/dist/lending/public-data/compound-v2/convert/benqi.d.ts.map +1 -0
  51. package/dist/lending/public-data/compound-v2/convert/tectonic.d.ts +45 -0
  52. package/dist/lending/public-data/compound-v2/convert/tectonic.d.ts.map +1 -0
  53. package/dist/lending/public-data/compound-v2/getters/benqi.d.ts +62 -0
  54. package/dist/lending/public-data/compound-v2/getters/benqi.d.ts.map +1 -0
  55. package/dist/lending/public-data/compound-v2/getters/tectonic.d.ts +42 -0
  56. package/dist/lending/public-data/compound-v2/getters/tectonic.d.ts.map +1 -0
  57. package/dist/lending/public-data/compound-v2/publicCallBuild.d.ts +383 -0
  58. package/dist/lending/public-data/compound-v2/publicCallBuild.d.ts.map +1 -1
  59. package/dist/lending/public-data/compound-v2/publicCallParse.d.ts.map +1 -1
  60. package/dist/lending/user-data/aave-v2-type/userCallParse.d.ts.map +1 -1
  61. package/dist/lending/user-data/aave-v3-type/userCallParse.d.ts.map +1 -1
  62. package/dist/lending/user-data/aave-v3-type/userCallParseYldr.d.ts.map +1 -1
  63. package/dist/lending/user-data/abis.d.ts +3558 -3558
  64. package/dist/lending/user-data/compound-v2/userCallBuild.d.ts.map +1 -1
  65. package/dist/lending/user-data/compound-v2/userCallParse.d.ts.map +1 -1
  66. package/dist/lending/user-data/compound-v3/userCallParse.d.ts.map +1 -1
  67. package/dist/lending/user-data/fetch-balances/e2e.d.ts +44 -0
  68. package/dist/lending/user-data/fetch-balances/e2e.d.ts.map +1 -0
  69. package/dist/lending/user-data/fetch-balances/index.d.ts +5 -0
  70. package/dist/lending/user-data/fetch-balances/index.d.ts.map +1 -0
  71. package/dist/lending/user-data/fetch-balances/parse.d.ts +14 -0
  72. package/dist/lending/user-data/fetch-balances/parse.d.ts.map +1 -0
  73. package/dist/lending/user-data/fetch-balances/prepare.d.ts +2 -0
  74. package/dist/lending/user-data/fetch-balances/prepare.d.ts.map +1 -0
  75. package/dist/lending/user-data/fetch-balances/types.d.ts +91 -0
  76. package/dist/lending/user-data/fetch-balances/types.d.ts.map +1 -0
  77. package/dist/lending/user-data/fetchUserData.d.ts.map +1 -1
  78. package/dist/lending/user-data/index.d.ts +2 -1
  79. package/dist/lending/user-data/index.d.ts.map +1 -1
  80. package/dist/lending/user-data/init/userCallParse.d.ts.map +1 -1
  81. package/dist/lending/user-data/morpho/userCallParse.d.ts.map +1 -1
  82. package/dist/lending/user-data/summary/types.d.ts +1 -1
  83. package/dist/lending/user-data/summary/types.d.ts.map +1 -1
  84. package/dist/lending/user-data/summary/utils.d.ts +1 -1
  85. package/dist/lending/user-data/summary/utils.d.ts.map +1 -1
  86. package/dist/lending/user-data/utils/createGeneralUserState.d.ts.map +1 -1
  87. package/dist/lending/user-data/utils/createMultiAccountStyleUserState.d.ts.map +1 -1
  88. package/dist/lending/user-data/utils/createSumerUserState.d.ts.map +1 -1
  89. package/dist/lending/user-data/utils/index.d.ts +1 -0
  90. package/dist/lending/user-data/utils/index.d.ts.map +1 -1
  91. package/dist/lending/user-data/utils/oraclePrice.d.ts +11 -0
  92. package/dist/lending/user-data/utils/oraclePrice.d.ts.map +1 -0
  93. package/dist/lending/user-data/utils/types.d.ts +6 -1
  94. package/dist/lending/user-data/utils/types.d.ts.map +1 -1
  95. package/dist/lending/user-data/with-permissions/e2e.d.ts +10 -0
  96. package/dist/lending/user-data/with-permissions/e2e.d.ts.map +1 -0
  97. package/dist/lending/user-data/with-permissions/evaluate.d.ts +29 -0
  98. package/dist/lending/user-data/with-permissions/evaluate.d.ts.map +1 -0
  99. package/dist/lending/user-data/with-permissions/index.d.ts +6 -0
  100. package/dist/lending/user-data/with-permissions/index.d.ts.map +1 -0
  101. package/dist/lending/user-data/with-permissions/parse.d.ts +9 -0
  102. package/dist/lending/user-data/with-permissions/parse.d.ts.map +1 -0
  103. package/dist/lending/user-data/with-permissions/prepare.d.ts +14 -0
  104. package/dist/lending/user-data/with-permissions/prepare.d.ts.map +1 -0
  105. package/dist/lending/user-data/with-permissions/types.d.ts +71 -0
  106. package/dist/lending/user-data/with-permissions/types.d.ts.map +1 -0
  107. package/dist/types/lenderTypes.d.ts +3 -0
  108. package/dist/types/lenderTypes.d.ts.map +1 -1
  109. package/dist/utils/index.d.ts +2 -0
  110. package/dist/utils/index.d.ts.map +1 -1
  111. package/dist/utils/parsing.d.ts.map +1 -1
  112. package/dist/yields/fetchGeneralYields.d.ts.map +1 -1
  113. package/dist/yields/fetchers/maple.d.ts +3 -0
  114. package/dist/yields/fetchers/maple.d.ts.map +1 -0
  115. package/package.json +6 -6
  116. package/dist/lending/margin/sumer/borrow.d.ts.map +0 -1
  117. package/dist/lending/margin/sumer/deposit.d.ts.map +0 -1
  118. package/dist/lending/margin/sumer/index.d.ts.map +0 -1
  119. package/dist/lending/margin/sumer/repay.d.ts.map +0 -1
  120. package/dist/lending/margin/sumer/types.d.ts.map +0 -1
  121. package/dist/lending/margin/sumer/waterfall.d.ts.map +0 -1
  122. package/dist/lending/margin/sumer/withdraw.d.ts.map +0 -1
  123. /package/dist/lending/margin/{sumer → base/sumer}/index.d.ts +0 -0
@@ -0,0 +1,253 @@
1
+ export declare const BenqiLensAbi: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "getMarketMetadataForAllMarkets";
4
+ readonly outputs: readonly [{
5
+ readonly components: readonly [{
6
+ readonly internalType: "address";
7
+ readonly name: "market";
8
+ readonly type: "address";
9
+ }, {
10
+ readonly internalType: "uint256";
11
+ readonly name: "supplyRate";
12
+ readonly type: "uint256";
13
+ }, {
14
+ readonly internalType: "uint256";
15
+ readonly name: "borrowRate";
16
+ readonly type: "uint256";
17
+ }, {
18
+ readonly internalType: "uint256";
19
+ readonly name: "price";
20
+ readonly type: "uint256";
21
+ }, {
22
+ readonly internalType: "uint256";
23
+ readonly name: "exchangeRate";
24
+ readonly type: "uint256";
25
+ }, {
26
+ readonly internalType: "uint256";
27
+ readonly name: "reserveFactor";
28
+ readonly type: "uint256";
29
+ }, {
30
+ readonly internalType: "uint256";
31
+ readonly name: "borrowCap";
32
+ readonly type: "uint256";
33
+ }, {
34
+ readonly internalType: "uint256";
35
+ readonly name: "totalSupply";
36
+ readonly type: "uint256";
37
+ }, {
38
+ readonly internalType: "uint256";
39
+ readonly name: "totalUnderlyingSupply";
40
+ readonly type: "uint256";
41
+ }, {
42
+ readonly internalType: "uint256";
43
+ readonly name: "totalBorrows";
44
+ readonly type: "uint256";
45
+ }, {
46
+ readonly internalType: "uint256";
47
+ readonly name: "collateralFactor";
48
+ readonly type: "uint256";
49
+ }, {
50
+ readonly components: readonly [{
51
+ readonly internalType: "address";
52
+ readonly name: "token";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly internalType: "uint256";
56
+ readonly name: "decimals";
57
+ readonly type: "uint256";
58
+ }, {
59
+ readonly internalType: "string";
60
+ readonly name: "symbol";
61
+ readonly type: "string";
62
+ }, {
63
+ readonly internalType: "string";
64
+ readonly name: "name";
65
+ readonly type: "string";
66
+ }];
67
+ readonly internalType: "struct Token";
68
+ readonly name: "underlying";
69
+ readonly type: "tuple";
70
+ }, {
71
+ readonly internalType: "uint256";
72
+ readonly name: "qiTokenDecimals";
73
+ readonly type: "uint256";
74
+ }, {
75
+ readonly internalType: "uint256";
76
+ readonly name: "avaxSupplyRewardSpeed";
77
+ readonly type: "uint256";
78
+ }, {
79
+ readonly internalType: "uint256";
80
+ readonly name: "avaxBorrowRewardSpeed";
81
+ readonly type: "uint256";
82
+ }, {
83
+ readonly internalType: "uint256";
84
+ readonly name: "qiSupplyRewardSpeed";
85
+ readonly type: "uint256";
86
+ }, {
87
+ readonly internalType: "uint256";
88
+ readonly name: "qiBorrowRewardSpeed";
89
+ readonly type: "uint256";
90
+ }, {
91
+ readonly internalType: "uint256";
92
+ readonly name: "totalReserves";
93
+ readonly type: "uint256";
94
+ }, {
95
+ readonly internalType: "uint256";
96
+ readonly name: "cash";
97
+ readonly type: "uint256";
98
+ }, {
99
+ readonly internalType: "bool";
100
+ readonly name: "mintPaused";
101
+ readonly type: "bool";
102
+ }, {
103
+ readonly internalType: "bool";
104
+ readonly name: "borrowPaused";
105
+ readonly type: "bool";
106
+ }];
107
+ readonly internalType: "struct MarketMetadata[]";
108
+ readonly name: "";
109
+ readonly type: "tuple[]";
110
+ }];
111
+ readonly stateMutability: "view";
112
+ readonly type: "function";
113
+ }];
114
+ export declare const BenqiEcoLensAbi: readonly [{
115
+ readonly inputs: readonly [];
116
+ readonly name: "getMarketMetadataForAllMarkets";
117
+ readonly outputs: readonly [{
118
+ readonly components: readonly [{
119
+ readonly internalType: "address";
120
+ readonly name: "market";
121
+ readonly type: "address";
122
+ }, {
123
+ readonly internalType: "uint256";
124
+ readonly name: "supplyRate";
125
+ readonly type: "uint256";
126
+ }, {
127
+ readonly internalType: "uint256";
128
+ readonly name: "borrowRate";
129
+ readonly type: "uint256";
130
+ }, {
131
+ readonly internalType: "uint256";
132
+ readonly name: "price";
133
+ readonly type: "uint256";
134
+ }, {
135
+ readonly internalType: "uint256";
136
+ readonly name: "exchangeRate";
137
+ readonly type: "uint256";
138
+ }, {
139
+ readonly internalType: "uint256";
140
+ readonly name: "reserveFactor";
141
+ readonly type: "uint256";
142
+ }, {
143
+ readonly internalType: "uint256";
144
+ readonly name: "borrowCap";
145
+ readonly type: "uint256";
146
+ }, {
147
+ readonly internalType: "uint256";
148
+ readonly name: "supplyCap";
149
+ readonly type: "uint256";
150
+ }, {
151
+ readonly internalType: "uint256";
152
+ readonly name: "totalSupply";
153
+ readonly type: "uint256";
154
+ }, {
155
+ readonly internalType: "uint256";
156
+ readonly name: "totalUnderlyingSupply";
157
+ readonly type: "uint256";
158
+ }, {
159
+ readonly internalType: "uint256";
160
+ readonly name: "totalBorrows";
161
+ readonly type: "uint256";
162
+ }, {
163
+ readonly internalType: "uint256";
164
+ readonly name: "collateralFactor";
165
+ readonly type: "uint256";
166
+ }, {
167
+ readonly components: readonly [{
168
+ readonly internalType: "address";
169
+ readonly name: "token";
170
+ readonly type: "address";
171
+ }, {
172
+ readonly internalType: "uint256";
173
+ readonly name: "decimals";
174
+ readonly type: "uint256";
175
+ }, {
176
+ readonly internalType: "string";
177
+ readonly name: "symbol";
178
+ readonly type: "string";
179
+ }, {
180
+ readonly internalType: "string";
181
+ readonly name: "name";
182
+ readonly type: "string";
183
+ }];
184
+ readonly internalType: "struct Token";
185
+ readonly name: "underlying";
186
+ readonly type: "tuple";
187
+ }, {
188
+ readonly internalType: "uint256";
189
+ readonly name: "qiTokenDecimals";
190
+ readonly type: "uint256";
191
+ }, {
192
+ readonly internalType: "uint256";
193
+ readonly name: "totalReserves";
194
+ readonly type: "uint256";
195
+ }, {
196
+ readonly internalType: "uint256";
197
+ readonly name: "cash";
198
+ readonly type: "uint256";
199
+ }, {
200
+ readonly internalType: "bool";
201
+ readonly name: "mintPaused";
202
+ readonly type: "bool";
203
+ }, {
204
+ readonly internalType: "bool";
205
+ readonly name: "borrowPaused";
206
+ readonly type: "bool";
207
+ }, {
208
+ readonly components: readonly [{
209
+ readonly components: readonly [{
210
+ readonly internalType: "address";
211
+ readonly name: "token";
212
+ readonly type: "address";
213
+ }, {
214
+ readonly internalType: "uint256";
215
+ readonly name: "decimals";
216
+ readonly type: "uint256";
217
+ }, {
218
+ readonly internalType: "string";
219
+ readonly name: "symbol";
220
+ readonly type: "string";
221
+ }, {
222
+ readonly internalType: "string";
223
+ readonly name: "name";
224
+ readonly type: "string";
225
+ }];
226
+ readonly internalType: "struct Token";
227
+ readonly name: "underlying";
228
+ readonly type: "tuple";
229
+ }, {
230
+ readonly internalType: "uint256";
231
+ readonly name: "endTime";
232
+ readonly type: "uint256";
233
+ }, {
234
+ readonly internalType: "uint256";
235
+ readonly name: "supplyEmissionsPerSec";
236
+ readonly type: "uint256";
237
+ }, {
238
+ readonly internalType: "uint256";
239
+ readonly name: "borrowEmissionsPerSec";
240
+ readonly type: "uint256";
241
+ }];
242
+ readonly internalType: "struct RewardEmission[]";
243
+ readonly name: "rewards";
244
+ readonly type: "tuple[]";
245
+ }];
246
+ readonly internalType: "struct MarketMetadata[]";
247
+ readonly name: "";
248
+ readonly type: "tuple[]";
249
+ }];
250
+ readonly stateMutability: "view";
251
+ readonly type: "function";
252
+ }];
253
+ //# sourceMappingURL=BenqiLens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BenqiLens.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v2/BenqiLens.ts"],"names":[],"mappings":"AAuHA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAef,CAAA;AAEV,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelB,CAAA"}
@@ -0,0 +1,125 @@
1
+ export declare const TectonicLensAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "contract TectonicCoreLensInterface";
4
+ readonly name: "core";
5
+ readonly type: "address";
6
+ }];
7
+ readonly name: "getMarketsData";
8
+ readonly outputs: readonly [{
9
+ readonly components: readonly [{
10
+ readonly internalType: "address";
11
+ readonly name: "tokenAddress";
12
+ readonly type: "address";
13
+ }, {
14
+ readonly internalType: "string";
15
+ readonly name: "label";
16
+ readonly type: "string";
17
+ }, {
18
+ readonly internalType: "string";
19
+ readonly name: "symbol";
20
+ readonly type: "string";
21
+ }, {
22
+ readonly internalType: "uint8";
23
+ readonly name: "decimal";
24
+ readonly type: "uint8";
25
+ }, {
26
+ readonly internalType: "address";
27
+ readonly name: "ttokenAddress";
28
+ readonly type: "address";
29
+ }, {
30
+ readonly internalType: "uint8";
31
+ readonly name: "ttokenDecimal";
32
+ readonly type: "uint8";
33
+ }, {
34
+ readonly internalType: "uint256";
35
+ readonly name: "borrowCap";
36
+ readonly type: "uint256";
37
+ }, {
38
+ readonly internalType: "uint256";
39
+ readonly name: "supplyCap";
40
+ readonly type: "uint256";
41
+ }, {
42
+ readonly internalType: "uint256";
43
+ readonly name: "availableLiquidity";
44
+ readonly type: "uint256";
45
+ }, {
46
+ readonly internalType: "bool";
47
+ readonly name: "asCollateralEnabled";
48
+ readonly type: "bool";
49
+ }, {
50
+ readonly internalType: "uint256";
51
+ readonly name: "reserves";
52
+ readonly type: "uint256";
53
+ }, {
54
+ readonly internalType: "uint256";
55
+ readonly name: "reserveFactor";
56
+ readonly type: "uint256";
57
+ }, {
58
+ readonly internalType: "uint256";
59
+ readonly name: "collateralFactor";
60
+ readonly type: "uint256";
61
+ }, {
62
+ readonly internalType: "uint256";
63
+ readonly name: "liquidationPenalty";
64
+ readonly type: "uint256";
65
+ }, {
66
+ readonly internalType: "uint256";
67
+ readonly name: "price";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly internalType: "uint256";
71
+ readonly name: "exchangeRate";
72
+ readonly type: "uint256";
73
+ }, {
74
+ readonly internalType: "uint256";
75
+ readonly name: "tTokenMinted";
76
+ readonly type: "uint256";
77
+ }, {
78
+ readonly internalType: "uint256";
79
+ readonly name: "totalSupply";
80
+ readonly type: "uint256";
81
+ }, {
82
+ readonly internalType: "uint256";
83
+ readonly name: "totalBorrow";
84
+ readonly type: "uint256";
85
+ }, {
86
+ readonly internalType: "uint256";
87
+ readonly name: "borrowRatePerBlock";
88
+ readonly type: "uint256";
89
+ }, {
90
+ readonly internalType: "uint256";
91
+ readonly name: "supplyRatePerBlock";
92
+ readonly type: "uint256";
93
+ }, {
94
+ readonly internalType: "uint256";
95
+ readonly name: "availableBorrow";
96
+ readonly type: "uint256";
97
+ }, {
98
+ readonly internalType: "bool";
99
+ readonly name: "isBoosted";
100
+ readonly type: "bool";
101
+ }, {
102
+ readonly internalType: "uint256";
103
+ readonly name: "baseRatePerBlock";
104
+ readonly type: "uint256";
105
+ }, {
106
+ readonly internalType: "uint256";
107
+ readonly name: "multiplierPerBlock";
108
+ readonly type: "uint256";
109
+ }, {
110
+ readonly internalType: "uint256";
111
+ readonly name: "jumpMultiplierPerBlock";
112
+ readonly type: "uint256";
113
+ }, {
114
+ readonly internalType: "uint256";
115
+ readonly name: "kink";
116
+ readonly type: "uint256";
117
+ }];
118
+ readonly internalType: "struct TectonicLens.MarketData[]";
119
+ readonly name: "";
120
+ readonly type: "tuple[]";
121
+ }];
122
+ readonly stateMutability: "nonpayable";
123
+ readonly type: "function";
124
+ }];
125
+ //# sourceMappingURL=TectonicLens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TectonicLens.d.ts","sourceRoot":"","sources":["../../../src/abis/compound-v2/TectonicLens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyGlB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { getLenderPublicData, getLenderPublicDataViaApi, getLenderPublicDataAll, getLenderUserDataResult, convertLenderUserDataResult, prepareLenderUserDataRpcCalls, type PreparedUserDataRpcCalls, getLenderUserDataMulti, type ChainQuery, type ProviderOptions, type BaseLendingPosition, type BasicReserveResponse, type AprData, type BalanceData, type UserConfig, type UserData, MORPHO_LENS, decodePackedMorphoUserDataset, decodePackedListaUserDataset, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, decodeMarkets, decodeListaMarkets, normalizeToBytes, getMorphoTypeMarketConverter, buildSummaries, buildPortfolioTotals, fuseLenderData, filterActiveLenders, type PortfolioTotals, type PortfolioSummary, type LenderSummary, type LenderDataEntry, type ChainSummary, type SubAccountSummary, type UserDataResult, calculateWeightedAverage, calculateNetApr, calculateLeverage, calculateOverallNetApr, } from './lending';
1
+ export { getLenderPublicData, getLenderPublicDataViaApi, getLenderPublicDataAll, getLenderUserDataResult, convertLenderUserDataResult, prepareLenderUserDataRpcCalls, type PreparedUserDataRpcCalls, prepareMergedRpcCalls, parseMergedResult, type PreparedMergedRpcCalls, type MergedUserData, type PermissionParams, prepareMergedMulticallParams, type PreparedMergedMulticallParams, getMergedUserData, needsLenderApproval, needsTokenApproval, type TokenApprovalParams, type TokenApprovalMeta, getLenderUserDataMulti, type ChainQuery, type ProviderOptions, type BaseLendingPosition, type BasicReserveResponse, type AprData, type BalanceData, type UserConfig, type UserData, MORPHO_LENS, decodePackedMorphoUserDataset, decodePackedListaUserDataset, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, decodeMarkets, decodeListaMarkets, normalizeToBytes, getMorphoTypeMarketConverter, buildSummaries, buildPortfolioTotals, fuseLenderData, filterActiveLenders, type PortfolioTotals, type PortfolioSummary, type LenderSummary, type LenderDataEntry, type ChainSummary, type SubAccountSummary, type UserDataResult, calculateWeightedAverage, calculateNetApr, calculateLeverage, calculateOverallNetApr, } from './lending';
2
2
  export { type LendingPair, generateLendingPairs, getTopPairs, } from './lending-pairs';
3
3
  export { type PoolWithMeta, generateLendingPools, unflattenLenderData, } from './lending-pools';
4
4
  export { fetchGeneralYields } from './yields';
@@ -12,8 +12,10 @@ export { computeOpenTradeDeltas, computeCloseTradeDeltas, computeCollateralSwapD
12
12
  export { computeEModeAnalysis } from './lending/margin/e-mode';
13
13
  export type { EModeResult, EModeAssets } from './lending/margin/e-mode';
14
14
  export type { LoopPostTradeMetrics, LendingMode } from './lending/margin/loop';
15
- export { computeSumerDepositDelta, computeSumerWithdrawDelta, computeSumerBorrowDelta, computeSumerRepayDelta, computeSumerWaterfall, buildSumerAccumulators, applyPositionDelta, } from './lending/margin/sumer';
16
- export type { SumerPositionInput, GroupAccumulator, } from './lending/margin/sumer';
15
+ export type { SumerPositionInput, GroupAccumulator, } from './lending/margin/base';
16
+ export type { LenderYieldComplete, LenderCrossPoolMeta, LenderToLenderCrossPoolMeta, } from './lending/user-data/utils/types';
17
+ export { computeSumerWaterfall, buildSumerAccumulators, applyPositionDelta, } from './lending/margin/base/sumer/waterfall';
18
+ export { computeSumerDepositDelta, computeSumerWithdrawDelta, computeSumerBorrowDelta, computeSumerRepayDelta, } from './lending/margin/base/sumer';
17
19
  export { MorphoLensAbi } from '@1delta/abis';
18
20
  export { type PreparedCall, type RawRpcCall, type RawRpcBatch, type MulticallRpcBatch, createRawRpcCalls, createMulticallRpcCall, multicall3Abi, } from './utils/rpcCall';
19
21
  export { type RawRpcResponse, parseRawRpcResponses, parseRawRpcBatchResponses, parseMulticallRpcResponses, } from './utils/rpcParse';
@@ -1 +1 @@
1
- {"version":3,"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