@sonarwatch/portfolio-plugins 0.14.30 → 0.14.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/CHANGELOG.md +1716 -1712
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +6 -2
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/drift-market-maker-vault/constants.d.ts +2 -0
  8. package/src/plugins/drift-market-maker-vault/constants.js +11 -1
  9. package/src/plugins/drift-market-maker-vault/constants.js.map +1 -1
  10. package/src/plugins/drift-market-maker-vault/depositsFetcher.d.ts +2 -0
  11. package/src/plugins/drift-market-maker-vault/depositsFetcher.js +4 -2
  12. package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
  13. package/src/plugins/drift-market-maker-vault/index.js +1 -0
  14. package/src/plugins/drift-market-maker-vault/index.js.map +1 -1
  15. package/src/plugins/metaplex/constants.d.ts +7 -0
  16. package/src/plugins/metaplex/constants.js +17 -0
  17. package/src/plugins/metaplex/constants.js.map +1 -0
  18. package/src/plugins/metaplex/helpers.d.ts +3 -0
  19. package/src/plugins/metaplex/helpers.js +19 -0
  20. package/src/plugins/metaplex/helpers.js.map +1 -0
  21. package/src/plugins/metaplex/index.d.ts +6 -0
  22. package/src/plugins/metaplex/index.js +12 -0
  23. package/src/plugins/metaplex/index.js.map +1 -0
  24. package/src/plugins/metaplex/positionsSolanaFetcher.d.ts +3 -0
  25. package/src/plugins/metaplex/positionsSolanaFetcher.js +75 -0
  26. package/src/plugins/metaplex/positionsSolanaFetcher.js.map +1 -0
  27. package/src/plugins/native-stake/solana/solanaValidatorsJob.js +2 -1
  28. package/src/plugins/native-stake/solana/solanaValidatorsJob.js.map +1 -1
  29. package/src/plugins/native-stake/solana/types.d.ts +3 -1
  30. package/src/plugins/pyth/pricingJob.js +98 -2
  31. package/src/plugins/pyth/pricingJob.js.map +1 -1
  32. package/src/plugins/sushiswap/helpers.js +24 -24
  33. package/src/plugins/symmetry/basketsJob.js +8 -2
  34. package/src/plugins/symmetry/basketsJob.js.map +1 -1
  35. package/src/plugins/uniswap-v2/helpers.js +22 -22
  36. package/src/plugins/zeta/airdropFetcher.js +14 -14
  37. package/src/utils/sei/constants.js +8 -8
  38. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  39. package/src/utils/solana/pyth/helpers.d.ts +11 -6
  40. package/src/utils/solana/pyth/helpers.js +13 -18
  41. package/src/utils/solana/pyth/helpers.js.map +1 -1
  42. package/src/utils/sui/constants.d.ts +2 -0
  43. package/src/utils/sui/constants.js +3 -1
  44. package/src/utils/sui/constants.js.map +1 -1
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @sonarwatch/portfolio-plugins
2
-
3
- This library is @sonarwatch/portfolio-plugins
1
+ # @sonarwatch/portfolio-plugins
2
+
3
+ This library is @sonarwatch/portfolio-plugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.30",
3
+ "version": "0.14.31",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -153,6 +153,7 @@ const hxro_1 = require("./plugins/hxro");
153
153
  const spdr_1 = require("./plugins/spdr");
154
154
  const grass_1 = require("./plugins/grass");
155
155
  const cyberfrogs_1 = require("./plugins/cyberfrogs");
156
+ const metaplex_1 = require("./plugins/metaplex");
156
157
  var constants_1 = require("./plugins/tokens/constants");
157
158
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
158
159
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -299,6 +300,7 @@ exports.platforms = [
299
300
  ...spdr_1.platforms,
300
301
  ...grass_1.platforms,
301
302
  ...cyberfrogs_1.platforms,
303
+ ...metaplex_1.platforms,
302
304
  ];
