@sonarwatch/portfolio-plugins 0.12.123 → 0.12.124
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/quarry/constants.d.ts +10 -0
- package/src/plugins/quarry/constants.js +24 -0
- package/src/plugins/quarry/constants.js.map +1 -0
- package/src/plugins/quarry/helpers.d.ts +17 -0
- package/src/plugins/quarry/helpers.js +63 -0
- package/src/plugins/quarry/helpers.js.map +1 -0
- package/src/plugins/quarry/index.d.ts +6 -0
- package/src/plugins/quarry/index.js +13 -0
- package/src/plugins/quarry/index.js.map +1 -0
- package/src/plugins/quarry/mineIdl.d.ts +125 -0
- package/src/plugins/quarry/mineIdl.js +1333 -0
- package/src/plugins/quarry/mineIdl.js.map +1 -0
- package/src/plugins/quarry/positionsFetcher.d.ts +3 -0
- package/src/plugins/quarry/positionsFetcher.js +110 -0
- package/src/plugins/quarry/positionsFetcher.js.map +1 -0
- package/src/plugins/quarry/rewardersJob.d.ts +3 -0
- package/src/plugins/quarry/rewardersJob.js +42 -0
- package/src/plugins/quarry/rewardersJob.js.map +1 -0
- package/src/plugins/quarry/types.d.ts +54 -0
- package/src/plugins/quarry/types.js +3 -0
- package/src/plugins/quarry/types.js.map +1 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.124](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.123...plugins-0.12.124) (2024-08-08)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.12.123](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.122...plugins-0.12.123) (2024-08-07)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -130,6 +130,7 @@ const nxfinance_1 = require("./plugins/nxfinance");
|
|
130
130
|
const echelon_1 = require("./plugins/echelon");
|
131
131
|
const solayer_1 = require("./plugins/solayer");
|
132
132
|
const picasso_1 = require("./plugins/picasso");
|
133
|
+
const quarry_1 = require("./plugins/quarry");
|
133
134
|
var constants_1 = require("./plugins/tokens/constants");
|
134
135
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
135
136
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -253,6 +254,7 @@ exports.platforms = [
|
|
253
254
|
...echelon_1.platforms,
|
254
255
|
...solayer_1.platforms,
|
255
256
|
...picasso_1.platforms,
|
257
|
+
...quarry_1.platforms,
|
256
258
|
];
|
257
259
|
// JOBS //
|
258
260
|
exports.jobs = [
|
@@ -359,6 +361,7 @@ exports.jobs = [
|
|
359
361
|
...echelon_1.jobs,
|
360
362
|
...solayer_1.jobs,
|
361
363
|
...picasso_1.jobs,
|
364
|
+
...quarry_1.jobs,
|
362
365
|
];
|
363
366
|
// FETCHERS //
|
364
367
|
exports.fetchers = [
|
@@ -467,6 +470,7 @@ exports.fetchers = [
|
|
467
470
|
...echelon_1.fetchers,
|
468
471
|
...solayer_1.fetchers,
|
469
472
|
...picasso_1.fetchers,
|
473
|
+
...quarry_1.fetchers,
|
470
474
|
];
|
471
475
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
472
476
|
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,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;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QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,sBAAmB;IACnB,sBAAmB;IACnB,wBAAqB;CACtB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import { IdlItem } from '@solanafm/explorer-kit-idls';
|
4
|
+
export declare const platformId = "quarry";
|
5
|
+
export declare const platform: Platform;
|
6
|
+
export declare const rewardersCacheKey = "rewarders";
|
7
|
+
export declare const rewardersUrl = "https://cdn.jsdelivr.net/gh/QuarryProtocol/rewarder-list-build@master/mainnet-beta/all-rewarders-with-info.json";
|
8
|
+
export declare const mergeMineProgramId: PublicKey;
|
9
|
+
export declare const mineProgramId: PublicKey;
|
10
|
+
export declare const mineIdlItem: IdlItem;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.mineIdlItem = exports.mineProgramId = exports.mergeMineProgramId = exports.rewardersUrl = exports.rewardersCacheKey = exports.platform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
const mineIdl_1 = require("./mineIdl");
|
6
|
+
exports.platformId = 'quarry';
|
7
|
+
exports.platform = {
|
8
|
+
id: exports.platformId,
|
9
|
+
name: 'Quarry',
|
10
|
+
image: 'https://sonar.watch/img/platforms/quarry.webp',
|
11
|
+
website: 'https://app.quarry.so/',
|
12
|
+
// twitter: 'https://x.com/QuarryProtocol',
|
13
|
+
defiLlamaId: 'quarry', // from https://defillama.com/docs/api
|
14
|
+
};
|
15
|
+
exports.rewardersCacheKey = `rewarders`;
|
16
|
+
exports.rewardersUrl = `https://cdn.jsdelivr.net/gh/QuarryProtocol/rewarder-list-build@master/mainnet-beta/all-rewarders-with-info.json`;
|
17
|
+
exports.mergeMineProgramId = new web3_js_1.PublicKey('QMMD16kjauP5knBwxNUJRZ1Z5o3deBuFrqVjBVmmqto');
|
18
|
+
exports.mineProgramId = new web3_js_1.PublicKey('QMNeHCGYnLVDn1icRAfQZpjPLBNkfGbSKRB83G5d8KB');
|
19
|
+
exports.mineIdlItem = {
|
20
|
+
programId: exports.mineProgramId.toString(),
|
21
|
+
idl: mineIdl_1.mineIdl,
|
22
|
+
idlType: 'anchor',
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +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,mBAAS,CAC7C,6CAA6C,CAC9C,CAAC;AACW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,qBAAa,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,iBAAO;IACZ,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
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
|
+
}[];
|
@@ -0,0 +1,63 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getQuarryData = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
const constants_1 = require("./constants");
|
6
|
+
const getQuarryPDA = (t, e) => web3_js_1.PublicKey.findProgramAddressSync([Uint8Array.from(Buffer.from('Quarry', 'utf-8')), t.toBytes(), e.toBytes()], constants_1.mineProgramId);
|
7
|
+
const getMergePoolPDA = (primaryMint) => web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('MergePool', 'utf-8'), primaryMint.toBuffer()], constants_1.mergeMineProgramId);
|
8
|
+
const getReplicaMintPDA = (primaryMint) => {
|
9
|
+
const [t] = getMergePoolPDA(primaryMint);
|
10
|
+
return web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('ReplicaMint', 'utf-8'), t.toBuffer()], constants_1.mergeMineProgramId);
|
11
|
+
};
|
12
|
+
const getMergeMinerPDA = (pool, owner) => web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('MergeMiner', 'utf-8'), pool.toBuffer(), owner.toBuffer()], constants_1.mergeMineProgramId);
|
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) => {
|
15
|
+
const quarryAndMintsByTokenMint = {};
|
16
|
+
const e = rewarders.flatMap((rewarder) => {
|
17
|
+
const n = new web3_js_1.PublicKey(rewarder.rewarder);
|
18
|
+
return rewarder.quarries.map((r) => {
|
19
|
+
const i = r.stakedToken.mint.toString();
|
20
|
+
const o = new web3_js_1.PublicKey(rewarder.rewardsToken.mint);
|
21
|
+
const quarryAndMint = {
|
22
|
+
key: n,
|
23
|
+
rewardsMint: o,
|
24
|
+
};
|
25
|
+
if (!quarryAndMintsByTokenMint[i])
|
26
|
+
quarryAndMintsByTokenMint[i] = [];
|
27
|
+
quarryAndMintsByTokenMint[i].push(quarryAndMint);
|
28
|
+
return [n, new web3_js_1.PublicKey(i), o];
|
29
|
+
});
|
30
|
+
});
|
31
|
+
return e.map((pks) => {
|
32
|
+
const [rewarder, primaryMint, rewardsMint] = pks;
|
33
|
+
const [o] = getReplicaMintPDA(primaryMint);
|
34
|
+
const [a] = getQuarryPDA(rewarder, primaryMint);
|
35
|
+
const [s] = getMergePoolPDA(new web3_js_1.PublicKey(primaryMint));
|
36
|
+
const [c] = getMergeMinerPDA(s, new web3_js_1.PublicKey(owner));
|
37
|
+
const [l] = getMinerPDA(a, c);
|
38
|
+
const [d] = getMinerPDA(a, new web3_js_1.PublicKey(owner));
|
39
|
+
const h = quarryAndMintsByTokenMint[o.toString()] || [];
|
40
|
+
const f = h.map((t) => {
|
41
|
+
const [replicaQuarry] = getQuarryPDA(t.key, o);
|
42
|
+
const [replicaMMMiner] = getMinerPDA(replicaQuarry, c);
|
43
|
+
return {
|
44
|
+
replicaQuarry,
|
45
|
+
replicaMMMiner,
|
46
|
+
rewardsMint: t.rewardsMint,
|
47
|
+
rewarder: t.key,
|
48
|
+
};
|
49
|
+
});
|
50
|
+
return {
|
51
|
+
primaryQuarry: a,
|
52
|
+
mm: c,
|
53
|
+
mmMiner: l,
|
54
|
+
ownerMiner: d,
|
55
|
+
rewarder,
|
56
|
+
stakedToken: primaryMint,
|
57
|
+
rewardsToken: rewardsMint,
|
58
|
+
replicas: f,
|
59
|
+
};
|
60
|
+
});
|
61
|
+
};
|
62
|
+
exports.getQuarryData = getQuarryData;
|
63
|
+
//# sourceMappingURL=helpers.js.map
|
@@ -0,0 +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,CAAC,QAAQ,EAAE,CAAC,EACnD,8BAAkB,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAe,EAAE,KAAgB,EAAE,EAAE,CAC7D,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,EACvE,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WAAW;YACzB,QAAQ,EAAE,CAAC;SACZ,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAhDW,QAAA,aAAa,iBAgDxB"}
|
@@ -0,0 +1,13 @@
|
|
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 positionsFetcher_1 = __importDefault(require("./positionsFetcher"));
|
9
|
+
const rewardersJob_1 = __importDefault(require("./rewardersJob"));
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
|
+
exports.jobs = [rewardersJob_1.default];
|
12
|
+
exports.fetchers = [positionsFetcher_1.default];
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
export declare const mineIdl: {
|
2
|
+
version: string;
|
3
|
+
name: string;
|
4
|
+
instructions: ({
|
5
|
+
name: string;
|
6
|
+
accounts: ({
|
7
|
+
name: string;
|
8
|
+
isMut: boolean;
|
9
|
+
isSigner: boolean;
|
10
|
+
pda: {
|
11
|
+
seeds: ({
|
12
|
+
kind: string;
|
13
|
+
type: string;
|
14
|
+
value: string;
|
15
|
+
account?: undefined;
|
16
|
+
path?: undefined;
|
17
|
+
} | {
|
18
|
+
kind: string;
|
19
|
+
type: {
|
20
|
+
defined: string;
|
21
|
+
};
|
22
|
+
account: string;
|
23
|
+
path: string;
|
24
|
+
value?: undefined;
|
25
|
+
} | {
|
26
|
+
kind: string;
|
27
|
+
type: string;
|
28
|
+
account: string;
|
29
|
+
path: string;
|
30
|
+
value?: undefined;
|
31
|
+
})[];
|
32
|
+
};
|
33
|
+
accounts?: undefined;
|
34
|
+
} | {
|
35
|
+
name: string;
|
36
|
+
accounts: {
|
37
|
+
name: string;
|
38
|
+
isMut: boolean;
|
39
|
+
isSigner: boolean;
|
40
|
+
}[];
|
41
|
+
isMut?: undefined;
|
42
|
+
isSigner?: undefined;
|
43
|
+
pda?: undefined;
|
44
|
+
} | {
|
45
|
+
name: string;
|
46
|
+
isMut: boolean;
|
47
|
+
isSigner: boolean;
|
48
|
+
pda?: undefined;
|
49
|
+
accounts?: undefined;
|
50
|
+
})[];
|
51
|
+
args: {
|
52
|
+
name: string;
|
53
|
+
type: string;
|
54
|
+
}[];
|
55
|
+
} | {
|
56
|
+
name: string;
|
57
|
+
accounts: ({
|
58
|
+
name: string;
|
59
|
+
isMut: boolean;
|
60
|
+
isSigner: boolean;
|
61
|
+
pda?: undefined;
|
62
|
+
} | {
|
63
|
+
name: string;
|
64
|
+
isMut: boolean;
|
65
|
+
isSigner: boolean;
|
66
|
+
pda: {
|
67
|
+
seeds: ({
|
68
|
+
kind: string;
|
69
|
+
type: string;
|
70
|
+
value: string;
|
71
|
+
account?: undefined;
|
72
|
+
path?: undefined;
|
73
|
+
} | {
|
74
|
+
kind: string;
|
75
|
+
type: string;
|
76
|
+
account: string;
|
77
|
+
path: string;
|
78
|
+
value?: undefined;
|
79
|
+
} | {
|
80
|
+
kind: string;
|
81
|
+
type: string;
|
82
|
+
path: string;
|
83
|
+
value?: undefined;
|
84
|
+
account?: undefined;
|
85
|
+
})[];
|
86
|
+
};
|
87
|
+
})[];
|
88
|
+
args: {
|
89
|
+
name: string;
|
90
|
+
type: string;
|
91
|
+
}[];
|
92
|
+
})[];
|
93
|
+
accounts: {
|
94
|
+
name: string;
|
95
|
+
type: {
|
96
|
+
kind: string;
|
97
|
+
fields: {
|
98
|
+
name: string;
|
99
|
+
type: string;
|
100
|
+
}[];
|
101
|
+
};
|
102
|
+
}[];
|
103
|
+
types: {
|
104
|
+
name: string;
|
105
|
+
type: {
|
106
|
+
kind: string;
|
107
|
+
variants: {
|
108
|
+
name: string;
|
109
|
+
}[];
|
110
|
+
};
|
111
|
+
}[];
|
112
|
+
events: {
|
113
|
+
name: string;
|
114
|
+
fields: {
|
115
|
+
name: string;
|
116
|
+
type: string;
|
117
|
+
index: boolean;
|
118
|
+
}[];
|
119
|
+
}[];
|
120
|
+
errors: {
|
121
|
+
code: number;
|
122
|
+
name: string;
|
123
|
+
msg: string;
|
124
|
+
}[];
|
125
|
+
};
|