@sonarwatch/portfolio-plugins 0.11.192 → 0.11.193
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1513 -1509
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/plugins/aftermath/constants.d.ts +2 -0
- package/src/plugins/aftermath/constants.js +3 -1
- package/src/plugins/aftermath/constants.js.map +1 -1
- package/src/plugins/aftermath/index.js +2 -1
- package/src/plugins/aftermath/index.js.map +1 -1
- package/src/plugins/aftermath/stakingFetcher.d.ts +3 -0
- package/src/plugins/aftermath/stakingFetcher.js +102 -0
- package/src/plugins/aftermath/stakingFetcher.js.map +1 -0
- package/src/plugins/aftermath/types.d.ts +17 -0
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/drift/airdropFetcher.d.ts +3 -0
- package/src/plugins/drift/airdropFetcher.js +79 -0
- package/src/plugins/drift/airdropFetcher.js.map +1 -0
- package/src/plugins/drift/constants.d.ts +2 -0
- package/src/plugins/drift/constants.js +3 -1
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/index.js +2 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/drift/types.d.ts +12 -0
- package/src/plugins/jito/airdropFetcher.js +1 -2
- package/src/plugins/jito/airdropFetcher.js.map +1 -1
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js +1 -1
- package/src/plugins/kamino/airdropFetcher.js +1 -1
- package/src/plugins/parcl/airdropFetcher.js +1 -2
- package/src/plugins/parcl/airdropFetcher.js.map +1 -1
- package/src/plugins/sandglass/constants.d.ts +6 -0
- package/src/plugins/sandglass/constants.js +16 -0
- package/src/plugins/sandglass/constants.js.map +1 -0
- package/src/plugins/sandglass/depositFetcher.d.ts +3 -0
- package/src/plugins/sandglass/depositFetcher.js +82 -0
- package/src/plugins/sandglass/depositFetcher.js.map +1 -0
- package/src/plugins/sandglass/filters.d.ts +3 -0
- package/src/plugins/sandglass/filters.js +21 -0
- package/src/plugins/sandglass/filters.js.map +1 -0
- package/src/plugins/sandglass/index.d.ts +6 -0
- package/src/plugins/sandglass/index.js +13 -0
- package/src/plugins/sandglass/index.js.map +1 -0
- package/src/plugins/sandglass/marketsJob.d.ts +3 -0
- package/src/plugins/sandglass/marketsJob.js +96 -0
- package/src/plugins/sandglass/marketsJob.js.map +1 -0
- package/src/plugins/sandglass/structs.d.ts +150 -0
- package/src/plugins/sandglass/structs.js +144 -0
- package/src/plugins/sandglass/structs.js.map +1 -0
- package/src/plugins/sandglass/types.d.ts +7 -0
- package/src/plugins/sandglass/types.js +3 -0
- package/src/plugins/sandglass/types.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tensor/airdropPowerUsersFetcher.d.ts +3 -0
- package/src/plugins/tensor/airdropPowerUsersFetcher.js +45 -0
- package/src/plugins/tensor/airdropPowerUsersFetcher.js.map +1 -0
- package/src/plugins/tensor/constants.d.ts +2 -0
- package/src/plugins/tensor/constants.js +3 -1
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/helpers.d.ts +1 -0
- package/src/plugins/tensor/helpers.js +16 -0
- package/src/plugins/tensor/helpers.js.map +1 -0
- package/src/plugins/tensor/index.js +6 -1
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/tensor/powerUsers.json +2898 -0
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/wormhole/airdropFetcher.js +1 -2
- package/src/plugins/wormhole/airdropFetcher.js.map +1 -1
- 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;
|
@@ -31,10 +31,9 @@ function getPositionsV2Fetcher(networkId) {
|
|
31
31
|
return [
|
32
32
|
{
|
33
33
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
34
|
-
label: '
|
34
|
+
label: 'Airdrop',
|
35
35
|
networkId: portfolio_core_1.NetworkId.solana,
|
36
36
|
platformId: constants_1.platformId,
|
37
|
-
name: 'Airdrop',
|
38
37
|
data: {
|
39
38
|
assets: [Object.assign(Object.assign({}, asset), { attributes: { isClaimable: true } })],
|
40
39
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAgD;AAChD,iDAAsD;AACtD,uCAA4D;AAC5D,qGAA6E;AAE7E,SAAwB,qBAAqB,CAC3C,SAAwB;IAExB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACzD,IAAI,UAAU,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC;QAErE,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iBAAK,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iBAAK,EACL,UAAU,EACV,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;QAEF,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;gBACnC,KAAK,EAAE,SAAS;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAGpC,2CAAgD;AAChD,iDAAsD;AACtD,uCAA4D;AAC5D,qGAA6E;AAE7E,SAAwB,qBAAqB,CAC3C,SAAwB;IAExB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACzD,IAAI,UAAU,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC;QAErE,IAAI,OAAO;YAAE,OAAO,EAAE,CAAC;QAEvB,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,iBAAK,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,iBAAK,EACL,UAAU,EACV,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;QAEF,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;gBACnC,KAAK,EAAE,SAAS;gBAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,UAAU,EAAV,sBAAU;gBACV,IAAI,EAAE;oBACJ,MAAM,EAAE,iCAAM,KAAK,KAAE,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,IAAG;iBAC1D;gBACD,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,UAAU;QAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,QAAQ;KACT,CAAC;AACJ,CAAC;AAvCD,wCAuCC"}
|
@@ -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;
|