@sonarwatch/portfolio-plugins 0.11.173 → 0.11.175

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/CHANGELOG.md +1415 -1407
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  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/mango/banksJob.js +15 -5
  23. package/src/plugins/mango/banksJob.js.map +1 -1
  24. package/src/plugins/mango/collateralFetcher.js +4 -4
  25. package/src/plugins/mango/collateralFetcher.js.map +1 -1
  26. package/src/plugins/mango/constants.d.ts +1 -1
  27. package/src/plugins/mango/constants.js +2 -2
  28. package/src/plugins/mango/constants.js.map +1 -1
  29. package/src/plugins/marginfi/banksJob.js +34 -9
  30. package/src/plugins/marginfi/banksJob.js.map +1 -1
  31. package/src/plugins/marginfi/constants.d.ts +1 -1
  32. package/src/plugins/marginfi/constants.js +2 -2
  33. package/src/plugins/marginfi/constants.js.map +1 -1
  34. package/src/plugins/marginfi/depositsFetcher.js +12 -41
  35. package/src/plugins/marginfi/depositsFetcher.js.map +1 -1
  36. package/src/plugins/marginfi/filters.js +4 -0
  37. package/src/plugins/marginfi/filters.js.map +1 -1
  38. package/src/plugins/marginfi/helpers.d.ts +1 -1
  39. package/src/plugins/marginfi/helpers.js +41 -31
  40. package/src/plugins/marginfi/helpers.js.map +1 -1
  41. package/src/plugins/marginfi/structs/Bank.d.ts +19 -12
  42. package/src/plugins/marginfi/structs/Bank.js +19 -12
  43. package/src/plugins/marginfi/structs/Bank.js.map +1 -1
  44. package/src/plugins/marginfi/types.d.ts +7 -3
  45. package/src/plugins/rain/helpers.d.ts +1 -1
  46. package/src/plugins/rain/helpers.js +1 -1
  47. package/src/plugins/rain/helpers.js.map +1 -1
  48. package/src/plugins/rain/poolsFetcher.js +1 -3
  49. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  50. package/src/plugins/solend/marketsJob.js +1 -1
  51. package/src/plugins/solend/marketsJob.js.map +1 -1
  52. package/src/plugins/solend/reservesJob.js +24 -14
  53. package/src/plugins/solend/reservesJob.js.map +1 -1
  54. package/src/plugins/suilend/marketsJob.js +1 -1
  55. package/src/plugins/suilend/marketsJob.js.map +1 -1
  56. package/src/plugins/sushiswap/helpers.js +24 -24
  57. package/src/plugins/uniswap-v2/helpers.js +22 -22
  58. package/src/utils/sei/constants.js +8 -8
  59. 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.173",
