@sonarwatch/portfolio-plugins 0.14.124 → 0.14.125
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 +2102 -2098
- 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/adrena/stakingFetcher.js +2 -0
- package/src/plugins/adrena/stakingFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/baskt/constants.d.ts +4 -1
- package/src/plugins/baskt/constants.js +3 -2
- package/src/plugins/baskt/constants.js.map +1 -1
- package/src/plugins/baskt/index.js +1 -5
- package/src/plugins/baskt/index.js.map +1 -1
- package/src/plugins/baskt/marketsJob.js +62 -4
- package/src/plugins/baskt/marketsJob.js.map +1 -1
- package/src/plugins/baskt/structs.d.ts +29 -14
- package/src/plugins/baskt/structs.js +27 -14
- package/src/plugins/baskt/structs.js.map +1 -1
- package/src/plugins/debridge/constants.js +2 -2
- package/src/plugins/debridge/constants.js.map +1 -1
- package/src/plugins/grass/stakingFetcher.js +2 -0
- package/src/plugins/grass/stakingFetcher.js.map +1 -1
- package/src/plugins/jupiter/governance/voteFetcher.js +6 -1
- package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -1
- package/src/plugins/lulo/depositsFetcher.js +46 -29
- package/src/plugins/lulo/depositsFetcher.js.map +1 -1
- package/src/plugins/lulo/poolsJob.d.ts +2 -0
- package/src/plugins/lulo/poolsJob.js +12 -1
- package/src/plugins/lulo/poolsJob.js.map +1 -1
- package/src/plugins/lulo/types.d.ts +20 -0
- package/src/plugins/lulo/types.js +3 -0
- package/src/plugins/lulo/types.js.map +1 -0
- package/src/plugins/magiceden/stakingFetcher.js +5 -1
- package/src/plugins/magiceden/stakingFetcher.js.map +1 -1
- package/src/plugins/marginfi/banksJob.js +1 -1
- package/src/plugins/marginfi/banksJob.js.map +1 -1
- package/src/plugins/marginfi/helpers.js +5 -0
- package/src/plugins/marginfi/helpers.js.map +1 -1
- package/src/plugins/nosana/stakingFetcher.js +16 -22
- package/src/plugins/nosana/stakingFetcher.js.map +1 -1
- package/src/plugins/nxfinance/stakingFetcher.js +3 -0
- package/src/plugins/nxfinance/stakingFetcher.js.map +1 -1
- package/src/plugins/nxfinance/types.d.ts +1 -0
- package/src/plugins/pyth/stakingFetcher.js +5 -1
- package/src/plugins/pyth/stakingFetcher.js.map +1 -1
- package/src/plugins/sanctum/constants.d.ts +4 -0
- package/src/plugins/sanctum/constants.js +3 -1
- package/src/plugins/sanctum/constants.js.map +1 -1
- package/src/plugins/sanctum/index.js +2 -1
- package/src/plugins/sanctum/index.js.map +1 -1
- package/src/plugins/sanctum/stakingFetcher.js +54 -0
- package/src/plugins/sanctum/stakingFetcher.js.map +1 -0
- package/src/plugins/sanctum/struct.d.ts +29 -0
- package/src/plugins/sanctum/struct.js +28 -0
- package/src/plugins/sanctum/struct.js.map +1 -0
- package/src/plugins/sonic/stakingFetcher.js +2 -0
- package/src/plugins/sonic/stakingFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tokens/fetchers/solana.js +2 -7
- package/src/plugins/tokens/fetchers/solana.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/wormhole/stakingFetcher.js +2 -0
- package/src/plugins/wormhole/stakingFetcher.js.map +1 -1
- package/src/plugins/x-staking-solana/constants.js +9 -0
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/plugins/zeta/stakingFetcher.js +13 -15
- package/src/plugins/zeta/stakingFetcher.js.map +1 -1
- package/src/utils/elementbuilder/AssetGenericBuilder.js +4 -0
- package/src/utils/elementbuilder/AssetGenericBuilder.js.map +1 -1
- package/src/utils/elementbuilder/AssetTokenBuilder.d.ts +7 -1
- package/src/utils/elementbuilder/AssetTokenBuilder.js +5 -1
- package/src/utils/elementbuilder/AssetTokenBuilder.js.map +1 -1
- package/src/utils/elementbuilder/Params.d.ts +6 -0
- package/src/utils/misc/tokenPriceToLiquidity.js +1 -0
- package/src/utils/misc/tokenPriceToLiquidity.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/plugins/baskt/positionsFetcher.js +0 -52
- package/src/plugins/baskt/positionsFetcher.js.map +0 -1
- /package/src/plugins/{baskt/positionsFetcher.d.ts → sanctum/stakingFetcher.d.ts} +0 -0
package/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# @sonarwatch/portfolio-plugins
|
2
|
-
|
3
|
-
This library is @sonarwatch/portfolio-plugins
|
1
|
+
# @sonarwatch/portfolio-plugins
|
2
|
+
|
3
|
+
This library is @sonarwatch/portfolio-plugins
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -173,6 +173,7 @@ const pluto_1 = require("./plugins/pluto");
|
|
173
173
|
const layer3_1 = require("./plugins/layer3");
|
174
174
|
const puffcoin_1 = require("./plugins/puffcoin");
|
175
175
|
const triad_1 = require("./plugins/triad");
|
176
|
+
const baskt_1 = require("./plugins/baskt");
|
176
177
|
const coingecko_1 = require("./plugins/coingecko");
|
177
178
|
var constants_1 = require("./plugins/tokens/constants");
|
178
179
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
@@ -340,6 +341,7 @@ exports.platforms = [
|
|
340
341
|
...layer3_1.platforms,
|
341
342
|
...puffcoin_1.platforms,
|
342
343
|
...triad_1.platforms,
|
344
|
+
...baskt_1.platforms,
|
343
345
|
];
|
344
346
|
// JOBS //
|
345
347
|
exports.jobs = [
|
@@ -486,6 +488,7 @@ exports.jobs = [
|
|
486
488
|
...defituna_1.jobs,
|
487
489
|
...iloop_1.jobs,
|
488
490
|
...sonic_1.jobs,
|
491
|
+
...baskt_1.jobs,
|
489
492
|
...coingecko_1.jobs,
|
490
493
|
...pluto_1.jobs,
|
491
494
|
...layer3_1.jobs,
|
@@ -642,6 +645,7 @@ exports.fetchers = [
|
|
642
645
|
...layer3_1.fetchers,
|
643
646
|
...puffcoin_1.fetchers,
|
644
647
|
...triad_1.fetchers,
|
648
|
+
...baskt_1.fetchers,
|
645
649
|
];
|
646
650
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
647
651
|
exports.airdropFetchers = [
|
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,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAI0B;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,6CAK0B;AAC1B,6CAI0B;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,yCAIwB;AACxB,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAKwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CA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,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,qBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,wBAAqB;IACxB,GAAG,mBAAgB;IACnB,GAAG,sBAAmB;IACtB,GAAG,wBAAqB;IACxB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;CACjB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;IAC1B,wBAAqB;IACrB,wBAAqB;IACrB,sBAAmB;IACnB,GAAG,4BAAyB;IAC5B,0BAAuB;IACvB,+BAA+B;IAC/B,qBAAkB;IAClB,GAAG,8BAAqB;IACxB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDA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BAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,gBAAa;CACjB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;IAC1B,wBAAqB;IACrB,wBAAqB;IACrB,sBAAmB;IACnB,GAAG,4BAAyB;IAC5B,0BAAuB;IACvB,+BAA+B;IAC/B,qBAAkB;IAClB,GAAG,8BAAqB;IACxB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -33,6 +33,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
33
33
|
const alpElement = elementRegistry.addElementMultiple({
|
34
34
|
label: 'Staked',
|
35
35
|
link: 'https://app.adrena.xyz/stake',
|
36
|
+
ref: alpStakingAccount.pubkey.toString(),
|
36
37
|
});
|
37
38
|
for (const lockStake of alpStakingAccount.lockedStakes) {
|
38
39
|
alpElement.addAsset({
|
@@ -48,6 +49,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
48
49
|
const adxElement = elementRegistry.addElementMultiple({
|
49
50
|
label: 'Staked',
|
50
51
|
link: 'https://app.adrena.xyz/stake',
|
52
|
+
ref: adxStakingAccount.pubkey.toString(),
|
51
53
|
});
|
52
54
|
for (const lockStake of adxStakingAccount.lockedStakes) {
|
53
55
|
adxElement.addAsset({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA2D;AAE3D,gFAA6E;AAC7E,uCAA8C;AAC9C,+CAAmE;AACnE,uCAA6E;AAC7E,iDAAsD;AAEtD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,GAAG;QACnD,IAAA,iCAAuB,EAAC,KAAK,CAAC;QAC9B,IAAA,iCAAuB,EAAC,KAAK,CAAC;KAC/B,CAAC;IACF,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,GAC1C,MAAM,IAAA,sCAA6B,EAAC,MAAM,EAAE,2BAAiB,EAAE;QAC7D,oBAAoB;QACpB,oBAAoB;KACrB,CAAC,CAAC;IAEL,IAAI,CAAC,iBAAiB,IAAI,CAAC,iBAAiB;QAAE,OAAO,EAAE,CAAC;IAExD,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAE1E,IAAI,iBAAiB,EAAE,CAAC;QACtB,MAAM,UAAU,GAAG,eAAe,CAAC,kBAAkB,CAAC;YACpD,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,8BAA8B;
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/adrena/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAA2D;AAE3D,gFAA6E;AAC7E,uCAA8C;AAC9C,+CAAmE;AACnE,uCAA6E;AAC7E,iDAAsD;AAEtD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,oBAAoB,E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AAC,QAAQ,CAAC;gBAClB,OAAO,EAAE,mBAAO;gBAChB,MAAM,EAAE,SAAS,CAAC,SAAS;gBAC3B,UAAU,EAAE;oBACV,WAAW,EAAE,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;iBAC3D;aACF,CAAC,CAAC;QACL,CAAC;QACD,UAAU,CAAC,QAAQ,CAAC;YAClB,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAAC,SAAS;YAC/C,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -1,4 +1,7 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
+
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
1
3
|
import { Platform } from '@sonarwatch/portfolio-core';
|
4
|
+
import { PublicKey } from '@solana/web3.js';
|
2
5
|
export declare const platformId = "baskt";
|
3
6
|
export declare const platform: Platform;
|
4
|
-
export declare const
|
7
|
+
export declare const programId: PublicKey;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.programId = exports.platform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
4
5
|
exports.platformId = 'baskt';
|
5
6
|
exports.platform = {
|
6
7
|
id: exports.platformId,
|
@@ -9,5 +10,5 @@ exports.platform = {
|
|
9
10
|
website: 'https://www.baskt.fun/',
|
10
11
|
twitter: 'https://x.com/basktdotfun',
|
11
12
|
};
|
12
|
-
exports.
|
13
|
+
exports.programId = new web3_js_1.PublicKey('EspF2G85CDschNBBrzCARnrmykGAbwDjjzQE1DQXXGLx');
|
13
14
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC"}
|
@@ -1,12 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
4
|
const constants_1 = require("./constants");
|
8
|
-
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
9
5
|
exports.platforms = [constants_1.platform];
|
10
|
-
exports.jobs = [
|
6
|
+
exports.jobs = [];
|
11
7
|
exports.fetchers = [];
|
12
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -9,12 +9,70 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const web3_js_1 = require("@solana/web3.js");
|
12
14
|
const constants_1 = require("./constants");
|
15
|
+
const clients_1 = require("../../utils/clients");
|
16
|
+
const solana_1 = require("../../utils/solana");
|
17
|
+
const structs_1 = require("./structs");
|
18
|
+
const getDecimals_1 = require("../../utils/solana/getDecimals");
|
13
19
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
const connection = (0, clients_1.getClientSolana)();
|
21
|
+
const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.vaultStateStruct, constants_1.programId, [{ memcmp: { offset: 0, bytes: 'fGKsWeCxBaF' } }, { dataSize: 3104 }]);
|
22
|
+
if (!accounts.length)
|
23
|
+
return;
|
24
|
+
const solTokenPrice = yield cache.getTokenPrice(portfolio_core_1.solanaNativeWrappedAddress, portfolio_core_1.NetworkId.solana);
|
25
|
+
if (!solTokenPrice)
|
26
|
+
return;
|
27
|
+
const tokenPriceSources = [];
|
28
|
+
for (const acc of accounts) {
|
29
|
+
const liquidityName = (0, solana_1.u8ArrayToString)(acc.vault_name);
|
30
|
+
if (liquidityName !== 'aiBASKT')
|
31
|
+
continue;
|
32
|
+
const vaultTokenMint = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('vault_token_mint'), acc.pubkey.toBuffer()], constants_1.programId)[0];
|
33
|
+
const vaultAuthMint = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('vault_auth'), acc.pubkey.toBuffer()], constants_1.programId)[0];
|
34
|
+
const [solReserve, solReserve2, decimals] = yield Promise.all([
|
35
|
+
connection.getBalance(vaultAuthMint),
|
36
|
+
connection.getBalance(acc.vault_asset_holder),
|
37
|
+
(0, getDecimals_1.getDecimals)(connection, vaultTokenMint),
|
38
|
+
]);
|
39
|
+
if (!decimals)
|
40
|
+
return;
|
41
|
+
console.log('total_value_in_sol', acc.total_value_in_sol.toNumber());
|
42
|
+
console.log('total_supply', acc.total_supply.toNumber());
|
43
|
+
console.log('solReserve', solReserve + solReserve2);
|
44
|
+
console.log(acc.total_value_in_sol
|
45
|
+
.plus(solReserve)
|
46
|
+
.plus(solReserve2)
|
47
|
+
.dividedBy(acc.total_supply)
|
48
|
+
.toNumber());
|
49
|
+
tokenPriceSources.push({
|
50
|
+
id: acc.pubkey.toString(),
|
51
|
+
weight: 1,
|
52
|
+
address: vaultTokenMint.toString(),
|
53
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
54
|
+
platformId: constants_1.platformId,
|
55
|
+
decimals,
|
56
|
+
price: acc.total_value_in_sol
|
57
|
+
.plus(solReserve)
|
58
|
+
.plus(solReserve2)
|
59
|
+
.dividedBy(acc.total_supply)
|
60
|
+
.multipliedBy(solTokenPrice.price)
|
61
|
+
.toNumber(),
|
62
|
+
label: 'LiquidityPool',
|
63
|
+
liquidityName,
|
64
|
+
timestamp: Date.now(),
|
65
|
+
link: `https://www.baskt.fun/indices/${liquidityName}`,
|
66
|
+
sourceRefs: [
|
67
|
+
{
|
68
|
+
name: 'Pool',
|
69
|
+
address: acc.pubkey.toString(),
|
70
|
+
},
|
71
|
+
],
|
72
|
+
});
|
73
|
+
}
|
74
|
+
console.log(tokenPriceSources);
|
75
|
+
yield cache.setTokenPriceSources(tokenPriceSources);
|
18
76
|
});
|
19
77
|
const job = {
|
20
78
|
id: `${constants_1.platformId}-markets`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;
|
1
|
+
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAG5C,2CAAoD;AACpD,iDAAsD;AACtD,+CAA+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,EAAE,MAAM;oBACZ,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;iBAC/B;aACF;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAE/B,MAAM,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AACtD,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"}
|
@@ -1,21 +1,36 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
3
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
4
|
-
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
|
+
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
5
5
|
import { PublicKey } from '@solana/web3.js';
|
6
6
|
import BigNumber from 'bignumber.js';
|
7
|
-
export
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
export type TokenAllocation = {
|
8
|
+
token_mint: PublicKey;
|
9
|
+
token_decimals: number;
|
10
|
+
allocation: number;
|
11
|
+
token_price: BigNumber;
|
12
|
+
token_balance: BigNumber;
|
13
|
+
last_price_update: BigNumber;
|
14
|
+
};
|
15
|
+
export declare const tokenAllocationStruct: BeetStruct<TokenAllocation, Partial<TokenAllocation>>;
|
16
|
+
export type VaultState = {
|
14
17
|
buffer: Buffer;
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
authority: PublicKey;
|
19
|
+
oracle_authority: PublicKey;
|
20
|
+
vault_asset_holder: PublicKey;
|
21
|
+
vault_bump: number;
|
22
|
+
vault_auth_bump: number;
|
23
|
+
vault_token_bump: number;
|
24
|
+
total_value_in_sol: BigNumber;
|
25
|
+
total_supply: BigNumber;
|
26
|
+
vault_name: number[];
|
27
|
+
vault_version: number;
|
28
|
+
paused: boolean;
|
29
|
+
deposit_paused: boolean;
|
30
|
+
creation_time: BigNumber;
|
31
|
+
last_operation_time: BigNumber;
|
32
|
+
token_allocations: TokenAllocation[];
|
33
|
+
deposit_fees: BigNumber;
|
34
|
+
redeem_fees: BigNumber;
|
20
35
|
};
|
21
|
-
export declare const
|
36
|
+
export declare const vaultStateStruct: FixableBeetStruct<VaultState, Partial<VaultState>>;
|
@@ -1,22 +1,35 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.vaultStateStruct = exports.tokenAllocationStruct = void 0;
|
4
4
|
const beet_1 = require("@metaplex-foundation/beet");
|
5
5
|
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
6
|
const solana_1 = require("../../utils/solana");
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
exports.tokenAllocationStruct = new beet_1.BeetStruct([
|
8
|
+
['token_mint', beet_solana_1.publicKey],
|
9
|
+
['token_decimals', beet_1.u8],
|
10
|
+
['allocation', beet_1.u8],
|
11
|
+
['token_price', solana_1.u64],
|
12
|
+
['token_balance', solana_1.u64],
|
13
|
+
['last_price_update', solana_1.i64],
|
14
|
+
], (args) => args);
|
15
|
+
exports.vaultStateStruct = new beet_1.FixableBeetStruct([
|
15
16
|
['buffer', (0, solana_1.blob)(8)],
|
16
|
-
['
|
17
|
-
['
|
18
|
-
['
|
19
|
-
['
|
20
|
-
['
|
17
|
+
['authority', beet_solana_1.publicKey],
|
18
|
+
['oracle_authority', beet_solana_1.publicKey],
|
19
|
+
['vault_asset_holder', beet_solana_1.publicKey],
|
20
|
+
['vault_bump', beet_1.u8],
|
21
|
+
['vault_auth_bump', beet_1.u8],
|
22
|
+
['vault_token_bump', beet_1.u8],
|
23
|
+
['total_value_in_sol', solana_1.u64],
|
24
|
+
['total_supply', solana_1.u64],
|
25
|
+
['vault_name', (0, beet_1.array)(beet_1.u8)],
|
26
|
+
['vault_version', beet_1.u8],
|
27
|
+
['paused', beet_1.bool],
|
28
|
+
['deposit_paused', beet_1.bool],
|
29
|
+
['creation_time', solana_1.i64],
|
30
|
+
['last_operation_time', solana_1.i64],
|
31
|
+
['token_allocations', (0, beet_1.array)(exports.tokenAllocationStruct)],
|
32
|
+
['deposit_fees', beet_1.u16],
|
33
|
+
['redeem_fees', beet_1.u16],
|
21
34
|
], (args) => args);
|
22
35
|
//# sourceMappingURL=structs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/structs.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/baskt/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAAoD;AAWvC,QAAA,qBAAqB,GAAG,IAAI,iBAAU,CACjD;IACE,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,gBAAgB,EAAE,SAAE,CAAC;IACtB,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,mBAAmB,EAAE,YAAG,CAAC;CAC3B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAuB,CAClC,CAAC;AAuBW,QAAA,gBAAgB,GAAG,IAAI,wBAAiB,CACnD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,kBAAkB,EAAE,uBAAS,CAAC;IAC/B,CAAC,oBAAoB,EAAE,uBAAS,CAAC;IACjC,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,iBAAiB,EAAE,SAAE,CAAC;IACvB,CAAC,kBAAkB,EAAE,SAAE,CAAC;IACxB,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,YAAY,EAAE,IAAA,YAAK,EAAC,SAAE,CAAC,CAAC;IACzB,CAAC,eAAe,EAAE,SAAE,CAAC;IACrB,CAAC,QAAQ,EAAE,WAAI,CAAC;IAChB,CAAC,gBAAgB,EAAE,WAAI,CAAC;IACxB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,qBAAqB,EAAE,YAAG,CAAC;IAC5B,CAAC,mBAAmB,EAAE,IAAA,YAAK,EAAC,6BAAqB,CAAC,CAAC;IACnD,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,aAAa,EAAE,UAAG,CAAC;CACrB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC"}
|
@@ -17,8 +17,8 @@ exports.commonStatics = {
|
|
17
17
|
emitterName: 'deBridge',
|
18
18
|
image: 'https://sonar.watch/img/platforms/debridge.webp',
|
19
19
|
};
|
20
|
-
exports.firstDistribStatics = Object.assign(Object.assign({}, exports.commonStatics), { id: `${exports.platformId}-dis1`,
|
21
|
-
exports.secondDistribStatics = Object.assign(Object.assign({}, exports.commonStatics), { id: `${exports.platformId}-dis2`,
|
20
|
+
exports.firstDistribStatics = Object.assign(Object.assign({}, exports.commonStatics), { id: `${exports.platformId}-dis1`, claimStart: 1724940000000, claimEnd: 1747440000000 });
|
21
|
+
exports.secondDistribStatics = Object.assign(Object.assign({}, exports.commonStatics), { id: `${exports.platformId}-dis2`, claimStart: 1744876800000, claimEnd: 1747440000000 });
|
22
22
|
exports.dbrMint = 'DBRiDgJAMsM95moTzJs7M9LnkGErpbv9v6CUR1DXnUu5';
|
23
23
|
exports.dbrDecimals = 6;
|
24
24
|
exports.apiUrl = 'https://points-api.debridge.foundation/api/TokenDistribution/';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AAEW,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,qCAAqC;IAChD,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,UAAU;IACvB,KAAK,EAAE,iDAAiD;CACzD,CAAC;AAEW,QAAA,mBAAmB,mCAC3B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/debridge/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,UAAU,EAAE,sCAAsC;CAChE,CAAC;AAEW,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,qCAAqC;IAChD,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,UAAU;IACvB,KAAK,EAAE,iDAAiD;CACzD,CAAC;AAEW,QAAA,mBAAmB,mCAC3B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,UAAU,EAAE,aAAa,EACzB,QAAQ,EAAE,aAAa,IACvB;AAEW,QAAA,oBAAoB,mCAC5B,qBAAa,KAChB,EAAE,EAAE,GAAG,kBAAU,OAAO,EACxB,UAAU,EAAE,aAAa,EACzB,QAAQ,EAAE,aAAa,IACvB;AAEW,QAAA,OAAO,GAAG,8CAA8C,CAAC;AACzD,QAAA,WAAW,GAAG,CAAC,CAAC;AAChB,QAAA,MAAM,GACjB,+DAA+D,CAAC;AAErD,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AACW,QAAA,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC"}
|
@@ -24,6 +24,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
24
24
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
25
25
|
const element = elementRegistry.addElementMultiple({
|
26
26
|
label: 'Staked',
|
27
|
+
ref: userStakeAccount.pubkey.toString(),
|
28
|
+
link: 'https://www.grassfoundation.io/stake',
|
27
29
|
});
|
28
30
|
userStakeAccount.unstake_requests.forEach((req) => {
|
29
31
|
if (req.staking_pool_key.toString() !== portfolio_core_1.solanaNativeAddress) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/grass/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAA4E;AAE5E,2CAAoD;AAEpD,iDAAsD;AACtD,gFAA6E;AAC7E,kFAA+E;AAC/E,uCAAgD;AAChD,uCAAwC;AAExC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,M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YAC5D,MAAM,WAAW,GAAG,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YACjE,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,qBAAS;gBAClB,MAAM,EAAE,GAAG,CAAC,iBAAiB;gBAC7B,UAAU,EAAE;oBACV,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,QAAQ,CAAC;QACf,OAAO,EAAE,qBAAS;QAClB,MAAM,EAAE,gBAAgB,CAAC,aAAa;KACvC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -27,7 +27,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
27
27
|
return [];
|
28
28
|
const partialUnstakingAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.partialUnstakeStruct, constants_1.voteProgramId, (0, filters_1.partialUnstakeFilter)(escrowAccount.pubkey.toString()));
|
29
29
|
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_2.platformId);
|
30
|
-
const element = registry.addElementMultiple({
|
30
|
+
const element = registry.addElementMultiple({
|
31
|
+
label: 'Staked',
|
32
|
+
link: 'https://vote.jup.ag',
|
33
|
+
});
|
31
34
|
element.addAsset({
|
32
35
|
address: constants_1.jupMint,
|
33
36
|
amount: escrowAccount.amount,
|
@@ -36,12 +39,14 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
36
39
|
? undefined
|
37
40
|
: escrowAccount.escrowEndsAt.times(1000).toNumber(),
|
38
41
|
},
|
42
|
+
ref: escrowAccount.pubkey.toString(),
|
39
43
|
});
|
40
44
|
partialUnstakingAccounts.forEach((account) => {
|
41
45
|
element.addAsset({
|
42
46
|
address: constants_1.jupMint,
|
43
47
|
amount: account.amount,
|
44
48
|
attributes: { lockedUntil: account.expiration.times(1000).toNumber() },
|
49
|
+
ref: account.pubkey.toString(),
|
45
50
|
});
|
46
51
|
});
|
47
52
|
return registry.getElements(cache);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"voteFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/voteFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,oDAAyD;AACzD,qFAAkF;AAClF,wCAAwC;AACxC,kDAA0E;AAC1E,sDAAgE;AAChE,2CAAyC;AACzC,kDAAiE;AACjE,wCAAkD;AAClD,mFAAgF;AAEhF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;IACvC,MAAM,aAAa,GAAG,MAAM,IAAA,2CAAoB,EAC9C,MAAM,EACN,sBAAY,EACZ,YAAY,CACb,CAAC;IACF,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAC;IAE9B,MAAM,wBAAwB,GAAG,MAAM,IAAA,iCAAwB,EAC7D,MAAM,EACN,8BAAoB,EACpB,yBAAa,EACb,IAAA,8BAAoB,EAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CACtD,CAAC;IAEF,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAEnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC,
|
1
|
+
{"version":3,"file":"voteFetcher.js","sourceRoot":"","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AM,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAC;IAEH,wBAAwB,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3C,OAAO,CAAC,QAAQ,CAAC;YACf,OAAO,EAAE,mBAAO;YAChB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACtE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;SAC/B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -30,7 +30,7 @@ const MarginfiAccount_1 = require("../marginfi/structs/MarginfiAccount");
|
|
30
30
|
const solana_1 = require("../../utils/solana");
|
31
31
|
const constants_4 = require("../marginfi/constants");
|
32
32
|
const helpers_3 = require("../marginfi/helpers");
|
33
|
-
const
|
33
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
34
34
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
35
35
|
const client = (0, clients_1.getClientSolana)();
|
36
36
|
const pda = (0, helpers_1.getDerivedAccount)(owner);
|
@@ -118,7 +118,15 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
118
118
|
elements.push(Object.assign({}, tmpElement));
|
119
119
|
}
|
120
120
|
if (allocationsInfo) {
|
121
|
-
const
|
121
|
+
const registry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
122
|
+
const lendingElement = registry.addElementBorrowlend({
|
123
|
+
label: 'Lending',
|
124
|
+
ref: pda,
|
125
|
+
});
|
126
|
+
const withdrawElement = registry.addElementMultiple({
|
127
|
+
label: 'Deposit',
|
128
|
+
name: 'Boosted Withdraws',
|
129
|
+
});
|
122
130
|
if (userAccount.activeWithdraws.some((w) => w !== 0)) {
|
123
131
|
const pdas = (0, helpers_1.getDerivedPendingWithdraws)(owner, userAccount.activeWithdraws);
|
124
132
|
const withdraws = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, struct_1.pendingWithdrawalStruct, pdas);
|
@@ -128,14 +136,17 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
128
136
|
const allocation = allocationsInfo[withdraw.allocationIndex];
|
129
137
|
if (!allocation)
|
130
138
|
continue;
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
.
|
139
|
+
withdrawElement.addAsset({
|
140
|
+
address: allocation.mint,
|
141
|
+
amount: withdraw.nativeAmount.toNumber(),
|
142
|
+
ref: withdraw.pubkey.toString(),
|
143
|
+
attributes: {
|
144
|
+
lockedUntil: withdraw.createdTimestamp
|
145
|
+
.plus(withdraw.cooldownSeconds)
|
146
|
+
.times(1000)
|
147
|
+
.toNumber(),
|
148
|
+
},
|
137
149
|
});
|
138
|
-
assets.push(asset);
|
139
150
|
}
|
140
151
|
}
|
141
152
|
for (let i = 0; i < userAccount.regularAllocations.length; i++) {
|
@@ -143,30 +154,36 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
143
154
|
if (!allocationInfo)
|
144
155
|
continue;
|
145
156
|
const userBoostedAllocation = userAccount.regularAllocations[i];
|
146
|
-
|
147
|
-
|
157
|
+
lendingElement.addSuppliedAsset({
|
158
|
+
address: allocationInfo.mint,
|
159
|
+
amount: userBoostedAllocation.toNumber(),
|
160
|
+
attributes: {
|
148
161
|
tags: ['Boosted'],
|
149
|
-
}
|
150
|
-
|
151
|
-
|
162
|
+
},
|
163
|
+
});
|
164
|
+
lendingElement.addSuppliedYield([
|
165
|
+
{
|
166
|
+
apy: allocationInfo.lApy,
|
167
|
+
apr: (0, portfolio_core_1.apyToApr)(allocationInfo.lApy),
|
168
|
+
},
|
169
|
+
]);
|
152
170
|
const userProtectedAllocation = userAccount.protectedAllocations[i];
|
153
|
-
|
154
|
-
|
171
|
+
lendingElement.addSuppliedAsset({
|
172
|
+
address: allocationInfo.mint,
|
173
|
+
amount: userProtectedAllocation.toNumber(),
|
174
|
+
attributes: {
|
155
175
|
tags: ['Protected'],
|
156
|
-
}
|
157
|
-
|
158
|
-
|
176
|
+
},
|
177
|
+
});
|
178
|
+
lendingElement.addSuppliedYield([
|
179
|
+
{
|
180
|
+
apy: allocationInfo.pApy,
|
181
|
+
apr: (0, portfolio_core_1.apyToApr)(allocationInfo.pApy),
|
182
|
+
},
|
183
|
+
]);
|
159
184
|
}
|
160
|
-
|
161
|
-
|
162
|
-
type: 'multiple',
|
163
|
-
label: 'Deposit',
|
164
|
-
data: {
|
165
|
-
assets,
|
166
|
-
},
|
167
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
168
|
-
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
169
|
-
});
|
185
|
+
const newElements = yield registry.getElements(cache);
|
186
|
+
elements.push(...newElements);
|
170
187
|
}
|
171
188
|
return elements;
|
172
189
|
});
|