@1delta/margin-fetcher 0.0.170 → 0.0.172

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 (112) hide show
  1. package/dist/abis/euler/accountLens.d.ts +191 -0
  2. package/dist/abis/euler/accountLens.d.ts.map +1 -0
  3. package/dist/abis/euler/eVault.d.ts +206 -0
  4. package/dist/abis/euler/eVault.d.ts.map +1 -0
  5. package/dist/abis/euler/evc.d.ts +81 -0
  6. package/dist/abis/euler/evc.d.ts.map +1 -0
  7. package/dist/abis/euler/genericFactory.d.ts +26 -0
  8. package/dist/abis/euler/genericFactory.d.ts.map +1 -0
  9. package/dist/abis/euler/index.d.ts +7 -0
  10. package/dist/abis/euler/index.d.ts.map +1 -0
  11. package/dist/abis/euler/payments.d.ts +140 -0
  12. package/dist/abis/euler/payments.d.ts.map +1 -0
  13. package/dist/abis/euler/swapper.d.ts +143 -0
  14. package/dist/abis/euler/swapper.d.ts.map +1 -0
  15. package/dist/abis/euler/vaultLens.d.ts +336 -0
  16. package/dist/abis/euler/vaultLens.d.ts.map +1 -0
  17. package/dist/index.js +1379 -149
  18. package/dist/index.js.map +1 -1
  19. package/dist/lending/margin/base/borrow.d.ts +1 -1
  20. package/dist/lending/margin/base/deposit.d.ts +1 -1
  21. package/dist/lending/margin/base/repay.d.ts +1 -1
  22. package/dist/lending/margin/base/standard/borrow.d.ts +1 -1
  23. package/dist/lending/margin/base/standard/deposit.d.ts +1 -1
  24. package/dist/lending/margin/base/standard/repay.d.ts +1 -1
  25. package/dist/lending/margin/base/standard/withdraw.d.ts +1 -1
  26. package/dist/lending/margin/base/utils.d.ts +1 -1
  27. package/dist/lending/margin/base/withdraw.d.ts +1 -1
  28. package/dist/lending/margin/base/yield/getRewardYieldChange.d.ts +0 -4
  29. package/dist/lending/margin/base/yield/getRewardYieldChange.d.ts.map +1 -1
  30. package/dist/lending/margin/e-mode/index.d.ts.map +1 -1
  31. package/dist/lending/margin/loop/types.d.ts +3 -3
  32. package/dist/lending/margin/loop/types.d.ts.map +1 -1
  33. package/dist/lending/margin/loop/utils.d.ts +4 -0
  34. package/dist/lending/margin/loop/utils.d.ts.map +1 -1
  35. package/dist/lending/public-data/aave-v2-type/publicCallBuild.d.ts.map +1 -1
  36. package/dist/lending/public-data/aave-v2-type/publicCallParse.d.ts.map +1 -1
  37. package/dist/lending/public-data/aave-v3-type/publicCallParse.d.ts.map +1 -1
  38. package/dist/lending/public-data/compound-v2/convert/benqi.d.ts +2 -1
  39. package/dist/lending/public-data/compound-v2/convert/benqi.d.ts.map +1 -1
  40. package/dist/lending/public-data/compound-v2/convert/standard.d.ts +2 -1
  41. package/dist/lending/public-data/compound-v2/convert/standard.d.ts.map +1 -1
  42. package/dist/lending/public-data/compound-v2/convert/sumer.d.ts +2 -1
  43. package/dist/lending/public-data/compound-v2/convert/sumer.d.ts.map +1 -1
  44. package/dist/lending/public-data/compound-v2/convert/takara.d.ts +2 -1
  45. package/dist/lending/public-data/compound-v2/convert/takara.d.ts.map +1 -1
  46. package/dist/lending/public-data/compound-v2/convert/tectonic.d.ts +2 -1
  47. package/dist/lending/public-data/compound-v2/convert/tectonic.d.ts.map +1 -1
  48. package/dist/lending/public-data/compound-v3/publicCallParse.d.ts +3 -0
  49. package/dist/lending/public-data/compound-v3/publicCallParse.d.ts.map +1 -1
  50. package/dist/lending/public-data/euler/fetcher/cluster.d.ts +21 -0
  51. package/dist/lending/public-data/euler/fetcher/cluster.d.ts.map +1 -0
  52. package/dist/lending/public-data/euler/fetcher/constants.d.ts +29 -0
  53. package/dist/lending/public-data/euler/fetcher/constants.d.ts.map +1 -0
  54. package/dist/lending/public-data/euler/fetcher/normalize.d.ts +171 -0
  55. package/dist/lending/public-data/euler/fetcher/normalize.d.ts.map +1 -0
  56. package/dist/lending/public-data/euler/fetcher/types.d.ts +113 -0
  57. package/dist/lending/public-data/euler/fetcher/types.d.ts.map +1 -0
  58. package/dist/lending/public-data/euler/publicCallBuild.d.ts +335 -0
  59. package/dist/lending/public-data/euler/publicCallBuild.d.ts.map +1 -0
  60. package/dist/lending/public-data/euler/publicCallParse.d.ts +9 -0
  61. package/dist/lending/public-data/euler/publicCallParse.d.ts.map +1 -0
  62. package/dist/lending/public-data/fetchLender.d.ts.map +1 -1
  63. package/dist/lending/public-data/init/publicCallParse.d.ts.map +1 -1
  64. package/dist/lending/public-data/lista/getMarketsFromChain.d.ts.map +1 -1
  65. package/dist/lending/public-data/morpho/convertPublic.d.ts.map +1 -1
  66. package/dist/lending/public-data/morpho/fetchPublic.d.ts.map +1 -1
  67. package/dist/lending/public-data/morpho/getMarketsFromChain.d.ts.map +1 -1
  68. package/dist/lending/user-data/abis.d.ts +1 -10437
  69. package/dist/lending/user-data/abis.d.ts.map +1 -1
  70. package/dist/lending/user-data/compound-v3/userCallParse.d.ts.map +1 -1
  71. package/dist/lending/user-data/euler/userCallBuild.d.ts +22 -0
  72. package/dist/lending/user-data/euler/userCallBuild.d.ts.map +1 -0
  73. package/dist/lending/user-data/euler/userCallParse.d.ts +10 -0
  74. package/dist/lending/user-data/euler/userCallParse.d.ts.map +1 -0
  75. package/dist/lending/user-data/fetch-balances/parse.d.ts.map +1 -1
  76. package/dist/lending/user-data/fetch-balances/prepare.d.ts.map +1 -1
  77. package/dist/lending/user-data/fetch-balances/types.d.ts +1 -1
  78. package/dist/lending/user-data/utils/createEulerMultiAccountTypeUserState.d.ts +51 -0
  79. package/dist/lending/user-data/utils/createEulerMultiAccountTypeUserState.d.ts.map +1 -0
  80. package/dist/lending/user-data/utils/createGeneralUserState.d.ts.map +1 -1
  81. package/dist/lending/user-data/utils/createSumerUserState.d.ts.map +1 -1
  82. package/dist/lending/user-data/utils/types.d.ts +2 -1
  83. package/dist/lending/user-data/utils/types.d.ts.map +1 -1
  84. package/dist/lending-pairs/computeLendingPairs.d.ts.map +1 -1
  85. package/dist/prices/oracle-prices/fetchOraclePrices.d.ts.map +1 -1
  86. package/dist/prices/oracle-prices/fetchers/euler.d.ts +363 -0
  87. package/dist/prices/oracle-prices/fetchers/euler.d.ts.map +1 -0
  88. package/dist/prices/oracle-prices/fetchers/index.d.ts +1 -0
  89. package/dist/prices/oracle-prices/fetchers/index.d.ts.map +1 -1
  90. package/dist/types/apiReturnType.d.ts +6 -2
  91. package/dist/types/apiReturnType.d.ts.map +1 -1
  92. package/dist/types/lender/aave-v2-types.d.ts +3 -2
  93. package/dist/types/lender/aave-v2-types.d.ts.map +1 -1
  94. package/dist/types/lender/aave-v3-types.d.ts +6 -1
  95. package/dist/types/lender/aave-v3-types.d.ts.map +1 -1
  96. package/dist/types/lender/compound-v2-types.d.ts +3 -2
  97. package/dist/types/lender/compound-v2-types.d.ts.map +1 -1
  98. package/dist/types/lender/compound-v3-types.d.ts +3 -2
  99. package/dist/types/lender/compound-v3-types.d.ts.map +1 -1
  100. package/dist/types/lender/init-types.d.ts +3 -2
  101. package/dist/types/lender/init-types.d.ts.map +1 -1
  102. package/dist/types/lender/morpho-types.d.ts +8 -6
  103. package/dist/types/lender/morpho-types.d.ts.map +1 -1
  104. package/dist/types/lenderTypes.d.ts +8 -9
  105. package/dist/types/lenderTypes.d.ts.map +1 -1
  106. package/dist/utils/index.d.ts +3 -1
  107. package/dist/utils/index.d.ts.map +1 -1
  108. package/dist/utils/marketName.d.ts +2 -0
  109. package/dist/utils/marketName.d.ts.map +1 -0
  110. package/dist/yields/intrinsic/fetchers/usdx.d.ts +1 -0
  111. package/dist/yields/intrinsic/fetchers/usdx.d.ts.map +1 -1
  112. package/package.json +5 -5
