@sonarwatch/portfolio-plugins 0.11.110 → 0.11.112

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/CHANGELOG.md +1175 -1163
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +5 -4
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/aurory/stakingFetcher.js +2 -3
  7. package/src/plugins/aurory/stakingFetcher.js.map +1 -1
  8. package/src/plugins/balancer/helpers/pools.js +21 -21
  9. package/src/plugins/flash/poolJob.js +14 -68
  10. package/src/plugins/flash/poolJob.js.map +1 -1
  11. package/src/plugins/hawksight/positionsFetcher.js +10 -8
  12. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  13. package/src/plugins/jupiter/constants.d.ts +2 -0
  14. package/src/plugins/jupiter/constants.js +8 -1
  15. package/src/plugins/jupiter/constants.js.map +1 -1
  16. package/src/plugins/jupiter/index.d.ts +2 -0
  17. package/src/plugins/jupiter/index.js +3 -1
  18. package/src/plugins/jupiter/index.js.map +1 -1
  19. package/src/plugins/jupiter/poolJob.js +3 -5
  20. package/src/plugins/jupiter/poolJob.js.map +1 -1
  21. package/src/plugins/orders/index.js +2 -7
  22. package/src/plugins/orders/index.js.map +1 -1
  23. package/src/plugins/orders/jupiter/constants.d.ts +0 -2
  24. package/src/plugins/orders/jupiter/constants.js +1 -8
  25. package/src/plugins/orders/jupiter/constants.js.map +1 -1
  26. package/src/plugins/orders/jupiter/dcaFetcher.js +2 -1
  27. package/src/plugins/orders/jupiter/dcaFetcher.js.map +1 -1
  28. package/src/plugins/orders/jupiter/limitFetcher.js +2 -1
  29. package/src/plugins/orders/jupiter/limitFetcher.js.map +1 -1
  30. package/src/plugins/spl-staking/constants.d.ts +15 -0
  31. package/src/plugins/spl-staking/constants.js +51 -0
  32. package/src/plugins/spl-staking/constants.js.map +1 -0
  33. package/src/plugins/spl-staking/filters.js.map +1 -0
  34. package/src/plugins/{flowmatic → spl-staking}/index.js +3 -2
  35. package/src/plugins/spl-staking/index.js.map +1 -0
  36. package/src/plugins/spl-staking/poolsJob.d.ts +3 -0
  37. package/src/plugins/spl-staking/poolsJob.js +39 -0
  38. package/src/plugins/spl-staking/poolsJob.js.map +1 -0
  39. package/src/plugins/spl-staking/stakingFetcher.js +83 -0
  40. package/src/plugins/spl-staking/stakingFetcher.js.map +1 -0
  41. package/src/plugins/spl-staking/structs.d.ts +42 -0
  42. package/src/plugins/spl-staking/structs.js +42 -0
  43. package/src/plugins/spl-staking/structs.js.map +1 -0
  44. package/src/plugins/spl-staking/types.d.ts +4 -0
  45. package/src/plugins/spl-staking/types.js +3 -0
  46. package/src/plugins/spl-staking/types.js.map +1 -0
  47. package/src/plugins/sushiswap/helpers.js +24 -24
  48. package/src/plugins/tensor/bidsFetcher.js +2 -0
  49. package/src/plugins/tensor/bidsFetcher.js.map +1 -1
  50. package/src/plugins/tensor/singleListingFetcher.js +0 -79
  51. package/src/plugins/tensor/singleListingFetcher.js.map +1 -1
  52. package/src/plugins/uniswap-v2/helpers.js +22 -22
  53. package/src/plugins/x-staking-solana/constants.js +9 -0
  54. package/src/plugins/x-staking-solana/constants.js.map +1 -1
  55. package/src/utils/sei/constants.js +8 -8
  56. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  57. package/src/plugins/flowmatic/constants.d.ts +0 -6
  58. package/src/plugins/flowmatic/constants.js +0 -16
  59. package/src/plugins/flowmatic/constants.js.map +0 -1
  60. package/src/plugins/flowmatic/filters.js.map +0 -1
  61. package/src/plugins/flowmatic/index.js.map +0 -1
  62. package/src/plugins/flowmatic/stakingFetcher.js +0 -59
  63. package/src/plugins/flowmatic/stakingFetcher.js.map +0 -1
  64. package/src/plugins/flowmatic/structs.d.ts +0 -16
  65. package/src/plugins/flowmatic/structs.js +0 -18
  66. package/src/plugins/flowmatic/structs.js.map +0 -1
  67. /package/src/plugins/{flowmatic → spl-staking}/filters.d.ts +0 -0
  68. /package/src/plugins/{flowmatic → spl-staking}/filters.js +0 -0
  69. /package/src/plugins/{flowmatic → spl-staking}/index.d.ts +0 -0
  70. /package/src/plugins/{flowmatic → spl-staking}/stakingFetcher.d.ts +0 -0
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.110",
3
+ "version": "0.11.112",
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.111"
44
+ "@sonarwatch/portfolio-core": "0.11.112"
45
45
  },
