@sonarwatch/portfolio-plugins 0.12.85 → 0.12.87

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.12.87](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.86...plugins-0.12.87) (2024-07-24)
6
+
7
+
8
+
9
+ ## [0.12.86](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.85...plugins-0.12.86) (2024-07-23)
10
+
11
+
12
+
5
13
  ## [0.12.85](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.84...plugins-0.12.85) (2024-07-22)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.85",
3
+ "version": "0.12.87",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -166,16 +166,16 @@ function internalRunAirdropFetcher(owner, fetcher, cache, useCache = true) {
166
166
  }
167
167
  const airdrop = yield fetcher.executor(owner, cache);
168
168
  // TTL is 120000 ms (2min)
169
- // If ineligible or claimed 3600000 ms (1h)
170
- // If not claimable yet 3600000 ms (1h) or until claim start
169
+ // If ineligible or claimed 240000 ms (4min)
170
+ // If not claimable yet 240000 ms (4min) or until claim start
171
171
  let ttl = 120000;
172
172
  const now = Date.now();
173
173
  if (airdrop.items.every((i) => !(0, portfolio_core_1.isEligibleAmount)(i.amount)))
174
- ttl = 3600000;
174
+ ttl = 240000;
175
175
  else if (airdrop.items.every((i) => i.isClaimed === true))
176
- ttl = 3600000;
176
+ ttl = 240000;
177
177
  else if (airdrop.claimStart && airdrop.claimStart > now) {
178
- ttl = Math.min(3600000, airdrop.claimStart - now);
178
+ ttl = Math.min(240000, airdrop.claimStart - now);
179
179
  }
