@sonarwatch/portfolio-plugins 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +2 -2
  3. package/src/index.js +4 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/debridge/airdropFetcher.js +6 -0
  6. package/src/plugins/debridge/airdropFetcher.js.map +1 -1
  7. package/src/plugins/debridge/constants.d.ts +3 -1
  8. package/src/plugins/debridge/constants.js +4 -2
  9. package/src/plugins/debridge/constants.js.map +1 -1
  10. package/src/plugins/debridge/dlmmVaultsFetcher.d.ts +3 -0
  11. package/src/plugins/debridge/dlmmVaultsFetcher.js +158 -0
  12. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -0
  13. package/src/plugins/debridge/dlmmVaultsJob.d.ts +3 -0
  14. package/src/plugins/debridge/dlmmVaultsJob.js +42 -0
  15. package/src/plugins/debridge/dlmmVaultsJob.js.map +1 -0
  16. package/src/plugins/debridge/index.js +7 -2
  17. package/src/plugins/debridge/index.js.map +1 -1
  18. package/src/plugins/deepbook/airdropFetcher.js +36 -14
  19. package/src/plugins/deepbook/airdropFetcher.js.map +1 -1
  20. package/src/plugins/jupiter/launchpad/constants.js +1 -1
  21. package/src/plugins/kamino/{s2AirdropFetcher.js → s2AirdropFetcher.old.js} +1 -1
  22. package/src/plugins/kamino/s2AirdropFetcher.old.js.map +1 -0
  23. package/src/plugins/native-stake/solana/constants.js +0 -1
  24. package/src/plugins/native-stake/solana/constants.js.map +1 -1
  25. package/src/plugins/native-stake/solana/solanaFetcher.js +11 -7
  26. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  27. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  28. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  29. package/src/plugins/scallop/cnyAirdropFetcher.js +1 -1
  30. package/src/plugins/scallop/cnyAirdropFetcher.js.map +1 -1
  31. package/src/plugins/scallop/constants.d.ts +9 -16
  32. package/src/plugins/scallop/constants.js +28 -44
  33. package/src/plugins/scallop/constants.js.map +1 -1
  34. package/src/plugins/scallop/index.js +7 -1
  35. package/src/plugins/scallop/index.js.map +1 -1
  36. package/src/plugins/scallop/lendingsFetcher.js +149 -79
  37. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  38. package/src/plugins/scallop/marketJob.js.map +1 -1
  39. package/src/plugins/scallop/obligationsFetcher.js +2 -2
  40. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  41. package/src/plugins/scallop/poolsJob.js +14 -5
  42. package/src/plugins/scallop/poolsJob.js.map +1 -1
  43. package/src/plugins/scallop/sCoinJob.js +2 -1
  44. package/src/plugins/scallop/sCoinJob.js.map +1 -1
  45. package/src/plugins/scallop/types/address.d.ts +1 -0
  46. package/src/plugins/scallop/types/basic.d.ts +4 -0
  47. package/src/plugins/scallop/types/coin.d.ts +18 -8
  48. package/src/plugins/scallop/types/coin.js +50 -2
  49. package/src/plugins/scallop/types/coin.js.map +1 -1
  50. package/src/plugins/scallop/types/data.d.ts +7 -5
  51. package/src/plugins/scallop/types/index.d.ts +2 -0
  52. package/src/plugins/scallop/types/index.js +2 -0
  53. package/src/plugins/scallop/types/index.js.map +1 -1
  54. package/src/plugins/scallop/types/spool.d.ts +10 -0
  55. package/src/plugins/scallop/types/spool.js +3 -0
  56. package/src/plugins/scallop/types/spool.js.map +1 -0
  57. package/src/plugins/scallop/types/sui.d.ts +2 -0
  58. package/src/plugins/scallop/types/sui.js +3 -0
  59. package/src/plugins/scallop/types/sui.js.map +1 -0
  60. package/src/plugins/scallop/types/vesca.d.ts +9 -12
  61. package/src/plugins/scallop/veScaFetcher.js +1 -1
  62. package/src/plugins/scallop/veScaFetcher.js.map +1 -1
  63. package/src/plugins/vaultka/constants.d.ts +8 -0
  64. package/src/plugins/vaultka/constants.js +31 -0
  65. package/src/plugins/vaultka/constants.js.map +1 -0
  66. package/src/plugins/vaultka/index.d.ts +6 -0
  67. package/src/plugins/vaultka/index.js +15 -0
  68. package/src/plugins/vaultka/index.js.map +1 -0
  69. package/src/plugins/vaultka/lendingFetcher.d.ts +3 -0
  70. package/src/plugins/vaultka/lendingFetcher.js +58 -0
  71. package/src/plugins/vaultka/lendingFetcher.js.map +1 -0
  72. package/src/plugins/vaultka/lendingJob.d.ts +3 -0
  73. package/src/plugins/vaultka/lendingJob.js +32 -0
  74. package/src/plugins/vaultka/lendingJob.js.map +1 -0
  75. package/src/plugins/vaultka/strategyFetcher.d.ts +3 -0
  76. package/src/plugins/vaultka/strategyFetcher.js +63 -0
  77. package/src/plugins/vaultka/strategyFetcher.js.map +1 -0
  78. package/src/plugins/vaultka/strategyJob.d.ts +3 -0
  79. package/src/plugins/vaultka/strategyJob.js +32 -0
  80. package/src/plugins/vaultka/strategyJob.js.map +1 -0
  81. package/src/plugins/vaultka/structs.d.ts +59 -0
  82. package/src/plugins/vaultka/structs.js +58 -0
  83. package/src/plugins/vaultka/structs.js.map +1 -0
  84. package/src/utils/sui/types.d.ts +4 -0
  85. package/src/plugins/kamino/s2AirdropFetcher.js.map +0 -1
  86. /package/src/plugins/kamino/{s2AirdropFetcher.d.ts → s2AirdropFetcher.old.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.1...plugins-0.14.2) (2024-10-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * convert to lowercase ([38a34cd](https://github.com/sonarwatch/portfolio/commit/38a34cdd71b24c00a77e08b7d042bed255cc8a1e))
11
+ * minor ([20d39a4](https://github.com/sonarwatch/portfolio/commit/20d39a48b0e6806269a334f6c366668b4a0043d0))
12
+ * use underlying asset type for new sCoin ([e5f39b6](https://github.com/sonarwatch/portfolio/commit/e5f39b6a85551df03a8e08fc219315a507fee102))
13
+
14
+
15
+ ### Features
16
+
17
+ * add new types ([9e3c962](https://github.com/sonarwatch/portfolio/commit/9e3c96279015ef232f9503b4a0b7d8e60f21bd63))
18
+ * add support for native usdc ([7350aaa](https://github.com/sonarwatch/portfolio/commit/7350aaa72bf205c9013c2e602dedc5061d6b029e))
19
+
20
+
21
+
5
22
  ## [0.14.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.0...plugins-0.14.1) (2024-10-14)
6
23
 
7
24
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
7
- "@sonarwatch/portfolio-core": "^0.13.0"
7
+ "@sonarwatch/portfolio-core": "^0.14.0"
8
8
  },
9
9
  "dependencies": {
10
10
  "@aave/contract-helpers": "^1.28.2",
package/src/index.js CHANGED
@@ -147,6 +147,7 @@ const adrena_1 = require("./plugins/adrena");
147
147
  const joule_1 = require("./plugins/joule");
148
148
  const meso_1 = require("./plugins/meso");
149
149
  const loopscale_1 = require("./plugins/loopscale");
150
+ const vaultka_1 = require("./plugins/vaultka");
150
151
  var constants_1 = require("./plugins/tokens/constants");
151
152
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
152
153
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -287,6 +288,7 @@ exports.platforms = [
287
288
  ...joule_1.platforms,
288
289
  ...meso_1.platforms,
289
290
  ...loopscale_1.platforms,
291
+ ...vaultka_1.platforms,
290
292
  ];
291
293
  // JOBS //
292
294
  exports.jobs = [
@@ -411,6 +413,7 @@ exports.jobs = [
411
413
  ...joule_1.jobs,
412
414
  ...meso_1.jobs,
413
415
  ...loopscale_1.jobs,
416
+ ...vaultka_1.jobs,
414
417
  ];
415
418
  // FETCHERS //
416
419
  exports.fetchers = [
@@ -536,6 +539,7 @@ exports.fetchers = [
536
539
  ...joule_1.fetchers,
537
540
  ...meso_1.fetchers,
538
541
  ...loopscale_1.fetchers,
542
+ ...vaultka_1.fetchers,
539
543
  ];
540
544
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
541
545
  exports.airdropFetchers = [
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAK0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,yCAIwB;AACxB,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB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B,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;CAC3B,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAK0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,yCAIwB;AACxB,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB,yCAIwB;AACxB,iFAI4C;AAC5C,2CAIyB;A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B,sBAAmB;IACnB,GAAG,0BAAuB;CAC3B,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -19,6 +19,10 @@ const axios_1 = __importDefault(require("axios"));
19
19
  const AirdropFetcher_1 = require("../../AirdropFetcher");
20
20
  const constants_1 = require("./constants");
21
21
  const dbrFactor = new bignumber_js_1.default(Math.pow(10, constants_1.dbrDecimals));
22
+ const realDistributions = [
23
+ 'Claim 50% vested with bonus in 6 months after TGE',
24
+ 'First distribution',
25
+ ];
22
26
  const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
23
27
  const apiRes = yield axios_1.default.get(constants_1.apiUrl + owner, {
24
28
  timeout: 1000,
@@ -39,6 +43,8 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
39
43
  }
40
44
  const items = [];
41
45
  for (const distribution of apiRes.data.distributions) {
46
+ if (!realDistributions.includes(distribution.title))
47
+ continue;
42
48
  const tokens = new bignumber_js_1.default(distribution.tokens).div(dbrFactor);
43
49
  items.push({
44
50
  amount: tokens.toNumber(),
@@ -1 +1 @@
1
- {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AACrC,kDAA6C;AAC7C,yDAI8B;AAC9B,2CAMqB;AAGrB,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,uBAAW,CAAA,CAAC,CAAC;AAEnD,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,MAAM,GAA+B,MAAM,eAAK,CAAC,GAAG,CAAC,kBAAM,GAAG,KAAK,EAAE;QACzE,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,aAA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AClD,oBAAoB;AACpB,iBAAiB;AACjB,wBAAwB;AACxB,4BAA4B;AAC5B,KAAK"}
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AACrC,kDAA6C;AAC7C,yDAI8B;AAC9B,2CAMqB;AAGrB,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,uBAAW,CAAA,CAAC,CAAC;AACnD,MAAM,iBAAiB,GAAG;IACxB,mDAAmD;IACnD,oBAAoB;CACrB,CAAC;AACF,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,MAAM,GAA+B,MAAM,eAAK,CAAC,GAAG,CAAC,kBAAM,GAAG,KAAK,EAAE;QACzE,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzE,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,+BAAmB;YAC5B,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,mBAAO;oBAChB,QAAQ,EAAE,mBAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAW,CAAC,KAAK;iBAClD;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,MAAM,YAAY,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QACrD,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC;YAAE,SAAS;QAE9D,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAEjE,KAAK,CAAC,IAAI,CAAC;YACT,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE;YACzB,SAAS,EAAE,KAAK;YAChB,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,mBAAO;YAChB,QAAQ,EAAE,mBAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAW,CAAC,KAAK;SAClD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,+BAAmB;QAC5B,KAAK;KACN,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,iBAAiB,GAAmB;IAC/C,EAAE,EAAE,GAAG,+BAAmB,CAAC,EAAE,MAAM;IACnC,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,QAAQ;CACT,CAAC;AAEW,QAAA,oBAAoB,GAAmB;IAClD,EAAE,EAAE,GAAG,+BAAmB,CAAC,EAAE,SAAS;IACtC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AACF,kDAAkD;AAClD,oBAAoB;AACpB,iBAAiB;AACjB,wBAAwB;AACxB,4BAA4B;AAC5B,KAAK"}
@@ -1,4 +1,5 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
2
3
  import { AirdropStatics } from '../../AirdropFetcher';
3
4
  export declare const platformId = "debridge";
4
5
  export declare const platform: Platform;
@@ -11,6 +12,7 @@ export declare const commonStatics: {
11
12
  export declare const firstDistribStatics: AirdropStatics;
12
13
  export declare const secondDistribStatics: AirdropStatics;
13
14
  export declare const staticsByTitle: Map<string, AirdropStatics>;
14
- export declare const dbrMint: undefined;
15
+ export declare const dbrMint = "DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5";
15
16
  export declare const dbrDecimals = 6;
16
17
  export declare const apiUrl = "https://points-api.debridge.foundation/api/TokenDistribution/";
18
+ export declare const dlmmVaultProgramId: PublicKey;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.apiUrl = exports.dbrDecimals = exports.dbrMint = exports.staticsByTitle = exports.secondDistribStatics = exports.firstDistribStatics = exports.commonStatics = exports.platform = exports.platformId = void 0;
3
+ exports.dlmmVaultProgramId = exports.apiUrl = exports.dbrDecimals = exports.dbrMint = exports.staticsByTitle = exports.secondDistribStatics = exports.firstDistribStatics = exports.commonStatics = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
4
5
  exports.platformId = 'debridge';
5
6
  exports.platform = {
6
7
  id: exports.platformId,
@@ -22,7 +23,8 @@ exports.staticsByTitle = new Map([
22
23
  ['First Distribution', exports.firstDistribStatics],
23
24
  ['Second Distribution', exports.secondDistribStatics],
24
25
  ]);
25
- exports.dbrMint = undefined;
26
+ exports.dbrMint = 'DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5';
26
27
  exports.dbrDecimals = 6;
27
28
  exports.apiUrl = 'https://points-api.debridge.foundation/api/TokenDistribution/';
29
+ exports.dlmmVaultProgramId = new web3_js_1.PublicKey('DBrLFG4dco1xNC5Aarbt3KEaKaJ5rBYHwysqZoeqsSFE');
28
30
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AAEW,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,8BAA8B;IACzC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,UAAU;IACvB,KAAK,EAAE,iDAAiD;CACzD,CAAC;AAEW,QAAA,mBAAmB,mCAC3B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,aAAa,IACzB;AAEW,QAAA,oBAAoB,mCAC5B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,aAAa,IACzB;AAEW,QAAA,cAAc,GAAgC,IAAI,GAAG,CAAC;IACjE,CAAC,oBAAoB,EAAE,2BAAmB,CAAC;IAC3C,CAAC,qBAAqB,EAAE,4BAAoB,CAAC;CAC9C,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,WAAW,GAAG,CAAC,CAAC;AAChB,QAAA,MAAM,GACjB,+DAA+D,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AAEW,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,8BAA8B;IACzC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,UAAU;IACvB,KAAK,EAAE,iDAAiD;CACzD,CAAC;AAEW,QAAA,mBAAmB,mCAC3B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,aAAa,IACzB;AAEW,QAAA,oBAAoB,mCAC5B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,aAAa,IACzB;AAEW,QAAA,cAAc,GAAgC,IAAI,GAAG,CAAC;IACjE,CAAC,oBAAoB,EAAE,2BAAmB,CAAC;IAC3C,CAAC,qBAAqB,EAAE,4BAAoB,CAAC;CAC9C,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,8CAA8C,CAAC;AACzD,QAAA,WAAW,GAAG,CAAC,CAAC;AAChB,QAAA,MAAM,GACjB,+DAA+D,CAAC;AAErD,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,8CAA8C,CAC/C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ // DLMM Bootstrapping Pools
3
+ // DLMM Alpha Vault
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
18
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
+ const clients_1 = require("../../utils/clients");
20
+ const constants_1 = require("./constants");
21
+ const solana_1 = require("../../utils/solana");
22
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
23
+ const struct_1 = require("../meteora/struct");
24
+ const constants_2 = require("../meteora/constants");
25
+ const slotTtl = 30000;
26
+ let slot = null;
27
+ let slotUpdate = 0;
28
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
29
+ const client = (0, clients_1.getClientSolana)();
30
+ const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.escrowStruct, constants_1.dlmmVaultProgramId, [
31
+ { dataSize: struct_1.escrowStruct.byteSize },
32
+ {
33
+ memcmp: {
34
+ offset: 40,
35
+ bytes: owner,
36
+ },
37
+ },
38
+ // {
39
+ // memcmp: {
40
+ // offset: 8,
41
+ // bytes: 'CGZvC5MWsu1bc3vRis619ZBEtvuPqoXrtBMeV9RrKFJp',
42
+ // },
43
+ // },
44
+ // {
45
+ // memcmp: {
46
+ // offset: 96,
47
+ // bytes: '1', // refunded === false
48
+ // },
49
+ // },
50
+ ]);
51
+ if (accounts.length === 0)
52
+ return [];
53
+ const vaults = yield cache.getItem(constants_2.dlmmVaultsKey, {
54
+ prefix: constants_1.platformId,
55
+ networkId: portfolio_core_1.NetworkId.solana,
56
+ });
57
+ if (!vaults)
58
+ return [];
59
+ if (!slot || Date.now() - slotTtl > slotUpdate) {
60
+ slot = yield client.getSlot();
61
+ slotUpdate = Date.now();
62
+ }
63
+ if (!slot)
64
+ return [];
65
+ const tokenPrices = yield cache.getTokenPricesAsMap(accounts
66
+ .map((a) => {
67
+ const v = vaults[a.dlmmVault.toString()];
68
+ return [v.baseMint, v.quoteMint];
69
+ })
70
+ .flat(), portfolio_core_1.NetworkId.solana);
71
+ const assets = [];
72
+ accounts.forEach((escrow) => {
73
+ if (!slot)
74
+ return;
75
+ const vault = vaults[escrow.dlmmVault.toString()];
76
+ if (!vault)
77
+ return;
78
+ // Vesting not started yet
79
+ if (slot < Number(vault.startVestingSlot)) {
80
+ const tpQuote = tokenPrices.get(vault.quoteMint);
81
+ if (!tpQuote)
82
+ return;
83
+ assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, new bignumber_js_1.default(escrow.totalDeposit)
84
+ .div(Math.pow(10, tpQuote.decimals))
85
+ .toNumber(), portfolio_core_1.NetworkId.solana, tpQuote, undefined, {}));
86
+ }
87
+ else {
88
+ // Vesting started
89
+ // If not refunded yet
90
+ const filledRatio = new bignumber_js_1.default(vault.totalDeposit)
91
+ .div(vault.maxCap)
92
+ .toNumber();
93
+ if (escrow.refunded === 0 && filledRatio > 1) {
94
+ const tpQuote = tokenPrices.get(vault.quoteMint);
95
+ if (!tpQuote)
96
+ return;
97
+ const amount = new bignumber_js_1.default(escrow.totalDeposit)
98
+ .div(Math.pow(10, tpQuote.decimals))
99
+ .times(1 - 1 / filledRatio)
100
+ .toNumber();
101
+ assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, amount, portfolio_core_1.NetworkId.solana, tpQuote, undefined, {
102
+ isClaimable: true,
103
+ }));
104
+ }
105
+ const tpBase = tokenPrices.get(vault.baseMint);
106
+ if (!tpBase)
107
+ return;
108
+ const shares = new bignumber_js_1.default(escrow.totalDeposit).div(vault.totalDeposit);
109
+ const totalAmount = new bignumber_js_1.default(vault.boughtToken).times(shares);
110
+ const remainingAmount = totalAmount.minus(escrow.claimedToken);
111
+ if (remainingAmount.isZero())
112
+ return;
113
+ let claimableAmount = new bignumber_js_1.default(remainingAmount.toString());
114
+ if (slot < Number(vault.endVestingSlot)) {
115
+ const amountPerSlot = new bignumber_js_1.default(totalAmount).div(Number(vault.endVestingSlot) - Number(vault.startVestingSlot));
116
+ let lastClaimedSlot = escrow.lastClaimedSlot.isZero()
117
+ ? Number(vault.startVestingSlot)
118
+ : escrow.lastClaimedSlot.toNumber();
119
+ if (lastClaimedSlot > slot)
120
+ lastClaimedSlot = slot;
121
+ claimableAmount = amountPerSlot.times(Math.min(slot, Number(vault.endVestingSlot)) - lastClaimedSlot);
122
+ }
123
+ if (claimableAmount.isGreaterThan(0)) {
124
+ assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, claimableAmount.div(Math.pow(10, tpBase.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
125
+ isClaimable: true,
126
+ }));
127
+ }
128
+ const vestingAmount = remainingAmount.minus(claimableAmount);
129
+ if (vestingAmount.isGreaterThan(0)) {
130
+ assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, vestingAmount.div(Math.pow(10, tpBase.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
131
+ tags: ['Vesting'],
132
+ }));
133
+ }
134
+ }
135
+ });
136
+ if (assets.length === 0)
137
+ return [];
138
+ return [
139
+ {
140
+ networkId: portfolio_core_1.NetworkId.solana,
141
+ type: portfolio_core_1.PortfolioElementType.multiple,
142
+ label: 'Vesting',
143
+ platformId: constants_1.platformId,
144
+ name: 'Alpha Vault',
145
+ data: {
146
+ assets,
147
+ },
148
+ value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
149
+ },
150
+ ];
151
+ });
152
+ const fetcher = {
153
+ id: `${constants_1.platformId}-dlmm-vaults`,
154
+ networkId: portfolio_core_1.NetworkId.solana,
155
+ executor,
156
+ };
157
+ exports.default = fetcher;
158
+ //# sourceMappingURL=dlmmVaultsFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA6D;AAC7D,+CAA8D;AAC9D,qGAA6E;AAC7E,8CAAiD;AAEjD,oDAAqD;AAErD,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,C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M,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Job } from '../../Job';
2
+ declare const job: Job;
3
+ export default job;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
+ const clients_1 = require("../../utils/clients");
14
+ const solana_1 = require("../../utils/solana");
15
+ const filters_1 = require("../../utils/solana/filters");
16
+ const constants_1 = require("./constants");
17
+ const struct_1 = require("../meteora/struct");
18
+ const constants_2 = require("../meteora/constants");
19
+ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
20
+ const client = (0, clients_1.getClientSolana)();
21
+ const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.dlmmVaultStruct, constants_1.dlmmVaultProgramId, (0, filters_1.dataSizeFilter)(struct_1.dlmmVaultStruct.byteSize));
22
+ const vaults = {};
23
+ accounts.forEach((acc) => {
24
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
+ const newAcc = Object.assign(Object.assign({}, acc), { pubkey: acc.pubkey.toString() });
26
+ delete newAcc['buffer'];
27
+ delete newAcc['padding0'];
28
+ delete newAcc['padding'];
29
+ vaults[acc.pubkey.toString()] = newAcc;
30
+ });
31
+ yield cache.setItem(constants_2.dlmmVaultsKey, vaults, {
32
+ prefix: constants_1.platformId,
33
+ networkId: portfolio_core_1.NetworkId.solana,
34
+ });
35
+ });
36
+ const job = {
37
+ id: `${constants_1.platformId}-dlmm-vaults`,
38
+ executor,
39
+ label: 'normal',
40
+ };
41
+ exports.default = job;
42
+ //# sourceMappingURL=dlmmVaultsJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dlmmVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAA4D;AAC5D,2CAA6D;AAE7D,8CAAoD;AACpD,oDAAqD;AAErD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,wBAAe,EACf,8BAAkB,EAClB,IAAA,wBAAc,EAAC,wBAAe,CAAC,QAAQ,CAAC,CACzC,CAAC;IACF,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,8DAA8D;QAC9D,MAAM,MAAM,mCACP,GAAG,KACN,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,GAC9B,CAAC;QACF,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;QAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;QACzB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,MAAM,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,MAAM,EAAE;QACzC,MAAM,EAAE,sBAAU;QAClB,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;AACF,kBAAe,GAAG,CAAC"}
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.airdropFetchers = exports.fetchers = exports.jobs = exports.platforms = void 0;
4
7
  const constants_1 = require("./constants");
5
8
  const airdropFetcher_1 = require("./airdropFetcher");
9
+ const dlmmVaultsJob_1 = __importDefault(require("./dlmmVaultsJob"));
10
+ const dlmmVaultsFetcher_1 = __importDefault(require("./dlmmVaultsFetcher"));
6
11
  exports.platforms = [constants_1.platform];
7
- exports.jobs = [];
8
- exports.fetchers = [];
12
+ exports.jobs = [dlmmVaultsJob_1.default];
13
+ exports.fetchers = [dlmmVaultsFetcher_1.default];
9
14
  exports.airdropFetchers = [
10
15
  airdropFetcher_1.airdropFetcherEvm,
11
16
  airdropFetcher_1.airdropFetcherSolana,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AACvC,qDAA2E;AAG9D,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC;AACzB,QAAA,eAAe,GAAqB;IAC/C,kCAAiB;IACjB,qCAAoB;CACrB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,qDAA2E;AAE3E,oEAA4C;AAC5C,4EAAoD;AAEvC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,uBAAa,CAAC,CAAC;AAC9B,QAAA,QAAQ,GAAc,CAAC,2BAAiB,CAAC,CAAC;AAC1C,QAAA,eAAe,GAAqB;IAC/C,kCAAiB;IACjB,qCAAoB;CACrB,CAAC"}
@@ -22,30 +22,52 @@ const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
22
22
  const deepFactor = new bignumber_js_1.default(Math.pow(10, constants_1.deepDecimals));
23
23
  const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
24
24
  const client = (0, clients_1.getClientSui)();
25
- const nfts = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
26
- filter: {
27
- StructType: '0x61c9c39fd86185ad60d738d4e52bd08bda071d366acde07e07c3916a2d75a816::distribution::DEEPWrapper',
28
- },
29
- });
30
- let amount = 0;
31
- if (nfts) {
25
+ const [nfts, claimed] = yield Promise.all([
26
+ (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
27
+ filter: {
28
+ StructType: '0x61c9c39fd86185ad60d738d4e52bd08bda071d366acde07e07c3916a2d75a816::distribution::DEEPWrapper',
29
+ },
30
+ }),
31
+ (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
32
+ filter: {
33
+ StructType: '0xc2cfa18b841df1887d931055cf41f2773c58164f719675595d020829893188a5::distribution::DEEPAirdrop',
34
+ },
35
+ }),
36
+ ]);
37
+ let amount;
38
+ if (nfts.length !== 0) {
32
39
  const amounts = nfts.map((nft) => {
33
40
  var _a, _b;
34
41
  if ((_b = (_a = nft.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
35
- return (0, bignumber_js_1.default)(nft.data.content.fields.balance)
36
- .dividedBy(deepFactor)
37
- .toNumber();
42
+ return (0, bignumber_js_1.default)(nft.data.content.fields.balance);
43
+ }
44
+ return (0, bignumber_js_1.default)(0);
45
+ });
46
+ amount = amounts
47
+ .reduce((am, curr) => curr.plus(am), new bignumber_js_1.default(0))
48
+ .dividedBy(deepFactor)
49
+ .toNumber();
50
+ }
51
+ let claimedAmount = 0;
52
+ if (claimed) {
53
+ const amounts = claimed.map((nft) => {
54
+ var _a, _b;
55
+ if ((_b = (_a = nft.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
56
+ return (0, bignumber_js_1.default)(nft.data.content.fields.amount);
38
57
  }
39
- return 0;
58
+ return (0, bignumber_js_1.default)(0);
40
59
  });
41
- amount = amounts.reduce((am, curr) => curr + am, 0);
60
+ claimedAmount = amounts
61
+ .reduce((am, curr) => curr.plus(am), new bignumber_js_1.default(0))
62
+ .dividedBy(deepFactor)
63
+ .toNumber();
42
64
  }
43
65
  return (0, AirdropFetcher_1.getAirdropRaw)({
44
66
  statics: constants_1.airdropStatics,
45
67
  items: [
46
68
  {
47
- amount,
48
- isClaimed: false,
69
+ amount: amount !== null && amount !== void 0 ? amount : claimedAmount,
70
+ isClaimed: !!claimedAmount,
49
71
  label: 'DEEP',
50
72
  address: constants_1.deepMint,
51
73
  },
@@ -1 +1 @@
1
- {"version":3,"file":"airdropFet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EAAE,oBAAQ;aAClB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AACF,kDAAkD;AAClD,oBAAoB;AACpB,iBAAiB;AACjB,wBAAwB;AACxB,4BAA4B;AAC5B,KAAK"}
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AACrC,yDAI8B;AAC9B,2CAAqE;AACrE,iDAAmD;AACnD,qEAAkE;AAGlE,MAAM,UAAU,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,wBAAY,CAAA,CAAC,CAAC;AAErD,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAC9B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACxC,IAAA,iCAAe,EAAoB,MAAM,EAAE,KAAK,EAAE;YAChD,MAAM,EAAE;gBACN,UAAU,EACR,+FAA+F;aAClG;SACF,CAAC;QACF,IAAA,iCAAe,EAAiB,MAAM,EAAE,KAAK,EAAE;YAC7C,MAAM,EAAE;gBACN,UAAU,EACR,+FAA+F;aAClG;SACF,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC;IACX,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;;YAC/B,IAAI,MAAA,MAAA,GAAG,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,EAAE,CAAC;gBAC9B,OA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MAAM;gBACb,OAAO,EAAE,oBAAQ;aAClB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AACF,kDAAkD;AAClD,oBAAoB;AACpB,iBAAiB;AACjB,wBAAwB;AACxB,4BAA4B;AAC5B,KAAK"}
@@ -114,7 +114,7 @@ exports.airdropConfigs = [
114
114
  getApiPath: (owner) => `https://api.kamino.finance/distributor/user/${owner}`,
115
115
  statics: {
116
116
  claimStart: 1724158800000,
117
- claimEnd: 1724340000000,
117
+ claimEnd: 1733130000000,
118
118
  id: 'kamino-s2',
119
119
  emitterName: 'Kamino',
120
120
  emitterLink: 'https://app.kamino.finance/',
@@ -40,4 +40,4 @@ const airdropFetcher = {
40
40
  exports.airdropFetcher = airdropFetcher;
41
41
  const fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(airdropFetcher, constants_1.platform.id, `${constants_1.platform.id}-airdrop-s2`, constants_1.airdropStaticsS2.claimEnd);
42
42
  exports.fetcher = fetcher;
43
- //# sourceMappingURL=s2AirdropFetcher.js.map
43
+ //# sourceMappingURL=s2AirdropFetcher.old.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s2AirdropFetcher.old.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/s2AirdropFetcher.old.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,yDAK8B;AAC9B,2CAAmE;AAGnE,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,kDAAkD,KAAK,6BAA6B,EACpF,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,CAAC;IAEF,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CACrC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAiB,CACpC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;IAEvB,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,4BAAgB;QACzB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;gBACxB,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,oBAAQ;aAClB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,4BAAgB,CAAC,EAAE;IACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AASO,wCAAc;AAPvB,MAAM,OAAO,GAAG,IAAA,wCAAuB,EACrC,cAAc,EACd,oBAAQ,CAAC,EAAE,EACX,GAAG,oBAAQ,CAAC,EAAE,aAAa,EAC3B,4BAAgB,CAAC,QAAQ,CAC1B,CAAC;AAEuB,0BAAO"}
@@ -8,6 +8,5 @@ exports.stakewizApi = 'https://api.stakewiz.com/validators';
8
8
  exports.marinadeManagerAddresses = [
9
9
  'stWirqFCf2Uts1JBL1Jsd3r6VBWhgnpdPxCTe1MFjrq',
10
10
  'noMa7dN4cHQLV4ZonXrC29HTKFpxrpFbDLK5Gub8W8t',
11
- 'noMa7dN4cHQLV4ZonXrC29HTKFpxrpFbDLK5Gub8W8t',
12
11
  ];
13
12
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,WAAW,GAAG,qCAAqC,CAAC;AACpD,QAAA,wBAAwB,GAAG;IACtC,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,WAAW,GAAG,qCAAqC,CAAC;AACpD,QAAA,wBAAwB,GAAG;IACtC,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
@@ -52,18 +52,20 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
52
52
  for (let i = 0; i < stakeAccounts.length; i += 1) {
53
53
  const stakeAccount = stakeAccounts[i];
54
54
  const validator = validators.get(stakeAccount.voter.toString());
55
- mevRewards += new bignumber_js_1.default(stakeAccount.lamports)
56
- .minus(stakeAccount.rentExemptReserve)
57
- .minus(stakeAccount.stake)
58
- .dividedBy(Math.pow(10, 9))
59
- .toNumber();
55
+ const { deactivationEpoch, activationEpoch, staker } = stakeAccount;
56
+ const isMarinade = constants_4.marinadeManagerAddresses.includes(staker.toString());
57
+ if (!activationEpoch.isZero() && !isMarinade)
58
+ mevRewards += new bignumber_js_1.default(stakeAccount.lamports)
59
+ .minus(stakeAccount.rentExemptReserve)
60
+ .minus(stakeAccount.stake)
61
+ .dividedBy(Math.pow(10, 9))
62
+ .toNumber();
60
63
  const amount = new bignumber_js_1.default(stakeAccount.lamports)
61
64
  .minus(stakeAccount.rentExemptReserve)
62
65
  .dividedBy(Math.pow(10, 9))
63
66
  .toNumber();
64
67
  if (amount <= 0)
65
68
  continue;
66
- const isMarinade = constants_4.marinadeManagerAddresses.includes(stakeAccount.staker.toString());
67
69
  if (isMarinade) {
68
70
  marinadeSolAmount += amount;
69
71
  nMarinadeAccounts += 1;
@@ -72,7 +74,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
72
74
  else
73
75
  solAmount += amount;
74
76
  // Status tags
75
- const { deactivationEpoch, activationEpoch } = stakeAccount;
76
77
  const tags = [];
77
78
  if (epoch &&
78
79
  activationEpoch.isEqualTo(epoch) &&
@@ -88,6 +89,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
88
89
  else if (epoch && deactivationEpoch.isEqualTo(epoch)) {
89
90
  tags.push('Unstaking');
90
91
  }
92
+ else if (deactivationEpoch.isZero() && activationEpoch.isZero()) {
93
+ tags.push('Initialized');
94
+ }
91
95
  else {
92
96
  tags.push('Active');
93
97
  }