46
46
  "main": "./src/index.js",
47
47
  "types": "./src/index.d.ts"
package/src/index.js CHANGED
@@ -86,10 +86,10 @@ const bonkrewards_1 = require("./plugins/bonkrewards");
86
86
  const accessprotocol_1 = require("./plugins/accessprotocol");
87
87
  const aptin_1 = require("./plugins/aptin");
88
88
  const bskt_1 = require("./plugins/bskt");
89
- const flowmatic_1 = require("./plugins/flowmatic");
90
89
  const genesysgo_1 = require("./plugins/genesysgo");
91
90
  const aurory_1 = require("./plugins/aurory");
92
91
  const x_staking_solana_1 = require("./plugins/x-staking-solana");
92
+ const spl_staking_1 = require("./plugins/spl-staking");
93
93
  const getFetchersByAddressSystem_1 = require("./utils/misc/getFetchersByAddressSystem");
94
94
  var getFetchersByAddressSystem_2 = require("./utils/misc/getFetchersByAddressSystem");
95
95
  Object.defineProperty(exports, "getFetchersByAddressSystem", { enumerable: true, get: function () { return getFetchersByAddressSystem_2.getFetchersByAddressSystem; } });
@@ -163,6 +163,7 @@ exports.platforms = [
163
163
  ...benqi_1.platforms,
164
164
  ...parcl_1.platforms,
165
165
  ...pyth_1.platforms,
166
+ ...jupiter_1.platforms,
166
167
  ...circuit_1.platforms,
167
168
  ...aries_1.platforms,
168
169
  ...flash_1.platforms,
@@ -170,10 +171,10 @@ exports.platforms = [
170
171
  ...accessprotocol_1.platforms,
171
172
  ...aptin_1.platforms,
172
173
  ...bskt_1.platforms,
173
- ...flowmatic_1.platforms,
174
174
  ...genesysgo_1.platforms,
175
175
  ...aurory_1.platforms,
176
176
  ...x_staking_solana_1.platforms,
177
+ ...spl_staking_1.platforms,
177
178
  ];
178
179
  // JOBS //
179
180
  exports.jobs = [
@@ -237,10 +238,10 @@ exports.jobs = [
237
238
  ...accessprotocol_1.jobs,
238
239
  ...aptin_1.jobs,
239
240
  ...bskt_1.jobs,
240
- ...flowmatic_1.jobs,
241
241
  ...genesysgo_1.jobs,
242
242
  ...aurory_1.jobs,
243
243
  ...x_staking_solana_1.jobs,
244
+ ...spl_staking_1.jobs,
244
245
  ];
245
246
  // FETCHERS //
246
247
  exports.fetchers = [
@@ -306,10 +307,10 @@ exports.fetchers = [
306
307
  ...accessprotocol_1.fetchers,
307
308
  ...aptin_1.fetchers,
308
309
  ...bskt_1.fetchers,
309
- ...flowmatic_1.fetchers,
310
310
  ...genesysgo_1.fetchers,
311
311
  ...aurory_1.fetchers,
312
312
  ...x_staking_solana_1.fetchers,
313
+ ...spl_staking_1.fetchers,
313
314
  ];
314
315
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
315
316
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0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jB,GAAG,qBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;IACzB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,2BAAsB;IACzB,GAAG,sBAAkB;CACtB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
@@ -21,9 +21,8 @@ const structs_1 = require("./structs");
21
21
  const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
22
22
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
23
23
  const client = (0, clients_1.getClientSolana)();
24
- const stakingAccountAddress = (0, helpers_1.getStakingAccountAddress)(owner);
25
- const stakingAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, structs_1.UserStakingAccountStruct, stakingAccountAddress);
26
- if (!stakingAccount)
24
+ const stakingAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, structs_1.UserStakingAccountStruct, (0, helpers_1.getStakingAccountAddress)(owner));
25
+ if (!stakingAccount || stakingAccount.amount.isZero())
27
26
  return [];
28
27
  const tokenPrice = yield cache.getTokenPrice(constants_1.xAuryMint, portfolio_core_1.NetworkId.solana);
29
28
  const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.xAuryMint, stakingAccount.amount.dividedBy(Math.pow(10, constants_1.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice);
@@ -1 +1 @@
1
- {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aurory/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAoE;AACpE,iDAAsD;AACtD,uCAAqD;AACrD,kFAA+E;AAC/E,uCAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,qBAAqB,GAAG,IAAA,kCAAwB,EAAC,KAAK,CAAC,CAAC;IAE9D,MAAM,cAAc,GAAG,MAAM,IAAA,2CAAoB,EAC/C,MAAM,EACN,kCAAwB,EACxB,qBAAqB,CACtB,CAAC;IAEF,IAAI,CAAC,cAAc;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,qBAAS,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAE1E,MAAM,KAAK,GAAmB,IAAA,gCAAsB,EAClD,qBAAS,EACT,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,oBAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC1D,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;IACF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAE,4BAAgB;YAC5B,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;YACzB,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,4BAAgB,UAAU;IACjC,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/aurory/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAoE;AACpE,iDAAsD;AACtD,uCAAqD;AACrD,kFAA+E;AAC/E,uCAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,2CAAoB,EAC/C,MAAM,EACN,kCAAwB,EACxB,IAAA,kCAAwB,EAAC,KAAK,CAAC,CAChC,CAAC;IAEF,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAEjE,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,qBAAS,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAE1E,MAAM,KAAK,GAAmB,IAAA,gCAAsB,EAClD,qBAAS,EACT,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,oBAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EAC1D,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;IACF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAE,4BAAgB;YAC5B,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;YACzB,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,4BAAgB,UAAU;IACjC,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;
@@ -8,20 +8,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
- const web3_js_1 = require("@solana/web3.js");
17
13
  const clients_1 = require("../../utils/clients");
18
- const getLpTokenSource_1 = __importDefault(require("../../utils/misc/getLpTokenSource"));
19
14
  const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
20
15
  const constants_1 = require("./constants");
21
16
  const structs_1 = require("./structs");
22
17
  const fetchTokenSupplyAndDecimals_1 = require("../../utils/solana/fetchTokenSupplyAndDecimals");
23
18
  const solana_1 = require("../../utils/solana");
24
- const constants_2 = require("../jupiter/constants");
19
+ const constants_2 = require("../tokens/constants");
25
20
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
26
21
  const client = (0, clients_1.getClientSolana)();
27
22
  const pools = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, constants_1.poolsPkeys);
@@ -32,32 +27,6 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
32
27
  structs_1.pool2Struct.deserialize(pools[1].data)[0],
33
28
  structs_1.pool3Struct.deserialize(pools[2].data)[0],
34
29
  ];
35
- const custodies = yield cache.getItem(constants_2.custodiesKey, {
36
- prefix: constants_1.platformId,
37
- networkId: portfolio_core_1.NetworkId.solana,
38
- });
39
- if (!custodies)
40
- return;
41
- const custodyById = new Map();
42
- for (const custody of custodies) {
43
- custodyById.set(custody.pubkey, custody);
44
- }
45
- const underlyingsTokenAccountsKey = custodies.map((account) => new web3_js_1.PublicKey(account.tokenAccount));
46
- const underlyingsTokenAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.tokenAccountStruct, underlyingsTokenAccountsKey);
47
- const tokenAccountById = new Map();
48
- const mints = new Set();
49
- for (const tokenAccount of underlyingsTokenAccounts) {
50
- if (tokenAccount) {
51
- tokenAccountById.set(tokenAccount.pubkey.toString(), tokenAccount);
52
- mints.add(tokenAccount.mint.toString());
53
- }
54
- }
55
- const tokenPrices = yield cache.getTokenPrices(Array.from(mints), portfolio_core_1.NetworkId.solana);
56
- const tokenPriceById = new Map();
57
- for (const tokenPrice of tokenPrices) {
58
- if (tokenPrice)
59
- tokenPriceById.set(tokenPrice.address, tokenPrice);
60
- }
61
30
  for (let i = 0; i < poolsAccounts.length; i++) {
62
31
  const pool = poolsAccounts[i];
63
32
  const supAndDecimals = yield (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(pool.flpMint, client);
@@ -65,40 +34,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
65
34
  if (!supAndDecimals)
66
35
  continue;
67
36
  const { supply, decimals } = supAndDecimals;
68
- const custodiesAccounts = pool.custodies
69
- .map((custody) => {
70
- const account = custodyById.get(custody.toString());
71
- return account || [];
72
- })
73
- .flat();
74
- const tokenAccountKeys = custodiesAccounts.map((account) => account.tokenAccount);
75
- const tokenAccounts = tokenAccountKeys
76
- .map((key) => {
77
- const tokenAccount = tokenAccountById.get(key);
78
- return tokenAccount || [];
79
- })
80
- .flat();
81
- if (tokenAccounts.length !== custodiesAccounts.length)
82
- continue;
83
- const assets = [];
84
- for (const tokenAccount of tokenAccounts) {
85
- if (!tokenAccount)
86
- continue;
87
- const tokenPrice = tokenPriceById.get(tokenAccount.mint.toString());
88
- if (!tokenPrice)
89
- continue;
90
- assets.push({
91
- address: tokenAccount.mint.toString(),
92
- decimals: tokenPrice.decimals,
93
- price: tokenPrice.price,
94
- reserveAmount: tokenAccount.amount
95
- .dividedBy(Math.pow(10, tokenPrice.decimals))
96
- .toNumber(),
97
- });
98
- }
99
- // eslint-disable-next-line prefer-const
100
- let source = (0, getLpTokenSource_1.default)(portfolio_core_1.NetworkId.solana, constants_1.poolsPkeys[i].toString(), constants_1.platformId, (0, solana_1.u8ArrayToString)(pool.name), { address: mint, decimals, supply }, assets);
101
- source.price = pool.aumUsd
37
+ const price = pool.aumUsd
102
38
  .dividedBy(Math.pow(10, decimals))
103
39
  .dividedBy(supply)
104
40
  .toNumber();
@@ -106,11 +42,21 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
106
42
  prefix: constants_1.platformId,
107
43
  networkId: portfolio_core_1.NetworkId.solana,
108
44
  });
