@sonarwatch/portfolio-plugins 0.12.76 → 0.12.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +1 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/jupiter/exchange/dcaFetcher.js +13 -7
  6. package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
  7. package/src/plugins/jupiter/exchange/filters.js +0 -1
  8. package/src/plugins/jupiter/exchange/filters.js.map +1 -1
  9. package/src/plugins/jupiter/launchpad/constants.js +0 -18
  10. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  11. package/src/plugins/meteora/constants.d.ts +2 -0
  12. package/src/plugins/meteora/constants.js +3 -1
  13. package/src/plugins/meteora/constants.js.map +1 -1
  14. package/src/plugins/meteora/dlmmPositionsFetcher.js +5 -0
  15. package/src/plugins/meteora/dlmmPositionsFetcher.js.map +1 -1
  16. package/src/plugins/meteora/dlmmVaultsFetcher.d.ts +3 -0
  17. package/src/plugins/meteora/dlmmVaultsFetcher.js +157 -0
  18. package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -0
  19. package/src/plugins/meteora/dlmmVaultsJob.d.ts +3 -0
  20. package/src/plugins/meteora/dlmmVaultsJob.js +44 -0
  21. package/src/plugins/meteora/dlmmVaultsJob.js.map +1 -0
  22. package/src/plugins/meteora/index.js +14 -2
  23. package/src/plugins/meteora/index.js.map +1 -1
  24. package/src/plugins/meteora/struct.d.ts +35 -0
  25. package/src/plugins/meteora/struct.js +34 -1
  26. package/src/plugins/meteora/struct.js.map +1 -1
  27. package/src/plugins/meteora/types.d.ts +5 -1
  28. package/src/plugins/meteora/types.js.map +1 -1
  29. package/src/plugins/nxfinance/constants.d.ts +1 -1
  30. package/src/plugins/nxfinance/constants.js +5 -2
  31. package/src/plugins/nxfinance/constants.js.map +1 -1
  32. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  33. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  34. package/src/plugins/sanctum/airdropFetcher.d.ts +3 -0
  35. package/src/plugins/sanctum/airdropFetcher.js +94 -0
  36. package/src/plugins/sanctum/airdropFetcher.js.map +1 -0
  37. package/src/plugins/sanctum/constants.d.ts +4 -0
  38. package/src/plugins/sanctum/constants.js +12 -1
  39. package/src/plugins/sanctum/constants.js.map +1 -1
  40. package/src/plugins/sanctum/index.d.ts +2 -0
  41. package/src/plugins/sanctum/index.js +7 -2
  42. package/src/plugins/sanctum/index.js.map +1 -1
  43. package/src/plugins/solend/constants.d.ts +4 -0
  44. package/src/plugins/solend/constants.js +5 -1
  45. package/src/plugins/solend/constants.js.map +1 -1
  46. package/src/plugins/solend/index.js +2 -1
  47. package/src/plugins/solend/index.js.map +1 -1
  48. package/src/plugins/solend/rewardsFetcher.d.ts +3 -0
  49. package/src/plugins/solend/rewardsFetcher.js +95 -0
  50. package/src/plugins/solend/rewardsFetcher.js.map +1 -0
  51. package/src/plugins/solend/structs.d.ts +8 -0
  52. package/src/plugins/solend/structs.js +8 -1
  53. package/src/plugins/solend/structs.js.map +1 -1
  54. package/src/plugins/solend/types.d.ts +23 -0
  55. package/src/utils/solana/beets/numbers.d.ts +11 -0
  56. package/src/utils/solana/beets/numbers.js +33 -1
  57. package/src/utils/solana/beets/numbers.js.map +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.binArrayStruct = exports.binStruct = exports.lbPairStruct = exports.variableParametersStruct = exports.staticParametersStruct = exports.protocolFeeStruct = exports.rewardInfoStruct = exports.dlmmPositionV2Struct = exports.dlmmPositionV1Struct = exports.feeInfoStruct = exports.userRewardInfoStruct = exports.farmAccountStruct = exports.farmStruct = exports.poolStateStruct = exports.poolFeesStruct = exports.PoolType = exports.CurveType = exports.stableParamsStruct = exports.TokenMultiplierStruct = exports.depegStruct = exports.DepegType = exports.paddingStruct = exports.vaultStruct = exports.lockedProfitTrackerStruct = exports.vaultBumpsStruct = void 0;
