@sonarwatch/portfolio-plugins 0.12.127 → 0.12.129

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/CHANGELOG.md +2237 -2225
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +10 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/deepbook/airdropFetcher.d.ts +2 -0
  8. package/src/plugins/deepbook/airdropFetcher.js +66 -0
  9. package/src/plugins/deepbook/airdropFetcher.js.map +1 -0
  10. package/src/plugins/deepbook/constants.d.ts +7 -0
  11. package/src/plugins/deepbook/constants.js +24 -0
  12. package/src/plugins/deepbook/constants.js.map +1 -0
  13. package/src/plugins/deepbook/index.d.ts +8 -0
  14. package/src/plugins/deepbook/index.js +10 -0
  15. package/src/plugins/deepbook/index.js.map +1 -0
  16. package/src/plugins/quarry/calculatePositions.d.ts +3 -0
  17. package/src/plugins/quarry/calculatePositions.js +47 -0
  18. package/src/plugins/quarry/calculatePositions.js.map +1 -0
  19. package/src/plugins/quarry/constants.d.ts +4 -0
  20. package/src/plugins/quarry/constants.js +15 -1
  21. package/src/plugins/quarry/constants.js.map +1 -1
  22. package/src/plugins/quarry/filters.d.ts +3 -0
  23. package/src/plugins/quarry/filters.js +24 -0
  24. package/src/plugins/quarry/filters.js.map +1 -0
  25. package/src/plugins/quarry/helpers.d.ts +4 -16
  26. package/src/plugins/quarry/helpers.js +5 -4
  27. package/src/plugins/quarry/helpers.js.map +1 -1
  28. package/src/plugins/quarry/index.js +2 -1
  29. package/src/plugins/quarry/index.js.map +1 -1
  30. package/src/plugins/quarry/mergeMineIdl.d.ts +91 -0
  31. package/src/plugins/quarry/mergeMineIdl.js +1183 -0
  32. package/src/plugins/quarry/mergeMineIdl.js.map +1 -0
  33. package/src/plugins/quarry/positionsFetcher.js +43 -47
  34. package/src/plugins/quarry/positionsFetcher.js.map +1 -1
  35. package/src/plugins/quarry/redeemerIdl.d.ts +59 -0
  36. package/src/plugins/quarry/redeemerIdl.js +219 -0
  37. package/src/plugins/quarry/redeemerIdl.js.map +1 -0
  38. package/src/plugins/quarry/redeemersJob.d.ts +3 -0
  39. package/src/plugins/quarry/redeemersJob.js +56 -0
  40. package/src/plugins/quarry/redeemersJob.js.map +1 -0
  41. package/src/plugins/quarry/types.d.ts +39 -0
  42. package/src/plugins/suins/airdropFetcher.d.ts +2 -0
  43. package/src/plugins/suins/airdropFetcher.js +67 -0
  44. package/src/plugins/suins/airdropFetcher.js.map +1 -0
  45. package/src/plugins/suins/constants.d.ts +7 -0
  46. package/src/plugins/suins/constants.js +24 -0
  47. package/src/plugins/suins/constants.js.map +1 -0
  48. package/src/plugins/suins/index.d.ts +8 -0
  49. package/src/plugins/suins/index.js +10 -0
  50. package/src/plugins/suins/index.js.map +1 -0
  51. package/src/plugins/sushiswap/helpers.js +24 -24
  52. package/src/plugins/uniswap-v2/helpers.js +22 -22
  53. package/src/utils/sei/constants.js +8 -8
  54. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  55. package/src/utils/sui/types.d.ts +6 -0
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # @sonarwatch/portfolio-plugins
2
-
3
- This library is @sonarwatch/portfolio-plugins
1
+ # @sonarwatch/portfolio-plugins
2
+
3
+ This library is @sonarwatch/portfolio-plugins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.127",
3
+ "version": "0.12.129",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -132,6 +132,8 @@ const solayer_1 = require("./plugins/solayer");
132
132
  const picasso_1 = require("./plugins/picasso");
133
133
  const quarry_1 = require("./plugins/quarry");