109
- yield cache.setTokenPriceSource(source);
45
+ yield cache.setTokenPriceSource({
46
+ address: mint,
47
+ decimals,
48
+ id: constants_1.poolsPkeys[i].toString(),
49
+ networkId: portfolio_core_1.NetworkId.solana,
50
+ platformId: constants_2.walletTokensPlatform.id,
51
+ price,
52
+ timestamp: Date.now(),
53
+ weight: 1,
54
+ elementName: (0, solana_1.u8ArrayToString)(pool.name),
55
+ });
110
56
  }
111
57
  });
112
58
  const job = {
113
- id: `${constants_1.platformId}-pool`,
59
+ id: `${constants_1.platformId}-pools`,
114
60
  executor,
115
61
  label: 'normal',
116
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAmE;AACnE,6CAA4C;AAG5C,iDAAsD;AACtD,yFAAiE;AACjE,gGAA6F;AAC7F,2CAAqD;AACrD,uCAAkE;AAClE,gGAA6F;AAE7F,+CAK4B;AAC5B,oDAAoD;AAEpD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,IAAA,yDAA2B,EAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAEpE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO;IAEhD,MAAM,aAAa,GAAG;QACpB,qBAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzC,qBAAW,CAAC,WAAW,CAAC,K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AACF,kBAAe,GAAG,CAAC"}
@@ -61,14 +61,16 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
61
61
  element.platformId = constants_1.platformId;
62
62
  elements.push(Object.assign({}, element));
63
63
  }
