@sonarwatch/portfolio-plugins 0.11.155 → 0.11.156
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1347 -1343
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/meteora/index.js +2 -1
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/meteora/multiTokenPools.json +139 -0
- package/src/plugins/meteora/multiTokenPoolsJob.d.ts +3 -0
- package/src/plugins/meteora/multiTokenPoolsJob.js +76 -0
- package/src/plugins/meteora/multiTokenPoolsJob.js.map +1 -0
- package/src/plugins/meteora/poolsJob.js +8 -86
- package/src/plugins/meteora/poolsJob.js.map +1 -1
- package/src/plugins/meteora/vaultsJob.js +7 -8
- package/src/plugins/meteora/vaultsJob.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tulip/lendingTokensJob.js +1 -9
- package/src/plugins/tulip/lendingTokensJob.js.map +1 -1
- package/src/plugins/tulip/strategyTokensJob.js +1 -9
- package/src/plugins/tulip/strategyTokensJob.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/uxd/constants.d.ts +9 -0
- package/src/plugins/uxd/constants.js +22 -0
- package/src/plugins/uxd/constants.js.map +1 -0
- package/src/plugins/uxd/filters.d.ts +6 -0
- package/src/plugins/uxd/filters.js +13 -0
- package/src/plugins/uxd/filters.js.map +1 -0
- package/src/plugins/uxd/index.d.ts +6 -0
- package/src/plugins/uxd/index.js +12 -0
- package/src/plugins/uxd/index.js.map +1 -0
- package/src/plugins/uxd/stakingFetcher.d.ts +3 -0
- package/src/plugins/uxd/stakingFetcher.js +60 -0
- package/src/plugins/uxd/stakingFetcher.js.map +1 -0
- package/src/plugins/uxd/structs.d.ts +16 -0
- package/src/plugins/uxd/structs.js +17 -0
- package/src/plugins/uxd/structs.js.map +1 -0
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/plugins/meteora/pools.d.ts +0 -5
- package/src/plugins/meteora/pools.js +0 -143
- package/src/plugins/meteora/pools.js.map +0 -1
@@ -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;
|
@@ -18,7 +18,6 @@ const solana_1 = require("../../utils/solana");
|
|
18
18
|
const constants_1 = require("./constants");
|
19
19
|
const structs_1 = require("./structs");
|
20
20
|
const constants_2 = require("../solend/constants");
|
21
|
-
const constants_3 = require("../tokens/constants");
|
22
21
|
const getLpTokenSource_1 = __importDefault(require("../../utils/misc/getLpTokenSource"));
|
23
22
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
23
|
const client = (0, clients_1.getClientSolana)();
|
@@ -43,12 +42,6 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
42
|
const mintAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.mintAccountStruct, collatMint);
|
44
43
|
const mintAccountById = new Map();
|
45
44
|
mintAccounts.forEach((mA) => mA ? mintAccountById.set(mA.pubkey.toString(), mA) : undefined);
|
46
|
-
const tokensDetails = yield cache.getItems(Array.from(mints), {
|
47
|
-
prefix: constants_3.tokenListsDetailsPrefix,
|
48
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
49
|
-
});
|
50
|
-
const tokensDetailsById = new Map();
|
51
|
-
tokensDetails.forEach((tD) => tD ? tokensDetailsById.set(tD.address, tD) : undefined);
|
52
45
|
const promises = [];
|
53
46
|
for (let i = 0; i < lendingReserves.length; i += 1) {
|
54
47
|
const reserve = lendingReserves[i];
|
@@ -77,14 +70,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
70
|
const { supply, decimals } = mintAccount;
|
78
71
|
if (supply.isZero())
|
79
72
|
continue;
|
80
|
-
const tokenDetails = tokensDetailsById.get(mint);
|
81
73
|
const lpTokenSource = (0, getLpTokenSource_1.default)(portfolio_core_1.NetworkId.solana, lpMint, constants_1.platformId, {
|
82
74
|
address: lpMint.toString(),
|
83
75
|
decimals,
|
84
76
|
supply: supply.dividedBy(Math.pow(10, decimals)).toNumber(),
|
85
77
|
}, [
|
86
78
|
Object.assign(Object.assign({}, tokenPrice), { reserveAmount: totalSupply }),
|
87
|
-
]
|
79
|
+
]);
|
88
80
|
promises.push(cache.setTokenPriceSource(lpTokenSource));
|
89
81
|
}
|
90
82
|
yield Promise.all(promises);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lendingTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/lendingTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"lendingTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/lendingTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AAIvD,iDAAsD;AACtD,+CAK4B;AAC5B,2CAAgE;AAChE,uCAAiD;AACjD,mDAAkD;AAClD,yFAAiE;AAEjE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,iCAAqB,EACrB;QACE;YACE,QAAQ,EAAE,GAAG;SACd;KACF,CACF,CAAC;IAEF,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,MAAM,UAAU,GAAgB,EAAE,CAAC;IACnC,eAAe,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAClC,IACE,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE;YACvC,kCAAkC,EAClC,CAAC;YACD,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,IACE,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE;YAC3C,kCAAkC,EAClC,CAAC;YACD,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QACpD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,KAAK,CAAC,IAAI,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|
const solana_1 = require("../../utils/solana");
|
18
18
|
const constants_1 = require("./constants");
|
19
19
|
const structs_1 = require("./structs");
|
20
|
-
const constants_2 = require("../tokens/constants");
|
21
20
|
const getLpTokenSource_1 = __importDefault(require("../../utils/misc/getLpTokenSource"));
|
22
21
|
const filters_1 = require("./filters");
|
23
22
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -42,12 +41,6 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
41
|
const mintAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.mintAccountStruct, collatMint);
|
43
42
|
const mintAccountById = new Map();
|
44
43
|
mintAccounts.forEach((mA) => mA ? mintAccountById.set(mA.pubkey.toString(), mA) : undefined);
|
45
|
-
const tokensDetails = yield cache.getItems(Array.from(mints), {
|
46
|
-
prefix: constants_2.tokenListsDetailsPrefix,
|
47
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
48
|
-
});
|
49
|
-
const tokensDetailsById = new Map();
|
50
|
-
tokensDetails.forEach((tD) => tD ? tokensDetailsById.set(tD.address, tD) : undefined);
|
51
44
|
for (let i = 0; i < strategyVaults.length; i += 1) {
|
52
45
|
const strategyVault = strategyVaults[i];
|
53
46
|
const mint = strategyVault.base.underlyingMint.toString();
|
@@ -62,14 +55,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
62
55
|
const { supply, decimals } = mintAccount;
|
63
56
|
if (supply.isZero())
|
64
57
|
continue;
|
65
|
-
const tokenDetails = tokensDetailsById.get(mint);
|
66
58
|
const lpTokenSource = (0, getLpTokenSource_1.default)(portfolio_core_1.NetworkId.solana, lpMint, constants_1.platformId, {
|
67
59
|
address: lpMint.toString(),
|
68
60
|
decimals,
|
69
61
|
supply: supply.dividedBy(Math.pow(10, decimals)).toNumber(),
|
70
62
|
}, [
|
71
63
|
Object.assign(Object.assign({}, tokenPrice), { reserveAmount: stakedAmount.toNumber() }),
|
72
|
-
]
|
64
|
+
]);
|
73
65
|
promises.push(cache.setTokenPriceSource(lpTokenSource));
|
74
66
|
}
|
75
67
|
yield Promise.all(promises);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"strategyTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/strategyTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"strategyTokensJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/strategyTokensJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AAIvD,iDAAsD;AACtD,+CAK4B;AAC5B,2CAAsE;AACtE,uCAA0D;AAC1D,yFAAiE;AACjE,uCAAkD;AAElD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAwB,EACnD,MAAM,EACN,uCAA6B,EAC7B,4BAAgB,EAChB,+BAAqB,CACtB,CAAC;IAEF,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,QAAQ,CAAC,IAAI,CACX,KAAK,CAAC,OAAO,CAAC,qBAAS,EAAE,cAAc,EAAE;QACvC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CACH,CAAC;IAEF,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,MAAM,UAAU,GAAgB,EAAE,CAAC;IACnC,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;QAC5B,IACE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,kCAAkC,EACxE,CAAC;YACD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,EAAE,C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eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3B,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;QACzC,IAAI,MAAM,CAAC,MAAM,EAAE;YAAE,SAAS;QAE9B,MAAM,aAAa,GAAG,IAAA,0BAAgB,EACpC,0BAAS,CAAC,MAAM,EAChB,MAAM,EACN,sBAAU,EACV;YACE,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE;YAC1B,QAAQ;YACR,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE;SACpD,EACD;4CAEO,UAAU,KACb,aAAa,EAAE,YAAY,CAAC,QAAQ,EAAE;SAEzC,CACF,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,kBAAkB;IACnC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -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;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
export declare const platformId = "uxd";
|
5
|
+
export declare const platform: Platform;
|
6
|
+
export declare const stakingProgramId: PublicKey;
|
7
|
+
export declare const uxpMint = "UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M";
|
8
|
+
export declare const uxpDecimal = 9;
|
9
|
+
export declare const uxpFactor: BigNumber;
|
@@ -0,0 +1,22 @@
|
|
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.uxpFactor = exports.uxpDecimal = exports.uxpMint = exports.stakingProgramId = exports.platform = exports.platformId = void 0;
|
7
|
+
const web3_js_1 = require("@solana/web3.js");
|
8
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
9
|
+
exports.platformId = 'uxd';
|
10
|
+
exports.platform = {
|
11
|
+
id: exports.platformId,
|
12
|
+
name: 'UXD',
|
13
|
+
image: 'https://sonar.watch/img/platforms/uxd.webp',
|
14
|
+
defiLlamaId: 'uxd', // from https://defillama.com/docs/api
|
15
|
+
website: 'https://uxd.fi/',
|
16
|
+
twitter: 'https://twitter.com/UXDProtocol',
|
17
|
+
};
|
18
|
+
exports.stakingProgramId = new web3_js_1.PublicKey('UXDSkps5NR8Lu1HB5uPLFfuB34hZ6DCk7RhYZZtGzbF');
|
19
|
+
exports.uxpMint = 'UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M';
|
20
|
+
exports.uxpDecimal = 9;
|
21
|
+
exports.uxpFactor = new bignumber_js_1.default(Math.pow(10, exports.uxpDecimal));
|
22
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAE5C,gEAAqC;AAExB,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,KAAK,EAAE,sCAAsC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,CAAC,CAAC;AACf,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,kBAAU,CAAA,CAAC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.stakingAccountFilters = void 0;
|
4
|
+
const stakingAccountFilters = (address) => [
|
5
|
+
{
|
6
|
+
memcmp: {
|
7
|
+
offset: 10,
|
8
|
+
bytes: address,
|
9
|
+
},
|
10
|
+
},
|
11
|
+
];
|
12
|
+
exports.stakingAccountFilters = stakingAccountFilters;
|
13
|
+
//# sourceMappingURL=filters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/filters.ts"],"names":[],"mappings":";;;AAAO,MAAM,qBAAqB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACxD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AAPW,QAAA,qBAAqB,yBAOhC"}
|
@@ -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/uxd/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AAEvC,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,60 @@
|
|
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 constants_1 = require("./constants");
|
17
|
+
const clients_1 = require("../../utils/clients");
|
18
|
+
const structs_1 = require("./structs");
|
19
|
+
const filters_1 = require("./filters");
|
20
|
+
const solana_1 = require("../../utils/solana");
|
21
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const networkId = portfolio_core_1.NetworkId.solana;
|
23
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
+
const client = (0, clients_1.getClientSolana)();
|
25
|
+
const stakingAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.stakingAccountStruct, constants_1.stakingProgramId, (0, filters_1.stakingAccountFilters)(owner));
|
26
|
+
if (stakingAccounts.length === 0)
|
27
|
+
return [];
|
28
|
+
const tokenPrice = yield cache.getTokenPrice(constants_1.uxpMint, networkId);
|
29
|
+
const assets = [];
|
30
|
+
stakingAccounts.forEach((stakingAccount) => {
|
31
|
+
const amount = stakingAccount.stakedAmount
|
32
|
+
.plus(stakingAccount.rewardAmount)
|
33
|
+
.div(constants_1.uxpFactor);
|
34
|
+
if (!amount.isZero())
|
35
|
+
return;
|
36
|
+
const lockedUntil = stakingAccount.stakeEndTs.times(1000).toNumber();
|
37
|
+
assets.push(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.uxpMint, amount.toNumber(), networkId, tokenPrice, tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price, {
|
38
|
+
lockedUntil,
|
39
|
+
})));
|
40
|
+
});
|
41
|
+
if (assets.length === 0)
|
42
|
+
return [];
|
43
|
+
return [
|
44
|
+
{
|
45
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
46
|
+
label: 'Staked',
|
47
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
48
|
+
platformId: constants_1.platformId,
|
49
|
+
data: { assets },
|
50
|
+
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
51
|
+
},
|
52
|
+
];
|
53
|
+
});
|
54
|
+
const fetcher = {
|
55
|
+
id: `${constants_1.platformId}-staking`,
|
56
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
57
|
+
executor,
|
58
|
+
};
|
59
|
+
exports.default = fetcher;
|
60
|
+
//# sourceMappingURL=stakingFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAA+E;AAC/E,iDAAsD;AACtD,uCAAiD;AACjD,uCAAkD;AAClD,+CAA8D;AAC9D,qGAA6E;AAE7E,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,eAAe,GAAG,MAAM,IAAA,iC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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,16 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
5
|
+
type StakingAccount = {
|
6
|
+
padding: Buffer;
|
7
|
+
bump: number;
|
8
|
+
isInitialized: boolean;
|
9
|
+
user: PublicKey;
|
10
|
+
stakingOptionIdentifier: number;
|
11
|
+
stakeEndTs: BigNumber;
|
12
|
+
stakedAmount: BigNumber;
|
13
|
+
rewardAmount: BigNumber;
|
14
|
+
};
|
15
|
+
export declare const stakingAccountStruct: BeetStruct<StakingAccount, Partial<StakingAccount>>;
|
16
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.stakingAccountStruct = 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.stakingAccountStruct = new beet_1.BeetStruct([
|
8
|
+
['padding', (0, solana_1.blob)(8)],
|
9
|
+
['bump', beet_1.u8],
|
10
|
+
['isInitialized', beet_1.bool],
|
11
|
+
['user', beet_solana_1.publicKey],
|
12
|
+
['stakingOptionIdentifier', beet_1.u8],
|
13
|
+
['stakeEndTs', solana_1.u64],
|
14
|
+
['stakedAmount', solana_1.u64],
|
15
|
+
['rewardAmount', solana_1.u64],
|
16
|
+
], (args) => args, 'UXD staking');
|
17
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/structs.ts"],"names":[],"mappings":";;;AAEA,oDAAiE;AACjE,kEAA6D;AAC7D,+CAA+C;AAalC,QAAA,oBAAoB,GAAG,IAAI,iBAAU,CAChD;IACE,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACpB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,eAAe,EAAE,WAAI,CAAC;IACvB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,yBAAyB,EAAE,SAAE,CAAC;IAC/B,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAsB,EAChC,aAAa,CACd,CAAC"}
|
@@ -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;
|
@@ -1,143 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.pools = void 0;
|
4
|
-
exports.pools = [
|
5
|
-
{
|
6
|
-
symbol: 'PAI-3Pool',
|
7
|
-
address: '9s6dXtMgV5E6v3rHqBF2LejHcA2GWoZb7xNUkgXgsBqt',
|
8
|
-
reserveAccounts: [
|
9
|
-
'J7xkQZ4eCsyHR7XDMcGbHeiFZo6vXPmQC2Va8aqo8jLx',
|
10
|
-
'bqPxs71QGXNW2SXEvjAaBgLzjhSZfQpmhcVBYoisBo6',
|
11
|
-
'EpehbDhGq8xEc3Yy5nJ2dgY2zWRHaRsbUiMTgh36N8J7',
|
12
|
-
],
|
13
|
-
},
|
14
|
-
{
|
15
|
-
symbol: 'UST-3Pool', // Not active anymore
|
16
|
-
address: '57h4LEnBooHrKbacYWGCFghmrTzYPVn8PwZkzTzRLvHa',
|
17
|
-
reserveAccounts: [
|
18
|
-
'Go93HBNLMK6QnSHyZTViAoti9GCmSRhkeZMiVoJmcrud',
|
19
|
-
'2uZVPMdS8VFwMEZjZNzP1f78m1zaqvT3R2JwMs1w9fU3',
|
20
|
-
'5nazSj6MfaEeuAoQezMG3raWuZiyFjE7fmURUgDeP8cF',
|
21
|
-
],
|
22
|
-
},
|
23
|
-
{
|
24
|
-
symbol: 'pSOL-SOL',
|
25
|
-
address: 'GHhDU9Y7HM37v6cQyaie1A3aZdfpCDp6ScJ5zZn2c3uk',
|
26
|
-
reserveAccounts: [
|
27
|
-
'9odMAiRbk5aDEbFWeYrsLZAS54C7XdBUv63t4oMRcWkM',
|
28
|
-
'9AnyD3bAeTsFvFPjYj12FMaDERBHX3vNKuuHJqZsKH6D',
|
29
|
-
],
|
30
|
-
},
|
31
|
-
{
|
32
|
-
symbol: 'wUSD-4Pool',
|
33
|
-
address: 'DSmqf5Je3FEUmZntxBzG7c7EYJN3WK3feBV5Zgidukjj',
|
34
|
-
reserveAccounts: [
|
35
|
-
'54q2ct7kTknGvADuHSXjtnKqMbmNQ4xpDVK2xgcnh1xv',
|
36
|
-
'5cvqiPREvEYmhvBt3cZ7fmrCE6tbYvwkAiuvf1pHUPBq',
|
37
|
-
'9gVstb8HkuYX8PqjLSc9b9zLMhFZwWX7k3ofLcWy7wyS',
|
38
|
-
'HLdcfovcXkHKm4iQWNQZhJypySmuGa1PGoTuB6L68hhZ',
|
39
|
-
],
|
40
|
-
},
|
41
|
-
{
|
42
|
-
symbol: 'stSOL-2Pool',
|
43
|
-
address: '4q19vhpG6y4ZeMPLQiUNNaJStb8XivCFQy4m4mdnVnQZ',
|
44
|
-
reserveAccounts: [
|
45
|
-
'9gizzFG33czvcTzn5N4V23uunV6YR55UNW8ow6qNPoX3',
|
46
|
-
'FqLtqRJvoVNYU5Xpcgp5FNPv8cXCZw7CiNddjQ4nqkRo',
|
47
|
-
],
|
48
|
-
},
|
49
|
-
{
|
50
|
-
symbol: 'mSOL-2Pool',
|
51
|
-
address: '7HqhfUqig7kekN8FbJCtQ36VgdXKriZWQ62rTve9ZmQ',
|
52
|
-
reserveAccounts: [
|
53
|
-
'EWy2hPdVT4uGrYokx65nAyn2GFBv7bUYA2pFPY96pw7Y',
|
54
|
-
'GM48qFn8rnqhyNMrBHyPJgUVwXQ1JvMbcu3b9zkThW9L',
|
55
|
-
],
|
56
|
-
},
|
57
|
-
{
|
58
|
-
symbol: 'wbBUSD-4Pool',
|
59
|
-
address: 'FcjViE1oVbXFza5ry9Q7WZ9XNd95zu1LqEiSUdeJMPTP',
|
60
|
-
reserveAccounts: [
|
61
|
-
'2FRWh8BZfpeuh8Pmg7ezHvBezW8yiEGG6Fy8pCnHVyq1',
|
62
|
-
'8m5D8rtDdP67qZyZTXwLozVCsXJMcSiXnroWoRn9GZga',
|
63
|
-
'3CF2cmVJxnWKt4J4u5tzsNSYVcSvmWqbbb4iJMEmzSRr',
|
64
|
-
'5Nn1Fm15FqjD5DbMFBQ93Rrwppzei5GghENMmJt5qRpR',
|
65
|
-
],
|
66
|
-
},
|
67
|
-
{
|
68
|
-
symbol: 'UXD-3Pool',
|
69
|
-
address: 'HG2UzJS8rbgsd16tZorT1mNiPJBjE7Xq4ifqsfZNK6h6',
|
70
|
-
reserveAccounts: [
|
71
|
-
'BLcaKjTnX3ggFMxhUeiZz32mpgiLeKYV2QWQ72JxgjdV',
|
72
|
-
'GgstY3wF2avMfPd7pAgVWUXaHaPFDkvyjMkTTsPNqmwE',
|
73
|
-
'BZRKweQTuVGWKZAL6Qrtgi1HPkuqzKxnJWLLJrqSm8Xs',
|
74
|
-
],
|
75
|
-
},
|
76
|
-
{
|
77
|
-
symbol: 'USTv2-3Pool', // Not active anymore
|
78
|
-
address: 'DJjevoCBomzgNe76pNDd8stAcMS4x7Y99giuNpqGLa2f',
|
79
|
-
reserveAccounts: [
|
80
|
-
'65sR8agQm768HYCjktunDJG3bbQszi7U8VD4pAKEYiXW',
|
81
|
-
'G5Q7dTUPYw5pEXbfzZbAFSaPstP9bdFmEJ7XXcyrkxVJ',
|
82
|
-
'EZd87x1Fu1ufV7pVRuXAEcL9y6aEMWWqtpcr7AHdU8ms',
|
83
|
-
],
|
84
|
-
},
|
85
|
-
{
|
86
|
-
symbol: 'USDH-3Pool',
|
87
|
-
address: 'HcpqAC3QTAZ1h3BuRCXtRfaUwFxjMCneuoqwAni4c2qm',
|
88
|
-
reserveAccounts: [
|
89
|
-
'3bFWy2hz9yGxvbgoRmzjUqkoYbCTWUDu7sZPHUYV39Pf',
|
90
|
-
'49gyyvxzf61PknHoTg2cFGYQCJRnUrC7Web8h8go7ceM',
|
91
|
-
'92P9U8L43ZCAKfdZxJaBAwmbb3MazdoVgrCm7R3xRnhn',
|
92
|
-
],
|
93
|
-
},
|
94
|
-
{
|
95
|
-
symbol: 'aUSDC-4Pool',
|
96
|
-
address: '5ZDQYA8LN5tooABpPFCrDwx5wcaTgXMragLwFim27mar',
|
97
|
-
reserveAccounts: [
|
98
|
-
'66guLcMF3qXkrMyLqDfuNKcHc7B6B36id9ZDDww4hiMv',
|
99
|
-
'8KX8TLQHfq9UyqNvzUrUCLiECNBdMspMmU8mghdM2SAM',
|
100
|
-
'2vhaJumb3hbRLUSDDy3Qk8KGGfzqThdwo8ai4tAvztGh',
|
101
|
-
'CC3FtDKTueNP1pmgtNWvKHZwbznyigSaiGhKsQYAfufD',
|
102
|
-
],
|
103
|
-
},
|
104
|
-
{
|
105
|
-
symbol: 'fUSD-3Pool', // Not active anymore
|
106
|
-
address: 'ALkfYpjMp1Bzn1JHCJkAKm4sU1EQt8RiFfX1ufVawuLV',
|
107
|
-
reserveAccounts: [
|
108
|
-
'3tu1Pac9N8sP8R9zHwmFvU258CPhbRSweVjdb2K2SVjt',
|
109
|
-
'9SbaPafChbA5aCm2ZB52viFVTEb6Mf9VeHxGeJetdHCf',
|
110
|
-
'9AWmAX6AgzVBWYHLRbjbHH5g9XJuoHM1vvaa3HfHxDx3',
|
111
|
-
],
|
112
|
-
},
|
113
|
-
{
|
114
|
-
symbol: 'abBUSD-4Pool',
|
115
|
-
address: 'JAQai7Pd6TP2ca3qowQoRw2Qygrhh7PpoLPAf9jvvgMQ',
|
116
|
-
reserveAccounts: [
|
117
|
-
'FEPtjpdDrEMfUTjCkimXH2e3h8KJTjsZYMLC6FtviTUW',
|
118
|
-
'CRj4DCzp7hDXyNgVhagNJmTmKjtsVLBtPDzjk6JeE2CL',
|
119
|
-
'2hHSmtBb7WzCaNFVun7CCmNq445dyQ9e1Tf66GCQGtjV',
|
120
|
-
'4ZYrDMtLE3HGWjeE9W2L3psZP7SMASnez9rzqmpfnTxa',
|
121
|
-
],
|
122
|
-
},
|
123
|
-
{
|
124
|
-
symbol: 'avaxUSD-3Pool',
|
125
|
-
address: '2jDEKWC4LYcyhxtQ6ZGZzK1Q9NYDrmZcR2EPRoHyx6Vy',
|
126
|
-
reserveAccounts: [
|
127
|
-
'CJNW2xGWHzyfZ2y2up9i11p7ZUm1ARvgfQ9Smzzj9arb',
|
128
|
-
'FaqLJMJNLs1cFULzHFzhmoJd4FJukq9f1HHTHJnvbEyx',
|
129
|
-
'V1pdBYfXxCx1sidPpQ3HoQfoEiHBCnPZe3iPEBSDJBr',
|
130
|
-
],
|
131
|
-
},
|
132
|
-
{
|
133
|
-
symbol: 'aaUSDT-4Pool',
|
134
|
-
address: 'FFM9rneg7pFbedUbuJdrwzje9WfKzJzv7jqcpeUQuGCy',
|
135
|
-
reserveAccounts: [
|
136
|
-
'7AiubbXXefRK3Tw83Y2XGovBwZ691pcdkts2S7zNE43Q',
|
137
|
-
'9UMESFcuCBj8bUw6kGDx8zut1g495Y6TcyATm3ht2kqP',
|
138
|
-
'FznWTeu44sR9WvqVtekzGQn82z7BxErkcpDDDSmvncYY',
|
139
|
-
'Ez1dYUW8FGhrJGHe4e84JTmyZYFwpjwM7GuhSaBth5Xh',
|
140
|
-
],
|
141
|
-
},
|
142
|
-
];
|
143
|
-
//# sourceMappingURL=pools.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/pools.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG;IACnB;QACE,MAAM,EAAE,WAAW;QACnB,OAAO,EAAE,8CAA8C;QACvD,eAAe,EAAE;YACf,8CAA8C;YAC9C,6CAA6C;YAC7C,8CAA8C;SAC/C;KACF;IACD;QACE,MAAM,EAAE,WAAW,EAAE,qBAAqB;QAC1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