@sonarwatch/portfolio-plugins 0.14.52 → 0.14.53
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 +1804 -1800
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/drift-market-maker-vault/constants.js +1 -1
- package/src/plugins/raydium/ammV2ApiJob.js +59 -31
- package/src/plugins/raydium/ammV2ApiJob.js.map +1 -1
- package/src/plugins/raydium/types.d.ts +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
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
@@ -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;
|
@@ -37,7 +37,7 @@ exports.gauntletPlatform = {
|
|
37
37
|
exports.vectisPlatformId = 'vectis';
|
38
38
|
exports.vectisPlatform = {
|
39
39
|
id: exports.vectisPlatformId,
|
40
|
-
name: '
|
40
|
+
name: 'Vectis',
|
41
41
|
image: 'https://sonar.watch/img/platforms/vectis.webp',
|
42
42
|
twitter: 'https://twitter.com/vectis_xyz',
|
43
43
|
website: 'https://app.vectis.finance/',
|
@@ -18,6 +18,7 @@ const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
18
18
|
const constants_1 = require("./constants");
|
19
19
|
const getLpTokenSource_1 = require("../../utils/misc/getLpTokenSource");
|
20
20
|
const computeAndStoreLpPrice_1 = require("../../utils/misc/computeAndStoreLpPrice");
|
21
|
+
const getLpUnderlyingTokenSource_1 = require("../../utils/misc/getLpUnderlyingTokenSource");
|
21
22
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
23
|
let apiRes;
|
23
24
|
let page = 1;
|
@@ -28,7 +29,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
29
|
apiRes = yield axios_1.default
|
29
30
|
.get(`${constants_1.apiV3}pools/info/list`, {
|
30
31
|
params: {
|
31
|
-
poolType: '
|
32
|
+
poolType: 'all',
|
32
33
|
poolSortField: 'liquidity',
|
33
34
|
sortType: 'desc',
|
34
35
|
pageSize: 300,
|
@@ -67,13 +68,15 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
67
68
|
continue;
|
68
69
|
mintA = poolInfo.mintA.address;
|
69
70
|
mintB = poolInfo.mintB.address;
|
70
|
-
|
71
|
-
|
71
|
+
if (poolInfo.lpMint) {
|
72
|
+
lpMint = poolInfo.lpMint.address;
|
73
|
+
lpDecimals = poolInfo.lpMint.decimals;
|
74
|
+
}
|
75
|
+
[decimalsA, decimalsB] = [
|
72
76
|
poolInfo.mintA.decimals,
|
73
77
|
poolInfo.mintB.decimals,
|
74
|
-
poolInfo.lpMint.decimals,
|
75
78
|
];
|
76
|
-
if (!decimalsA || !decimalsB
|
79
|
+
if (!decimalsA || !decimalsB)
|
77
80
|
continue;
|
78
81
|
tokenAmountA = poolInfo.mintAmountA;
|
79
82
|
tokenAmountB = poolInfo.mintAmountB;
|
@@ -81,33 +84,58 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
81
84
|
tokenPriceById.get(mintA),
|
82
85
|
tokenPriceById.get(mintB),
|
83
86
|
];
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
poolUnderlyings: [
|
95
|
-
{
|
96
|
-
address: mintA,
|
97
|
-
decimals: decimalsA,
|
98
|
-
reserveAmount: tokenAmountA,
|
99
|
-
tokenPrice: tokenPriceA,
|
100
|
-
weight: 0.5,
|
87
|
+
if (lpMint && lpDecimals) {
|
88
|
+
tokenPriceSources.push(...(0, getLpTokenSource_1.getLpTokenSource)({
|
89
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
90
|
+
sourceId: lpMint.toString(),
|
91
|
+
platformId: constants_1.platformId,
|
92
|
+
priceUnderlyings: true,
|
93
|
+
lpDetails: {
|
94
|
+
address: lpMint.toString(),
|
95
|
+
decimals: lpDecimals,
|
96
|
+
supply: lpSupply.toNumber(),
|
101
97
|
},
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
98
|
+
poolUnderlyings: [
|
99
|
+
{
|
100
|
+
address: mintA,
|
101
|
+
decimals: decimalsA,
|
102
|
+
reserveAmount: tokenAmountA,
|
103
|
+
tokenPrice: tokenPriceA,
|
104
|
+
weight: 0.5,
|
105
|
+
},
|
106
|
+
{
|
107
|
+
address: mintB,
|
108
|
+
decimals: decimalsB,
|
109
|
+
reserveAmount: tokenAmountB,
|
110
|
+
tokenPrice: tokenPriceB,
|
111
|
+
weight: 0.5,
|
112
|
+
},
|
113
|
+
],
|
114
|
+
}));
|
115
|
+
}
|
116
|
+
else {
|
117
|
+
tokenPriceSources.push(...(0, getLpUnderlyingTokenSource_1.getLpUnderlyingTokenSource)({
|
118
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
119
|
+
sourceId: poolInfo.id,
|
120
|
+
platformId: constants_1.platformId,
|
121
|
+
poolUnderlyings: [
|
122
|
+
{
|
123
|
+
address: mintA,
|
124
|
+
decimals: decimalsA,
|
125
|
+
reserveAmount: tokenAmountA,
|
126
|
+
tokenPrice: tokenPriceA,
|
127
|
+
weight: 0.5,
|
128
|
+
},
|
129
|
+
{
|
130
|
+
address: mintB,
|
131
|
+
decimals: decimalsB,
|
132
|
+
reserveAmount: tokenAmountB,
|
133
|
+
tokenPrice: tokenPriceB,
|
134
|
+
weight: 0.5,
|
135
|
+
},
|
136
|
+
],
|
137
|
+
}));
|
138
|
+
}
|
111
139
|
}
|
112
140
|
yield cache.setTokenPriceSources(tokenPriceSources);
|
113
141
|
page += 1;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ammV2ApiJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/ammV2ApiJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA0B;AAC1B,gEAAq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EAAE,KAAK;4BACd,QAAQ,EAAE,SAAS;4BACnB,aAAa,EAAE,YAAY;4BAC3B,UAAU,EAAE,WAAW;4BACvB,MAAM,EAAE,GAAG;yBACZ;wBACD;4BACE,OAAO,EAAE,KAAK;4BACd,QAAQ,EAAE,SAAS;4BACnB,aAAa,EAAE,YAAY;4BAC3B,UAAU,EAAE,WAAW;4BACvB,MAAM,EAAE,GAAG;yBACZ;qBACF;iBACF,CAAC,CACH,CAAC;YACJ,CAAC;QACH,CAAC;QACD,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;QACpD,IAAI,IAAI,CAAC,CAAC;IACZ,CAAC,QAAQ,QAAQ,CAAC,WAAW,IAAI,yCAAgB,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;AAC/E,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,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;
|
@@ -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;
|