64
- elements.push({
65
- type: portfolio_core_1.PortfolioElementType.multiple,
66
- networkId: portfolio_core_1.NetworkId.solana,
67
- platformId: constants_1.platformId,
68
- label: 'Rewards',
69
- value: (0, portfolio_core_1.getUsdValueSum)(tokens.map((t) => t.value)),
70
- data: { assets: tokens },
71
- });
64
+ const value = (0, portfolio_core_1.getUsdValueSum)(tokens.map((t) => t.value));
65
+ if (value !== 0)
66
+ elements.push({
67
+ type: portfolio_core_1.PortfolioElementType.multiple,
68
+ networkId: portfolio_core_1.NetworkId.solana,
69
+ platformId: constants_1.platformId,
70
+ label: 'Rewards',
71
+ value,
72
+ data: { assets: tokens },
73
+ });
72
74
  return elements;
73
75
  });
74
76
  const fetcher = {
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAI5C,2CAAyC;AACzC,qCAAgD;AAChD,sFAA8D;AAC9D,uEAAqD;AACrD,iDAAsD;AACtD,yEAAsE;AACtE,+CAA6D;AAC7D,mDAA2D;AAE3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,IAAA,6BAAoB,EAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpE,MAAM,aAAa,GAAG;QACpB,MAAM,IAAA,gCAAuB,EAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,IAAA,gCAAuB,EAAC,MAAM,EAAE,gBAAgB,CAAC,C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AG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,CAAC,IAAI;YACV,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;gBAC5C,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAE9B,IACE,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,KAAK,aAAa,CAAC;YAChD,OAAO,CAAC,UAAU,KAAK,eAAe;YAEtC,SAAS;QAEX,OAAO,CAAC,UAAU,GAAG,sBAAU,CAAC;QAChC,QAAQ,CAAC,IAAI,mBACR,OAAO,EACV,CAAC;IACL,CAAC;IACD,QAAQ,CAAC,IAAI,CAAC;QACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;KACzB,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAI5C,2CAAyC;AACzC,qCAAgD;AAChD,sFAA8D;AAC9D,uEAAqD;AACrD,iDAAsD;AACtD,yEA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AAE;SACzB,CAAC,CAAC;IAEL,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
+ import { Platform } from '@sonarwatch/portfolio-core';
2
3
  export declare const platformId = "jupiter";
4
+ export declare const jupiterPlatform: Platform;
3
5
  export declare const jlpPool: PublicKey;
4
6
  export declare const jlpToken: PublicKey;
5
7
  export declare const perpsProgramId: PublicKey;
@@ -1,8 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.custodiesKey = exports.merkleApi = exports.jupDecimals = exports.jupMint = exports.merkleDistributorPid = exports.lockerPubkey = exports.voteProgramId = exports.perpsProgramId = exports.jlpToken = exports.jlpPool = exports.platformId = void 0;
3
+ exports.custodiesKey = exports.merkleApi = exports.jupDecimals = exports.jupMint = exports.merkleDistributorPid = exports.lockerPubkey = exports.voteProgramId = exports.perpsProgramId = exports.jlpToken = exports.jlpPool = exports.jupiterPlatform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'jupiter';
6
+ exports.jupiterPlatform = {
7
+ id: exports.platformId,
8
+ name: 'Jupiter',
9
+ image: 'https://sonar.watch/img/platforms/jupiter.png',
10
+ defiLlamaId: 'jupiter',
11
+ website: 'https://jup.ag/',
12
+ };
6
13
  exports.jlpPool = new web3_js_1.PublicKey('5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq');
7
14
  exports.jlpToken = new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4');
8
15
  exports.perpsProgramId = new web3_js_1.PublicKey('PERPHjGBqRHArX4DySjwM6UJHiR3sWAatqfdBS2qQJu');
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAC/C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,SAAS,GACpB,oFAAoF,CAAC;AAC1E,QAAA,YAAY,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,iBAAiB;CAC3B,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAC/C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,SAAS,GACpB,oFAAoF,CAAC;AAC1E,QAAA,YAAY,GAAG,WAAW,CAAC"}
@@ -1,4 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
1
2
  import { Fetcher } from '../../Fetcher';
2
3
  import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
3
5
  export declare const jobs: Job[];
4
6
  export declare const fetchers: Fetcher[];
@@ -3,11 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fetchers = exports.jobs = void 0;
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const perpetualFetcher_1 = __importDefault(require("./perpetualFetcher"));
8
8
  const custodiesJob_1 = __importDefault(require("./custodiesJob"));
9
9
  const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
10
10
  const voteFetcher_1 = __importDefault(require("./voteFetcher"));
11
+ const constants_1 = require("./constants");
12
+ exports.platforms = [constants_1.jupiterPlatform];
11
13
  exports.jobs = [custodiesJob_1.default];
12
14
  exports.fetchers = [
13
15
  perpetualFetcher_1.default,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAClD,kEAA0C;AAC1C,sEAA8C;AAC9C,gEAAwC;AAE3B,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC;AAC7B,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,wBAAc;IACd,qBAAW;CACZ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,0EAAkD;AAClD,kEAA0C;AAC1C,sEAA8C;AAC9C,gEAAwC;AACxC,2CAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,2BAAe,CAAC,CAAC;AAC1C,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC;AAC7B,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,wBAAc;IACd,qBAAW;CACZ,CAAC"}
@@ -18,8 +18,6 @@ const clients_1 = require("../../utils/clients");
18
18
  const solana_1 = require("../../utils/solana");
19
19
  const constants_1 = require("./constants");
20
20
  const structs_1 = require("./structs");
21
- const constants_2 = require("../orders/jupiter/constants");
22
- const platformId = constants_2.jupiterPlatform.id;
23
21
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
24
22
  const client = (0, clients_1.getClientSolana)();
25
23
  const poolAccount = (yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.perpetualPoolStruct, [constants_1.jlpPool]))[0];
@@ -60,10 +58,10 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
60
58
  yield cache.setTokenPriceSource({
61
59
  address: constants_1.jlpToken.toString(),
62
60
  decimals: 6,
63
- id: platformId,
61
+ id: constants_1.platformId,
64
62
  networkId: portfolio_core_1.NetworkId.solana,
65
63
  elementName: 'JLP Pool',
66
- platformId,
64
+ platformId: constants_1.platformId,
67
65
  price: price.toNumber(),
68
66
  timestamp: Date.now(),
69
67
  weight: 1,
@@ -71,7 +69,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
71
69
  });
72
70
  });
