@sonarwatch/portfolio-plugins 0.15.9 → 0.15.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2630 -2622
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/Cache.js +1 -1
- package/src/Cache.js.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/glow/Number192.d.ts +18 -0
- package/src/plugins/glow/Number192.js +42 -0
- package/src/plugins/glow/Number192.js.map +1 -0
- package/src/plugins/glow/constants.d.ts +7 -0
- package/src/plugins/glow/constants.js +9 -0
- package/src/plugins/glow/constants.js.map +1 -0
- package/src/plugins/glow/depositFetcher.d.ts +3 -0
- package/src/plugins/glow/depositFetcher.js +69 -0
- package/src/plugins/glow/depositFetcher.js.map +1 -0
- package/src/plugins/glow/index.d.ts +4 -0
- package/src/plugins/glow/index.js +11 -0
- package/src/plugins/glow/index.js.map +1 -0
- package/src/plugins/glow/poolsJob.d.ts +3 -0
- package/src/plugins/glow/poolsJob.js +41 -0
- package/src/plugins/glow/poolsJob.js.map +1 -0
- package/src/plugins/glow/structs.d.ts +67 -0
- package/src/plugins/glow/structs.js +66 -0
- package/src/plugins/glow/structs.js.map +1 -0
- package/src/plugins/glow/types.d.ts +6 -0
- package/src/plugins/glow/types.js +3 -0
- package/src/plugins/glow/types.js.map +1 -0
- package/src/plugins/jupiter/constants.d.ts +1 -0
- package/src/plugins/jupiter/constants.js +2 -1
- package/src/plugins/jupiter/constants.js.map +1 -1
- package/src/plugins/jupiter/index.js +2 -1
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/jupiter/pricingJob.js +9 -9
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/jupiter/verifiedJob.d.ts +3 -0
- package/src/plugins/jupiter/verifiedJob.js +34 -0
- package/src/plugins/jupiter/verifiedJob.js.map +1 -0
- package/src/plugins/meteora/index.js +2 -2
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -8,13 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
12
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
13
|
const web3_js_1 = require("@solana/web3.js");
|
17
|
-
const axios_1 = __importDefault(require("axios"));
|
18
14
|
const constants_1 = require("./exchange/constants");
|
19
15
|
const helpers_1 = require("./helpers");
|
20
16
|
const getMultipleDecimalsAsMap_1 = require("../../utils/solana/getMultipleDecimalsAsMap");
|
@@ -48,12 +44,19 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
48
44
|
const connection = (0, clients_1.getClientSolana)();
|
49
45
|
const [solSources, verifiedTokens, sanctumMints] = yield Promise.all([
|
50
46
|
(0, helpers_1.getJupiterPrices)([new web3_js_1.PublicKey(vsToken)], new web3_js_1.PublicKey(solana_1.usdcSolanaMint)),
|
51
|
-
|
47
|
+
cache.getItem(constants_2.verifiedTokensCacheKey, {
|
48
|
+
prefix: constants_1.platformId,
|
49
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
50
|
+
}),
|
52
51
|
cache.getItem(constants_3.lstsKey, {
|
53
52
|
prefix: constants_3.platformId,
|
54
53
|
networkId: portfolio_core_1.NetworkId.solana,
|
55
54
|
}),
|
56
55
|
]);
|
56
|
+
if (!verifiedTokens)
|
57
|
+
console.warn('Jupiter Verified Tokens not in cache');
|
58
|
+
if (!sanctumMints)
|
59
|
+
console.warn('Sanctums tokens not in cache');
|
57
60
|
const solPrice = solSources.get(vsToken);
|
58
61
|
if (!solPrice)
|
59
62
|
return;
|
@@ -62,10 +65,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
62
65
|
...(sanctumMints || []).map((a) => new web3_js_1.PublicKey(a)),
|
63
66
|
]);
|
64
67
|
const decimalsMap = yield (0, getMultipleDecimalsAsMap_1.getMultipleDecimalsAsMap)(connection, [...mintsPk]);
|
65
|
-
verifiedTokens.
|
66
|
-
.sort((a, b) => b.daily_volume - a.daily_volume)
|
67
|
-
.slice(0, 250)
|
68
|
-
.forEach((token) => {
|
68
|
+
(verifiedTokens || []).forEach((token) => {
|
69
69
|
mintsPk.add(new web3_js_1.PublicKey(token.address));
|
70
70
|
decimalsMap.set(token.address, Number(token.decimals));
|
71
71
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAMoC;AACpC,6CAA4C;AAG5C,oDAAkD;AAClD,uCAA6C;AAC7C,0FAAuF;AACvF,iDAAsD;AACtD,+CAAoD;AAEpD,2CAAqD;AACrD,oDAAgF;AAEhF,MAAM,KAAK,GAAG;IACZ,6CAA6C,EAAE,YAAY;IAC3D,8CAA8C,EAAE,yCAAyC;IACzF,6CAA6C,EAAE,wCAAwC;IACvF,8CAA8C,EAAE,0CAA0C;IAC1F,8CAA8C,EAAE,iCAAiC;IACjF,6CAA6C,EAAE,iCAAiC;IAChF,8CAA8C,EAAE,oBAAoB;IACpE,8CAA8C,EAAE,QAAQ;IACxD,8CAA8C,EAAE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YAClC,UAAU,EAAE,uCAAsB;YAClC,MAAM,EAAE,CAAC;SACV,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,MAAM,EAAE,CAAC,UAAU,CAAC;CACrB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
17
|
+
const constants_1 = require("./exchange/constants");
|
18
|
+
const constants_2 = require("./constants");
|
19
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
|
+
const verifiedTokens = yield axios_1.default.get(`https://tokens.jup.ag/tokens?tags=verified&${constants_2.jupApiParams !== null && constants_2.jupApiParams !== void 0 ? constants_2.jupApiParams : ''}`);
|
21
|
+
yield cache.setItem(constants_2.verifiedTokensCacheKey, verifiedTokens.data
|
22
|
+
.sort((a, b) => b.daily_volume - a.daily_volume)
|
23
|
+
.slice(0, 1000), {
|
24
|
+
prefix: constants_1.platformId,
|
25
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
26
|
+
});
|
27
|
+
});
|
28
|
+
const job = {
|
29
|
+
id: `${constants_1.platformId}-verified`,
|
30
|
+
executor,
|
31
|
+
labels: ['normal'],
|
32
|
+
};
|
33
|
+
exports.default = job;
|
34
|
+
//# sourceMappingURL=verifiedJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"verifiedJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/verifiedJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAG1B,oDAAkD;AAElD,2CAAmE;AAEnE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,cAAc,GAAG,MAAM,eAAK,CAAC,GAAG,CACpC,8CAA8C,wBAAY,aAAZ,wBAAY,cAAZ,wBAAY,GAAI,EAAE,EAAE,CACnE,CAAC;IAEF,MAAM,KAAK,CAAC,OAAO,CACjB,kCAAsB,EACtB,cAAc,CAAC,IAAI;SAChB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;SAC/C,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,EACjB;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;AACJ,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -16,13 +16,13 @@ const stakeForFeeFetcher_1 = __importDefault(require("./stake2earn/stakeForFeeFe
|
|
16
16
|
const stakeForFeeVaultsJob_1 = __importDefault(require("./stake2earn/stakeForFeeVaultsJob"));
|
17
17
|
const cpammV2Job_1 = __importDefault(require("./cpamm/cpammV2Job"));
|
18
18
|
const cpammPositionsFetcher_1 = __importDefault(require("./cpamm/cpammPositionsFetcher"));
|
19
|
-
|
19
|
+
const dlmmJob_1 = __importDefault(require("./dlmm/dlmmJob"));
|
20
20
|
exports.jobs = [
|
21
21
|
vaultsJob_1.default,
|
22
22
|
poolsJob_1.default,
|
23
23
|
farmsJob_1.default,
|
24
24
|
multiTokenPoolsJob_1.default,
|
25
|
-
|
25
|
+
dlmmJob_1.default,
|
26
26
|
dlmmVaultsJob_1.default,
|
27
27
|
stakeForFeeVaultsJob_1.default,
|
28
28
|
cpammV2Job_1.default,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,gEAAwC;AACxC,8FAAsE;AACtE,gEAAwC;AACxC,yEAAiD;AAGjD,wEAAgD;AAChD,uFAA8D;AAC9D,iFAAyD;AACzD,yFAAiE;AACjE,6FAAqE;AACrE,oEAA2C;AAC3C,0FAAiE;AACjE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,gEAAwC;AACxC,8FAAsE;AACtE,gEAAwC;AACxC,yEAAiD;AAGjD,wEAAgD;AAChD,uFAA8D;AAC9D,iFAAyD;AACzD,yFAAiE;AACjE,6FAAqE;AACrE,oEAA2C;AAC3C,0FAAiE;AACjE,6DAAqC;AAExB,QAAA,IAAI,GAAU;IACzB,mBAAS;IACT,kBAAQ;IACR,kBAAQ;IACR,4BAAkB;IAClB,iBAAO;IACP,uBAAa;IACb,8BAAoB;IACpB,oBAAS;CACV,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,sBAAY;IACZ,8BAAmB;IACnB,2BAAiB;IACjB,4BAAkB;IAClB,+BAAoB;CACrB,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;
|
@@ -40,20 +40,20 @@ const clients_1 = require("../../utils/clients");
|
|
40
40
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
41
41
|
const helpers_1 = require("./helpers");
|
42
42
|
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
45
|
-
getAirdropFinalFrontend(authority: $authority) {
|
46
|
-
authority
|
47
|
-
community_allocation
|
48
|
-
eligibility
|
49
|
-
main_allocation
|
50
|
-
og_allocation
|
51
|
-
s1_allocation
|
52
|
-
s2_allocation
|
53
|
-
total_allocation
|
54
|
-
__typename
|
55
|
-
}
|
56
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
45
|
+
getAirdropFinalFrontend(authority: $authority) {
|
46
|
+
authority
|
47
|
+
community_allocation
|
48
|
+
eligibility
|
49
|
+
main_allocation
|
50
|
+
og_allocation
|
51
|
+
s1_allocation
|
52
|
+
s2_allocation
|
53
|
+
total_allocation
|
54
|
+
__typename
|
55
|
+
}
|
56
|
+
}
|
57
57
|
`;
|
58
58
|
const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
59
59
|
const res = yield (0, graphql_request_1.default)(constants_1.graphqlApi, query, {
|
@@ -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;
|