@sonarwatch/portfolio-plugins 0.14.180 → 0.14.181
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 +2362 -2358
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +6 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bio/constants.d.ts +7 -0
- package/src/plugins/bio/constants.js +9 -0
- package/src/plugins/bio/constants.js.map +1 -0
- package/src/plugins/bio/depositFetcher.d.ts +3 -0
- package/src/plugins/bio/depositFetcher.js +85 -0
- package/src/plugins/bio/depositFetcher.js.map +1 -0
- package/src/plugins/bio/helpers.d.ts +4 -0
- package/src/plugins/bio/helpers.js +14 -0
- package/src/plugins/bio/helpers.js.map +1 -0
- package/src/plugins/bio/index.d.ts +4 -0
- package/src/plugins/bio/index.js +11 -0
- package/src/plugins/bio/index.js.map +1 -0
- package/src/plugins/bio/structs.d.ts +61 -0
- package/src/plugins/bio/structs.js +40 -0
- package/src/plugins/bio/structs.js.map +1 -0
- package/src/plugins/bio/tokenStatsJob.d.ts +3 -0
- package/src/plugins/bio/tokenStatsJob.js +33 -0
- package/src/plugins/bio/tokenStatsJob.js.map +1 -0
- package/src/plugins/cropper/index.js +2 -1
- package/src/plugins/cropper/index.js.map +1 -1
- package/src/plugins/cropper/stakingFetcher.js +5 -6
- package/src/plugins/cropper/stakingFetcher.js.map +1 -1
- package/src/plugins/debridge/airdropFetcher.js +6 -14
- package/src/plugins/debridge/airdropFetcher.js.map +1 -1
- package/src/plugins/debridge/dlmmVaultsFetcher.js +15 -6
- package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/debridge/helpers.d.ts +5 -0
- package/src/plugins/debridge/helpers.js +18 -0
- package/src/plugins/debridge/helpers.js.map +1 -0
- package/src/plugins/huma/constants.d.ts +3 -0
- package/src/plugins/huma/constants.js +7 -0
- package/src/plugins/huma/constants.js.map +1 -0
- package/src/plugins/huma/index.d.ts +4 -0
- package/src/plugins/huma/index.js +10 -0
- package/src/plugins/huma/index.js.map +1 -0
- package/src/plugins/huma/mpstPricingJob.d.ts +3 -0
- package/src/plugins/huma/mpstPricingJob.js +36 -0
- package/src/plugins/huma/mpstPricingJob.js.map +1 -0
- package/src/plugins/oresupply/boostJob.d.ts +3 -0
- package/src/plugins/oresupply/boostJob.js +34 -0
- package/src/plugins/oresupply/boostJob.js.map +1 -0
- package/src/plugins/oresupply/constants.d.ts +6 -0
- package/src/plugins/oresupply/constants.js +8 -0
- package/src/plugins/oresupply/constants.js.map +1 -0
- package/src/plugins/oresupply/helpers.d.ts +4 -0
- package/src/plugins/oresupply/helpers.js +14 -0
- package/src/plugins/oresupply/helpers.js.map +1 -0
- package/src/plugins/oresupply/index.d.ts +4 -0
- package/src/plugins/oresupply/index.js +11 -0
- package/src/plugins/oresupply/index.js.map +1 -0
- package/src/plugins/oresupply/stakeFetcher.d.ts +3 -0
- package/src/plugins/oresupply/stakeFetcher.js +69 -0
- package/src/plugins/oresupply/stakeFetcher.js.map +1 -0
- package/src/plugins/oresupply/structs.d.ts +52 -0
- package/src/plugins/oresupply/structs.js +42 -0
- package/src/plugins/oresupply/structs.js.map +1 -0
- package/src/plugins/solayer/airdropFetcher.js +13 -9
- package/src/plugins/solayer/airdropFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/switchboard/onDemandPricingJob.js +6 -0
- package/src/plugins/switchboard/onDemandPricingJob.js.map +1 -1
- package/src/plugins/texture/loansFetcher.js +7 -3
- package/src/plugins/texture/loansFetcher.js.map +1 -1
- 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
@@ -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;
|