@sonarwatch/portfolio-plugins 0.11.120 → 0.11.122
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/plugins/abex/positionsFetcher.js +3 -1
- package/src/plugins/abex/positionsFetcher.js.map +1 -1
- package/src/plugins/aftermath/poolsJob.js +1 -1
- package/src/plugins/aftermath/poolsJob.js.map +1 -1
- package/src/plugins/aries/constants.d.ts +1 -0
- package/src/plugins/aries/constants.js +2 -1
- package/src/plugins/aries/constants.js.map +1 -1
- package/src/plugins/aries/depositsFetcher.js +16 -0
- package/src/plugins/aries/depositsFetcher.js.map +1 -1
- package/src/plugins/aries/helpers.d.ts +4 -0
- package/src/plugins/aries/helpers.js +39 -1
- package/src/plugins/aries/helpers.js.map +1 -1
- package/src/plugins/aries/index.js +2 -1
- package/src/plugins/aries/index.js.map +1 -1
- package/src/plugins/aries/reservesJob.d.ts +3 -0
- package/src/plugins/aries/reservesJob.js +64 -0
- package/src/plugins/aries/reservesJob.js.map +1 -0
- package/src/plugins/aries/types.d.ts +53 -0
- package/src/plugins/auxexchange/aptosLpJob.js +1 -1
- package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
- package/src/plugins/fluxbeam/poolsJob.js +1 -1
- package/src/plugins/fluxbeam/poolsJob.js.map +1 -1
- package/src/plugins/jupiter/helpers.d.ts +1 -0
- package/src/plugins/jupiter/helpers.js +30 -1
- package/src/plugins/jupiter/helpers.js.map +1 -1
- package/src/plugins/jupiter/types.d.ts +10 -0
- package/src/plugins/lifinity/constants.d.ts +2 -0
- package/src/plugins/lifinity/constants.js +3 -1
- package/src/plugins/lifinity/constants.js.map +1 -1
- package/src/plugins/lifinity/index.js +2 -1
- package/src/plugins/lifinity/index.js.map +1 -1
- package/src/plugins/lifinity/xLfntyJob.d.ts +3 -0
- package/src/plugins/lifinity/xLfntyJob.js +43 -0
- package/src/plugins/lifinity/xLfntyJob.js.map +1 -0
- package/src/plugins/liquiditypools-sei/job.js +1 -1
- package/src/plugins/liquiditypools-sei/job.js.map +1 -1
- package/src/plugins/meteora/poolsJob.js +33 -46
- package/src/plugins/meteora/poolsJob.js.map +1 -1
- package/src/plugins/orca/lpTokensJob.js +1 -1
- package/src/plugins/orca/lpTokensJob.js.map +1 -1
- package/src/plugins/pancakeswap/aptosLpJob.js +1 -1
- package/src/plugins/pancakeswap/aptosLpJob.js.map +1 -1
- package/src/plugins/raydium/lpTokensJob.js +1 -1
- package/src/plugins/raydium/lpTokensJob.js.map +1 -1
- package/src/plugins/suilend/helpers.d.ts +7 -2
- package/src/plugins/suilend/helpers.js +54 -3
- package/src/plugins/suilend/helpers.js.map +1 -1
- package/src/plugins/suilend/marketsJob.js +43 -2
- package/src/plugins/suilend/marketsJob.js.map +1 -1
- package/src/plugins/suilend/obligationsFetcher.js +22 -12
- package/src/plugins/suilend/obligationsFetcher.js.map +1 -1
- package/src/plugins/suilend/types.d.ts +5 -0
- package/src/utils/misc/getLpUnderlyingTokenSource.d.ts +1 -1
- package/src/utils/misc/getLpUnderlyingTokenSource.js +1 -1
- package/src/utils/misc/getLpUnderlyingTokenSource.js.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,qEAAkE;
|
1
|
+
{"version":3,"file":"obligationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/suilend/obligationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAKqB;AACrB,iDAAmD;AACnD,qEAAkE;AAOlE,qEAAkE;AAClE,qGAA6E;AAC7E,uCAAgE;AAChE,mDAAkD;AAElD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE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EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EACrB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,eAAe,CAChB,CAAC;IAEJ,MAAM,OAAO,GAAqB;QAChC,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,eAAe,EAAE,IAAI;YACrB,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { BorrowLendRate } from '@sonarwatch/portfolio-core';
|
1
2
|
import { ParsedData } from '../../utils/sui/types';
|
2
3
|
export type ObligationCapFields = {
|
3
4
|
id: ID;
|
@@ -47,6 +48,10 @@ export type Reward = {
|
|
47
48
|
earned_rewards: ParsedData<Value>;
|
48
49
|
pool_reward_id: string;
|
49
50
|
};
|
51
|
+
export type MarketsInfo = {
|
52
|
+
lendingMarkets: LendingMarket[];
|
53
|
+
rates: BorrowLendRate[];
|
54
|
+
};
|
50
55
|
export type LendingMarket = {
|
51
56
|
id: ID;
|
52
57
|
version: string;
|
@@ -18,5 +18,5 @@ type PoolUnderlyingRaw = {
|
|
18
18
|
tokenPrice: TokenPrice | undefined;
|
19
19
|
};
|
20
20
|
export declare const defaultAcceptedPairs: string[];
|
21
|
-
export default function getLpUnderlyingTokenSource(sourceId: string,
|
21
|
+
export default function getLpUnderlyingTokenSource(sourceId: string, networkId: NetworkIdType, poolUnderlyingsA: PoolUnderlyingRaw, poolUnderlyingsB: PoolUnderlyingRaw, minTvl?: number, acceptedPairs?: string[]): TokenPriceSource | null;
|
22
22
|
export {};
|
@@ -27,7 +27,7 @@ exports.defaultAcceptedPairs = [
|
|
27
27
|
'0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN', // USDCet
|
28
28
|
'0x6864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS', // CETUS
|
29
29
|
];
|
30
|
-
function getLpUnderlyingTokenSource(sourceId,
|
30
|
+
function getLpUnderlyingTokenSource(sourceId, networkId, poolUnderlyingsA, poolUnderlyingsB, minTvl = 5000, acceptedPairs = exports.defaultAcceptedPairs) {
|
31
31
|
var _a, _b;
|
32
32
|
if (!poolUnderlyingsA.tokenPrice && !poolUnderlyingsB.tokenPrice)
|
33
33
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAUoC;AAEpC,wEAAgD;AAChD,8DAAsE;AAyBzD,QAAA,oBAAoB,GAAG;IAClC,gBAAgB;IAChB,iCAAgB;IAChB,sEAAsE,EAAE,OAAO;IAC/E,qHAAqH,EAAE,SAAS;IAChI,mBAAmB;IACnB,oCAAmB;IACnB,2CAA0B;IAC1B,8CAA8C,EAAE,OAAO;IACvD,8CAA8C,EAAE,OAAO;IACvD,kBAAkB;IAClB,mCAAkB;IAClB,6EAA6E,EAAE,SAAS;IACxF,mFAAmF,EAAE,oBAAoB;IACzG,gBAAgB;IAChB,iCAAgB;IAChB,eAAe;IACf,gFAAgF,EAAE,SAAS;IAC3F,iFAAiF,EAAE,QAAQ;CAC5F,CAAC;AAEF,SAAwB,0BAA0B,CAChD,QAAgB,EAChB,
|
1
|
+
{"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAUoC;AAEpC,wEAAgD;AAChD,8DAAsE;AAyBzD,QAAA,oBAAoB,GAAG;IAClC,gBAAgB;IAChB,iCAAgB;IAChB,sEAAsE,EAAE,OAAO;IAC/E,qHAAqH,EAAE,SAAS;IAChI,mBAAmB;IACnB,oCAAmB;IACnB,2CAA0B;IAC1B,8CAA8C,EAAE,OAAO;IACvD,8CAA8C,EAAE,OAAO;IACvD,kBAAkB;IAClB,mCAAkB;IAClB,6EAA6E,EAAE,SAAS;IACxF,mFAAmF,EAAE,oBAAoB;IACzG,gBAAgB;IAChB,iCAAgB;IAChB,eAAe;IACf,gFAAgF,EAAE,SAAS;IAC3F,iFAAiF,EAAE,QAAQ;CAC5F,CAAC;AAEF,SAAwB,0BAA0B,CAChD,QAAgB,EAChB,SAAwB,EACxB,gBAAmC,EACnC,gBAAmC,EACnC,MAAM,GAAG,IAAI,EACb,aAAa,GAAG,4BAAoB;;IAEpC,IAAI,CAAC,gBAAgB,CAAC,UAAU,IAAI,CAAC,gBAAgB,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAC9E,IAAI,CAAA,MAAA,gBAAgB,CAAC,UAAU,0CAAE,KAAK,MAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1D,IAAI,CAAA,MAAA,gBAAgB,CAAC,UAAU,0CAAE,KAAK,MAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAE1D,MAAM,gBAAgB,GAAG,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1E,MAAM,gBAAgB,GAAG,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1E,IAAI,gBAAgB,IAAI,gBAAgB;QAAE,OAAO,IAAI,CAAC;IAEtD,IAAI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