3
+ exports.dlmmVaultStruct = exports.escrowStruct = exports.binArrayStruct = exports.binStruct = exports.lbPairStruct = exports.variableParametersStruct = exports.staticParametersStruct = exports.protocolFeeStruct = exports.rewardInfoStruct = exports.dlmmPositionV2Struct = exports.dlmmPositionV1Struct = exports.feeInfoStruct = exports.userRewardInfoStruct = exports.farmAccountStruct = exports.farmStruct = exports.poolStateStruct = exports.poolFeesStruct = exports.PoolType = exports.CurveType = exports.stableParamsStruct = exports.TokenMultiplierStruct = exports.depegStruct = exports.DepegType = exports.paddingStruct = exports.vaultStruct = exports.lockedProfitTrackerStruct = exports.vaultBumpsStruct = 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");
@@ -250,4 +250,37 @@ exports.binArrayStruct = new beet_1.BeetStruct([
250
250
  ['lbPair', beet_solana_1.publicKey],
251
251
  ['bins', (0, beet_1.uniformFixedSizeArray)(exports.binStruct, 70)],
252
252
  ], (args) => args);
253
+ exports.escrowStruct = new beet_1.BeetStruct([
254
+ ['buffer', (0, solana_1.blob)(8)],
255
+ ['dlmmVault', beet_solana_1.publicKey],
256
+ ['owner', beet_solana_1.publicKey],
257
+ ['totalDeposit', solana_1.u64],
258
+ ['claimedToken', solana_1.u64],
259
+ ['lastClaimedSlot', solana_1.u64],
260
+ ['refunded', beet_1.u8],
261
+ ['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
262
+ ['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 2)],
263
+ ], (args) => args);
264
+ exports.dlmmVaultStruct = new beet_1.BeetStruct([
265
+ ['buffer', (0, solana_1.blob)(8)],
266
+ ['lbPair', solana_1.publicKeyStr],
267
+ ['tokenVault', solana_1.publicKeyStr],
268
+ ['tokenOutVault', solana_1.publicKeyStr],
269
+ ['quoteMint', solana_1.publicKeyStr],
270
+ ['baseMint', solana_1.publicKeyStr],
271
+ ['base', solana_1.publicKeyStr],
272
+ ['owner', solana_1.publicKeyStr],
273
+ ['maxCap', solana_1.u64Str],
274
+ ['totalDeposit', solana_1.u64Str],
275
+ ['totalEscrow', solana_1.u64Str],
276
+ ['swappedAmount', solana_1.u64Str],
277
+ ['boughtToken', solana_1.u64Str],
278
+ ['totalRefund', solana_1.u64Str],
279
+ ['totalClaimedToken', solana_1.u64Str],
280
+ ['startVestingSlot', solana_1.u64Str],
281
+ ['endVestingSlot', solana_1.u64Str],
282
+ ['bump', beet_1.u8],
283
+ ['padding0', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
284
+ ['padding', (0, solana_1.blob)(160)],
285
+ ], (args) => args);
253
286
  //# sourceMappingURL=struct.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAA0D;AAM7C,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AA8BW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,OAAO,EAAE,wBAAgB,CAAC;IAC3B,CAAC,cAAc,EAAE,YAAG,CAAC;IACr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BAAU,CAC1C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,iBAAS,EAAE,EAAE,CAAC,CAAC;CAC/C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAgB,CAC3B,CAAC"}
1
+ {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/struct.ts"],"names":[],"mappings":";;;AAAA,oDASmC;AAEnC,kEAA6D;AAE7D,+CAAgF;AAMnE,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,gBAAgB,EAAE,SAAE,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AAOW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;CACjC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC;AA8BW,QAAA,WAAW,GAAG,IAAI,iBAAU,CACvC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,SAAE,CAAC;IACf,CAAC,OAAO,EAAE,wBAAgB,CAAC;IAC3B,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CA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C,QAAQ,EAAE,eAAM,CAAC;IAClB,CAAC,cAAc,EAAE,eAAM,CAAC;IACxB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,eAAe,EAAE,eAAM,CAAC;IACzB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,aAAa,EAAE,eAAM,CAAC;IACvB,CAAC,mBAAmB,EAAE,eAAM,CAAC;IAC7B,CAAC,kBAAkB,EAAE,eAAM,CAAC;IAC5B,CAAC,gBAAgB,EAAE,eAAM,CAAC;IAC1B,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,GAAG,CAAC,CAAC;CACvB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import BigNumber from 'bignumber.js';
3
- import { LbPair } from './struct';
3
+ import { DlmmVault, LbPair } from './struct';
4
4
  export type FormattedFarm = {
5
5
  pubkey: string;
6
6
  authority: string;
@@ -22,6 +22,10 @@ export type FormattedFarm = {
22
22
  totalStaked: string;
23
23
  paused: boolean;
24
24
  };
25
+ export type DlmmVaultC = Omit<DlmmVault, 'buffer' | 'padding' | 'padding0'> & {
26
+ pubkey: string;
27
+ };
28
+ export type CachedDlmmVaults = Record<string, DlmmVaultC>;
25
29
  export declare enum PositionVersion {
26
30
  V1 = 0,
27
31
  V2 = 1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/types.ts"],"names":[],"mappings":";;;AA0BA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,iDAAE,CAAA;IACF,iDAAE,CAAA;AACJ,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,mDAAM,CAAA;AACR,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/types.ts"],"names":[],"mappings":";;;AA+BA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,iDAAE,CAAA;IACF,iDAAE,CAAA;AACJ,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,mDAAM,CAAA;AACR,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
@@ -5,5 +5,5 @@ export declare const platformId = "nxfinance";
5
5
  export declare const platform: Platform;
6
6
  export declare const ID: PublicKey;
7
7
  export declare const leverageFiProgramID: PublicKey;
8
- export declare const jlpMint = "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4";
8
+ export declare const leverageVaultsMints: string[];
9
9
  export declare const nxfinanceLeverageIdlItem: IdlItem;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nxfinanceLeverageIdlItem = exports.jlpMint = exports.leverageFiProgramID = exports.ID = exports.platform = exports.platformId = void 0;
3
+ exports.nxfinanceLeverageIdlItem = exports.leverageVaultsMints = exports.leverageFiProgramID = exports.ID = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const idl_1 = require("./idl");
6
6
  exports.platformId = 'nxfinance';
@@ -14,7 +14,10 @@ exports.platform = {
14
14
  };
15
15
  exports.ID = new web3_js_1.PublicKey('RaXcyfW8jK295UAU1XN2uLMTHnTWEaeCcNWLeDB4iD6');
16
16
  exports.leverageFiProgramID = new web3_js_1.PublicKey('EHBN9YKtMmrZhj8JZqyBQRGqyyeHw5xUB1Q5eAHszuMt');
17
- exports.jlpMint = '27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4';
17
+ exports.leverageVaultsMints = [
18
+ '27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4', // JLP
19
+ 'vSoLxydx6akxyMD9XEcPvGYNGq6Nn66oqVb3UkGkei7', // vSOL
20
+ ];
18
21
  exports.nxfinanceLeverageIdlItem = {
19
22
  programId: exports.leverageFiProgramID.toString(),
20
23
  idl: idl_1.NxfinanceLeverageIDL,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAA6C;AAEhC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,YAAY,EAAE,sCAAsC;CAClE,CAAC;AAEW,QAAA,EAAE,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AAElE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,OAAO,GAAG,8CAA8C,CAAC;AAEzD,QAAA,wBAAwB,GAAG;IACtC,SAAS,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IACzC,GAAG,EAAE,0BAAoB;IACzB,OAAO,EAAE,QAAQ;CACP,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAA6C;AAEhC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,YAAY,EAAE,sCAAsC;CAClE,CAAC;AAEW,QAAA,EAAE,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AAElE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC,8CAA8C,EAAE,MAAM;IACtD,6CAA6C,EAAE,OAAO;CACvD,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,SAAS,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IACzC,GAAG,EAAE,0BAAoB;IACzB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -64,7 +64,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
64
64
  .toNumber();
65
65
  if (amount > 0) {
66
66
  const assetToken = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount, portfolio_core_1.NetworkId.solana, tokenPrice);
67
- if (deposit.tokenMint === constants_1.jlpMint) {
67
+ if (constants_1.leverageVaultsMints.includes(deposit.tokenMint)) {
68
68
  suppliedAssets.push(assetToken);
69
69
  }
70
70
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AACvE,qGAA6E;AAE7E,uCAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAA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C,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AACvE,qGAA6E;AAE7E,uCAAiE;AAEjE,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACf,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KACvB,EACD,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC;IAEL,MAAM,aAAa,GAAG,CACpB,MAAM,IAAA,0CAAiC,EACrC,UAAU,EACV,oCAAwB,EACxB,CAAC,sBAAsB,CAAC,CACzB,CACF,CAAC,CAAC,CAAC,CAAC;IAEL,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAE9B,MAAM,QAAQ,GAAuB,EAAE,CAAC;IAExC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,KAAK,CAAC,GAAG,CAAC,IAAA,mCAAkB,EAAC,CAAC,CAAC,SAAS,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC,CAC7D,CAAC;IACF,aAAa,CAAC,KAAK,CAAC,OAA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UAAU;YACjB,IAAI,EAAE,iBAAiB,IAAI,sBAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;iBACzD,SAAS,CAAC,GAAG,CAAC;iBACd,aAAa,CAAC,CAAC,CAAC,EAAE;YACrB,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,YAAY;gBACZ,WAAW;gBACX,WAAW,EAAE,IAAI;gBACjB,KAAK,EAAE,aAAa;aACrB;SACF,CAAC,CAAC;IACL,CAAC;IAED,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"}
@@ -0,0 +1,3 @@
1
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
+ declare const airdropFetcher: AirdropFetcher;
3
+ export default airdropFetcher;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
18
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
19
+ const deriveClaimStatus_1 = require("../../utils/solana/jupiter/deriveClaimStatus");
20
+ const clients_1 = require("../../utils/clients");
21
+ const constants_1 = require("../jupiter/launchpad/constants");
22
+ const constants_2 = require("./constants");
23
+ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
24
+ const claimProofBase = yield axios_1.default
25
+ .get(`${constants_1.lfgApiBaseUrl}/CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu/${owner}`, {
26
+ timeout: 5000,
27
+ })
28
+ .catch((e) => {
29
+ if (e.response && e.response.status === 404) {
30
+ return null;
31
+ }
32
+ throw new Error(`Failed to get base claim proof CLOUD`);
33
+ });
34
+ if (!claimProofBase || typeof claimProofBase.data === 'string')
35
+ return (0, AirdropFetcher_1.getAirdropRaw)({
36
+ statics: constants_2.airdropStatics,
37
+ items: [
38
+ {
39
+ amount: 0,
40
+ isClaimed: false,
41
+ label: 'CLOUD',
42
+ address: constants_2.cloudMint,
43
+ },
44
+ ],
45
+ });
46
+ const client = (0, clients_1.getClientSolana)();
47
+ const claimStatusAddress = (0, deriveClaimStatus_1.deriveClaimStatus)(owner, claimProofBase.data.merkle_tree, constants_1.lfgDisProgram);
48
+ const claimStatusAaccount = yield client.getAccountInfo(claimStatusAddress);
49
+ const items = [
50
+ {
51
+ amount: new bignumber_js_1.default(claimProofBase.data.amount)
52
+ .div(Math.pow(10, constants_2.cloudDecimals))
53
+ .toNumber(),
54
+ isClaimed: claimStatusAaccount !== null,
55
+ label: 'CLOUD',
56
+ address: constants_2.cloudMint,
57
+ },
58
+ ];
59
+ // Check Earnestness
60
+ const claimProofEarn = yield axios_1.default
61
+ .get(`${constants_1.lfgApiBaseUrl}/earnestness-CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu/${owner}`, {
62
+ timeout: 5000,
63
+ })
64
+ .catch((e) => {
65
+ if (e.response && e.response.status === 404) {
66
+ return null;
67
+ }
68
+ throw new Error(`Failed to get earnestness claim proof CLOUD`);
69
+ });
70
+ // If Earnestness elligible
71
+ if (claimProofEarn && typeof claimProofEarn.data !== 'string') {
72
+ const earnClaimStatusAddress = (0, deriveClaimStatus_1.deriveClaimStatus)(owner, claimProofBase.data.merkle_tree, constants_1.lfgDisProgram);
73
+ const earnClaimStatusAaccount = yield client.getAccountInfo(earnClaimStatusAddress);
74
+ items.push({
75
+ amount: new bignumber_js_1.default(claimProofEarn.data.amount)
76
+ .div(Math.pow(10, constants_2.cloudDecimals))
77
+ .toNumber(),
78
+ isClaimed: earnClaimStatusAaccount !== null,
79
+ label: 'CLOUD',
80
+ address: constants_2.cloudMint,
81
+ });
82
+ }
83
+ return (0, AirdropFetcher_1.getAirdropRaw)({
84
+ statics: constants_2.airdropStatics,
85
+ items,
86
+ });
87
+ });
88
+ const airdropFetcher = {
89
+ id: constants_2.airdropStatics.id,
90
+ networkId: portfolio_core_1.NetworkId.solana,
91
+ executor,
92
+ };
93
+ exports.default = airdropFetcher;
94
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,kDAA6C;AAC7C,+DAAuD;AACvD,yDAI8B;AAC9B,oFAAiF;AACjF,iDAAsD;AAEtD,8DAA8E;AAC9E,2CAAuE;AAEvE,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,cAAc,GAA6C,MAAM,eAAK;SACzE,GAAG,CACF,GAAG,yBAAa,iDAAiD,KAAK,EAAE,EACxE;QACE,OAAO,EAAE,IAAI;KACd,CACF;SACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QACX,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,QAA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AO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEL,2BAA2B;IAC3B,IAAI,cAAc,IAAI,OAAO,cAAc,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC9D,MAAM,sBAAsB,GAAG,IAAA,qCAAiB,EAC9C,KAAK,EACL,cAAc,CAAC,IAAI,CAAC,WAAW,EAC/B,yBAAa,CACd,CAAC;QACF,MAAM,uBAAuB,GAAG,MAAM,MAAM,CAAC,cAAc,CACzD,sBAAsB,CACvB,CAAC;QACF,KAAK,CAAC,IAAI,CAAC;YACT,MAAM,EAAE,IAAI,sBAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;iBAC9C,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC;iBACxB,QAAQ,EAAE;YACb,SAAS,EAAE,uBAAuB,KAAK,IAAI;YAC3C,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,qBAAS;SACnB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK;KACN,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,cAAc,CAAC"}
@@ -1,6 +1,10 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { AirdropStatics } from '../../AirdropFetcher';
2
3
  export declare const platformId = "sanctum";
3
4
  export declare const platformImage = "https://sonar.watch/img/platforms/sanctum.webp";
4
5
  export declare const platformWebsite = "https://www.sanctum.so/";
5
6
  export declare const platform: Platform;
6
7
  export declare const lstsKey = "lsts";
8
+ export declare const cloudMint = "CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu";
9
+ export declare const cloudDecimals = 9;
10
+ export declare const airdropStatics: AirdropStatics;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.lstsKey = exports.platform = exports.platformWebsite = exports.platformImage = exports.platformId = void 0;
3
+ exports.airdropStatics = exports.cloudDecimals = exports.cloudMint = exports.lstsKey = exports.platform = exports.platformWebsite = exports.platformImage = exports.platformId = void 0;
4
4
  exports.platformId = 'sanctum';
5
5
  exports.platformImage = 'https://sonar.watch/img/platforms/sanctum.webp';
6
6
  exports.platformWebsite = 'https://www.sanctum.so/';
@@ -13,4 +13,15 @@ exports.platform = {
13
13
  twitter: 'https://twitter.com/sanctumso',
14
14
  };
15
15
  exports.lstsKey = 'lsts';
16
+ exports.cloudMint = 'CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu';
17
+ exports.cloudDecimals = 9;
18
+ exports.airdropStatics = {
19
+ id: 'sanctum',
20
+ claimStart: 1721314800000,
21
+ claimEnd: 1744588800000,
22
+ emitterName: 'Sanctum',
23
+ emitterLink: exports.platformWebsite,
24
+ claimLink: 'https://lfg.jup.ag/sanctum',
25
+ image: exports.platformImage,
26
+ };
16
27
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,aAAa,GAAG,gDAAgD,CAAC;AACjE,QAAA,eAAe,GAAG,yBAAyB,CAAC;AAC5C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;IACrE,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qBAAa;IACpB,OAAO,EAAE,uBAAe;IACxB,OAAO,EAAE,+BAA+B;CACzC,CAAC;AACW,QAAA,OAAO,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,aAAa,GAAG,gDAAgD,CAAC;AACjE,QAAA,eAAe,GAAG,yBAAyB,CAAC;AAC5C,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,WAAW,EAAE,gBAAgB,EAAE,sCAAsC;IACrE,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qBAAa;IACpB,OAAO,EAAE,uBAAe;IACxB,OAAO,EAAE,+BAA+B;CACzC,CAAC;AACW,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,SAAS,GAAG,8CAA8C,CAAC;AAC3D,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,SAAS;IACb,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,uBAAe;IAC5B,SAAS,EAAE,4BAA4B;IACvC,KAAK,EAAE,qBAAa;CACrB,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { Fetcher } from '../../Fetcher';
3
3
  import { Job } from '../../Job';
4
+ import airdropFetcher from './airdropFetcher';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const jobs: Job[];
6
7
  export declare const fetchers: Fetcher[];
8
+ export { airdropFetcher };
@@ -3,10 +3,15 @@ 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 = exports.platforms = void 0;
6
+ exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const lstsJob_1 = __importDefault(require("./lstsJob"));
9
+ const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
10
+ exports.airdropFetcher = airdropFetcher_1.default;
11
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
9
12
  exports.platforms = [constants_1.platform];
10
13
  exports.jobs = [lstsJob_1.default];
11
- exports.fetchers = [];
14
+ exports.fetchers = [
15
+ (0, AirdropFetcher_1.airdropFetcherToFetcher)(airdropFetcher_1.default, constants_1.platform.id, `${constants_1.platform.id}-airdrop`, constants_1.airdropStatics.claimEnd),
16
+ ];
12
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wDAAgC;AAEnB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,iBAAO,CAAC,CAAC;AACxB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sanctum/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuD;AACvD,wDAAgC;AAChC,sEAA8C;AAarC,yBAbF,wBAAc,CAaE;AAZvB,yDAA+D;AAElD,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,iBAAO,CAAC,CAAC;AACxB,QAAA,QAAQ,GAAc;IACjC,IAAA,wCAAuB,EACrB,wBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,GAAG,oBAAQ,CAAC,EAAE,UAAU,EACxB,0BAAc,CAAC,QAAQ,CACxB;CACF,CAAC"}
@@ -6,7 +6,11 @@ export declare const marketsPrefix = "solend-markets";
6
6
  export declare const reservesPrefix = "solend-reserves";
7
7
  export declare const marketsKey = "markets";
8
8
  export declare const pid: PublicKey;
9
+ export declare const merkleProgramId: PublicKey;
9
10
  export declare const marketsEndpoint = "https://api.solend.fi/v1/markets/configs";
10
11
  export declare const reserveEndpoint = "https://api.solend.fi/v1/reserves/?ids=";
11
12
  export declare const wadsDecimal = 18;
12
13
  export declare const mainMarket = "4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY";
14
+ export declare const externalRewardsEndpoint = "https://global.solend.fi/liquidity-mining/external-reward-score-v2?wallet=";
15
+ export declare const rewardsEndpoint = "https://global.solend.fi/liquidity-mining/reward-proofs?obligation=";
16
+ export declare const slndMint = "SLNDpmoWTVADgEdndyvWzroNL7zSi1dF9PC3xHGtPwp";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mainMarket = exports.wadsDecimal = exports.reserveEndpoint = exports.marketsEndpoint = exports.pid = exports.marketsKey = exports.reservesPrefix = exports.marketsPrefix = exports.platform = exports.platformId = void 0;
3
+ exports.slndMint = exports.rewardsEndpoint = exports.externalRewardsEndpoint = exports.mainMarket = exports.wadsDecimal = exports.reserveEndpoint = exports.marketsEndpoint = exports.merkleProgramId = exports.pid = exports.marketsKey = exports.reservesPrefix = exports.marketsPrefix = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'solend';
6
6
  exports.platform = {
@@ -14,8 +14,12 @@ exports.marketsPrefix = `${exports.platformId}-markets`;
14
14
  exports.reservesPrefix = `${exports.platformId}-reserves`;
15
15
  exports.marketsKey = 'markets';
16
16
  exports.pid = new web3_js_1.PublicKey('So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo');
17
+ exports.merkleProgramId = new web3_js_1.PublicKey('mrksLcZ6rMs9xkmJgw6oKiR3GECw44Gb5NeDqu64kiw');
17
18
  exports.marketsEndpoint = 'https://api.solend.fi/v1/markets/configs';
18
19
  exports.reserveEndpoint = 'https://api.solend.fi/v1/reserves/?ids=';
19
20
  exports.wadsDecimal = 18;
20
21
  exports.mainMarket = '4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtfpks7FatyKvdY';
22
+ exports.externalRewardsEndpoint = 'https://global.solend.fi/liquidity-mining/external-reward-score-v2?wallet=';
23
+ exports.rewardsEndpoint = 'https://global.solend.fi/liquidity-mining/reward-proofs?obligation=';
24
+ exports.slndMint = 'SLNDpmoWTVADgEdndyvWzroNL7zSi1dF9PC3xHGtPwp';
21
25
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AACW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,UAAU,GAAG,SAAS,CAAC;AAEvB,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,eAAe,GAAG,0CAA0C,CAAC;AAC7D,QAAA,eAAe,GAAG,yCAAyC,CAAC;AAC5D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,UAAU,GAAG,8CAA8C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AACW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,UAAU,GAAG,SAAS,CAAC;AAEvB,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,0CAA0C,CAAC;AAC7D,QAAA,eAAe,GAAG,yCAAyC,CAAC;AAC5D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,UAAU,GAAG,8CAA8C,CAAC;AAC5D,QAAA,uBAAuB,GAClC,4EAA4E,CAAC;AAClE,QAAA,eAAe,GAC1B,qEAAqE,CAAC;AAE3D,QAAA,QAAQ,GAAG,6CAA6C,CAAC"}
@@ -8,7 +8,8 @@ const reservesJob_1 = __importDefault(require("./reservesJob"));
8
8
  const marketsJob_1 = __importDefault(require("./marketsJob"));
9
9
  const obligationsFetcher_1 = __importDefault(require("./obligationsFetcher"));
10
10
  const constants_1 = require("./constants");
11
+ const rewardsFetcher_1 = __importDefault(require("./rewardsFetcher"));
11
12
  exports.platforms = [constants_1.platform];
12
13
  exports.jobs = [marketsJob_1.default, reservesJob_1.default];
13
- exports.fetchers = [obligationsFetcher_1.default];
14
+ exports.fetchers = [obligationsFetcher_1.default, rewardsFetcher_1.default];
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,8DAAsC;AACtC,8EAAqD;AACrD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,qBAAW,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAc,CAAC,4BAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,8DAAsC;AACtC,8EAAqD;AACrD,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,qBAAW,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAc,CAAC,4BAAiB,EAAE,wBAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const web3_js_1 = require("@solana/web3.js");
19
+ const bn_js_1 = require("bn.js");
20
+ const constants_1 = require("./constants");
21
+ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
22
+ const solana_1 = require("../../utils/solana");
23
+ const clients_1 = require("../../utils/clients");
24
+ const structs_1 = require("./structs");
25
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
26
+ const client = (0, clients_1.getClientSolana)();
27
+ const obligationAddress = yield web3_js_1.PublicKey.createWithSeed(new web3_js_1.PublicKey(owner), '4UpD2fh7xH3VP9QQaXtsS1YY3bxzWhtf', constants_1.pid);
28
+ const [rewardsRes, externalRewardsRes] = yield Promise.all([
29
+ axios_1.default.get(constants_1.rewardsEndpoint + obligationAddress.toString()),
30
+ axios_1.default.get(constants_1.externalRewardsEndpoint + owner),
31
+ ]);
32
+ const [rewards, externalRewards] = [rewardsRes.data, externalRewardsRes.data];
33
+ const slndRewards = rewards.filter((reward) => reward.incentivizer === 'slnd_points' &&
34
+ reward.quantity &&
35
+ reward.quantity !== '0');
36
+ const claimAndBumps = slndRewards.map((d) => web3_js_1.PublicKey.findProgramAddressSync([
37
+ Buffer.from('ClaimStatus', 'utf8'),
38
+ new bn_js_1.BN.BN(d.index).toArrayLike(Buffer, 'le', 8),
39
+ new web3_js_1.PublicKey(d.distributorPublicKey).toBytes(),
40
+ ], new web3_js_1.PublicKey(constants_1.merkleProgramId))[0]);
41
+ const tokenMints = [
42
+ constants_1.slndMint,
43
+ externalRewards.map((externalReward) => externalReward.score && externalReward.score !== '0'
44
+ ? externalReward.rewardMint
45
+ : null),
46
+ ]
47
+ .flat()
48
+ .filter((m) => m !== null);
49
+ if (tokenMints.length === 0)
50
+ return [];
51
+ const [tokenPrices, claimStatuses] = yield Promise.all([
52
+ cache.getTokenPricesAsMap(tokenMints, portfolio_core_1.NetworkId.solana),
53
+ (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.claimStatusStruct, claimAndBumps),
54
+ ]);
55
+ const assets = [];
56
+ slndRewards.forEach((reward, i) => {
57
+ const tokenPrice = tokenPrices.get(constants_1.slndMint);
58
+ if (!tokenPrice)
59
+ return;
60
+ const claimStatus = claimStatuses[i];
61
+ if (!claimStatus || claimStatus.isClaimed)
62
+ return;
63
+ assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, new bignumber_js_1.default(reward.quantity)
64
+ .dividedBy(Math.pow(10, tokenPrice.decimals))
65
+ .toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice)), { attributes: { isClaimable: true } }));
66
+ });
67
+ externalRewards.forEach((externalReward) => {
68
+ if (!externalReward.score || externalReward.score === '0')
69
+ return;
70
+ const tokenPrice = tokenPrices.get(externalReward.rewardMint);
71
+ if (!tokenPrice)
72
+ return;
73
+ assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, new bignumber_js_1.default(externalReward.score).dividedBy(Math.pow(10, 36)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice)), { attributes: { isClaimable: true } }));
74
+ });
75
+ if (assets.length === 0)
76
+ return [];
77
+ const element = {
78
+ networkId: portfolio_core_1.NetworkId.solana,
79
+ label: 'Rewards',
80
+ platformId: constants_1.platformId,
81
+ type: portfolio_core_1.PortfolioElementType.multiple,
82
+ value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
83
+ data: {
84
+ assets,
85
+ },
86
+ };
87
+ return [element];
88
+ });
89
+ const fetcher = {
90
+ id: `${constants_1.platformId}-rewards`,
91
+ networkId: portfolio_core_1.NetworkId.solana,
92
+ executor,
93
+ };
94
+ exports.default = fetcher;
95
+ //# sourceMappingURL=rewardsFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rewardsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/rewardsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,kDAA0B;AAC1B,gEAAqC;AACrC,6CAA4C;AAC5C,iCAA2B;AAG3B,2CAOqB;AAErB,qGAA6E;AAC7E,+CAAmE;AACnE,iDAAsD;AACtD,uCAA2D;AAE3D,MAAM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idityStruct: BeetStruct<ObligationLiquidity, Partial<ObligationLiquidity>>;
88
+ export type ClaimStatus = {
89
+ buffer: Buffer;
90
+ isClaimed: boolean;
91
+ claimant: PublicKey;
92
+ claimedAt: BigNumber;
93
+ amount: BigNumber;
94
+ };
95
+ export declare const claimStatusStruct: BeetStruct<ClaimStatus, Partial<ClaimStatus>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.obligationLiquidityStruct = exports.obligationCollateralStruct = exports.obligationStruct = exports.reserveStruct = exports.lastUpdateStruct = exports.liquidityStruct = exports.collateralStruct = exports.reserveConfigStruct = exports.feesStruct = void 0;
3
+ exports.claimStatusStruct = exports.obligationLiquidityStruct = exports.obligationCollateralStruct = exports.obligationStruct = exports.reserveStruct = exports.lastUpdateStruct = exports.liquidityStruct = exports.collateralStruct = exports.reserveConfigStruct = exports.feesStruct = 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");
@@ -78,4 +78,11 @@ exports.obligationLiquidityStruct = new beet_1.BeetStruct([
78
78
  ['marketValue', solana_1.u128],
79
79
  ['padding', (0, solana_1.blob)(32)],
80
80
  ], (args) => args);
