@sonarwatch/portfolio-plugins 0.14.131 → 0.14.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +2136 -2128
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/balancer/helpers/pools.js +21 -21
  5. package/src/plugins/citrus/loansFetcher.js +34 -68
  6. package/src/plugins/citrus/loansFetcher.js.map +1 -1
  7. package/src/plugins/debridge/dlmmVaultsFetcher.js +1 -0
  8. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
  9. package/src/plugins/jupiter/exchange/helpersPerps.d.ts +2 -0
  10. package/src/plugins/jupiter/exchange/helpersPerps.js +3 -1
  11. package/src/plugins/jupiter/exchange/helpersPerps.js.map +1 -1
  12. package/src/plugins/jupiter/exchange/perpetualFetcher.js +27 -1
  13. package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
  14. package/src/plugins/jupiter/exchange/structs.d.ts +35 -1
  15. package/src/plugins/jupiter/exchange/structs.js +36 -1
  16. package/src/plugins/jupiter/exchange/structs.js.map +1 -1
  17. package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -1
  18. package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
  19. package/src/plugins/jupiter/filters.d.ts +1 -0
  20. package/src/plugins/jupiter/filters.js +11 -1
  21. package/src/plugins/jupiter/filters.js.map +1 -1
  22. package/src/plugins/rain/banksFetcher.js +47 -0
  23. package/src/plugins/rain/banksFetcher.js.map +1 -0
  24. package/src/plugins/rain/collectionsJob.js +9 -7
  25. package/src/plugins/rain/collectionsJob.js.map +1 -1
  26. package/src/plugins/rain/constants.d.ts +7 -2
  27. package/src/plugins/rain/constants.js +11 -3
  28. package/src/plugins/rain/constants.js.map +1 -1
  29. package/src/plugins/rain/defiBorrowsFetcher.d.ts +3 -0
  30. package/src/plugins/rain/defiBorrowsFetcher.js +52 -0
  31. package/src/plugins/rain/defiBorrowsFetcher.js.map +1 -0
  32. package/src/plugins/rain/index.js +10 -3
  33. package/src/plugins/rain/index.js.map +1 -1
  34. package/src/plugins/rain/nftBorrowsFetcher.d.ts +3 -0
  35. package/src/plugins/rain/nftBorrowsFetcher.js +76 -0
  36. package/src/plugins/rain/nftBorrowsFetcher.js.map +1 -0
  37. package/src/plugins/rain/poolsFetcher.js +79 -42
  38. package/src/plugins/rain/poolsFetcher.js.map +1 -1
  39. package/src/plugins/rain/structs.d.ts +455 -0
  40. package/src/plugins/rain/structs.js +425 -0
  41. package/src/plugins/rain/structs.js.map +1 -0
  42. package/src/plugins/rain/types.d.ts +18 -144
  43. package/src/plugins/sharky/loansFetcher.js +38 -73
  44. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  45. package/src/plugins/sushiswap/helpers.js +24 -24
  46. package/src/plugins/uniswap-v2/helpers.js +22 -22
  47. package/src/plugins/zeta/airdropFetcher.js +14 -14
  48. package/src/utils/elementbuilder/AssetCollectibleBuilder.d.ts +10 -0
  49. package/src/utils/elementbuilder/AssetCollectibleBuilder.js +53 -0
  50. package/src/utils/elementbuilder/AssetCollectibleBuilder.js.map +1 -0
  51. package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +9 -1
  52. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +41 -3
  53. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
  54. package/src/utils/elementbuilder/ElementRegistry.js +9 -1
  55. package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
  56. package/src/utils/elementbuilder/Params.d.ts +14 -0
  57. package/src/utils/sei/constants.js +8 -8
  58. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  59. package/src/utils/solana/das/heliusAssetToAssetCollectible.js +3 -2
  60. package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
  61. package/src/plugins/rain/filters.d.ts +0 -7
  62. package/src/plugins/rain/filters.js +0 -53
  63. package/src/plugins/rain/filters.js.map +0 -1
  64. package/src/plugins/rain/helpers.d.ts +0 -9
  65. package/src/plugins/rain/helpers.js +0 -66
  66. package/src/plugins/rain/helpers.js.map +0 -1
  67. package/src/plugins/rain/loansFetcher.js +0 -139
  68. package/src/plugins/rain/loansFetcher.js.map +0 -1
  69. package/src/plugins/rain/structs/loan.d.ts +0 -86
  70. package/src/plugins/rain/structs/loan.js +0 -86
  71. package/src/plugins/rain/structs/loan.js.map +0 -1
  72. package/src/plugins/rain/structs/pool.d.ts +0 -79
  73. package/src/plugins/rain/structs/pool.js +0 -76
  74. package/src/plugins/rain/structs/pool.js.map +0 -1
  75. /package/src/plugins/rain/{loansFetcher.d.ts → banksFetcher.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.14.131",
3
+ "version": "0.14.133",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -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;
@@ -17,20 +17,16 @@ const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
17
  const constants_1 = require("./constants");
18
18
  const clients_1 = require("../../utils/clients");
19
19
  const solana_1 = require("../../utils/solana");
20
- const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
21
- const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
22
- const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
23
- const heliusAssetToAssetCollectible_1 = require("../../utils/solana/das/heliusAssetToAssetCollectible");
24
20
  const filters_1 = require("./filters");
25
21
  const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
26
22
  const arrayToMap_1 = require("../../utils/misc/arrayToMap");
23
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
27
24
  const collectionsMemo = new MemoizedCache_1.MemoizedCache(constants_1.collectionsCacheKey, {
28
25
  prefix: constants_1.cachePrefix,
29
26
  networkId: portfolio_core_1.NetworkId.solana,
30
27
  }, (arr) => (0, arrayToMap_1.arrayToMap)(arr || [], 'id'));
31
28
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
32
29
  const connection = (0, clients_1.getClientSolana)();
33
- const dasUrl = (0, getSolanaDasEndpoint_1.default)();
34
30
  const [filterA, filterB] = (0, filters_1.getLoanFilters)(owner);
35
31
  const allAccounts = (yield Promise.all([
36
32
  (0, solana_1.getAutoParsedProgramAccounts)(connection, constants_1.citrusIdlItem, filterA),
@@ -40,47 +36,44 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
40
36
  );
41
37
  if (accounts.length === 0)
42
38
  return [];
43
- const [solTokenPrice, heliusAssets, collections] = yield Promise.all([
39
+ const [solTokenPrice, collections] = yield Promise.all([
44
40
  cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana),
45
- (0, getAssetBatchDas_1.getAssetBatchDasAsMap)(dasUrl, accounts
46
- .map((acc) => acc.mint)
47
- .filter((mint) => mint && mint !== '11111111111111111111111111111111')),
48
41
  collectionsMemo.getItem(cache),
49
42
  ]);
50
- if (!solTokenPrice || !collections)
51
- return [];
52
- const elements = [];
43
+ if (!collections)
44
+ throw new Error('Collections not cached');
45
+ if (!solTokenPrice)
46
+ throw new Error('Sol price not cached');
47
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
53
48
  accounts.forEach((acc) => {
54
49
  const collection = collections.get(acc.collectionConfig);
55
50
  if (!collection)
56
51
  return;
57
- const borrowedAssets = [];
58
- const suppliedAssets = [];
52
+ const element = elementRegistry.addElementBorrowlend({
53
+ label: 'Lending',
54
+ ref: acc.pubkey,
55
+ });
59
56
  let mintAsset = null;
60
57
  if (acc.mint && acc.mint !== '11111111111111111111111111111111') {
61
- const heliusAsset = heliusAssets.get(acc.mint);
62
- if (heliusAsset) {
63
- const assetValue = new bignumber_js_1.default(collection.floor)
64
- .multipliedBy(solTokenPrice.price)
65
- .toNumber();
66
- mintAsset = (0, heliusAssetToAssetCollectible_1.heliusAssetToAssetCollectible)(heliusAsset, {
67
- tags: [portfolio_core_1.collectibleFreezedTag],
68
- collection: {
69
- name: collection.name,
70
- floorPrice: assetValue,
71
- },
72
- });
73
- }
58
+ mintAsset = {
59
+ address: acc.mint,
60
+ collection: {
61
+ name: collection.name,
62
+ floorPrice: new bignumber_js_1.default(collection.floor).multipliedBy(solTokenPrice.price),
63
+ },
64
+ attributes: { tags: [portfolio_core_1.collectibleFreezedTag] },
65
+ };
74
66
  }
75
- const solAsset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, new bignumber_js_1.default(acc.ltvTerms ? acc.ltvTerms.maxOffer : acc.loanTerms.principal)
76
- .dividedBy(Math.pow(10, portfolio_core_1.solanaNativeDecimals))
77
- .toNumber(), portfolio_core_1.NetworkId.solana, solTokenPrice);
67
+ const solAsset = {
68
+ address: portfolio_core_1.solanaNativeAddress,
69
+ amount: new bignumber_js_1.default(acc.ltvTerms ? acc.ltvTerms.maxOffer : acc.loanTerms.principal),
70
+ };
78
71
  let name;
79
72
  if (acc.lender === owner.toString()) {
80
73
  // LENDER
81
- suppliedAssets.push(solAsset);
74
+ element.addSuppliedAsset(solAsset);
82
75
  if (mintAsset)
83
- borrowedAssets.push(mintAsset);
76
+ element.addBorrowedCollectibleAsset(mintAsset);
84
77
  if (acc.status.waitingForBorrower) {
85
78
  name = `Lend Offer on ${collection.name}`;
86
79
  }
@@ -93,10 +86,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
93
86
  }
94
87
  else {
95
88
  // BORROWER
96
- if (mintAsset) {
97
- suppliedAssets.push(mintAsset);
98
- }
99
- borrowedAssets.push(solAsset);
89
+ element.addBorrowedAsset(solAsset);
90
+ if (mintAsset)
91
+ element.addSuppliedCollectibleAsset(mintAsset);
100
92
  if (acc.status.waitingForLender) {
101
93
  name = `Borrow Offer`;
102
94
  }
@@ -107,39 +99,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
107
99
  name = `Expired Loan`;
108
100
  }
109
101
  }
110
- if (suppliedAssets.length > 0) {
111
- const { borrowedValue, suppliedValue, rewardValue, value } = (0, portfolio_core_1.getElementNFTLendingValues)({
112
- suppliedAssets,
113
- borrowedAssets,
114
- rewardAssets: [],
115
- lender: acc.lender === owner.toString(),
116
- });
117
- elements.push({
118
- networkId: portfolio_core_1.NetworkId.solana,
119
- label: 'Lending',
120
- platformId: constants_1.platformId,
121
- type: portfolio_core_1.PortfolioElementType.borrowlend,
122
- value,
123
- name,
124
- data: {
125
- borrowedAssets,
126
- borrowedValue,
127
- borrowedYields: [],
128
- suppliedAssets,
129
- suppliedValue,
130
- suppliedYields: [],
131
- rewardAssets: [],
132
- rewardValue,
133
- healthRatio: null,
134
- value,
135
- expireOn: acc.status.active || acc.status.onSale
136
- ? (Number(acc.startTime) + Number(acc.loanTerms.duration)) * 1000
137
- : undefined,
138
- },
139
- });
140
- }
102
+ if (name)
103
+ element.setName(name);
104
+ element.setFixedTerms(acc.lender === owner.toString(), acc.status.active || acc.status.onSale
105
+ ? (Number(acc.startTime) + Number(acc.loanTerms.duration)) * 1000
106
+ : undefined);
141
107
  });
142
- return elements;
108
+ return elementRegistry.getElements(cache);
143
109
  });
