@sonarwatch/portfolio-plugins 0.14.20 → 0.14.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +16 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/cyberfrogs/constants.d.ts +5 -0
  6. package/src/plugins/cyberfrogs/constants.js +14 -0
  7. package/src/plugins/cyberfrogs/constants.js.map +1 -0
  8. package/src/plugins/cyberfrogs/index.d.ts +6 -0
  9. package/src/plugins/cyberfrogs/index.js +12 -0
  10. package/src/plugins/cyberfrogs/index.js.map +1 -0
  11. package/src/plugins/cyberfrogs/structs.d.ts +13 -0
  12. package/src/plugins/cyberfrogs/structs.js +15 -0
  13. package/src/plugins/cyberfrogs/structs.js.map +1 -0
  14. package/src/plugins/cyberfrogs/thorDepositFetcher.js +52 -0
  15. package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -0
  16. package/src/plugins/grass/constants.d.ts +6 -0
  17. package/src/plugins/grass/constants.js +15 -0
  18. package/src/plugins/grass/constants.js.map +1 -0
  19. package/src/plugins/grass/helpers.d.ts +2 -0
  20. package/src/plugins/grass/helpers.js +10 -0
  21. package/src/plugins/grass/helpers.js.map +1 -0
  22. package/src/plugins/grass/index.d.ts +6 -0
  23. package/src/plugins/grass/index.js +12 -0
  24. package/src/plugins/grass/index.js.map +1 -0
  25. package/src/plugins/grass/stakingFetcher.d.ts +3 -0
  26. package/src/plugins/grass/stakingFetcher.js +52 -0
  27. package/src/plugins/grass/stakingFetcher.js.map +1 -0
  28. package/src/plugins/grass/structs.d.ts +28 -0
  29. package/src/plugins/grass/structs.js +28 -0
  30. package/src/plugins/grass/structs.js.map +1 -0
  31. package/src/plugins/hxro/constants.d.ts +6 -0
  32. package/src/plugins/hxro/constants.js +16 -0
  33. package/src/plugins/hxro/constants.js.map +1 -0
  34. package/src/plugins/hxro/index.d.ts +6 -0
  35. package/src/plugins/hxro/index.js +12 -0
  36. package/src/plugins/hxro/index.js.map +1 -0
  37. package/src/plugins/hxro/stakingFetcher.d.ts +3 -0
  38. package/src/plugins/hxro/stakingFetcher.js +57 -0
  39. package/src/plugins/hxro/stakingFetcher.js.map +1 -0
  40. package/src/plugins/hxro/structs.d.ts +37 -0
  41. package/src/plugins/hxro/structs.js +36 -0
  42. package/src/plugins/hxro/structs.js.map +1 -0
  43. package/src/plugins/hxro/types.d.ts +5 -0
  44. package/src/plugins/hxro/types.js +3 -0
  45. package/src/plugins/hxro/types.js.map +1 -0
  46. package/src/plugins/jupiter/filters.d.ts +1 -0
  47. package/src/plugins/jupiter/filters.js +11 -1
  48. package/src/plugins/jupiter/filters.js.map +1 -1
  49. package/src/plugins/jupiter/governance/voteFetcher.js +25 -25
  50. package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -1
  51. package/src/plugins/jupiter/helpers.js +22 -8
  52. package/src/plugins/jupiter/helpers.js.map +1 -1
  53. package/src/plugins/jupiter/launchpad/structs.d.ts +10 -1
  54. package/src/plugins/jupiter/launchpad/structs.js +9 -1
  55. package/src/plugins/jupiter/launchpad/structs.js.map +1 -1
  56. package/src/plugins/jupiter/pricingJob.js +0 -4
  57. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  58. package/src/plugins/kamino/constants.js +12 -0
  59. package/src/plugins/kamino/constants.js.map +1 -1
  60. package/src/plugins/orca/getWhirlpoolPositions.js +10 -11
  61. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  62. package/src/plugins/orca/helpers_fees.js +12 -3
  63. package/src/plugins/orca/helpers_fees.js.map +1 -1
  64. package/src/plugins/spdr/constants.d.ts +7 -0
  65. package/src/plugins/spdr/constants.js +17 -0
  66. package/src/plugins/spdr/constants.js.map +1 -0
  67. package/src/plugins/spdr/index.d.ts +6 -0
  68. package/src/plugins/spdr/index.js +12 -0
  69. package/src/plugins/spdr/index.js.map +1 -0
  70. package/src/plugins/spdr/stakingFetcher.d.ts +3 -0
  71. package/src/plugins/spdr/stakingFetcher.js +78 -0
  72. package/src/plugins/spdr/stakingFetcher.js.map +1 -0
  73. package/src/plugins/spdr/structs.d.ts +26 -0
  74. package/src/plugins/spdr/structs.js +26 -0
  75. package/src/plugins/spdr/structs.js.map +1 -0
  76. package/src/plugins/spdr/types.d.ts +21 -0
  77. package/src/plugins/spdr/types.js +3 -0
  78. package/src/plugins/spdr/types.js.map +1 -0
  79. package/src/plugins/tensor/index.js +0 -2
  80. package/src/plugins/tensor/index.js.map +1 -1
  81. package/src/plugins/tensor/locksFetcher.js +0 -62
  82. package/src/plugins/tensor/locksFetcher.js.map +0 -1
  83. /package/src/plugins/{tensor/locksFetcher.d.ts → cyberfrogs/thorDepositFetcher.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.21...plugins-0.14.22) (2024-11-07)
