@sonarwatch/portfolio-plugins 0.12.76 → 0.12.78
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +13 -7
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/filters.js +0 -1
- package/src/plugins/jupiter/exchange/filters.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.js +0 -18
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/meteora/constants.d.ts +2 -0
- package/src/plugins/meteora/constants.js +3 -1
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/meteora/dlmmPositionsFetcher.js +5 -0
- package/src/plugins/meteora/dlmmPositionsFetcher.js.map +1 -1
- package/src/plugins/meteora/dlmmVaultsFetcher.d.ts +3 -0
- package/src/plugins/meteora/dlmmVaultsFetcher.js +157 -0
- package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -0
- package/src/plugins/meteora/dlmmVaultsJob.d.ts +3 -0
- package/src/plugins/meteora/dlmmVaultsJob.js +44 -0
- package/src/plugins/meteora/dlmmVaultsJob.js.map +1 -0
- package/src/plugins/meteora/index.js +14 -2
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/meteora/struct.d.ts +35 -0
- package/src/plugins/meteora/struct.js +34 -1
- package/src/plugins/meteora/struct.js.map +1 -1
- package/src/plugins/meteora/types.d.ts +5 -1
- package/src/plugins/meteora/types.js.map +1 -1
- package/src/plugins/nxfinance/constants.d.ts +1 -1
- package/src/plugins/nxfinance/constants.js +5 -2
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/sanctum/airdropFetcher.d.ts +3 -0
- package/src/plugins/sanctum/airdropFetcher.js +94 -0
- package/src/plugins/sanctum/airdropFetcher.js.map +1 -0
- package/src/plugins/sanctum/constants.d.ts +4 -0
- package/src/plugins/sanctum/constants.js +12 -1
- package/src/plugins/sanctum/constants.js.map +1 -1
- package/src/plugins/sanctum/index.d.ts +2 -0
- package/src/plugins/sanctum/index.js +7 -2
- package/src/plugins/sanctum/index.js.map +1 -1
- package/src/plugins/solend/constants.d.ts +4 -0
- package/src/plugins/solend/constants.js +5 -1
- package/src/plugins/solend/constants.js.map +1 -1
- package/src/plugins/solend/index.js +2 -1
- package/src/plugins/solend/index.js.map +1 -1
- package/src/plugins/solend/rewardsFetcher.d.ts +3 -0
- package/src/plugins/solend/rewardsFetcher.js +95 -0
- package/src/plugins/solend/rewardsFetcher.js.map +1 -0
- package/src/plugins/solend/structs.d.ts +8 -0
- package/src/plugins/solend/structs.js +8 -1
- package/src/plugins/solend/structs.js.map +1 -1
- package/src/plugins/solend/types.d.ts +23 -0
- package/src/utils/solana/beets/numbers.d.ts +11 -0
- package/src/utils/solana/beets/numbers.js +33 -1
- package/src/utils/solana/beets/numbers.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.78](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.77...plugins-0.12.78) (2024-07-18)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.77](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.76...plugins-0.12.77) (2024-07-17)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.12.76](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.75...plugins-0.12.76) (2024-07-17)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -465,6 +465,7 @@ exports.airdropFetchers = [
|
|
465
465
|
...jupiter_1.airdropFetchers,
|
466
466
|
drift_1.airdropFetcher,
|
467
467
|
parcl_1.airdropFetcher,
|
468
|
+
sanctum_1.airdropFetcher,
|
468
469
|
];
|
469
470
|
exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
|
470
471
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,2CAIyB;AACzB,uDAI+B;AAC/B,6DAIkC;AAClC,2CAIyB;AACzB,yCAIwB;AACxB,mDAI6B;AAC7B,6CAI0B;AAC1B,iEAIoC;AACpC,6DAIkC;AAClC,yCAIwB;AACxB,uCAIuB;AACvB,+CAI2B;AAC3B,iDAI4B;AAC5B,mDAI6B;AAC7B,2CAIyB;AACzB,+CAI2B;AAC3B,uCAIuB;AACvB,iDAI4B;AAC5B,yCAIwB;AACxB,6CAI0B;AAC1B,yCAIwB;AACxB,mDAI6B;AAC7B,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,+CAI2B;AAC3B,iDAI4B;AAC5B,yDAIgC;AAChC,iDAI4B;AAC5B,6CAI0B;AAC1B,iDAI4B;AAC5B,+CAI2B;AAC3B,6CAI0B;AAC1B,6CAI0B;AAC1B,+
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B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AG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,8BAA2B;IAC9B,GAAG,oBAAiB;IACpB,GAAG,kBAAe;CACnB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,wBAAqB;CACtB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -29,14 +29,18 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
29
29
|
const inputMint = account.inputMint.toString();
|
30
30
|
const lastAmount = amountByToken.get(inputMint);
|
31
31
|
const amountToAdd = account.inDeposited.minus(account.inUsed);
|
32
|
-
if (!
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
if (!amountToAdd.isZero()) {
|
33
|
+
if (!lastAmount) {
|
34
|
+
amountByToken.set(inputMint, amountToAdd);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
const newAmount = lastAmount.plus(amountToAdd);
|
38
|
+
amountByToken.set(inputMint, newAmount);
|
39
|
+
}
|
38
40
|
}
|
39
41
|
}
|
42
|
+
if (amountByToken.size === 0)
|
43
|
+
return [];
|
40
44
|
const tokenPriceById = yield cache.getTokenPricesAsMap(Array.from(amountByToken.keys()), portfolio_core_1.NetworkId.solana);
|
41
45
|
const assets = [];
|
42
46
|
for (const token of amountByToken.keys()) {
|
@@ -44,11 +48,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
44
48
|
if (!tokenPrice)
|
45
49
|
continue;
|
46
50
|
const amount = amountByToken.get(token);
|
47
|
-
if (!amount)
|
51
|
+
if (!amount || amount.isZero())
|
48
52
|
continue;
|
49
53
|
const asset = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount.dividedBy(Math.pow(10, tokenPrice.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice);
|
50
54
|
assets.push(asset);
|
51
55
|
}
|
56
|
+
if (assets.length === 0)
|
57
|
+
return [];
|
52
58
|
return [
|
53
59
|
{
|
54
60
|
type: 'multiple',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AAIpC,oDAAyD;AACzD,kDAAiE;AACjE,wGAAgF;AAChF,2CAAiE;AACjE,uCAAsC;AACtC,uCAAuC;AAEvC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,mBAAS,EACT,wBAAY,EACZ,IAAA,oBAAU,EAAC,KAAK,CAAC,CAClB,CAAC;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,aAAa,GAA2B,IAAI,GAAG,EAAE,CAAC;IAExD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAC/C,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAChD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"dcaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/dcaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;A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CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/filters.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/exchange/filters.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,aAAa;SACrB;KACF;IACD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAbW,QAAA,YAAY,gBAavB;AAEK,MAAM,UAAU,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACvE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,mBAAS,CAAC,QAAQ,EAAE;CACjC,CAAC;AARW,QAAA,UAAU,cAQrB;AAEK,MAAM,mBAAmB,GAAG,CACjC,KAAa,EACe,EAAE,CAAC;IAC/B;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AAVW,QAAA,mBAAmB,uBAU9B"}
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.airdropConfigs = exports.lfgDisProgram = exports.lfgApiBaseUrl = exports.jupDecimals = exports.jupMint = exports.lockerPubkey = exports.voteProgramId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const constants_1 = require("../../kamino/constants");
|
6
|
-
const constants_2 = require("../../sanctum/constants");
|
7
6
|
exports.platformId = 'jupiter-launchpad';
|
8
7
|
const platformImage = 'https://sonar.watch/img/platforms/jupiter.webp';
|
9
8
|
exports.platform = {
|
@@ -124,22 +123,5 @@ exports.airdropConfigs = [
|
|
124
123
|
name: 'S1',
|
125
124
|
},
|
126
125
|
},
|
127
|
-
{
|
128
|
-
mint: 'CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu',
|
129
|
-
decimals: 9,
|
130
|
-
distributorProgram: exports.lfgDisProgram,
|
131
|
-
label: 'CLOUD',
|
132
|
-
platformId: constants_2.platformId,
|
133
|
-
getApiPath: (owner) => `${exports.lfgApiBaseUrl}/CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu/${owner}`,
|
134
|
-
statics: {
|
135
|
-
claimStart: 1721314800000,
|
136
|
-
claimEnd: 1744588800000,
|
137
|
-
id: 'lfg-sanctum',
|
138
|
-
emitterName: 'Sanctum',
|
139
|
-
emitterLink: 'https://www.sanctum.so/',
|
140
|
-
claimLink: 'https://lfg.jup.ag/sanctum',
|
141
|
-
image: 'https://sonar.watch/img/platforms/sanctum.webp',
|
142
|
-
},
|
143
|
-
},
|
144
126
|
];
|
145
127
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,sDAAwE;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupi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,KAAa,EAAE,EAAE,CAC5B,GAAG,qBAAa,gDAAgD,KAAK,EAAE;QACzE,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,aAAa;YACvB,EAAE,EAAE,YAAY;YAChB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,qBAAqB;YAClC,SAAS,EAAE,2BAA2B;YACtC,KAAK,EAAE,+CAA+C;SACvD;KACF;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,kBAAkB,EAAE,6CAA6C;QACjE,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,sBAAgB;QAC5B,UAAU,EAAE,CAAC,KAAa,EAAE,EAAE,CAC5B,+CAA+C,KAAK,EAAE;QACxD,OAAO,EAAE;YACP,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,SAAS;YACnB,EAAE,EAAE,WAAW;YACf,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,6BAA6B;YAC1C,SAAS,EAAE,oCAAoC;YAC/C,KAAK,EAAE,+CAA+C;YACtD,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAC"}
|
@@ -4,7 +4,9 @@ export declare const platformId = "meteora";
|
|
4
4
|
export declare const platform: Platform;
|
5
5
|
export declare const prefixVaults = "meteora-vaults";
|
6
6
|
export declare const farmsKey = "farms";
|
7
|
+
export declare const dlmmVaultsKey = "dlmm-vaults-1";
|
7
8
|
export declare const vaultsProgramId: PublicKey;
|
8
9
|
export declare const poolsProgramId: PublicKey;
|
9
10
|
export declare const farmProgramId: PublicKey;
|
10
11
|
export declare const dlmmProgramId: PublicKey;
|
12
|
+
export declare const dlmmVaultProgramId: PublicKey;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.dlmmProgramId = exports.farmProgramId = exports.poolsProgramId = exports.vaultsProgramId = exports.farmsKey = exports.prefixVaults = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.dlmmVaultProgramId = exports.dlmmProgramId = exports.farmProgramId = exports.poolsProgramId = exports.vaultsProgramId = exports.dlmmVaultsKey = exports.farmsKey = exports.prefixVaults = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'meteora';
|
6
6
|
exports.platform = {
|
@@ -12,8 +12,10 @@ exports.platform = {
|
|
12
12
|
};
|
13
13
|
exports.prefixVaults = `${exports.platformId}-vaults`;
|
14
14
|
exports.farmsKey = 'farms';
|
15
|
+
exports.dlmmVaultsKey = 'dlmm-vaults-1';
|
15
16
|
exports.vaultsProgramId = new web3_js_1.PublicKey('24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi');
|
16
17
|
exports.poolsProgramId = new web3_js_1.PublicKey('Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB');
|
17
18
|
exports.farmProgramId = new web3_js_1.PublicKey('FarmuwXPWXvefWUeqFAa5w6rifLkq5X6E8bimYvrhCB1');
|
18
19
|
exports.dlmmProgramId = new web3_js_1.PublicKey('LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo');
|
20
|
+
exports.dlmmVaultProgramId = new web3_js_1.PublicKey('vaU6kP7iNEGkbmPkLmZfGwiGxd4Mob24QQCie5R9kd2');
|
19
21
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,qBAAqB;CAC/B,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,QAAQ,GAAG,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,qBAAqB;CAC/B,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,6CAA6C,CAC9C,CAAC"}
|
@@ -120,6 +120,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
120
120
|
const positionData = (0, dlmmHelper_1.processPosition)(constants_1.dlmmProgramId, positionVersion, lbPairAcc, account, baseTokenDecimal, quoteTokenDecimal, lowerBinArray, upperBinArray);
|
121
121
|
const assets = [];
|
122
122
|
const rewardAssets = [];
|
123
|
+
const tags = [];
|
123
124
|
if (positionData &&
|
124
125
|
(!positionData.totalXAmount.isZero() ||
|
125
126
|
!positionData.totalYAmount.isZero())) {
|
@@ -151,6 +152,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
151
152
|
yields: [],
|
152
153
|
},
|
153
154
|
];
|
155
|
+
const activeBinInPosition = positionData.positionBinData.find((bin) => bin.binXAmount !== '0' && bin.binYAmount !== '0');
|
156
|
+
if (!activeBinInPosition)
|
157
|
+
tags.push('Out Of Range');
|
154
158
|
elements.push({
|
155
159
|
type: portfolio_core_1.PortfolioElementType.liquidity,
|
156
160
|
label: 'LiquidityPool',
|
@@ -158,6 +162,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
158
162
|
platformId: constants_1.platformId,
|
159
163
|
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
160
164
|
name: 'DLMM',
|
165
|
+
tags,
|
161
166
|
data: {
|
162
167
|
liquidities,
|
163
168
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dlmmPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAwD;AACxD,iDAAsD;AACtD,+CAI4B;AAC5B,qCAOkB;AAClB,uCAGmB;AACnB,6CAIsB;AACtB,mCAA0C;AAC1C,gGAA6F;AAC7F,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;IAExC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAoB,EACpB,yBAAa,EACb,IAAA,mCAAyB,EAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CACjD;QACD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAo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,EAAE;oBACJ,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"dlmmPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAAwD;AACxD,iDAAsD;AACtD,+CAI4B;AAC5B,qCAOkB;AAClB,uCAGmB;AACnB,6CAIsB;AACtB,mCAA0C;AAC1C,gGAA6F;AAC7F,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,UAAU,GAAG,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC;IAExC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACnD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAoB,EACpB,yBAAa,EACb,IAAA,mCAAyB,EAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CACjD;QACD,IAAA,iCAAwB,EACtB,MAAM,EACN,6BAAoB,EACpB,yBAAa,EACb,IAAA,qCAA2B,EAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CACnD;KACF,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,CAAC,GAAG,WAAW,EAAE,GAAG,WAAW,CAAC,CAAC;IACnD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IA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K,CAAC,CAAC;gBACtD,IAAI,EAAE,MAAM;gBACZ,IAAI;gBACJ,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,157 @@
|
|
1
|
+
"use strict";
|
2
|
+
// DLMM Bootstrapping Pools
|
3
|
+
// DLMM Alpha Vault
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
11
|
+
});
|
12
|
+
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
18
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
19
|
+
const clients_1 = require("../../utils/clients");
|
20
|
+
const constants_1 = require("./constants");
|
21
|
+
const solana_1 = require("../../utils/solana");
|
22
|
+
const struct_1 = require("./struct");
|
23
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
24
|
+
const slotTtl = 30000;
|
25
|
+
let slot = null;
|
26
|
+
let slotUpdate = 0;
|
27
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
28
|
+
const client = (0, clients_1.getClientSolana)();
|
29
|
+
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.escrowStruct, constants_1.dlmmVaultProgramId, [
|
30
|
+
{ dataSize: struct_1.escrowStruct.byteSize },
|
31
|
+
{
|
32
|
+
memcmp: {
|
33
|
+
offset: 40,
|
34
|
+
bytes: owner,
|
35
|
+
},
|
36
|
+
},
|
37
|
+
// {
|
38
|
+
// memcmp: {
|
39
|
+
// offset: 8,
|
40
|
+
// bytes: 'CGZvC5MWsu1bc3vRis619ZBEtvuPqoXrtBMeV9RrKFJp',
|
41
|
+
// },
|
42
|
+
// },
|
43
|
+
// {
|
44
|
+
// memcmp: {
|
45
|
+
// offset: 96,
|
46
|
+
// bytes: '1', // refunded === false
|
47
|
+
// },
|
48
|
+
// },
|
49
|
+
]);
|
50
|
+
if (accounts.length === 0)
|
51
|
+
return [];
|
52
|
+
const vaults = yield cache.getItem(constants_1.dlmmVaultsKey, {
|
53
|
+
prefix: constants_1.platformId,
|
54
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
55
|
+
});
|
56
|
+
if (!vaults)
|
57
|
+
return [];
|
58
|
+
if (!slot || Date.now() - slotTtl > slotUpdate) {
|
59
|
+
slot = yield client.getSlot();
|
60
|
+
slotUpdate = Date.now();
|
61
|
+
}
|
62
|
+
if (!slot)
|
63
|
+
return [];
|
64
|
+
const tokenPrices = yield cache.getTokenPricesAsMap(accounts
|
65
|
+
.map((a) => {
|
66
|
+
const v = vaults[a.dlmmVault.toString()];
|
67
|
+
return [v.baseMint, v.quoteMint];
|
68
|
+
})
|
69
|
+
.flat(), portfolio_core_1.NetworkId.solana);
|
70
|
+
const assets = [];
|
71
|
+
accounts.forEach((escrow) => {
|
72
|
+
if (!slot)
|
73
|
+
return;
|
74
|
+
const vault = vaults[escrow.dlmmVault.toString()];
|
75
|
+
if (!vault)
|
76
|
+
return;
|
77
|
+
// Vesting not started yet
|
78
|
+
if (slot < Number(vault.startVestingSlot)) {
|
79
|
+
const tpQuote = tokenPrices.get(vault.quoteMint);
|
80
|
+
if (!tpQuote)
|
81
|
+
return;
|
82
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, new bignumber_js_1.default(escrow.totalDeposit)
|
83
|
+
.div(Math.pow(10, tpQuote.decimals))
|
84
|
+
.toNumber(), portfolio_core_1.NetworkId.solana, tpQuote, undefined, {}));
|
85
|
+
}
|
86
|
+
else {
|
87
|
+
// Vesting started
|
88
|
+
// If not refunded yet
|
89
|
+
const filledRatio = new bignumber_js_1.default(vault.totalDeposit)
|
90
|
+
.div(vault.maxCap)
|
91
|
+
.toNumber();
|
92
|
+
if (escrow.refunded === 0 && filledRatio > 1) {
|
93
|
+
const tpQuote = tokenPrices.get(vault.quoteMint);
|
94
|
+
if (!tpQuote)
|
95
|
+
return;
|
96
|
+
const amount = new bignumber_js_1.default(escrow.totalDeposit)
|
97
|
+
.div(Math.pow(10, tpQuote.decimals))
|
98
|
+
.times(1 - 1 / filledRatio)
|
99
|
+
.toNumber();
|
100
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.quoteMint, amount, portfolio_core_1.NetworkId.solana, tpQuote, undefined, {
|
101
|
+
isClaimable: true,
|
102
|
+
}));
|
103
|
+
}
|
104
|
+
const tpBase = tokenPrices.get(vault.baseMint);
|
105
|
+
if (!tpBase)
|
106
|
+
return;
|
107
|
+
const shares = new bignumber_js_1.default(escrow.totalDeposit).div(vault.totalDeposit);
|
108
|
+
const totalAmount = new bignumber_js_1.default(vault.boughtToken).times(shares);
|
109
|
+
const remainingAmount = totalAmount.minus(escrow.claimedToken);
|
110
|
+
if (remainingAmount.isZero())
|
111
|
+
return;
|
112
|
+
let claimableAmount = new bignumber_js_1.default(remainingAmount.toString());
|
113
|
+
if (slot < Number(vault.endVestingSlot)) {
|
114
|
+
const amountPerSlot = new bignumber_js_1.default(totalAmount).div(Number(vault.endVestingSlot) - Number(vault.startVestingSlot));
|
115
|
+
let lastClaimedSlot = escrow.lastClaimedSlot.isZero()
|
116
|
+
? Number(vault.startVestingSlot)
|
117
|
+
: escrow.lastClaimedSlot.toNumber();
|
118
|
+
if (lastClaimedSlot > slot)
|
119
|
+
lastClaimedSlot = slot;
|
120
|
+
claimableAmount = amountPerSlot.times(Math.min(slot, Number(vault.endVestingSlot)) - lastClaimedSlot);
|
121
|
+
}
|
122
|
+
if (claimableAmount.isGreaterThan(0)) {
|
123
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, claimableAmount.div(Math.pow(10, tpBase.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
124
|
+
isClaimable: true,
|
125
|
+
}));
|
126
|
+
}
|
127
|
+
const vestingAmount = remainingAmount.minus(claimableAmount);
|
128
|
+
if (vestingAmount.isGreaterThan(0)) {
|
129
|
+
assets.push((0, tokenPriceToAssetToken_1.default)(vault.baseMint, vestingAmount.div(Math.pow(10, tpBase.decimals)).toNumber(), portfolio_core_1.NetworkId.solana, tpBase, undefined, {
|
130
|
+
tags: ['Vesting'],
|
131
|
+
}));
|
132
|
+
}
|
133
|
+
}
|
134
|
+
});
|
135
|
+
if (assets.length === 0)
|
136
|
+
return [];
|
137
|
+
return [
|
138
|
+
{
|
139
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
140
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
141
|
+
label: 'Vesting',
|
142
|
+
platformId: constants_1.platformId,
|
143
|
+
name: 'Alpha Vault',
|
144
|
+
data: {
|
145
|
+
assets,
|
146
|
+
},
|
147
|
+
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
148
|
+
},
|
149
|
+
];
|
150
|
+
});
|
151
|
+
const fetcher = {
|
152
|
+
id: `${constants_1.platformId}-dlmm-vaults`,
|
153
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
154
|
+
executor,
|
155
|
+
};
|
156
|
+
exports.default = fetcher;
|
157
|
+
//# sourceMappingURL=dlmmVaultsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dlmmVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsFetcher.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAC3B,mBAAmB;;;;;;;;;;;;;;AAEnB,+DAKoC;AACpC,gEAAqC;AAGrC,iDAAsD;AACtD,2CAA4E;AAE5E,+CAA8D;AAC9D,qCAAwC;AACxC,qGAA6E;AAE7E,MAAM,OAAO,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,GAAkB,IAAI,CAAC;AAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;AAEnB,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,qBAAY,EACZ,8BAAkB,EAClB;QACE,EAAE,QAAQ,EAAE,qBAAY,CAAC,QAAQ,EAAE;QACnC;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;QACD,IAAI;QACJ,cAAc;QACd,iBAAiB;QACjB,6DAA6D;QAC7D,OAAO;QACP,KAAK;QACL,IAAI;QACJ,cAAc;QACd,kBAAkB;QAClB,wCAAwC;QACxC,OAAO;QACP,KAAK;KACN,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAAmB,yBAAa,EAAE;QAClE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;IACH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AC;YAED,MAAM,aAAa,GAAG,eAAe,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YAC7D,IAAI,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnC,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,KAAK,CAAC,QAAQ,EACd,aAAa,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,MAAM,CAAC,QAAQ,CAAA,CAAC,CAAC,QAAQ,EAAE,EACnD,0BAAS,CAAC,MAAM,EAChB,MAAM,EACN,SAAS,EACT;oBACE,IAAI,EAAE,CAAC,SAAS,CAAC;iBAClB,CACF,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,OAAO;QACL;YACE,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const clients_1 = require("../../utils/clients");
|
14
|
+
const solana_1 = require("../../utils/solana");
|
15
|
+
const filters_1 = require("../../utils/solana/filters");
|
16
|
+
const constants_1 = require("./constants");
|
17
|
+
const struct_1 = require("./struct");
|
18
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
const client = (0, clients_1.getClientSolana)();
|
20
|
+
const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.dlmmVaultStruct, constants_1.dlmmVaultProgramId, (0, filters_1.dataSizeFilter)(struct_1.dlmmVaultStruct.byteSize));
|
21
|
+
const vaults = {};
|
22
|
+
accounts.forEach((acc) => {
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
24
|
+
const newAcc = Object.assign(Object.assign({}, acc), { pubkey: acc.pubkey.toString() });
|
25
|
+
if (newAcc.baseMint === 'SENDdRQtYMWaQrBroBrJ2Q53fgVuq95CV9UPGEvpCxa') {
|
26
|
+
console.log('newAcc:', newAcc);
|
27
|
+
}
|
28
|
+
delete newAcc['buffer'];
|
29
|
+
delete newAcc['padding0'];
|
30
|
+
delete newAcc['padding'];
|
31
|
+
vaults[acc.pubkey.toString()] = newAcc;
|
32
|
+
});
|
33
|
+
yield cache.setItem(constants_1.dlmmVaultsKey, vaults, {
|
34
|
+
prefix: constants_1.platformId,
|
35
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
36
|
+
});
|
37
|
+
});
|
38
|
+
const job = {
|
39
|
+
id: `${constants_1.platformId}-dlmm-vaults`,
|
40
|
+
executor,
|
41
|
+
label: 'normal',
|
42
|
+
};
|
43
|
+
exports.default = job;
|
44
|
+
//# sourceMappingURL=dlmmVaultsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dlmmVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/dlmmVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA8D;AAC9D,wDAA4D;AAC5D,2CAA4E;AAC5E,qCAA2C;AAG3C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,wBAAe,EACf,8BAAkB,EAClB,IAAA,wBAAc,EAAC,wBAAe,CAAC,QAAQ,CAAC,CACzC,CAAC;IACF,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,8DAA8D;QAC9D,MAAM,MAAM,mCACP,GAAG,KACN,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,GAC9B,CAAC;QACF,IAAI,MAAM,CAAC,QAAQ,KAAK,6CAA6C,EAAE,CAAC;YACtE,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;QAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;QACzB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,MAAM,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,MAAM,EAAE;QACzC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,cAAc;IAC/B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -8,10 +8,22 @@ const vaultsJob_1 = __importDefault(require("./vaultsJob"));
|
|
8
8
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
9
9
|
const multiTokenPoolsJob_1 = __importDefault(require("./multiTokenPoolsJob"));
|
10
10
|
const farmsJob_1 = __importDefault(require("./farmsJob"));
|
11
|
+
const dlmmVaultsJob_1 = __importDefault(require("./dlmmVaultsJob"));
|
11
12
|
const constants_1 = require("./constants");
|
12
13
|
const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
|
13
14
|
const dlmmPositionsFetcher_1 = __importDefault(require("./dlmmPositionsFetcher"));
|
15
|
+
const dlmmVaultsFetcher_1 = __importDefault(require("./dlmmVaultsFetcher"));
|
14
16
|
exports.platforms = [constants_1.platform];
|
15
|
-
exports.jobs = [
|
16
|
-
|
17
|
+
exports.jobs = [
|
18
|
+
vaultsJob_1.default,
|
19
|
+
poolsJob_1.default,
|
20
|
+
farmsJob_1.default,
|
21
|
+
multiTokenPoolsJob_1.default,
|
22
|
+
dlmmVaultsJob_1.default,
|
23
|
+
];
|
24
|
+
exports.fetchers = [
|
25
|
+
farmsFetcher_1.default,
|
26
|
+
dlmmPositionsFetcher_1.default,
|
27
|
+
dlmmVaultsFetcher_1.default,
|
28
|
+
];
|
17
29
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/index.ts"],"names":[],"mappings":";;;;;;AACA,4DAAoC;AACpC,0DAAkC;AAClC,8EAAsD;AACtD,0DAAkC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/index.ts"],"names":[],"mappings":";;;;;;AACA,4DAAoC;AACpC,0DAAkC;AAClC,8EAAsD;AACtD,0DAAkC;AAClC,oEAA4C;AAG5C,2CAAuC;AACvC,kEAA0C;AAC1C,kFAAyD;AACzD,4EAAoD;AAEvC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU;IACzB,mBAAS;IACT,kBAAQ;IACR,kBAAQ;IACR,4BAAkB;IAClB,uBAAa;CACd,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,sBAAY;IACZ,8BAAmB;IACnB,2BAAiB;CAClB,CAAC"}
|
@@ -252,3 +252,38 @@ export type BinArray = {
|
|
252
252
|
bins: Bin[];
|
253
253
|
};
|
254
254
|
export declare const binArrayStruct: BeetStruct<BinArray, Partial<BinArray>>;
|
255
|
+
export type Escrow = {
|
256
|
+
buffer: Buffer;
|
257
|
+
dlmmVault: PublicKey;
|
258
|
+
owner: PublicKey;
|
259
|
+
totalDeposit: BigNumber;
|
260
|
+
claimedToken: BigNumber;
|
261
|
+
lastClaimedSlot: BigNumber;
|
262
|
+
refunded: number;
|
263
|
+
padding1: number[];
|
264
|
+
padding: BigNumber[];
|
265
|
+
};
|
266
|
+
export declare const escrowStruct: BeetStruct<Escrow, Partial<Escrow>>;
|
267
|
+
export type DlmmVault = {
|
268
|
+
buffer: Buffer;
|
269
|
+
lbPair: string;
|
270
|
+
tokenVault: string;
|
271
|
+
tokenOutVault: string;
|
272
|
+
quoteMint: string;
|
273
|
+
baseMint: string;
|
274
|
+
base: string;
|
275
|
+
owner: string;
|
276
|
+
maxCap: string;
|
277
|
+
totalDeposit: string;
|
278
|
+
totalEscrow: string;
|
279
|
+
swappedAmount: string;
|
280
|
+
boughtToken: string;
|
281
|
+
totalRefund: string;
|
282
|
+
totalClaimedToken: string;
|
283
|
+
startVestingSlot: string;
|
284
|
+
endVestingSlot: string;
|
285
|
+
bump: number;
|
286
|
+
padding0: number[];
|
287
|
+
padding: Buffer;
|
288
|
+
};
|
289
|
+
export declare const dlmmVaultStruct: BeetStruct<DlmmVault, Partial<DlmmVault>>;
|