144
110
  const fetcher = {
145
111
  id: `${constants_1.platformId}-loans`,
@@ -1 +1 @@
1
- {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAUoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AAEtD,+CAAkE;AAClE,qGAA6E;AAC7E,8EAAgF;AAChF,oGAA4E;AAC5E,wGAAqG;AACrG,uCAA2C;AAC3C,kEAA+D;AAC/D,4DAAyD;AAEzD,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CACrC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,wBAAc,EAAC,KAAK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ACrC,KAAK;gBACL,IAAI;gBACJ,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,cAAc;oBACd,aAAa;oBACb,cAAc,EAAE,EAAE;oBAClB,YAAY,EAAE,EAAE;oBAChB,WAAW;oBACX,WAAW,EAAE,IAAI;oBACjB,KAAK;oBACL,QAAQ,EACN,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM;wBACpC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI;wBACjE,CAAC,CAAC,SAAS;iBAChB;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/citrus/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAErC,2CAKqB;AAErB,iDAAsD;AAEtD,+CAAkE;AAClE,uCAA2C;AAC3C,kEAA+D;AAC/D,4DAAyD;AACzD,gFAA6E;AAG7E,MAAM,eAAe,GAAG,IAAI,6BAAa,CAIvC,+BAAmB,EACnB;IACE,MAAM,EAAE,uBAAW;IACnB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CACrC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,K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QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -57,6 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
57
57
  const vestingElement = registry.addElementMultiple({
58
58
  label: 'Vesting',
59
59
  link: 'https://debridge.foundation/lfg',
60
+ name: 'Alpha Vault',
60
61
  });
61
62
  for (const escrow of accounts) {
62
63
  const vault = vaults[escrow.dlmmVault.toString()];
@@ -1 +1 @@
1
- {"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;AAEnB,+DAAuD;AAGvD,iDAAsD;AACtD,2CAA0E;AAC1E,+CAA8D;AAC9D,8CAAiD;AAEjD,oDAAqD;AACrD,gFAA6E;AAE7E,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,CAAC;AAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,yBAAa,EAAE;QAClE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,GAAG,UAAU,EAAE,CAAC;QAC/C,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QAC9B,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC1B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C3C,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,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"}
@@ -1,7 +1,9 @@
1
1
  import BN from 'bn.js';
2
+ import BigNumber from 'bignumber.js';
2
3
  import { CustodyInfo } from '../types';
3
4
  import { Position } from './structs';
4
5
  export declare const USD_POWER: BN;
6
+ export declare const USD_POWER_BIGN: BigNumber;
5
7
  export type CustodyBn = Omit<CustodyInfo, 'pricing' | 'decreasePositionBps' | 'fundingRateState' | 'jumpRateState' | 'assets'> & {
6
8
  decreasePositionBps: BN;
7
9
  pricing: {
@@ -3,10 +3,12 @@ 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.getLiquidationPrice = exports.getFeeAmount = exports.positionToBn = exports.custodyToBN = exports.USD_POWER = void 0;
6
+ exports.getLiquidationPrice = exports.getFeeAmount = exports.positionToBn = exports.custodyToBN = exports.USD_POWER_BIGN = exports.USD_POWER = void 0;
7
7
  const bn_js_1 = __importDefault(require("bn.js"));
8
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
9
  const structs_1 = require("./structs");
9
10
  exports.USD_POWER = new bn_js_1.default(1000000);
11
+ exports.USD_POWER_BIGN = new bignumber_js_1.default(1000000);
10
12
  const BPS_POWER = new bn_js_1.default(10000);
11
13
  const DBPS_POWER = new bn_js_1.default(100000);
12
14
  const RATE_POWER = new bn_js_1.default(1000000000);
@@ -1 +1 @@
1
- {"version":3,"file":"helpersPerps.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/helpersPerps.ts"],"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,CAAC;IACF,MAAM,aAAa,GAAG,aAAa,CAAC,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAEtD,MAAM,UAAU,GAAG,OAAO;SACvB,GAAG,CAAC,SAAS,CAAC;SACd,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;SAChC,GAAG,CAAC,MAAM,CAAC,CAAC;IAEf,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC;IAEzC,IAAI,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC;IACnD,YAAY,GAAG,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAE7D,IAAI,QAAQ,CAAC,IAAI,KAAK,cAAI,CAAC,IAAI,EAAE,CAAC;QAChC,IAAI,UAAU,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,UAAU,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7B,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAC1C,CAAC,CAAC;AAtCW,QAAA,mBAAmB,uBAsC9B"}
@@ -24,12 +24,13 @@ const structs_1 = require("./structs");
24
24
  const helpersPerps_1 = require("./helpersPerps");
25
25
  const usdFactor = new bignumber_js_1.default(Math.pow(10, 6));
26
26
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
27
+ var _a, _b;
27
28
  const client = (0, clients_1.getClientSolana)();
28
29
  const positionAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.positionStruct, constants_1.perpsProgramId, (0, filters_1.perpetualsPositionsFilter)(owner));
29
30
  if (positionAccounts.length === 0 ||
30
31
  positionAccounts.every((perp) => perp.sizeUsd.isLessThanOrEqualTo(0)))
31
32
  return [];
32
- const [custodiesAccounts, perpPoolsArr] = yield Promise.all([
33
+ const [custodiesAccounts, perpPoolsArr, prAccounts] = yield Promise.all([
33
34
  cache.getItem(constants_1.custodiesKey, {
34
35
  prefix: constants_1.platformId,
35
36
  networkId: portfolio_core_1.NetworkId.solana,
@@ -38,9 +39,29 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
38
39
  prefix: constants_1.platformId,
39
40
  networkId: portfolio_core_1.NetworkId.solana,
40
41
  }),
42
+ (0, solana_1.getParsedProgramAccounts)(client, structs_1.positionRequestStruct, constants_1.perpsProgramId, (0, filters_1.positionRequestFilters)(owner)),
41
43
  ]);
42
44
  if (!custodiesAccounts || !perpPoolsArr)
43
45
  return [];
46
+ const prAccountsObj = {};
47
+ prAccounts.forEach((a) => {
48
+ const position = a.position.toString();
49
+ if (a.executed || !a.triggerPrice)
50
+ return;
51
+ if (!prAccountsObj[position])
52
+ prAccountsObj[position] = {
53
+ tp: null,
54
+ sl: null,
55
+ };
56
+ if (a.triggerAboveThreshold)
57
+ prAccountsObj[position].tp = a.triggerPrice
58
+ .dividedBy(helpersPerps_1.USD_POWER_BIGN)
59
+ .toNumber();
60
+ else
61
+ prAccountsObj[position].sl = a.triggerPrice
62
+ .dividedBy(helpersPerps_1.USD_POWER_BIGN)
63
+ .toNumber();
64
+ });
44
65
  const perpPools = new Map();
45
66
  perpPoolsArr.forEach((a) => {
46
67
  perpPools.set(a.pubkey.toString(), a);
@@ -100,6 +121,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
100
121
  const rawPnlValue = priceVar.times(collateralValue).times(leverage);
101
122
  const netPnlValue = rawPnlValue.minus(fees);
102
123
  const value = collateralValue.plus(netPnlValue);
124
+ const positionPubkey = position.pubkey.toString();
125
+ const tp = ((_a = prAccountsObj[positionPubkey]) === null || _a === void 0 ? void 0 : _a.tp) || undefined;
126
+ const sl = ((_b = prAccountsObj[positionPubkey]) === null || _b === void 0 ? void 0 : _b.sl) || undefined;
103
127
  levPositions.push({
104
128
  address: custody.mint,
105
129
  side: isLong ? portfolio_core_1.LeverageSide.long : portfolio_core_1.LeverageSide.short,
@@ -112,6 +136,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
112
136
  value: value.toNumber(),
113
137
  markPrice: currentPrice,
114
138
  entryPrice: entryPrice.toNumber(),
139
+ tp,
140
+ sl,
115
141
  });
116
142
  }
117
143
  if (levPositions.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAC5C,iCAA2B;AAG3B,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,2CAKqB;AACrB,uCAAiD;AACjD,iDAMwB;AAExB,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAChC,KAAa,EACb,KAAY,EACyB,EAAE;IACvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAc,EACd,0BAAc,EACd,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IACE,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAC7B,gBAAgB,CAAC,KAAK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AE;SAClC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/D,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR,SAAS,EAAE,YAAY;oBACvB,KAAK;iBACN;gBACD,KAAK;aACN;YACD,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK;SACN;KACF,CAAC;AACJ,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":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAC5C,iCAA2B;AAG3B,oDAAyD;AACzD,kDAAgF;AAChF,wCAA+E;AAE/E,2CAKqB;AACrB,uCAAwE;AACxE,iDAOwB;AAExB,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AACzC,MAAM,QAAQ,GAAoB,CAChC,KAAa,EACb,KAAY,EACyB,EAAE;;IACvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,gBAAgB,GAAG,MAAM,IAAA,iCAAwB,EACrD,MAAM,EACN,wBAAc,EACd,0BAAc,E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IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/D,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR,SAAS,EAAE,YAAY;oBACvB,KAAK;iBACN;gBACD,KAAK;aACN;YACD,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK;SACN;KACF,CAAC;AACJ,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,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
3
3
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
4
- import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
4
+ import { BeetStruct, COption, FixableBeetStruct } from '@metaplex-foundation/beet';
5
5
  import BigNumber from 'bignumber.js';
6
6
  import { PublicKey } from '@solana/web3.js';
7
7
  export type LimitOrder = {
@@ -120,6 +120,40 @@ export type VestingEscrow = {
120
120
  padding: BigNumber[];
121
121
  };
122
122
  export declare const vestingEscrowStruct: BeetStruct<VestingEscrow, Partial<VestingEscrow>>;
123
+ export declare enum RequestChange {
124
+ None = 0,
125
+ Increase = 1,
126
+ Decrease = 2
127
+ }
128
+ export declare enum RequestType {
129
+ Market = 0,
130
+ Trigger = 1
131
+ }
132
+ export type PositionRequest = {
133
+ buffer: Buffer;
134
+ owner: PublicKey;
135
+ pool: PublicKey;
136
+ custody: PublicKey;
137
+ position: PublicKey;
138
+ mint: PublicKey;
139
+ openTime: BigNumber;
140
+ updateTime: BigNumber;
141
+ sizeUsdDelta: BigNumber;
142
+ collateralDelta: BigNumber;
143
+ requestChange: RequestChange;
144
+ requestType: RequestType;
145
+ side: Side;
146
+ priceSlippage: COption<BigNumber>;
147
+ jupiterMinimumOut: COption<BigNumber>;
148
+ preSwapAmount: COption<BigNumber>;
149
+ triggerPrice: COption<BigNumber>;
150
+ triggerAboveThreshold: COption<boolean>;
151
+ entirePosition: COption<boolean>;
152
+ executed: boolean;
153
+ counter: BigNumber;
154
+ bump: number;
155
+ };
156
+ export declare const positionRequestStruct: FixableBeetStruct<PositionRequest, Partial<PositionRequest>>;
123
157
  export type Limit = {
124
158
  maxAumUsd: BigNumber;
125
159
  maxIndividualLpToken: BigNumber;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.positionStruct = exports.Side = exports.custodyStruct = exports.jumpRateStateStruct = exports.fundingRateStateStruct = exports.assetsStruct = exports.permissionsStruct = exports.pricingParamsStruct = exports.oracleParamsStruct = exports.OracleType = exports.perpetualPoolStruct = exports.feesStruct = exports.poolAprStruct = exports.limitStruct = exports.vestingEscrowStruct = exports.valueAverageStruct = exports.dcaStruct = exports.limitOrderV2Struct = exports.limitOrderStruct = void 0;
3
+ exports.positionStruct = exports.Side = exports.custodyStruct = exports.jumpRateStateStruct = exports.fundingRateStateStruct = exports.assetsStruct = exports.permissionsStruct = exports.pricingParamsStruct = exports.oracleParamsStruct = exports.OracleType = exports.perpetualPoolStruct = exports.feesStruct = exports.poolAprStruct = exports.limitStruct = exports.positionRequestStruct = exports.RequestType = exports.RequestChange = exports.vestingEscrowStruct = exports.valueAverageStruct = exports.dcaStruct = exports.limitOrderV2Struct = exports.limitOrderStruct = void 0;
4
4
  const beet_1 = require("@metaplex-foundation/beet");
5
5
  const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
6
  const solana_1 = require("../../../utils/solana");
@@ -115,6 +115,41 @@ exports.vestingEscrowStruct = new beet_1.BeetStruct([
115
115
  ['padding1', solana_1.u64],
116
116
  ['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 5)],
117
117
  ], (args) => args);
118
+ var RequestChange;
119
+ (function (RequestChange) {
120
+ RequestChange[RequestChange["None"] = 0] = "None";
121
+ RequestChange[RequestChange["Increase"] = 1] = "Increase";
122
+ RequestChange[RequestChange["Decrease"] = 2] = "Decrease";
123
+ })(RequestChange || (exports.RequestChange = RequestChange = {}));
124
+ var RequestType;
125
+ (function (RequestType) {
126
+ RequestType[RequestType["Market"] = 0] = "Market";
127
+ RequestType[RequestType["Trigger"] = 1] = "Trigger";
128
+ })(RequestType || (exports.RequestType = RequestType = {}));
129
+ exports.positionRequestStruct = new beet_1.FixableBeetStruct([
130
+ ['buffer', (0, solana_1.blob)(8)],
131
+ ['owner', beet_solana_1.publicKey],
132
+ ['pool', beet_solana_1.publicKey],
133
+ ['custody', beet_solana_1.publicKey],
134
+ ['position', beet_solana_1.publicKey],
135
+ ['mint', beet_solana_1.publicKey],
136
+ ['openTime', solana_1.i64],
137
+ ['updateTime', solana_1.i64],
138
+ ['sizeUsdDelta', solana_1.u64],
139
+ ['collateralDelta', solana_1.u64],
140
+ ['requestChange', beet_1.u8],
141
+ ['requestType', beet_1.u8],
142
+ ['side', beet_1.u8],
143
+ ['priceSlippage', (0, beet_1.coption)(solana_1.u64)],
144
+ ['jupiterMinimumOut', (0, beet_1.coption)(solana_1.u64)],
145
+ ['preSwapAmount', (0, beet_1.coption)(solana_1.u64)],
146
+ ['triggerPrice', (0, beet_1.coption)(solana_1.u64)],
147
+ ['triggerAboveThreshold', (0, beet_1.coption)(beet_1.bool)],
148
+ ['entirePosition', (0, beet_1.coption)(beet_1.bool)],
149
+ ['executed', beet_1.bool],
150
+ ['counter', solana_1.u64],
151
+ ['bump', beet_1.u8],
152
+ ], (args) => args);
118
153
  exports.limitStruct = new beet_1.BeetStruct([
119
154
  ['maxAumUsd', solana_1.u128],
120
155
  ['maxIndividualLpToken', solana_1.u128],
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/structs.ts"],"names":[],"mappings":";;;AAAA,oDAQmC;AACnC,kEAA6D;AAG7D,kDAA6D;AAqBhD,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,SAAS,EAAE,WAAI,CAAC;IACjB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,mBAAmB,EAAE,uBAAS,CAAC;IAChC,CAAC,oBAAoB,EAAE,uBAAS,CAAC;IACjC,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,KAAK,EAAE,YAAG,CAAC;IACZ,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,UAAU,EAAE,uBAAS,CAAC;CACxB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAwBW,QAAA,kBAAkB,GAAG,IAAI,iBAAU,CAC9C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,mBAAmB,EAAE,uB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portfolio_core_1.PortfolioElementType.trade,
52
52
  networkId: portfolio_core_1.NetworkId.solana,
53
53
  platformId: constants_1.platformId,
54
- label: 'DCA',
54
+ label: 'SmartDCA',
55
55
  data: {
56
56
  assets: {
57
57
  input: inputAsset,
@@ -1 +1 @@
1
- {"version":3,"file":"valueAverageFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/valueAverageFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAgE;AAChE,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,uCAA+C;AAC/C,uCAAgD;AAEhD,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,4BAAkB,EAClB,iCAAqB,EACrB,IAAA,6BAAmB,EAAC,KAAK,CAAC,CAC3B,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACjD,QAAQ;SACL,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC7D,IAAI,EAAE,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,QAAQ,GAA4B,EAAE,CAAC;IAC7C,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,YAAY,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAClD,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACpD,MAAM,eAAe,GAAG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C,QAAQ,EAAE;gBACnE,kBAAkB;gBAClB,YAAY;gBACZ,aAAa;gBACb,UAAU,EAAE,eAAe,CAAC,KAAK;gBACjC,WAAW,EAAE,gBAAgB,CAAC,KAAK;gBACnC,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;gBACnD,qBAAqB,EAAE,OAAO,CAAC,YAAY;qBACxC,GAAG,CAAC,SAAA,EAAE,EAAI,gBAAgB,CAAC,QAAQ,CAAA,CAAC;qBACpC,QAAQ,EAAE;gBACb,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC9B,IAAI,EAAE,2BAA2B;aAClC;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,CAAC,UAAU,CAAC,KAAK,EAAE,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,CAAC,CAAC,CAAC;SACnE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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"}
1
+ {"version":3,"file":"valueAverageFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/valueAverageFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAgE;AAChE,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,uCAA+C;AAC/C,uCAAgD;AAEhD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,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AAE,KAAK,KAAI,CAAC,CAAC,CAAC;SACnE,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,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"}
@@ -2,5 +2,6 @@
2
2
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
3
3
  import { GetProgramAccountsFilter } from '@solana/web3.js';
4
4
  export declare const perpetualsPositionsFilter: (owner: string) => GetProgramAccountsFilter[];
5
+ export declare const positionRequestFilters: (owner: string) => GetProgramAccountsFilter[];
5
6
  export declare const escrowFilter: (owner: string) => GetProgramAccountsFilter[];
6
7
  export declare const partialUnstakeFilter: (escrow: string) => GetProgramAccountsFilter[];