@sonarwatch/portfolio-plugins 0.11.172 → 0.11.174

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/CHANGELOG.md +1415 -1407
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/Cache.d.ts +8 -0
  5. package/src/Cache.js +8 -0
  6. package/src/Cache.js.map +1 -1
  7. package/src/plugins/armada-staking/constants.d.ts +8 -0
  8. package/src/plugins/armada-staking/constants.js +37 -1
  9. package/src/plugins/armada-staking/constants.js.map +1 -1
  10. package/src/plugins/armada-staking/index.js +4 -0
  11. package/src/plugins/armada-staking/index.js.map +1 -1
  12. package/src/plugins/armada-staking/stakingFetcher.js +1 -1
  13. package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
  14. package/src/plugins/balancer/helpers/pools.js +21 -21
  15. package/src/plugins/daos/filters.d.ts +4 -4
  16. package/src/plugins/daos/filters.js +9 -9
  17. package/src/plugins/daos/filters.js.map +1 -1
  18. package/src/plugins/daos/realmsDepositsFetcher.js +1 -1
  19. package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
  20. package/src/plugins/daos/realmsProgramsJob.js +2 -2
  21. package/src/plugins/daos/realmsProgramsJob.js.map +1 -1
  22. package/src/plugins/jupiter/helpers.d.ts +1 -1
  23. package/src/plugins/jupiter/helpers.js +6 -2
  24. package/src/plugins/jupiter/helpers.js.map +1 -1
  25. package/src/plugins/jupiter/launchpad/allocationsFetcher.js +1 -2
  26. package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
  27. package/src/plugins/jupiter/launchpad/constants.d.ts +1 -2
  28. package/src/plugins/jupiter/launchpad/constants.js +4 -3
  29. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  30. package/src/plugins/mango/banksJob.js +15 -5
  31. package/src/plugins/mango/banksJob.js.map +1 -1
  32. package/src/plugins/mango/collateralFetcher.js +4 -4
  33. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  34. package/src/plugins/mango/constants.d.ts +1 -1
  35. package/src/plugins/mango/constants.js +2 -2
  36. package/src/plugins/mango/constants.js.map +1 -1
  37. package/src/plugins/marginfi/banksJob.js +34 -9
  38. package/src/plugins/marginfi/banksJob.js.map +1 -1
  39. package/src/plugins/marginfi/constants.d.ts +1 -1
  40. package/src/plugins/marginfi/constants.js +2 -2
  41. package/src/plugins/marginfi/constants.js.map +1 -1
  42. package/src/plugins/marginfi/depositsFetcher.js +12 -41
  43. package/src/plugins/marginfi/depositsFetcher.js.map +1 -1
  44. package/src/plugins/marginfi/filters.js +4 -0
  45. package/src/plugins/marginfi/filters.js.map +1 -1
  46. package/src/plugins/marginfi/helpers.d.ts +1 -1
  47. package/src/plugins/marginfi/helpers.js +41 -31
  48. package/src/plugins/marginfi/helpers.js.map +1 -1
  49. package/src/plugins/marginfi/structs/Bank.d.ts +19 -12
  50. package/src/plugins/marginfi/structs/Bank.js +19 -12
  51. package/src/plugins/marginfi/structs/Bank.js.map +1 -1
  52. package/src/plugins/marginfi/types.d.ts +7 -3
  53. package/src/plugins/rain/helpers.d.ts +1 -1
  54. package/src/plugins/rain/helpers.js +1 -1
  55. package/src/plugins/rain/helpers.js.map +1 -1
  56. package/src/plugins/rain/poolsFetcher.js +1 -3
  57. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  58. package/src/plugins/solend/marketsJob.js +1 -1
  59. package/src/plugins/solend/marketsJob.js.map +1 -1
  60. package/src/plugins/solend/reservesJob.js +24 -14
  61. package/src/plugins/solend/reservesJob.js.map +1 -1
  62. package/src/plugins/suilend/marketsJob.js +1 -1
  63. package/src/plugins/suilend/marketsJob.js.map +1 -1
  64. package/src/plugins/sushiswap/helpers.js +24 -24
  65. package/src/plugins/uniswap-v2/helpers.js +22 -22
  66. package/src/utils/sei/constants.js +8 -8
  67. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
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.11.172",
3
+ "version": "0.11.174",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
@@ -41,7 +41,7 @@
41
41
  "web3-v1": "npm:web3@^1.5.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@sonarwatch/portfolio-core": "0.11.172"