6
+
7
+
8
+
9
+ ## [0.14.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.20...plugins-0.14.21) (2024-11-05)
10
+
11
+
12
+
5
13
  ## [0.14.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.19...plugins-0.14.20) (2024-11-04)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.20",
3
+ "version": "0.14.22",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -150,6 +150,10 @@ const loopscale_1 = require("./plugins/loopscale");
150
150
  const vaultka_1 = require("./plugins/vaultka");
151
151
  const loverflow_1 = require("./plugins/loverflow");
152
152
  const zelo_1 = require("./plugins/zelo");
153
+ const hxro_1 = require("./plugins/hxro");
154
+ const spdr_1 = require("./plugins/spdr");
155
+ const grass_1 = require("./plugins/grass");
156
+ const cyberfrogs_1 = require("./plugins/cyberfrogs");
153
157
  var constants_1 = require("./plugins/tokens/constants");
154
158
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
155
159
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -293,6 +297,10 @@ exports.platforms = [
293
297
  ...vaultka_1.platforms,
294
298
  ...loverflow_1.platforms,
295
299
  ...zelo_1.platforms,
300
+ ...hxro_1.platforms,
301
+ ...spdr_1.platforms,
302
+ ...grass_1.platforms,
303
+ ...cyberfrogs_1.platforms,
296
304
  ];
297
305
  // JOBS //