73
71
  const job = {
74
- id: `${platformId}-pool`,
72
+ id: `${constants_1.platformId}-pool`,
75
73
  executor,
76
74
  label: 'normal',
77
75
  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,EAC3D,YAAY,EACZ,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,CACjE,CAAC;IACF,MAAM,KAAK,CAAC,mBAAmB,CAAC;QAC9B,OAAO,EAAE,oBAAQ,CAAC,QAAQ,EAAE;QAC5B,QAAQ,EAAE,CAAC;QACX,EAAE,EAAE,sBAAU;QACd,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,WAAW,EAAE,UAAU;QACvB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;QACvB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;QACrB,MAAM,EAAE,CAAC;QACT,WAAW;KACZ,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const limitFetcher_1 = __importDefault(require("./jupiter/limitFetcher"));
8
8
  const dcaFetcher_1 = __importDefault(require("./jupiter/dcaFetcher"));
9
- const constants_1 = require("./jupiter/constants");
10
- const constants_2 = require("./clobs-solana/constants");
9
+ const constants_1 = require("./clobs-solana/constants");
11
10
  // import { NetworkId } from '@sonarwatch/portfolio-core';
12
11
  // import openbookFetcher from './clobs-solana/openbookFetcher';
13
12
  // import { clobVersions } from './clobs-solana/constants';
@@ -15,11 +14,7 @@ const constants_2 = require("./clobs-solana/constants");
15
14
  // import { platformId } from './constants';
16
15
  // import getSerumFetcherExecutor from './clobs-solana/serumFetcherExecutorGenerator';
17
16
  // import { serumPlatform } from '../../platforms';
18
- exports.platforms = [
19
- constants_1.jupiterPlatform,
20
- constants_2.openbookPlatform,
21
- constants_2.serumPlatform,
22
- ];
17
+ exports.platforms = [constants_1.openbookPlatform, constants_1.serumPlatform];
23
18
  exports.jobs = [
24
19
  // {
25
20
  // id: `${platformId}-markets-openbookV1`,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orders/index.ts"],"names":[],"mappings":";;;;;;AAGA,0EAAkD;AAClD,sEAA8C;AAC9C,mDAAsD;AACtD,wDAA2E;AAC3E,0DAA0D;AAC1D,gEAAgE;AAChE,2DAA2D;AAC3D,gFAAgF;AAChF,4CAA4C;AAC5C,sFAAsF;AACtF,mDAAmD;AAEtC,QAAA,SAAS,GAAe;IACnC,2BAAe;IACf,4BAAgB;IAChB,yBAAa;CACd,CAAC;AACW,QAAA,IAAI,GAAU;AACzB,IAAI;AACJ,4CAA4C;AAC5C,6DAA6D;AAC7D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;CACN,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,sBAAY;IACZ,oBAAU;IACV,mBAAmB;IACnB,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;IACL,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;IACL,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;CACN,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orders/index.ts"],"names":[],"mappings":";;;;;;AAGA,0EAAkD;AAClD,sEAA8C;AAC9C,wDAA2E;AAC3E,0DAA0D;AAC1D,gEAAgE;AAChE,2DAA2D;AAC3D,gFAAgF;AAChF,4CAA4C;AAC5C,sFAAsF;AACtF,mDAAmD;AAEtC,QAAA,SAAS,GAAe,CAAC,4BAAgB,EAAE,yBAAa,CAAC,CAAC;AAC1D,QAAA,IAAI,GAAU;AACzB,IAAI;AACJ,4CAA4C;AAC5C,6DAA6D;AAC7D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;AACL,IAAI;AACJ,yCAAyC;AACzC,0DAA0D;AAC1D,KAAK;CACN,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,sBAAY;IACZ,oBAAU;IACV,mBAAmB;IACnB,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;IACL,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;IACL,IAAI;IACJ,+CAA+C;IAC/C,6DAA6D;IAC7D,iCAAiC;IACjC,KAAK;CACN,CAAC"}
@@ -1,5 +1,3 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
- import { Platform } from '@sonarwatch/portfolio-core';
3
- export declare const jupiterPlatform: Platform;
4
2
  export declare const limitProgramId: PublicKey;
5
3
  export declare const dcaProgramId: PublicKey;
@@ -1,14 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dcaProgramId = exports.limitProgramId = exports.jupiterPlatform = void 0;
3
+ exports.dcaProgramId = exports.limitProgramId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
- exports.jupiterPlatform = {
6
- id: 'jupiter',
7
- name: 'Jupiter',
8
- image: 'https://sonar.watch/img/platforms/jupiter.png',
9
- defiLlamaId: 'jupiter-aggregator',
10
- website: 'https://jup.ag/',
11
- };
12
5
  exports.limitProgramId = new web3_js_1.PublicKey('jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu');
13
6
  exports.dcaProgramId = new web3_js_1.PublicKey('DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M');
14
7
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,oBAAoB;IACjC,OAAO,EAAE,iBAAiB;CAC3B,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC"}
@@ -21,6 +21,7 @@ const constants_2 = require("./constants");
21
21
  const filters_1 = require("./filters");
22
22
  const getTokensPricesMap_1 = __importDefault(require("../../../utils/misc/getTokensPricesMap"));
23
23
  const tokenPriceToAssetToken_1 = __importDefault(require("../../../utils/misc/tokenPriceToAssetToken"));
24
+ const constants_3 = require("../../jupiter/constants");
24
25
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
25
26
  const client = (0, clients_1.getClientSolana)();
26
27
  const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.dcaStruct, constants_2.dcaProgramId, (0, filters_1.jupiterDCAFilter)(owner));
@@ -55,7 +56,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
55
56
  {
56
57
  type: 'multiple',
57
58
  networkId: portfolio_core_1.NetworkId.solana,
58
- platformId: constants_2.jupiterPlatform.id,
59
+ platformId: constants_3.jupiterPlatform.id,
59
60
  value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
60
61
  label: 'Deposit',
61
62
  name: `DCA Orders (${accounts.length})`,
@@ -1 +1 @@
1
- {"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,4CAA0C;AAC1C,oDAAyD;AACzD,kDAAiE;AACjE,qCAAqC;AACrC,2CAA4D;AAC5D,uCAA6C;AAC7C,gGAAuE;AACvE,wGAAgF;AAEhF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,kBAAS,EACT,wBAAY,EACZ,IAAA,0BAAgB,EAAC,KAAK,CAAC,CACxB,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,aAAa,GAA2B,IAAI,GAAG,EAAE,CAAC;IAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC/C,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAChD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,aAAa,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,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AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -20,6 +20,7 @@ const solana_1 = require("../../../utils/solana");
20
20
  const filters_1 = require("./filters");
21
21
  const tokenPriceToAssetToken_1 = __importDefault(require("../../../utils/misc/tokenPriceToAssetToken"));
22
22
  const constants_2 = require("./constants");
23
+ const constants_3 = require("../../jupiter/constants");
23
24
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
24
25
  const client = (0, clients_1.getClientSolana)();
25
26
  const limitOrdersAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.limitOrderStruct, constants_2.limitProgramId, (0, filters_1.jupiterLimitsFilter)(owner));
@@ -62,7 +63,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
62
63
  const element = {
63
64
  type: 'multiple',
64
65
  networkId: portfolio_core_1.NetworkId.solana,
65
- platformId: constants_2.jupiterPlatform.id,
66
+ platformId: constants_3.jupiterPlatform.id,
66
67
  value,
67
68
  label: 'Deposit',
68
69
  name: 'Limit Orders',
@@ -1 +1 @@
1
- {"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAIpC,4CAA0C;AAC1C,oDAAyD;AACzD,qCAA4C;AAC5C,kDAAiE;AACjE,uCAAgD;AAChD,wGAAgF;AAChF,2CAA8D;AAE9D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,yBAAgB,EAChB,0BAAc,EAC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EF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"limitFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/limitFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAIpC,4CAA0C;AAC1C,oDAAyD;AACzD,qCAA4C;AAC5C,kDAAiE;AACjE,uCAAgD;AAChD,wGAAgF;AAChF,2CAA6C;AAC7C,uDAA0D;AAE1D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,mBAAmB,GAAG,MAAM,IAAA,iCAAwB,EACxD,MAAM,EACN,yBAAgB,EAChB,0BAAc,EACd,IAAA,6BAAmB,EAAC,KAAK,CAAC,CAC3B,CAAC;IACF,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEhD,MAAM,WAAW,GAAgB,IAAI,GAAG,EAAE,CAAC;IAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACvD,WAAW,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,cAAc,CAClD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EACvB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,cAAc,GAA4B,IAAI,GAAG,EAAE,CAAC;IAC1D,iBAAiB,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QAC/B,IAAI,CAAC,EAAE;YAAE,OAAO;QAChB,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC,CA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AI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,OAAO,GAA6B;QACxC,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAE,2BAAe,CAAC,EAAE;QAC9B,KAAK;QACL,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,EAAE,MAAM,EAAE;KACjB,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ import { Platform } from '@sonarwatch/portfolio-core';
3
+ export declare const platformId = "spl-staking";
4
+ export declare const splStakingPlatform: Platform;
5
+ export declare const stakePid: PublicKey;
6
+ export declare const poolsKey = "pools";
7
+ export declare const flowmaticPlatformId = "flowmatic";
8
+ export declare const flowmaticPlatform: Platform;
9
+ export declare const kishuPlatformId = "kishu";
10
+ export declare const kishuPlatform: Platform;
11
+ export declare const yakuPlatformId = "yaku";
12
+ export declare const yakuPlatform: Platform;
13
+ export declare const madbearsPlatformId = "madbears";
14
+ export declare const madbearsPlatform: Platform;
15
+ export declare const platformByMint: Map<string, string>;