@sonarwatch/portfolio-plugins 0.11.183 → 0.11.185
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1477 -1459
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/generators/helpers.js +1 -1
- package/src/generators/helpers.js.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/plugins/aave/constants.d.ts +1 -1
- package/src/plugins/aave/constants.js +2 -2
- package/src/plugins/aave/constants.js.map +1 -1
- package/src/plugins/aave/index.js +1 -1
- package/src/plugins/aave/index.js.map +1 -1
- package/src/plugins/aftermath/constants.d.ts +1 -1
- package/src/plugins/aftermath/constants.js +2 -2
- package/src/plugins/aftermath/constants.js.map +1 -1
- package/src/plugins/aftermath/index.js +1 -1
- package/src/plugins/aftermath/index.js.map +1 -1
- package/src/plugins/aptin/constants.d.ts +3 -0
- package/src/plugins/aptin/constants.js +5 -2
- package/src/plugins/aptin/constants.js.map +1 -1
- package/src/plugins/aptin/depositsFetcher.js +2 -2
- package/src/plugins/aptin/depositsFetcher.js.map +1 -1
- package/src/plugins/armada-staking/constants.js +6 -6
- package/src/plugins/armada-staking/constants.js.map +1 -1
- package/src/plugins/aurory/constants.d.ts +1 -1
- package/src/plugins/aurory/constants.js +3 -3
- package/src/plugins/aurory/constants.js.map +1 -1
- package/src/plugins/aurory/stakingFetcher.js +2 -2
- package/src/plugins/aurory/stakingFetcher.js.map +1 -1
- package/src/plugins/auxexchange/aptosLpJob.js +2 -2
- package/src/plugins/auxexchange/aptosLpJob.js.map +1 -1
- package/src/plugins/auxexchange/constants.d.ts +2 -2
- package/src/plugins/auxexchange/constants.js +4 -4
- package/src/plugins/auxexchange/constants.js.map +1 -1
- package/src/plugins/auxexchange/index.js +1 -1
- package/src/plugins/auxexchange/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/banx/constants.js +1 -1
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/bucket/constants.d.ts +1 -1
- package/src/plugins/bucket/constants.js +2 -2
- package/src/plugins/bucket/constants.js.map +1 -1
- package/src/plugins/bucket/index.js +1 -1
- package/src/plugins/bucket/index.js.map +1 -1
- package/src/plugins/cetus/constants.d.ts +1 -1
- package/src/plugins/cetus/constants.js +2 -2
- package/src/plugins/cetus/constants.js.map +1 -1
- package/src/plugins/cetus/index.js +1 -1
- package/src/plugins/cetus/index.js.map +1 -1
- package/src/plugins/clone/constants.js +1 -1
- package/src/plugins/clone/constants.js.map +1 -1
- package/src/plugins/compound/constants.d.ts +1 -1
- package/src/plugins/compound/constants.js +2 -2
- package/src/plugins/compound/constants.js.map +1 -1
- package/src/plugins/compound/index.js +1 -1
- package/src/plugins/compound/index.js.map +1 -1
- package/src/plugins/curve/constants.d.ts +1 -1
- package/src/plugins/curve/constants.js +2 -2
- package/src/plugins/curve/constants.js.map +1 -1
- package/src/plugins/curve/index.js +1 -1
- package/src/plugins/curve/index.js.map +1 -1
- package/src/plugins/daos/constants.js +2 -1
- package/src/plugins/daos/constants.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +1 -1
- package/src/plugins/drift/constants.js +2 -2
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/index.js +1 -1
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/flash/constants.d.ts +1 -0
- package/src/plugins/flash/constants.js +2 -1
- package/src/plugins/flash/constants.js.map +1 -1
- package/src/plugins/flash/poolJob.js +28 -4
- package/src/plugins/flash/poolJob.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +42 -18
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/flash/types.d.ts +5 -0
- package/src/plugins/flexlend/constants.d.ts +1 -1
- package/src/plugins/flexlend/constants.js +2 -2
- package/src/plugins/flexlend/constants.js.map +1 -1
- package/src/plugins/flexlend/depositsFetcher.js +1 -1
- package/src/plugins/flexlend/depositsFetcher.js.map +1 -1
- package/src/plugins/flexlend/index.js +1 -1
- package/src/plugins/flexlend/index.js.map +1 -1
- package/src/plugins/goosefx/constants.d.ts +1 -1
- package/src/plugins/goosefx/constants.js +2 -2
- package/src/plugins/goosefx/constants.js.map +1 -1
- package/src/plugins/goosefx/index.js +1 -1
- package/src/plugins/goosefx/index.js.map +1 -1
- package/src/plugins/hawksight/constants.d.ts +1 -1
- package/src/plugins/hawksight/constants.js +2 -2
- package/src/plugins/hawksight/constants.js.map +1 -1
- package/src/plugins/hawksight/index.js +1 -1
- package/src/plugins/hawksight/index.js.map +1 -1
- package/src/plugins/jito/constants.d.ts +1 -1
- package/src/plugins/jito/constants.js +2 -2
- package/src/plugins/jito/constants.js.map +1 -1
- package/src/plugins/jito/index.js +1 -1
- package/src/plugins/jito/index.js.map +1 -1
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -1
- package/src/plugins/jupiter/exchange/constants.js +2 -2
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/governance/constants.d.ts +2 -2
- package/src/plugins/jupiter/governance/constants.js +4 -4
- package/src/plugins/jupiter/governance/constants.js.map +1 -1
- package/src/plugins/jupiter/governance/voteFetcher.js +2 -2
- package/src/plugins/jupiter/governance/voteFetcher.js.map +1 -1
- package/src/plugins/jupiter/index.js +3 -3
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js +2 -2
- package/src/plugins/jupiter/launchpad/allocationsFetcher.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.d.ts +2 -2
- package/src/plugins/jupiter/launchpad/constants.js +4 -4
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/kamino/airdropFetcher.js +2 -2
- package/src/plugins/kamino/airdropFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.d.ts +1 -1
- package/src/plugins/kamino/constants.js +2 -2
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/index.js +1 -1
- package/src/plugins/kamino/index.js.map +1 -1
- package/src/plugins/lido/constants.d.ts +1 -1
- package/src/plugins/lido/constants.js +2 -2
- package/src/plugins/lido/constants.js.map +1 -1
- package/src/plugins/lido/index.js +1 -1
- package/src/plugins/lido/index.js.map +1 -1
- package/src/plugins/liquidswap/constants.d.ts +1 -1
- package/src/plugins/liquidswap/constants.js +2 -2
- package/src/plugins/liquidswap/constants.js.map +1 -1
- package/src/plugins/liquidswap/index.js +1 -1
- package/src/plugins/liquidswap/index.js.map +1 -1
- package/src/plugins/magiceden/constants.d.ts +1 -1
- package/src/plugins/magiceden/constants.js +2 -2
- package/src/plugins/magiceden/constants.js.map +1 -1
- package/src/plugins/magiceden/index.js +1 -1
- package/src/plugins/magiceden/index.js.map +1 -1
- package/src/plugins/maker/constants.d.ts +1 -1
- package/src/plugins/maker/constants.js +2 -2
- package/src/plugins/maker/constants.js.map +1 -1
- package/src/plugins/maker/index.js +1 -1
- package/src/plugins/maker/index.js.map +1 -1
- package/src/plugins/mango/constants.d.ts +1 -1
- package/src/plugins/mango/constants.js +2 -2
- package/src/plugins/mango/constants.js.map +1 -1
- package/src/plugins/mango/index.js +1 -1
- package/src/plugins/mango/index.js.map +1 -1
- package/src/plugins/maple/constants.d.ts +1 -1
- package/src/plugins/maple/constants.js +2 -2
- package/src/plugins/maple/constants.js.map +1 -1
- package/src/plugins/maple/index.js +1 -1
- package/src/plugins/maple/index.js.map +1 -1
- package/src/plugins/marginfi/constants.d.ts +2 -2
- package/src/plugins/marginfi/constants.js +3 -3
- package/src/plugins/marginfi/constants.js.map +1 -1
- package/src/plugins/marginfi/index.js +1 -1
- package/src/plugins/marginfi/index.js.map +1 -1
- package/src/plugins/marinade/constants.d.ts +1 -1
- package/src/plugins/marinade/constants.js +2 -2
- package/src/plugins/marinade/constants.js.map +1 -1
- package/src/plugins/marinade/index.js +1 -1
- package/src/plugins/marinade/index.js.map +1 -1
- package/src/plugins/meteora/constants.d.ts +1 -1
- package/src/plugins/meteora/constants.js +2 -2
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/meteora/index.js +1 -1
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/morpho/constants.d.ts +1 -1
- package/src/plugins/morpho/constants.js +2 -2
- package/src/plugins/morpho/constants.js.map +1 -1
- package/src/plugins/morpho/index.js +1 -1
- package/src/plugins/morpho/index.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaFetcher.js +7 -7
- package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
- package/src/plugins/navi/constants.d.ts +1 -1
- package/src/plugins/navi/constants.js +2 -2
- package/src/plugins/navi/constants.js.map +1 -1
- package/src/plugins/navi/index.js +1 -1
- package/src/plugins/navi/index.js.map +1 -1
- package/src/plugins/nosana/constants.js +1 -1
- package/src/plugins/nosana/constants.js.map +1 -1
- package/src/plugins/orca/constants.d.ts +1 -1
- package/src/plugins/orca/constants.js +2 -2
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orca/index.js +1 -1
- package/src/plugins/orca/index.js.map +1 -1
- package/src/plugins/pancakeswap/constants.d.ts +1 -1
- package/src/plugins/pancakeswap/constants.js +2 -2
- package/src/plugins/pancakeswap/constants.js.map +1 -1
- package/src/plugins/pancakeswap/index.js +1 -1
- package/src/plugins/pancakeswap/index.js.map +1 -1
- package/src/plugins/paraswap/constants.d.ts +1 -1
- package/src/plugins/paraswap/constants.js +2 -2
- package/src/plugins/paraswap/constants.js.map +1 -1
- package/src/plugins/paraswap/index.js +1 -1
- package/src/plugins/paraswap/index.js.map +1 -1
- package/src/plugins/parcl/airdropFetcher.js +3 -0
- package/src/plugins/parcl/airdropFetcher.js.map +1 -1
- package/src/plugins/parcl/constants.d.ts +1 -1
- package/src/plugins/parcl/constants.js +2 -2
- package/src/plugins/parcl/constants.js.map +1 -1
- package/src/plugins/parcl/index.js +1 -1
- package/src/plugins/parcl/index.js.map +1 -1
- package/src/plugins/rain/constants.js +1 -1
- package/src/plugins/rain/constants.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +1 -1
- package/src/plugins/raydium/constants.js +2 -2
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/index.js +1 -1
- package/src/plugins/raydium/index.js.map +1 -1
- package/src/plugins/rocket-pool/constants.d.ts +1 -1
- package/src/plugins/rocket-pool/constants.js +2 -2
- package/src/plugins/rocket-pool/constants.js.map +1 -1
- package/src/plugins/rocket-pool/index.js +1 -1
- package/src/plugins/rocket-pool/index.js.map +1 -1
- package/src/plugins/saber/constants.d.ts +1 -1
- package/src/plugins/saber/constants.js +2 -2
- package/src/plugins/saber/constants.js.map +1 -1
- package/src/plugins/saber/index.js +1 -1
- package/src/plugins/saber/index.js.map +1 -1
- package/src/plugins/scallop/constants.d.ts +1 -1
- package/src/plugins/scallop/constants.js +9 -9
- package/src/plugins/scallop/constants.js.map +1 -1
- package/src/plugins/scallop/index.js +1 -1
- package/src/plugins/scallop/index.js.map +1 -1
- package/src/plugins/solend/constants.d.ts +1 -1
- package/src/plugins/solend/constants.js +2 -2
- package/src/plugins/solend/constants.js.map +1 -1
- package/src/plugins/solend/index.js +1 -1
- package/src/plugins/solend/index.js.map +1 -1
- package/src/plugins/stader/constants.d.ts +1 -1
- package/src/plugins/stader/constants.js +2 -2
- package/src/plugins/stader/constants.js.map +1 -1
- package/src/plugins/stader/index.js +1 -1
- package/src/plugins/stader/index.js.map +1 -1
- package/src/plugins/stargate/constants.d.ts +1 -1
- package/src/plugins/stargate/constants.js +2 -2
- package/src/plugins/stargate/constants.js.map +1 -1
- package/src/plugins/stargate/index.js +1 -1
- package/src/plugins/stargate/index.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/switchboard/constants.d.ts +1 -0
- package/src/plugins/switchboard/constants.js +5 -0
- package/src/plugins/switchboard/constants.js.map +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.d.ts +3 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.js +20 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.js.map +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.d.ts +3 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.js +23 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.js.map +1 -0
- package/src/plugins/switchboard/helpers/misc.d.ts +2 -0
- package/src/plugins/switchboard/helpers/misc.js +26 -0
- package/src/plugins/switchboard/helpers/misc.js.map +1 -0
- package/src/plugins/switchboard/index.d.ts +4 -0
- package/src/plugins/switchboard/index.js +10 -0
- package/src/plugins/switchboard/index.js.map +1 -0
- package/src/plugins/switchboard/pricingJob.d.ts +3 -0
- package/src/plugins/switchboard/pricingJob.js +57 -0
- package/src/plugins/switchboard/pricingJob.js.map +1 -0
- package/src/plugins/switchboard/structs.d.ts +74 -0
- package/src/plugins/switchboard/structs.js +72 -0
- package/src/plugins/switchboard/structs.js.map +1 -0
- package/src/plugins/tensor/constants.d.ts +1 -1
- package/src/plugins/tensor/constants.js +2 -2
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/index.js +1 -1
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/thala/constants.d.ts +12 -5
- package/src/plugins/thala/constants.js +9 -9
- package/src/plugins/thala/constants.js.map +1 -1
- package/src/plugins/thala/index.js +1 -1
- package/src/plugins/thala/index.js.map +1 -1
- package/src/plugins/thala/vaultsRatesJob.js +1 -1
- package/src/plugins/thala/vaultsRatesJob.js.map +1 -1
- package/src/plugins/turbos/constants.d.ts +1 -1
- package/src/plugins/turbos/constants.js +2 -2
- package/src/plugins/turbos/constants.js.map +1 -1
- package/src/plugins/turbos/index.js +1 -1
- package/src/plugins/turbos/index.js.map +1 -1
- package/src/plugins/uniswap/constants.d.ts +1 -1
- package/src/plugins/uniswap/constants.js +2 -2
- package/src/plugins/uniswap/constants.js.map +1 -1
- package/src/plugins/uniswap/getUniV3PositionsFetcher.js +1 -1
- package/src/plugins/uniswap/getUniV3PositionsFetcher.js.map +1 -1
- package/src/plugins/uniswap/index.js +1 -1
- package/src/plugins/uniswap/index.js.map +1 -1
- package/src/plugins/uniswap-v2/getPositionsV2Fetcher.js +1 -1
- package/src/plugins/uniswap-v2/getPositionsV2Fetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +23 -23
- package/src/plugins/uniswap-v2/helpers.js.map +1 -1
- package/src/plugins/venus/constants.d.ts +1 -1
- package/src/plugins/venus/constants.js +3 -7
- package/src/plugins/venus/constants.js.map +1 -1
- package/src/plugins/venus/index.js +1 -1
- package/src/plugins/venus/index.js.map +1 -1
- package/src/plugins/wormhole/constants.js +1 -1
- package/src/plugins/wormhole/constants.js.map +1 -1
- package/src/plugins/x-staking-solana/constants.js +2 -2
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/plugins/zeta/constants.d.ts +1 -1
- package/src/plugins/zeta/constants.js +2 -2
- package/src/plugins/zeta/constants.js.map +1 -1
- package/src/plugins/zeta/index.js +1 -1
- package/src/plugins/zeta/index.js.map +1 -1
- package/src/utils/misc/getImagefromUri.js +1 -1
- package/src/utils/misc/getImagefromUri.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -0,0 +1,57 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const web3_js_1 = require("@solana/web3.js");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
const clients_1 = require("../../utils/clients");
|
16
|
+
const getSwitchboardPrices_1 = require("./helpers/getSwitchboardPrices");
|
17
|
+
const getMultipleDecimalsAsMap_1 = require("../../utils/solana/getMultipleDecimalsAsMap");
|
18
|
+
const constants_2 = require("../tokens/constants");
|
19
|
+
const feedsToFetch = [
|
20
|
+
{
|
21
|
+
feedAddress: new web3_js_1.PublicKey('8LtARpjD6KsDGep66RPs1t5j8He766rhbYp3Dx7bNvGo'),
|
22
|
+
mintAddress: 'ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo',
|
23
|
+
},
|
24
|
+
];
|
25
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
26
|
+
const connection = (0, clients_1.getClientSolana)();
|
27
|
+
const values = yield (0, getSwitchboardPrices_1.getSwitchboardPrices)(connection, feedsToFetch.map((fToFetch) => fToFetch.feedAddress));
|
28
|
+
const decimalsMap = yield (0, getMultipleDecimalsAsMap_1.getMultipleDecimalsAsMap)(connection, feedsToFetch.map((fToFetch) => new web3_js_1.PublicKey(fToFetch.mintAddress)));
|
29
|
+
const sources = [];
|
30
|
+
feedsToFetch.forEach((feedToFetch, i) => {
|
31
|
+
const price = values.at(i);
|
32
|
+
if (!price)
|
33
|
+
return;
|
34
|
+
const decimals = decimalsMap.get(feedToFetch.mintAddress);
|
35
|
+
if (!decimals)
|
36
|
+
return;
|
37
|
+
const source = {
|
38
|
+
address: feedToFetch.mintAddress,
|
39
|
+
decimals,
|
40
|
+
id: `switchboard-feed-${feedToFetch.feedAddress.toString()}`,
|
41
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
42
|
+
platformId: constants_2.walletTokensPlatform.id,
|
43
|
+
weight: 0.5,
|
44
|
+
timestamp: Date.now(),
|
45
|
+
price,
|
46
|
+
};
|
47
|
+
sources.push(source);
|
48
|
+
});
|
49
|
+
yield cache.setTokenPriceSources(sources);
|
50
|
+
});
|
51
|
+
const job = {
|
52
|
+
id: `${constants_1.platformId}-pricing`,
|
53
|
+
executor,
|
54
|
+
label: 'coingecko',
|
55
|
+
};
|
56
|
+
exports.default = job;
|
57
|
+
//# sourceMappingURL=pricingJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAyE;AACzE,6CAA4C;AAG5C,2CAAyC;AACzC,iDAAsD;AACtD,yEAAsE;AACtE,0FAAuF;AACvF,mDAA2D;AAE3D,MAAM,YAAY,GAAG;IACnB;QACE,WAAW,EAAE,IAAI,mBAAS,CAAC,8CAA8C,CAAC;QAC1E,WAAW,EAAE,6CAA6C;KAC3D;CACF,CAAC;AAEF,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,IAAA,2CAAoB,EACvC,UAAU,EACV,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CACrD,CAAC;IACF,MAAM,WAAW,GAAG,MAAM,IAAA,mDAAwB,EAChD,UAAU,EACV,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,mBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CACpE,CAAC;IAEF,MAAM,OAAO,GAAuB,EAAE,CAAC;IACvC,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE;QACtC,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ;YAAE,OAAO;QACtB,MAAM,MAAM,GAAqB;YAC/B,OAAO,EAAE,WAAW,CAAC,WAAW;YAChC,QAAQ;YACR,EAAE,EAAE,oBAAoB,WAAW,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE;YAC5D,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAE,gCAAoB,CAAC,EAAE;YACnC,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,KAAK;SACN,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
import { PublicKey } from '@solana/web3.js';
|
5
|
+
export declare enum AggregatorResolutionMode {
|
6
|
+
ModeRoundResolution = 0,
|
7
|
+
ModeSlidingResolution = 1
|
8
|
+
}
|
9
|
+
export type Hash = {
|
10
|
+
data: number[];
|
11
|
+
};
|
12
|
+
export declare const hashStruct: BeetStruct<Hash, Partial<Hash>>;
|
13
|
+
export type SwitchboardDecimal = {
|
14
|
+
mantissa: BigNumber;
|
15
|
+
scale: number;
|
16
|
+
};
|
17
|
+
export declare const switchboardDecimalStruct: BeetStruct<SwitchboardDecimal, Partial<SwitchboardDecimal>>;
|
18
|
+
export type AggregatorRound = {
|
19
|
+
numSuccess: number;
|
20
|
+
numError: number;
|
21
|
+
isClosed: boolean;
|
22
|
+
roundOpenSlot: BigNumber;
|
23
|
+
roundOpenTimestamp: BigNumber;
|
24
|
+
result: SwitchboardDecimal;
|
25
|
+
stdDeviation: SwitchboardDecimal;
|
26
|
+
minResponse: SwitchboardDecimal;
|
27
|
+
maxResponse: SwitchboardDecimal;
|
28
|
+
oraclePubkeysData: PublicKey[];
|
29
|
+
mediansData: SwitchboardDecimal[];
|
30
|
+
currentPayout: BigNumber[];
|
31
|
+
mediansFulfilled: boolean[];
|
32
|
+
errorsFulfilled: boolean[];
|
33
|
+
};
|
34
|
+
export declare const aggregatorRoundStruct: FixableBeetStruct<AggregatorRound, Partial<AggregatorRound>>;
|
35
|
+
export type AggregatorAccount = {
|
36
|
+
buffer: Buffer;
|
37
|
+
name: number[];
|
38
|
+
metadata: number[];
|
39
|
+
reserved1: number[];
|
40
|
+
queuePubkey: PublicKey;
|
41
|
+
oracleRequestBatchSize: number;
|
42
|
+
minOracleResults: number;
|
43
|
+
minJobResults: number;
|
44
|
+
minUpdateDelaySeconds: number;
|
45
|
+
startAfter: BigNumber;
|
46
|
+
varianceThreshold: SwitchboardDecimal;
|
47
|
+
forceReportPeriod: BigNumber;
|
48
|
+
expiration: BigNumber;
|
49
|
+
consecutiveFailureCount: BigNumber;
|
50
|
+
nextAllowedUpdateTime: BigNumber;
|
51
|
+
isLocked: boolean;
|
52
|
+
crankPubkey: PublicKey;
|
53
|
+
latestConfirmedRound: AggregatorRound;
|
54
|
+
currentRound: AggregatorRound;
|
55
|
+
jobPubkeysData: PublicKey[];
|
56
|
+
jobHashes: Hash[];
|
57
|
+
jobPubkeysSize: number;
|
58
|
+
jobsChecksum: number[];
|
59
|
+
authority: PublicKey;
|
60
|
+
historyBuffer: PublicKey;
|
61
|
+
previousConfirmedRoundResult: SwitchboardDecimal;
|
62
|
+
previousConfirmedRoundSlot: BigNumber;
|
63
|
+
disableCrank: boolean;
|
64
|
+
jobWeights: number[];
|
65
|
+
creationTimestamp: BigNumber;
|
66
|
+
resolutionMode: AggregatorResolutionMode;
|
67
|
+
basePriorityFee: number;
|
68
|
+
priorityFeeBump: number;
|
69
|
+
priorityFeeBumpPeriod: number;
|
70
|
+
maxPriorityFeeMultiplier: number;
|
71
|
+
parentFunction: PublicKey;
|
72
|
+
ebuf: number[];
|
73
|
+
};
|
74
|
+
export declare const aggregatorAccountStruct: FixableBeetStruct<AggregatorAccount, Partial<AggregatorAccount>>;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.aggregatorAccountStruct = exports.aggregatorRoundStruct = exports.switchboardDecimalStruct = exports.hashStruct = exports.AggregatorResolutionMode = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
var AggregatorResolutionMode;
|
8
|
+
(function (AggregatorResolutionMode) {
|
9
|
+
AggregatorResolutionMode[AggregatorResolutionMode["ModeRoundResolution"] = 0] = "ModeRoundResolution";
|
10
|
+
AggregatorResolutionMode[AggregatorResolutionMode["ModeSlidingResolution"] = 1] = "ModeSlidingResolution";
|
11
|
+
})(AggregatorResolutionMode || (exports.AggregatorResolutionMode = AggregatorResolutionMode = {}));
|
12
|
+
exports.hashStruct = new beet_1.BeetStruct([['data', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)]], (args) => args);
|
13
|
+
exports.switchboardDecimalStruct = new beet_1.BeetStruct([
|
14
|
+
['mantissa', solana_1.i128],
|
15
|
+
['scale', beet_1.u32],
|
16
|
+
], (args) => args);
|
17
|
+
exports.aggregatorRoundStruct = new beet_1.FixableBeetStruct([
|
18
|
+
['numSuccess', beet_1.u32],
|
19
|
+
['numError', beet_1.u32],
|
20
|
+
['isClosed', beet_1.bool],
|
21
|
+
['roundOpenSlot', solana_1.u64],
|
22
|
+
['roundOpenTimestamp', solana_1.i64],
|
23
|
+
['result', exports.switchboardDecimalStruct],
|
24
|
+
['stdDeviation', exports.switchboardDecimalStruct],
|
25
|
+
['minResponse', exports.switchboardDecimalStruct],
|
26
|
+
['maxResponse', exports.switchboardDecimalStruct],
|
27
|
+
['oraclePubkeysData', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 16)],
|
28
|
+
['mediansData', (0, beet_1.uniformFixedSizeArray)(exports.switchboardDecimalStruct, 16)],
|
29
|
+
['currentPayout', (0, beet_1.uniformFixedSizeArray)(solana_1.i64, 16)],
|
30
|
+
['mediansFulfilled', (0, beet_1.uniformFixedSizeArray)(beet_1.bool, 16)],
|
31
|
+
['errorsFulfilled', (0, beet_1.uniformFixedSizeArray)(beet_1.bool, 16)],
|
32
|
+
], (args) => args);
|
33
|
+
exports.aggregatorAccountStruct = new beet_1.FixableBeetStruct([
|
34
|
+
['buffer', (0, solana_1.blob)(8)],
|
35
|
+
['name', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
36
|
+
['metadata', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
|
37
|
+
['reserved1', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
38
|
+
['queuePubkey', beet_solana_1.publicKey],
|
39
|
+
['oracleRequestBatchSize', beet_1.u32],
|
40
|
+
['minOracleResults', beet_1.u32],
|
41
|
+
['minJobResults', beet_1.u32],
|
42
|
+
['minUpdateDelaySeconds', beet_1.u32],
|
43
|
+
['startAfter', solana_1.i64],
|
44
|
+
['varianceThreshold', exports.switchboardDecimalStruct],
|
45
|
+
['forceReportPeriod', solana_1.i64],
|
46
|
+
['expiration', solana_1.i64],
|
47
|
+
['consecutiveFailureCount', solana_1.u64],
|
48
|
+
['nextAllowedUpdateTime', solana_1.i64],
|
49
|
+
['isLocked', beet_1.bool],
|
50
|
+
['crankPubkey', beet_solana_1.publicKey],
|
51
|
+
['latestConfirmedRound', exports.aggregatorRoundStruct],
|
52
|
+
['currentRound', exports.aggregatorRoundStruct],
|
53
|
+
['jobPubkeysData', (0, beet_1.uniformFixedSizeArray)(beet_solana_1.publicKey, 16)],
|
54
|
+
['jobHashes', (0, beet_1.uniformFixedSizeArray)(exports.hashStruct, 16)],
|
55
|
+
['jobPubkeysSize', beet_1.u32],
|
56
|
+
['jobsChecksum', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
57
|
+
['authority', beet_solana_1.publicKey],
|
58
|
+
['historyBuffer', beet_solana_1.publicKey],
|
59
|
+
['previousConfirmedRoundResult', exports.switchboardDecimalStruct],
|
60
|
+
['previousConfirmedRoundSlot', solana_1.u64],
|
61
|
+
['disableCrank', beet_1.bool],
|
62
|
+
['jobWeights', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 16)],
|
63
|
+
['creationTimestamp', solana_1.i64],
|
64
|
+
['resolutionMode', beet_1.u8],
|
65
|
+
['basePriorityFee', beet_1.u32],
|
66
|
+
['priorityFeeBump', beet_1.u32],
|
67
|
+
['priorityFeeBumpPeriod', beet_1.u32],
|
68
|
+
['maxPriorityFeeMultiplier', beet_1.u32],
|
69
|
+
['parentFunction', beet_solana_1.publicKey],
|
70
|
+
['ebuf', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 90)],
|
71
|
+
], (args) => args);
|
72
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/structs.ts"],"names":[],"mappings":";;;AAAA,oDAOmC;AACnC,kEAA6D;AAG7D,+CAA0D;AAE1D,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,qGAAmB,CAAA;IACnB,yGAAqB,CAAA;AACvB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAMY,QAAA,UAAU,GAAG,IAAI,iBAAU,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BAA4B,EAAE,YAAG,CAAC;IACnC,CAAC,cAAc,EAAE,WAAI,CAAC;IACtB,CAAC,YAAY,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;IAC7C,CAAC,mBAAmB,EAAE,YAAG,CAAC;IAC1B,CAAC,gBAAgB,EAAE,SAAE,CAAC;IACtB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,uBAAuB,EAAE,UAAG,CAAC;IAC9B,CAAC,0BAA0B,EAAE,UAAG,CAAC;IACjC,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,MAAM,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,EAAE,CAAC,CAAC;CACxC,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAyB,CACpC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { PublicKey } from '@solana/web3.js';
|
2
2
|
import { Platform } from '@sonarwatch/portfolio-core';
|
3
3
|
export declare const platformId = "tensor";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const cachePrefix = "tensor";
|
6
6
|
export declare const tensorPid: PublicKey;
|
7
7
|
export declare const locksPid: PublicKey;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.locksPid = exports.tensorPid = exports.cachePrefix = exports.
|
3
|
+
exports.locksPid = exports.tensorPid = exports.cachePrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'tensor';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Tensor',
|
9
9
|
image: 'https://sonar.watch/img/platforms/tensor.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AACW,QAAA,WAAW,GAAG,QAAQ,CAAC;AAEvB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,6CAA6C,CAC9C,CAAC"}
|
@@ -7,6 +7,6 @@ exports.fetchers = exports.platforms = void 0;
|
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
|
9
9
|
const locksFetcher_1 = __importDefault(require("./locksFetcher"));
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
exports.fetchers = [bidsFetcher_1.default, locksFetcher_1.default];
|
12
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,kEAA0C;AAE7B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc,CAAC,qBAAW,EAAE,sBAAY,CAAC,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
-
import { InputViewFunctionData } from '@aptos-labs/ts-sdk';
|
3
2
|
export declare const platformId = "thala";
|
4
|
-
export declare const
|
5
|
-
export declare const
|
3
|
+
export declare const platform: Platform;
|
4
|
+
export declare const packageId = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01";
|
6
5
|
export declare const vaultFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::Vault<";
|
7
6
|
export declare const vaultCollateralParamsFilter = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01::vault::VaultCollateralParams<";
|
8
7
|
export declare const thlCoin = "0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL";
|
@@ -15,5 +14,13 @@ export declare const lpStableTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc
|
|
15
14
|
export declare const lpWeightedTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPool";
|
16
15
|
export declare const lpStableCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::StablePoolToken";
|
17
16
|
export declare const lpWeightedCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPoolToken";
|
18
|
-
export declare const stabilityDepositPayload: (owner: string) =>
|
19
|
-
|
17
|
+
export declare const stabilityDepositPayload: (owner: string) => {
|
18
|
+
function: `${string}::${string}::${string}`;
|
19
|
+
typeArguments: string[];
|
20
|
+
functionArguments: string[];
|
21
|
+
};
|
22
|
+
export declare const stabilityClaimablePayload: (owner: string) => {
|
23
|
+
function: `${string}::${string}::${string}`;
|
24
|
+
typeArguments: never[];
|
25
|
+
functionArguments: string[];
|
26
|
+
};
|
@@ -1,25 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.
|
3
|
+
exports.stabilityClaimablePayload = exports.stabilityDepositPayload = exports.lpWeightedCoinInfoTypePrefix = exports.lpStableCoinInfoTypePrefix = exports.lpWeightedTypePrefix = exports.lpStableTypePrefix = exports.lpWeightedTypeTokenPrefix = exports.lpStableTypeTokenPrefix = exports.programAddressLP = exports.stabilityEndpoint = exports.modCoin = exports.thlCoin = exports.vaultCollateralParamsFilter = exports.vaultFilter = exports.packageId = exports.platform = exports.platformId = void 0;
|
4
4
|
const aptos_1 = require("../../utils/aptos");
|
5
5
|
exports.platformId = 'thala';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Thala',
|
9
9
|
image: 'https://sonar.watch/img/platforms/thala.png',
|
10
10
|
defiLlamaId: 'parent#thala-labs',
|
11
11
|
website: 'https://www.thala.fi/',
|
12
12
|
};
|
13
|
-
exports.
|
13
|
+
exports.packageId = '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01';
|
14
14
|
const stabilityModule = 'stability_pool';
|
15
15
|
const vaultModule = 'vault';
|
16
|
-
const liquidityDeposit = `${exports.
|
17
|
-
const liquidityClaimable = `${exports.
|
18
|
-
const cryptoType = `${exports.
|
19
|
-
exports.vaultFilter = `${exports.
|
20
|
-
exports.vaultCollateralParamsFilter = `${exports.
|
16
|
+
const liquidityDeposit = `${exports.packageId}::${stabilityModule}::account_deposit`;
|
17
|
+
const liquidityClaimable = `${exports.packageId}::${stabilityModule}::claimable_thl`;
|
18
|
+
const cryptoType = `${exports.packageId}::${stabilityModule}::Crypto`;
|
19
|
+
exports.vaultFilter = `${exports.packageId}::${vaultModule}::Vault<`;
|
20
|
+
exports.vaultCollateralParamsFilter = `${exports.packageId}::${vaultModule}::VaultCollateralParams<`;
|
21
21
|
exports.thlCoin = `0x7fd500c11216f0fe3095d0c4b8aa4d64a4e2e04f83758462f2b127255643615::thl_coin::THL`;
|
22
|
-
exports.modCoin = `${exports.
|
22
|
+
exports.modCoin = `${exports.packageId}::mod_coin::MOD`;
|
23
23
|
exports.stabilityEndpoint = 'https://app.thala.fi/api/total-stability';
|
24
24
|
exports.programAddressLP = '0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af';
|
25
25
|
exports.lpStableTypeTokenPrefix = `${exports.programAddressLP}::stable_pool::StablePoolToken`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,mBAAmB;IAChC,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,SAAS,GACpB,oEAAoE,CAAC;AAEvE,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,WAAW,GAAG,OAAO,CAAC;AAE5B,MAAM,gBAAgB,GAAG,GAAG,iBAAS,KAAK,eAAe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@ -10,7 +10,7 @@ const stakingAprJob_1 = __importDefault(require("./stakingAprJob"));
|
|
10
10
|
const vaultsFetcher_1 = __importDefault(require("./vaultsFetcher"));
|
11
11
|
const stabilityPoolFetcher_1 = __importDefault(require("./stabilityPoolFetcher"));
|
12
12
|
const constants_1 = require("./constants");
|
13
|
-
exports.platforms = [constants_1.
|
13
|
+
exports.platforms = [constants_1.platform];
|
14
14
|
exports.jobs = [vaultsRatesJob_1.default, lpTokensJob_1.default, stakingAprJob_1.default];
|
15
15
|
exports.fetchers = [vaultsFetcher_1.default, stabilityPoolFetcher_1.default];
|
16
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/index.ts"],"names":[],"mappings":";;;;;;AAGA,sEAA4C;AAC5C,gEAAuC;AACvC,oEAA4C;AAC5C,oEAA4C;AAC5C,kFAAiD;AACjD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,wBAAY,EAAE,qBAAU,EAAE,uBAAa,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,8BAAW,CAAC,CAAC"}
|
@@ -15,7 +15,7 @@ const helpers_1 = require("./helpers");
|
|
15
15
|
const aptos_1 = require("../../utils/aptos");
|
16
16
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
17
17
|
const connection = (0, clients_1.getClientAptos)();
|
18
|
-
const vaultsRate = yield (0, aptos_1.getAccountResources)(connection, constants_1.
|
18
|
+
const vaultsRate = yield (0, aptos_1.getAccountResources)(connection, constants_1.packageId);
|
19
19
|
if (!vaultsRate)
|
20
20
|
return;
|
21
21
|
vaultsRate.forEach((resource) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vaultsRatesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsRatesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAIqB;AACrB,iDAAqD;AAErD,uCAAwC;AACxC,6CAAuE;AAIvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"vaultsRatesJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/vaultsRatesJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAIqB;AACrB,iDAAqD;AAErD,uCAAwC;AACxC,6CAAuE;AAIvE,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAmB,EAAC,UAAU,EAAE,qBAAS,CAAC,CAAC;IACpE,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,uCAA2B,CAAC;YAAE,OAAO;QACnE,IAAI,CAAC,QAAQ,CAAC,IAAI;YAAE,OAAO;QAC3B,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAsC,CAAC;QAClE,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,KAAK,CAAC,OAAO,CACX,IAAA,qBAAa,EAAC,QAAQ,CAAC,IAAI,CAAC,EAC5B,IAAA,qBAAW,EAAC,MAAM,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAC3D;YACE,MAAM,EAAE,GAAG,sBAAU,cAAc;SACpC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,eAAe;IAChC,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "turbos";
|
3
|
-
export declare const
|
3
|
+
export declare const platform: Platform;
|
4
4
|
export declare const clmmPoolsPrefix = "turbos-clmmPools";
|
5
5
|
export declare const poolTableId = "0x08984ed8705f44b6403705dc248896e56ab7961447820ae29be935ce0d32198b";
|
6
6
|
export declare const packageIdOriginal = "0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.clmmNftType = exports.packageIdOriginal = exports.poolTableId = exports.clmmPoolsPrefix = exports.
|
3
|
+
exports.clmmNftType = exports.packageIdOriginal = exports.poolTableId = exports.clmmPoolsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'turbos';
|
5
|
-
exports.
|
5
|
+
exports.platform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Turbos',
|
8
8
|
image: 'https://sonar.watch/img/platforms/turbos.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,8CAA8C;IACrD,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,6BAA6B;CACvC,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAE1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GAAG,GAAG,yBAAiB,mCAAmC,CAAC"}
|
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
|
|
7
7
|
const poolsJob_1 = __importDefault(require("./poolsJob"));
|
8
8
|
const clmmsPositionsFetcher_1 = __importDefault(require("./clmmsPositionsFetcher"));
|
9
9
|
const constants_1 = require("./constants");
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
exports.jobs = [poolsJob_1.default];
|
12
12
|
exports.fetchers = [clmmsPositionsFetcher_1.default];
|
13
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,oFAA0D;AAC1D,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,oFAA0D;AAC1D,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAQ,CAAC,CAAC;AACzB,QAAA,QAAQ,GAAc,CAAC,+BAAmB,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { UniswapNetworkConfig } from './types';
|
3
3
|
export declare const platformId = "uniswap";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const poolsPrefix = "uniswap-v3";
|
6
6
|
export declare const poolsKey = "poolsInfo";
|
7
7
|
export declare const uniswapNetworksConfigs: UniswapNetworkConfig[];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.uniswapNetworksConfigs = exports.poolsKey = exports.poolsPrefix = exports.
|
3
|
+
exports.uniswapNetworksConfigs = exports.poolsKey = exports.poolsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
5
|
exports.platformId = 'uniswap';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Uniswap',
|
9
9
|
image: 'https://sonar.watch/img/platforms/uniswap.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,+CAA+C;IACtD,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,sBAAsB;CAChC,CAAC;AAEW,QAAA,WAAW,GAAG,YAAY,CAAC;AAC3B,QAAA,QAAQ,GAAG,WAAW,CAAC;AAEvB,QAAA,sBAAsB,GAA2B;IAC5D;QACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD;QACE,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL,IAAI;IACJ,+BAA+B;IAC/B,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;IACL;QACE,SAAS,EAAE,0BAAS,CAAC,GAAG;QACxB,OAAO,EAAE,4CAA4C;QACrD,eAAe,EAAE,4CAA4C;KAC9D;IACD,IAAI;IACJ,mCAAmC;IACnC,2DAA2D;IAC3D,mEAAmE;IACnE,KAAK;CACN,CAAC"}
|
@@ -311,7 +311,7 @@ function getUniV3PositionsFetcher(config, platformId, version) {
|
|
311
311
|
});
|
312
312
|
return {
|
313
313
|
executor,
|
314
|
-
id: `${platformId}-${networkId}-positions-${version.
|
314
|
+
id: `${platformId}-${networkId}-positions-${version.toLowerCase()}`,
|
315
315
|
networkId,
|
316
316
|
};
|
317
317
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getUniV3PositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/getUniV3PositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAAoD;AACpD,wCAA6C;AAC7C,iDAAmD;AACnD,iCAQgB;AAOhB,wFAAyF;AACzF,qGAA6E;AAE7E,SAAgB,wBAAwB,CACtC,MAA4B,EAC5B,UAAkB,EAClB,OAAe;IAEf,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC7B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,MAAM,GAAG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AAW,EAAE,KAAK;gBAClB,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,CAAC;gBACpB,KAAK;gBACL,MAAM,EAAE,EAAE;aACX,CAAC,CAAC;YACH,mBAAmB,IAAI,KAAK,CAAC;QAC/B,CAAC;QAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAExC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,iBAAiB,EAAE,EAAE;QACzE,SAAS;KACV,CAAC;AACJ,CAAC;AAnWD,4DAmWC"}
|
1
|
+
{"version":3,"file":"getUniV3PositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/getUniV3PositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAAoD;AACpD,wCAA6C;AAC7C,iDAAmD;AACnD,iCAQgB;AAOhB,wFAAyF;AACzF,qGAA6E;AAE7E,SAAgB,wBAAwB,CACtC,MAA4B,EAC5B,UAAkB,EAClB,OAAe;IAEf,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC7B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QAEvC,2CAA2C;QAC3C,MAAM,iBAAiB,GAAG;YACxB,OAAO,EAAE,MAAM,CAAC,eAAe;YAC/B,GAAG,EAAE,mBAAY;YACjB,Y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AC;QAC/B,CAAC;QAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAExC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,WAAW,EAAE,EAAE;QACnE,SAAS;KACV,CAAC;AACJ,CAAC;AAnWD,4DAmWC"}
|
@@ -7,5 +7,5 @@ exports.jobs = [];
|
|
7
7
|
exports.fetchers = [
|
8
8
|
...constants_1.uniswapNetworksConfigs.map((config) => (0, getUniV3PositionsFetcher_1.getUniV3PositionsFetcher)(config, constants_1.platformId, 'V3')),
|
9
9
|
];
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/index.ts"],"names":[],"mappings":";;;AAIA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap/index.ts"],"names":[],"mappings":";;;AAIA,2CAA2E;AAC3E,yEAAsE;AAEzD,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc;IACjC,GAAG,kCAAsB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACvC,IAAA,mDAAwB,EAAC,MAAM,EAAE,sBAAU,EAAE,IAAI,CAAC,CACnD;CACF,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -50,7 +50,7 @@ function getPositionsV2Fetcher(networkId, platformId, version) {
|
|
50
50
|
});
|
51
51
|
return {
|
52
52
|
executor,
|
53
|
-
id: `${platformId}-${networkId}-positions-${version.
|
53
|
+
id: `${platformId}-${networkId}-positions-${version.toLowerCase()}`,
|
54
54
|
networkId,
|
55
55
|
};
|
56
56
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPositionsV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/getPositionsV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAKoC;AAGpC,mEAAgE;AAChE,uCAAuC;AAEvC,SAAwB,qBAAqB,CAC3C,SAA2B,EAC3B,UAAkB,EAClB,OAAe;IAEf,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAW,IAAA,oBAAU,EAAC,OAAO,CAAC,EAAE;YACjE,SAAS;YACT,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QAExB,MAAM,WAAW,GAAG,MAAM,IAAA,+BAAc,EAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAE3E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAsB,EAAE;YACjE,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACzD,OAAO;gBACL,MAAM;gBACN,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,IAAI;gBACvB,KAAK;gBACL,MAAM,EAAE,EAAE;aACX,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,KAAK,EAAE,eAAe;gBACtB,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"getPositionsV2Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/getPositionsV2Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAKoC;AAGpC,mEAAgE;AAChE,uCAAuC;AAEvC,SAAwB,qBAAqB,CAC3C,SAA2B,EAC3B,UAAkB,EAClB,OAAe;IAEf,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,OAAO,CAAW,IAAA,oBAAU,EAAC,OAAO,CAAC,EAAE;YACjE,SAAS;YACT,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QAExB,MAAM,WAAW,GAAG,MAAM,IAAA,+BAAc,EAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAE3E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAsB,EAAE;YACjE,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACzD,OAAO;gBACL,MAAM;gBACN,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,EAAE;gBAChB,iBAAiB,EAAE,IAAI;gBACvB,KAAK;gBACL,MAAM,EAAE,EAAE;aACX,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO;YACL;gBACE,IAAI,EAAE,qCAAoB,CAAC,SAAS;gBACpC,KAAK,EAAE,eAAe;gBACtB,SAAS;gBACT,UAAU;gBACV,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE;oBACJ,WAAW;iBACZ;aACF;SACF,CAAC;IACJ,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,EAAE,EAAE,GAAG,UAAU,IAAI,SAAS,cAAc,OAAO,CAAC,WAAW,EAAE,EAAE;QACnE,SAAS;KACV,CAAC;AACJ,CAAC;AA/CD,wCA+CC"}
|
@@ -35,33 +35,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.getPairsV2FromTheGraph = exports.getPairKey = void 0;
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getPairKey(version) {
|
38
|
-
return `pools-${version.
|
38
|
+
return `pools-${version.toLowerCase()}`;
|
39
39
|
}
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAI/C,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,SAAS,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mEAA+C;AAI/C,SAAgB,UAAU,CAAC,OAAe;IACxC,OAAO,SAAS,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;AAC1C,CAAC;AAFD,gCAEC;AAED,SAAsB,sBAAsB,CAAC,GAAW,EAAE,MAAM,GAAG,GAAG;;QACpE,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;iBAIF,MAAM;;;;;;;;;;;;;;;;;;GAkBpB,CAAC;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EAAiC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtE,MAAM,KAAK,GAAG,GAAG,CAAC,KAA4B,CAAC;QAC/C,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AA5BD,wDA4BC"}
|