@sonarwatch/portfolio-plugins 0.12.174 → 0.12.177

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/CHANGELOG.md +1510 -1498
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +4 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/bluemove/constants.js +1 -1
  8. package/src/plugins/bluemove/constants.js.map +1 -1
  9. package/src/plugins/cetus/constants.js +1 -1
  10. package/src/plugins/cetus/constants.js.map +1 -1
  11. package/src/plugins/drift/constants.js +1 -1
  12. package/src/plugins/drift/constants.js.map +1 -1
  13. package/src/plugins/elemental/constants.d.ts +6 -0
  14. package/src/plugins/elemental/constants.js +20 -0
  15. package/src/plugins/elemental/constants.js.map +1 -0
  16. package/src/plugins/elemental/depositFetcher.d.ts +5 -0
  17. package/src/plugins/elemental/depositFetcher.js +96 -0
  18. package/src/plugins/elemental/depositFetcher.js.map +1 -0
  19. package/src/plugins/elemental/elementalVaultIDL.d.ts +67 -0
  20. package/src/plugins/elemental/elementalVaultIDL.js +342 -0
  21. package/src/plugins/elemental/elementalVaultIDL.js.map +1 -0
  22. package/src/plugins/elemental/filters.d.ts +3 -0
  23. package/src/plugins/elemental/filters.js +21 -0
  24. package/src/plugins/elemental/filters.js.map +1 -0
  25. package/src/plugins/elemental/helpers.d.ts +5 -0
  26. package/src/plugins/elemental/helpers.js +29 -0
  27. package/src/plugins/elemental/helpers.js.map +1 -0
  28. package/src/plugins/elemental/index.d.ts +6 -0
  29. package/src/plugins/elemental/index.js +13 -0
  30. package/src/plugins/elemental/index.js.map +1 -0
  31. package/src/plugins/elemental/poolsJob.d.ts +3 -0
  32. package/src/plugins/elemental/poolsJob.js +35 -0
  33. package/src/plugins/elemental/poolsJob.js.map +1 -0
  34. package/src/plugins/elemental/structs.d.ts +48 -0
  35. package/src/plugins/elemental/structs.js +50 -0
  36. package/src/plugins/elemental/structs.js.map +1 -0
  37. package/src/plugins/elemental/types.d.ts +37 -0
  38. package/src/plugins/elemental/types.js +3 -0
  39. package/src/plugins/elemental/types.js.map +1 -0
  40. package/src/plugins/hawksight/constants.js +1 -1
  41. package/src/plugins/hawksight/constants.js.map +1 -1
  42. package/src/plugins/hedgehog/constants.js +1 -1
  43. package/src/plugins/hedgehog/constants.js.map +1 -1
  44. package/src/plugins/jewel/constants.js +1 -0
  45. package/src/plugins/jewel/constants.js.map +1 -1
  46. package/src/plugins/kriya/constants.js +1 -1
  47. package/src/plugins/kriya/constants.js.map +1 -1
  48. package/src/plugins/sandglass/depositFetcher.js +7 -2
  49. package/src/plugins/sandglass/depositFetcher.js.map +1 -1
  50. package/src/plugins/sandglass/marketsJob.js +22 -1
  51. package/src/plugins/sandglass/marketsJob.js.map +1 -1
  52. package/src/plugins/stabble/constants.js +1 -1
  53. package/src/plugins/sushiswap/helpers.js +24 -24
  54. package/src/plugins/typus/constants.js +1 -1
  55. package/src/plugins/typus/constants.js.map +1 -1
  56. package/src/plugins/uniswap-v2/helpers.js +22 -22
  57. package/src/plugins/zeta/airdropFetcher.js +14 -14
  58. package/src/utils/elementbuilder/AssetBuilder.d.ts +2 -1
  59. package/src/utils/elementbuilder/AssetBuilder.js +2 -1
  60. package/src/utils/elementbuilder/AssetBuilder.js.map +1 -1
  61. package/src/utils/elementbuilder/PortfolioAssetParams.d.ts +2 -0
  62. package/src/utils/sei/constants.js +8 -8
  63. 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.12.174",
