@sonarwatch/portfolio-plugins 0.14.177 → 0.14.180
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 +2354 -2342
- package/README.md +3 -3
- package/package.json +1 -1
- 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/banx/stakingFetcher.js +10 -14
- package/src/plugins/banx/stakingFetcher.js.map +1 -1
- package/src/plugins/bonfida/constants.d.ts +1 -1
- package/src/plugins/bonfida/constants.js +1 -1
- package/src/plugins/bonfida/constants.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +1 -0
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/hylo/constants.d.ts +2 -0
- package/src/plugins/hylo/constants.js +6 -0
- package/src/plugins/hylo/constants.js.map +1 -0
- package/src/plugins/hylo/index.d.ts +4 -0
- package/src/plugins/hylo/index.js +10 -0
- package/src/plugins/hylo/index.js.map +1 -0
- package/src/plugins/hylo/marketsJob.js +94 -0
- package/src/plugins/hylo/marketsJob.js.map +1 -0
- package/src/plugins/hylo/structs.d.ts +47 -0
- package/src/plugins/hylo/structs.js +47 -0
- package/src/plugins/hylo/structs.js.map +1 -0
- package/src/plugins/mango/collateralFetcher.js +1 -0
- package/src/plugins/mango/collateralFetcher.js.map +1 -1
- package/src/plugins/metaplex/resizableNftFetcher.js +3 -0
- package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
- package/src/plugins/nxfinance/constants.js +1 -1
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +5 -5
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/nxfinance/stakingFetcher.js +1 -1
- package/src/plugins/nxfinance/stakingFetcher.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +19 -32
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/port/obligationsFetcher.js +1 -0
- package/src/plugins/port/obligationsFetcher.js.map +1 -1
- package/src/plugins/streamflow/stakingFetcher.js +1 -1
- package/src/plugins/streamflow/stakingFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/texture/constants.d.ts +5 -1
- package/src/plugins/texture/constants.js +10 -2
- package/src/plugins/texture/constants.js.map +1 -1
- package/src/plugins/texture/helpers.d.ts +1 -0
- package/src/plugins/texture/helpers.js +33 -0
- package/src/plugins/texture/helpers.js.map +1 -0
- package/src/plugins/texture/index.js +7 -10
- package/src/plugins/texture/index.js.map +1 -1
- package/src/plugins/texture/loansFetcher.js +71 -42
- package/src/plugins/texture/loansFetcher.js.map +1 -1
- package/src/plugins/texture/pairsJob.d.ts +3 -0
- package/src/plugins/texture/{marketsJob.js → pairsJob.js} +10 -5
- package/src/plugins/texture/pairsJob.js.map +1 -0
- package/src/plugins/texture/structs.d.ts +2 -13
- package/src/plugins/texture/structs.js +3 -14
- package/src/plugins/texture/structs.js.map +1 -1
- package/src/plugins/texture/types.d.ts +31 -0
- package/src/plugins/texture/types.js +3 -0
- package/src/plugins/texture/types.js.map +1 -0
- 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/src/plugins/texture/marketsJob.js.map +0 -1
- /package/src/plugins/{texture → hylo}/marketsJob.d.ts +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/structs.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AACvD,kEAA6D;AAE7D,+CAA0C;AAO7B,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,EAAE,CAAC,CAAC;IACpB,CAAC,OAAO,EAAE,uBAAS,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
export type Loan = {
|
2
|
+
borrower_owner: string;
|
3
|
+
collateral: number;
|
4
|
+
duration: number;
|
5
|
+
end_time: number;
|
6
|
+
lender_owner: string;
|
7
|
+
loan: string;
|
8
|
+
pair: string;
|
9
|
+
principal: number;
|
10
|
+
repayment: number;
|
11
|
+
start_time: number;
|
12
|
+
status: string;
|
13
|
+
};
|
14
|
+
export type Offer = {
|
15
|
+
offer: string;
|
16
|
+
pair: string;
|
17
|
+
duration: number;
|
18
|
+
principal: number;
|
19
|
+
remaining_principal: number;
|
20
|
+
};
|
21
|
+
export type Pair = {
|
22
|
+
pair: string;
|
23
|
+
duration: number;
|
24
|
+
lender_apr_percent: string;
|
25
|
+
collateral_token: {
|
26
|
+
mint: string;
|
27
|
+
};
|
28
|
+
principal_token: {
|
29
|
+
mint: string;
|
30
|
+
};
|
31
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/types.ts"],"names":[],"mappings":""}
|
@@ -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;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAyC;AAEzC,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,eAAe,EAAE;QAChD,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,0BAAS,CAAC,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
File without changes
|