3
+ "version": "0.11.175",
4
4
  "type": "commonjs",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
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,IA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ACN,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,IAAI,SAAS;iBAC/D;aACF,CAAC;QACJ,KAAK,OAAO;YACV,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE;oBACN,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,gBAAgB;oBAC9D,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,KAAK,MAAM;oBACrD,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,GAAG,EAAE,EAAE,CAAC;oBAC7D,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;wBACxC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC;wBACrD,CAAC,CAAC,SAAS;iBACd;aACF,CAAC;QACJ,KAAK,MAAM;YACT,OAAO;gBACL,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE;oBACN,IAAI,EACF,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;wBACrC,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;IACtD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,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,CAA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,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,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,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IAE9C,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,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C;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,GA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ED,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"}
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,uCAAwC;AACxC,qGAA6E;AAC7E,uCAAwD;AAGxD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,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,C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c,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,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,0BAAgB,GAAE,CACnB,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,0BAAgB,GAAE,CACnB,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"}
@@ -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`,
@@ -1 +1 @@
1
- {"version":3,"file":"banksJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/banksJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAkE;AAClE,+CAA8D;AAC9D,qCAAsC;AACtC,uCAAwC;AACxC,uCAA0D;AAC1D,iDAAsD;AACtD,gGAA6F;AAE7F,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAA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AAY,EAAE;gBACZ,GAAG,EAAE,IAAA,yBAAQ,EAAC,UAAU,CAAC;gBACzB,GAAG,EAAE,UAAU;aAChB;YACD,eAAe;YACf,UAAU,EAAV,sBAAU;YACV,QAAQ,EAAE,MAAM;SACjB,CAAC;QACF,SAAS,CAAC,IAAI,CAAC;YACb,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,YAAY,EAAE;YAC/C,KAAK,EAAE,IAAI;SACZ,CAAC,CAAC;IACL,CAAC;IACD,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,KAAK,EAAE;QACnC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,MAAM,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE;QAC9B,MAAM,EAAE,sCAAqB;QAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -26,15 +26,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
26
26
  const userAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.mangoAccountStruct, constants_1.mangoV4Pid, (0, filters_1.accountsFilter)(owner));
27
27
  if (userAccounts.length === 0)
28
28
  return [];
29
- const banks = yield cache.getAllItems({
30
- prefix: constants_1.banksPrefix,
29
+ const banks = yield cache.getItem(constants_1.banksKey, {
30
+ prefix: constants_1.platformId,
31
31
  networkId: portfolio_core_1.NetworkId.solana,
32
32
  });
33
+ if (!banks)
34
+ return [];
33
35
  const tokensMints = new Set();
34
36
  const bankByIndex = new Map();
35
37
  banks.forEach((bank) => {
36
- if (!bank)
37
- return;
38
38
  bankByIndex.set(bank.tokenIndex, bank);
39
39
  tokensMints.add(bank.mint.toString());
40
40
  });
@@ -1 +1 @@
1
- {"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AAGrC,2CAAkE;AAClE,iDAAsD;AACtD,qCAA8C;AAC9C,uCAA2C;AAC3C,+CAA+E;AAC/E,qGAA6E;AAC7E,6EAAqD;AAGrD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAwB,EACjD,MAAM,EACN,2BAAkB,EAClB,sBAAU,EACV,IAAA,wBAAc,EAAC,KAAK,CAAC,CACtB,CAAC;IACF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,WAAW,CAAe;QAClD,MAAM,EAAE,uBAAW;QACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,MAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,MAAM,WAAW,GAA8B,IAAI,GAAG,EAAE,CAAC;IACzD,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC,IAAI;YAAE,OAAO;QAClB,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACvC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,MAAM,IAAA,oBAAU,EACxC,CAAC,GAAG,WAAW,CAAC,CAAC,GAAG,CAClB,CAAC,IAAI,EA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I;gBAErB,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;YACD,IAAI,EAAE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"collateralFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/collateralFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AAGrC,2CAA+D;AAC/D,iDAAsD;AACtD,qCAA8C;AAC9C,uCAA2C;AAC3C,+CAA+E;AAC/E,qGAA6E;AAC7E,6EAAqD;AAGrD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAwB,EACjD,MAAM,EACN,2BAAkB,EAClB,sBAAU,EACV,IAAA,wBAAc,EAAC,KAAK,CAAC,CACtB,CAAC;IACF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,OAAO,CAAiB,oBAAQ,EAAE;QAC1D,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,MAAM,WAAW,GAA8B,IAAI,GAAG,EAAE,CAAC;IACzD,KAAK,CAAC,OAAO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AAE,cAAc,EAAE,YAAY,CAAC,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,eAAe,EAAE,IAAI;gBAErB,WAAW;gBACX,YAAY;gBACZ,WAAW;gBACX,KAAK;aACN;YACD,IAAI,EAAE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,aAAa;IAC9B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -2,7 +2,7 @@ import { PublicKey } from '@solana/web3.js';
2
2
  import { Platform } from '@sonarwatch/portfolio-core';
3
3
  export declare const platformId = "mango";
4
4
  export declare const mangoPlatform: Platform;
5
- export declare const banksPrefix = "mango-banks";
5
+ export declare const banksKey = "banks";
6
6
  export declare const rootBankPrefix = "mango-rootBank";
7
7
  export declare const groupPrefix = "mango-group";
8
8
  export declare const boostBanksKey = "boost-banks";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.boostProgramId = exports.redeemProgramId = exports.mangoV4Pid = exports.boostBanksKey = exports.groupPrefix = exports.rootBankPrefix = exports.banksPrefix = exports.mangoPlatform = exports.platformId = void 0;
3
+ exports.boostProgramId = exports.redeemProgramId = exports.mangoV4Pid = exports.boostBanksKey = exports.groupPrefix = exports.rootBankPrefix = exports.banksKey = exports.mangoPlatform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'mango';
6
6
  exports.mangoPlatform = {
@@ -10,7 +10,7 @@ exports.mangoPlatform = {
10
10
  defiLlamaId: 'parent#mango-markets',
11
11
  website: 'https://mango.markets/',
12
12
  };
13
- exports.banksPrefix = `${exports.platformId}-banks`;
13
+ exports.banksKey = `banks`;
14
14
  exports.rootBankPrefix = `${exports.platformId}-rootBank`;
15
15
  exports.groupPrefix = `${exports.platformId}-group`;
16
16
  exports.boostBanksKey = 'boost-banks';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,sBAAsB;IACnC,OAAO,EAAE,wBAAwB;CAClC,CAAC;AACW,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,sBAAsB;IACnC,OAAO,EAAE,wBAAwB;CAClC,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC"}