3
+ "version": "0.12.177",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -142,6 +142,7 @@ const bluemove_1 = require("./plugins/bluemove");
142
142
  const stabble_1 = require("./plugins/stabble");
143
143
  const francium_1 = require("./plugins/francium");
144
144
  const adrastea_1 = require("./plugins/adrastea");
145
+ const elemental_1 = require("./plugins/elemental");
145
146
  var constants_1 = require("./plugins/tokens/constants");
146
147
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
147
148
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -277,6 +278,7 @@ exports.platforms = [
277
278
  ...stabble_1.platforms,
278
279
  ...francium_1.platforms,
279
280
  ...adrastea_1.platforms,
281
+ ...elemental_1.platforms,
280
282
  ];
281
283
  // JOBS //
282
284
  exports.jobs = [
@@ -395,6 +397,7 @@ exports.jobs = [
395
397
  ...stabble_1.jobs,
396
398
  ...francium_1.jobs,
397
399
  ...adrastea_1.jobs,
400
+ ...elemental_1.jobs,
398
401
  ];
399
402
  // FETCHERS //
400
403
  exports.fetchers = [
@@ -515,6 +518,7 @@ exports.fetchers = [
515
518
  ...stabble_1.fetchers,
516
519
  ...francium_1.fetchers,
517
520
  ...adrastea_1.fetchers,
521
+ ...elemental_1.fetchers,
518
522
  ];
519
523
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
520
524
  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,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AG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAK0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIw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A8B,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,7 +8,7 @@ exports.platform = {
8
8
  image: 'https://sonar.watch/img/platforms/bluemove.webp',
9
9
  website: 'https://dex.bluemove.net/',
10
10
  twitter: 'https://x.com/BlueMove_OA',
11
- defiLlamaId: 'bluemove', // from https://defillama.com/docs/api
11
+ defiLlamaId: 'parent#bluemove', // from https://defillama.com/docs/api
12
12
  };
13
13
  exports.marketsCacheKey = `markets`;
14
14
  exports.packageId = '0xb24b6789e088b876afabca733bed2299fbc9e2d6369be4d1acfa17d8145454d9';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bluemove/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AACW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAE1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAE1D,QAAA,UAAU,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bluemove/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EAAE,iBAAiB,EAAE,sCAAsC;CACvE,CAAC;AACW,QAAA,eAAe,GAAG,SAAS,CAAC;AAE5B,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAE1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAE1D,QAAA,UAAU,GAAG,CAAC,CAAC"}
@@ -6,7 +6,7 @@ exports.platform = {
6
6
  id: exports.platformId,
7
7
  name: 'Cetus',
8
8
  image: 'https://sonar.watch/img/platforms/cetus.webp',
9
- defiLlamaId: 'cetus',
9
+ defiLlamaId: 'parent#cetus',
10
10
  website: 'https://www.cetus.zone/',
11
11
  };
12
12
  exports.clmmPoolsPrefix = `${exports.platformId}-clmmPools`;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC;AACnE,QAAA,YAAY,GACvB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,qFAAqF;AACrF,sDAAsD;AACzC,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GACtB,8FAA8F,CAAC;AAEpF,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,kBAAkB,GAC7B,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC;AACnE,QAAA,YAAY,GACvB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,qFAAqF;AACrF,sDAAsD;AACzC,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GACtB,8FAA8F,CAAC;AAEpF,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,kBAAkB,GAC7B,oEAAoE,CAAC;AAC1D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC"}
@@ -10,7 +10,7 @@ exports.platform = {
10
10
  id: exports.platformId,
11
11
  name: exports.platformName,
12
12
  image: exports.platformImage,
13
- defiLlamaId: 'drift',
13
+ defiLlamaId: 'parent#drift',
14
14
  website: exports.platformWebsite,
15
15
  };
16
16
  exports.keySpotMarkets = `spotMarkets`;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,uBAAe;CACzB,CAAC;AACW,QAAA,cAAc,GAAG,aAAa,CAAC;AAE/B,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;AACrC,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAC/C,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAEnC,QAAA,UAAU,GAAG,0CAA0C,CAAC;AACxD,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,8CAA8C,CAAC;AAE3D,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,iBAAiB;IACrB,SAAS,EAAE,0BAA0B;IACrC,KAAK,EAAE,qBAAa;IACpB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,oBAAY;IACzB,WAAW,EAAE,uBAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,YAAY,GAAG,OAAO,CAAC;AACvB,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,oBAAY;IAClB,KAAK,EAAE,qBAAa;IACpB,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,uBAAe;CACzB,CAAC;AACW,QAAA,cAAc,GAAG,aAAa,CAAC;AAE/B,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;AACrC,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAC/C,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAEnC,QAAA,UAAU,GAAG,0CAA0C,CAAC;AACxD,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,8CAA8C,CAAC;AAE3D,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,iBAAiB;IACrB,SAAS,EAAE,0BAA0B;IACrC,KAAK,EAAE,qBAAa;IACpB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,oBAAY;IACzB,WAAW,EAAE,uBAAe;IAC5B,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { IdlItem } from '@solanafm/explorer-kit-idls';
3
+ export declare const platformId = "elemental";
4
+ export declare const platform: Platform;
5
+ export declare const poolsCacheKey = "pools";
6
+ export declare const elementalIdlItem: IdlItem;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.elementalIdlItem = exports.poolsCacheKey = exports.platform = exports.platformId = void 0;
4
+ const elementalVaultIDL_1 = require("./elementalVaultIDL");
5
+ exports.platformId = 'elemental';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'Elemental',
9
+ image: 'https://sonar.watch/img/platforms/elemental.webp',
10
+ website: 'https://elemental.fund/',
11
+ twitter: 'https://twitter.com/elementaldefi',
12
+ // defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
13
+ };
14
+ exports.poolsCacheKey = `pools`;
15
+ exports.elementalIdlItem = {
16
+ programId: elementalVaultIDL_1.elementalIDLs.address,
17
+ idl: elementalVaultIDL_1.elementalIDLs,
18
+ idlType: 'anchor',
19
+ };
20
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/constants.ts"],"names":[],"mappings":";;;AAEA,2DAAoD;AAEvC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,mCAAmC;IAC5C,qEAAqE;CACtE,CAAC;AACW,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,iCAAa,CAAC,OAAO;IAChC,GAAG,EAAE,iCAAa;IAClB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -0,0 +1,5 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { Fetcher } from '../../Fetcher';
3
+ export declare const FIXED_ONE: BigNumber;
4
+ declare const fetcher: Fetcher;
5
+ export default fetcher;
@@ -0,0 +1,96 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.FIXED_ONE = void 0;
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const constants_1 = require("./constants");
19
+ const clients_1 = require("../../utils/clients");
20
+ const solana_1 = require("../../utils/solana");
21
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
22
+ const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
23
+ const structs_1 = require("./structs");
24
+ const helpers_1 = require("./helpers");
25
+ exports.FIXED_ONE = new bignumber_js_1.default(1000000000);
26
+ const poolsMemo = new MemoizedCache_1.MemoizedCache(constants_1.poolsCacheKey, {
27
+ prefix: constants_1.platformId,
28
+ networkId: portfolio_core_1.NetworkId.solana,
29
+ });
30
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
31
+ const connection = (0, clients_1.getClientSolana)();
32
+ const pools = yield poolsMemo.getItem(cache);
33
+ if (!pools)
34
+ return [];
35
+ const positionsKeys = pools.map((p) => (0, helpers_1.getPositionAddress)(p.pubkey, owner));
36
+ const positions = yield (0, solana_1.getParsedMultipleAccountsInfo)(connection, structs_1.positionStruct, positionsKeys);
37
+ if (positions.length === 0)
38
+ return [];
39
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
40
+ for (const position of positions) {
41
+ if (!position)
42
+ continue;
43
+ const pool = pools.find((p) => p.pubkey === position.pool.toString());
44
+ if (!pool)
45
+ continue;
46
+ const element = elementRegistry.addElementMultiple({
47
+ label: 'Deposit',
48
+ });
49
+ element.addAsset({
50
+ address: pool.liquidity_mint,
51
+ amount: position.amount.dividedBy(pool.per_token_amount),
52
+ alreadyShifted: true,
53
+ attributes: { tags: [(0, helpers_1.getStatus)(position, pool)] },
54
+ });
55
+ const claimableAmount = position.amount
56
+ .times(pool.reward_per_token)
57
+ .div(exports.FIXED_ONE)
58
+ .minus(position.reward_before_deposit)
59
+ .plus(position.reward_earned)
60
+ .minus(position.reward_claimed);
61
+ element.addAsset({
62
+ address: pool.liquidity_mint,
63
+ amount: claimableAmount,
64
+ alreadyShifted: false,
65
+ attributes: { isClaimable: true },
66
+ });
67
+ element.addAsset({
68
+ address: pool.liquidity_mint,
69
+ amount: position.deactivating_amount
70
+ .plus(position.claiming_amount)
71
+ .div(pool.per_token_amount),
72
+ alreadyShifted: true,
73
+ attributes: { tags: ['withdrawing'] },
74
+ });
75
+ element.addAsset({
76
+ address: pool.liquidity_mint,
77
+ amount: position.deactivating_amount.div(pool.per_token_amount),
78
+ alreadyShifted: true,
79
+ attributes: { tags: ['deactivating'] },
80
+ });
81
+ element.addAsset({
82
+ address: pool.liquidity_mint,
83
+ amount: position.claiming_amount.div(pool.per_token_amount),
84
+ alreadyShifted: true,
85
+ attributes: { tags: ['claiming'] },
86
+ });
87
+ }
88
+ return elementRegistry.getElements(cache);
89
+ });
90
+ const fetcher = {
91
+ id: `${constants_1.platformId}-deposits`,
92
+ networkId: portfolio_core_1.NetworkId.solana,
93
+ executor,
94
+ };
95
+ exports.default = fetcher;
96
+ //# sourceMappingURL=depositFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/depositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,gEAAqC;AAErC,2CAAwD;AAExD,iDAAsD;AACtD,+CAAmE;AACnE,gFAA6E;AAE7E,kEAA+D;AAC/D,uCAA2C;AAC3C,uCAA0D;AAE7C,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,UAAU,CAAC,CAAC;AAEnD,MAAM,SAAS,GAAG,IAAI,6BAAa,CAAe,yBAAa,EAAE;IAC/D,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,4BAAkB,EAAC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,aAAa,CACd,CAAC;IACF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,KAAK,MAAM,QAAQ,I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,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC7B,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE;SACtC,CAAC,CAAC;QAEH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC/D,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,EAAE;SACvC,CAAC,CAAC;QAEH,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI,CAAC,cAAc;YAC5B,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC3D,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE;SACnC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
@@ -0,0 +1,67 @@
1
+ export declare const elementalIDLs: {
2
+ address: string;
3
+ metadata: {
4
+ name: string;
5
+ version: string;
6
+ spec: string;
7
+ description: string;
8
+ };
9
+ accounts: {
10
+ name: string;
11
+ discriminator: number[];
12
+ }[];
13
+ events: {
14
+ name: string;
15
+ discriminator: number[];
16
+ }[];
17
+ errors: {
18
+ code: number;
19
+ name: string;
20
+ msg: string;
21
+ }[];
22
+ types: ({
23
+ name: string;
24
+ type: {
25
+ kind: string;
26
+ fields: ({
27
+ name: string;
28
+ type: string;
29
+ } | {
30
+ name: string;
31
+ type: {
32
+ option: string;
33
+ };
34
+ })[];
35
+ };
36
+ repr?: undefined;
37
+ } | {
38
+ name: string;
39
+ type: {
40
+ kind: string;
41
+ fields: ({
42
+ name: string;
43
+ type: string;
44
+ } | {
45
+ name: string;
46
+ type: {
47
+ defined: {
48
+ name: string;
49
+ };
50
+ };
51
+ })[];
52
+ };
53
+ repr?: undefined;
54
+ } | {
55
+ name: string;
56
+ repr: {
57
+ kind: string;
58
+ };
59
+ type: {
60
+ kind: string;
61
+ fields: {
62
+ name: string;
63
+ type: string;
64
+ }[];
65
+ };
66
+ })[];
67
+ };