@sonarwatch/portfolio-plugins 0.14.118 → 0.14.120
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 +8 -0
- package/package.json +1 -1
- package/src/Job.d.ts +2 -1
- package/src/plugins/instadapp/liteJob.js +1 -1
- package/src/plugins/instadapp/liteJob.js.map +1 -1
- package/src/plugins/lulo/constants.d.ts +1 -0
- package/src/plugins/lulo/constants.js +2 -1
- package/src/plugins/lulo/constants.js.map +1 -1
- package/src/plugins/lulo/depositsFetcher.js +59 -1
- package/src/plugins/lulo/depositsFetcher.js.map +1 -1
- package/src/plugins/lulo/helpers.d.ts +4 -0
- package/src/plugins/lulo/helpers.js +17 -1
- package/src/plugins/lulo/helpers.js.map +1 -1
- package/src/plugins/lulo/index.js +3 -7
- package/src/plugins/lulo/index.js.map +1 -1
- package/src/plugins/lulo/poolsJob.d.ts +8 -0
- package/src/plugins/lulo/poolsJob.js +44 -0
- package/src/plugins/lulo/poolsJob.js.map +1 -0
- package/src/plugins/lulo/struct.d.ts +79 -16
- package/src/plugins/lulo/struct.js +76 -16
- package/src/plugins/lulo/struct.js.map +1 -1
- package/src/plugins/maker/sdaiJob.js +1 -1
- package/src/plugins/maker/sdaiJob.js.map +1 -1
- package/src/plugins/maker/vaultsJob.js +1 -1
- package/src/plugins/maker/vaultsJob.js.map +1 -1
- package/src/plugins/maple/ethereumJob.js +1 -1
- package/src/plugins/maple/ethereumJob.js.map +1 -1
- package/src/plugins/morpho/aaveV3Job.js +1 -1
- package/src/plugins/morpho/aaveV3Job.js.map +1 -1
- package/src/plugins/paraswap/bptInfoJob.js +1 -1
- package/src/plugins/paraswap/bptInfoJob.js.map +1 -1
- package/src/plugins/stargate/getPoolsJob.d.ts +3 -0
- package/src/plugins/stargate/{poolsJob.js → getPoolsJob.js} +14 -12
- package/src/plugins/stargate/getPoolsJob.js.map +1 -0
- package/src/plugins/stargate/index.js +5 -2
- package/src/plugins/stargate/index.js.map +1 -1
- package/src/plugins/yearn/getVaultsJob.js +1 -1
- package/src/plugins/yearn/getVaultsJob.js.map +1 -1
- package/src/plugins/lulo/liftFetcher.d.ts +0 -3
- package/src/plugins/lulo/liftFetcher.js +0 -67
- package/src/plugins/lulo/liftFetcher.js.map +0 -1
- package/src/plugins/stargate/poolsJob.d.ts +0 -3
- package/src/plugins/stargate/poolsJob.js.map +0 -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.14.120](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.119...plugins-0.14.120) (2025-02-21)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.14.119](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.118...plugins-0.14.119) (2025-02-21)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.14.118](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.117...plugins-0.14.118) (2025-02-20)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
package/src/Job.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
import { NetworkIdType } from '@sonarwatch/portfolio-core';
|
1
2
|
import { Cache } from './Cache';
|
2
3
|
export type JobExecutor = (cache: Cache) => Promise<void>;
|
3
|
-
export type JobLabel = 'normal' | 'coingecko' | 'realtime' | 'evm';
|
4
|
+
export type JobLabel = 'normal' | 'coingecko' | 'realtime' | 'evm' | NetworkIdType;
|
4
5
|
export type Job = {
|
5
6
|
id: string;
|
6
7
|
executor: JobExecutor;
|
@@ -73,7 +73,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
const job = {
|
74
74
|
id: `${constants_1.platformId}-lite`,
|
75
75
|
executor,
|
76
|
-
labels: ['normal'],
|
76
|
+
labels: ['normal', 'evm', 'ethereum'],
|
77
77
|
};
|
78
78
|
exports.default = job;
|
79
79
|
//# sourceMappingURL=liteJob.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"liteJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/instadapp/liteJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,+BAAkC;AAClC,gEAAqC;AACrC,2CAAsD;AAGtD,iDAAmD;AACnD,iCAA8C;AAE9C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,OAAO,GAAuB,EAAE,CAAC;IACvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,uBAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5C,MAAM,MAAM,GAAG,uBAAW,CAAC,CAAC,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,aAAa,CAC3C,MAAM,CAAC,iBAAiB,EACxB,0BAAS,CAAC,QAAQ,CACnB,CAAC;QACF,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3B,qBAAqB;QACrB,IAAI,aAAqB,CAAC;QAC1B,IAAI,MAAM,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;YACzB,aAAa,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC;gBACxC,GAAG,EAAE,gBAAS;gBACd,YAAY,EAAE,eAAe;gBAC7B,OAAO,EAAE,IAAA,iBAAU,EAAC,MAAM,CAAC,OAAO,CAAC;aACpC,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,MAAM,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;YAChC,CAAC,aAAa,CAAC,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC;gBAC1C,GAAG,EAAE,gBAAS;gBACd,YAAY,EAAE,yBAAyB;gBACvC,OAAO,EAAE,IAAA,iBAAU,EA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Q;YAC7B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,KAAK,GAAG,WAAW,CAAC,KAAK;YAChC,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,WAAW,CAAC,OAAO;oBAC5B,WAAW,EAAE,KAAK;oBAClB,SAAS,EAAE,WAAW,CAAC,SAAS;oBAChC,KAAK,EAAE,WAAW,CAAC,KAAK;oBACxB,QAAQ,EAAE,WAAW,CAAC,QAAQ;iBAC/B;aACF;YACD,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,EAAE,EAAE,GAAG,sBAAU,OAAO;YACxB,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;CACtC,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AUTOMATION_PUBLIC_KEY = exports.luloProgramId = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.poolsKey = exports.AUTOMATION_PUBLIC_KEY = exports.luloProgramId = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'flexlend';
|
6
6
|
exports.platform = {
|
@@ -13,4 +13,5 @@ exports.platform = {
|
|
13
13
|
};
|
14
14
|
exports.luloProgramId = new web3_js_1.PublicKey('FL3X2pRsQ9zHENpZSKDRREtccwJuei8yg9fwDu9UN69Q');
|
15
15
|
exports.AUTOMATION_PUBLIC_KEY = new web3_js_1.PublicKey('8PWR75ppAGonv9dXStjficjXmdsuDKmDoVNcy4oYhAMs');
|
16
|
+
exports.poolsKey = 'allocations';
|
16
17
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,QAAQ,GAAG,aAAa,CAAC"}
|
@@ -27,12 +27,19 @@ const structs_1 = require("../save/structs");
|
|
27
27
|
const constants_3 = require("../save/constants");
|
28
28
|
const helpers_2 = require("../save/helpers");
|
29
29
|
const MarginfiAccount_1 = require("../marginfi/structs/MarginfiAccount");
|
30
|
+
const solana_1 = require("../../utils/solana");
|
30
31
|
const constants_4 = require("../marginfi/constants");
|
31
32
|
const helpers_3 = require("../marginfi/helpers");
|
33
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
32
34
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
33
35
|
const client = (0, clients_1.getClientSolana)();
|
34
36
|
const pda = (0, helpers_1.getDerivedAccount)(owner);
|
35
|
-
const userAccount = yield
|
37
|
+
const [userAccount, allocationsInfo] = yield Promise.all([
|
38
|
+
(0, getParsedAccountInfo_1.getParsedAccountInfo)(client, struct_1.userAccountStruct, new web3_js_1.PublicKey(pda)),
|
39
|
+
cache.getItem(constants_1.poolsKey, {
|
40
|
+
prefix: constants_1.platformId,
|
41
|
+
}),
|
42
|
+
]);
|
36
43
|
if (!userAccount)
|
37
44
|
return [];
|
38
45
|
const isSolendActivated = userAccount.solend_obligation.toString() !==
|
@@ -110,6 +117,57 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
110
117
|
tmpElement.platformId = constants_1.platformId;
|
111
118
|
elements.push(Object.assign({}, tmpElement));
|
112
119
|
}
|
120
|
+
if (allocationsInfo) {
|
121
|
+
const assets = [];
|
122
|
+
if (userAccount.activeWithdraws.some((w) => w !== 0)) {
|
123
|
+
const pdas = (0, helpers_1.getDerivedPendingWithdraws)(owner, userAccount.activeWithdraws);
|
124
|
+
const withdraws = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, struct_1.pendingWithdrawalStruct, pdas);
|
125
|
+
for (const withdraw of withdraws) {
|
126
|
+
if (!withdraw)
|
127
|
+
continue;
|
128
|
+
const allocation = allocationsInfo[withdraw.allocationIndex];
|
129
|
+
if (!allocation)
|
130
|
+
continue;
|
131
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(allocation.mint, withdraw.nativeAmount.dividedBy(Math.pow(10, 6)).toNumber(), portfolio_core_1.NetworkId.solana, undefined, allocation.lPrice, {
|
132
|
+
tags: ['Withdraw'],
|
133
|
+
lockedUntil: withdraw.createdTimestamp
|
134
|
+
.plus(withdraw.cooldownSeconds)
|
135
|
+
.times(1000)
|
136
|
+
.toNumber(),
|
137
|
+
});
|
138
|
+
assets.push(asset);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
for (let i = 0; i < userAccount.regularAllocations.length; i++) {
|
142
|
+
const allocationInfo = allocationsInfo === null || allocationsInfo === void 0 ? void 0 : allocationsInfo.at(i);
|
143
|
+
if (!allocationInfo)
|
144
|
+
continue;
|
145
|
+
const userBoostedAllocation = userAccount.regularAllocations[i];
|
146
|
+
if (!userBoostedAllocation.isZero()) {
|
147
|
+
const boostedAsset = (0, tokenPriceToAssetToken_1.default)(allocationInfo.mint, userBoostedAllocation.dividedBy(Math.pow(10, 6)).toNumber(), portfolio_core_1.NetworkId.solana, undefined, allocationInfo.lPrice, {
|
148
|
+
tags: ['Boosted'],
|
149
|
+
});
|
150
|
+
assets.push(boostedAsset);
|
151
|
+
}
|
152
|
+
const userProtectedAllocation = userAccount.protectedAllocations[i];
|
153
|
+
if (!userProtectedAllocation.isZero()) {
|
154
|
+
const protectedAsset = (0, tokenPriceToAssetToken_1.default)(allocationInfo.mint, userProtectedAllocation.dividedBy(Math.pow(10, 6)).toNumber(), portfolio_core_1.NetworkId.solana, undefined, allocationInfo.lPrice, {
|
155
|
+
tags: ['Protected'],
|
156
|
+
});
|
157
|
+
assets.push(protectedAsset);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
elements.push({
|
161
|
+
platformId: constants_1.platformId,
|
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
|
+
});
|
170
|
+
}
|
113
171
|
return elements;
|
114
172
|
});
|
115
173
|
const fetcher = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,6CAA4C;AAG5C,2CAAmD;AACnD,uCAA0E;AAC1E,+EAA4D;AAC5D,0EAA8D;AAC9D,mFAA6D;AAC7D,mDAA2D;AAC3D,kFAA+E;AAC/E,iDAAsD;AACtD,qCAAsE;AACtE,6CAAmD;AACnD,iDAA8E;AAE9E,6CAA6D;AAC7D,yEAA4E;AAC5E,+CAG4B;AAE5B,qDAA2D;AAC3D,iDAA4D;AAE5D,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,GAAG,GAAG,IAAA,2BAAiB,EAAC,KAAK,CAAC,CAAC;IAErC,MAAM,CAAC,WAAW,EAAE,eAAe,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvD,IAAA,2CAAoB,EAAC,MAAM,EAAE,0BAAiB,EAAE,IAAI,mBAAS,CAAC,GAAG,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAmB,oBAAQ,EAAE;YACxC,MAAM,EAAE,sBAAU;SACnB,CAAC;KACH,CAAC,CAAC;IACH,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAE5B,MAAM,iBAAiB,GACrB,WAAW,CAAC,iBAAiB,CAAC,QAAQ,EAAE;QACxC,kCAAkC,CAAC;IAErC,MAAM,mBAA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3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1,2 +1,6 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
+
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
+
import { PublicKey } from '@solana/web3.js';
|
1
4
|
export declare function getDerivedAccount(owner: string): string;
|
2
5
|
export declare function isLiftEmpty(authoritySeed: number[]): boolean;
|
6
|
+
export declare function getDerivedPendingWithdraws(owner: string, ids: number[]): PublicKey[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isLiftEmpty = exports.getDerivedAccount = void 0;
|
3
|
+
exports.getDerivedPendingWithdraws = exports.isLiftEmpty = exports.getDerivedAccount = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const constants_1 = require("./constants");
|
6
6
|
function getDerivedAccount(owner) {
|
@@ -12,4 +12,20 @@ function isLiftEmpty(authoritySeed) {
|
|
12
12
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0].toString());
|
13
13
|
}
|
14
14
|
exports.isLiftEmpty = isLiftEmpty;
|
15
|
+
function getDerivedPendingWithdraws(owner, ids) {
|
16
|
+
return ids
|
17
|
+
.map((id) => {
|
18
|
+
if (id === 0)
|
19
|
+
return [];
|
20
|
+
const withdrawalIdBuffer = Buffer.alloc(2);
|
21
|
+
withdrawalIdBuffer.writeUInt16LE(id);
|
22
|
+
return web3_js_1.PublicKey.findProgramAddressSync([
|
23
|
+
Buffer.from('withdrawal'),
|
24
|
+
new web3_js_1.PublicKey(owner).toBuffer(),
|
25
|
+
withdrawalIdBuffer,
|
26
|
+
], constants_1.luloProgramId)[0];
|
27
|
+
})
|
28
|
+
.flat();
|
29
|
+
}
|
30
|
+
exports.getDerivedPendingWithdraws = getDerivedPendingWithdraws;
|
15
31
|
//# sourceMappingURL=helpers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2CAA4C;AAE5C,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAClE,yBAAa,CACd,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAClB,CAAC;AALD,8CAKC;AAED,SAAgB,WAAW,CAAC,aAAuB;IACjD,OAAO,CACL,aAAa,CAAC,QAAQ,EAAE;QACxB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CACrE,CAAC;AACJ,CAAC;AALD,kCAKC"}
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2CAA4C;AAE5C,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,mBAAS,CAAC,sBAAsB,CACrC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAClE,yBAAa,CACd,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAClB,CAAC;AALD,8CAKC;AAED,SAAgB,WAAW,CAAC,aAAuB;IACjD,OAAO,CACL,aAAa,CAAC,QAAQ,EAAE;QACxB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CACrE,CAAC;AACJ,CAAC;AALD,kCAKC;AAED,SAAgB,0BAA0B,CACxC,KAAa,EACb,GAAa;IAEb,OAAO,GAAG;SACP,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QACV,IAAI,EAAE,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACxB,MAAM,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3C,kBAAkB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QACrC,OAAO,mBAAS,CAAC,sBAAsB,CACrC;YACE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;YACzB,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;YAC/B,kBAAkB;SACnB,EACD,yBAAa,CACd,CAAC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;SACD,IAAI,EAAE,CAAC;AACZ,CAAC;AAnBD,gEAmBC"}
|
@@ -5,14 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
|
8
|
-
const
|
8
|
+
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
9
9
|
const constants_1 = require("./constants");
|
10
10
|
const rewardsFetcher_1 = __importDefault(require("./rewardsFetcher"));
|
11
11
|
exports.platforms = [constants_1.platform];
|
12
|
-
exports.jobs = [];
|
13
|
-
exports.fetchers = [
|
14
|
-
depositsFetcher_1.default,
|
15
|
-
liftFetcher_1.default,
|
16
|
-
rewardsFetcher_1.default,
|
17
|
-
];
|
12
|
+
exports.jobs = [poolsJob_1.default];
|
13
|
+
exports.fetchers = [depositsFetcher_1.default, rewardsFetcher_1.default];
|
18
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/index.ts"],"names":[],"mappings":";;;;;;AAGA,wEAAgD;AAChD,0DAAkC;AAClC,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAc,CAAC,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 clients_1 = require("../../utils/clients");
|
13
|
+
const solana_1 = require("../../utils/solana");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
const struct_1 = require("./struct");
|
16
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
17
|
+
const client = (0, clients_1.getClientSolana)();
|
18
|
+
const pools = yield (0, solana_1.getParsedProgramAccounts)(client, struct_1.poolStruct, constants_1.luloProgramId, [{ dataSize: struct_1.poolStruct.byteSize }]);
|
19
|
+
const allocations = [];
|
20
|
+
for (const pool of pools) {
|
21
|
+
for (const allocation of pool.allocations) {
|
22
|
+
allocations.push({
|
23
|
+
mint: allocation.mint.toString(),
|
24
|
+
pPrice: allocation.protectedAmount
|
25
|
+
.dividedBy(pool.protectedTotalSupply)
|
26
|
+
.toNumber(),
|
27
|
+
lPrice: allocation.regularAmount
|
28
|
+
.minus(allocation.pendingWithdrawals)
|
29
|
+
.dividedBy(pool.regularTotalSupply)
|
30
|
+
.toNumber(),
|
31
|
+
});
|
32
|
+
}
|
33
|
+
}
|
34
|
+
yield cache.setItem(constants_1.poolsKey, allocations, {
|
35
|
+
prefix: constants_1.platformId,
|
36
|
+
});
|
37
|
+
});
|
38
|
+
const job = {
|
39
|
+
id: `${constants_1.platformId}-pools`,
|
40
|
+
executor,
|
41
|
+
labels: ['normal'],
|
42
|
+
};
|
43
|
+
exports.default = job;
|
44
|
+
//# sourceMappingURL=poolsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,iDAAsD;AACtD,+CAA8D;AAC9D,2CAAkE;AAClE,qCAAsC;AAQtC,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,KAAK,GAAG,MAAM,IAAA,iCAAwB,EAC1C,MAAM,EACN,mBAAU,EACV,yBAAa,EACb,CAAC,EAAE,QAAQ,EAAE,mBAAU,CAAC,QAAQ,EAAE,CAAC,CACpC,CAAC;IAEF,MAAM,WAAW,GAAqB,EAAE,CAAC;IACzC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YAC1C,WAAW,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChC,MAAM,EAAE,UAAU,CAAC,eAAe;qBAC/B,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;qBACpC,QAAQ,EAAE;gBACb,MAAM,EAAE,UAAU,CAAC,aAAa;qBAC7B,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC;qBACpC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC;qBAClC,QAAQ,EAAE;aACd,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAmB,oBAAQ,EAAE,WAAW,EAAE;QAC3D,MAAM,EAAE,sBAAU;KACnB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -4,29 +4,92 @@
|
|
4
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
5
5
|
import { PublicKey } from '@solana/web3.js';
|
6
6
|
import BigNumber from 'bignumber.js';
|
7
|
-
export type PromotionSeed = {
|
8
|
-
authoritySeed: number[];
|
9
|
-
padding: number[];
|
10
|
-
};
|
11
7
|
export type UserAccount = {
|
12
8
|
buffer: Buffer;
|
13
9
|
bump: number;
|
14
|
-
|
10
|
+
padding: number[];
|
15
11
|
owner: PublicKey;
|
16
12
|
mfi_account: PublicKey;
|
17
13
|
solend_obligation: PublicKey;
|
18
|
-
|
19
|
-
|
14
|
+
regularAllocations: BigNumber[];
|
15
|
+
protectedAllocations: BigNumber[];
|
16
|
+
referrer: PublicKey;
|
17
|
+
reserved1: BigNumber[];
|
18
|
+
lastWithdrawingId: number;
|
19
|
+
activeWithdraws: number[];
|
20
|
+
padding2: number[];
|
20
21
|
};
|
21
22
|
export declare const userAccountStruct: BeetStruct<UserAccount, Partial<UserAccount>>;
|
22
|
-
export type
|
23
|
+
export type ProtocolConfig = {
|
24
|
+
protocolId: number[];
|
25
|
+
weight: number;
|
26
|
+
padding: number[];
|
27
|
+
balanceNative: BigNumber;
|
28
|
+
refreshLastTs: BigNumber;
|
29
|
+
accruedAmount: BigNumber;
|
30
|
+
hashOperations: number[];
|
31
|
+
hashRefresh: number[];
|
32
|
+
reserved: Buffer;
|
33
|
+
};
|
34
|
+
export declare const protocolConfigStruct: BeetStruct<ProtocolConfig, Partial<ProtocolConfig>>;
|
35
|
+
export type Allocation = {
|
36
|
+
mint: PublicKey;
|
37
|
+
decimals: number;
|
38
|
+
padding: number[];
|
39
|
+
regularAmount: BigNumber;
|
40
|
+
protectedAmount: BigNumber;
|
41
|
+
depositLimit: BigNumber;
|
42
|
+
reserved1: BigNumber;
|
43
|
+
oracle: PublicKey;
|
44
|
+
oraclePrice: BigNumber;
|
45
|
+
oracleLastUpdated: BigNumber;
|
46
|
+
padding1: number[];
|
47
|
+
totalLiquidity: BigNumber;
|
48
|
+
accumulatedProtocolFees: BigNumber;
|
49
|
+
pendingWithdrawals: BigNumber;
|
50
|
+
accumulatedReferralFees: BigNumber;
|
51
|
+
unclaimedReferralFees: BigNumber;
|
52
|
+
totalReferredAmount: BigNumber;
|
53
|
+
totalReferralSupply: BigNumber;
|
54
|
+
protocols: ProtocolConfig[];
|
55
|
+
reserved: BigNumber[];
|
56
|
+
};
|
57
|
+
export declare const allocationStruct: BeetStruct<Allocation, Partial<Allocation>>;
|
58
|
+
export type Pool = {
|
23
59
|
buffer: Buffer;
|
24
|
-
bump: number;
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
60
|
+
bump: number[];
|
61
|
+
poolId: number;
|
62
|
+
decimals: number;
|
63
|
+
protectedBump: number[];
|
64
|
+
regularBump: number[];
|
65
|
+
securityFlag: number;
|
66
|
+
padding: number[];
|
67
|
+
protocolFeeBps: number;
|
68
|
+
referralFeeBps: number;
|
69
|
+
protectedInterestShareBps: number;
|
70
|
+
coverageFloatBps: number;
|
71
|
+
protectedMaxExposure: number;
|
72
|
+
regularMaxExposure: number;
|
73
|
+
oracleStaleMaxSeconds: BigNumber;
|
74
|
+
refreshStaleMaxSeconds: BigNumber;
|
75
|
+
withdrawCooldownSeconds: BigNumber;
|
76
|
+
protectedTotalSupply: BigNumber;
|
77
|
+
regularTotalSupply: BigNumber;
|
78
|
+
lastUpdated: BigNumber;
|
79
|
+
allocations: Allocation[];
|
80
|
+
admin: PublicKey;
|
81
|
+
automation: PublicKey;
|
82
|
+
reserved: BigNumber[];
|
83
|
+
};
|
84
|
+
export declare const poolStruct: BeetStruct<Pool, Partial<Pool>>;
|
85
|
+
export type PendingWithdrawal = {
|
86
|
+
buffer: Buffer;
|
87
|
+
allocationIndex: number;
|
88
|
+
withdrawalId: number;
|
89
|
+
padding: number[];
|
90
|
+
owner: PublicKey;
|
91
|
+
createdTimestamp: BigNumber;
|
92
|
+
cooldownSeconds: BigNumber;
|
93
|
+
nativeAmount: BigNumber;
|
31
94
|
};
|
32
|
-
export declare const
|
95
|
+
export declare const pendingWithdrawalStruct: BeetStruct<PendingWithdrawal, Partial<PendingWithdrawal>>;
|
@@ -1,31 +1,91 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.pendingWithdrawalStruct = exports.poolStruct = exports.allocationStruct = exports.protocolConfigStruct = exports.userAccountStruct = 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
|
-
const promotionSeedStruct = new beet_1.BeetStruct([
|
8
|
-
['authoritySeed', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 19)],
|
9
|
-
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 13)],
|
10
|
-
], (args) => args);
|
11
7
|
exports.userAccountStruct = new beet_1.BeetStruct([
|
12
8
|
['buffer', (0, solana_1.blob)(8)],
|
13
9
|
['bump', beet_1.u8],
|
14
|
-
['
|
10
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
15
11
|
['owner', beet_solana_1.publicKey],
|
16
12
|
['mfi_account', beet_solana_1.publicKey],
|
17
13
|
['solend_obligation', beet_solana_1.publicKey],
|
18
|
-
['
|
19
|
-
['
|
14
|
+
['regularAllocations', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 5)],
|
15
|
+
['protectedAllocations', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 5)],
|
16
|
+
['referrer', beet_solana_1.publicKey],
|
17
|
+
['reserved1', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 3)],
|
18
|
+
['lastWithdrawingId', beet_1.u16],
|
19
|
+
['activeWithdraws', (0, beet_1.uniformFixedSizeArray)(beet_1.u16, 11)],
|
20
|
+
['padding2', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 8)],
|
21
|
+
], (args) => args);
|
22
|
+
exports.protocolConfigStruct = new beet_1.BeetStruct([
|
23
|
+
['protocolId', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
|
24
|
+
['weight', beet_1.u32],
|
25
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 4)],
|
26
|
+
['balanceNative', solana_1.u64],
|
27
|
+
['refreshLastTs', solana_1.u64],
|
28
|
+
['accruedAmount', solana_1.i64],
|
29
|
+
['hashOperations', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
|
30
|
+
['hashRefresh', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
|
31
|
+
['reserved', (0, solana_1.blob)(32)],
|
20
32
|
], (args) => args);
|
21
|
-
exports.
|
33
|
+
exports.allocationStruct = new beet_1.BeetStruct([
|
34
|
+
['mint', beet_solana_1.publicKey],
|
35
|
+
['decimals', beet_1.u8],
|
36
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
37
|
+
['regularAmount', solana_1.u64],
|
38
|
+
['protectedAmount', solana_1.u64],
|
39
|
+
['depositLimit', solana_1.u64],
|
40
|
+
['reserved1', solana_1.u64],
|
41
|
+
['oracle', beet_solana_1.publicKey],
|
42
|
+
['oraclePrice', solana_1.u64],
|
43
|
+
['oracleLastUpdated', solana_1.u64],
|
44
|
+
['padding1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
|
45
|
+
['totalLiquidity', solana_1.u64],
|
46
|
+
['accumulatedProtocolFees', solana_1.u64],
|
47
|
+
['pendingWithdrawals', solana_1.u64],
|
48
|
+
['accumulatedReferralFees', solana_1.u64],
|
49
|
+
['unclaimedReferralFees', solana_1.u64],
|
50
|
+
['totalReferredAmount', solana_1.u64],
|
51
|
+
['totalReferralSupply', solana_1.u64],
|
52
|
+
['protocols', (0, beet_1.uniformFixedSizeArray)(exports.protocolConfigStruct, 8)],
|
53
|
+
['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 8)],
|
54
|
+
], (args) => args);
|
55
|
+
exports.poolStruct = new beet_1.BeetStruct([
|
22
56
|
['buffer', (0, solana_1.blob)(8)],
|
23
|
-
['bump', beet_1.u8],
|
24
|
-
['
|
25
|
-
['
|
26
|
-
['
|
27
|
-
['
|
28
|
-
['
|
29
|
-
['
|
57
|
+
['bump', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 1)],
|
58
|
+
['poolId', beet_1.u8],
|
59
|
+
['decimals', beet_1.u8],
|
60
|
+
['protectedBump', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 1)],
|
61
|
+
['regularBump', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 1)],
|
62
|
+
['securityFlag', beet_1.u8],
|
63
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 2)],
|
64
|
+
['protocolFeeBps', beet_1.u16],
|
65
|
+
['referralFeeBps', beet_1.u16],
|
66
|
+
['protectedInterestShareBps', beet_1.u16],
|
67
|
+
['coverageFloatBps', beet_1.u16],
|
68
|
+
['protectedMaxExposure', beet_1.u32],
|
69
|
+
['regularMaxExposure', beet_1.u32],
|
70
|
+
['oracleStaleMaxSeconds', solana_1.u64],
|
71
|
+
['refreshStaleMaxSeconds', solana_1.u64],
|
72
|
+
['withdrawCooldownSeconds', solana_1.u64],
|
73
|
+
['protectedTotalSupply', solana_1.u64],
|
74
|
+
['regularTotalSupply', solana_1.u64],
|
75
|
+
['lastUpdated', solana_1.u64],
|
76
|
+
['allocations', (0, beet_1.uniformFixedSizeArray)(exports.allocationStruct, 5)],
|
77
|
+
['admin', beet_solana_1.publicKey],
|
78
|
+
['automation', beet_solana_1.publicKey],
|
79
|
+
['reserved', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 24)],
|
80
|
+
], (args) => args);
|
81
|
+
exports.pendingWithdrawalStruct = new beet_1.BeetStruct([
|
82
|
+
['buffer', (0, solana_1.blob)(8)],
|
83
|
+
['allocationIndex', beet_1.u8],
|
84
|
+
['withdrawalId', beet_1.u16],
|
85
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 5)],
|
86
|
+
['owner', beet_solana_1.publicKey],
|
87
|
+
['createdTimestamp', solana_1.u64],
|
88
|
+
['cooldownSeconds', solana_1.u64],
|
89
|
+
['nativeAmount', solana_1.u64],
|
30
90
|
], (args) => args);
|
31
91
|
//# sourceMappingURL=struct.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/struct.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/struct.ts"],"names":[],"mappings":";;;AAAA,oDAMmC;AACnC,kEAA6D;AAG7D,+CAAoD;AAkBvC,QAAA,iBAAiB,GAAG,IAAI,iBAAU,CAC7C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,aAAa,EAAE,uBAAS,CAAC;IAC1B,CAAC,mBAAmB,EAAE,uBAAS,CAAC;IAChC,CAAC,oBAAoB,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;IACrD,CAAC,sBAAsB,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC,UAAU,EAAE,uBAAS,CAAC;IACvB,CAAC,WAAW,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC,mBAAmB,EAAE,UAAG,CAAC;IAC1B,CAAC,iBAAiB,EAAE,IAAA,4BAAqB,EAAC,UAAG,EAAE,EAAE,CAAC,CAAC;IACnD,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;CAC5C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAC9B,CAAC;AAcW,QAAA,oBAAoB,GAAG,IAAI,iBAAU,CAChD;IACE,CAAC,YAAY,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,IA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AAqB,EAAC,wBAAgB,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,YAAY,EAAE,uBAAS,CAAC;IACzB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,EAAE,CAAC,CAAC;CAC7C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC;AAaW,QAAA,uBAAuB,GAAG,IAAI,iBAAU,CACnD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,iBAAiB,EAAE,SAAE,CAAC;IACvB,CAAC,cAAc,EAAE,UAAG,CAAC;IACrB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,cAAc,EAAE,YAAG,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAyB,CACpC,CAAC"}
|
@@ -45,7 +45,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
45
|
const job = {
|
46
46
|
id: `${constants_1.platformId}-sdai`,
|
47
47
|
executor,
|
48
|
-
labels: ['normal'],
|
48
|
+
labels: ['normal', 'evm', 'ethereum'],
|
49
49
|
};
|
50
50
|
exports.default = job;
|
51
51
|
//# sourceMappingURL=sdaiJob.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sdaiJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maker/sdaiJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,+BAAkC;AAClC,gEAAqC;AACrC,2CAQqB;AAGrB,iDAAmD;AACnD,iCAAgC;AAChC,mDAA2D;AAE3D,MAAM,QAAQ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pB,QAAQ,EAAE,wBAAY,IACtB,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;CACtC,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -73,7 +73,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
73
|
const job = {
|
74
74
|
id: `${constants_1.platformId}-vaults`,
|
75
75
|
executor,
|
76
|
-
labels: ['normal'],
|
76
|
+
labels: ['normal', 'evm', 'ethereum'],
|
77
77
|
};
|
78
78
|
exports.default = job;
|
79
79
|
//# sourceMappingURL=vaultsJob.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maker/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAAgF;AAGhF,iDAAmD;AACnD,iCAA2C;AAG3C,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC;QACxC,GAAG,EAAE,gBAAS;QACd,OAAO,EAAE,yBAAa;QACtB,YAAY,EAAE,MAAM;KACrB,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC;QAC5C,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC/B,GAAG,EAAE,gBAAS;YACd,OAAO,EAAE,yBAAa;YACtB,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE,CAAC,GAAG,CAAC;SACZ,CAAC,CAAC;KACJ,CAAC,CAAC;IAE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AAC;IACH,MAAM,KAAK,CAAC,OAAO,CAAC,sBAAU,EAAE,IAAI,EAAE;QACpC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;CACtC,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -66,7 +66,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
66
|
const job = {
|
67
67
|
id: `${constants_1.platformId}-ethereum`,
|
68
68
|
executor,
|
69
|
-
labels: ['normal'],
|
69
|
+
labels: ['normal', 'evm', 'ethereum'],
|
70
70
|
};
|
71
71
|
exports.default = job;
|
72
72
|
//# sourceMappingURL=ethereumJob.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ethereumJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maple/ethereumJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAmD;AACnD,iCAAwD;AACxD,2CAAuD;AAEvD,qDAAiD;AAEjD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,QAAQ,GAAG;QACf,GAAG,EAAE,cAAO;QACZ,YAAY,EAAE,MAAM;KACZ,CAAC;IAEX,MAAM,YAAY,GAAG;QACnB,GAAG,EAAE,kBAAW;QAChB,YAAY,EAAE,UAAU;KAChB,CAAC;IAEX,MAAM,SAAS,GAAG;QAChB,GAAG,EAAE,eAAQ;QACb,YAAY,EAAE,OAAO;KACb,CAAC;IAEX,MAAM,cAAc,GAAG,EAAE,CAAC;IAC1B,MA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,IAAI,CAAC;YACb,KAAK;YACL,QAAQ,EAAE,wBAAY,CAAC,CAAC,CAAC;YACzB,OAAO;YACP,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,oBAAQ,EAAE,SAAS,EAAE;QACvC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;CACtC,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -31,7 +31,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
31
31
|
const job = {
|
32
32
|
id: `${constants_1.platformId}-aave-v3`,
|
33
33
|
executor,
|
34
|
-
labels: ['normal'],
|
34
|
+
labels: ['normal', 'evm', 'ethereum'],
|
35
35
|
};
|
36
36
|
exports.default = job;
|
37
37
|
//# sourceMappingURL=aaveV3Job.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aaveV3Job.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/morpho/aaveV3Job.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,+BAAkC;AAClC,2CAKqB;AAGrB,iDAAmD;AACnD,uCAA+C;AAC/C,uCAAgD;AAEhD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,kBAAkB,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC;QACnD,GAAG,EAAE,sBAAe;QACpB,YAAY,EAAE,gBAAgB;QAC9B,IAAI,EAAE,CAAC,IAAA,iBAAU,EAAC,uBAAW,CAA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,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;CACtC,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -42,7 +42,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
42
|
const job = {
|
43
43
|
id: `${constants_1.platformId}-bpt-info`,
|
44
44
|
executor,
|
45
|
-
labels: ['normal'],
|
45
|
+
labels: ['normal', 'evm', 'ethereum'],
|
46
46
|
};
|
47
47
|
exports.default = job;
|
48
48
|
//# sourceMappingURL=bptInfoJob.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bptInfoJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/paraswap/bptInfoJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAmD;AACnD,2CAAoE;AACpE,iCAA0D;AAG1D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,mBAAmB,GAAG;QAC1B,OAAO,EAAE,yBAAa,CAAC,KAAK;QAC5B,GAAG,EAAE,qBAAc;QACnB,YAAY,EAAE,qBAAc,CAAC,CAAC,CAAC,CAAC,IAAI;KAC5B,CAAC;IAEX,MAAM,eAAe,GAAG;QACtB,OAAO,EAAE,yBAAa,CAAC,KAAK;QAC5B,GAAG,EAAE,uBAAgB;QACrB,YAAY,EAAE,uBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI;QACtC,IAAI,EAAE,CAAC,yBAAa,CAAC,MAAM,CAAC;KACpB,CAAC;IAEX,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAClD,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC;KACrC,CAAC,C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AG,CAAC;QAClD,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC;QACxC,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC;KACrC,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAa;QACzB,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;QACnC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;KAC7D,CAAC;IAEF,MAAM,KAAK,CAAC,OAAO,CAAC,sBAAU,EAAE,QAAQ,EAAE;QACxC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC;CACtC,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -9,13 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.getPoolsJob = void 0;
|
12
13
|
const viem_1 = require("viem");
|
13
14
|
const clients_1 = require("../../utils/clients");
|
14
15
|
const constants_1 = require("./constants");
|
15
16
|
const abis_1 = require("./abis");
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
function getPoolsJob(config) {
|
18
|
+
const { poolsContract: address, networkId } = config;
|
19
|
+
const executor = (cache) => __awaiter(this, void 0, void 0, function* () {
|
19
20
|
const client = (0, clients_1.getEvmClient)(networkId);
|
20
21
|
const contract = {
|
21
22
|
address,
|
@@ -95,12 +96,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
95
96
|
prefix: constants_1.platformId,
|
96
97
|
networkId,
|
97
98
|
});
|
98
|
-
}
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
99
|
+
});
|
100
|
+
const job = {
|
101
|
+
id: `${constants_1.platformId}-${networkId}-pools`,
|
102
|
+
executor,
|
103
|
+
labels: ['normal', 'evm', networkId],
|
104
|
+
};
|
105
|
+
return job;
|
106
|
+
}
|
107
|
+
exports.getPoolsJob = getPoolsJob;
|
108
|
+
//# sourceMappingURL=getPoolsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getPoolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/getPoolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+BAAmC;AAGnC,iDAAmD;AACnD,2CAAmD;AACnD,iCAA+E;AAG/E,SAAgB,WAAW,CAAC,MAAiB;IAC3C,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAErD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;QACnD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QACvC,MAAM,QAAQ,GAAG;YACf,OAAO;YACP,GAAG,EAAE,wBAAiB;YACtB,YAAY,EAAE,gBAAgB;SACtB,CAAC;QACX,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAExD,MAAM,uBAAuB,GAAG,EAAE,CAAC;QACnC,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YACrD,uBAAuB,CAAC,IAAI,CAAC;gBAC3B,OAAO;gBACP,GAAG,EAAE,kBAAW;gBAChB,YAAY,EAAE,UAAU;gBACxB,IAAI,EAAE,CAAC,CAAC,CAAC;aACD,CAAC,CAAC;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CAAC;IACL,CAAC,CAAA,CAAC;IAEF,MAAM,GAAG,GAAQ;QACf,EAAE,EAAE,GAAG,sBAAU,IAAI,SAAS,QAAQ;QACtC,QAAQ;QACR,MAAM,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC;KACrC,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AA5GD,kCA4GC"}
|
@@ -5,12 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.platforms = exports.fetchers = exports.jobs = void 0;
|
7
7
|
const gePoolPositionsFetcher_1 = require("./gePoolPositionsFetcher");
|
8
|
-
const
|
8
|
+
const getPoolsJob_1 = require("./getPoolsJob");
|
9
9
|
const farmsJob_1 = __importDefault(require("./farmsJob"));
|
10
10
|
const constants_1 = require("./constants");
|
11
11
|
const getFarmPositionsFetcher_1 = require("./getFarmPositionsFetcher");
|
12
12
|
const getVoteTokensFetcher_1 = require("./getVoteTokensFetcher");
|
13
|
-
exports.jobs = [
|
13
|
+
exports.jobs = [
|
14
|
+
...constants_1.stargateNetworksConfigs.map((config) => (0, getPoolsJob_1.getPoolsJob)(config)),
|
15
|
+
farmsJob_1.default,
|
16
|
+
];
|
14
17
|
exports.fetchers = [
|
15
18
|
...constants_1.stargateNetworksConfigs
|
16
19
|
.map((config) => [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/index.ts"],"names":[],"mappings":";;;;;;AAGA,qEAAoE;AACpE
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/index.ts"],"names":[],"mappings":";;;;;;AAGA,qEAAoE;AACpE,+CAA4C;AAC5C,0DAAkC;AAClC,2CAAgE;AAChE,uEAAqE;AACrE,iEAA8D;AAEjD,QAAA,IAAI,GAAU;IACzB,GAAG,mCAAuB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC;IAC/D,kBAAQ;CACT,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,GAAG,mCAAuB;SACvB,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACf,IAAA,iDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,kDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,2CAAoB,EAAC,MAAM,CAAC;KAC7B,CAAC;SACD,IAAI,EAAE;CACV,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/yearn/getVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAwE;AAGxE,2CAAwC;AACxC,uCAAsC;AAEtC,SAAwB,YAAY,CAClC,SAA2B,EAC3B,UAAkB;IAElB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;QACnD,MAAM,MAAM,GAAG,CACb,MAAM,IAAA,mBAAS,EAAC;YACd,OAAO,EAAE,yBAAQ,CAAC,SAAS,CAAC,CAAC,OAAO;YACpC,OAAO,EAAE,yBAAQ,CAAC,SAAS,CAAC;SAC7B,CAAC,CACH,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEpC,MAAM,KAAK,CAAC,OAAO,CAAC,qBAAS,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5E,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,SAAS;QACvC,MAAM,EAAE,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"getVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/yearn/getVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAwE;AAGxE,2CAAwC;AACxC,uCAAsC;AAEtC,SAAwB,YAAY,CAClC,SAA2B,EAC3B,UAAkB;IAElB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;QACnD,MAAM,MAAM,GAAG,CACb,MAAM,IAAA,mBAAS,EAAC;YACd,OAAO,EAAE,yBAAQ,CAAC,SAAS,CAAC,CAAC,OAAO;YACpC,OAAO,EAAE,yBAAQ,CAAC,SAAS,CAAC;SAC7B,CAAC,CACH,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEpC,MAAM,KAAK,CAAC,OAAO,CAAC,qBAAS,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5E,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,SAAS;QACvC,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC9B,CAAC;AACJ,CAAC;AApBD,+BAoBC"}
|
@@ -1,67 +0,0 @@
|
|
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 web3_js_1 = require("@solana/web3.js");
|
17
|
-
const constants_1 = require("./constants");
|
18
|
-
const helpers_1 = require("./helpers");
|
19
|
-
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
20
|
-
const clients_1 = require("../../utils/clients");
|
21
|
-
const struct_1 = require("./struct");
|
22
|
-
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
23
|
-
const solana_1 = require("../../utils/solana");
|
24
|
-
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
|
-
const client = (0, clients_1.getClientSolana)();
|
26
|
-
const flexUserPda = (0, helpers_1.getDerivedAccount)(owner);
|
27
|
-
const flexUser = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, struct_1.userAccountStruct, new web3_js_1.PublicKey(flexUserPda));
|
28
|
-
if (!flexUser)
|
29
|
-
return [];
|
30
|
-
const validAuthoritySeed = flexUser.promotionSeeds.find((s) => !(0, helpers_1.isLiftEmpty)(s.authoritySeed));
|
31
|
-
if (!validAuthoritySeed)
|
32
|
-
return [];
|
33
|
-
const seedValue = Buffer.from(validAuthoritySeed.authoritySeed).toString('utf8');
|
34
|
-
const authorityAddress = web3_js_1.PublicKey.findProgramAddressSync([Buffer.from('promotion_authority'), Buffer.from(seedValue.toString())], constants_1.luloProgramId)[0];
|
35
|
-
const promotionAuthority = yield (0, getParsedAccountInfo_1.getParsedAccountInfo)(client, struct_1.promotionAuthorityStruct, authorityAddress);
|
36
|
-
if (!promotionAuthority)
|
37
|
-
return [];
|
38
|
-
if (promotionAuthority.totalDeposits.isZero())
|
39
|
-
return [];
|
40
|
-
const tokenPrices = yield cache.getTokenPricesAsMap([solana_1.usdcSolanaMint], portfolio_core_1.NetworkId.solana);
|
41
|
-
const tokenPrice = tokenPrices.get(promotionAuthority.mintAddress.toString());
|
42
|
-
if (!tokenPrice)
|
43
|
-
return [];
|
44
|
-
const amount = promotionAuthority.totalDeposits
|
45
|
-
.div(Math.pow(10, tokenPrice.decimals))
|
46
|
-
.toNumber();
|
47
|
-
const asset = (0, tokenPriceToAssetToken_1.default)(tokenPrice.address, amount, portfolio_core_1.NetworkId.solana, tokenPrice);
|
48
|
-
const element = {
|
49
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
50
|
-
type: portfolio_core_1.PortfolioElementType.multiple,
|
51
|
-
label: 'Deposit',
|
52
|
-
platformId: constants_1.platformId,
|
53
|
-
value: asset.value,
|
54
|
-
data: {
|
55
|
-
assets: [asset],
|
56
|
-
},
|
57
|
-
name: 'Points Lift',
|
58
|
-
};
|
59
|
-
return [element];
|
60
|
-
});
|
61
|
-
const fetcher = {
|
62
|
-
id: `${constants_1.platformId}-lift`,
|
63
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
64
|
-
executor,
|
65
|
-
};
|
66
|
-
exports.default = fetcher;
|
67
|
-
//# sourceMappingURL=liftFetcher.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"liftFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lulo/liftFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAG5C,2CAAwD;AACxD,uCAA2D;AAC3D,kFAA+E;AAC/E,iDAAsD;AACtD,qCAAuE;AACvE,qGAA6E;AAC7E,+CAAoD;AAEpD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,WAAW,GAAG,IAAA,2BAAiB,EAAC,KAAK,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,MAAM,IAAA,2CAAoB,EACzC,MAAM,EAC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C;SAC9B,QAAQ,EAAE,CAAC;IACd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,UAAU,CAAC,OAAO,EAClB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,CAAC;IAEF,MAAM,OAAO,GAA6B;QACxC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,KAAK,EAAE,SAAS;QAChB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,IAAI,EAAE;YACJ,MAAM,EAAE,CAAC,KAAK,CAAC;SAChB;QACD,IAAI,EAAE,aAAa;KACpB,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+BAAmC;AAGnC,iDAAmD;AACnD,2CAA4E;AAC5E,iCAA+E;AAE/E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,KAAK,MAAM,MAAM,IAAI,mCAAuB,EAAE,CAAC;QAC7C,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QACrD,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QACvC,MAAM,QAAQ,GAAG;YACf,OAAO;YACP,GAAG,EAAE,wBAAiB;YACtB,YAAY,EAAE,gBAAgB;SACtB,CAAC;QACX,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ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