@1delta/margin-fetcher 0.0.56 → 0.0.59
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/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -35
- package/dist/index.js.map +1 -1
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts +1 -1
- package/dist/lending/aave-v3-type/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/compound-v3/publicCallBuild.d.ts +1 -1
- package/dist/lending/compound-v3/publicCallBuild.d.ts.map +1 -1
- package/dist/lending/init/publicCallBuild.d.ts +1 -1
- package/dist/lending/init/publicCallBuild.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { getLenderPublicData, getLenderPublicDataViaApi, getLenderPublicDataAll, getLenderUserDataResult, convertLenderUserDataResult, inititalizeAllData, fetchLenderMetaFromDirAndInitialize, fetchLenderMetaFromDir, } from './lending';
|
|
2
|
+
export { type LendingPair, generateLendingPairs, getTopPairs, } from './lending-pairs';
|
|
3
3
|
export { fetchGeneralYields } from './yields';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export { fetchDefillamaData, fetchDefillamaHistData, fetchMainPrices, fetchPendlePrices, } from './prices';
|
|
5
|
+
export { getLendersForChain, filterLendersByProtocol, getAavesForChain, getLenderAssets, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isAaveV3Type, isAaveV2Type, isYLDR, isAaveV32Type, isAaveType, isMultiMarket, } from './utils';
|
|
6
|
+
export { fetchFlashLiquidityForChain, attachPricesToFlashLiquidity, } from './flash-liquidity';
|
|
7
|
+
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, } from './types';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
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,kBAAkB,EAClB,mCAAmC,EACnC,sBAAsB,GACvB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,KAAK,WAAW,EAChB,oBAAoB,EACpB,WAAW,GACZ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,iBAAiB,GAClB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,GACd,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,UAAU,GAChB,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -12015,30 +12015,6 @@ function organizeUserQueries(queries) {
|
|
|
12015
12015
|
};
|
|
12016
12016
|
return [...nonMorphos, morphosCollapsed];
|
|
12017
12017
|
}
|
|
12018
|
-
var AaveV2TypeGetUserReserveData = /* @__PURE__ */ ((AaveV2TypeGetUserReserveData2) => {
|
|
12019
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["currentATokenBalance"] = 0] = "currentATokenBalance";
|
|
12020
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["currentStableDebt"] = 1] = "currentStableDebt";
|
|
12021
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["currentVariableDebt"] = 2] = "currentVariableDebt";
|
|
12022
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["principalStableDebt"] = 3] = "principalStableDebt";
|
|
12023
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["scaledVariableDebt"] = 4] = "scaledVariableDebt";
|
|
12024
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["stableBorrowRate"] = 5] = "stableBorrowRate";
|
|
12025
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["liquidityRate"] = 6] = "liquidityRate";
|
|
12026
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["stableRateLastUpdated"] = 7] = "stableRateLastUpdated";
|
|
12027
|
-
AaveV2TypeGetUserReserveData2[AaveV2TypeGetUserReserveData2["usageAsCollateralEnabled"] = 8] = "usageAsCollateralEnabled";
|
|
12028
|
-
return AaveV2TypeGetUserReserveData2;
|
|
12029
|
-
})(AaveV2TypeGetUserReserveData || {});
|
|
12030
|
-
var AaveV3TypeGetUserReserveData = /* @__PURE__ */ ((AaveV3TypeGetUserReserveData2) => {
|
|
12031
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["currentATokenBalance"] = 0] = "currentATokenBalance";
|
|
12032
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["currentStableDebt"] = 1] = "currentStableDebt";
|
|
12033
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["currentVariableDebt"] = 2] = "currentVariableDebt";
|
|
12034
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["principalStableDebt"] = 3] = "principalStableDebt";
|
|
12035
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["scaledVariableDebt"] = 4] = "scaledVariableDebt";
|
|
12036
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["stableBorrowRate"] = 5] = "stableBorrowRate";
|
|
12037
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["liquidityRate"] = 6] = "liquidityRate";
|
|
12038
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["stableRateLastUpdated"] = 7] = "stableRateLastUpdated";
|
|
12039
|
-
AaveV3TypeGetUserReserveData2[AaveV3TypeGetUserReserveData2["usageAsCollateralEnabled"] = 8] = "usageAsCollateralEnabled";
|
|
12040
|
-
return AaveV3TypeGetUserReserveData2;
|
|
12041
|
-
})(AaveV3TypeGetUserReserveData || {});
|
|
12042
12018
|
|
|
12043
12019
|
// src/lending/user-data/aave-v2-type/userCallBuild.ts
|
|
12044
12020
|
var getBaseAaveV2Calls = (chainId, account, lender, assetsToQuery) => {
|
|
@@ -20486,6 +20462,7 @@ function getExponentForOracle(chainId, fork) {
|
|
|
20486
20462
|
}
|
|
20487
20463
|
if (chainId === Chain.XDC_NETWORK) return 0n;
|
|
20488
20464
|
if (chainId === Chain.TELOS_EVM_MAINNET) return 10n;
|
|
20465
|
+
if (chainId === Chain.SONIC_MAINNET && fork === Lender.POLTER) return 10n;
|
|
20489
20466
|
return AAVE_V2_LENDERS.includes(fork) ? 0n : 10n;
|
|
20490
20467
|
}
|
|
20491
20468
|
var parseAaveResults = (chainId, data, queries, list = {}) => {
|
|
@@ -24258,16 +24235,6 @@ function attachPricesToFlashLiquidity(chainId, liq, prices, list = {}) {
|
|
|
24258
24235
|
return liqCopy;
|
|
24259
24236
|
}
|
|
24260
24237
|
|
|
24261
|
-
|
|
24262
|
-
var ChainlinkAggregatorIndexes2 = /* @__PURE__ */ ((ChainlinkAggregatorIndexes3) => {
|
|
24263
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["roundId"] = 0] = "roundId";
|
|
24264
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["answer"] = 1] = "answer";
|
|
24265
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["startedAt"] = 2] = "startedAt";
|
|
24266
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["updatedAt"] = 3] = "updatedAt";
|
|
24267
|
-
ChainlinkAggregatorIndexes3[ChainlinkAggregatorIndexes3["answeredInRound"] = 4] = "answeredInRound";
|
|
24268
|
-
return ChainlinkAggregatorIndexes3;
|
|
24269
|
-
})(ChainlinkAggregatorIndexes2 || {});
|
|
24270
|
-
|
|
24271
|
-
export { AaveV2TypeGetUserReserveData, AaveV3TypeGetUserReserveData, ChainlinkAggregatorIndexes2 as ChainlinkAggregatorIndexes, attachPricesToFlashLiquidity, convertLenderUserDataResult, fetchDefillamaData, fetchDefillamaHistData, fetchFlashLiquidityForChain, fetchGeneralYields, fetchLenderMetaFromDir, fetchLenderMetaFromDirAndInitialize, fetchMainPrices, fetchPendlePrices, filterLendersByProtocol, generateLendingPairs, getAavesForChain, getDistinctPairsByShortAsset, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataResult, getLendersForChain, getTopPairs, inititalizeAllData, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR, organizeUserQueries };
|
|
24238
|
+
export { attachPricesToFlashLiquidity, convertLenderUserDataResult, fetchDefillamaData, fetchDefillamaHistData, fetchFlashLiquidityForChain, fetchGeneralYields, fetchLenderMetaFromDir, fetchLenderMetaFromDirAndInitialize, fetchMainPrices, fetchPendlePrices, filterLendersByProtocol, generateLendingPairs, getAavesForChain, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataResult, getLendersForChain, getTopPairs, inititalizeAllData, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR };
|
|
24272
24239
|
//# sourceMappingURL=index.js.map
|
|
24273
24240
|
//# sourceMappingURL=index.js.map
|