@sonarwatch/portfolio-plugins 0.12.36 → 0.12.37
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/plugins/allbridge/constants.d.ts +0 -1
- package/src/plugins/allbridge/constants.js +1 -2
- package/src/plugins/allbridge/constants.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +6 -2
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/banx/constants.d.ts +0 -1
- package/src/plugins/banx/constants.js +1 -2
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/banx/idl.d.ts +15 -7
- package/src/plugins/banx/idl.js +199 -268
- package/src/plugins/banx/idl.js.map +1 -1
- package/src/plugins/banx/loansFetcher.js +19 -23
- package/src/plugins/banx/loansFetcher.js.map +1 -1
- package/src/plugins/banx/offersFetcher.js +10 -15
- package/src/plugins/banx/offersFetcher.js.map +1 -1
- package/src/plugins/citrus/collectionsJob.js.map +1 -1
- package/src/plugins/citrus/constants.d.ts +0 -1
- package/src/plugins/citrus/constants.js +1 -2
- package/src/plugins/citrus/constants.js.map +1 -1
- package/src/plugins/citrus/loansFetcher.js +14 -20
- package/src/plugins/citrus/loansFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.js +2 -1
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +9 -6
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/structs.d.ts +21 -0
- package/src/plugins/jupiter/exchange/structs.js +21 -1
- package/src/plugins/jupiter/exchange/structs.js.map +1 -1
- package/src/plugins/rain/collectionsJob.js +6 -10
- package/src/plugins/rain/collectionsJob.js.map +1 -1
- package/src/plugins/rain/helpers.js +3 -1
- package/src/plugins/rain/helpers.js.map +1 -1
- package/src/plugins/rain/index.js +2 -1
- package/src/plugins/rain/index.js.map +1 -1
- package/src/plugins/rain/loansFetcher.js +60 -25
- package/src/plugins/rain/loansFetcher.js.map +1 -1
- package/src/plugins/rain/types.d.ts +3 -0
- package/src/plugins/sharky/constants.d.ts +0 -1
- package/src/plugins/sharky/constants.js +3 -4
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +17 -20
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/utils/misc/MemoizedCache.d.ts +12 -0
- package/src/utils/misc/MemoizedCache.js +35 -0
- package/src/utils/misc/MemoizedCache.js.map +1 -0
- package/src/utils/misc/arrayToMap.d.ts +1 -0
- package/src/utils/misc/arrayToMap.js +12 -0
- package/src/utils/misc/arrayToMap.js.map +1 -0
- package/src/utils/misc/pick.d.ts +2 -0
- package/src/utils/misc/pick.js +16 -0
- package/src/utils/misc/pick.js.map +1 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js +8 -3
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.js.map +1 -1
- package/src/plugins/allbridge/getPoolInfo.d.ts +0 -3
- package/src/plugins/allbridge/getPoolInfo.js +0 -28
- package/src/plugins/allbridge/getPoolInfo.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"idl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/idl.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,2BAA2B;YACjC,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,4BAA4B;wBAClC,IAAI,EAAE;4BACJ,OAAO,EAAE,gCAAgC;yBAC1C;qBACF;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,WAAW;qBAClB;oBACD;wBACE,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,WAAW;q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F;aACF;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,eAAe;qBACtB;oBACD;wBACE,IAAI,EAAE,aAAa;qBACpB;oBACD;wBACE,IAAI,EAAE,yBAAyB;qBAChC;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,QAAQ;qBACf;oBACD;wBACE,IAAI,EAAE,UAAU;qBACjB;oBACD;wBACE,IAAI,EAAE,YAAY;qBACnB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,CAAC,WAAW,CAAC;qBACtB;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,MAAM,EAAE;4BACN;gCACE,OAAO,EAAE,eAAe;6BACzB;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,aAAa;wBACnB,MAAM,EAAE;4BACN;gCACE,OAAO,EAAE,gBAAgB;6BAC1B;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE,CAAC,KAAK,CAAC;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
1
|
+
{"version":3,"file":"idl.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/idl.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,2BAA2B;YACjC,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN;wBACE,IAAI,EAA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AM,EAAE,CAAC,KAAK,CAAC;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
@@ -24,8 +24,12 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
24
24
|
const constants_1 = require("./constants");
|
25
25
|
const helpers_1 = require("./helpers");
|
26
26
|
const filters_1 = require("./filters");
|
27
|
-
const
|
28
|
-
|
27
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
28
|
+
const arrayToMap_1 = require("../../utils/misc/arrayToMap");
|
29
|
+
const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
|
30
|
+
prefix: constants_1.cachePrefix,
|
31
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
32
|
+
}, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'marketPubkey'));
|
29
33
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
30
34
|
const connection = (0, clients_1.getClientSolana)();
|
31
35
|
const dasUrl = (0, getSolanaDasEndpoint_1.default)();
|
@@ -40,23 +44,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
40
44
|
acc.bondTradeTransactionState.active);
|
41
45
|
if (accounts.length === 0)
|
42
46
|
return [];
|
43
|
-
const [tokenPrices, fbondTokenMints, bondOffers] = yield Promise.all([
|
47
|
+
const [tokenPrices, fbondTokenMints, bondOffers, collections] = yield Promise.all([
|
44
48
|
cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
|
45
49
|
(0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.fbondTokenMint))),
|
46
50
|
(0, solana_1.getAutoParsedMultipleAccountsInfo)(connection, constants_1.banxIdlItem, accounts.map((acc) => new web3_js_1.PublicKey(acc.bondOffer))),
|
51
|
+
collectionsMemo.getItem(cache),
|
47
52
|
]);
|
48
|
-
if (
|
49
|
-
|
50
|
-
prefix: constants_1.cachePrefix,
|
51
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
52
|
-
});
|
53
|
-
if (collectionsArr) {
|
54
|
-
collectionsArr.forEach((cc) => {
|
55
|
-
collections.set(cc.marketPubkey, cc);
|
56
|
-
});
|
57
|
-
}
|
58
|
-
collectionLastUpdate = Date.now();
|
59
|
-
}
|
53
|
+
if (!collections)
|
54
|
+
return [];
|
60
55
|
const solTokenPrice = tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
61
56
|
if (!solTokenPrice)
|
62
57
|
return [];
|
@@ -77,14 +72,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
77
72
|
accounts.forEach((acc) => {
|
78
73
|
const fbondTokenMint = fbondTokenMintsMap.get(acc.fbondTokenMint);
|
79
74
|
const bondOffer = bondOffersMap.get(acc.bondOffer);
|
80
|
-
if (!fbondTokenMint
|
75
|
+
if (!fbondTokenMint)
|
81
76
|
return;
|
82
77
|
if (!fbondTokenMint.fraktBondState.perpetualActive &&
|
83
78
|
!fbondTokenMint.fraktBondState.active)
|
84
79
|
return;
|
85
|
-
const collection =
|
86
|
-
|
87
|
-
|
80
|
+
const collection = bondOffer && bondOffer.hadoMarket
|
81
|
+
? collections.get(bondOffer.hadoMarket)
|
82
|
+
: undefined;
|
88
83
|
const tokenPrice = acc.lendingToken.usdc
|
89
84
|
? tokenPrices.get(solana_1.usdcSolanaMint)
|
90
85
|
: tokenPrices.get(portfolio_core_1.solanaNativeAddress);
|
@@ -128,17 +123,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
128
123
|
.toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
|
129
124
|
}
|
130
125
|
if (suppliedAssets.length > 0) {
|
131
|
-
const { borrowedValue, suppliedValue,
|
126
|
+
const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
|
132
127
|
suppliedAssets,
|
133
128
|
borrowedAssets,
|
134
129
|
rewardAssets: [],
|
130
|
+
lender: acc.user === owner.toString(),
|
135
131
|
});
|
136
132
|
elements.push({
|
137
133
|
networkId: portfolio_core_1.NetworkId.solana,
|
138
134
|
label: 'Lending',
|
139
135
|
platformId: constants_1.platformId,
|
140
136
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
141
|
-
value
|
137
|
+
value,
|
142
138
|
name,
|
143
139
|
data: {
|
144
140
|
borrowedAssets,
|
@@ -149,8 +145,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
149
145
|
suppliedYields: [],
|
150
146
|
rewardAssets: [],
|
151
147
|
rewardValue,
|
152
|
-
healthRatio,
|
153
|
-
value
|
148
|
+
healthRatio: null,
|
149
|
+
value,
|
154
150
|
},
|
155
151
|
});
|
156
152
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,iDAAsD;AACtD,oGAA4E;AAC5E,+CAK4B;AAC5B,8EAAgF;AAChF,wGAAqG;AACrG,qGAA6E;AAC7E,
|
1
|
+
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,iDAAsD;AACtD,oGAA4E;AAC5E,+CAK4B;AAC5B,8EAAgF;AAChF,wGAAqG;AACrG,qGAA6E;AAC7E,2CAKqB;AAOrB,uCAAwE;AACxE,uCAAuD;AACvD,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IAC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V,sBAAU;gBACV,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,KAAK;gBACL,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW,EAAE,IAAI;oBACjB,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -18,8 +18,12 @@ const clients_1 = require("../../utils/clients");
|
|
18
18
|
const solana_1 = require("../../utils/solana");
|
19
19
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
20
|
const constants_1 = require("./constants");
|
21
|
-
const
|
22
|
-
|
21
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
22
|
+
const arrayToMap_1 = require("../../utils/misc/arrayToMap");
|
23
|
+
const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
|
24
|
+
prefix: constants_1.cachePrefix,
|
25
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
26
|
+
}, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'marketPubkey'));
|
23
27
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
28
|
const connection = (0, clients_1.getClientSolana)();
|
25
29
|
const accounts = (yield (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.banxIdlItem, [
|
@@ -35,19 +39,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
35
39
|
])).filter((acc) => acc.buyOrdersQuantity !== '0');
|
36
40
|
if (accounts.length === 0)
|
37
41
|
return [];
|
38
|
-
const tokenPrices = yield
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
43
|
-
});
|
44
|
-
if (collectionsArr) {
|
45
|
-
collectionsArr.forEach((cc) => {
|
46
|
-
collections.set(cc.marketPubkey, cc);
|
47
|
-
});
|
48
|
-
}
|
49
|
-
collectionLastUpdate = Date.now();
|
50
|
-
}
|
42
|
+
const [tokenPrices, collections] = yield Promise.all([
|
43
|
+
cache.getTokenPricesAsMap([solana_1.usdcSolanaMint, portfolio_core_1.solanaNativeAddress], portfolio_core_1.NetworkId.solana),
|
44
|
+
collectionsMemo.getItem(cache),
|
45
|
+
]);
|
51
46
|
const elements = [];
|
52
47
|
accounts.forEach((acc) => {
|
53
48
|
const collection = collections.get(acc.hadoMarket);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,+
|
1
|
+
{"version":3,"file":"offersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/banx/offersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,+CAG4B;AAC5B,qGAA6E;AAC7E,2CAMqB;AAErB,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,cAAc,CAAC,CAC/C,CAAC;A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AA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,
|
1
|
+
{"version":3,"file":"collectionsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/collectionsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,2CAKqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAe,6BAAiB,EAAE;QACpC,OAAO,EAAE,IAAI;KACd,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,mBAAmB,GAAG,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,+BAAmB,EAAE,GAAG,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
|
@@ -8,5 +8,4 @@ export declare const cachePrefix = "citrus";
|
|
8
8
|
export declare const collectionsApiUrl = "https://citrus.famousfoxes.com/citrus/allCollections";
|
9
9
|
export declare const citrusProgram: PublicKey;
|
10
10
|
export declare const loanDataSize = 464;
|
11
|
-
export declare const collectionRefreshInterval = 3600000;
|
12
11
|
export declare const citrusIdlItem: IdlItem;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.citrusIdlItem = exports.
|
3
|
+
exports.citrusIdlItem = exports.loanDataSize = exports.citrusProgram = exports.collectionsApiUrl = exports.cachePrefix = exports.collectionsCacheKey = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const idl_1 = require("./idl");
|
6
6
|
exports.platformId = 'citrus';
|
@@ -17,7 +17,6 @@ exports.cachePrefix = `${exports.platformId}`;
|
|
17
17
|
exports.collectionsApiUrl = 'https://citrus.famousfoxes.com/citrus/allCollections';
|
18
18
|
exports.citrusProgram = new web3_js_1.PublicKey('JCFRaPv7852ESRwJJGRy2mysUMydXZgVVhrMLmExvmVp');
|
19
19
|
exports.loanDataSize = 464;
|
20
|
-
exports.collectionRefreshInterval = 3600000;
|
21
20
|
exports.citrusIdlItem = {
|
22
21
|
programId: exports.citrusProgram.toString(),
|
23
22
|
idl: idl_1.CitrusIDL,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAC5B,sDAAsD,CAAC;AAE5C,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,mBAAmB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAClD,QAAA,WAAW,GAAG,GAAG,kBAAU,EAAE,CAAC;AAE9B,QAAA,iBAAiB,GAC5B,sDAAsD,CAAC;AAE5C,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,CAAC;AAEnB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,qBAAa,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
@@ -22,8 +22,12 @@ const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
|
|
22
22
|
const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
|
23
23
|
const heliusAssetToAssetCollectible_1 = require("../../utils/solana/das/heliusAssetToAssetCollectible");
|
24
24
|
const filters_1 = require("./filters");
|
25
|
-
const
|
26
|
-
|
25
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
26
|
+
const arrayToMap_1 = require("../../utils/misc/arrayToMap");
|
27
|
+
const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
|
28
|
+
prefix: constants_1.cachePrefix,
|
29
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
30
|
+
}, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'id'));
|
27
31
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
32
|
const connection = (0, clients_1.getClientSolana)();
|
29
33
|
const dasUrl = (0, getSolanaDasEndpoint_1.default)();
|
@@ -36,26 +40,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
36
40
|
);
|
37
41
|
if (accounts.length === 0)
|
38
42
|
return [];
|
39
|
-
const [solTokenPrice, heliusAssets] = yield Promise.all([
|
43
|
+
const [solTokenPrice, heliusAssets, collections] = yield Promise.all([
|
40
44
|
cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana),
|
41
45
|
(0, getAssetBatchDas_1.getAssetBatchDasAsMap)(dasUrl, accounts
|
42
46
|
.map((acc) => acc.mint)
|
43
47
|
.filter((mint) => mint && mint !== '11111111111111111111111111111111')),
|
48
|
+
collectionsMemo.getItem(cache),
|
44
49
|
]);
|
45
|
-
if (!solTokenPrice)
|
50
|
+
if (!solTokenPrice || !collections)
|
46
51
|
return [];
|
47
|
-
if (collectionLastUpdate + constants_1.collectionRefreshInterval < Date.now()) {
|
48
|
-
const collectionsArr = yield cache.getItem(constants_1.collectionsCacheKey, {
|
49
|
-
prefix: constants_1.cachePrefix,
|
50
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
51
|
-
});
|
52
|
-
if (collectionsArr) {
|
53
|
-
collectionsArr.forEach((cc) => {
|
54
|
-
collections.set(cc.id, cc);
|
55
|
-
});
|
56
|
-
}
|
57
|
-
collectionLastUpdate = Date.now();
|
58
|
-
}
|
59
52
|
const elements = [];
|
60
53
|
accounts.forEach((acc) => {
|
61
54
|
const collection = collections.get(acc.collectionConfig);
|
@@ -115,17 +108,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
115
108
|
}
|
116
109
|
}
|
117
110
|
if (suppliedAssets.length > 0) {
|
118
|
-
const { borrowedValue, suppliedValue,
|
111
|
+
const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
|
119
112
|
suppliedAssets,
|
120
113
|
borrowedAssets,
|
121
114
|
rewardAssets: [],
|
115
|
+
lender: acc.lender === owner.toString(),
|
122
116
|
});
|
123
117
|
elements.push({
|
124
118
|
networkId: portfolio_core_1.NetworkId.solana,
|
125
119
|
label: 'Lending',
|
126
120
|
platformId: constants_1.platformId,
|
127
121
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
128
|
-
value
|
122
|
+
value,
|
129
123
|
name,
|
130
124
|
data: {
|
131
125
|
borrowedAssets,
|
@@ -136,8 +130,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
136
130
|
suppliedYields: [],
|
137
131
|
rewardAssets: [],
|
138
132
|
rewardValue,
|
139
|
-
healthRatio,
|
140
|
-
value
|
133
|
+
healthRatio: null,
|
134
|
+
value,
|
141
135
|
expireOn: acc.status.active || acc.status.onSale
|
142
136
|
? Number(acc.startTime) + Number(acc.loanTerms.duration)
|
143
137
|
: undefined,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,
|
1
|
+
{"version":3,"file":"loansFet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IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -5,6 +5,7 @@ export declare const platform: Platform;
|
|
5
5
|
export declare const perpsProgramId: PublicKey;
|
6
6
|
export declare const valueAverageProgramId: PublicKey;
|
7
7
|
export declare const limitProgramId: PublicKey;
|
8
|
+
export declare const limitV2ProgramId: PublicKey;
|
8
9
|
export declare const dcaProgramId: PublicKey;
|
9
10
|
export declare const jlpPool: PublicKey;
|
10
11
|
export declare const jlpToken: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.perpPoolsKey = exports.custodiesKey = exports.jlpToken = exports.jlpPool = exports.dcaProgramId = exports.limitProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.perpPoolsKey = exports.custodiesKey = exports.jlpToken = exports.jlpPool = exports.dcaProgramId = exports.limitV2ProgramId = exports.limitProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'jupiter-exchange';
|
6
6
|
exports.platform = {
|
@@ -14,6 +14,7 @@ exports.platform = {
|
|
14
14
|
exports.perpsProgramId = new web3_js_1.PublicKey('PERPHjGBqRHArX4DySjwM6UJHiR3sWAatqfdBS2qQJu');
|
15
15
|
exports.valueAverageProgramId = new web3_js_1.PublicKey('JVAp1DSLnM4Qh8qM1QasQ8x56ccb9S3DhbyEckybTF9');
|
16
16
|
exports.limitProgramId = new web3_js_1.PublicKey('jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu');
|
17
|
+
exports.limitV2ProgramId = new web3_js_1.PublicKey('j1o2qRpjcyUwEvwtcfhEQefh773ZgjxcVRry7LDqg5X');
|
17
18
|
exports.dcaProgramId = new web3_js_1.PublicKey('DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M');
|
18
19
|
exports.jlpPool = new web3_js_1.PublicKey('5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq');
|
19
20
|
exports.jlpToken = new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,kBAAkB,CAAC;AAChC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,WAAW,CAAC;AAC3B,QAAA,YAAY,GAAG,WAAW,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,kBAAkB,CAAC;AAChC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,WAAW,CAAC;AAC3B,QAAA,YAAY,GAAG,WAAW,CAAC"}
|
@@ -21,15 +21,18 @@ const structs_1 = require("./structs");
|
|
21
21
|
const filters_1 = require("./filters");
|
22
22
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
23
|
const client = (0, clients_1.getClientSolana)();
|
24
|
-
const
|
25
|
-
|
24
|
+
const allAccounts = (yield Promise.all([
|
25
|
+
(0, solana_1.getParsedProgramAccounts)(client, structs_1.limitOrderStruct, constants_1.limitProgramId, (0, filters_1.limitFilters)(owner)),
|
26
|
+
(0, solana_1.getParsedProgramAccounts)(client, structs_1.limitOrderV2Struct, constants_1.limitV2ProgramId, (0, filters_1.limitFilters)(owner)),
|
27
|
+
])).flat();
|
28
|
+
if (allAccounts.length === 0)
|
26
29
|
return [];
|
27
30
|
const mints = new Set();
|
28
|
-
|
31
|
+
allAccounts.forEach((account) => mints.add(account.inputMint.toString()));
|
29
32
|
const tokenPriceById = yield cache.getTokenPricesAsMap(Array.from(mints), portfolio_core_1.NetworkId.solana);
|
30
33
|
const rawAmountByMint = new Map();
|
31
|
-
for (let i = 0; i <
|
32
|
-
const limOrder =
|
34
|
+
for (let i = 0; i < allAccounts.length; i += 1) {
|
35
|
+
const limOrder = allAccounts[i];
|
33
36
|
const mint = limOrder.inputMint.toString();
|
34
37
|
const amountLeftInOrder = limOrder.makingAmount;
|
35
38
|
const totalAmount = rawAmountByMint.get(mint);
|
@@ -56,7 +59,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
56
59
|
platformId: constants_1.platformId,
|
57
60
|
value,
|
58
61
|
label: 'Deposit',
|
59
|
-
name: `Limit Orders (${
|
62
|
+
name: `Limit Orders (${allAccounts.length})`,
|
60
63
|
data: { assets },
|
61
64
|
};
|
62
65
|
return [element];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,
|
1
|
+
{"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,2CAA2E;AAC3E,uCAAiE;AACjE,uCAAyC;AAEzC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAA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|
|
21
21
|
referral: PublicKey;
|
22
22
|
};
|
23
23
|
export declare const limitOrderStruct: BeetStruct<LimitOrder, Partial<LimitOrder>>;
|
24
|
+
export type LimitOrderV2 = {
|
25
|
+
buffer: Buffer;
|
26
|
+
maker: PublicKey;
|
27
|
+
inputMint: PublicKey;
|
28
|
+
outputMint: PublicKey;
|
29
|
+
inputTokenProgram: PublicKey;
|
30
|
+
outputTokenProgram: PublicKey;
|
31
|
+
uniqueId: boolean;
|
32
|
+
oriMakingAmount: BigNumber;
|
33
|
+
oriTakingAmount: BigNumber;
|
34
|
+
makingAmount: BigNumber;
|
35
|
+
takingAmount: BigNumber;
|
36
|
+
borrowMakingAmount: BigNumber;
|
37
|
+
expiredAt: BigNumber;
|
38
|
+
feeBps: number;
|
39
|
+
feeAccount: PublicKey;
|
40
|
+
createdAt: BigNumber;
|
41
|
+
updatedAt: BigNumber;
|
42
|
+
bump: number;
|
43
|
+
};
|
44
|
+
export declare const limitOrderV2Struct: BeetStruct<LimitOrderV2, Partial<LimitOrderV2>>;
|
24
45
|
export type DCA = {
|
25
46
|
buffer: Buffer;
|
26
47
|
user: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.positionStruct = exports.Side = exports.custodyStruct = exports.fundingRateStateStruct = exports.assetsStruct = exports.permissionsStruct = exports.pricingParamsStruct = exports.oracleParamsStruct = exports.OracleType = exports.perpetualPoolStruct = exports.feesStruct = exports.poolAprStruct = exports.limitStruct = exports.valueAverageStruct = exports.dcaStruct = exports.limitOrderStruct = void 0;
|
3
|
+
exports.positionStruct = exports.Side = exports.custodyStruct = exports.fundingRateStateStruct = exports.assetsStruct = exports.permissionsStruct = exports.pricingParamsStruct = exports.oracleParamsStruct = exports.OracleType = exports.perpetualPoolStruct = exports.feesStruct = exports.poolAprStruct = exports.limitStruct = exports.valueAverageStruct = exports.dcaStruct = exports.limitOrderV2Struct = exports.limitOrderStruct = void 0;
|
4
4
|
const beet_1 = require("@metaplex-foundation/beet");
|
5
5
|
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
6
|
const solana_1 = require("../../../utils/solana");
|
@@ -22,6 +22,26 @@ exports.limitOrderStruct = new beet_1.BeetStruct([
|
|
22
22
|
['base', beet_solana_1.publicKey],
|
23
23
|
['referral', beet_solana_1.publicKey],
|
24
24
|
], (args) => args);
|
25
|
+
exports.limitOrderV2Struct = new beet_1.BeetStruct([
|
26
|
+
['buffer', (0, solana_1.blob)(8)],
|
27
|
+
['maker', beet_solana_1.publicKey],
|
28
|
+
['inputMint', beet_solana_1.publicKey],
|
29
|
+
['outputMint', beet_solana_1.publicKey],
|
30
|
+
['inputTokenProgram', beet_solana_1.publicKey],
|
31
|
+
['outputTokenProgram', beet_solana_1.publicKey],
|
32
|
+
['uniqueId', solana_1.u64],
|
33
|
+
['oriMakingAmount', solana_1.u64],
|
34
|
+
['oriTakingAmount', solana_1.u64],
|
35
|
+
['makingAmount', solana_1.u64],
|
36
|
+
['takingAmount', solana_1.u64],
|
37
|
+
['borrowMakingAmount', solana_1.u64],
|
38
|
+
['expiredAt', solana_1.i64],
|
39
|
+
['feeBps', beet_1.u16],
|
40
|
+
['feeAccount', beet_solana_1.publicKey],
|
41
|
+
['createdAt', solana_1.i64],
|
42
|
+
['updatedAt', solana_1.i64],
|
43
|
+
['bump', beet_1.u8],
|
44
|
+
], (args) => args);
|
25
45
|
exports.dcaStruct = new beet_1.BeetStruct([
|
26
46
|
['buffer', (0, solana_1.blob)(8)],
|
27
47
|
['user', beet_solana_1.publicKey],
|