@@ -0,0 +1,113 @@
1
+ import type { Address } from 'viem';
2
+ export interface LTVInfo {
3
+ collateral: Address;
4
+ borrowLTV: bigint;
5
+ liquidationLTV: bigint;
6
+ initialLiquidationLTV: bigint;
7
+ targetTimestamp: bigint;
8
+ rampDuration: bigint;
9
+ }
10
+ export interface InterestRateInfo {
11
+ cash: bigint;
12
+ borrows: bigint;
13
+ borrowSPY: bigint;
14
+ borrowAPY: bigint;
15
+ supplyAPY: bigint;
16
+ }
17
+ export interface InterestRateModelDetailedInfo {
18
+ interestRateModel: Address;
19
+ interestRateModelType: number;
20
+ interestRateModelParams: string;
21
+ }
22
+ export interface VaultInterestRateModelInfo {
23
+ queryFailure: boolean;
24
+ queryFailureReason: string;
25
+ vault: Address;
26
+ interestRateModel: Address;
27
+ interestRateInfo: InterestRateInfo[];
28
+ interestRateModelInfo: InterestRateModelDetailedInfo;
29
+ }
30
+ export interface AssetPriceInfo {
31
+ queryFailure: boolean;
32
+ queryFailureReason: string;
33
+ timestamp: bigint;
34
+ oracle: Address;
35
+ asset: Address;
36
+ unitOfAccount: Address;
37
+ amountIn: bigint;
38
+ amountOutMid: bigint;
39
+ amountOutBid: bigint;
40
+ amountOutAsk: bigint;
41
+ }
42
+ export interface OracleDetailedInfo {
43
+ oracle: Address;
44
+ name: string;
45
+ oracleInfo: string;
46
+ }
47
+ export interface VaultInfoFull {
48
+ timestamp: bigint;
49
+ vault: Address;
50
+ vaultName: string;
51
+ vaultSymbol: string;
52
+ vaultDecimals: bigint;
53
+ asset: Address;
54
+ assetName: string;
55
+ assetSymbol: string;
56
+ assetDecimals: bigint;
57
+ unitOfAccount: Address;
58
+ unitOfAccountName: string;
59
+ unitOfAccountSymbol: string;
60
+ unitOfAccountDecimals: bigint;
61
+ totalShares: bigint;
62
+ totalCash: bigint;
63
+ totalBorrowed: bigint;
64
+ totalAssets: bigint;
65
+ accumulatedFeesShares: bigint;
66
+ accumulatedFeesAssets: bigint;
67
+ governorFeeReceiver: Address;
68
+ protocolFeeReceiver: Address;
69
+ protocolFeeShare: bigint;
70
+ interestFee: bigint;
71
+ hookedOperations: bigint;
72
+ configFlags: bigint;
73
+ supplyCap: bigint;
74
+ borrowCap: bigint;
75
+ maxLiquidationDiscount: bigint;
76
+ liquidationCoolOffTime: bigint;
77
+ dToken: Address;
78
+ oracle: Address;
79
+ interestRateModel: Address;
80
+ hookTarget: Address;
81
+ evc: Address;
82
+ protocolConfig: Address;
83
+ balanceTracker: Address;
84
+ permit2: Address;
85
+ creator: Address;
86
+ governorAdmin: Address;
87
+ irmInfo: VaultInterestRateModelInfo;
88
+ collateralLTVInfo: LTVInfo[];
89
+ liabilityPriceInfo: AssetPriceInfo;
90
+ collateralPriceInfo: AssetPriceInfo[];
91
+ oracleInfo: OracleDetailedInfo;
92
+ backupAssetPriceInfo: AssetPriceInfo;
93
+ backupAssetOracleInfo: OracleDetailedInfo;
94
+ }
95
+ export interface Cluster {
96
+ governor: Address;
97
+ vaults: Address[];
98
+ vaultData: Map<Address, VaultInfoFull>;
99
+ }
100
+ export interface UserPosition {
101
+ vault: Address;
102
+ balance: bigint;
103
+ debt: bigint;
104
+ }
105
+ export interface SubAccountPositions {
106
+ subAccountId: number;
107
+ positions: UserPosition[];
108
+ }
109
+ export interface UserPositionsResult {
110
+ account: Address;
111
+ subAccounts: SubAccountPositions[];
112
+ }
113
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lending/public-data/euler/fetcher/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAInC,MAAM,WAAW,OAAO;IACvB,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC7C,iBAAiB,EAAE,OAAO,CAAA;IAC1B,qBAAqB,EAAE,MAAM,CAAA;IAC7B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AM,CAAA;CACZ;AAED,MAAM,WAAW,mBAAmB;IACnC,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,YAAY,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,mBAAmB,EAAE,CAAA;CAClC"}
@@ -0,0 +1,335 @@
1
+ export declare const buildEulerV2LenderReserveCall: (chainId: string, lender: string) => {
2
+ address: string;
3
+ name: string;
4
+ params: string[];
5
+ abi: readonly [{
6
+ readonly type: "function";
7
+ readonly name: "getVaultInfoFull";
8
+ readonly inputs: readonly [{
9
+ readonly name: "vault";
10
+ readonly type: "address";
11
+ }];
12
+ readonly outputs: readonly [{
13
+ readonly name: "";
14
+ readonly type: "tuple";
15
+ readonly components: readonly [{
16
+ readonly name: "timestamp";
17
+ readonly type: "uint256";
18
+ }, {
19
+ readonly name: "vault";
20
+ readonly type: "address";
21
+ }, {
22
+ readonly name: "vaultName";
23
+ readonly type: "string";
24
+ }, {
25
+ readonly name: "vaultSymbol";
26
+ readonly type: "string";
27
+ }, {
28
+ readonly name: "vaultDecimals";
29
+ readonly type: "uint256";
30
+ }, {
31
+ readonly name: "asset";
32
+ readonly type: "address";
33
+ }, {
34
+ readonly name: "assetName";
35
+ readonly type: "string";
36
+ }, {
37
+ readonly name: "assetSymbol";
38
+ readonly type: "string";
39
+ }, {
40
+ readonly name: "assetDecimals";
41
+ readonly type: "uint256";
42
+ }, {
43
+ readonly name: "unitOfAccount";
44
+ readonly type: "address";
45
+ }, {
46
+ readonly name: "unitOfAccountName";
47
+ readonly type: "string";
48
+ }, {
49
+ readonly name: "unitOfAccountSymbol";
50
+ readonly type: "string";
51
+ }, {
52
+ readonly name: "unitOfAccountDecimals";
53
+ readonly type: "uint256";
54
+ }, {
55
+ readonly name: "totalShares";
56
+ readonly type: "uint256";
57
+ }, {
58
+ readonly name: "totalCash";
59
+ readonly type: "uint256";
60
+ }, {
61
+ readonly name: "totalBorrowed";
62
+ readonly type: "uint256";
63
+ }, {
64
+ readonly name: "totalAssets";
65
+ readonly type: "uint256";
66
+ }, {
67
+ readonly name: "accumulatedFeesShares";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly name: "accumulatedFeesAssets";
71
+ readonly type: "uint256";
72
+ }, {
73
+ readonly name: "governorFeeReceiver";
74
+ readonly type: "address";
75
+ }, {
76
+ readonly name: "protocolFeeReceiver";
77
+ readonly type: "address";
78
+ }, {
79
+ readonly name: "protocolFeeShare";
80
+ readonly type: "uint256";
81
+ }, {
82
+ readonly name: "interestFee";
83
+ readonly type: "uint256";
84
+ }, {
85
+ readonly name: "hookedOperations";
86
+ readonly type: "uint256";
87
+ }, {
88
+ readonly name: "configFlags";
89
+ readonly type: "uint256";
90
+ }, {
91
+ readonly name: "supplyCap";
92
+ readonly type: "uint256";
93
+ }, {
94
+ readonly name: "borrowCap";
95
+ readonly type: "uint256";
96
+ }, {
97
+ readonly name: "maxLiquidationDiscount";
98
+ readonly type: "uint256";
99
+ }, {
100
+ readonly name: "liquidationCoolOffTime";
101
+ readonly type: "uint256";
102
+ }, {
103
+ readonly name: "dToken";
104
+ readonly type: "address";
105
+ }, {
106
+ readonly name: "oracle";
107
+ readonly type: "address";
108
+ }, {
109
+ readonly name: "interestRateModel";
110
+ readonly type: "address";
111
+ }, {
112
+ readonly name: "hookTarget";
113
+ readonly type: "address";
114
+ }, {
115
+ readonly name: "evc";
116
+ readonly type: "address";
117
+ }, {
118
+ readonly name: "protocolConfig";
119
+ readonly type: "address";
120
+ }, {
121
+ readonly name: "balanceTracker";
122
+ readonly type: "address";
123
+ }, {
124
+ readonly name: "permit2";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly name: "creator";
128
+ readonly type: "address";
129
+ }, {
130
+ readonly name: "governorAdmin";
131
+ readonly type: "address";
132
+ }, {
133
+ readonly name: "irmInfo";
134
+ readonly type: "tuple";
135
+ readonly components: readonly [{
136
+ readonly name: "queryFailure";
137
+ readonly type: "bool";
138
+ }, {
139
+ readonly name: "queryFailureReason";
140
+ readonly type: "bytes";
141
+ }, {
142
+ readonly name: "vault";
143
+ readonly type: "address";
144
+ }, {
145
+ readonly name: "interestRateModel";
146
+ readonly type: "address";
147
+ }, {
148
+ readonly name: "interestRateInfo";
149
+ readonly type: "tuple[]";
150
+ readonly components: readonly [{
151
+ readonly name: "cash";
152
+ readonly type: "uint256";
153
+ }, {
154
+ readonly name: "borrows";
155
+ readonly type: "uint256";
156
+ }, {
157
+ readonly name: "borrowSPY";
158
+ readonly type: "uint256";
159
+ }, {
160
+ readonly name: "borrowAPY";
161
+ readonly type: "uint256";
162
+ }, {
163
+ readonly name: "supplyAPY";
164
+ readonly type: "uint256";
165
+ }];
166
+ }, {
167
+ readonly name: "interestRateModelInfo";
168
+ readonly type: "tuple";
169
+ readonly components: readonly [{
170
+ readonly name: "interestRateModel";
171
+ readonly type: "address";
172
+ }, {
173
+ readonly name: "interestRateModelType";
174
+ readonly type: "uint8";
175
+ }, {
176
+ readonly name: "interestRateModelParams";
177
+ readonly type: "bytes";
178
+ }];
179
+ }];
180
+ }, {
181
+ readonly name: "collateralLTVInfo";
182
+ readonly type: "tuple[]";
183
+ readonly components: readonly [{
184
+ readonly name: "collateral";
185
+ readonly type: "address";
186
+ }, {
187
+ readonly name: "borrowLTV";
188
+ readonly type: "uint256";
189
+ }, {
190
+ readonly name: "liquidationLTV";
191
+ readonly type: "uint256";
192
+ }, {
193
+ readonly name: "initialLiquidationLTV";
194
+ readonly type: "uint256";
195
+ }, {
196
+ readonly name: "targetTimestamp";
197
+ readonly type: "uint256";
198
+ }, {
199
+ readonly name: "rampDuration";
200
+ readonly type: "uint256";
201
+ }];
202
+ }, {
203
+ readonly name: "liabilityPriceInfo";
204
+ readonly type: "tuple";
205
+ readonly components: readonly [{
206
+ readonly name: "queryFailure";
207
+ readonly type: "bool";
208
+ }, {
209
+ readonly name: "queryFailureReason";
210
+ readonly type: "bytes";
211
+ }, {
212
+ readonly name: "timestamp";
213
+ readonly type: "uint256";
214
+ }, {
215
+ readonly name: "oracle";
216
+ readonly type: "address";
217
+ }, {
218
+ readonly name: "asset";
219
+ readonly type: "address";
220
+ }, {
221
+ readonly name: "unitOfAccount";
222
+ readonly type: "address";
223
+ }, {
224
+ readonly name: "amountIn";
225
+ readonly type: "uint256";
226
+ }, {
227
+ readonly name: "amountOutMid";
228
+ readonly type: "uint256";
229
+ }, {
230
+ readonly name: "amountOutBid";
231
+ readonly type: "uint256";
232
+ }, {
233
+ readonly name: "amountOutAsk";
234
+ readonly type: "uint256";
235
+ }];
236
+ }, {
237
+ readonly name: "collateralPriceInfo";
238
+ readonly type: "tuple[]";
239
+ readonly components: readonly [{
240
+ readonly name: "queryFailure";
241
+ readonly type: "bool";
242
+ }, {
243
+ readonly name: "queryFailureReason";
244
+ readonly type: "bytes";
245
+ }, {
246
+ readonly name: "timestamp";
247
+ readonly type: "uint256";
248
+ }, {
249
+ readonly name: "oracle";
250
+ readonly type: "address";
251
+ }, {
252
+ readonly name: "asset";
253
+ readonly type: "address";
254
+ }, {
255
+ readonly name: "unitOfAccount";
256
+ readonly type: "address";
257
+ }, {
258
+ readonly name: "amountIn";
259
+ readonly type: "uint256";
260
+ }, {
261
+ readonly name: "amountOutMid";
262
+ readonly type: "uint256";
263
+ }, {
264
+ readonly name: "amountOutBid";
265
+ readonly type: "uint256";
266
+ }, {
267
+ readonly name: "amountOutAsk";
268
+ readonly type: "uint256";
269
+ }];
270
+ }, {
271
+ readonly name: "oracleInfo";
272
+ readonly type: "tuple";
273
+ readonly components: readonly [{
274
+ readonly name: "oracle";
275
+ readonly type: "address";
276
+ }, {
277
+ readonly name: "name";
278
+ readonly type: "string";
279
+ }, {
280
+ readonly name: "oracleInfo";
281
+ readonly type: "bytes";
282
+ }];
283
+ }, {
284
+ readonly name: "backupAssetPriceInfo";
285
+ readonly type: "tuple";
286
+ readonly components: readonly [{
287
+ readonly name: "queryFailure";
288
+ readonly type: "bool";
289
+ }, {
290
+ readonly name: "queryFailureReason";
291
+ readonly type: "bytes";
292
+ }, {
293
+ readonly name: "timestamp";
294
+ readonly type: "uint256";
295
+ }, {
296
+ readonly name: "oracle";
297
+ readonly type: "address";
298
+ }, {
299
+ readonly name: "asset";
300
+ readonly type: "address";
301
+ }, {
302
+ readonly name: "unitOfAccount";
303
+ readonly type: "address";
304
+ }, {
305
+ readonly name: "amountIn";
306
+ readonly type: "uint256";
307
+ }, {
308
+ readonly name: "amountOutMid";
309
+ readonly type: "uint256";
310
+ }, {
311
+ readonly name: "amountOutBid";
312
+ readonly type: "uint256";
313
+ }, {
314
+ readonly name: "amountOutAsk";
315
+ readonly type: "uint256";
316
+ }];
317
+ }, {
318
+ readonly name: "backupAssetOracleInfo";
319
+ readonly type: "tuple";
320
+ readonly components: readonly [{
321
+ readonly name: "oracle";
322
+ readonly type: "address";
323
+ }, {
324
+ readonly name: "name";
325
+ readonly type: "string";
326
+ }, {
327
+ readonly name: "oracleInfo";
328
+ readonly type: "bytes";
329
+ }];
330
+ }];
331
+ }];
332
+ readonly stateMutability: "view";
333
+ }];
334
+ }[];
335
+ //# sourceMappingURL=publicCallBuild.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publicCallBuild.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/euler/publicCallBuild.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B,GAAI,SAAS,MAAM,EAAE,QAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAY5E,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { AdditionalYields } from '../../../types';
2
+ import type { GenericTokenList } from '../../../types/general';
3
+ export declare const getEulerV2ReservesDataConverter: (lender: string, chainId: string, prices: {
4
+ [asset: string]: number;
5
+ }, additionalYields: AdditionalYields, tokenList?: GenericTokenList) => [(data: any[]) => {
6
+ data: any;
7
+ chainId: string;
8
+ } | undefined, number];
9
+ //# sourceMappingURL=publicCallParse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publicCallParse.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/euler/publicCallParse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAQ9D,eAAO,MAAM,+BAA+B,GAC3C,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,QAAQ;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EACnC,kBAAkB,gBAAgB,EAClC,YAAW,gBAAqB,KAC9B,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAAE,MAAM,CAyGtE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchLender.d.ts","sourceRoot":"","sources":["../../../src/lending/public-data/fetchLender.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAkBtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAUtD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE;IAAE,CAAC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1 +1 @@
1
- {"version":3,"file":"publicCallParse.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/init/publicCallParse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,eAAO,MAAM,iBAAiB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAOvD,CAAA;AAED,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,QAAQ;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EACnC,kBAAkB,gBAAgB,EAClC,YAAW,gBAAqB,KAC/B,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,yBAAyB,GAAG,SAAS,EAAE,MAAM,CAgHjE,CAAA"}
1
+ {"version":3,"file":"publicCallParse.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/init/publicCallParse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AASjD,eAAO,MAAM,iBAAiB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAOvD,CAAA;AAED,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,SAAS,MAAM,EACf,QAAQ;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EACnC,kBAAkB,gBAAgB,EAClC,YAAW,gBAAqB,KAC/B,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,yBAAyB,GAAG,SAAS,EAAE,MAAM,CAqHjE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getMarketsFromChain.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/lista/getMarketsFromChain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAUjD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,GAAG,EACX,gBAAgB,GAAE,gBAIjB,EACD,MAAM,GAAE,gBAAqB,EAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,SAAS,EAAE,MAAM,CAAC,CAsM5C"}
1
+ {"version":3,"file":"getMarketsFromChain.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/lista/getMarketsFromChain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAUjD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,GAAG,EACX,gBAAgB,GAAE,gBAIjB,EACD,MAAM,GAAE,gBAAqB,EAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,SAAS,EAAE,MAAM,CAAC,CAwM5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"convertPublic.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/morpho/convertPublic.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAE3B,kBAAkB,EACnB,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAKjD,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,MAAM,EACf,gBAAgB,GAAE,gBAIjB,EACD,MAAM,GAAE,gBAAqB,GAC5B;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CAAE,CAmJ9C"}
1
+ {"version":3,"file":"convertPublic.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/morpho/convertPublic.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,oCAAoC,CAAA;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAKjD,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,MAAM,EACf,gBAAgB,GAAE,gBAIjB,EACD,MAAM,GAAE,gBAAqB,GAC5B;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CAAE,CAuJ9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchPublic.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/morpho/fetchPublic.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,SAAS,MAAM,WAoDjE,CAAA;AAID,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,gBAwDvD"}
1
+ {"version":3,"file":"fetchPublic.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/morpho/fetchPublic.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,SAAS,MAAM,WAiDjE,CAAA;AAID,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,gBAwDvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"getMarketsFromChain.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/morpho/getMarketsFromChain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAUjD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,GAAG,EACX,gBAAgB,GAAE,gBAIjB,EACD,MAAM,GAAE,gBAAqB,EAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,SAAS,EAAE,MAAM,CAAC,CA6M5C"}
1
+ {"version":3,"file":"getMarketsFromChain.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/morpho/getMarketsFromChain.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAUjD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,GAAG,EACX,gBAAgB,GAAE,gBAIjB,EACD,MAAM,GAAE,gBAAqB,EAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,SAAS,EAAE,MAAM,CAAC,CA2M5C"}