@sonarwatch/portfolio-plugins 0.12.150 → 0.12.152
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1383 -1375
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +2 -2
- package/src/index.js.map +1 -1
- package/src/orphanPlatforms.d.ts +17 -0
- package/src/{orphanPlatorms.js → orphanPlatforms.js} +20 -3
- package/src/orphanPlatforms.js.map +1 -0
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +19 -15
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.js +1 -0
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/x-staking-solana/constants.d.ts +0 -7
- package/src/plugins/x-staking-solana/constants.js +6 -28
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/plugins/x-staking-solana/index.js +1 -6
- package/src/plugins/x-staking-solana/index.js.map +1 -1
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/orphanPlatorms.d.ts +0 -3
- package/src/orphanPlatorms.js.map +0 -1
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
package/src/index.js
CHANGED
@@ -19,7 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
20
|
exports.airdropFetchersByAddressSystem = exports.airdropFetchers = exports.fetchersByAddressSystem = exports.fetchers = exports.jobs = exports.platforms = exports.getLlamaProtocolsJob = exports.getFetchersByAddressSystem = exports.walletNftsPlatform = exports.walletTokensPlatform = void 0;
|
21
21
|
const getFetchersByAddressSystem_1 = require("./utils/misc/getFetchersByAddressSystem");
|
22
|
-
const
|
22
|
+
const orphanPlatforms_1 = __importDefault(require("./orphanPlatforms"));
|
23
23
|
const tokens_1 = require("./plugins/tokens");
|
24
24
|
const native_stake_1 = require("./plugins/native-stake");
|
25
25
|
const switchboard_1 = require("./plugins/switchboard");
|
@@ -152,7 +152,7 @@ var llama_protocols_1 = require("./plugins/llama-protocols");
|
|
152
152
|
Object.defineProperty(exports, "getLlamaProtocolsJob", { enumerable: true, get: function () { return llama_protocols_1.getLlamaProtocolsJob; } });
|
153
153
|
// PLATFORMS //
|
154
154
|
exports.platforms = [
|
155
|
-
...
|
155
|
+
...orphanPlatforms_1.default,
|
156
156
|
...aave_1.platforms,
|
157
157
|
...orca_1.platforms,
|
158
158
|
...cetus_1.platforms,
|
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,
|
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;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B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Ae;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;IACnB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,gBAAa;CACjB,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"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
+
export declare const stepfinancePlatform: {
|
3
|
+
id: string;
|
4
|
+
name: string;
|
5
|
+
image: string;
|
6
|
+
website: string;
|
7
|
+
twitter: string;
|
8
|
+
};
|
9
|
+
export declare const ligmaPlatform: {
|
10
|
+
id: string;
|
11
|
+
name: string;
|
12
|
+
image: string;
|
13
|
+
website: string;
|
14
|
+
twitter: string;
|
15
|
+
};
|
16
|
+
declare const orphanPlatforms: Platform[];
|
17
|
+
export default orphanPlatforms;
|
@@ -1,6 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
|
3
|
+
exports.ligmaPlatform = exports.stepfinancePlatform = void 0;
|
4
|
+
exports.stepfinancePlatform = {
|
5
|
+
id: 'stepfinance',
|
6
|
+
name: 'Step Finance',
|
7
|
+
image: 'https://sonar.watch/img/platforms/stepfinance.webp',
|
8
|
+
website: 'https://app.step.finance/',
|
9
|
+
twitter: 'https://twitter.com/StepFinance_',
|
10
|
+
};
|
11
|
+
exports.ligmaPlatform = {
|
12
|
+
id: 'ligma',
|
13
|
+
name: 'Ligma',
|
14
|
+
image: 'https://sonar.watch/img/platforms/ligma.webp',
|
15
|
+
website: 'https://stake.ligmanode.com/',
|
16
|
+
twitter: 'https://twitter.com/ligmanode',
|
17
|
+
};
|
18
|
+
const orphanPlatforms = [
|
4
19
|
{
|
5
20
|
id: 'tortuga',
|
6
21
|
defiLlamaId: 'tortuga', // from https://defillama.com/docs/api
|
@@ -64,6 +79,8 @@ const otphanPlatforms = [
|
|
64
79
|
image: 'https://sonar.watch/img/platforms/ondo-finance.webp',
|
65
80
|
website: 'https://ondo.finance/',
|
66
81
|
},
|
82
|
+
exports.stepfinancePlatform,
|
83
|
+
exports.ligmaPlatform,
|
67
84
|
];
|
68
|
-
exports.default =
|
69
|
-
//# sourceMappingURL=
|
85
|
+
exports.default = orphanPlatforms;
|
86
|
+
//# sourceMappingURL=orphanPlatforms.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"orphanPlatforms.js","sour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OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,EAAE,EAAE,MAAM;QACV,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,kDAAkD;QACzD,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,EAAE,EAAE,cAAc;QAClB,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,qDAAqD;QAC5D,OAAO,EAAE,uBAAuB;KACjC;IACD,2BAAmB;IACnB,qBAAa;CACd,CAAC;AACF,kBAAe,eAAe,CAAC"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_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;
|
@@ -18,7 +18,6 @@ const web3_js_1 = require("@solana/web3.js");
|
|
18
18
|
const clients_1 = require("../../../utils/clients");
|
19
19
|
const solana_1 = require("../../../utils/solana");
|
20
20
|
const filters_1 = require("../filters");
|
21
|
-
const helpers_1 = require("../../../utils/solana/pyth/helpers");
|
22
21
|
const constants_1 = require("./constants");
|
23
22
|
const structs_1 = require("./structs");
|
24
23
|
const usdFactor = new bignumber_js_1.default(Math.pow(10, 6));
|
@@ -28,29 +27,32 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
28
27
|
if (positionAccounts.length === 0 ||
|
29
28
|
positionAccounts.every((perp) => perp.sizeUsd.isLessThanOrEqualTo(0)))
|
30
29
|
return [];
|
31
|
-
const custodiesAccounts = yield
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
if (!perpPoolsArr)
|
30
|
+
const [custodiesAccounts, perpPoolsArr] = yield Promise.all([
|
31
|
+
cache.getItem(constants_1.custodiesKey, {
|
32
|
+
prefix: constants_1.platformId,
|
33
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
34
|
+
}),
|
35
|
+
cache.getItem(constants_1.perpPoolsKey, {
|
36
|
+
prefix: constants_1.platformId,
|
37
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
38
|
+
}),
|
39
|
+
]);
|
40
|
+
if (!custodiesAccounts || !perpPoolsArr)
|
42
41
|
return [];
|
43
42
|
const perpPools = new Map();
|
44
43
|
perpPoolsArr.forEach((a) => {
|
45
44
|
perpPools.set(a.pubkey.toString(), a);
|
46
45
|
});
|
47
46
|
const oraclesPubkeys = [];
|
47
|
+
const mints = new Set();
|
48
48
|
const custodyById = new Map();
|
49
49
|
custodiesAccounts.forEach((a) => {
|
50
50
|
oraclesPubkeys.push(new web3_js_1.PublicKey(a.oracle.oracleAccount));
|
51
51
|
custodyById.set(a.pubkey, a);
|
52
|
+
mints.add(a.mint.toString());
|
52
53
|
});
|
53
|
-
const
|
54
|
+
const currentPriceById = yield cache.getTokenPricesAsMap(Array.from(mints), portfolio_core_1.NetworkId.solana);
|
55
|
+
// const pythPricesByAccount = await getPythPricesAsMap(client, oraclesPubkeys);
|
54
56
|
const levPositions = [];
|
55
57
|
for (const position of positionAccounts) {
|
56
58
|
const { collateralUsd, sizeUsd, price, side, cumulativeInterestSnapshot } = position;
|
@@ -67,9 +69,11 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
67
69
|
if (!perpPool)
|
68
70
|
continue;
|
69
71
|
const entryPrice = price.dividedBy(usdFactor);
|
70
|
-
const currentPrice = pythPricesByAccount.get(custody.oracle.oracleAccount);
|
71
|
-
|
72
|
+
// const currentPrice = pythPricesByAccount.get(custody.oracle.oracleAccount);
|
73
|
+
const currentTokenPrice = currentPriceById.get(custody.mint.toString());
|
74
|
+
if (!currentTokenPrice)
|
72
75
|
continue;
|
76
|
+
const currentPrice = currentTokenPrice.price;
|
73
77
|
const sizeValue = sizeUsd.dividedBy(usdFactor);
|
74
78
|
const size = sizeValue.div(entryPrice);
|
75
79
|
const leverage = sizeUsd.dividedBy(collateralUsd);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/perpetualFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,oDAAyD;AACzD,kDAAgF;AAChF,wCAAuD;AAEvD,
|
1
|
+
{"version":3,"file":"perpetualFetcher.js","sourceRoot":"","sources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AAE,WAAW,CAAC,QAAQ,EAAE;YAChC,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/D,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,IAAI,EAAE;gBACJ,SAAS,EAAE,YAAY;gBACvB,KAAK;aACN;YACD,KAAK,EAAE,UAAU;YACjB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK;SACN;KACF,CAAC;AACJ,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"}
|
@@ -94,6 +94,7 @@ exports.lendingConfigs = new Map([
|
|
94
94
|
},
|
95
95
|
],
|
96
96
|
['ByYiZxp8QrdN9qbdtaAiePN8AAr3qvTPppNJDpf5DVJ5', { name: 'Altcoins Market' }],
|
97
|
+
['BJnbcRHqvppTyGesLzWASGKnmnF1wq9jZu6ExrjT7wvF', { name: 'Ethena Market' }],
|
97
98
|
]);
|
98
99
|
exports.marketsKey = `markets`;
|
99
100
|
exports.reservesKey = `reserves`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAK/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,I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AC/C;aACF;SACF;KACF;IACD;QACE,8CAA8C;QAC9C;YACE,IAAI,EAAE,YAAY;YAClB,aAAa,EAAE;gBACb;oBACE,8CAA8C;oBAC9C,8CAA8C;iBAC/C;aACF;SACF;KACF;IACD,CAAC,8CAA8C,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAK/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAC3B,iDAAiD,CAAC;AAEvC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,UAAU,GAAG,8CAA8C,CAAC;AAE5D,QAAA,cAAc,GAAqC,IAAI,GAAG,CAAC;IACtE;QACE,8CAA8C;QAC9C;YACE,IAAI,EAAE,aAAa;YACnB,aAAa,EAAE;gBACb;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,8CAA8C;oBAC9C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE,6CAA6C;oBAC7C,6CAA6C;iBAC9C;gBACD;oBACE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ACtD,IAAI,EAAE,IAAI;CACX,CAAC"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -1,10 +1,3 @@
|
|
1
|
-
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
-
export declare const stepFinancePlatformId = "stepfinance";
|
3
|
-
export declare const stepFinancePlatform: Platform;
|
4
|
-
export declare const allbridgePlatformId = "allbridge";
|
5
|
-
export declare const allbridgePlatform: Platform;
|
6
|
-
export declare const ligmaPlatformId = "ligma";
|
7
|
-
export declare const ligmaPlatform: Platform;
|
8
1
|
export declare const xStakingConfigs: StakingConfig[];
|
9
2
|
export type StakingConfig = {
|
10
3
|
mint: string;
|
@@ -1,33 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.xStakingConfigs =
|
3
|
+
exports.xStakingConfigs = void 0;
|
4
4
|
const constants_1 = require("../aurory/constants");
|
5
5
|
const constants_2 = require("../hawksight/constants");
|
6
6
|
const constants_3 = require("../whalesmarket/constants");
|
7
|
-
|
8
|
-
|
9
|
-
id: exports.stepFinancePlatformId,
|
10
|
-
name: 'Step Finance',
|
11
|
-
image: 'https://sonar.watch/img/platforms/stepfinance.webp',
|
12
|
-
website: 'https://app.step.finance/',
|
13
|
-
twitter: 'https://twitter.com/StepFinance_',
|
14
|
-
};
|
15
|
-
exports.allbridgePlatformId = 'allbridge';
|
16
|
-
exports.allbridgePlatform = {
|
17
|
-
id: exports.allbridgePlatformId,
|
18
|
-
name: 'Allbridge',
|
19
|
-
image: 'https://sonar.watch/img/platforms/allbridge.webp',
|
20
|
-
website: 'https://stake.allbridge.io/?chain=SOL',
|
21
|
-
twitter: 'https://twitter.com/Allbridge_io',
|
22
|
-
};
|
23
|
-
exports.ligmaPlatformId = 'ligma';
|
24
|
-
exports.ligmaPlatform = {
|
25
|
-
id: exports.allbridgePlatformId,
|
26
|
-
name: 'Ligma',
|
27
|
-
image: 'https://sonar.watch/img/platforms/ligma.webp',
|
28
|
-
website: 'https://stake.ligmanode.com/',
|
29
|
-
twitter: 'https://twitter.com/ligmanode',
|
30
|
-
};
|
7
|
+
const constants_4 = require("../allbridge/constants");
|
8
|
+
const orphanPlatforms_1 = require("../../orphanPlatforms");
|
31
9
|
exports.xStakingConfigs = [
|
32
10
|
{
|
33
11
|
mint: constants_1.auryMint,
|
@@ -51,7 +29,7 @@ exports.xStakingConfigs = [
|
|
51
29
|
vault: 'ANYxxG365hutGYaTdtUQG8u2hC4dFX9mFHKuzy9ABQJi',
|
52
30
|
xMint: 'xStpgUCss9piqeFUk2iLVcvJEGhAdJxJQuwLkXP555G',
|
53
31
|
xDecimals: 9,
|
54
|
-
platformId:
|
32
|
+
platformId: orphanPlatforms_1.stepfinancePlatform.id,
|
55
33
|
},
|
56
34
|
{
|
57
35
|
mint: 'a11bdAAuV8iB2fu7X6AxAvDTo1QZ8FXB3kk5eecdasp',
|
@@ -59,7 +37,7 @@ exports.xStakingConfigs = [
|
|
59
37
|
vault: '51dd7AuT32b5VCK2rBVrjLGvfuvZ3kMayNrZZbWuvas2',
|
60
38
|
xMint: 'xAx6d1sjmBvpWkVZQEqgUvPmGBNndEXPxYpr3QVp61H',
|
61
39
|
xDecimals: 9,
|
62
|
-
platformId:
|
40
|
+
platformId: constants_4.platformId,
|
63
41
|
},
|
64
42
|
{
|
65
43
|
mint: 'BKipkearSqAUdNKa1WDstvcMjoPsSKBuNyvKDQDDu9WE',
|
@@ -75,7 +53,7 @@ exports.xStakingConfigs = [
|
|
75
53
|
vault: 'ENz6c4ZVYedrcK5V4fh7vwDA1SvZDNDQb1j3KKQbbo8Q',
|
76
54
|
xMint: 'xNodeyB1u8WNrKQJqfucbKDMq7LYcAQfYXmqVdDj9M5',
|
77
55
|
xDecimals: 6,
|
78
|
-
platformId:
|
56
|
+
platformId: orphanPlatforms_1.ligmaPlatform.id,
|
79
57
|
},
|
80
58
|
];
|
81
59
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AAAA,mDAM6B;AAC7B,sDAA2E;AAC3E,yDAAiF;AACjF,sDAA2E;AAC3E,2DAA2E;AAE9D,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,qCAAmB,CAAC,EAAE;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,sBAAmB;KAChC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,+BAAa,CAAC,EAAE;KAC7B;CACF,CAAC"}
|
@@ -4,13 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
|
-
const constants_1 = require("./constants");
|
8
7
|
const stakingJob_1 = __importDefault(require("./stakingJob"));
|
9
|
-
exports.platforms = [
|
10
|
-
constants_1.stepFinancePlatform,
|
11
|
-
constants_1.allbridgePlatform,
|
12
|
-
constants_1.ligmaPlatform,
|
13
|
-
];
|
8
|
+
exports.platforms = [];
|
14
9
|
exports.jobs = [stakingJob_1.default];
|
15
10
|
exports.fetchers = [];
|
16
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/index.ts"],"names":[],"mappings":";;;;;;AAGA,8DAAuC;AAE1B,QAAA,SAAS,GAAe,EAAE,CAAC;AAC3B,QAAA,IAAI,GAAU,CAAC,oBAAW,CAAC,CAAC;AAC5B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -42,20 +42,20 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
42
42
|
const clients_1 = require("../../utils/clients");
|
43
43
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
44
44
|
const helpers_1 = require("./helpers");
|
45
|
-
const query = (0, graphql_request_1.gql) `
|
46
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
-
getAirdropFinalFrontend(authority: $authority) {
|
48
|
-
authority
|
49
|
-
community_allocation
|
50
|
-
eligibility
|
51
|
-
main_allocation
|
52
|
-
og_allocation
|
53
|
-
s1_allocation
|
54
|
-
s2_allocation
|
55
|
-
total_allocation
|
56
|
-
__typename
|
57
|
-
}
|
58
|
-
}
|
45
|
+
const query = (0, graphql_request_1.gql) `
|
46
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
47
|
+
getAirdropFinalFrontend(authority: $authority) {
|
48
|
+
authority
|
49
|
+
community_allocation
|
50
|
+
eligibility
|
51
|
+
main_allocation
|
52
|
+
og_allocation
|
53
|
+
s1_allocation
|
54
|
+
s2_allocation
|
55
|
+
total_allocation
|
56
|
+
__typename
|
57
|
+
}
|
58
|
+
}
|
59
59
|
`;
|
60
60
|
const networkId = portfolio_core_1.NetworkId.solana;
|
61
61
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
function getQueryBalanceByOwner(owner) {
|
4
|
-
return JSON.parse(`{
|
5
|
-
"balance": {
|
6
|
-
"address": "${owner}"
|
7
|
-
}
|
4
|
+
return JSON.parse(`{
|
5
|
+
"balance": {
|
6
|
+
"address": "${owner}"
|
7
|
+
}
|
8
8
|
}`);
|
9
9
|
}
|
10
10
|
exports.default = getQueryBalanceByOwner;
|
package/src/orphanPlatorms.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAA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