@sonarwatch/portfolio-plugins 0.12.177 → 0.12.178

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/src/index.js +4 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/adrena/constants.d.ts +8 -0
  6. package/src/plugins/adrena/constants.js +18 -0
  7. package/src/plugins/adrena/constants.js.map +1 -0
  8. package/src/plugins/adrena/custodiesJob.d.ts +3 -0
  9. package/src/plugins/adrena/custodiesJob.js +34 -0
  10. package/src/plugins/adrena/custodiesJob.js.map +1 -0
  11. package/src/plugins/adrena/filters.d.ts +3 -0
  12. package/src/plugins/adrena/filters.js +21 -0
  13. package/src/plugins/adrena/filters.js.map +1 -0
  14. package/src/plugins/adrena/helpers.d.ts +5 -0
  15. package/src/plugins/adrena/helpers.js +22 -0
  16. package/src/plugins/adrena/helpers.js.map +1 -0
  17. package/src/plugins/adrena/index.d.ts +6 -0
  18. package/src/plugins/adrena/index.js +14 -0
  19. package/src/plugins/adrena/index.js.map +1 -0
  20. package/src/plugins/adrena/positionsFetcher.d.ts +3 -0
  21. package/src/plugins/adrena/positionsFetcher.js +49 -0
  22. package/src/plugins/adrena/positionsFetcher.js.map +1 -0
  23. package/src/plugins/adrena/stakingFetcher.d.ts +3 -0
  24. package/src/plugins/adrena/stakingFetcher.js +69 -0
  25. package/src/plugins/adrena/stakingFetcher.js.map +1 -0
  26. package/src/plugins/adrena/structs.d.ts +187 -0
  27. package/src/plugins/adrena/structs.js +175 -0
  28. package/src/plugins/adrena/structs.js.map +1 -0
  29. package/src/plugins/adrena/types.d.ts +9 -0
  30. package/src/plugins/adrena/types.js +3 -0
  31. package/src/plugins/adrena/types.js.map +1 -0
  32. package/src/plugins/elemental/depositFetcher.js +0 -8
  33. package/src/plugins/elemental/depositFetcher.js.map +1 -1
  34. package/src/plugins/flash/helpers.js +16 -1
  35. package/src/plugins/flash/helpers.js.map +1 -1
  36. package/src/plugins/flash/types.d.ts +5 -0
  37. package/src/plugins/hawksight/positionsFetcher.js +4 -0
  38. package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
  39. package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
  40. package/src/plugins/jupiter/exchange/constants.js +2 -1
  41. package/src/plugins/jupiter/exchange/constants.js.map +1 -1
  42. package/src/plugins/jupiter/exchange/filters.d.ts +1 -0
  43. package/src/plugins/jupiter/exchange/filters.js +11 -1
  44. package/src/plugins/jupiter/exchange/filters.js.map +1 -1
  45. package/src/plugins/jupiter/exchange/lockFetcher.d.ts +3 -0
  46. package/src/plugins/jupiter/exchange/lockFetcher.js +47 -0
  47. package/src/plugins/jupiter/exchange/lockFetcher.js.map +1 -0
  48. package/src/plugins/jupiter/exchange/structs.d.ts +19 -0
  49. package/src/plugins/jupiter/exchange/structs.js +19 -1
  50. package/src/plugins/jupiter/exchange/structs.js.map +1 -1
  51. package/src/plugins/jupiter/index.js +2 -0
  52. package/src/plugins/jupiter/index.js.map +1 -1
  53. package/src/plugins/navi/collateralFetcher.js +42 -81
  54. package/src/plugins/navi/collateralFetcher.js.map +1 -1
  55. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +1 -1
  56. package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userStakingStruct = exports.liquidStakeStruct = exports.lockedStakeStruct = exports.positionStruct = exports.custodyStruct = exports.borrowRateStateStruct = exports.positionsAccountingStruct = exports.StableLockedAmountStatStruct = exports.u128SplitStruct = exports.tradeStatsStruct = exports.volumeStatsStruct = exports.assetsStruct = exports.feesStatsStruct = exports.borrowRateParamsStruct = exports.feesStruct = exports.pricingParamsStruct = void 0;