298
306
  exports.jobs = [
@@ -420,6 +428,10 @@ exports.jobs = [
420
428
  ...vaultka_1.jobs,
421
429
  ...loverflow_1.jobs,
422
430
  ...zelo_1.jobs,
431
+ ...hxro_1.jobs,
432
+ ...spdr_1.jobs,
433
+ ...grass_1.jobs,
434
+ ...cyberfrogs_1.jobs,
423
435
  ];
424
436
  // FETCHERS //
425
437
  exports.fetchers = [
@@ -548,6 +560,10 @@ exports.fetchers = [
548
560
  ...vaultka_1.fetchers,
549
561
  ...loverflow_1.fetchers,
550
562
  ...zelo_1.fetchers,
563
+ ...hxro_1.fetchers,
564
+ ...spdr_1.fetchers,
565
+ ...grass_1.fetchers,
566
+ // ...autothorFetchers,
551
567
  ];
552
568
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
553
569
  exports.airdropFetchers = [
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;A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B,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,8BAA2B;IAC9B,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,eAAY;CAChB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;CAC3B,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC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C;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;CAC3B,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ import { Platform } from '@sonarwatch/portfolio-core';
3
+ export declare const platformId = "autothor";
4
+ export declare const platform: Platform;
5
+ export declare const pid: PublicKey;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pid = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'autothor';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'CyberFrogs Thor',
9
+ image: 'https://sonar.watch/img/platforms/cyberfrogs.webp',
10
+ website: 'https://legacy.cyberfrogs.io/faction-contracts-v3',
11
+ twitter: 'https://twitter.com/CyberFrogsNFT',
12
+ };
13
+ exports.pid = new web3_js_1.PublicKey('8F2VM13kdMBaHtcXPHmArtLueg7rfsa3gnrgGjAy4oCu');
14
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cyberfrogs/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,mDAAmD;IAC5D,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAC9B,8CAA8C,CAC/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const thorDepositFetcher_1 = __importDefault(require("./thorDepositFetcher"));
9
+ exports.platforms = [constants_1.platform];
10
+ exports.jobs = [];
11
+ exports.fetchers = [thorDepositFetcher_1.default];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cyberfrogs/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8EAA0D;AAE7C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,4BAAsB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import { BeetStruct } from '@metaplex-foundation/beet';
3
+ import { PublicKey } from '@solana/web3.js';
4
+ import BigNumber from 'bignumber.js';
5
+ export type Deposit = {
6
+ buffer: Buffer;
7
+ deposit: BigNumber;
8
+ depositInitial: BigNumber;
9
+ startTs: BigNumber;
10
+ endTs: BigNumber;
11
+ owner: PublicKey;
12
+ };
13
+ export declare const depositStruct: BeetStruct<Deposit, Partial<Deposit>>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.depositStruct = 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.depositStruct = new beet_1.BeetStruct([
8
+ ['buffer', (0, solana_1.blob)(8)],
9
+ ['deposit', solana_1.u64],
10
+ ['depositInitial', solana_1.u64],
11
+ ['startTs', solana_1.u64],
12
+ ['endTs', solana_1.u64],
13
+ ['owner', beet_solana_1.publicKey],
14
+ ], (args) => args);
15
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cyberfrogs/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AACvD,kEAA6D;AAG7D,+CAA+C;AAWlC,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,OAAO,EAAE,uBAAS,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC"}
@@ -0,0 +1,52 @@
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 structs_1 = require("./structs");
16
+ const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
17
+ const solana_1 = require("../../utils/solana");
18
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
19
+ const connection = (0, clients_1.getClientSolana)();
20
+ const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.depositStruct, constants_1.pid, [
21
+ {
22
+ memcmp: {
23
+ bytes: owner,
24
+ offset: 40,
25
+ },
26
+ },
27
+ {
28
+ dataSize: 72,
29
+ },
30
+ ]);
31
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
32
+ const element = elementRegistry.addElementMultiple({
33
+ label: 'Deposit',
34
+ });
35
+ accounts.forEach((deposit) => {
36
+ element.addAsset({
37
+ address: solana_1.usdcSolanaMint,
38
+ amount: deposit.depositInitial,
39
+ attributes: {
40
+ lockedUntil: deposit.endTs.times(1000).toNumber(),
41
+ },
42
+ });
43
+ });
44
+ return elementRegistry.getElements(cache);
45
+ });
46
+ const fetcher = {
47
+ id: `${constants_1.platformId}-deposit`,
48
+ networkId: portfolio_core_1.NetworkId.solana,
49
+ executor,
50
+ };
51
+ exports.default = fetcher;
52
+ //# sourceMappingURL=thorDepositFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thorDepositFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cyberfrogs/thorDepositFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA8C;AAE9C,iDAAsD;AACtD,uCAA0C;AAC1C,gFAA6E;AAC7E,+CAA8E;AAE9E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,eAAG,EACH;QACE;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;QACD;YACE,QAAQ,EAAE,EAAE;SACb;KACF,CACF,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,uBAAc;YACvB,MAAM,EAAE,OAAO,CAAC,cAAc;YAC9B,UAAU,EAAE;gBACV,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;aAClD;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ export declare const platformId = "grass";
4
+ export declare const platform: Platform;
5
+ export declare const pid: PublicKey;
6
+ export declare const grassMint = "Grass7B4RdKfBCjTKgSqnXkqjwiGvQyFbuSCUJr3XXjs";
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.grassMint = exports.pid = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'grass';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'Grass',
9
+ image: 'https://sonar.watch/img/platforms/grass.webp',
10
+ website: 'https://www.grassfoundation.io/stake',
11
+ twitter: 'https://twitter.com/getgrass_io',
12
+ };
13
+ exports.pid = new web3_js_1.PublicKey('EyxPPowqBRTpZpiDb2ixUR6XUU1VJwTCNgJdK8eyc6kc');
14
+ exports.grassMint = 'Grass7B4RdKfBCjTKgSqnXkqjwiGvQyFbuSCUJr3XXjs';
15
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/grass/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,sCAAsC;IAC/C,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAC9B,8CAA8C,CAC/C,CAAC;AACW,QAAA,SAAS,GAAG,8CAA8C,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { PublicKey } from '@solana/web3.js';
2
+ export declare function getStakePda(owner: string): PublicKey;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStakePda = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ const constants_1 = require("./constants");
6
+ function getStakePda(owner) {
7
+ return web3_js_1.PublicKey.findProgramAddressSync([new web3_js_1.PublicKey(owner).toBytes(), Buffer.from('userStakeInfo', 'utf-8')], constants_1.pid)[0];
8
+ }
9
+ exports.getStakePda = getStakePda;
10
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/grass/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2CAAkC;AAElC,SAAgB,WAAW,CAAC,KAAa;IACvC,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,EACvE,eAAG,CACJ,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AALD,kCAKC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
9
+ exports.platforms = [constants_1.platform];
10
+ exports.jobs = [];
11
+ exports.fetchers = [stakingFetcher_1.default];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/grass/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,52 @@
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 ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
16
+ const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
17
+ const structs_1 = require("./structs");
18
+ const helpers_1 = require("./helpers");
19
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
20
+ const connection = (0, clients_1.getClientSolana)();
21
+ const userStakeAccount = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(connection, structs_1.userStakeInfoStruct, (0, helpers_1.getStakePda)(owner));
22
+ if (!userStakeAccount)
23
+ return [];
24
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
25
+ const element = elementRegistry.addElementMultiple({
26
+ label: 'Staked',
27
+ });
28
+ userStakeAccount.unstake_requests.forEach((req) => {
29
+ if (req.staking_pool_key.toString() !== portfolio_core_1.solanaNativeAddress) {
30
+ const lockedUntil = req.cooldown_end_time.times(1000).toNumber();
31
+ element.addAsset({
32
+ address: constants_1.grassMint,
33
+ amount: req.withdrawal_amount,
34
+ attributes: {
35
+ lockedUntil,
36
+ },
37
+ });
38
+ }
39
+ });
40
+ element.addAsset({
41
+ address: constants_1.grassMint,
42
+ amount: userStakeAccount.amount_staked,
43
+ });
44
+ return elementRegistry.getElements(cache);
45
+ });
46
+ const fetcher = {
47
+ id: `${constants_1.platformId}-staking`,
48
+ networkId: portfolio_core_1.NetworkId.solana,
49
+ executor,
50
+ };
51
+ exports.default = fetcher;
52
+ //# sourceMappingURL=stakingFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/grass/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAE5E,2CAAoD;AAEpD,iDAAsD;AACtD,gFAA6E;AAC7E,kFAA+E;AAC/E,uCAAgD;AAChD,uCAAwC;AAExC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,MAAM,IAAA,2CAAoB,EACjD,UAAU,EACV,6BAAmB,EACnB,IAAA,qBAAW,EAAC,KAAK,CAAC,CACnB,CAAC;IACF,IAAI,CAAC,gBAAgB;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IAEH,gBAAgB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAChD,IAAI,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,oCAAmB,EAAE,CAAC;YAC5D,MAAM,WAAW,GAAG,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACjE,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,qBAAS;gBAClB,MAAM,EAAE,GAAG,CAAC,iBAAiB;gBAC7B,UAAU,EAAE;oBACV,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,qBAAS;QAClB,MAAM,EAAE,gBAAgB,CAAC,aAAa;KACvC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="node" />
2
+ import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
3
+ import { PublicKey } from '@solana/web3.js';
4
+ import BigNumber from 'bignumber.js';
5
+ export type UnstakeRequest = {
6
+ staking_pool_key: PublicKey;
7
+ withdrawal_amount: BigNumber;
8
+ request_time: BigNumber;
9
+ cooldown_end_time: BigNumber;
10
+ _padding: number[];
11
+ };
12
+ export declare const unstakeRequestStruct: BeetStruct<UnstakeRequest, Partial<UnstakeRequest>>;
13
+ export type Deposit = {
14
+ staking_pool_key: PublicKey;
15
+ pool_multiplier: BigNumber;
16
+ amount_staked: BigNumber;
17
+ accrued_rewards: BigNumber;
18
+ };
19
+ export declare const depositStruct: BeetStruct<Deposit, Partial<Deposit>>;
20
+ export type UserStakeInfo = {
21
+ buffer: Buffer;
22
+ unstake_requests: UnstakeRequest[];
23
+ deposits: Deposit[];
24
+ amount_staked: BigNumber;
25
+ bump: number;
26
+ _padding: number[];
27
+ };
28
+ export declare const userStakeInfoStruct: FixableBeetStruct<UserStakeInfo, Partial<UserStakeInfo>>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userStakeInfoStruct = exports.depositStruct = exports.unstakeRequestStruct = 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.unstakeRequestStruct = new beet_1.BeetStruct([
8
+ ['staking_pool_key', beet_solana_1.publicKey],
9
+ ['withdrawal_amount', solana_1.u64],
10
+ ['request_time', solana_1.u64],
11
+ ['cooldown_end_time', solana_1.u64],
12
+ ['_padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
13
+ ], (args) => args);
14
+ exports.depositStruct = new beet_1.BeetStruct([
15
+ ['staking_pool_key', beet_solana_1.publicKey],
16
+ ['pool_multiplier', solana_1.u128],
17
+ ['amount_staked', solana_1.u64],
18
+ ['accrued_rewards', solana_1.u64],
19
+ ], (args) => args);
20
+ exports.userStakeInfoStruct = new beet_1.FixableBeetStruct([
21
+ ['buffer', (0, solana_1.blob)(8)],
22
+ ['unstake_requests', (0, beet_1.uniformFixedSizeArray)(exports.unstakeRequestStruct, 20)],
23
+ ['deposits', (0, beet_1.uniformFixedSizeArray)(exports.depositStruct, 20)],
24
+ ['amount_staked', solana_1.u64],
25
+ ['bump', beet_1.u8],
26
+ ['_padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
27
+ ], (args) => args);
28
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/grass/structs.ts"],"names":[],"mappings":";;;AAAA,oDAKmC;AACnC,kEAA6D;AAG7D,+CAAqD;AAUxC,QAAA,oBAAoB,GAAG,IAAI,iBAAU,CAChD;IACE,CAAC,kBAAkB,EAAE,uBAAS,CAAC;IAC/B,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAsB,CACjC,CAAC;AASW,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,kBAAkB,EAAE,uBAAS,CAAC;IAC/B,CAAC,iBAAiB,EAAE,aAAI,CAAC;IACzB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,iBAAiB,EAAE,YAAG,CAAC;CACzB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,CAAC;AAWW,QAAA,mBAAmB,GAAG,IAAI,wBAAiB,CACtD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,kBAAkB,EAAE,IAAA,4BAAqB,EAAC,4BAAoB,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,qBAAa,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { PublicKey } from '@solana/web3.js';
3
+ export declare const platformId = "hxro";
4
+ export declare const platform: Platform;
5
+ export declare const pid: PublicKey;
6
+ export declare const hxroMint = "HxhWkVpk5NS4Ltg5nij2G671CKXFRKPK8vy271Ub4uEK";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hxroMint = exports.pid = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ exports.platformId = 'hxro';
6
+ exports.platform = {
7
+ id: exports.platformId,
8
+ name: 'Hxro',
9
+ image: 'https://sonar.watch/img/platforms/hxro.webp',
10
+ website: 'https://app.hxro.finance/',
11
+ twitter: 'https://twitter.com/HxroNetwork',
12
+ defiLlamaId: 'hxro-network', // from https://defillama.com/docs/api
13
+ };
14
+ exports.pid = new web3_js_1.PublicKey('2jmux3fWV5zHirkEZCoSMEgTgdYZqkE9Qx2oQnxoHRgA');
15
+ exports.hxroMint = 'HxhWkVpk5NS4Ltg5nij2G671CKXFRKPK8vy271Ub4uEK';
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hxro/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,iCAAiC;IAC1C,WAAW,EAAE,cAAc,EAAE,sCAAsC;CACpE,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAC9B,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,8CAA8C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
5
+ export declare const jobs: Job[];
6
+ export declare const fetchers: Fetcher[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
+ const constants_1 = require("./constants");
8
+ const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
9
+ exports.platforms = [constants_1.platform];
10
+ exports.jobs = [];
11
+ exports.fetchers = [stakingFetcher_1.default];
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hxro/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAAsD;AAEzC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAsB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Fetcher } from '../../Fetcher';
2
+ declare const fetcher: Fetcher;
3
+ export default fetcher;
@@ -0,0 +1,57 @@
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 ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
18
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
19
+ const connection = (0, clients_1.getClientSolana)();
20
+ const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.stakeRewardsStruct, constants_1.pid, [
21
+ {
22
+ dataSize: 384,
23
+ },
24
+ {
25
+ memcmp: {
26
+ bytes: owner,
27
+ offset: 8,
28
+ },
29
+ },
30
+ ]);
31
+ if (accounts.length === 0)
32
+ return [];
33
+ const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
34
+ const element = elementRegistry.addElementMultiple({
35
+ label: 'Staked',
36
+ });
37
+ accounts.forEach((acc) => {
38
+ element.addAsset({
39
+ address: constants_1.hxroMint,
40
+ amount: acc.stakeState.amountStaked,
41
+ attributes: {
42
+ lockedUntil: acc.depositTimestamp
43
+ .plus(acc.stakeDuration)
44
+ .times(1000)
45
+ .toNumber(),
46
+ },
47
+ });
48
+ });
49
+ return elementRegistry.getElements(cache);
50
+ });
51
+ const fetcher = {
52
+ id: `${constants_1.platformId}-staking`,
53
+ networkId: portfolio_core_1.NetworkId.solana,
54
+ executor,
55
+ };
56
+ exports.default = fetcher;
57
+ //# sourceMappingURL=stakingFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hxro/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAwD;AAExD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA+C;AAC/C,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,4BAAkB,EAClB,eAAG,EACH;QACE;YACE,QAAQ,EAAE,GAAG;SACd;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,CAAC;aACV;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,oBAAQ;YACjB,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,YAAY;YACnC,UAAU,EAAE;gBACV,WAAW,EAAE,GAAG,CAAC,gBAAgB;qBAC9B,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC;qBACvB,KAAK,CAAC,IAAI,CAAC;qBACX,QAAQ,EAAE;aACd;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,37 @@
1
+ /// <reference types="node" />
2
+ import { BeetStruct } from '@metaplex-foundation/beet';
3
+ import { PublicKey } from '@solana/web3.js';
4
+ import BigNumber from 'bignumber.js';
5
+ export type StakeRewardsState = {
6
+ effectiveAmountStaked: BigNumber;
7
+ amountStaked: BigNumber;
8
+ claimedShares: BigNumber;
9
+ };
10
+ export declare const stakeRewardsStateStruct: BeetStruct<StakeRewardsState, Partial<StakeRewardsState>>;
11
+ export type StakingRewards = {
12
+ buffer: Buffer;
13
+ staker: PublicKey;
14
+ stakepool: PublicKey;
15
+ poolShares: PublicKey;
16
+ stakerShares: PublicKey;
17
+ vaultNeedsMultisig: boolean;
18
+ depositTimestamp: BigNumber;
19
+ stakeDuration: BigNumber;
20
+ lastClaimTimestamp: BigNumber;
21
+ padding: Buffer;
22
+ stakeState: StakeRewardsState;
23
+ };
24
+ export declare const stakeRewardsStruct: BeetStruct<StakingRewards, Partial<StakingRewards>>;
25
+ export type ClaimableRewards = {
26
+ buffer: Buffer;
27
+ staker: PublicKey;
28
+ stakepool: PublicKey;
29
+ poolShares: PublicKey;
30
+ stakerShares: PublicKey;
31
+ vaultNeedsMultisig: boolean;
32
+ depositTimestamp: BigNumber;
33
+ stakeDuration: BigNumber;
34
+ lastClaimTimestamp: BigNumber;
35
+ claimableShares: BigNumber;
36
+ };
37
+ export declare const claimableRewardsStruct: BeetStruct<ClaimableRewards, Partial<ClaimableRewards>>;