81
+ exports.claimStatusStruct = new beet_1.BeetStruct([
82
+ ['buffer', (0, solana_1.blob)(8)],
83
+ ['isClaimed', beet_1.bool],
84
+ ['claimant', beet_solana_1.publicKey],
85
+ ['claimedAt', solana_1.i64],
86
+ ['amount', solana_1.u64],
87
+ ], (args) => args);
81
88
  //# sourceMappingURL=structs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/structs.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,kEAA6D;AAG7D,+CAAqD;AAQxC,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,cAAc,EAAE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AAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC;AASW,QAAA,0BAA0B,GAAG,IAAI,iBAAU,CACtD;IACE,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,aAAa,EAAE,aAAI,CAAC;IACrB,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,EAAE,CAAC,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA4B,CACvC,CAAC;AAUW,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,eAAe,EAAE,uBAAS,CAAC;IAC5B,CAAC,0BAA0B,EAAE,aAAI,CAAC;IAClC,CAAC,oBAAoB,EAAE,aAAI,CAAC;IAC5B,CAAC,aAAa,EAAE,aAAI,CAAC;IACrB,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,EAAE,CAAC,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC"}
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AACjE,kEAA6D;AAG7D,+CAA0D;AAQ7C,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,mBAAmB,EAAE,SAAE,CAAC;CAC1B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAgBW,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,wBAAwB,EAAE,SAAE,CAAC;IAC9B,CAAC,kBAAkB,EAAE,SAAE,CAAC;IACxB,CAAC,kBAAkB,EAAE,SAAE,CAAC;IACxB,CAAC,sBAAsB,EAAE,SAAE,CAAC;IAC5B,CAAC,eAAe,EAAE,SAAE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