4
+ const beet_1 = require("@metaplex-foundation/beet");
5
+ const beet_solana_1 = require("@metaplex-foundation/beet-solana");
6
+ const solana_1 = require("../../utils/solana");
7
+ exports.pricingParamsStruct = new beet_1.BeetStruct([
8
+ ['maxInitialLeverage', beet_1.u32],
9
+ ['maxLeverage', beet_1.u32],
10
+ ['maxPositionLockedUsd', solana_1.u64],
11
+ ['maxCumulativeShortPositionSizeUsd', solana_1.u64],
12
+ ], (args) => args);
13
+ exports.feesStruct = new beet_1.BeetStruct([
14
+ ['swapIn', beet_1.u16],
15
+ ['swapOut', beet_1.u16],
16
+ ['stableSwapIn', beet_1.u16],
17
+ ['stableSwapOut', beet_1.u16],
18
+ ['addLiquidity', beet_1.u16],
19
+ ['removeLiquidity', beet_1.u16],
20
+ ['closePosition', beet_1.u16],
21
+ ['liquidation', beet_1.u16],
22
+ ['feeMax', beet_1.u16],
23
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
24
+ ['padding2', solana_1.u64],
25
+ ], (args) => args);
26
+ exports.borrowRateParamsStruct = new beet_1.BeetStruct([['maxHourlyBorrowInterestRate', solana_1.u64]], (args) => args);
27
+ exports.feesStatsStruct = new beet_1.BeetStruct([
28
+ ['swapUsd', solana_1.u64],
29
+ ['addLiquidityUsd', solana_1.u64],
30
+ ['removeLiquidityUsd', solana_1.u64],
31
+ ['closePositionUsd', solana_1.u64],
32
+ ['liquidationUsd', solana_1.u64],
33
+ ['borrowUsd', solana_1.u64],
34
+ ], (args) => args);
35
+ exports.assetsStruct = new beet_1.BeetStruct([
36
+ ['collateral', solana_1.u64],
37
+ ['owned', solana_1.u64],
38
+ ['locked', solana_1.u64],
39
+ ], (args) => args);
40
+ exports.volumeStatsStruct = new beet_1.BeetStruct([
41
+ ['swapUsd', solana_1.u64],
42
+ ['addLiquidityUsd', solana_1.u64],
43
+ ['removeLiquidityUsd', solana_1.u64],
44
+ ['openPositionUsd', solana_1.u64],
45
+ ['closePositionUsd', solana_1.u64],
46
+ ['liquidationUsd', solana_1.u64],
47
+ ], (args) => args);
48
+ exports.tradeStatsStruct = new beet_1.BeetStruct([
49
+ ['profitUsd', solana_1.u64],
50
+ ['lossUsd', solana_1.u64],
51
+ ['oiLongUsd', solana_1.u64],
52
+ ['oiShortUsd', solana_1.u64],
53
+ ], (args) => args);
54
+ exports.u128SplitStruct = new beet_1.BeetStruct([
55
+ ['high', solana_1.u64],
56
+ ['low', solana_1.u64],
57
+ ], (args) => args);
58
+ exports.StableLockedAmountStatStruct = new beet_1.BeetStruct([
59
+ ['custody', beet_solana_1.publicKey],
60
+ ['lockedAmount', solana_1.u64],
61
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
62
+ ], (args) => args);
63
+ exports.positionsAccountingStruct = new beet_1.FixableBeetStruct([
64
+ ['openPositions', solana_1.u64],
65
+ ['sizeUsd', solana_1.u64],
66
+ ['borrowSizeUsd', solana_1.u64],
67
+ ['lockedAmount', solana_1.u64],
68
+ ['weightedPrice', exports.u128SplitStruct],
69
+ ['totalQuantity', exports.u128SplitStruct],
70
+ ['cumulativeInterestUsd', solana_1.u64],
71
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
72
+ ['cumulativeInterestSnapshot', exports.u128SplitStruct],
73
+ ['exitFeeUsd', solana_1.u64],
74
+ [
75
+ 'stableLockedAmount',
76
+ (0, beet_1.uniformFixedSizeArray)(exports.StableLockedAmountStatStruct, 2),
77
+ ],
78
+ ], (args) => args);
79
+ exports.borrowRateStateStruct = new beet_1.BeetStruct([
80
+ ['currentRate', solana_1.u64],
81
+ ['lastUpdate', solana_1.i64],
82
+ ['cumulativeInterest', exports.u128SplitStruct],
83
+ ], (args) => args);
84
+ exports.custodyStruct = new beet_1.FixableBeetStruct([
85
+ ['buffer', (0, solana_1.blob)(8)],
86
+ ['bump', beet_1.u8],
87
+ ['tokenAccountBump', beet_1.u8],
88
+ ['allowTrade', beet_1.u8],
89
+ ['allowSwap', beet_1.u8],
90
+ ['decimals', beet_1.u8],
91
+ ['isStable', beet_1.u8],
92
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 2)],
93
+ ['pool', beet_solana_1.publicKey],
94
+ ['mint', beet_solana_1.publicKey],
95
+ ['tokenAccount', beet_solana_1.publicKey],
96
+ ['oracle', beet_solana_1.publicKey],
97
+ ['tradeOracle', beet_solana_1.publicKey],
98
+ ['pricing', exports.pricingParamsStruct],
99
+ ['fees', exports.feesStruct],
100
+ ['borrowRate', exports.borrowRateParamsStruct],
101
+ ['collectedFees', exports.feesStatsStruct],
102
+ ['volumeStats', exports.volumeStatsStruct],
103
+ ['tradeStats', exports.tradeStatsStruct],
104
+ ['assets', exports.assetsStruct],
105
+ ['longPositions', exports.positionsAccountingStruct],
106
+ ['shortPositions', exports.positionsAccountingStruct],
107
+ ['borrowRateState', exports.borrowRateStateStruct],
108
+ ], (args) => args);
109
+ exports.positionStruct = new beet_1.BeetStruct([
110
+ ['buffer', (0, solana_1.blob)(8)],
111
+ ['bump', beet_1.u8],
112
+ ['side', beet_1.u8],
113
+ ['takeProfitThreadIsSet', beet_1.u8],
114
+ ['stopLossThreadIsSet', beet_1.u8],
115
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
116
+ ['owner', beet_solana_1.publicKey],
117
+ ['pool', beet_solana_1.publicKey],
118
+ ['custody', beet_solana_1.publicKey],
119
+ ['collateralCustody', beet_solana_1.publicKey],
120
+ ['openTime', solana_1.i64],
121
+ ['updateTime', solana_1.i64],
122
+ ['price', solana_1.u64],
123
+ ['sizeUsd', solana_1.u64],
124
+ ['borrowSizeUsd', solana_1.u64],
125
+ ['collateralUsd', solana_1.u64],
126
+ ['unrealizedLossUsd', solana_1.u64],
127
+ ['cumulativeInterestSnapshot', exports.u128SplitStruct],
128
+ ['lockedAmount', solana_1.u64],
129
+ ['collateralAmount', solana_1.u64],
130
+ ['exitFeeUsd', solana_1.u64],
131
+ ['liquidationFeeUsd', solana_1.u64],
132
+ ['takeProfitThreadId', solana_1.u64],
133
+ ['takeProfitLimitPrice', solana_1.u64],
134
+ ['stopLossThreadId', solana_1.u64],
135
+ ['stopLossLimitPrice', solana_1.u64],
136
+ ['stopLossClosePositionPrice', solana_1.u64],
137
+ ], (args) => args);
138
+ exports.lockedStakeStruct = new beet_1.BeetStruct([
139
+ ['amount', solana_1.u64],
140
+ ['stakeTime', solana_1.i64],
141
+ ['claimTime', solana_1.i64],
142
+ ['endTime', solana_1.i64],
143
+ ['lockDuration', solana_1.u64],
144
+ ['rewardMultiplier', beet_1.u32],
145
+ ['lmRewardMultiplier', beet_1.u32],
146
+ ['voteMultiplier', beet_1.u32],
147
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
148
+ ['amountWithRewardMultiplier', solana_1.u64],
149
+ ['amountWithLmRewardMultiplier', solana_1.u64],
150
+ ['resolved', beet_1.u8],
151
+ ['padding2', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
152
+ ['stakeResolutionThreadId', solana_1.u64],
153
+ ['earlyExit', beet_1.u8],
154
+ ['padding3', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
155
+ ['earlyExitFee', solana_1.u64],
156
+ ['isGenesis', beet_1.u8],
157
+ ['padding4', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
158
+ ['genesisClaimTime', solana_1.i64],
159
+ ], (args) => args);
160
+ exports.liquidStakeStruct = new beet_1.BeetStruct([
161
+ ['amount', solana_1.u64],
162
+ ['stakeTime', solana_1.i64],
163
+ ['claimTime', solana_1.i64],
164
+ ['overlapTime', solana_1.i64],
165
+ ['overlapAmount', solana_1.u64],
166
+ ], (args) => args);
167
+ exports.userStakingStruct = new beet_1.FixableBeetStruct([
168
+ ['bump', beet_1.u8],
169
+ ['threadAuthorityBump', beet_1.u8],
170
+ ['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
171
+ ['stakesClaimCronThreadId', solana_1.u64],
172
+ ['liquidStake', exports.liquidStakeStruct],
173
+ ['lockedStakes', (0, beet_1.uniformFixedSizeArray)(exports.lockedStakeStruct, 32)],
174
+ ], (args) => args);
175
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAAoD;AASvC,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,oBAAoB,EAAE,UAAG,CAAC;IAC3B,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,sBAAsB,EAAE,YAAG,CAAC;IAC7B,CAAC,mCAAmC,EAAE,YAAG,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAgBW,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,UAAU,EAAE,YAAG,CAAC;CAClB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAMW,QAAA,sBAAsB,GAAG,IAAI,iBAAU,CAClD,CAAC,CAAC,6BAA6B,EAAE,YAAG,CAAC,CAAC,EACtC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAwB,CACnC,CAAC;AAWW,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,oBA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9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ID } from '../../utils/sui/structs/id';
2
+ import { Custody } from './structs';
3
+ export type Receipt = {
4
+ id: ID;
5
+ amountDeposited: string;
6
+ };
7
+ export type CachedCustody = Custody & {
8
+ pubkey: string;
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/types.ts"],"names":[],"mappings":""}
@@ -64,14 +64,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
64
64
  alreadyShifted: false,
65
65
  attributes: { isClaimable: true },
66
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
67
  element.addAsset({
76
68
  address: pool.liquidity_mint,
77
69
  amount: position.deactivating_amount.div(pool.per_token_amount),
@@ -1 +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;IACt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,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"}
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,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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"}
@@ -8,9 +8,13 @@ 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
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.getLpTokenPrice = exports.getPdas = void 0;
13
16
  const web3_js_1 = require("@solana/web3.js");
17
+ const axios_1 = __importDefault(require("axios"));
14
18
  const constants_1 = require("./constants");
15
19
  const anchorSighash_1 = require("../../utils/solana/anchorSighash");
16
20
  const solana_1 = require("../../utils/solana");
@@ -64,17 +68,28 @@ function getLpTokenPrice(connection, pool, oracles) {
64
68
  ];
65
69
  const data = Buffer.concat([(0, anchorSighash_1.anchorSighash)('global', 'getLpTokenPrice')]);
66
70
  const recentBlockhash = (yield connection.getLatestBlockhash()).blockhash;
71
+ const prefixResponse = yield axios_1.default.get(`https://api.prod.flash.trade/backup-oracle/prices?poolAddress=${pool.pubkey.toString()}`);
72
+ if (!prefixResponse.data)
73
+ return null;
74
+ const addressLookupTable = (yield connection.getAddressLookupTable(new web3_js_1.PublicKey('4E5u7DBVrJp6tVaWkH1sr6r9hhkFwGWmhEHrHeTNDdnP'))).value;
75
+ if (!addressLookupTable)
76
+ return null;
67
77
  const messageV0 = new web3_js_1.TransactionMessage({
68
78
  payerKey: new web3_js_1.PublicKey(solana_1.emptyWithSol),
69
79
  recentBlockhash,
70
80
  instructions: [
81
+ new web3_js_1.TransactionInstruction({
82
+ keys: prefixResponse.data.keys,
83
+ programId: new web3_js_1.PublicKey(prefixResponse.data.programId),
84
+ data: Buffer.from(prefixResponse.data.data),
85
+ }),
71
86
  new web3_js_1.TransactionInstruction({
72
87
  keys,
73
88
  programId: constants_1.flashPid,
74
89
  data,
75
90
  }),
76
91
  ],
77
- }).compileToV0Message();
92
+ }).compileToV0Message([addressLookupTable]);
78
93
  const versionedTransaction = new web3_js_1.VersionedTransaction(messageV0);
79
94
  const simulatedTransactionResponse = yield connection.simulateTransaction(versionedTransaction);
80
95
  const returnedData = (_a = simulatedTransactionResponse.value.returnData) === null || _a === void 0 ? void 0 : _a.data[0];
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAOyB;AACzB,2CAAoE;AAEpE,oEAAiE;AAEjE,+CAK4B;AAE5B,SAAgB,OAAO,CAAC,KAAa;IACnC,OAAO,sBAAU,CAAC,GAAG,CACnB,CAAC,GAAG,EAAE,EAAE,CACN,mBAAS,CAAC,sBAAsB,CAC9B;QACE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;QAC5B,IAAI,mB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MAAM,YAAY,GAAG,MAAA,4BAA4B,CAAC,KAAK,CAAC,UAAU,0CAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5E,IAAI,YAAY;YACd,OAAO,YAAG;iBACP,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;iBAC5C,GAAG,CAAC,SAAA,EAAE,EAAI,2BAAkB,CAAA,CAAC;iBAC7B,QAAQ,EAAE,CAAC;QAEhB,OAAO,IAAI,CAAC;;CACb;AAvFD,0CAuFC"}
@@ -103,4 +103,9 @@ export type PoolInfo = {
103
103
  flpMint: string;
104
104
  rewardPerLp: number;
105
105
  };
106
+ export type Prefix = {
107
+ keys: any[];
108
+ programId: string;
109
+ data: number[];
110
+ };
106
111
  export {};
@@ -17,6 +17,7 @@ const web3_js_1 = require("@solana/web3.js");
17
17
  const constants_1 = require("./constants");
18
18
  const helper_1 = require("./helper");
19
19
  const obligationsFetcher_1 = __importDefault(require("../save/obligationsFetcher"));
20
+ const dlmmPositionsFetcher_1 = __importDefault(require("../meteora/dlmmPositionsFetcher"));
20
21
  const solana_1 = __importDefault(require("../tokens/fetchers/solana"));
21
22
  const getWhirlpoolPositions_1 = require("../orca/getWhirlpoolPositions");
22
23
  const constants_2 = require("../tokens/constants");
@@ -53,6 +54,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
53
54
  // This handles Save
54
55
  obligationsFetcher_1.default.executor(derivedAddresses[0].toString(), cache),
55
56
  obligationsFetcher_1.default.executor(derivedAddresses[1].toString(), cache),
57
+ // This handles Meteora
58
+ dlmmPositionsFetcher_1.default.executor(derivedAddresses[0].toString(), cache),
59
+ dlmmPositionsFetcher_1.default.executor(derivedAddresses[1].toString(), cache),
56
60
  ])).flat();
57
61
  if (portfolioElements.length === 0)
58
62
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawks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AI;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,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,KAAK,CAAC;QACb,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;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
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hawksight/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAG5C,2CAAyC;AACzC,qCAAgD;AAChD,oFAA4D;AAC5D,2FAAkE;AAClE,uEAAqD;AACrD,yEAAsE;AACtE,mDAA2D;AAC3D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AC,CAAC;QACL,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,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,KAAK,CAAC;QACb,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;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"}
@@ -7,6 +7,7 @@ export declare const valueAverageProgramId: PublicKey;
7
7
  export declare const limitProgramId: PublicKey;
8
8
  export declare const limitV2ProgramId: PublicKey;
9
9
  export declare const dcaProgramId: PublicKey;
10
+ export declare const lockProgramId: PublicKey;
10
11
  export declare const jlpPool: PublicKey;
11
12
  export declare const jlpToken: PublicKey;
12
13
  export declare const custodiesKey = "custodies";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.perpPoolsKey = exports.custodiesKey = exports.jlpToken = exports.jlpPool = exports.dcaProgramId = exports.limitV2ProgramId = exports.limitProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.platform = exports.platformId = void 0;
3
+ exports.perpPoolsKey = exports.custodiesKey = exports.jlpToken = exports.jlpPool = exports.lockProgramId = exports.dcaProgramId = exports.limitV2ProgramId = exports.limitProgramId = exports.valueAverageProgramId = exports.perpsProgramId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'jupiter-exchange';
6
6
  exports.platform = {
@@ -16,6 +16,7 @@ exports.valueAverageProgramId = new web3_js_1.PublicKey('JVAp1DSLnM4Qh8qM1QasQ8x
16
16
  exports.limitProgramId = new web3_js_1.PublicKey('jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu');
17
17
  exports.limitV2ProgramId = new web3_js_1.PublicKey('j1o2qRpjcyUwEvwtcfhEQefh773ZgjxcVRry7LDqg5X');
18
18
  exports.dcaProgramId = new web3_js_1.PublicKey('DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M');
19
+ exports.lockProgramId = new web3_js_1.PublicKey('LocpQgucEQHbqNABEYvBvwoxCPsSbG91A1QaQhQQqjn');
19
20
  exports.jlpPool = new web3_js_1.PublicKey('5BUwFW4nRbftYTDMbgxykoFWqWHPzahFSNAaaaJtVKsq');
20
21
  exports.jlpToken = new web3_js_1.PublicKey('27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4');
21
22
  exports.custodiesKey = 'custodies';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,kBAAkB,CAAC;AAChC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,WAAW,CAAC;AAC3B,QAAA,YAAY,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,kBAAkB,CAAC;AAChC,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,WAAW,CAAC;AAC3B,QAAA,YAAY,GAAG,WAAW,CAAC"}
@@ -2,3 +2,4 @@ import { GetProgramAccountsFilter } from '@solana/web3.js';
2
2
  export declare const limitFilters: (owner: string) => GetProgramAccountsFilter[];
3
3
  export declare const DCAFilters: (owner: string) => GetProgramAccountsFilter[];
4
4
  export declare const valueAverageFilters: (owner: string) => GetProgramAccountsFilter[];
5
+ export declare const lockFilters: (owner: string) => GetProgramAccountsFilter[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.valueAverageFilters = exports.DCAFilters = exports.limitFilters = void 0;
3
+ exports.lockFilters = exports.valueAverageFilters = exports.DCAFilters = exports.limitFilters = void 0;
4
4
  const structs_1 = require("./structs");
5
5
  const limitFilters = (owner) => [
6
6
  {
@@ -37,4 +37,14 @@ const valueAverageFilters = (owner) => [
37
37
  { dataSize: 339 },
38
38
  ];
39
39
  exports.valueAverageFilters = valueAverageFilters;
40
+ const lockFilters = (owner) => [
41
+ {
42
+ memcmp: {
43
+ offset: 8,
44
+ bytes: owner,
45
+ },
46
+ },
47
+ { dataSize: 296 },
48
+ ];
49
+ exports.lockFilters = lockFilters;
40
50
  //# sourceMappingURL=filters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/filters.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAbW,QAAA,YAAY,gBAavB;AAEK,MAAM,UAAU,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACvE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,mBAAS,CAAC,QAAQ,EAAE;CACjC,CAAC;AARW,QAAA,UAAU,cAQrB;AAEK,MAAM,mBAAmB,GAAG,CACjC,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AAVW,QAAA,mBAAmB,uBAU9B"}
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/filters.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAbW,QAAA,YAAY,gBAavB;AAEK,MAAM,UAAU,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACvE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,mBAAS,CAAC,QAAQ,EAAE;CACjC,CAAC;AARW,QAAA,UAAU,cAQrB;AAEK,MAAM,mBAAmB,GAAG,CACjC,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AAVW,QAAA,mBAAmB,uBAU9B;AAEK,MAAM,WAAW,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACxE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AARW,QAAA,WAAW,eAQtB"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,47 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
+ const constants_1 = require("./constants");
14
+ const clients_1 = require("../../../utils/clients");
15
+ const solana_1 = require("../../../utils/solana");
16
+ const structs_1 = require("./structs");
17
+ const filters_1 = require("./filters");
18
+ const ElementRegistry_1 = require("../../../utils/elementbuilder/ElementRegistry");
19
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
20
+ const client = (0, clients_1.getClientSolana)();
21
+ const vestingEscrowAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.vestingEscrowStruct, constants_1.lockProgramId, (0, filters_1.lockFilters)(owner));
22
+ if (vestingEscrowAccounts.length === 0)
23
+ return [];
24
+ const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
25
+ const element = registry.addElementMultiple({
26
+ label: 'Vesting',
27
+ name: 'lock',
28
+ });
29
+ for (const lock of vestingEscrowAccounts) {
30
+ const endTime = lock.vestingStartTime.plus(lock.numberOfPeriod.times(lock.frequency));
31
+ element.addAsset({
32
+ address: lock.tokenMint,
33
+ amount: lock.amountPerPeriod
34
+ .times(lock.numberOfPeriod)
35
+ .minus(lock.totalClaimedAmount),
36
+ attributes: { lockedUntil: endTime.toNumber() },
37
+ });
38
+ }
39
+ return registry.getElements(cache);
40
+ });
41
+ const fetcher = {
42
+ id: `${constants_1.platformId}-lock`,
43
+ networkId: portfolio_core_1.NetworkId.solana,
44
+ executor,
45
+ };
46
+ exports.default = fetcher;
47
+ //# sourceMappingURL=lockFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/lockFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAwD;AACxD,oDAAyD;AACzD,kDAAiE;AACjE,uCAAgD;AAChD,uCAAwC;AACxC,mFAAgF;AAEhF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,qBAAqB,GAAG,MAAM,IAAA,iCAAwB,EAC1D,MAAM,EACN,6BAAmB,EACnB,yBAAa,EACb,IAAA,qBAAW,EAAC,KAAK,CAAC,CACnB,CAAC;IACF,IAAI,qBAAqB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAElD,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,MAAM;KACb,CAAC,CAAC;IAEH,KAAK,MAAM,IAAI,IAAI,qBAAqB,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CACxC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAC1C,CAAC;QAEF,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,MAAM,EAAE,IAAI,CAAC,eAAe;iBACzB,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC;iBAC1B,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;YACjC,UAAU,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE;SAChD,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,OAAO;IACxB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -95,6 +95,25 @@ export type ValueAverage = {
95
95
  outBalanceBeforeSwap: BigNumber;
96
96
  };
97
97
  export declare const valueAverageStruct: BeetStruct<ValueAverage, Partial<ValueAverage>>;
98
+ export type VestingEscrow = {
99
+ buffer: Buffer;
100
+ recipient: PublicKey;
101
+ tokenMint: PublicKey;
102
+ creator: PublicKey;
103
+ base: PublicKey;
104
+ escrowBump: number;
105
+ updateRecipientMode: number;
106
+ padding0: number[];
107
+ cliffTime: BigNumber;
108
+ frequency: BigNumber;
109
+ cliffUnlockAmount: BigNumber;
110
+ amountPerPeriod: BigNumber;
111
+ numberOfPeriod: BigNumber;
112
+ totalClaimedAmount: BigNumber;
113
+ vestingStartTime: BigNumber;
114
+ padding: BigNumber[];
115
+ };
116
+ export declare const vestingEscrowStruct: BeetStruct<VestingEscrow, Partial<VestingEscrow>>;
98
117
  export type Limit = {
99
118
  maxAumUsd: BigNumber;
100
119
  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.fundingRateStateStruct = exports.assetsStruct = exports.permissionsStruct = exports.pricingParamsStruct = exports.oracleParamsStruct = exports.OracleType = exports.perpetualPoolStruct = exports.feesStruct = exports.poolAprStruct = exports.limitStruct = exports.valueAverageStruct = exports.dcaStruct = exports.limitOrderV2Struct = exports.limitOrderStruct = void 0;
3
+ exports.positionStruct = exports.Side = exports.custodyStruct = 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;
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");
@@ -93,6 +93,24 @@ exports.valueAverageStruct = new beet_1.BeetStruct([
93
93
  ['nextOrderAt', solana_1.i64],
94
94
  ['outBalanceBeforeSwap', solana_1.u64],
95
95
  ], (args) => args);
96
+ exports.vestingEscrowStruct = new beet_1.BeetStruct([
97
+ ['buffer', (0, solana_1.blob)(8)],
98
+ ['recipient', beet_solana_1.publicKey],
99
+ ['tokenMint', beet_solana_1.publicKey],
100
+ ['creator', beet_solana_1.publicKey],
101
+ ['base', beet_solana_1.publicKey],
102
+ ['escrowBump', beet_1.u8],
103
+ ['updateRecipientMode', beet_1.u8],
104
+ ['padding0', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
105
+ ['cliffTime', solana_1.u64],
106
+ ['frequency', solana_1.u64],
107
+ ['cliffUnlockAmount', solana_1.u64],
108
+ ['amountPerPeriod', solana_1.u64],
109
+ ['numberOfPeriod', solana_1.u64],
110
+ ['totalClaimedAmount', solana_1.u64],
111
+ ['vestingStartTime', solana_1.u64],
112
+ ['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 6)],
113
+ ], (args) => args);
96
114
  exports.limitStruct = new beet_1.BeetStruct([
97
115
  ['maxAumUsd', solana_1.u128],
98
116
  ['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,C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;IACd,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,4BAA4B,EAAE,aAAI,CAAC;IACpC,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,MAAM,EAAE,SAAE,CAAC;CACb,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC"}
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,IA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AAEF,IAAY,IAIX;AAJD,WAAY,IAAI;IACd,+BAAI,CAAA;IACJ,+BAAI,CAAA;IACJ,iCAAK,CAAA;AACP,CAAC,EAJW,IAAI,oBAAJ,IAAI,QAIf;AAoBY,QAAA,cAAc,GAAG,IAAI,iBAAU,CAC1C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,mBAAmB,EAAE,uBAAS,CAAC;IAChC,CAAC,UAAU,EAAE,YAAG,CAAC;IACjB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,4BAA4B,EAAE,aAAI,CAAC;IACpC,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,MAAM,EAAE,SAAE,CAAC;CACb,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC"}
@@ -8,6 +8,7 @@ const perpetualFetcher_1 = __importDefault(require("./exchange/perpetualFetcher"
8
8
  const valueAverageFetcher_1 = __importDefault(require("./exchange/valueAverageFetcher"));
9
9
  const limitFetcher_1 = __importDefault(require("./exchange/limitFetcher"));
10
10
  const dcaFetcher_1 = __importDefault(require("./exchange/dcaFetcher"));
11
+ const lockFetcher_1 = __importDefault(require("./exchange/lockFetcher"));
11
12
  const custodiesJob_1 = __importDefault(require("./exchange/custodiesJob"));
12
13
  const constants_1 = require("./launchpad/constants");
13
14
  const voteFetcher_1 = __importDefault(require("./governance/voteFetcher"));
@@ -27,6 +28,7 @@ exports.fetchers = [
27
28
  valueAverageFetcher_1.default,
28
29
  limitFetcher_1.default,
29
30
  dcaFetcher_1.default,
31
+ lockFetcher_1.default,
30
32
  voteFetcher_1.default,
31
33
  asrAirdropFetcher_1.fetcher,
32
34
  ...launchpad_1.lfgFetchers,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,mFAA2D;AAC3D,yFAAiE;AACjE,2EAAmD;AACnD,uEAA+C;AAC/C,2EAAmD;AAEnD,qDAAsE;AACtE,2EAAmD;AACnD,sDAAwE;AACxE,8DAAsC;AACtC,oDAAoE;AAEpE,sEAGwC;AACxC,2CAA8D;AAEjD,QAAA,SAAS,GAAe;IACnC,oBAAiB;IACjB,oBAAkB;IAClB,oBAAgB;CACjB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,oBAAU,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,6BAAmB;IACnB,sBAAY;IACZ,oBAAU;IACV,qBAAW;IACX,2BAAU;IACV,GAAG,uBAAW;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,kCAAiB;IACjB,GAAG,8BAAkB;CACtB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,mFAA2D;AAC3D,yFAAiE;AACjE,2EAAmD;AACnD,uEAA+C;AAC/C,yEAAiD;AACjD,2EAAmD;AAEnD,qDAAsE;AACtE,2EAAmD;AACnD,sDAAwE;AACxE,8DAAsC;AACtC,oDAAoE;AAEpE,sEAGwC;AACxC,2CAA8D;AAEjD,QAAA,SAAS,GAAe;IACnC,oBAAiB;IACjB,oBAAkB;IAClB,oBAAgB;CACjB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,oBAAU,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,6BAAmB;IACnB,sBAAY;IACZ,oBAAU;IACV,qBAAW;IACX,qBAAW;IACX,2BAAU;IACV,GAAG,uBAAW;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,kCAAiB;IACjB,GAAG,8BAAkB;CACtB,CAAC"}