134
134
  const thevault_1 = require("./plugins/thevault");
135
+ const deepbook_1 = require("./plugins/deepbook");
136
+ const suins_1 = require("./plugins/suins");
135
137
  var constants_1 = require("./plugins/tokens/constants");
136
138
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
137
139
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -257,6 +259,8 @@ exports.platforms = [
257
259
  ...picasso_1.platforms,
258
260
  ...quarry_1.platforms,
259
261
  ...thevault_1.platforms,
262
+ ...deepbook_1.platforms,
263
+ ...suins_1.platforms,
260
264
  ];
261
265
  // JOBS //
262
266
  exports.jobs = [
@@ -365,6 +369,8 @@ exports.jobs = [
365
369
  ...picasso_1.jobs,
366
370
  ...quarry_1.jobs,
367
371
  ...thevault_1.jobs,
372
+ ...deepbook_1.jobs,
373
+ ...suins_1.jobs,
368
374
  ];
369
375
  // FETCHERS //
370
376
  exports.fetchers = [
@@ -475,6 +481,8 @@ exports.fetchers = [
475
481
  ...picasso_1.fetchers,
476
482
  ...quarry_1.fetchers,
477
483
  ...thevault_1.fetchers,
484
+ ...deepbook_1.fetchers,
485
+ ...suins_1.fetchers,
478
486
  ];
479
487
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
480
488
  exports.airdropFetchers = [
@@ -483,6 +491,8 @@ exports.airdropFetchers = [
483
491
  ...sanctum_1.airdropFetchers,
484
492
  drift_1.airdropFetcher,
485
493
  parcl_1.airdropFetcher,
494
+ deepbook_1.airdropFetcher,
495
+ suins_1.airdropFetcher,
486
496
  ];
487
497
  exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
488
498
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4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ACrB,GAAG,eAAY;IACf,GAAG,cAAW;IACd,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,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;CACpB,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;CACpB,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,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC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ql_request_1 = __importStar(require("graphql-request"));
37
37
  function getBalancerPoolsV2(url) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
- const query = (0, graphql_request_1.gql) `
40
- query pools {
41
- pools(
42
- first: 1000
43
- orderBy: totalLiquidity
44
- orderDirection: desc
45
- where: { totalLiquidity_gt: "500" }
46
- ) {
47
- id
48
- address
49
- symbol
50
- totalLiquidity
51
- totalShares
52
- tokens {
53
- balance
54
- decimals
55
- symbol
56
- address
57
- }
58
- }
59
- }
39
+ const query = (0, graphql_request_1.gql) `
40
+ query pools {
41
+ pools(
42
+ first: 1000
43
+ orderBy: totalLiquidity
44
+ orderDirection: desc
45
+ where: { totalLiquidity_gt: "500" }
46
+ ) {
47
+ id
48
+ address
49
+ symbol
50
+ totalLiquidity
51
+ totalShares
52
+ tokens {
53
+ balance
54
+ decimals
55
+ symbol
56
+ address
57
+ }
58
+ }
59
+ }
60
60
  `;
61
61
  const res = yield (0, graphql_request_1.default)(url, query);
62
62
  const pools = res.pools;
@@ -0,0 +1,2 @@
1
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
+ export declare const airdropFetcher: AirdropFetcher;
@@ -0,0 +1,66 @@
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
+ exports.airdropFetcher = void 0;
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
19
+ const constants_1 = require("./constants");
20
+ const clients_1 = require("../../utils/clients");
21
+ const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
22
+ const deepFactor = new bignumber_js_1.default(Math.pow(10, constants_1.deepDecimals));
23
+ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
24
+ const client = (0, clients_1.getClientSui)();
25
+ const nfts = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
26
+ filter: {
27
+ StructType: '0x61c9c39fd86185ad60d738d4e52bd08bda071d366acde07e07c3916a2d75a816::distribution::DEEPWrapper',
28
+ },
29
+ });
30
+ let amount = 0;
31
+ if (nfts) {
32
+ const amounts = nfts.map((nft) => {
33
+ var _a, _b;
34
+ if ((_b = (_a = nft.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields) {
35
+ return (0, bignumber_js_1.default)(nft.data.content.fields.balance)
36
+ .dividedBy(deepFactor)
37
+ .toNumber();
38
+ }
39
+ return 0;
40
+ });
41
+ amount = amounts.reduce((am, curr) => curr + am, 0);
42
+ }
43
+ return (0, AirdropFetcher_1.getAirdropRaw)({
44
+ statics: constants_1.airdropStatics,
45
+ items: [
46
+ {
47
+ amount,
48
+ isClaimed: false,
49
+ label: 'DEEP',
50
+ address: constants_1.deepMint,
51
+ },
52
+ ],
53
+ });
54
+ });
55
+ exports.airdropFetcher = {
56
+ id: constants_1.airdropStatics.id,
57
+ networkId: portfolio_core_1.NetworkId.sui,
58
+ executor,
59
+ };
60
+ // export const fetcher = airdropFetcherToFetcher(
61
+ // airdropFetcher,
62
+ // platform.id,
63
+ // 'deepbook-airdrop',
64
+ // airdropStatics.claimEnd
65
+ // );
66
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"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AClB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AACF,kDAAkD;AAClD,oBAAoB;AACpB,iBAAiB;AACjB,wBAAwB;AACxB,4BAA4B;AAC5B,KAAK"}
@@ -0,0 +1,7 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { AirdropStatics } from '../../AirdropFetcher';
3
+ export declare const platformId = "deepbook";
4
+ export declare const platform: Platform;
5
+ export declare const airdropStatics: AirdropStatics;
6
+ export declare const deepMint = "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP";
7
+ export declare const deepDecimals = 6;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deepDecimals = exports.deepMint = exports.airdropStatics = exports.platform = exports.platformId = void 0;
4
+ exports.platformId = 'deepbook';
5
+ exports.platform = {
6
+ id: exports.platformId,
7
+ name: 'DeepBook',
8
+ image: 'https://sonar.watch/img/platforms/deepbook.webp',
9
+ website: 'https://deepbook.com/',
10
+ twitter: 'https://x.com/DeepBookonSui',
11
+ defiLlamaId: 'deepbook', // from https://defillama.com/docs/api
12
+ };
13
+ exports.airdropStatics = {
14
+ claimLink: '',
15
+ emitterLink: 'https://deepbook.tech/#airdrop',
16
+ emitterName: 'DeepBook',
17
+ id: `${exports.platformId}-token-launch`,
18
+ image: 'https://sonar.watch/img/platforms/deepbook.webp',
19
+ claimEnd: undefined,
20
+ claimStart: undefined,
21
+ };
22
+ exports.deepMint = '0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP';
23
+ exports.deepDecimals = 6;
24
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AACW,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,UAAU;IACvB,EAAE,EAAE,GAAG,kBAAU,eAAe;IAChC,KAAK,EAAE,iDAAiD;IACxD,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;CACtB,CAAC;AAEW,QAAA,QAAQ,GACnB,gFAAgF,CAAC;AACtE,QAAA,YAAY,GAAG,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { Fetcher } from '../../Fetcher';
3
+ import { Job } from '../../Job';
4
+ import { airdropFetcher } from './airdropFetcher';
5
+ export declare const platforms: Platform[];
6
+ export declare const jobs: Job[];
7
+ export declare const fetchers: Fetcher[];
8
+ export { airdropFetcher };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
4
+ const constants_1 = require("./constants");
5
+ const airdropFetcher_1 = require("./airdropFetcher");
6
+ Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
7
+ exports.platforms = [constants_1.platform];
8
+ exports.jobs = [];
9
+ exports.fetchers = [];
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/deepbook/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AACvC,qDAAkD;AAKzC,+FALA,+BAAc,OAKA;AAHV,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { MergeMiner, Miner, Position, Rewarder } from './types';
2
+ import { ParsedAccount } from '../../utils/solana';
3
+ export declare const calculatePositions: (mergeMinerAccounts: ParsedAccount<MergeMiner>[], minerAccounts: ParsedAccount<Miner>[], replicaMinerAccounts: ParsedAccount<Miner>[][], allRewarders: Rewarder[], owner: string) => Position[];
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calculatePositions = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ const helpers_1 = require("./helpers");
6
+ const calculatePositions = (mergeMinerAccounts, minerAccounts, replicaMinerAccounts, allRewarders, owner) => {
7
+ const positions = [];
8
+ const quarryPDAS = (0, helpers_1.getQuarryPDAs)(allRewarders, new web3_js_1.PublicKey(owner));
9
+ [...mergeMinerAccounts, ...minerAccounts].forEach((account, i) => {
10
+ var _a;
11
+ if (!account)
12
+ return;
13
+ const quarryPDA = quarryPDAS.find((q) => (0, helpers_1.isMinerAccount)(account)
14
+ ? q.ownerMiner.toString() === account.pubkey.toString()
15
+ : q.mm.toString() === account.pubkey.toString());
16
+ if (!quarryPDA)
17
+ return;
18
+ const primaryRewarder = allRewarders.find((r) => r.rewarder === quarryPDA.rewarder.toString());
19
+ if (!primaryRewarder)
20
+ return;
21
+ const primaryQuarry = primaryRewarder.quarries.find((q) => quarryPDA.primaryQuarry.toString() === q.quarry);
22
+ if (!primaryQuarry)
23
+ return;
24
+ const rewardsToken = [
25
+ quarryPDA.rewardsToken.toString(),
26
+ ...quarryPDA.replicas.map((r) => r.rewardsMint.toString()),
27
+ ];
28
+ const rewardsBalance = (0, helpers_1.isMinerAccount)(account)
29
+ ? [account.rewardsEarned]
30
+ : replicaMinerAccounts[i].map((acc) => acc.rewardsEarned);
31
+ positions.push({
32
+ primaryRewarder: {
33
+ slug: primaryRewarder.slug,
34
+ name: (_a = primaryRewarder.info) === null || _a === void 0 ? void 0 : _a.name,
35
+ },
36
+ stakedBalance: (0, helpers_1.isMinerAccount)(account)
37
+ ? account.balance
38
+ : account.primaryBalance,
39
+ stakedTokenInfo: primaryQuarry.primaryTokenInfo,
40
+ rewardsToken,
41
+ rewardsBalance,
42
+ });
43
+ });
44
+ return positions;
45
+ };
46
+ exports.calculatePositions = calculatePositions;
47
+ //# sourceMappingURL=calculatePositions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculatePositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/calculatePositions.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,uCAA0D;AAEnD,MAAM,kBAAkB,GAAG,CAChC,kBAA+C,EAC/C,aAAqC,EACrC,oBAA8C,EAC9C,YAAwB,EACxB,KAAa,EACb,EAAE;IACF,MAAM,SAAS,GAAe,EAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,YAAY,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAErE,CAAC,GAAG,kBAAkB,EAAE,GAAG,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;;QAC/D,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CACtC,IAAA,wBAAc,EAAC,OAAO,CAAC;YACrB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;YACvD,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,KA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;YACZ,cAAc;SACf,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAvDW,QAAA,kBAAkB,sBAuD7B"}
@@ -3,8 +3,12 @@ import { PublicKey } from '@solana/web3.js';
3
3
  import { IdlItem } from '@solanafm/explorer-kit-idls';
4
4
  export declare const platformId = "quarry";
5
5
  export declare const platform: Platform;
6
+ export declare const IOUTokensElementName = "IOU Tokens";
6
7
  export declare const rewardersCacheKey = "rewarders";
7
8
  export declare const rewardersUrl = "https://cdn.jsdelivr.net/gh/QuarryProtocol/rewarder-list-build@master/mainnet-beta/all-rewarders-with-info.json";
8
9
  export declare const mergeMineProgramId: PublicKey;
9
10
  export declare const mineProgramId: PublicKey;
11
+ export declare const redeemerProgramId: PublicKey;
10
12
  export declare const mineIdlItem: IdlItem;
13
+ export declare const mergeMineIdlItem: IdlItem;
14
+ export declare const redeemerIdlItem: IdlItem;
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mineIdlItem = exports.mineProgramId = exports.mergeMineProgramId = exports.rewardersUrl = exports.rewardersCacheKey = exports.platform = exports.platformId = void 0;
3
+ exports.redeemerIdlItem = exports.mergeMineIdlItem = exports.mineIdlItem = exports.redeemerProgramId = exports.mineProgramId = exports.mergeMineProgramId = exports.rewardersUrl = exports.rewardersCacheKey = exports.IOUTokensElementName = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const mineIdl_1 = require("./mineIdl");
6
+ const mergeMineIdl_1 = require("./mergeMineIdl");
7
+ const redeemerIdl_1 = require("./redeemerIdl");
6
8
  exports.platformId = 'quarry';
7
9
  exports.platform = {
8
10
  id: exports.platformId,
@@ -12,13 +14,25 @@ exports.platform = {
12
14
  // twitter: 'https://x.com/QuarryProtocol',
13
15
  defiLlamaId: 'quarry', // from https://defillama.com/docs/api
14
16
  };
17
+ exports.IOUTokensElementName = 'IOU Tokens';
15
18
  exports.rewardersCacheKey = `rewarders`;
16
19
  exports.rewardersUrl = `https://cdn.jsdelivr.net/gh/QuarryProtocol/rewarder-list-build@master/mainnet-beta/all-rewarders-with-info.json`;
17
20
  exports.mergeMineProgramId = new web3_js_1.PublicKey('QMMD16kjauP5knBwxNUJRZ1Z5o3deBuFrqVjBVmmqto');
18
21
  exports.mineProgramId = new web3_js_1.PublicKey('QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB');
22
+ exports.redeemerProgramId = new web3_js_1.PublicKey('QRDxhMw1P2NEfiw5mYXG79bwfgHTdasY2xNP76XSea9');
19
23
  exports.mineIdlItem = {
20
24
  programId: exports.mineProgramId.toString(),
21
25
  idl: mineIdl_1.mineIdl,
22
26
  idlType: 'anchor',
23
27
  };
28
+ exports.mergeMineIdlItem = {
29
+ programId: exports.mergeMineProgramId.toString(),
30
+ idl: mergeMineIdl_1.mergeMineIdl,
31
+ idlType: 'anchor',
32
+ };
33
+ exports.redeemerIdlItem = {
34
+ programId: exports.redeemerProgramId.toString(),
35
+ idl: redeemerIdl_1.redeemerIdl,
36
+ idlType: 'anchor',
37
+ };
24
38
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,uCAAoC;AAEvB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,wBAAwB;IACjC,2CAA2C;IAC3C,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC;AACW,QAAA,iBAAiB,GAAG,WAAW,CAAC;AAChC,QAAA,YAAY,GAAG,iHAAiH,CAAC;AACjI,QAAA,kBAAkB,GAAG,IAAI,mBAA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AE,yBAAiB,CAAC,QAAQ,EAAE;IACvC,GAAG,EAAE,yBAAW;IAChB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { GetProgramAccountsFilter } from '@solana/web3.js';
2
+ export declare const minerFilters: (authority: string) => GetProgramAccountsFilter[];
3
+ export declare const mergeMinerFilters: (owner: string) => GetProgramAccountsFilter[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeMinerFilters = exports.minerFilters = void 0;
4
+ const minerFilters = (authority) => [
5
+ {
6
+ memcmp: {
7
+ offset: 40,
8
+ bytes: authority,
9
+ },
10
+ },
11
+ { dataSize: 145 },
12
+ ];
13
+ exports.minerFilters = minerFilters;
14
+ const mergeMinerFilters = (owner) => [
15
+ {
16
+ memcmp: {
17
+ offset: 40,
18
+ bytes: owner,
19
+ },
20
+ },
21
+ { dataSize: 97 },
22
+ ];
23
+ exports.mergeMinerFilters = mergeMinerFilters;
24
+ //# sourceMappingURL=filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/filters.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,SAAiB,EAA8B,EAAE,CAAC;IAC7E;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,SAAS;SACjB;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AARW,QAAA,YAAY,gBAQvB;AAEK,MAAM,iBAAiB,GAAG,CAC/B,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,EAAE,EAAE;CACjB,CAAC;AAVW,QAAA,iBAAiB,qBAU5B"}
@@ -1,17 +1,5 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
- import { Rewarder } from './types';
3
- export declare const getQuarryData: (rewarders: Rewarder[], owner: PublicKey) => {
4
- primaryQuarry: PublicKey;
5
- mm: PublicKey;
6
- mmMiner: PublicKey;
7
- ownerMiner: PublicKey;
8
- rewarder: PublicKey;
9
- stakedToken: PublicKey;
10
- rewardsToken: PublicKey;
11
- replicas: {
12
- replicaQuarry: PublicKey;
13
- replicaMMMiner: PublicKey;
14
- rewardsMint: PublicKey;
15
- rewarder: PublicKey;
16
- }[];
17
- }[];
2
+ import { MergeMiner, Miner, QuarryPDA, Rewarder } from './types';
3
+ import { ParsedAccount } from '../../utils/solana';
4
+ export declare const getQuarryPDAs: (rewarders: Rewarder[], owner: PublicKey) => QuarryPDA[];
5
+ export declare const isMinerAccount: (account: ParsedAccount<Miner> | ParsedAccount<MergeMiner>) => account is ParsedAccount<Miner>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getQuarryData = void 0;
3
+ exports.isMinerAccount = exports.getQuarryPDAs = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const constants_1 = require("./constants");
6
6
  const getQuarryPDA = (t, e) => web3_js_1.PublicKey.findProgramAddressSync([Uint8Array.from(Buffer.from('Quarry', 'utf-8')), t.toBytes(), e.toBytes()], constants_1.mineProgramId);
@@ -11,7 +11,7 @@ const getReplicaMintPDA = (primaryMint) => {
11
11
  };
12
12
  const getMergeMinerPDA = (pool, owner) => web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('MergeMiner', 'utf-8'), pool.toBuffer(), owner.toBuffer()], constants_1.mergeMineProgramId);
13
13
  const getMinerPDA = (t, e) => web3_js_1.PublicKey.findProgramAddressSync([Uint8Array.from(Buffer.from('Miner', 'utf-8')), t.toBytes(), e.toBytes()], constants_1.mineProgramId);
14
- const getQuarryData = (rewarders, owner) => {
14
+ const getQuarryPDAs = (rewarders, owner) => {
15
15
  const quarryAndMintsByTokenMint = {};
16
16
  const e = rewarders.flatMap((rewarder) => {
17
17
  const n = new web3_js_1.PublicKey(rewarder.rewarder);
@@ -53,11 +53,12 @@ const getQuarryData = (rewarders, owner) => {
53
53
  mmMiner: l,
54
54
  ownerMiner: d,
55
55
  rewarder,
56
- stakedToken: primaryMint,
57
56
  rewardsToken: rewardsMint,
58
57
  replicas: f,
59
58
  };
60
59
  });
61
60
  };
62
- exports.getQuarryData = getQuarryData;
61
+ exports.getQuarryPDAs = getQuarryPDAs;
62
+ const isMinerAccount = (account) => account.quarry !== undefined;
63
+ exports.isMinerAccount = isMinerAccount;
63
64
  //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2CAAgE;AAGhE,MAAM,YAAY,GAAG,CAAC,CAAY,EAAE,CAAY,EAAE,EAAE,CAClD,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,EAC3E,yBAAa,CACd,CAAC;AAEJ,MAAM,eAAe,GAAG,CAAC,WAAsB,EAAE,EAAE,CACjD,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,EAC3D,8BAAkB,CACnB,CAAC;AAEJ,MAAM,iBAAiB,GAAG,CAAC,WAAsB,EAAE,EAAE;IACnD,MAAM,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CAAC,C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ACvD,OAAO;gBACL,aAAa;gBACb,cAAc;gBACd,WAAW,EAAE,CAAC,CAAC,WAAW;gBAC1B,QAAQ,EAAE,CAAC,CAAC,GAAG;aAChB,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,OAAO;YACL,aAAa,EAAE,CAAC;YAChB,EAAE,EAAE,CAAC;YACL,OAAO,EAAE,CAAC;YACV,UAAU,EAAE,CAAC;YACb,QAAQ;YACR,YAAY,EAAE,WAAW;YACzB,QAAQ,EAAE,CAAC;SACZ,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAlDW,QAAA,aAAa,iBAkDxB;AAEK,MAAM,cAAc,GAAG,CAC5B,OAAyD,EACxB,EAAE,CAClC,OAAgC,CAAC,MAAM,KAAK,SAAS,CAAC;AAH5C,QAAA,cAAc,kBAG8B"}
@@ -7,7 +7,8 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const positionsFetcher_1 = __importDefault(require("./positionsFetcher"));
9
9
  const rewardersJob_1 = __importDefault(require("./rewardersJob"));
10
+ const redeemersJob_1 = __importDefault(require("./redeemersJob"));
10
11
  exports.platforms = [constants_1.platform];
11
- exports.jobs = [rewardersJob_1.default];
12
+ exports.jobs = [rewardersJob_1.default, redeemersJob_1.default];
12
13
  exports.fetchers = [positionsFetcher_1.default];
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0EAAkD;AAClD,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,sBAAY,CAAC,CAAC;AAC7B,QAAA,QAAQ,GAAc,CAAC,0BAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/quarry/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0EAAkD;AAClD,kEAA0C;AAC1C,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,sBAAY,CAAC,CAAC;AAC3C,QAAA,QAAQ,GAAc,CAAC,0BAAgB,CAAC,CAAC"}
@@ -0,0 +1,91 @@
1
+ export declare const mergeMineIdl: {
2
+ version: string;
3
+ name: string;
4
+ instructions: ({
5
+ name: string;
6
+ accounts: ({
7
+ name: string;
8
+ isMut: boolean;
9
+ isSigner: boolean;
10
+ pda?: undefined;
11
+ } | {
12
+ name: string;
13
+ isMut: boolean;
14
+ isSigner: boolean;
15
+ pda: {
16
+ seeds: ({
17
+ kind: string;
18
+ type: string;
19
+ value: string;
20
+ account?: undefined;
21
+ path?: undefined;
22
+ } | {
23
+ kind: string;
24
+ type: string;
25
+ account: string;
26
+ path: string;
27
+ value?: undefined;
28
+ } | {
29
+ kind: string;
30
+ type: string;
31
+ path: string;
32
+ value?: undefined;
33
+ account?: undefined;
34
+ })[];
35
+ };
36
+ })[];
37
+ args: {
38
+ name: string;
39
+ type: string;
40
+ }[];
41
+ } | {
42
+ name: string;
43
+ accounts: ({
44
+ name: string;
45
+ isMut: boolean;
46
+ isSigner: boolean;
47
+ accounts?: undefined;
48
+ } | {
49
+ name: string;
50
+ accounts: {
51
+ name: string;
52
+ isMut: boolean;
53
+ isSigner: boolean;
54
+ }[];
55
+ isMut?: undefined;
56
+ isSigner?: undefined;
57
+ })[];
58
+ args: {
59
+ name: string;
60
+ type: string;
61
+ }[];
62
+ })[];
63
+ accounts: {
64
+ name: string;
65
+ type: {
66
+ kind: string;
67
+ fields: ({
68
+ name: string;
69
+ type: string;
70
+ } | {
71
+ name: string;
72
+ type: {
73
+ array: (string | number)[];
74
+ };
75
+ })[];
76
+ };
77
+ }[];
78
+ events: {
79
+ name: string;
80
+ fields: {
81
+ name: string;
82
+ type: string;
83
+ index: boolean;
84
+ }[];
85
+ }[];
86
+ errors: {
87
+ code: number;
88
+ name: string;
89
+ msg: string;
90
+ }[];
91
+ };