@sonarwatch/portfolio-plugins 0.12.160 → 0.12.162
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/index.js +4 -8
- package/src/index.js.map +1 -1
- package/src/plugins/drift-market-maker-vault/constants.d.ts +9 -0
- package/src/plugins/drift-market-maker-vault/constants.js +29 -0
- package/src/plugins/drift-market-maker-vault/constants.js.map +1 -0
- package/src/plugins/{circuit → drift-market-maker-vault}/depositsFetcher.js +7 -6
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -0
- package/src/plugins/drift-market-maker-vault/filters.js.map +1 -0
- package/src/plugins/{circuit → drift-market-maker-vault}/index.js +1 -1
- package/src/plugins/drift-market-maker-vault/index.js.map +1 -0
- package/src/plugins/drift-market-maker-vault/structs.js.map +1 -0
- package/src/plugins/{circuit → drift-market-maker-vault}/types.d.ts +1 -0
- package/src/plugins/drift-market-maker-vault/types.js.map +1 -0
- package/src/plugins/{circuit → drift-market-maker-vault}/vaultsJob.js +9 -3
- package/src/plugins/drift-market-maker-vault/vaultsJob.js.map +1 -0
- package/src/plugins/kriya/constants.d.ts +2 -0
- package/src/plugins/kriya/constants.js +3 -1
- package/src/plugins/kriya/constants.js.map +1 -1
- package/src/plugins/kriya/farmsJob.js +0 -1
- package/src/plugins/kriya/farmsJob.js.map +1 -1
- package/src/plugins/kriya/index.js +8 -2
- package/src/plugins/kriya/index.js.map +1 -1
- package/src/plugins/kriya/leverageVaultsFetcher.d.ts +3 -0
- package/src/plugins/kriya/leverageVaultsFetcher.js +111 -0
- package/src/plugins/kriya/leverageVaultsFetcher.js.map +1 -0
- package/src/plugins/kriya/leverageVaultsJob.d.ts +3 -0
- package/src/plugins/kriya/leverageVaultsJob.js +35 -0
- package/src/plugins/kriya/leverageVaultsJob.js.map +1 -0
- package/src/plugins/kriya/types.d.ts +50 -0
- package/src/plugins/kriya/vaultsFetcher.js +0 -1
- package/src/plugins/kriya/vaultsFetcher.js.map +1 -1
- package/src/plugins/raydium/getRaydiumCLMMPositions.js +21 -22
- package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
- package/src/plugins/circuit/constants.d.ts +0 -7
- package/src/plugins/circuit/constants.js +0 -17
- package/src/plugins/circuit/constants.js.map +0 -1
- package/src/plugins/circuit/depositsFetcher.js.map +0 -1
- package/src/plugins/circuit/filters.js.map +0 -1
- package/src/plugins/circuit/index.js.map +0 -1
- package/src/plugins/circuit/structs.js.map +0 -1
- package/src/plugins/circuit/types.js.map +0 -1
- package/src/plugins/circuit/vaultsJob.js.map +0 -1
- /package/src/plugins/{circuit → drift-market-maker-vault}/depositsFetcher.d.ts +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/filters.d.ts +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/filters.js +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/index.d.ts +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/structs.d.ts +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/structs.js +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/types.js +0 -0
- /package/src/plugins/{circuit → drift-market-maker-vault}/vaultsJob.d.ts +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.12.162](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.161...plugins-0.12.162) (2024-09-09)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.12.161](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.160...plugins-0.12.161) (2024-09-09)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.12.161](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.160...plugins-0.12.161) (2024-09-09)
|
14
|
+
|
15
|
+
|
16
|
+
|
5
17
|
## [0.12.160](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.159...plugins-0.12.160) (2024-09-06)
|
6
18
|
|
7
19
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -82,7 +82,7 @@ const streamflow_1 = require("./plugins/streamflow");
|
|
82
82
|
const benqi_1 = require("./plugins/benqi");
|
83
83
|
const parcl_1 = require("./plugins/parcl");
|
84
84
|
const pyth_1 = require("./plugins/pyth");
|
85
|
-
const
|
85
|
+
const drift_market_maker_vault_1 = require("./plugins/drift-market-maker-vault");
|
86
86
|
const aries_1 = require("./plugins/aries");
|
87
87
|
const flash_1 = require("./plugins/flash");
|
88
88
|
const bonkrewards_1 = require("./plugins/bonkrewards");
|
@@ -138,7 +138,6 @@ const debridge_1 = require("./plugins/debridge");
|
|
138
138
|
const alphafi_1 = require("./plugins/alphafi");
|
139
139
|
const jewel_1 = require("./plugins/jewel");
|
140
140
|
const tradeport_1 = require("./plugins/tradeport");
|
141
|
-
const loopscale_1 = require("./plugins/loopscale");
|
142
141
|
var constants_1 = require("./plugins/tokens/constants");
|
143
142
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
144
143
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -214,7 +213,7 @@ exports.platforms = [
|
|
214
213
|
...parcl_1.platforms,
|
215
214
|
...pyth_1.platforms,
|
216
215
|
...jupiter_1.platforms,
|
217
|
-
...
|
216
|
+
...drift_market_maker_vault_1.platforms,
|
218
217
|
...aries_1.platforms,
|
219
218
|
...flash_1.platforms,
|
220
219
|
...bonkrewards_1.platforms,
|
@@ -270,7 +269,6 @@ exports.platforms = [
|
|
270
269
|
...alphafi_1.platforms,
|
271
270
|
...jewel_1.platforms,
|
272
271
|
...tradeport_1.platforms,
|
273
|
-
...loopscale_1.platforms,
|
274
272
|
];
|
275
273
|
// JOBS //
|
276
274
|
exports.jobs = [
|
@@ -328,7 +326,7 @@ exports.jobs = [
|
|
328
326
|
...benqi_1.jobs,
|
329
327
|
...parcl_1.jobs,
|
330
328
|
...pyth_1.jobs,
|
331
|
-
...
|
329
|
+
...drift_market_maker_vault_1.jobs,
|
332
330
|
...aries_1.jobs,
|
333
331
|
...flash_1.jobs,
|
334
332
|
...bonkrewards_1.jobs,
|
@@ -385,7 +383,6 @@ exports.jobs = [
|
|
385
383
|
...alphafi_1.jobs,
|
386
384
|
...jewel_1.jobs,
|
387
385
|
...tradeport_1.jobs,
|
388
|
-
...loopscale_1.jobs,
|
389
386
|
];
|
390
387
|
// FETCHERS //
|
391
388
|
exports.fetchers = [
|
@@ -446,7 +443,7 @@ exports.fetchers = [
|
|
446
443
|
...benqi_1.fetchers,
|
447
444
|
...parcl_1.fetchers,
|
448
445
|
...pyth_1.fetchers,
|
449
|
-
...
|
446
|
+
...drift_market_maker_vault_1.fetchers,
|
450
447
|
...aries_1.fetchers,
|
451
448
|
...flash_1.fetchers,
|
452
449
|
...bonkrewards_1.fetchers,
|
@@ -502,7 +499,6 @@ exports.fetchers = [
|
|
502
499
|
...alphafi_1.fetchers,
|
503
500
|
...jewel_1.fetchers,
|
504
501
|
...tradeport_1.fetchers,
|
505
|
-
...loopscale_1.fetchers,
|
506
502
|
];
|
507
503
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
508
504
|
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,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,6CAK0B;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
|
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,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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{ PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
export declare const circuitPlatformId = "circuit";
|
4
|
+
export declare const circuitPlatform: Platform;
|
5
|
+
export declare const moosePlatformId = "moose";
|
6
|
+
export declare const moosePlatform: Platform;
|
7
|
+
export declare const vaultsPid: PublicKey;
|
8
|
+
export declare const prefixVaults = "circuitVaults";
|
9
|
+
export declare const platformIdByVaultManager: Map<string, string>;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.platformIdByVaultManager = exports.prefixVaults = exports.vaultsPid = exports.moosePlatform = exports.moosePlatformId = exports.circuitPlatform = exports.circuitPlatformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.circuitPlatformId = 'circuit';
|
6
|
+
exports.circuitPlatform = {
|
7
|
+
id: exports.circuitPlatformId,
|
8
|
+
name: 'Circuit',
|
9
|
+
image: 'https://sonar.watch/img/platforms/circuit.webp',
|
10
|
+
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
11
|
+
website: 'https://app.circuit.trade/',
|
12
|
+
twitter: 'https://twitter.com/CircuitTrading_',
|
13
|
+
};
|
14
|
+
exports.moosePlatformId = 'moose';
|
15
|
+
exports.moosePlatform = {
|
16
|
+
id: exports.moosePlatformId,
|
17
|
+
name: 'Moose Market',
|
18
|
+
image: 'https://sonar.watch/img/platforms/moose.webp',
|
19
|
+
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
20
|
+
website: 'https://moose.market/',
|
21
|
+
twitter: 'https://twitter.com/moose_market',
|
22
|
+
};
|
23
|
+
exports.vaultsPid = new web3_js_1.PublicKey('vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR');
|
24
|
+
exports.prefixVaults = 'circuitVaults';
|
25
|
+
exports.platformIdByVaultManager = new Map([
|
26
|
+
['GT3RSBy5nS2ACpT3LCkycHWm9CVJCSuqErAgf4sE33Qu', exports.circuitPlatformId],
|
27
|
+
['En8nqJqCE9D2Bsqetw4p89VgZTh8QK8SfCAn5sSyL4PM', exports.moosePlatformId],
|
28
|
+
]);
|
29
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAC9B,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,yBAAiB;IACrB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,uBAAe;IACnB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,8CAA8C;IACrD,qEAAqE;IACrE,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,eAAe,CAAC;AAE/B,QAAA,wBAAwB,GAAwB,IAAI,GAAG,CAAC;IACnE,CAAC,8CAA8C,EAAE,yBAAiB,CAAC;IACnE,CAAC,8CAA8C,EAAE,uBAAe,CAAC;CAClE,CAAC,CAAC"}
|
@@ -13,7 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
-
const constants_1 = require("
|
16
|
+
const constants_1 = require("../drift/constants");
|
17
|
+
const constants_2 = require("./constants");
|
17
18
|
const clients_1 = require("../../utils/clients");
|
18
19
|
const solana_1 = require("../../utils/solana");
|
19
20
|
const structs_1 = require("./structs");
|
@@ -22,10 +23,10 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
22
23
|
const stakingFetcher_1 = require("../goosefx/stakingFetcher");
|
23
24
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
25
|
const client = (0, clients_1.getClientSolana)();
|
25
|
-
const depositAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.vaultDepositorStruct,
|
26
|
+
const depositAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.vaultDepositorStruct, constants_2.vaultsPid, (0, filters_1.vaultDepositorFilter)(owner));
|
26
27
|
if (depositAccounts.length === 0)
|
27
28
|
return [];
|
28
|
-
const vaultsInfo = yield cache.getItems(depositAccounts.map((deposit) => deposit.vault.toString()), { prefix:
|
29
|
+
const vaultsInfo = yield cache.getItems(depositAccounts.map((deposit) => deposit.vault.toString()), { prefix: constants_2.prefixVaults, networkId: portfolio_core_1.NetworkId.solana });
|
29
30
|
const vaultById = new Map();
|
30
31
|
for (const vaultInfo of vaultsInfo) {
|
31
32
|
if (vaultInfo)
|
@@ -43,7 +44,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
43
44
|
const vaultInfo = vaultById.get(depositAccount.vault.toString());
|
44
45
|
if (!vaultInfo)
|
45
46
|
continue;
|
46
|
-
const { decimals, name, mint } = vaultInfo;
|
47
|
+
const { decimals, name, mint, platformId } = vaultInfo;
|
47
48
|
const tokenPrice = tokenPriceById.get(mint);
|
48
49
|
let amountLeft = depositAccount.netDeposits.plus(depositAccount.cumulativeProfitShareAmount);
|
49
50
|
if (!depositAccount.lastWithdrawRequest.value.isZero()) {
|
@@ -62,7 +63,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
62
63
|
continue;
|
63
64
|
elements.push({
|
64
65
|
networkId: portfolio_core_1.NetworkId.solana,
|
65
|
-
platformId
|
66
|
+
platformId,
|
66
67
|
label: 'Deposit',
|
67
68
|
type: portfolio_core_1.PortfolioElementType.multiple,
|
68
69
|
name,
|
@@ -73,7 +74,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
73
74
|
return elements;
|
74
75
|
});
|
75
76
|
const fetcher = {
|
76
|
-
id: `${constants_1.platformId}-deposits`,
|
77
|
+
id: `${constants_1.platformId}-mm-vaults-deposits`,
|
77
78
|
networkId: portfolio_core_1.NetworkId.solana,
|
78
79
|
executor,
|
79
80
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,kDAAmE;AACnE,2CAAsD;AACtD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AACjD,qGAA6E;AAC7E,8DAAsD;AAGtD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,qBAAS,EACT,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAC5B,CAAC;IAEF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,CACrC,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAC1D,EAAE,MAAM,EAAE,wBAAY,EAAE,SAAS,EAAE,0BAAS,CAAC,MAAM,EAAE,CACtD,CAAC;IACF,MAAM,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AO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAe,qBAAqB;IAC3C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/filters.ts"],"names":[],"mappings":";;;AACA,uCAA8D;AAEjD,QAAA,YAAY,GAA+B;IACtD,EAAE,QAAQ,EAAE,qBAAW,CAAC,QAAQ,EAAE;CACnC,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,KAAa,EACe,EAAE,CAAC;IAC/B,EAAE,QAAQ,EAAE,8BAAoB,CAAC,QAAQ,EAAE;IAC3C;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAVW,QAAA,oBAAoB,wBAU/B;AAEW,QAAA,WAAW,GAA+B;IACrD,EAAE,QAAQ,EAAE,qBAAW,CAAC,QAAQ,EAAE;CACnC,CAAC"}
|
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
|
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
|
9
9
|
const vaultsJob_1 = __importDefault(require("./vaultsJob"));
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.circuitPlatform, constants_1.moosePlatform];
|
11
11
|
exports.jobs = [vaultsJob_1.default];
|
12
12
|
exports.fetchers = [depositsFetcher_1.default];
|
13
13
|
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA6D;AAC7D,wEAAgD;AAChD,4DAAoC;AAEvB,QAAA,SAAS,GAAe,CAAC,2BAAe,EAAE,yBAAa,CAAC,CAAC;AACzD,QAAA,IAAI,GAAU,CAAC,mBAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAA0D;AAQ7C,QAAA,qBAAqB,GAAG,IAAI,iBAAU,CACjD;IACE,CAAC,QAAQ,EAAE,aAAI,CAAC;IAChB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,IAAI,EAAE,YAAG,CAAC;CACZ,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAuB,CAClC,CAAC;AAoBW,QAAA,oBAAoB,GAAG,IAAI,iBAAU,CAChD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,aAAa,EAAE,aAAI,CAAC;IACrB,CAAC,qBAAqB,EAAE,6BAAqB,CAAC;IAC9C,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,6BAA6B,EAAE,YAAG,CAAC;IACpC,CAAC,oBAAoB,EAAE,YAAG,CAAC;IAC3B,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,YA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B,EAAE,6BAAqB,CAAC;IACrD,CAAC,YAAY,EAAE,UAAG,CAAC;IACnB,CAAC,aAAa,EAAE,UAAG,CAAC;IACpB,CAAC,YAAY,EAAE,UAAG,CAAC;IACnB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,cAAc,EAAE,WAAI,CAAC;IACtB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAa,CACxB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/types.ts"],"names":[],"mappings":""}
|
@@ -19,7 +19,7 @@ const structs_1 = require("./structs");
|
|
19
19
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
20
20
|
const client = (0, clients_1.getClientSolana)();
|
21
21
|
const [vaults, spotMarkets] = yield Promise.all([
|
22
|
-
(0, solana_1.getParsedProgramAccounts)(client, structs_1.vaultStruct, constants_2.
|
22
|
+
(0, solana_1.getParsedProgramAccounts)(client, structs_1.vaultStruct, constants_2.vaultsPid, filters_1.vaultFilter),
|
23
23
|
cache.getItem(constants_1.keySpotMarkets, {
|
24
24
|
prefix: constants_1.platformId,
|
25
25
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -36,7 +36,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
36
|
const mint = spotMarket.mint.toString();
|
37
37
|
const { decimals } = spotMarket;
|
38
38
|
const pubkey = vault.pubkey.toString();
|
39
|
-
|
39
|
+
const vaultPlatformId = constants_2.platformIdByVaultManager.get(vault.manager.toString());
|
40
|
+
if (!vaultPlatformId)
|
41
|
+
continue;
|
42
|
+
cachedItems.push({
|
43
|
+
key: pubkey,
|
44
|
+
value: { pubkey, platformId: vaultPlatformId, name, mint, decimals },
|
45
|
+
});
|
40
46
|
}
|
41
47
|
yield cache.setItems(cachedItems, {
|
42
48
|
prefix: constants_2.prefixVaults,
|
@@ -44,7 +50,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
50
|
});
|
45
51
|
});
|
46
52
|
const job = {
|
47
|
-
id: `${
|
53
|
+
id: `${constants_1.platformId}-market-maker-vaults`,
|
48
54
|
executor,
|
49
55
|
label: 'normal',
|
50
56
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift-market-maker-vault/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA+E;AAC/E,kDAI4B;AAC5B,2CAAgF;AAChF,uCAAwC;AACxC,uCAAwC;AAIxC,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC9C,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,qBAAS,EAAE,qBAAW,CAAC;QACrE,KAAK,CAAC,OAAO,CAAuB,0BAAc,EAAE;YAClD,MAAM,EAAE,sBAAe;YACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,WAAW;QAAE,OAAO;IAEzB,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,IAAA,wBAAe,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CACjC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,WAAW,KAAK,KAAK,CAAC,eAAe,CACjD,CAAC;QACF,IAAI,CAAC,UAAU;YAAE,SAAS;QAE1B,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxC,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAChC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,eAAe,GAAG,oCAAwB,CAAC,GAAG,CAClD,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CACzB,CAAC;QACF,IAAI,CAAC,eAAe;YAAE,SAAS;QAE/B,WAAW,CAAC,IAAI,CAAC;YACf,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;SACrE,CAAC,CAAC;IACL,CAAC;IAED,MAAM,KAAK,CAAC,QAAQ,CAAY,WAAW,EAAE;QAC3C,MAAM,EAAE,wBAAY;QACpB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,sBAAsB;IACvC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -5,9 +5,11 @@ export declare const platform: Platform;
|
|
5
5
|
export declare const vaultsPackageId = "0xc4ee7b00ea981402a6285b14ffa5dcd1ee7f97eb2a91df3bcc04fa88c56ac7d7";
|
6
6
|
export declare const farmsPackageId = "0x88701243d0445aa38c0a13f02a9af49a58092dfadb93af9754edb41c52f40085";
|
7
7
|
export declare const vaultsInfoKey = "vaultsInfos";
|
8
|
+
export declare const leverageVaultsInfoKey = "leverageVaultsInfos";
|
8
9
|
export declare const farmsInfoKey = "farmsInfos";
|
9
10
|
export declare const vaultsUrl = "https://88ob93rfva.execute-api.ap-southeast-1.amazonaws.com/release/vaults";
|
10
11
|
export declare const poolsUrl = "https://xd0ljetd33.execute-api.ap-southeast-1.amazonaws.com/release/pools";
|
12
|
+
export declare const leverageVaultsUrl = "https://4sacq88271.execute-api.ap-southeast-1.amazonaws.com/release/vaults";
|
11
13
|
export declare const vaultsCointsTypes: string[];
|
12
14
|
export declare const vaultsInfo: VaultInfo[];
|
13
15
|
export declare const dynamicFieldPositionType = "0x2::dynamic_field::Field<vector<u8>, 0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::position::Position>";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.dynamicFieldPositionType = exports.vaultsInfo = exports.vaultsCointsTypes = exports.poolsUrl = exports.vaultsUrl = exports.farmsInfoKey = exports.vaultsInfoKey = exports.farmsPackageId = exports.vaultsPackageId = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.dynamicFieldPositionType = exports.vaultsInfo = exports.vaultsCointsTypes = exports.leverageVaultsUrl = exports.poolsUrl = exports.vaultsUrl = exports.farmsInfoKey = exports.leverageVaultsInfoKey = exports.vaultsInfoKey = exports.farmsPackageId = exports.vaultsPackageId = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'kriya';
|
5
5
|
exports.platform = {
|
6
6
|
id: exports.platformId,
|
@@ -13,9 +13,11 @@ exports.platform = {
|
|
13
13
|
exports.vaultsPackageId = '0xc4ee7b00ea981402a6285b14ffa5dcd1ee7f97eb2a91df3bcc04fa88c56ac7d7';
|
14
14
|
exports.farmsPackageId = '0x88701243d0445aa38c0a13f02a9af49a58092dfadb93af9754edb41c52f40085';
|
15
15
|
exports.vaultsInfoKey = 'vaultsInfos';
|
16
|
+
exports.leverageVaultsInfoKey = 'leverageVaultsInfos';
|
16
17
|
exports.farmsInfoKey = 'farmsInfos';
|
17
18
|
exports.vaultsUrl = 'https://88ob93rfva.execute-api.ap-southeast-1.amazonaws.com/release/vaults';
|
18
19
|
exports.poolsUrl = 'https://xd0ljetd33.execute-api.ap-southeast-1.amazonaws.com/release/pools';
|
20
|
+
exports.leverageVaultsUrl = 'https://4sacq88271.execute-api.ap-southeast-1.amazonaws.com/release/vaults';
|
19
21
|
exports.vaultsCointsTypes = [
|
20
22
|
'0xc4ee7b00ea981402a6285b14ffa5dcd1ee7f97eb2a91df3bcc04fa88c56ac7d7::kc_allweather_vt::KC_ALLWEATHER_VT',
|
21
23
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAC9B,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,SAAS,GACpB,4EAA4E,CAAC;AAClE,QAAA,QAAQ,GACnB,2EAA2E,CAAC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,8BAA8B;CACxC,CAAC;AAEW,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,aAAa,GAAG,aAAa,CAAC;AAC9B,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,YAAY,GAAG,YAAY,CAAC;AAE5B,QAAA,SAAS,GACpB,4EAA4E,CAAC;AAClE,QAAA,QAAQ,GACnB,2EAA2E,CAAC;AACjE,QAAA,iBAAiB,GAC5B,4EAA4E,CAAC;AAElE,QAAA,iBAAiB,GAAG;IAC/B,wGAAwG;CACzG,CAAC;AAEW,QAAA,UAAU,GAAgB;IACrC;QACE,SAAS,EACP,wGAAwG;QAC1G,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;IACD;QACE,SAAS,EACP,4GAA4G;QAC9G,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;IACD;QACE,SAAS,EACP,8FAA8F;QAChG,EAAE,EAAE,oEAAoE;QACxE,cAAc,EACZ,oEAAoE;KACvE;CACF,CAAC;AAEW,QAAA,wBAAwB,GACnC,+HAA+H,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"farmsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/farmsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AAGvD,2CAAiE;AAGjE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,KAAK,GAAqC,MAAM,eAAK;SACxD,GAAG,CAAC,oBAAQ,EAAE;QACb,OAAO,EAAE;YACP,MAAM,EAAE,gCAAgC;YACxC,OAAO,EAAE,+BAA+B;YACxC,WAAW,EAAE,0CAA0C;SACxD;KACF,CAAC;SACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"farmsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/farmsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AAGvD,2CAAiE;AAGjE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,KAAK,GAAqC,MAAM,eAAK;SACxD,GAAG,CAAC,oBAAQ,EAAE;QACb,OAAO,EAAE;YACP,MAAM,EAAE,gCAAgC;YACxC,OAAO,EAAE,+BAA+B;YACxC,WAAW,EAAE,0CAA0C;SACxD;KACF,CAAC;SACD,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAErB,IAAI,CAAC,KAAK;QAAE,OAAO;IAEnB,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QAC9B,IAAI,IAAI,CAAC,SAAS,KAAK,GAAG;YAAE,SAAS;QAErC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,MAAM,KAAK,CAAC,OAAO,CAAC,wBAAY,EAAE,SAAS,EAAE;QAC3C,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -9,7 +9,13 @@ const vaultsFetcher_1 = __importDefault(require("./vaultsFetcher"));
|
|
9
9
|
const vaultsJob_1 = __importDefault(require("./vaultsJob"));
|
10
10
|
const farmsJob_1 = __importDefault(require("./farmsJob"));
|
11
11
|
const farmsFetcher_1 = __importDefault(require("./farmsFetcher"));
|
12
|
+
const leverageVaultsFetcher_1 = __importDefault(require("./leverageVaultsFetcher"));
|
13
|
+
const leverageVaultsJob_1 = __importDefault(require("./leverageVaultsJob"));
|
12
14
|
exports.platforms = [constants_1.platform];
|
13
|
-
exports.jobs = [vaultsJob_1.default, farmsJob_1.default];
|
14
|
-
exports.fetchers = [
|
15
|
+
exports.jobs = [vaultsJob_1.default, leverageVaultsJob_1.default, farmsJob_1.default];
|
16
|
+
exports.fetchers = [
|
17
|
+
vaultsFetcher_1.default,
|
18
|
+
leverageVaultsFetcher_1.default,
|
19
|
+
farmsFetcher_1.default,
|
20
|
+
];
|
15
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,oEAA4C;AAC5C,4DAAoC;AACpC,0DAAkC;AAClC,kEAA0C;AAC1C,oFAA4D;AAC5D,4EAAoD;AAEvC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,mBAAS,EAAE,2BAAiB,EAAE,kBAAQ,CAAC,CAAC;AACvD,QAAA,QAAQ,GAAc;IACjC,uBAAa;IACb,+BAAqB;IACrB,sBAAY;CACb,CAAC"}
|
@@ -0,0 +1,111 @@
|
|
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 bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const clients_1 = require("../../utils/clients");
|
19
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
20
|
+
const getOwnedObjects_1 = require("../../utils/sui/getOwnedObjects");
|
21
|
+
const MemoizedCache_1 = require("../../utils/misc/MemoizedCache");
|
22
|
+
const leverageVaultsMemo = new MemoizedCache_1.MemoizedCache(constants_1.leverageVaultsInfoKey, {
|
23
|
+
prefix: constants_1.platformId,
|
24
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
25
|
+
});
|
26
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
27
|
+
const client = (0, clients_1.getClientSui)();
|
28
|
+
const leverageVaults = yield leverageVaultsMemo.getItem(cache);
|
29
|
+
const receipts = yield (0, getOwnedObjects_1.getOwnedObjects)(client, owner, {
|
30
|
+
filter: {
|
31
|
+
MatchAny: leverageVaults.map((v) => ({
|
32
|
+
StructType: v.farmStakeReceiptType,
|
33
|
+
})),
|
34
|
+
},
|
35
|
+
});
|
36
|
+
if (receipts.length === 0)
|
37
|
+
return [];
|
38
|
+
const mints = new Set();
|
39
|
+
receipts.forEach((pos) => {
|
40
|
+
var _a;
|
41
|
+
const posContent = (_a = pos.data) === null || _a === void 0 ? void 0 : _a.content;
|
42
|
+
if (!posContent)
|
43
|
+
return;
|
44
|
+
const vault = leverageVaults.find((v) => { var _a, _b; return v.farmId === ((_b = (_a = pos.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.farm_id); });
|
45
|
+
if (!vault)
|
46
|
+
return;
|
47
|
+
mints.add((0, portfolio_core_1.formatMoveTokenAddress)(vault.coinA));
|
48
|
+
mints.add((0, portfolio_core_1.formatMoveTokenAddress)(vault.coinB));
|
49
|
+
});
|
50
|
+
const tokenPrices = yield cache.getTokenPricesAsMap([...mints], portfolio_core_1.NetworkId.sui);
|
51
|
+
if (!tokenPrices)
|
52
|
+
return [];
|
53
|
+
const elements = [];
|
54
|
+
receipts.forEach((pos) => {
|
55
|
+
var _a;
|
56
|
+
const posContent = (_a = pos.data) === null || _a === void 0 ? void 0 : _a.content;
|
57
|
+
if (!posContent)
|
58
|
+
return;
|
59
|
+
const vault = leverageVaults.find((v) => { var _a, _b; return v.farmId === ((_b = (_a = pos.data) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.fields.farm_id); });
|
60
|
+
if (!vault)
|
61
|
+
return;
|
62
|
+
const tokenPriceA = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(vault.coinA));
|
63
|
+
const tokenPriceB = tokenPrices.get((0, portfolio_core_1.formatMoveTokenAddress)(vault.coinB));
|
64
|
+
if (!tokenPriceA || !tokenPriceB)
|
65
|
+
return;
|
66
|
+
const sharesPercentage = new bignumber_js_1.default(posContent.fields.rewards_stake_receipt.fields.shares).dividedBy(vault.lpSupply);
|
67
|
+
const depositedUsd = sharesPercentage.multipliedBy(vault.tvl);
|
68
|
+
if (depositedUsd.isZero())
|
69
|
+
return;
|
70
|
+
const borrowedAssets = [];
|
71
|
+
const borrowedYields = [];
|
72
|
+
const suppliedAssets = [];
|
73
|
+
const suppliedYields = [];
|
74
|
+
const rewardAssets = [];
|
75
|
+
suppliedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceA.address, sharesPercentage.multipliedBy(vault.depositedA).toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceA));
|
76
|
+
borrowedAssets.push((0, tokenPriceToAssetToken_1.default)(tokenPriceB.address, sharesPercentage.multipliedBy(vault.borrowedB).toNumber(), portfolio_core_1.NetworkId.sui, tokenPriceB));
|
77
|
+
const { borrowedValue, suppliedValue, value, rewardValue, healthRatio } = (0, portfolio_core_1.getElementLendingValues)({
|
78
|
+
suppliedAssets,
|
79
|
+
borrowedAssets,
|
80
|
+
rewardAssets,
|
81
|
+
});
|
82
|
+
elements.push({
|
83
|
+
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
84
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
85
|
+
platformId: constants_1.platformId,
|
86
|
+
label: 'Lending',
|
87
|
+
name: `${vault.vaultSource} ${vault.vaultName}`,
|
88
|
+
value,
|
89
|
+
data: {
|
90
|
+
borrowedAssets,
|
91
|
+
borrowedValue,
|
92
|
+
borrowedYields,
|
93
|
+
suppliedAssets,
|
94
|
+
suppliedValue,
|
95
|
+
suppliedYields,
|
96
|
+
healthRatio,
|
97
|
+
rewardAssets,
|
98
|
+
rewardValue,
|
99
|
+
value,
|
100
|
+
},
|
101
|
+
});
|
102
|
+
});
|
103
|
+
return elements;
|
104
|
+
});
|
105
|
+
const fetcher = {
|
106
|
+
id: `${constants_1.platformId}-leverage-vaults`,
|
107
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
108
|
+
executor,
|
109
|
+
};
|
110
|
+
exports.default = fetcher;
|
111
|
+
//# sourceMappingURL=leverageVaultsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"leverageVaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/leverageVaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAAgE;AAChE,iDAAmD;AAEnD,qGAA6E;AAC7E,qEAAkE;AAClE,kEAA+D;AAE/D,MAAM,kBAAkB,GAAG,IAAI,6BAAa,CAC1C,iCAAqB,EACrB;IACE,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AAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
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 axios_1 = __importDefault(require("axios"));
|
16
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
const vaults = yield axios_1.default
|
20
|
+
.get(constants_1.leverageVaultsUrl)
|
21
|
+
.catch(() => null);
|
22
|
+
if (!vaults)
|
23
|
+
return;
|
24
|
+
yield cache.setItem(constants_1.leverageVaultsInfoKey, vaults.data, {
|
25
|
+
prefix: constants_1.platformId,
|
26
|
+
networkId: portfolio_core_1.NetworkId.sui,
|
27
|
+
});
|
28
|
+
});
|
29
|
+
const job = {
|
30
|
+
id: `${constants_1.platformId}-leverage-vaults`,
|
31
|
+
executor,
|
32
|
+
label: 'normal',
|
33
|
+
};
|
34
|
+
exports.default = job;
|
35
|
+
//# sourceMappingURL=leverageVaultsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"leverageVaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/leverageVaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA6C;AAC7C,+DAAuD;AAGvD,2CAIqB;AAGrB,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAA8C,MAAM,eAAK;SAClE,GAAG,CAAC,6BAAiB,CAAC;SACtB,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAErB,IAAI,CAAC,MAAM;QAAE,OAAO;IAEpB,MAAM,KAAK,CAAC,OAAO,CAAC,iCAAqB,EAAE,MAAM,CAAC,IAAI,EAAE;QACtD,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,GAAG;KACzB,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,kBAAkB;IACnC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -153,3 +153,53 @@ export type LiquidityPosition = {
|
|
153
153
|
stake_weight: string;
|
154
154
|
start_unit: string;
|
155
155
|
};
|
156
|
+
export type StakeReceiptWithPoints = {
|
157
|
+
farm_id: string;
|
158
|
+
id: ID;
|
159
|
+
rewards_stake_receipt: {
|
160
|
+
fields: {
|
161
|
+
farm_id: string;
|
162
|
+
id: ID;
|
163
|
+
reward_infos: {
|
164
|
+
fields: {
|
165
|
+
id: ID;
|
166
|
+
size: string;
|
167
|
+
};
|
168
|
+
type: string;
|
169
|
+
};
|
170
|
+
shares: string;
|
171
|
+
};
|
172
|
+
type: string;
|
173
|
+
};
|
174
|
+
user_points_info: {
|
175
|
+
fields: {
|
176
|
+
claimed_points: string;
|
177
|
+
index: string;
|
178
|
+
updated_at: string;
|
179
|
+
};
|
180
|
+
type: string;
|
181
|
+
};
|
182
|
+
};
|
183
|
+
export type LeverageVaultInfo = {
|
184
|
+
depositedA: string;
|
185
|
+
apr: string;
|
186
|
+
borrowedBUsd: string;
|
187
|
+
farmStakeReceiptType: string;
|
188
|
+
decimalA: string;
|
189
|
+
createdAt: string;
|
190
|
+
farmSource: string;
|
191
|
+
coinB: string;
|
192
|
+
decimalB: string;
|
193
|
+
tvl: string;
|
194
|
+
borrowedB: string;
|
195
|
+
targetLeverage: string;
|
196
|
+
vaultName: string;
|
197
|
+
depositedAUsd: string;
|
198
|
+
lpSupply: string;
|
199
|
+
vaultSource: string;
|
200
|
+
farmId: string;
|
201
|
+
fees: string;
|
202
|
+
coinA: string;
|
203
|
+
updatedAt: string;
|
204
|
+
id: string;
|
205
|
+
};
|
@@ -26,7 +26,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
26
26
|
if (!vaultsBalances.some((balance) => balance.totalBalance !== '0'))
|
27
27
|
return [];
|
28
28
|
const poolInfos = yield cache.getItems(constants_1.vaultsInfo.map((vault) => vault.underlyingPool), { prefix: constants_2.clmmPoolsPrefix, networkId: portfolio_core_1.NetworkId.sui });
|
29
|
-
console.log('constexecutor:FetcherExecutor= ~ poolInfos:', poolInfos);
|
30
29
|
const vaultsPositionInfo = yield cache.getItem(constants_1.vaultsInfoKey, {
|
31
30
|
prefix: constants_1.platformId,
|
32
31
|
networkId: portfolio_core_1.NetworkId.sui,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kriya/vaultsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAGrC,2CAAoE;AACpE,iDAAmD;AACnD,6EAA0E;AAE1E,kDAAqD;AAErD,wFAAyF;AACzF,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,GAAE,CAAC;IAE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GAAG,IAAA,+BAAc,EAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;QACjD,WAAW,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;YACxB,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,IAAI;YACvB,KAAK;YACL,MAAM,EAAE,EAAE;SACX,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,OAAO;QACL;YACE,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE;gBACJ,WAAW;aACZ;YACD,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,0BAAS,CAAC,GAAG;YACxB,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;SACf;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -68,7 +68,7 @@ function getRaydiumCLMMPositions(cache, nfts) {
|
|
68
68
|
})),
|
69
69
|
cache.getTokenPricesAsMap([...Array.from(mints)], portfolio_core_1.NetworkId.solana),
|
70
70
|
]);
|
71
|
-
const
|
71
|
+
const elements = [];
|
72
72
|
for (let index = 0; index < personalPositionsInfo.length; index++) {
|
73
73
|
const poolStateInfo = poolStatesInfo[index];
|
74
74
|
if (!poolStateInfo)
|
@@ -116,29 +116,28 @@ function getRaydiumCLMMPositions(cache, nfts) {
|
|
116
116
|
const value = (0, portfolio_core_1.getUsdValueSum)([...assets, ...rewardAssets].map((a) => a.value));
|
117
117
|
if (!value)
|
118
118
|
continue;
|
119
|
-
liquidities
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
119
|
+
const liquidities = [
|
120
|
+
{
|
121
|
+
assets,
|
122
|
+
assetsValue,
|
123
|
+
rewardAssets,
|
124
|
+
rewardAssetsValue,
|
125
|
+
value,
|
126
|
+
yields: [],
|
127
|
+
},
|
128
|
+
];
|
129
|
+
elements.push({
|
130
|
+
type: portfolio_core_1.PortfolioElementType.liquidity,
|
131
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
132
|
+
platformId: constants_1.platformId,
|
133
|
+
label: 'LiquidityPool',
|
134
|
+
name: 'Concentrated',
|
135
|
+
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
136
|
+
data: {
|
137
|
+
liquidities,
|
138
|
+
},
|
126
139
|
});
|
127
140
|
}
|
128
|
-
if (liquidities.length === 0)
|
129
|
-
return [];
|
130
|
-
const elements = [];
|
131
|
-
elements.push({
|
132
|
-
type: portfolio_core_1.PortfolioElementType.liquidity,
|
133
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
134
|
-
platformId: constants_1.platformId,
|
135
|
-
label: 'LiquidityPool',
|
136
|
-
name: 'Concentrated',
|
137
|
-
value: (0, portfolio_core_1.getUsdValueSum)(liquidities.map((a) => a.value)),
|
138
|
-
data: {
|
139
|
-
liquidities,
|
140
|
-
},
|
141
|
-
});
|
142
141
|
return elements;
|
143
142
|
});
|
144
143
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getRaydiumCLMMPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/getRaydiumCLMMPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"getRaydiumCLMMPositions.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/getRaydiumCLMMPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,6CAA4C;AAC5C,2CAAyD;AACzD,qGAA6E;AAC7E,+CAAmE;AACnE,iD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G,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AApMD,0DAoMC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { PublicKey } from '@solana/web3.js';
|
2
|
-
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
-
export declare const platformId = "circuit";
|
4
|
-
export declare const platform: Platform;
|
5
|
-
export declare const circuitPid: PublicKey;
|
6
|
-
export declare const jitoSOLMint = "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn";
|
7
|
-
export declare const prefixVaults = "circuitVaults";
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.prefixVaults = exports.jitoSOLMint = exports.circuitPid = exports.platform = exports.platformId = void 0;
|
4
|
-
const web3_js_1 = require("@solana/web3.js");
|
5
|
-
exports.platformId = 'circuit';
|
6
|
-
exports.platform = {
|
7
|
-
id: exports.platformId,
|
8
|
-
name: 'Circuit',
|
9
|
-
image: 'https://sonar.watch/img/platforms/circuit.webp',
|
10
|
-
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
11
|
-
website: 'https://app.circuit.trade/',
|
12
|
-
twitter: 'https://twitter.com/CircuitTrading_',
|
13
|
-
};
|
14
|
-
exports.circuitPid = new web3_js_1.PublicKey('vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR');
|
15
|
-
exports.jitoSOLMint = 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn';
|
16
|
-
exports.prefixVaults = 'circuitVaults';
|
17
|
-
//# sourceMappingURL=constants.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,gDAAgD;IACvD,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,6CAA6C,CAC9C,CAAC;AACW,QAAA,WAAW,GAAG,8CAA8C,CAAC;AAC7D,QAAA,YAAY,GAAG,eAAe,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAOoC;AAGpC,2CAAmE;AACnE,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAiD;AACjD,uCAAiD;AACjD,qGAA6E;AAC7E,8DAAsD;AAGtD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,sBAAU,EACV,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAC5B,CAAC;IAEF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,QAAQ,CACrC,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EAC1D,EAAE,MAAM,EAAE,wBAAY,EAAE,SAAS,EAAE,0BAAS,CAAC,MAAM,EAAE,CACtD,CA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ACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/filters.ts"],"names":[],"mappings":";;;AACA,uCAA8D;AAEjD,QAAA,YAAY,GAA+B;IACtD,EAAE,QAAQ,EAAE,qBAAW,CAAC,QAAQ,EAAE;CACnC,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,KAAa,EACe,EAAE,CAAC;IAC/B,EAAE,QAAQ,EAAE,8BAAoB,CAAC,QAAQ,EAAE;IAC3C;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,KAAK;SACb;KACF;CACF,CAAC;AAVW,QAAA,oBAAoB,wBAU/B;AAEW,QAAA,WAAW,GAA+B;IACrD,EAAE,QAAQ,EAAE,qBAAW,CAAC,QAAQ,EAAE;CACnC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wEAAgD;AAChD,4DAAoC;AAEvB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,mBAAS,CAAC,CAAC;AAC1B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAA0D;AAQ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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/types.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"vaultsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/circuit/vaultsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,iDAAsD;AACtD,+CAA+E;AAC/E,kDAG4B;AAC5B,2CAAmE;AACnE,uCAAwC;AACxC,uCAAwC;AAIxC,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC9C,IAAA,iCAAwB,EAAC,MAAM,EAAE,qBAAW,EAAE,sBAAU,EAAE,qBAAW,CAAC;QACtE,KAAK,CAAC,OAAO,CAAuB,0BAAc,EAAE;YAClD,MAAM,EAAE,sBAAe;YACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;SAC5B,CAAC;KACH,CAAC,CAAC;IAEH,IAAI,CAAC,WAAW;QAAE,OAAO;IAEzB,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,IAAI,GAAG,IAAA,wBAAe,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CACjC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,WAAW,KAAK,KAAK,CAAC,eAAe,CACjD,CAAC;QACF,IAAI,CAAC,UAAU;YAAE,SAAS;QAE1B,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxC,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAChC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACvC,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,KAAK,CAAC,QAAQ,CAAY,WAAW,EAAE;QAC3C,MAAM,EAAE,wBAAY;QACpB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|