@sonarwatch/portfolio-plugins 0.11.182 → 0.11.184
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -1
- package/package.json +2 -2
- package/src/generators/helpers.js +1 -1
- package/src/generators/helpers.js.map +1 -1
- package/src/plugins/flash/constants.d.ts +1 -0
- package/src/plugins/flash/constants.js +2 -1
- package/src/plugins/flash/constants.js.map +1 -1
- package/src/plugins/flash/poolJob.js +12 -3
- package/src/plugins/flash/poolJob.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +26 -16
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/flash/types.d.ts +4 -0
- package/src/plugins/jupiter/pricingJob.js +2 -0
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/parcl/airdropFetcher.d.ts +3 -0
- package/src/plugins/parcl/airdropFetcher.js +87 -0
- package/src/plugins/parcl/airdropFetcher.js.map +1 -0
- package/src/plugins/parcl/constants.d.ts +8 -1
- package/src/plugins/parcl/constants.js +9 -2
- package/src/plugins/parcl/constants.js.map +1 -1
- package/src/plugins/parcl/index.js +7 -2
- package/src/plugins/parcl/index.js.map +1 -1
- package/src/plugins/parcl/types.d.ts +4 -0
- package/src/plugins/parcl/types.js +3 -0
- package/src/plugins/parcl/types.js.map +1 -0
- package/src/plugins/uniswap/getUniV3PositionsFetcher.js +1 -1
- package/src/plugins/uniswap/getUniV3PositionsFetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/getPositionsV2Fetcher.js +1 -1
- package/src/plugins/uniswap-v2/getPositionsV2Fetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +1 -1
- package/src/plugins/uniswap-v2/helpers.js.map +1 -1
- package/src/utils/misc/getImagefromUri.js +1 -1
- package/src/utils/misc/getImagefromUri.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,10 +2,23 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.11.
|
5
|
+
## [0.11.184](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.183...plugins-0.11.184) (2024-04-17)
|
6
6
|
|
7
7
|
|
8
|
+
### Reverts
|
8
9
|
|
10
|
+
* Revert "fix flashtrade" ([4055eb1](https://github.com/sonarwatch/portfolio/commit/4055eb1e72e64c96adf536bbd81c377c41018535))
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [0.11.183](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.182...plugins-0.11.183) (2024-04-16)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
## [0.11.182](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.181...plugins-0.11.182) (2024-04-16)
|
19
|
+
|
20
|
+
|
21
|
+
|
9
22
|
## [0.11.181](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.180...plugins-0.11.181) (2024-04-16)
|
10
23
|
|
11
24
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.184",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"web3-v1": "npm:web3@^1.5.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@sonarwatch/portfolio-core": "0.11.
|
44
|
+
"@sonarwatch/portfolio-core": "0.11.184"
|
45
45
|
},
|
46
46
|
"main": "./src/index.js",
|
47
47
|
"types": "./src/index.d.ts"
|
@@ -17,7 +17,7 @@ function spaceAndUpper(text) {
|
|
17
17
|
return text.replace(/-/, ' ').toUpperCase();
|
18
18
|
}
|
19
19
|
function lowerFirstLetter(string) {
|
20
|
-
return string.charAt(0).
|
20
|
+
return string.charAt(0).toLowerCase() + string.slice(1);
|
21
21
|
}
|
22
22
|
exports.lowerFirstLetter = lowerFirstLetter;
|
23
23
|
function idToPascalCase(id) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../packages/plugins/src/generators/helpers.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GACrB,oEAAoE,CAAC;AAEvE,SAAgB,WAAW,CAAC,GAAW;;IACrC,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,CACL,CAAA,MAAA,GAAG;SACA,KAAK,CAAC,iBAAiB,CAAC,0CACvB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,EAC3B,IAAI,CAAC,GAAG,CAAC,KAAI,EAAE,CACnB,CAAC;AACJ,CAAC;AARD,kCAQC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAC7C,CAAC;AACD,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;AAC9C,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../packages/plugins/src/generators/helpers.ts"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GACrB,oEAAoE,CAAC;AAEvE,SAAgB,WAAW,CAAC,GAAW;;IACrC,IAAI,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC;IACpB,OAAO,CACL,CAAA,MAAA,GAAG;SACA,KAAK,CAAC,iBAAiB,CAAC,0CACvB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,EAC3B,IAAI,CAAC,GAAG,CAAC,KAAI,EAAE,CACnB,CAAC;AACJ,CAAC;AARD,kCAQC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AAC7C,CAAC;AACD,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;AAC9C,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC;AAFD,4CAEC;AAED,SAAgB,cAAc,CAAC,EAAU;IACvC,OAAO,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAChD,CAAC;AAFD,wCAEC;AAED,SAAgB,oBAAoB,CAAC,EAAU;IAC7C,OAAO,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AACjD,CAAC;AAFD,oDAEC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.marketsKey = exports.poolsPkeys = exports.flashPid = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.poolsKey = exports.marketsKey = exports.poolsPkeys = exports.flashPid = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'flash';
|
6
6
|
exports.platform = {
|
@@ -18,4 +18,5 @@ exports.poolsPkeys = [
|
|
18
18
|
new web3_js_1.PublicKey('D6bfytnxoZBSzJM7fcixg5sgWJ2hj8SbwkPvb2r8XpbH'),
|
19
19
|
];
|
20
20
|
exports.marketsKey = 'markets';
|
21
|
+
exports.poolsKey = 'pools';
|
21
22
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAG,OAAO,CAAC"}
|
@@ -27,6 +27,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
27
|
structs_1.pool2Struct.deserialize(pools[1].data)[0],
|
28
28
|
structs_1.pool3Struct.deserialize(pools[2].data)[0],
|
29
29
|
];
|
30
|
+
const poolsInfo = [];
|
30
31
|
for (let i = 0; i < poolsAccounts.length; i++) {
|
31
32
|
const pool = poolsAccounts[i];
|
32
33
|
const supAndDecimals = yield (0, fetchTokenSupplyAndDecimals_1.fetchTokenSupplyAndDecimals)(pool.flpMint, client);
|
@@ -38,9 +39,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
39
|
.dividedBy(Math.pow(10, decimals))
|
39
40
|
.dividedBy(supply)
|
40
41
|
.toNumber();
|
41
|
-
|
42
|
-
|
43
|
-
|
42
|
+
// await cache.setItem(poolsPkeys[i].toString(), [pool.flpMint.toString()], {
|
43
|
+
// prefix: platformId,
|
44
|
+
// networkId: NetworkId.solana,
|
45
|
+
// });
|
46
|
+
poolsInfo.push({
|
47
|
+
flpMint: pool.flpMint.toString(),
|
48
|
+
pkey: constants_1.poolsPkeys[i].toString(),
|
44
49
|
});
|
45
50
|
yield cache.setTokenPriceSource({
|
46
51
|
address: mint,
|
@@ -54,6 +59,10 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
59
|
elementName: (0, solana_1.u8ArrayToString)(pool.name),
|
55
60
|
});
|
56
61
|
}
|
62
|
+
yield cache.setItem(constants_1.poolsKey, poolsInfo, {
|
63
|
+
prefix: constants_1.platformId,
|
64
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
65
|
+
});
|
57
66
|
});
|
58
67
|
const job = {
|
59
68
|
id: `${constants_1.platformId}-pools`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poolJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/poolJob.ts"],"names":[],"mappings":";;;;;;;;;;;A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0, void 0, void 0, function* (
|
|
24
24
|
const stakeAccounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, structs_1.flpStakeStruct, (0, helpers_1.getPdas)(owner));
|
25
25
|
if (!stakeAccounts.some((account) => account !== null))
|
26
26
|
return [];
|
27
|
-
const
|
28
|
-
const flpMints = yield cache.getItems(pools, {
|
27
|
+
const poolsInfo = yield cache.getItem(constants_1.poolsKey, {
|
29
28
|
prefix: constants_1.platformId,
|
30
29
|
networkId: portfolio_core_1.NetworkId.solana,
|
31
30
|
});
|
32
|
-
if (!
|
31
|
+
if (!poolsInfo)
|
33
32
|
return [];
|
34
33
|
const flpMintById = new Map();
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if (flpMint && stakeAccount)
|
39
|
-
flpMintById.set(stakeAccount.pubkey.toString(), flpMint[0]);
|
40
|
-
}
|
41
|
-
const tokenPrices = yield cache.getTokenPrices([...Array.from(flpMintById.values()), solana_1.usdcSolanaMint], portfolio_core_1.NetworkId.solana);
|
42
|
-
const usdcTokenPrice = tokenPrices[tokenPrices.length - 1];
|
34
|
+
poolsInfo.map((pool) => flpMintById.set(pool.pkey, pool.flpMint));
|
35
|
+
const tokenPriceById = yield cache.getTokenPricesAsMap([...poolsInfo.map((info) => info.flpMint), solana_1.usdcSolanaMint], portfolio_core_1.NetworkId.solana);
|
36
|
+
const usdcTokenPrice = tokenPriceById.get(solana_1.usdcSolanaMint);
|
43
37
|
const elements = [];
|
44
38
|
for (let j = 0; j < stakeAccounts.length; j++) {
|
45
39
|
const assets = [];
|
46
40
|
const stakeAccount = stakeAccounts[j];
|
47
41
|
if (!stakeAccount)
|
48
42
|
continue;
|
49
|
-
const
|
50
|
-
if (!
|
51
|
-
|
52
|
-
|
53
|
-
|
43
|
+
const flpMint = flpMintById.get(stakeAccount.pool.toString());
|
44
|
+
if (!flpMint)
|
45
|
+
continue;
|
46
|
+
const flpTokenPrice = tokenPriceById.get(flpMint);
|
47
|
+
if (!flpTokenPrice)
|
48
|
+
continue;
|
49
|
+
const flpFacotr = Math.pow(10, flpTokenPrice.decimals);
|
50
|
+
if (!stakeAccount.stakeStats.activeAmount.isZero()) {
|
51
|
+
const amount = stakeAccount.stakeStats.activeAmount.dividedBy(flpFacotr);
|
54
52
|
assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice));
|
55
53
|
}
|
54
|
+
if (!stakeAccount.stakeStats.pendingActivation.isZero()) {
|
55
|
+
const amount = stakeAccount.stakeStats.pendingActivation.dividedBy(flpFacotr);
|
56
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice, undefined, {
|
57
|
+
tags: ['Activation Pending'],
|
58
|
+
}));
|
59
|
+
}
|
60
|
+
if (!stakeAccount.stakeStats.pendingDeactivation.isZero()) {
|
61
|
+
const amount = stakeAccount.stakeStats.pendingDeactivation.dividedBy(flpFacotr);
|
62
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(flpTokenPrice.address, amount.toNumber(), portfolio_core_1.NetworkId.solana, flpTokenPrice, undefined, {
|
63
|
+
tags: ['Deactivation Pending'],
|
64
|
+
}));
|
65
|
+
}
|
56
66
|
if (!stakeAccount.unclaimedRewards.isZero()) {
|
57
67
|
const unclaimedAmount = stakeAccount.unclaimedRewards
|
58
68
|
.times(stakeAccount.feeShareBps)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,
|
1
|
+
{"version":3,"file":"stakeFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flash/stakeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAmD;AACnD,iDAAsD;AACtD,+CAG4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IACzB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -20,6 +20,8 @@ const mints = [
|
|
20
20
|
'HUBsveNpjo5pWqNkH57QzxjQASdTVXcSK7bVKTSZtcSX', // SolanaHub staked SOL
|
21
21
|
'xLfNTYy76B8Tiix3hA51Jyvc1kMSFV4sPdR7szTZsRu', // xLifinity
|
22
22
|
'BANXbTpN8U2cU41FjPxe2Ti37PiT5cCxLUKDQZuJeMMR', // Banx
|
23
|
+
'4LLbsb5ReP3yEtYzmXewyGjcir5uXtKFURtaEUVC2AHs', // Parcl
|
24
|
+
'SHARKSYJjqaNyxVfrpnBN9pjgkhwDhatnMyicWPnr1s', // Shark
|
23
25
|
];
|
24
26
|
const vsToken = portfolio_core_1.solanaNativeWrappedAddress;
|
25
27
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAG5C,oDAAkD;AAClD,uCAA6C;AAC7C,mDAA2D;AAC3D,0FAAuF;AACvF,iDAAsD;AAEtD,MAAM,KAAK,GAAG;IACZ,8CAA8C,EAAE,uBAAuB;IACvE,6CAA6C,EAAE,YAAY;IAC3D,8CAA8C,EAAE,OAAO;CACxD,CAAC;AACF,MAAM,OAAO,GAAG,2CAA0B,CAAC;AAE3C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC3E,IAAI,CAAC,aAAa;QAAE,OAAO;IAE3B,MAAM,OAAO,GAAG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KAAK;YAClC,UAAU,EAAE,gCAAoB,CAAC,EAAE;YACnC,MAAM,EAAE,GAAG;SACZ,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,87 @@
|
|
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 axios_1 = __importDefault(require("axios"));
|
17
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
|
+
const constants_1 = require("./constants");
|
19
|
+
const helpers_1 = require("../jupiter/helpers");
|
20
|
+
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
21
|
+
const clients_1 = require("../../utils/clients");
|
22
|
+
const structs_1 = require("../jupiter/launchpad/structs");
|
23
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
+
const oneDayInMs = 24 * 60 * 60 * 1000;
|
25
|
+
const endOfClaim = 1735603200000;
|
26
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
27
|
+
if (Date.now() > endOfClaim)
|
28
|
+
return [];
|
29
|
+
const client = (0, clients_1.getClientSolana)();
|
30
|
+
const cachedAllocation = yield cache.getItem(owner, {
|
31
|
+
prefix: constants_1.allocationPrefix,
|
32
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
33
|
+
});
|
34
|
+
let amount;
|
35
|
+
let merkleTree;
|
36
|
+
if (cachedAllocation) {
|
37
|
+
amount = cachedAllocation.amount;
|
38
|
+
merkleTree = cachedAllocation.merkle_tree;
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
const allocation = yield axios_1.default
|
42
|
+
.get(constants_1.airdropApi + owner, {
|
43
|
+
headers: {
|
44
|
+
origin: 'https://app.parcl.co',
|
45
|
+
referer: 'https://app.parcl.co',
|
46
|
+
},
|
47
|
+
})
|
48
|
+
.catch(() => null);
|
49
|
+
if (allocation) {
|
50
|
+
merkleTree = allocation.data.merkle_tree;
|
51
|
+
amount = new bignumber_js_1.default(allocation.data.amount)
|
52
|
+
.dividedBy(Math.pow(10, constants_1.prclDecimals))
|
53
|
+
.toNumber();
|
54
|
+
yield cache.setItem(owner, { amount, merkle_tree: merkleTree }, {
|
55
|
+
prefix: constants_1.allocationPrefix,
|
56
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
57
|
+
ttl: oneDayInMs,
|
58
|
+
});
|
59
|
+
}
|
60
|
+
}
|
61
|
+
if (!amount || !merkleTree)
|
62
|
+
return [];
|
63
|
+
const claimStatusPubkey = (0, helpers_1.deriveClaimStatus)(owner, merkleTree, constants_1.distributorProgram);
|
64
|
+
const claimStatusAccounts = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, structs_1.claimStatusStruct, claimStatusPubkey);
|
65
|
+
if (claimStatusAccounts)
|
66
|
+
return [];
|
67
|
+
const tokenPrice = yield cache.getTokenPrice(constants_1.prclMint, portfolio_core_1.NetworkId.solana);
|
68
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(constants_1.prclMint, amount, portfolio_core_1.NetworkId.solana, tokenPrice, undefined, { isClaimable: true });
|
69
|
+
return [
|
70
|
+
{
|
71
|
+
value: asset.value,
|
72
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
73
|
+
platformId: constants_1.platformId,
|
74
|
+
name: 'Allocation',
|
75
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
76
|
+
label: 'Rewards',
|
77
|
+
data: { assets: [asset] },
|
78
|
+
},
|
79
|
+
];
|
80
|
+
});
|
81
|
+
const fetcher = {
|
82
|
+
id: `${constants_1.platformId}-airdrop`,
|
83
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
84
|
+
executor,
|
85
|
+
};
|
86
|
+
exports.default = fetcher;
|
87
|
+
//# sourceMappingURL=airdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,kDAA6C;AAC7C,gEAAqC;AAGrC,2CAOqB;AAErB,gDAAuD;AACvD,kFAA+E;AAC/E,iDAAsD;AACtD,0DAAiE;AACjE,qGAA6E;AAE7E,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACvC,MAAM,UAAU,GAAG,aAAa,CAAC;AACjC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,UAAU;QAAE,OAAO,EAAE,CAAC;IAEvC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACj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,2CAAoB,EACpD,MAAM,EACN,2BAAiB,EACjB,iBAAiB,CAClB,CAAC;IACF,IAAI,mBAAmB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,oBAAQ,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oBAAQ,EACR,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;IAEF,OAAO;QACL;YACE,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;SAC1B;KACF,CAAC;AACJ,CAAC,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"}
|
@@ -1,7 +1,14 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
3
|
export declare const platformId = "parcl";
|
4
|
-
export declare const
|
4
|
+
export declare const parclPlatform: Platform;
|
5
5
|
export declare const programId: PublicKey;
|
6
6
|
export declare const usdcMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
7
7
|
export declare const usdcDecimals = 6;
|
8
|
+
export declare const airdropApi = "https://gnome-api-mainnet.fly.dev/user/";
|
9
|
+
export declare const allocationPrefix = "parcl/allocation";
|
10
|
+
export declare const prclMint = "4LLbsb5ReP3yEtYzmXewyGjcir5uXtKFURtaEUVC2AHs";
|
11
|
+
export declare const prclDecimals = 6;
|
12
|
+
export declare const merkleApi = "https://worker.jup.ag/jup-claim-proof";
|
13
|
+
export declare const merkleTree = "5nRBuSmpA98JgrznGYEAFTvQAA7hCdFkVKS9e41N8mBQ";
|
14
|
+
export declare const distributorProgram = "5tu3xkmLfud5BAwSuQke4WSjoHcQ52SbrPwX9es8j6Ve";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.usdcDecimals = exports.usdcMint = exports.programId = exports.
|
3
|
+
exports.distributorProgram = exports.merkleTree = exports.merkleApi = exports.prclDecimals = exports.prclMint = exports.allocationPrefix = exports.airdropApi = exports.usdcDecimals = exports.usdcMint = exports.programId = exports.parclPlatform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'parcl';
|
6
|
-
exports.
|
6
|
+
exports.parclPlatform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Parcl',
|
9
9
|
image: 'https://sonar.watch/img/platforms/parcl.png',
|
@@ -14,4 +14,11 @@ exports.platform = {
|
|
14
14
|
exports.programId = new web3_js_1.PublicKey('3parcLrT7WnXAcyPfkCz49oofuuf2guUKkjuFkAhZW8Y');
|
15
15
|
exports.usdcMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
|
16
16
|
exports.usdcDecimals = 6;
|
17
|
+
exports.airdropApi = 'https://gnome-api-mainnet.fly.dev/user/';
|
18
|
+
exports.allocationPrefix = `${exports.platformId}/allocation`;
|
19
|
+
exports.prclMint = '4LLbsb5ReP3yEtYzmXewyGjcir5uXtKFURtaEUVC2AHs';
|
20
|
+
exports.prclDecimals = 6;
|
21
|
+
exports.merkleApi = 'https://worker.jup.ag/jup-claim-proof';
|
22
|
+
exports.merkleTree = '5nRBuSmpA98JgrznGYEAFTvQAA7hCdFkVKS9e41N8mBQ';
|
23
|
+
exports.distributorProgram = '5tu3xkmLfud5BAwSuQke4WSjoHcQ52SbrPwX9es8j6Ve';
|
17
24
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,cAAc,EAAE,sCAAsC;IACnE,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,UAAU,GAAG,yCAAyC,CAAC;AACvD,QAAA,gBAAgB,GAAG,GAAG,kBAAU,aAAa,CAAC;AAC9C,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,YAAY,GAAG,CAAC,CAAC;AACjB,QAAA,SAAS,GAAG,uCAAuC,CAAC;AACpD,QAAA,UAAU,GAAG,8CAA8C,CAAC;AAC5D,QAAA,kBAAkB,GAC7B,8CAA8C,CAAC"}
|
@@ -7,7 +7,12 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
|
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
|
9
9
|
const marginFetcher_1 = __importDefault(require("./marginFetcher"));
|
10
|
-
|
10
|
+
const airdropFetcher_1 = __importDefault(require("./airdropFetcher"));
|
11
|
+
exports.platforms = [constants_1.parclPlatform];
|
11
12
|
exports.jobs = [];
|
12
|
-
exports.fetchers = [
|
13
|
+
exports.fetchers = [
|
14
|
+
depositsFetcher_1.default,
|
15
|
+
marginFetcher_1.default,
|
16
|
+
airdropFetcher_1.default,
|
17
|
+
];
|
13
18
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA4C;AAC5C,wEAAgD;AAChD,oEAA4C;AAC5C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc;IACjC,yBAAe;IACf,uBAAa;IACb,wBAAc;CACf,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/parcl/types.ts"],"names":[],"mappings":""}
|
@@ -311,7 +311,7 @@ function getUniV3PositionsFetcher(config, platformId, version) {
|
|
311
311
|
});
|
312
312
|
return {
|
313
313
|
executor,
|
314
|
-
id: `${platformId}-${networkId}-positions-${version.
|
314
|
+
id: `${platformId}-${networkId}-positions-${version.toLowerCase()}`,
|
315
315
|
networkId,
|
316
316
|
};
|
317
317
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getUniV3PositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/getUniV3PositionsFetcher.ts"],"names":[],"mappings":";;;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AE,EAC7D,SAAS,EACT,WAAW,CACZ,CAAC;YAEF,IACE,CAAC,WAAW;gBACZ,CAAC,WAAW;gBACZ,WAAW,CAAC,KAAK,KAAK,IAAI;gBAC1B,WAAW,CAAC,KAAK,KAAK,IAAI;gBAE1B,SAAS;YAEX,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YACpD,WAAW,CAAC,IAAI,CAAC;gBACf,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;gBAClC,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,CAAC;gBACpB,KAAK;gBACL,MAAM,EAAE,EAAE;aACX,CAAC,CAAC;YACH,mBAAmB,IAAI,KAAK,CAAC;QAC/B,CAAC;QAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAExC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,iBAAiB,EAAE,EAAE;QACzE,SAAS;KACV,CAAC;AACJ,CAAC;AAnWD,4DAmWC"}
|
1
|
+
{"version":3,"file":"getUniV3PositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/getUniV3PositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAAoD;AACpD,wCAA6C;AAC7C,iDAAmD;AACnD,iCAQgB;AAOhB,wFAAyF;AACzF,qGAA6E;AAE7E,SAAgB,wBA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IAAI;gBAE1B,SAAS;YAEX,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YACpD,WAAW,CAAC,IAAI,CAAC;gBACf,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;gBAClC,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,CAAC;gBACpB,KAAK;gBACL,MAAM,EAAE,EAAE;aACX,CAAC,CAAC;YACH,mBAAmB,IAAI,KAAK,CAAC;QAC/B,CAAC;QAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAExC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,WAAW,EAAE,EAAE;QACnE,SAAS;KACV,CAAC;AACJ,CAAC;AAnWD,4DAmWC"}
|
@@ -50,7 +50,7 @@ function getPositionsV2Fetcher(networkId, platformId, version) {
|
|
50
50
|
});
|
51
51
|
return {
|
52
52
|
executor,
|
53
|
-
id: `${platformId}-${networkId}-positions-${version.
|
53
|
+
id: `${platformId}-${networkId}-positions-${version.toLowerCase()}`,
|
54
54
|
networkId,
|
55
55
|
};
|
56
56
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPositionsV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/getPositionsV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAKoC;AAGpC,mEAAgE;AAChE,uCAAuC;AAEvC,SAAw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G,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"getPositionsV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/getPositionsV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAKoC;AAGpC,mEAAgE;AAChE,uCAAuC;AAEvC,SAAwB,qBAAqB,CAC3C,SAA2B,EAC3B,UAAkB,EAClB,OAAe;IAEf,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAW,IAAA,oBAAU,EAAC,OAAO,CAAC,EAAE;YACjE,SAAS;YACT,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QAExB,MAAM,WAAW,GAAG,MAAM,IAAA,+BAAc,EAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAE3E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAsB,EAAE;YACjE,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACzD,OAAO;gBACL,MAAM;gBACN,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,IAAI;gBACvB,KAAK;gBACL,MAAM,EAAE,EAAE;aACX,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,KAAK,EAAE,eAAe;gBACtB,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,WAAW,EAAE,EAAE;QACnE,SAAS;KACV,CAAC;AACJ,CAAC;AA/CD,wCA+CC"}
|
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.getPairsV2FromTheGraph = exports.getPairKey = void 0;
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getPairKey(version) {
|
38
|
-
return `pools-${version.
|
38
|
+
return `pools-${version.toLowerCase()}`;
|
39
39
|
}
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAI/C,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,SAAS,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAI/C,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,SAAS,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;AAC1C,CAAC;AAFD,gCAEC;AAED,SAAsB,sBAAsB,CAAC,GAAW,EAAE,MAAM,GAAG,GAAG;;QACpE,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;iBAIF,MAAM;;;;;;;;;;;;;;;;;;GAkBpB,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EAAiC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,GAAG,CAAC,KAA4B,CAAC;QAC/C,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AA5BD,wDA4BC"}
|
@@ -54,7 +54,7 @@ exports.imageExtensions = [
|
|
54
54
|
'.webp',
|
55
55
|
];
|
56
56
|
function stringEndsWithImageExtension(string) {
|
57
|
-
const fString = string.
|
57
|
+
const fString = string.toLowerCase();
|
58
58
|
return exports.imageExtensions.some((imageExtension) => fString.endsWith(imageExtension));
|
59
59
|
}
|
60
60
|
function getImagefromHttpUrl(url) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getImagefromUri.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getImagefromUri.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAA0B;AAC1B,4DAAoC;AACpC,4DAAoC;AAGpC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC,MAAM,MAAM,GAAG,UAAU,CAAC;AACb,QAAA,uBAAuB,GAAG,WAAW,CAAC;AAEnD,SAAsB,eAAe,CACnC,GAAuB,EACvB,SAAwB,EACxB,KAAY;;QAEZ,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,kBAAkB;YAAE,OAAO,SAAS,CAAC;QAE9D,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CAAS,GAAG,EAAE;YACnD,MAAM;YACN,SAAS;SACV,CAAC,CAAC;QACH,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,WAAW,KAAK,+BAAuB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC;QAC3E,CAAC;QAED,IAAI,KAAyB,CAAC;QAC9B,IAAI,IAAA,mBAAS,EAAC,GAAG,CAAC;YAAE,KAAK,GAAG,MAAM,mBAAmB,CAAC,GAAG,CAAC,CAAC;QAC3D,IAAI,IAAA,mBAAS,EAAC,GAAG,CAAC;YAAE,KAAK,GAAG,MAAM,mBAAmB,CAAC,GAAG,CAAC,CAAC;QAE3D,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,kBAAkB;YAAE,KAAK,GAAG,SAAS,CAAC;QAClE,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,IAAI,+BAAuB,EAAE;YACnD,MAAM;YACN,SAAS;SACV,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AAzBD,0CAyBC;AAEY,QAAA,eAAe,GAAG;IAC7B,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;CACR,CAAC;AACF,SAAS,4BAA4B,CAAC,MAAc;IAClD,MAAM,OAAO,GAAG,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"getImagefromUri.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getImagefromUri.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAA0B;AAC1B,4DAAoC;AACpC,4DAAoC;AAGpC,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC,MAAM,MAAM,GAAG,UAAU,CAAC;AACb,QAAA,uBAAuB,GAAG,WAAW,CAAC;AAEnD,SAAsB,eAAe,CACnC,GAAuB,EACvB,SAAwB,EACxB,KAAY;;QAEZ,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,kBAAkB;YAAE,OAAO,SAAS,CAAC;QAE9D,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,OAAO,CAAS,GAAG,EAAE;YACnD,MAAM;YACN,SAAS;SACV,CAAC,CAAC;QACH,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,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