44
+ "@sonarwatch/portfolio-core": "0.11.173"
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "types": "./src/index.d.ts"
package/src/Cache.d.ts CHANGED
@@ -84,7 +84,15 @@ export declare class Cache {
84
84
  private getTokenPriceSources;
85
85
  private getTokenPricesSources;
86
86
  getItems<K extends StorageValue>(keys: string[], opts: TransactionOptions): Promise<(K | undefined)[]>;
87
+ /**
88
+ * @deprecated
89
+ * This function has been deprecated. Use the getItems.
90
+ */
87
91
  getAllItems<K extends StorageValue>(opts: TransactionOptions): Promise<K[]>;
92
+ /**
93
+ * @deprecated
94
+ * This function has been deprecated. Use the getItems.
95
+ */
88
96
  getAllItemsAsMap<K extends StorageValue>(opts: TransactionOptions): Promise<Map<string, K>>;
89
97
  setItem<K extends StorageValue>(key: string, value: K, opts: TransactionOptions & TransactionOptionsSetItem): Promise<void>;
90
98
  setItems<K extends StorageValue>(items: {
package/src/Cache.js CHANGED
@@ -172,12 +172,20 @@ class Cache {
172
172
  return res.map((r) => r.value);
173
173
  });
174
174
  }
175
+ /**
176
+ * @deprecated
177
+ * This function has been deprecated. Use the getItems.
178
+ */
175
179
  getAllItems(opts) {
176
180
  return __awaiter(this, void 0, void 0, function* () {
177
181
  const itemsMap = yield this.getAllItemsAsMap(opts);
178
182
  return Array.from(itemsMap.values());
179
183
  });
180
184
  }
185
+ /**
186
+ * @deprecated
187
+ * This function has been deprecated. Use the getItems.
188
+ */
181
189
  getAllItemsAsMap(opts) {
182
190
  return __awaiter(this, void 0, void 0, function* () {
183
191
  const keys = yield this.getKeys(opts);
package/src/Cache.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Cache.js","sourceRoot":"","sources":["../../../../packages/plugins/src/Cache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAyE;AACzE,8DAA4C;AAC5C,oEAAkD;AAClD,kEAAgD;AAChD,+DAUoC;AACpC,oEAA4C;AAC5C,+DAGwB;AACxB,yEAAiD;AAiBjD,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAgElD,MAAa,KAAK;IAKhB,YAAY,WAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,wBAAwB,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,CAAC,OAAO,GAAG,IAAA,yBAAa,EAAC;YAC3B,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,GAAG,IAAA,yBAAa,EAAC;YACrC,MAAM,EAAE,IAAA,sBAAY,EAAC;gBACnB,GAAG,EAAE,KAAK;aACX,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,UAAU,CAAC,IAAyB;QAClC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,oCAAqB,EAAE,CAAC;YAC9C,IAAI,CAAC,MAAuB,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,oCAAqB,EAAE,CAAC;YAC/C,OAAQ,IAAI,CAAC,MAAuB,CAAC,UAAU,EAAE,CAAC;QACpD,CAAC;QACD,OAAO,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;IAEK,OAAO,CAAC,GAAW,EAAE,IAAwB;;YACjD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CA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C,6DAA6D;oBAC/D,OAAO,EAAE;wBACP,aAAa,EAAE,UACb,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAAI,kCAC7C,EAAE;qBACH;iBACF;aACF,CAAC;QACJ;YACE,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAE;aACX,CAAC;IACN,CAAC;AACH,CAAC;AA/DD,wCA+DC;AAED,SAAgB,QAAQ;IACtB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;AAHD,4BAGC"}
@@ -3,6 +3,8 @@ import { Platform } from '@sonarwatch/portfolio-core';
3
3
  export declare const platformId = "armada-staking-program";
4
4
  export declare const stakePid: PublicKey;
5
5
  export declare const poolsKey = "pools";
6
+ export declare const armadaPlatformId = "armada";
7
+ export declare const armadaPlatform: Platform;
6
8
  export declare const flowmaticPlatformId = "flowmatic";
7
9
  export declare const flowmaticPlatform: Platform;
8
10
  export declare const kishuPlatformId = "kishu";
@@ -11,4 +13,10 @@ export declare const yakuPlatformId = "yaku";
11
13
  export declare const yakuPlatform: Platform;
12
14
  export declare const madbearsPlatformId = "madbears";
13
15
  export declare const madbearsPlatform: Platform;
16
+ export declare const orePlatformId = "ore-refinery";
17
+ export declare const orePlatform: Platform;
18
+ export declare const garyPlatformId = "gary";
19
+ export declare const garyPlatform: Platform;
20
+ export declare const geckoPlatformId = "gecko";
21
+ export declare const geckoPlatform: Platform;
14
22
  export declare const platformByMint: Map<string, string>;
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.platformByMint = exports.madbearsPlatform = exports.madbearsPlatformId = exports.yakuPlatform = exports.yakuPlatformId = exports.kishuPlatform = exports.kishuPlatformId = exports.flowmaticPlatform = exports.flowmaticPlatformId = exports.poolsKey = exports.stakePid = exports.platformId = void 0;
3
+ exports.platformByMint = exports.geckoPlatform = exports.geckoPlatformId = exports.garyPlatform = exports.garyPlatformId = exports.orePlatform = exports.orePlatformId = exports.madbearsPlatform = exports.madbearsPlatformId = exports.yakuPlatform = exports.yakuPlatformId = exports.kishuPlatform = exports.kishuPlatformId = exports.flowmaticPlatform = exports.flowmaticPlatformId = exports.armadaPlatform = exports.armadaPlatformId = exports.poolsKey = exports.stakePid = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'armada-staking-program';
6
6
  exports.stakePid = new web3_js_1.PublicKey('STAKEGztX7S1MUHxcQHieZhELCntb9Ys9BgUbeEtMu1');
7
7
  exports.poolsKey = 'pools';
8
+ exports.armadaPlatformId = 'armada';
9
+ exports.armadaPlatform = {
10
+ id: exports.armadaPlatformId,
11
+ name: 'Armada',
12
+ defiLlamaId: 'armada-staking',
13
+ image: 'https://sonar.watch/img/platforms/armada.webp',
14
+ website: 'https://www.armadafi.so/',
15
+ twitter: 'https://twitter.com/ArmadaFi',
16
+ };
8
17
  exports.flowmaticPlatformId = 'flowmatic';
9
18
  exports.flowmaticPlatform = {
10
19
  id: exports.flowmaticPlatformId,
@@ -37,10 +46,37 @@ exports.madbearsPlatform = {
37
46
  website: 'https://staking.madbears.club/',
38
47
  twitter: 'https://twitter.com/FlowmaticXYZ',
39
48
  };
49
+ exports.orePlatformId = 'ore-refinery';
50
+ exports.orePlatform = {
51
+ id: exports.orePlatformId,
52
+ name: 'Ore Refinery',
53
+ image: 'https://sonar.watch/img/platforms/ore.webp',
54
+ website: 'https://ore-refinery.netlify.app/',
55
+ twitter: 'https://twitter.com/OreSupply',
56
+ };
57
+ exports.garyPlatformId = 'gary';
58
+ exports.garyPlatform = {
59
+ id: exports.garyPlatformId,
60
+ name: 'Gary',
61
+ image: 'https://sonar.watch/img/platforms/gary.webp',
62
+ website: 'https://gary.club/lock_gary',
63
+ twitter: 'https://twitter.com/GaryCoinOnSol',
64
+ };
65
+ exports.geckoPlatformId = 'gecko';
66
+ exports.geckoPlatform = {
67
+ id: exports.geckoPlatformId,
68
+ name: 'Gecko',
69
+ image: 'https://sonar.watch/img/platforms/gecko.webp',
70
+ website: 'https://staking.geckocoin.xyz/',
71
+ twitter: 'https://twitter.com/GeckCoin',
72
+ };
40
73
  exports.platformByMint = new Map([
41
74
  ['BDssJun8XSPmWq7VkoahyozsvJwKEZBkWE6YBrFHjbii', exports.kishuPlatformId],
42
75
  ['AqEHVh8J2nXH9saV2ciZyYwPpqWFRfD2ffcq5Z8xxqm5', exports.yakuPlatformId],
43
76
  ['Eh1fXbAipe4k7CYR9UMb2bbWmBcpU3HcyX3LWuRVFBLz', exports.flowmaticPlatformId],
44
77
  ['Ee1pKgTQmP5xjYQs76HmRM2c2YkqEdc9tk5mQbiGFigT', exports.madbearsPlatformId],
78
+ ['oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz', exports.orePlatformId],
79
+ ['8c71AvjQeKKeWRe8jtTGG1bJ2WiYXQdbjqFbUfhHgSVk', exports.garyPlatformId],
80
+ ['6CNHDCzD5RkvBWxxyokQQNQPjFWgoHF94D7BmC73X6ZK', exports.geckoPlatformId],
45
81
  ]);
46
82
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,wBAAwB,CAAC;AACtC,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AAEnB,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,4BAA4B;IACrC,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,6CAA6C;IACpD,OAAO,EAAE,kCAAkC;IAC3C,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,sBAAc;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,OAAO,EAAE,0BAA0B;IACnC,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,gDAAgD;IACvD,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,GAAG,CAAC;IACpC,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,sBAAc,CAAC;IAChE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;CACrE,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,wBAAwB,CAAC;AACtC,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AAEnB,QAAA,gBAAgB,GAAG,QAAQ,CAAC;AAC5B,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,wBAAgB;IACpB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE,+CAA+C;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OAAO,EAAE,6BAA6B;IACtC,OAAO,EAAE,mCAAmC;CAC7C,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,gCAAgC;IACzC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,GAAG,CAAC;IACpC,CAAC,8CAA8C,EAAE,uBAAe,CAAC;IACjE,CAAC,8CAA8C,EAAE,sBAAc,CAAC;IAChE,CAAC,8CAA8C,EAAE,2BAAmB,CAAC;IACrE,CAAC,8CAA8C,EAAE,0BAAkB,CAAC;IACpE,CAAC,6CAA6C,EAAE,qBAAa,CAAC;IAC9D,CAAC,8CAA8C,EAAE,sBAAc,CAAC;IAChE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;CAClE,CAAC,CAAC"}
@@ -12,6 +12,10 @@ exports.platforms = [
12
12
  constants_1.yakuPlatform,
13
13
  constants_1.madbearsPlatform,
14
14
  constants_1.kishuPlatform,
15
+ constants_1.armadaPlatform,
16
+ constants_1.garyPlatform,
17
+ constants_1.geckoPlatform,
18
+ constants_1.orePlatform,
15
19
  ];
16
20
  exports.jobs = [poolsJob_1.default];
17
21
  exports.fetchers = [stakingFetcher_1.default];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAKqB;AACrB,0DAAkC;AAClC,sEAA8C;AAEjC,QAAA,SAAS,GAAe;IACnC,6BAAiB;IACjB,wBAAY;IACZ,4BAAgB;IAChB,yBAAa;CACd,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CASqB;AACrB,0DAAkC;AAClC,sEAA8C;AAEjC,QAAA,SAAS,GAAe;IACnC,6BAAiB;IACjB,wBAAY;IACZ,4BAAgB;IAChB,yBAAa;IACb,0BAAc;IACd,wBAAY;IACZ,yBAAa;IACb,uBAAW;CACZ,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
@@ -29,7 +29,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
29
29
  return [];
30
30
  const mintByPool = new Map();
31
31
  pools.forEach((pool) => mintByPool.set(pool.pubkey, pool.mint));
32
- const mints = Array.from(mintByPool.values());
32
+ const mints = pools.map((pool) => pool.mint);
33
33
  const tokenPricesById = yield cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana);
34
34
  const stakeAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.StakeDepositReceiptStruct, constants_1.stakePid, (0, filters_1.stakeFilters)(owner));
35
35
  if (stakeAccounts.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAA6E;AAC7E,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAyC;AACzC,iDAAsD;AACtD,qGAA6E;AAG7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC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,sBAAU,EAAE;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/armada-staking/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAA6E;AAC7E,+CAA8D;AAC9D,uCAAsD;AACtD,uCAAyC;AACzC,iDAAsD;AACtD,qGAA6E;AAG7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAa,oBAAQ,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,UAAU,GAAwB,IAAI,GAAG,EAAE,CAAC;IAClD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAEhE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACrD,KAAK,EACL,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAwB,EAClD,MAAM,EACN,mCAAyB,EACzB,oBAAQ,EACR,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB,CAAC;IACF,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAA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Q,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,gBAAgB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,CAC5C,QAAQ,CAAC,IAAI,CAAC;QACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,EAAE,MAAM,EAAE;QAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KAC1D,CAAC,CACH,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,EAAE;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,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;
@@ -1,4 +1,4 @@
1
- export declare const voteAccountFilters: (address: string) => ({
1
+ export declare const voteFilters: (address: string) => ({
2
2
  dataSize: number;
3
3
  memcmp?: undefined;
4
4
  } | {
@@ -8,7 +8,7 @@ export declare const voteAccountFilters: (address: string) => ({
8
8
  };
9
9
  dataSize?: undefined;
10
10
  })[];
11
- export declare const voterAccountFilters: (address: string) => ({
11
+ export declare const voterFilters: (address: string) => ({
12
12
  dataSize: number;
13
13
  memcmp?: undefined;
14
14
  } | {
@@ -18,12 +18,12 @@ export declare const voterAccountFilters: (address: string) => ({
18
18
  };
19
19
  dataSize?: undefined;
20
20
  })[];
21
- export declare const governanceAccountFilter: () => {
21
+ export declare const governanceFilters: () => {
22
22
  memcmp: {
23
23
  offset: number;
24
24
  bytes: string;
25
25
  };
26
26
  }[];
27
- export declare const registratAccountFilter: () => {
27
+ export declare const registrarFilters: () => {
28
28
  dataSize: number;
29
29
  }[];
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registratAccountFilter = exports.governanceAccountFilter = exports.voterAccountFilters = exports.voteAccountFilters = void 0;
3
+ exports.registrarFilters = exports.governanceFilters = exports.voterFilters = exports.voteFilters = void 0;
4
4
  const realms_1 = require("./structs/realms");
5
- const voteAccountFilters = (address) => [
5
+ const voteFilters = (address) => [
6
6
  { dataSize: realms_1.voteStruct.byteSize },
7
7
  {
8
8
  memcmp: {
@@ -11,8 +11,8 @@ const voteAccountFilters = (address) => [
11
11
  },
12
12
  },
13
13
  ];
14
- exports.voteAccountFilters = voteAccountFilters;
15
- const voterAccountFilters = (address) => [
14
+ exports.voteFilters = voteFilters;
15
+ const voterFilters = (address) => [
16
16
  { dataSize: realms_1.voterStruct.byteSize },
17
17
  {
18
18
  memcmp: {
@@ -21,8 +21,8 @@ const voterAccountFilters = (address) => [
21
21
  },
22
22
  },
23
23
  ];
24
- exports.voterAccountFilters = voterAccountFilters;
25
- const governanceAccountFilter = () => [
24
+ exports.voterFilters = voterFilters;
25
+ const governanceFilters = () => [
26
26
  {
27
27
  memcmp: {
28
28
  offset: 0,
@@ -30,7 +30,7 @@ const governanceAccountFilter = () => [
30
30
  },
31
31
  },
32
32
  ];
33
- exports.governanceAccountFilter = governanceAccountFilter;
34
- const registratAccountFilter = () => [{ dataSize: 880 }];
35
- exports.registratAccountFilter = registratAccountFilter;
33
+ exports.governanceFilters = governanceFilters;
34
+ const registrarFilters = () => [{ dataSize: 880 }];
35
+ exports.registrarFilters = registrarFilters;
36
36
  //# sourceMappingURL=filters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/filters.ts"],"names":[],"mappings":";;;AAAA,6CAA2D;AAEpD,MAAM,kBAAkB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACrD,EAAE,QAAQ,EAAE,mBAAU,CAAC,QAAQ,EAAE;IACjC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACtD,EAAE,QAAQ,EAAE,oBAAW,CAAC,QAAQ,EAAE;IAClC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,mBAAmB,uBAQ9B;AAEK,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC;IAC3C;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,GAAG;SACX;KACF;CACF,CAAC;AAPW,QAAA,uBAAuB,2BAOlC;AAEK,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAAnD,QAAA,sBAAsB,0BAA6B"}
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/filters.ts"],"names":[],"mappings":";;;AAAA,6CAA2D;AAEpD,MAAM,WAAW,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IAC9C,EAAE,QAAQ,EAAE,mBAAU,CAAC,QAAQ,EAAE;IACjC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,WAAW,eAQtB;AAEK,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IAC/C,EAAE,QAAQ,EAAE,oBAAW,CAAC,QAAQ,EAAE;IAClC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AARW,QAAA,YAAY,gBAQvB;AAEK,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC;IACrC;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,GAAG;SACX;KACF;CACF,CAAC;AAPW,QAAA,iBAAiB,qBAO5B;AAEK,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;AAA7C,QAAA,gBAAgB,oBAA6B"}
@@ -42,7 +42,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
42
42
  const getAccountSplGovPromises = [];
43
43
  if (splGovPrograms) {
44
44
  for (const program of splGovPrograms) {
45
- getAccountSplGovPromises.push((0, solana_1.getParsedProgramAccounts)(client, realms_1.voteStruct, new web3_js_1.PublicKey(program), (0, filters_1.voteAccountFilters)(owner)));
45
+ getAccountSplGovPromises.push((0, solana_1.getParsedProgramAccounts)(client, realms_1.voteStruct, new web3_js_1.PublicKey(program), (0, filters_1.voteFilters)(owner)));
46
46
  }
47
47
  }
48
48
  const splGovAccounts = (yield Promise.all(getAccountSplGovPromises)).flat();
@@ -1 +1 @@
1
- {"version":3,"file":"realmsDepositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsDepositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,+CAG4B;AAC5B,6CAA2D;AAC3D,uCAA+C;AAC/C,qGAA6E;AAC7E,uCAAwD;AAGxD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,OAAO,CAAY,MAAM,EAAE;QACvD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,CAAC;IAC7C,MAAM,aAAa,GAAwB,IAAI,GAAG,EAAE,CAAC;IACrD,MAAM,QAAQ,GAAgB,IAAI,GAAG,EAAE,CAAC;IAExC,MAAM,oBAAoB,GAAgB,EAAE,CAAC;IAC7C,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;QAC7C,oBAAoB,CAAC,IAAI,CACvB,IAAA,qBAAW,EAAC,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAC5D,CAAC;QACF,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACjC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,EAA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,OAAO,CAAC,MAAM,CAAC,KAAK,EACpB,OAAO,CAAC,MAAM,CAAC,IAAI,CACpB,CAAC;gBAEF,YAAY,CAAC,IAAI,CACf,WAAW,CAAC,CAAC,iCAAM,KAAK,KAAE,UAAU,EAAE,EAAE,WAAW,EAAE,IAAG,CAAC,CAAC,KAAK,CAChE,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACvD,IAAI,EAAE;gBACJ,MAAM,EAAE,YAAY;aACrB;SACF,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"}
@@ -24,14 +24,14 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
24
24
  const splGovPrograms = yield axios_1.default.get(constants_1.splGovernanceUrl);
25
25
  const client = (0, clients_1.getClientSolana)();
26
26
  const registrars = [];
27
- const allRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, constants_1.realmsVsrProgram, (0, filters_1.registratAccountFilter)());
27
+ const allRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, constants_1.realmsVsrProgram, (0, filters_1.registrarFilters)());
28
28
  allRegistrars.forEach((account) => registrars.push({
29
29
  vsr: constants_1.realmsVsrProgram.toString(),
30
30
  pubkey: account.pubkey.toString(),
31
31
  mint: account.realmGoverningTokenMint.toString(),
32
32
  }));
33
33
  for (const vsrInfo of constants_1.realmsCustomVsrInfo) {
34
- const customRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, new web3_js_1.PublicKey(vsrInfo.programId), (0, filters_1.registratAccountFilter)());
34
+ const customRegistrars = yield (0, solana_1.getParsedProgramAccounts)(client, realms_1.registrarStruct, new web3_js_1.PublicKey(vsrInfo.programId), (0, filters_1.registrarFilters)());
35
35
  customRegistrars.forEach((registrar) => registrars.push({
36
36
  pubkey: registrar.pubkey.toString(),
37
37
  vsr: vsrInfo.programId.toString(),
@@ -1 +1 @@
1
- {"version":3,"file":"realmsProgramsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsProgramsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AACvD,6CAA4C;AAG5C,2CAKqB;AACrB,+CAA8D;AAC9D,iDAAsD;AACtD,6CAAmD;AACnD,uCAAmD;AAGnD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,cAAc,GAA4B,MAAM,eAAK,CAAC,GAAG,CAC7D,4BAAgB,CACjB,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,UAAU,GAAoB,EAAE,CAAC;IACvC,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAwB,EAClD,MAAM,EACN,wBAAe,EACf,4BAAgB,EAChB,IAAA,gCAAsB,GAAE,CACzB,CAAC;IACF,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAChC,UAAU,CAAC,IAAI,CAAC;QACd,GAAG,EAAE,4BAAgB,CAAC,QAAQ,EAAE;QAChC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;QACjC,IAAI,EAAE,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;KACjD,CAAC,CACH,CAAC;IACF,KAAK,MAAM,OAAO,IAAI,+BAAmB,EAAE,CAAC;QAC1C,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAe,EACf,IAAI,mBAAS,CAAC,OAAO,CAAC,SAAS,CAAC,EAChC,IAAA,gCAAsB,GAAE,CACzB,CAAC;QACF,gBAAgB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CACrC,UAAU,CAAC,IAAI,CAAC;YACd,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;YACnC,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE;YACjC,IAAI,EAAE,OAAO,CAAC,IAAI;SACnB,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM,UAAU,GAAc;QAC5B,WAAW,EAAE,cAAc,CAAC,IAAI;QAChC,UAAU;KACX,CAAC;IAEF,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE;QACtC,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,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"realmsProgramsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/daos/realmsProgramsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AACvD,6CAA4C;AAG5C,2CAKqB;AACrB,+CAA8D;AAC9D,iDAAsD;AACtD,6CAAmD;AACnD,uCAA6C;AAG7C,MAAM,QAAQ,GAAgB,CA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AAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import { PortfolioAsset } from '@sonarwatch/portfolio-core';
3
- export declare function deriveClaimStatus(claimant: PublicKey, distributor: PublicKey, programId: PublicKey): PublicKey;
3
+ export declare function deriveClaimStatus(claimant: string, merkleTree: string, merkleDistributor: string): PublicKey;
4
4
  export declare function getVotePda(owner: string): PublicKey;
5
5
  export declare function getJupiterPrices(mints: PublicKey[], vsMint: PublicKey): Promise<Map<string, number>>;
6
6
  export declare function getMergedAssets(assets: PortfolioAsset[]): PortfolioAsset[];
@@ -17,8 +17,12 @@ const web3_js_1 = require("@solana/web3.js");
17
17
  const axios_1 = __importDefault(require("axios"));
18
18
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
19
19
  const constants_1 = require("./launchpad/constants");
20
- function deriveClaimStatus(claimant, distributor, programId) {
21
- return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('ClaimStatus'), claimant.toBytes(), distributor.toBytes()], programId)[0];
20
+ function deriveClaimStatus(claimant, merkleTree, merkleDistributor) {
21
+ return web3_js_1.PublicKey.findProgramAddressSync([
22
+ Buffer.from('ClaimStatus'),
23
+ new web3_js_1.PublicKey(claimant).toBytes(),
24
+ new web3_js_1.PublicKey(merkleTree).toBytes(),
25
+ ], new web3_js_1.PublicKey(merkleDistributor))[0];
22
26
  }
23
27
  exports.deriveClaimStatus = deriveClaimStatus;
24
28
  function getVotePda(owner) {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA4C;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,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO;YAAE,SAAS;QAErC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC;QAC/B,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;QACtC,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC;QAC/B,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC/C,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,IAAI,CAAC,MAAM,IAAI,WAAW,CAAC;YACzC,aAAa,CAAC,KAAK,GAAG,IAAA,+BAAc,EAAC,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;YACxE,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;AAC1C,CAAC;AAnBD,0CAmBC"}
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
16
  const axios_1 = __importDefault(require("axios"));
17
- const web3_js_1 = require("@solana/web3.js");
18
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
18
  const clients_1 = require("../../../utils/clients");
20
19
  const helpers_1 = require("../helpers");
@@ -41,7 +40,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
41
40
  continue;
42
41
  eligibleAirdrops.push(constants_1.airdropsInfo[i]);
43
42
  proofs.push(proof.data);
44
- claimsPubkeys.push((0, helpers_1.deriveClaimStatus)(new web3_js_1.PublicKey(owner), new web3_js_1.PublicKey(proof.data.merkle_tree), constants_1.airdropsInfo[i].ownMerkleDistributor || constants_1.merkleDistributorPid));
43
+ claimsPubkeys.push((0, helpers_1.deriveClaimStatus)(owner, proof.data.merkle_tree, constants_1.airdropsInfo[i].distributorProgram));
45
44
  }
46
45
  if (proofs.length === 0)
47
46
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"allocationsFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/allocationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,kDAA6C;AAC7C,6CAA4C;AAC5C,gEAAqC;AAGrC,oDAAyD;AAEzD,wCAA+C;AAC/C,wGAAgF;AAChF,uCAA8C;AAC9C,2CAMqB;AACrB,kDAAsE;AAEtE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,WAAW,GACf,MAAM,OAAO,CAAC,GAAG,CACf,wBAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YACnC,OAAO,eAAK;iBACT,GAAG,CAAC,GAAG,qBAAS,IAAI,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iBAC5D,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACH,CAAC;IAEJ,MAAM,gBAAgB,GAAkB,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAyB,EAAE,CAAC;IACxC,MAAM,aAAa,GAAgB,EAAE,CAAC;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,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CAAC;QAE/C,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAE5C,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,KAAK,CAAC,MAAM,CAAC;aACvC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC;aACzB,QAAQ,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,IAAI,EACJ,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAE,kCAAsB;YAClC,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,kCAAsB,aAAa;IAC1C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"allocationsFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/allocationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,kDAA6C;AAE7C,gEAAqC;AAGrC,oDAAyD;AAEzD,wCAA+C;AAC/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AAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAE,kCAAsB;YAClC,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,kCAAsB,aAAa;IAC1C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -6,12 +6,11 @@ export declare const voteProgramId: PublicKey;
6
6
  export declare const lockerPubkey: PublicKey;
7
7
  export declare const jupMint = "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN";
8
8
  export declare const jupDecimals = 6;
9
- export declare const merkleDistributorPid: PublicKey;
10
9
  export declare const merkleApi = "https://worker.jup.ag/jup-claim-proof";
11
10
  export type AirdropInfo = {
12
11
  mint: string;
13
12
  decimals: number;
14
13
  claimUntilTs: number;
15
- ownMerkleDistributor?: PublicKey;
14
+ distributorProgram: string;
16
15
  };
17
16
  export declare const airdropsInfo: AirdropInfo[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.airdropsInfo = exports.merkleApi = exports.merkleDistributorPid = exports.jupDecimals = exports.jupMint = exports.lockerPubkey = exports.voteProgramId = exports.jupLaunchpadPlatform = exports.jupLaunchpadPlatformId = void 0;
3
+ exports.airdropsInfo = exports.merkleApi = exports.jupDecimals = exports.jupMint = exports.lockerPubkey = exports.voteProgramId = exports.jupLaunchpadPlatform = exports.jupLaunchpadPlatformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.jupLaunchpadPlatformId = 'jupiter-launchpad';
6
6
  exports.jupLaunchpadPlatform = {
@@ -14,24 +14,25 @@ exports.voteProgramId = new web3_js_1.PublicKey('voTpe3tHQ7AjQHMapgSue2HJFAh2cGs
14
14
  exports.lockerPubkey = new web3_js_1.PublicKey('CVMdMd79no569tjc5Sq7kzz8isbfCcFyBS5TLGsrZ5dN');
15
15
  exports.jupMint = 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN';
16
16
  exports.jupDecimals = 6;
17
- exports.merkleDistributorPid = new web3_js_1.PublicKey('meRjbQXFNf5En86FXT2YPz1dQzLj4Yb3xK8u1MVgqpb');
18
17
  exports.merkleApi = 'https://worker.jup.ag/jup-claim-proof';
19
18
  exports.airdropsInfo = [
20
19
  {
21
20
  mint: 'JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN',
22
21
  decimals: 6,
23
22
  claimUntilTs: 1722430800000,
23
+ distributorProgram: 'meRjbQXFNf5En86FXT2YPz1dQzLj4Yb3xK8u1MVgqpb',
24
24
  },
25
25
  {
26
26
  mint: 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq',
27
27
  decimals: 6,
28
28
  claimUntilTs: 1713445200000,
29
+ distributorProgram: 'DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j',
29
30
  },
30
31
  {
31
32
  mint: 'TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6',
32
33
  decimals: 9,
33
34
  claimUntilTs: 1728086400000,
34
- ownMerkleDistributor: new web3_js_1.PublicKey('DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j'),
35
+ distributorProgram: 'DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j',
35
36
  },
36
37
  ];
37
38
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAC/C,6CAA6C,CAC9C,CAAC;AACW,QAAA,SAAS,GAAG,uCAAuC,CAAC;AAQpD,QAAA,YAAY,GAAkB;IACzC;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;KAC5B;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;KAC5B;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,oBAAoB,EAAE,IAAI,mBAAS,CACjC,8CAA8C,CAC/C;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,SAAS,GAAG,uCAAuC,CAAC;AAQpD,QAAA,YAAY,GAAkB;IACzC;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,6CAA6C;KAClE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;CACF,CAAC"}
@@ -22,14 +22,16 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
22
22
  const banksAccount = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.bankStruct, constants_1.mangoV4Pid, filters_1.banksFilter);
23
23
  if (!banksAccount)
24
24
  return;
25
+ const banks = [];
26
+ const rateItems = [];
25
27
  for (let index = 0; index < banksAccount.length; index++) {
26
28
  const bank = banksAccount[index];
27
29
  if (!bank)
28
30
  continue;
29
31
  const depositApr = (0, helpers_1.getDepositRate)(bank);
30
32
  const borrowApr = (0, helpers_1.getBorrowRate)(bank);
31
- yield cache.setItem(bank.tokenIndex.toString(), Object.assign(Object.assign({}, bank), { depositApr,
32
- borrowApr }), { prefix: constants_1.banksPrefix, networkId: portfolio_core_1.NetworkId.solana });
33
+ banks.push(Object.assign(Object.assign({}, bank), { depositApr,
34
+ borrowApr }));
33
35
  const tokenAddress = bank.mint.toString();
34
36
  const res = yield (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(bank.mint, client);
35
37
  if (!res)
@@ -60,11 +62,19 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
60
62
  platformId: constants_1.platformId,
61
63
  poolName: 'Main',
62
64
  };
63
- yield cache.setItem(`${bank.vault.toString()}-${tokenAddress}`, rate, {
64
- prefix: portfolio_core_1.borrowLendRatesPrefix,
65
- networkId: portfolio_core_1.NetworkId.solana,
65
+ rateItems.push({
66
+ key: `${bank.vault.toString()}-${tokenAddress}`,
67
+ value: rate,
66
68
  });
67
69
  }
70
+ yield cache.setItem(constants_1.banksKey, banks, {
71
+ prefix: constants_1.platformId,
72
+ networkId: portfolio_core_1.NetworkId.solana,
73
+ });
74
+ yield cache.setItems(rateItems, {
75
+ prefix: portfolio_core_1.borrowLendRatesPrefix,
76
+ networkId: portfolio_core_1.NetworkId.solana,
77
+ });
68
78
  });
69
79
  const job = {
70
80
  id: `${constants_1.platformId}-banks`,