303
305
  // JOBS //
304
306
  exports.jobs = [
@@ -395,7 +397,7 @@ exports.jobs = [
395
397
  ...whalesmarket_1.jobs,
396
398
  ...futarchy_1.jobs,
397
399
  ...elixir_1.jobs,
398
- ...moonwalk_1.jobs,
400
+ // ...moonwalkJobs,
399
401
  ...bluefin_1.jobs,
400
402
  ...citrus_1.jobs,
401
403
  ...sharky_1.jobs,
@@ -429,6 +431,7 @@ exports.jobs = [
429
431
  ...spdr_1.jobs,
430
432
  ...grass_1.jobs,
431
433
  ...cyberfrogs_1.jobs,
434
+ ...metaplex_1.jobs,
432
435
  ];
433
436
  // FETCHERS //
434
437
  exports.fetchers = [
@@ -526,7 +529,7 @@ exports.fetchers = [
526
529
  ...whalesmarket_1.fetchers,
527
530
  ...futarchy_1.fetchers,
528
531
  ...elixir_1.fetchers,
529
- ...moonwalk_1.fetchers,
532
+ // ...moonwalkFetchers,
530
533
  ...bluefin_1.fetchers,
531
534
  ...citrus_1.fetchers,
532
535
  ...sharky_1.fetchers,
@@ -560,6 +563,7 @@ exports.fetchers = [
560
563
  ...spdr_1.fetchers,
561
564
  ...grass_1.fetchers,
562
565
  ...cyberfrogs_1.fetchers,
566
+ ...metaplex_1.fetchers,
563
567
  ];
564
568
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
565
569
  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,2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IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,8BAA2B;IAC9B,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,qBAAgB;CACpB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,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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AAG,mBAAgB;CACpB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;CAC3B,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
36
36
  const graphql_request_1 = __importStar(require("graphql-request"));
37
37
  function getBalancerPoolsV2(url) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const query = (0, graphql_request_1.gql) `
40
- query pools {
41
- pools(
42
- first: 1000
43
- orderBy: totalLiquidity
44
- orderDirection: desc
45
- where: { totalLiquidity_gt: "500" }
46
- ) {
47
- id
48
- address
49
- symbol
50
- totalLiquidity
51
- totalShares
52
- tokens {
53
- balance
54
- decimals
55
- symbol
56
- address
57
- }
58
- }
59
- }
39
+ const query = (0, graphql_request_1.gql) `
40
+ query pools {
41
+ pools(
42
+ first: 1000
43
+ orderBy: totalLiquidity
44
+ orderDirection: desc
45
+ where: { totalLiquidity_gt: "500" }
46
+ ) {
47
+ id
48
+ address
49
+ symbol
50
+ totalLiquidity
51
+ totalShares
52
+ tokens {
53
+ balance
54
+ decimals
55
+ symbol
56
+ address
57
+ }
58
+ }
59
+ }
60
60
  `;
61
61
  const res = yield (0, graphql_request_1.default)(url, query);
62
62
  const pools = res.pools;
@@ -8,6 +8,8 @@ export declare const neutralPlatformId = "neutral";
8
8
  export declare const neutralPlatform: Platform;
9
9
  export declare const gauntletPlatformId = "gauntlet";
10
10
  export declare const gauntletPlatform: Platform;
11
+ export declare const hedgyPlatformId = "hedgy";
12
+ export declare const hedgyPlatform: Platform;
11
13
  export declare const vaultsPids: PublicKey[];
12
14
  export declare const prefixVaults = "circuitVaults";
13
15
  export declare const platformIdByVaultManager: Map<string, string>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.platformIdByVaultManager = exports.prefixVaults = exports.vaultsPids = exports.gauntletPlatform = exports.gauntletPlatformId = exports.neutralPlatform = exports.neutralPlatformId = exports.moosePlatform = exports.moosePlatformId = exports.circuitPlatform = exports.circuitPlatformId = void 0;
3
+ exports.platformIdByVaultManager = exports.prefixVaults = exports.vaultsPids = exports.hedgyPlatform = exports.hedgyPlatformId = exports.gauntletPlatform = exports.gauntletPlatformId = exports.neutralPlatform = exports.neutralPlatformId = exports.moosePlatform = exports.moosePlatformId = exports.circuitPlatform = exports.circuitPlatformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.circuitPlatformId = 'circuit';
6
6
  exports.circuitPlatform = {
@@ -33,6 +33,14 @@ exports.gauntletPlatform = {
33
33
  image: 'https://sonar.watch/img/platforms/gauntlet.webp',
34
34
  twitter: 'https://twitter.com/gauntlet_xyz',
35
35
  };
36
+ exports.hedgyPlatformId = 'hedgy';
37
+ exports.hedgyPlatform = {
38
+ id: exports.hedgyPlatformId,
39
+ name: 'Hedgy',
40
+ image: 'https://sonar.watch/img/platforms/hedgy.webp',
41
+ twitter: 'https://x.com/HedgyMarket',
42
+ website: 'https://hedgy.market/',
43
+ };
36
44
  exports.vaultsPids = [
37
45
  new web3_js_1.PublicKey('vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR'), // from Drift
38
46
  new web3_js_1.PublicKey('9Fcn3Fd4d5ocrb12xCUtEvezxcjFEAyHBPfrZDiPt9Qj'), // from Neutral
@@ -46,5 +54,7 @@ exports.platformIdByVaultManager = new Map([
46
54
  ['C77bxLHWjnAVeG9HdMxu1gunFnjRCcWUDZYfa7xbacHr', exports.neutralPlatformId],
47
55
  ['neutBqYtHqPiu89Yfuk3X3cebgBtyppzSbxJ9tt1eSB', exports.neutralPlatformId],
48
56
  ['G6L1NE8tLYYzvMHYHbkHZqPFvfEsiRAsHSvyNQ2hut3o', exports.gauntletPlatformId],
57
+ ['GcGx7VBJX9AxW2EKayVVovpPXvfjpCdjGkKXa27Ryg3a', exports.hedgyPlatformId],
58
+ ['86fYXDydyKKnL7gxWpVrUDnsrVyQyZkwb4YsisBHC9ab', exports.gauntletPlatformId],
49
59
  ]);
50
60
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,uBAAe;IACnB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,kBAAkB,GAAG,UAAU,CAAC;AAChC,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,0BAAkB;IACtB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,aAAa;IAC3E,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,eAAe;IAC9E,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,eAAe;IAC9E,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,eAAe;CAC/E,CAAC;AAEW,QAAA,YAAY,GAAG,eAAe,CAAC;AAE/B,QAAA,wBAAwB,GAAwB,IAAI,GAAG,CAAC;IACnE,CAAC,8CAA8C,EAAE,yBAAiB,CAAC;IACnE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,yBAAiB,CAAC;IACnE,CAAC,6CAA6C,EAAE,yBAAiB,CAAC;IAClE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;CACrE,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,uBAAe;IACnB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,kBAAkB,GAAG,UAAU,CAAC;AAChC,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,0BAAkB;IACtB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,uBAAe;IACnB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,6CAA6C,CAAC,EAAE,aAAa;IAC3E,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,eAAe;IAC9E,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,eAAe;IAC9E,IAAI,mBAAS,CAAC,8CAA8C,CAAC,EAAE,eAAe;CAC/E,CAAC;AAEW,QAAA,YAAY,GAAG,eAAe,CAAC;AAE/B,QAAA,wBAAwB,GAAwB,IAAI,GAAG,CAAC;IACnE,CAAC,8CAA8C,EAAE,yBAAiB,CAAC;IACnE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,yBAAiB,CAAC;IACnE,CAAC,6CAA6C,EAAE,yBAAiB,CAAC;IAClE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;IACpE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;CACrE,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import { Fetcher } from '../../Fetcher';
2
+ export declare const oneDay: number;
3
+ export declare const sevenDays: number;
2
4
  declare const fetcher: Fetcher;
3
5
  export default fetcher;
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.sevenDays = exports.oneDay = void 0;
15
16
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
17
  const constants_1 = require("../drift/constants");
17
18
  const constants_2 = require("./constants");
@@ -20,7 +21,8 @@ const solana_1 = require("../../utils/solana");
20
21
  const structs_1 = require("./structs");
21
22
  const filters_1 = require("./filters");
22
23
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
23
- const stakingFetcher_1 = require("../goosefx/stakingFetcher");
24
+ exports.oneDay = 1000 * 60 * 60 * 24;
25
+ exports.sevenDays = 7 * exports.oneDay;
24
26
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
27
  const client = (0, clients_1.getClientSolana)();
26
28
  const depositAccounts = (yield Promise.all(constants_2.vaultsPids.map((vaultsPid) => (0, solana_1.getParsedProgramAccounts)(client, structs_1.vaultDepositorStruct, vaultsPid, (0, filters_1.vaultDepositorFilter)(owner))))).flat();
@@ -54,7 +56,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
54
56
  .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice)), { attributes: {
55
57
  lockedUntil: depositAccount.lastWithdrawRequest.ts
56
58
  .times(1000)
57
- .plus(stakingFetcher_1.sevenDays)
59
+ .plus(platformId === constants_2.neutralPlatformId ? exports.oneDay : exports.sevenDays)
58
60
  .toNumber(),
59
61
  } }));
60
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,kDAAmE;AACnE,2CAAuD;AACvD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AACjD,qGAA6E;AAC7E,8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IAAI,CAAC;yBACX,IAAI,CAAC,0BAAS,CAAC;yBACf,QAAQ,EAAE;iBACd,IACD,CAAC;QACL,CAAC;QACD,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,IAAI,EACJ,UAAU,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC/C,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;QACF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAElC,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI;YACJ,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAe,qBAAqB;IAC3C,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-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,kDAAmE;AACnE,2CAA0E;AAC1E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AACjD,qGAA6E;AAGhE,QAAA,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC7B,QAAA,SAAS,GAAG,CAA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,KAAK,CAAC,IAAI,CAAC;yBACX,IAAI,CAAC,UAAU,KAAK,6BAAiB,CAAC,CAAC,CAAC,cAAM,CAAC,CAAC,CAAC,iBAAS,CAAC;yBAC3D,QAAQ,EAAE;iBACd,IACD,CAAC;QACL,CAAC;QACD,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,IAAI,EACJ,UAAU,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC/C,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CACF,CAAC;QACF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAElC,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU;YACV,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI;YACJ,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAe,qBAAqB;IAC3C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -12,6 +12,7 @@ exports.platforms = [
12
12
  constants_1.moosePlatform,
13
13
  constants_1.neutralPlatform,
14
14
  constants_1.gauntletPlatform,
15
+ constants_1.hedgyPlatform,
15
16
  ];
16
17
  exports.jobs = [vaultsJob_1.default];
17
18
  exports.fetchers = [depositsFetcher_1.default];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAKqB;AACrB,wEAAgD;AAChD,4DAAoC;AAEvB,QAAA,SAAS,GAAe;IACnC,2BAAe;IACf,yBAAa;IACb,2BAAe;IACf,4BAAgB;CACjB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,mBAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAMqB;AACrB,wEAAgD;AAChD,4DAAoC;AAEvB,QAAA,SAAS,GAAe;IACnC,2BAAe;IACf,yBAAa;IACb,2BAAe;IACf,4BAAgB;IAChB,yBAAa;CACd,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,mBAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ import { Platform } from '@sonarwatch/portfolio-core';
3
+ export declare const platformId = "metaplex";
4
+ export declare const platform: Platform;
5
+ export declare const amountPerMasterEdition = 0.00232464;
6
+ export declare const amountPerBasicEdition = 0.00188616;
7
+ export declare const metadatProgram: PublicKey;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.metadatProgram = exports.amountPerBasicEdition = exports.amountPerMasterEdition = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'metaplex';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'Metaplex',
9
+ image: 'https://sonar.watch/img/platforms/metaplex.webp',
10
+ website: 'https://resize.metaplex.com',
11
+ twitter: 'https://x.com/metaplex',
12
+ // defiLlamaId: 'metaplex', // from https://defillama.com/docs/api
13
+ };
14
+ exports.amountPerMasterEdition = 0.00232464;
15
+ exports.amountPerBasicEdition = 0.00188616;
16
+ exports.metadatProgram = new web3_js_1.PublicKey('metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s');
17
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/constants.ts"],"names":[],"mappings":";;;AAAA,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,6BAA6B;IACtC,OAAO,EAAE,wBAAwB;IACjC,kEAAkE;CACnE,CAAC;AAEW,QAAA,sBAAsB,GAAG,UAAU,CAAC;AACpC,QAAA,qBAAqB,GAAG,UAAU,CAAC;AACnC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ export declare function getEditionPubkeyOfNft(mint: PublicKey): PublicKey;
3
+ export declare function getMetadataPubkey(mint: PublicKey): PublicKey;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMetadataPubkey = exports.getEditionPubkeyOfNft = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ const constants_1 = require("./constants");
6
+ function getEditionPubkeyOfNft(mint) {
7
+ return web3_js_1.PublicKey.findProgramAddressSync([
8
+ Buffer.from('metadata'),
9
+ constants_1.metadatProgram.toBuffer(),
10
+ mint.toBuffer(),
11
+ Buffer.from('edition'),
12
+ ], constants_1.metadatProgram)[0];
13
+ }
14
+ exports.getEditionPubkeyOfNft = getEditionPubkeyOfNft;
15
+ function getMetadataPubkey(mint) {
16
+ return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('metadata'), constants_1.metadatProgram.toBuffer(), mint.toBuffer()], constants_1.metadatProgram)[0];
17
+ }
18
+ exports.getMetadataPubkey = getMetadataPubkey;
19
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2CAA6C;AAE7C,SAAgB,qBAAqB,CAAC,IAAe;IACnD,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;QACvB,0BAAc,CAAC,QAAQ,EAAE;QACzB,IAAI,CAAC,QAAQ,EAAE;QACf,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KACvB,EACD,0BAAc,CACf,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAVD,sDAUC;AAED,SAAgB,iBAAiB,CAAC,IAAe;IAC/C,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,0BAAc,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,EACrE,0BAAc,CACf,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AALD,8CAKC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const positionsSolanaFetcher_1 = __importDefault(require("./positionsSolanaFetcher"));
9
+ exports.platforms = [constants_1.platform];
10
+ exports.jobs = [];
11
+ exports.fetchers = [positionsSolanaFetcher_1.default];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sFAA8D;AAEjD,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,gCAAsB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,75 @@
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 web3_js_1 = require("@solana/web3.js");
14
+ const constants_1 = require("./constants");
15
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
16
+ const clients_1 = require("../../utils/clients");
17
+ const solana_1 = require("../../utils/solana");
18
+ const helpers_1 = require("./helpers");
19
+ const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
20
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
21
+ var _a;
22
+ const client = (0, clients_1.getClientSolana)();
23
+ const asset = yield client.getTokenAccountsByOwner(new web3_js_1.PublicKey(owner), {
24
+ programId: new web3_js_1.PublicKey(solana_1.solanaTokenPid),
25
+ });
26
+ const tokenAccounts = asset.value.map((account) => solana_1.tokenAccountStruct.deserialize(account.account.data)[0]);
27
+ const metadataPubkeys = [];
28
+ const editionPubkeys = [];
29
+ tokenAccounts.forEach((account) => {
30
+ metadataPubkeys.push((0, helpers_1.getMetadataPubkey)(account.mint));
31
+ editionPubkeys.push((0, helpers_1.getEditionPubkeyOfNft)(account.mint));
32
+ });
33
+ const [editionAccounts, metadataAccounts] = yield Promise.all([
34
+ (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, editionPubkeys),
35
+ (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, metadataPubkeys),
36
+ ]);
37
+ let amount = 0;
38
+ let editionAccount;
39
+ for (let n = 0; n < metadataAccounts.length; n++) {
40
+ if (!metadataAccounts[n])
41
+ continue;
42
+ editionAccount = editionAccounts[n];
43
+ if (!editionAccount)
44
+ continue;
45
+ if (((_a = metadataAccounts[n]) === null || _a === void 0 ? void 0 : _a.data.byteLength) === 679) {
46
+ if (editionAccount.data.byteLength === 282) {
47
+ amount += constants_1.amountPerMasterEdition;
48
+ }
49
+ if (editionAccount.data.byteLength === 241) {
50
+ amount += constants_1.amountPerBasicEdition;
51
+ }
52
+ }
53
+ }
54
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
55
+ const element = elementRegistry.addElementMultiple({
56
+ label: 'Rewards',
57
+ name: 'Resize Program',
58
+ });
59
+ element.addAsset({
60
+ address: portfolio_core_1.solanaNativeAddress,
61
+ amount,
62
+ alreadyShifted: true,
63
+ attributes: {
64
+ isClaimable: true,
65
+ },
66
+ });
67
+ return elementRegistry.getElements(cache);
68
+ });
69
+ const fetcher = {
70
+ id: `${constants_1.platformId}-resize`,
71
+ networkId: portfolio_core_1.NetworkId.solana,
72
+ executor,
73
+ };
74
+ exports.default = fetcher;
75
+ //# sourceMappingURL=positionsSolanaFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positionsSolanaFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/metaplex/positionsSolanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAE5C,2CAIqB;AAErB,gFAA6E;AAC7E,iDAAsD;AACtD,+CAAwE;AACxE,uCAAqE;AACrE,gGAA6F;AAE7F,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,EAAE;QACvE,SAAS,EAAE,IAAI,mBAAS,CAAC,uBAAc,CAAC;KACzC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CACnC,CAAC,OAAO,EAAE,EAAE,CAAC,2BAAkB,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACrE,CAAC;IAEF,MAAM,eAAe,GAAgB,EAAE,CAAC;IACxC,MAAM,cAAc,GAAgB,EAAE,CAAC;IACvC,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAChC,eAAe,CAAC,IAAI,CAAC,IAAA,2BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACtD,cAAc,CAAC,IAAI,CAAC,IAAA,+BAAqB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,eAAe,EAAE,gBAAgB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC5D,IAAA,yDAA2B,EAAC,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AAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -34,7 +34,8 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
34
34
  jitoApy: r.jito_apy,
35
35
  stakingApy: r.staking_apy,
36
36
  totalApy: r.total_apy,
37
- commission: r.commission,
37
+ stakeCommission: r.commission / 100,
38
+ mevCommission: r.jito_commission_bps / 10000,
38
39
  }));
39
40
  yield cache.setItem(constants_1.validatorsKey, validators, {
40
41
  prefix: constants_1.platformId,
@@ -1 +1 @@
1
- {"version":3,"file":"solanaValidatorsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaValidatorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,4CAAyD;AACzD,2CAA0C;AAG1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAgD,uBAAW,EAAE;QAC/D,OAAO,EAAE,KAAK;KACf,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,EAAE,CAAC,CAAC,aAAa;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,QAAQ,EAAE,CAAC,CAAC,KAAK;QACjB,OAAO,EAAE,CAAC,CAAC,YAAY;QACvB,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,UAAU,EAAE,CAAC,CAAC,WAAW;QACzB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,UAAU,EAAE,CAAC,CAAC,UAAU;KACzB,CAAC,CAAC,CAAC;IAEJ,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,UAAU,EAAE;QAC7C,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,oBAAoB;IACrC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"solanaValidatorsJob.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaValidatorsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAG7C,4CAAyD;AACzD,2CAA0C;AAG1C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,MAAM,eAAK;SACpB,GAAG,CAAgD,uBAAW,EAAE;QAC/D,OAAO,EAAE,KAAK;KACf,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,KAAK,CAAC,qBAAqB,GAAG,EAAE,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,KAAK,EAAE,CAAC,CAAC,aAAa;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,QAAQ,EAAE,CAAC,CAAC,KAAK;QACjB,OAAO,EAAE,CAAC,CAAC,YAAY;QACvB,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,UAAU,EAAE,CAAC,CAAC,WAAW;QACzB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,eAAe,EAAE,CAAC,CAAC,UAAU,GAAG,GAAG;QACnC,aAAa,EAAE,CAAC,CAAC,mBAAmB,GAAG,KAAK;KAC7C,CAAC,CAAC,CAAC;IAEJ,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,UAAU,EAAE;QAC7C,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,oBAAoB;IACrC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -8,6 +8,7 @@ export type ValidatorApiResponse = {
8
8
  staking_apy: number;
9
9
  total_apy: number;
10
10
  commission: number;
11
+ jito_commission_bps: number;
11
12
  };
12
13
  export type Validator = {
13
14
  voter: string;
@@ -17,5 +18,6 @@ export type Validator = {
17
18
  jitoApy: number;
18
19
  stakingApy: number;
19
20
  totalApy: number;
20
- commission: number;
21
+ stakeCommission: number;
22
+ mevCommission: number;
21
23
  };
@@ -10,13 +10,109 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const web3_js_1 = require("@solana/web3.js");
13
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
14
  const constants_1 = require("./constants");
14
15
  const clients_1 = require("../../utils/clients");
15
16
  const helpers_1 = require("../../utils/solana/pyth/helpers");
17
+ const constants_2 = require("../../utils/sui/constants");
18
+ const solana_1 = require("../../utils/solana");
16
19
  const feedsToFetch = [
20
+ // SOL
17
21
  {
18
- feed: new web3_js_1.PublicKey('8QFEAwdamHFFRnj3Swnv1CkVNZBeFiVzraC548xhmpT5'),
19
- mint: new web3_js_1.PublicKey('ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo'),
22
+ address: new web3_js_1.PublicKey('H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG'),
23
+ tokens: [
24
+ {
25
+ mint: portfolio_core_1.solanaNativeAddress,
26
+ decimals: portfolio_core_1.solanaNativeDecimals,
27
+ networkdId: portfolio_core_1.NetworkId.solana,
28
+ },
29
+ {
30
+ mint: portfolio_core_1.solanaNativeWrappedAddress,
31
+ decimals: portfolio_core_1.solanaNativeDecimals,
32
+ networkdId: portfolio_core_1.NetworkId.solana,
33
+ },
34
+ ],
35
+ },
36
+ // SUI
37
+ {
38
+ address: new web3_js_1.PublicKey('3Qub3HaAJaa2xNY7SUqPKd3vVwTqDfDDkEUMPjXD2c1q'),
39
+ tokens: [
40
+ {
41
+ mint: portfolio_core_1.suiNativeAddress,
42
+ decimals: portfolio_core_1.suiNativeDecimals,
43
+ networkdId: portfolio_core_1.NetworkId.sui,
44
+ },
45
+ {
46
+ mint: '0x2::sui::SUI',
47
+ decimals: portfolio_core_1.suiNativeDecimals,
48
+ networkdId: portfolio_core_1.NetworkId.sui,
49
+ },
50
+ ],
51
+ },
52
+ // APT
53
+ {
54
+ address: new web3_js_1.PublicKey('FNNvb1AFDnDVPkocEri8mWbJ1952HQZtFLuwPiUjSJQ'),
55
+ tokens: [
56
+ {
57
+ mint: portfolio_core_1.aptosNativeAddress,
58
+ decimals: portfolio_core_1.aptosNativeDecimals,
59
+ networkdId: portfolio_core_1.NetworkId.aptos,
60
+ },
61
+ ],
62
+ },
63
+ // USDC
64
+ {
65
+ address: new web3_js_1.PublicKey('Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD'),
66
+ tokens: [
67
+ {
68
+ mint: constants_2.wUsdcSuiType,
69
+ decimals: constants_2.wusdcSuiDecimals,
70
+ networkdId: portfolio_core_1.NetworkId.sui,
71
+ },
72
+ {
73
+ mint: constants_2.usdcSuiType,
74
+ decimals: constants_2.usdcSuiDecimals,
75
+ networkdId: portfolio_core_1.NetworkId.sui,
76
+ },
77
+ {
78
+ mint: solana_1.usdcSolanaMint,
79
+ decimals: solana_1.usdcSolanaDecimals,
80
+ networkdId: portfolio_core_1.NetworkId.solana,
81
+ },
82
+ ],
83
+ },
84
+ // USDT
85
+ {
86
+ address: new web3_js_1.PublicKey('3vxLXJqLqF3JG5TCbYycbKWRBbCJQLxQmBGCkyqEEefL'),
87
+ tokens: [
88
+ {
89
+ mint: 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB',
90
+ decimals: 6,
91
+ networkdId: portfolio_core_1.NetworkId.solana,
92
+ },
93
+ ],
94
+ },
95
+ // wsETH
96
+ {
97
+ address: new web3_js_1.PublicKey('8QFEAwdamHFFRnj3Swnv1CkVNZBeFiVzraC548xhmpT5'),
98
+ tokens: [
99
+ {
100
+ mint: 'ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo',
101
+ decimals: 8,
102
+ networkdId: portfolio_core_1.NetworkId.solana,
103
+ },
104
+ ],
105
+ },
106
+ // MOD
107
+ {
108
+ address: new web3_js_1.PublicKey('BNnzTdorVyW4ttRAoXvohD46Q8ycN8LCHz2CGV4pUH7S'),
109
+ tokens: [
110
+ {
111
+ mint: '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::mod_coin::MOD',
112
+ decimals: 8,
113
+ networkdId: portfolio_core_1.NetworkId.aptos,
114
+ },
115
+ ],
20
116
  },
21
117
  ];
22
118
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,6DAA2E;AAE3E,MAAM,YAAY,GAAG;IACnB;QACE,IAAI,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACnE,IAAI,EAAE,IAAI,mBAAS,CAAC,6CAA6C,CAAC;KACnE;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,OAAO,GAAG,MAAM,IAAA,kCAAwB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACzE,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA4C;AAC5C,+DASoC;AAGpC,2CAAyC;AACzC,iDAAsD;AACtD,6DAGyC;AACzC,yDAKmC;AACnC,+CAAwE;AAExE,MAAM,YAAY,GAAe;IAC/B,MAAM;IACN;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,oCAAmB;gBACzB,QAAQ,EAAE,qCAAoB;gBAC9B,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;YACD;gBACE,IAAI,EAAE,2CAA0B;gBAChC,QAAQ,EAAE,qCAAoB;gBAC9B,UAAU,EAAE,0BAAS,CAAC,MAAM;aAC7B;SACF;KACF;IACD,MAAM;IACN;QACE,OAAO,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QACtE,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,iCAAgB;gBACtB,QAAQ,EAAE,kCAAiB;gBAC3B,UAAU,EAAE,0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