180
180
  yield cache.setItem(`${fetcher.id}_${owner}`, airdrop, {
181
181
  ttl,
@@ -1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B,IAAI,EAAE;wBACJ,MAAM;qBACP;oBACD,UAAU;oBACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;oBACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;oBACjD,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,SAAS;iBAChC;aACF,CAAC;QACJ,CAAC,CAAA;KACF,CAAC;AACJ,CAAC;AApED,0DAoEC"}
@@ -29,16 +29,15 @@ const getPerpMarket_1 = require("./perpHelpers/getPerpMarket");
29
29
  const getMintFromOracle_1 = require("./perpHelpers/getMintFromOracle");
30
30
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
31
31
  const client = (0, clients_1.getClientSolana)();
32
+ // Insurance
32
33
  const spotMarketsItems = yield cache.getItem(constants_1.keySpotMarkets, {
33
34
  prefix: constants_1.platformId,
34
35
  networkId: portfolio_core_1.NetworkId.solana,
35
36
  });
36
- if (!spotMarketsItems || spotMarketsItems.length === 0)
37
- return [];
38
37
  const spotMarketByIndex = new Map();
39
38
  const tokensMints = [];
40
39
  const insuranceFundStakeAccountsAddresses = [];
41
- for (const spotMarketItem of spotMarketsItems) {
40
+ for (const spotMarketItem of spotMarketsItems || []) {
42
41
  insuranceFundStakeAccountsAddresses[spotMarketItem.marketIndex] =
43
42
  (0, helpers_1.getUserInsuranceFundStakeAccountPublicKey)(constants_1.driftProgram, new web3_js_1.PublicKey(owner), spotMarketItem.marketIndex);
44
43
  spotMarketByIndex.set(spotMarketItem.marketIndex, spotMarketItem);
@@ -49,34 +48,33 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
49
48
  tokensPrices.forEach((tP) => (tP ? tokenPriceById.set(tP.address, tP) : []));
50
49
  const insuranceAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, struct_1.insuranceFundStakeStruct, insuranceFundStakeAccountsAddresses);
51
50
  const elements = [];
52
- if (insuranceAccounts) {
53
- const assets = [];
54
- insuranceAccounts.forEach((account, i) => {
55
- var _a;
56
- if (!account || account.costBasis.isLessThan(0))
57
- return;
58
- const mint = (_a = spotMarketByIndex.get(i)) === null || _a === void 0 ? void 0 : _a.mint.toString();
59
- if (!mint)
60
- return;
61
- const tokenPrice = tokenPriceById.get(mint);
62
- if (!tokenPrice)
63
- return;
64
- assets.push((0, tokenPriceToAssetToken_1.default)(mint, account.costBasis.dividedBy(Math.pow(10, tokenPrice.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
51
+ const insuranceAssets = [];
52
+ insuranceAccounts.forEach((account, i) => {
53
+ var _a;
54
+ if (!account || account.costBasis.isLessThan(0))
55
+ return;
56
+ const mint = (_a = spotMarketByIndex.get(i)) === null || _a === void 0 ? void 0 : _a.mint.toString();
57
+ if (!mint)
58
+ return;
59
+ const tokenPrice = tokenPriceById.get(mint);
60
+ if (!tokenPrice)
61
+ return;
62
+ insuranceAssets.push((0, tokenPriceToAssetToken_1.default)(mint, account.costBasis.dividedBy(Math.pow(10, tokenPrice.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice));
63
+ });
64
+ if (insuranceAssets.length > 0) {
65
+ elements.push({
66
+ networkId: portfolio_core_1.NetworkId.solana,
67
+ label: 'Staked',
68
+ name: 'Insurance Fund',
69
+ platformId: constants_1.platformId,
70
+ type: portfolio_core_1.PortfolioElementType.multiple,
71
+ value: (0, portfolio_core_1.getUsdValueSum)(insuranceAssets.map((a) => a.value)),
72
+ data: {
73
+ assets: insuranceAssets,
74
+ },
65
75
  });
66
- if (assets.length !== 0) {
67
- elements.push({
68
- networkId: portfolio_core_1.NetworkId.solana,
69
- label: 'Staked',
70
- name: 'Insurance Fund',
71
- platformId: constants_1.platformId,
72
- type: portfolio_core_1.PortfolioElementType.multiple,
73
- value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
74
- data: {
75
- assets,
76
- },
77
- });
78
- }
79
76
  }
77
+ // Perps part
80
78
  let id = 0;
81
79
  const userAccounts = [];
82
80
  let parsedAccount;
@@ -86,7 +84,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
86
84
  userAccounts.push(...parsedAccount);
87
85
  id += 10;
88
86
  } while (parsedAccount[parsedAccount.length]);
89
- if (!userAccounts)
87
+ if (!userAccounts || userAccounts.length === 0)
90
88
  return elements;
91
89
  const perpMarketIndexesArr = yield cache.getItem(constants_1.perpMarketsIndexesKey, {
92
90
  prefix: constants_1.platformId,
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAaoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAKqB;AACrB,qCAKkB;AAClB,uCAMmB;AAEnB,+CAI4B;AAC5B,iDAAsD;AACtD,qGAA6E;AAC7E,qDAGgC;AAChC,uDAAqE;AACrE,+CAAwD;AACxD,iEAA8D;AAC9D,+DAA4D;AAC5D,uEAAoE;AAEpE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAC1C,0BAAc,EACd;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IACF,IAAI,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAElE,MAAM,iBAAiB,GAAoC,IAAI,GAAG,EAAE,CAAC;IACrE,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,MAAM,mCAAmC,GAAgB,EAAE,CAAC;IAC5D,KAAK,MAAM,cAAc,IAAI,gBAAgB,EAAE,CAAC;QAC9C,m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BACT,MAAM,EAAE,eAAe;oBACvB,KAAK,EAAE,cAAc;iBACtB;gBACD,KAAK;aACN;YACD,IAAI,EAAE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAaoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAKqB;AACrB,qCAKkB;AAClB,uCAMmB;AAEnB,+CAI4B;AAC5B,iDAAsD;AACtD,qGAA6E;AAC7E,qDAGgC;AAChC,uDAAqE;AACrE,+CAAwD;AACxD,iEAA8D;AAC9D,+DAA4D;AAC5D,uEAAoE;AAEpE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,YAAY;IAEZ,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,OAAO,CAC1C,0BAAc,EACd;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IACF,MAAM,iBAAiB,GAAoC,IAAI,GAAG,EAAE,CAAC;IACrE,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,MAAM,mCAAmC,GAAgB,EAAE,CAAC;IAC5D,KAAK,MAAM,cAAc,IAAI,gBAAgB,IAAI,EAAE,EAAE,CAAC;QACpD,mCAAmC,CAAC,cAAc,CAAC,WAAW,CAAC;YAC7D,IAAA,mDAAyC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tB;gBACD,KAAK;aACN;YACD,IAAI,EAAE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -42,7 +42,7 @@ function fetchAirdropInfo(owner) {
42
42
  .dividedBy(driftFactor)
43
43
  .toNumber(),
44
44
  merkle: res.data.merkle_tree,
45
- isClaimed: res.data.unvested_amount === 0,
45
+ isClaimed: res.data.claimed_amount !== 0,
46
46
  };
47
47
  });
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"helpersAirdrop.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/helpersAirdrop.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAC7C,+DAAuD;AACvD,2CAKqB;AACrB,yDAI8B;AAE9B,MAAM,WAAW,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC;AAmBvD,SAAsB,gBAAgB,CAAC,KAAa;;QAClD,MAAM,GAAG,GAAmC,MAAM,eAAK,CAAC,GAAG,CACzD,sBAAU,GAAG,KAAK,EAClB;YACE,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;gBAClC,OAAO,EAAE,2BAA2B;aACrC;YACD,OAAO,EAAE,IAAI;YACb,cAAc,CAAC,MAAM;gBACnB,OAAO,MAAM,KAAK,GAAG,IAAI,MAAM,KAAK,GAAG,CAAC;YAC1C,CAAC;SACF,CACF,CAAC;QAEF,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACnB,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;QAC5D,CAAC;QAED,MAAM,eAAe,GACnB,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI;YACjC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU;YACrB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QAE5B,OAAO;YACL,MAAM,EAAE,IAAI,sBAAS,CAAC,eAAe,IAAI,CAAC,CAAC;iBACxC,SAAS,CAAC,WAAW,CAAC;iBACtB,QAAQ,EAAE;YACb,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,WAAW;YAC5B,SAAS,EAAE,GAAG,CAAC,IAAI,CAAC,eAAe,KAAK,CAAC;SAC1C,CAAC;IACJ,CAAC;CAAA;AA/BD,4CA+BC;AAED,MAAM,oBAAoB,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC3E,MAAM,WAAW,GAAG,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAE1C,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM;gBACN,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,qBAAS;gBAClB,SAAS;aACV;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,oBAAoB;CAC/B,CAAC"}
1
+ {"version":3,"file":"helpersAirdrop.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/helpersAirdrop.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAC7C,+DAAuD;AACvD,2CAKqB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