@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
@@ -6,7 +6,7 @@ exports.platformId = 'rain';
|
|
6
6
|
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Rain',
|
9
|
-
image: 'https://sonar.watch/img/platforms/rain.
|
9
|
+
image: 'https://sonar.watch/img/platforms/rain.webp',
|
10
10
|
defiLlamaId: 'rain.fi', // from https://defillama.com/docs/api
|
11
11
|
website: 'https://rain.fi/',
|
12
12
|
twitter: 'https://twitter.com/RainFi_',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rain/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rain/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,wBAAwB,CAAC;AACnC,QAAA,cAAc,GAAG,aAAa,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 = "raydium";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const AMM_PROGRAM_ID_V3: PublicKey;
|
6
6
|
export declare const AMM_PROGRAM_ID_V4: PublicKey;
|
7
7
|
export declare const AMM_PROGRAM_ID_V5: PublicKey;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.rayDecimals = exports.rayMint = exports.positionsIdentifier = exports.poolStatesPrefix = exports.raydiumProgram = exports.AMM_PROGRAM_ID_V5 = exports.AMM_PROGRAM_ID_V4 = exports.AMM_PROGRAM_ID_V3 = exports.
|
3
|
+
exports.rayDecimals = exports.rayMint = exports.positionsIdentifier = exports.poolStatesPrefix = exports.raydiumProgram = exports.AMM_PROGRAM_ID_V5 = exports.AMM_PROGRAM_ID_V4 = exports.AMM_PROGRAM_ID_V3 = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'raydium';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Raydium',
|
9
9
|
image: 'https://sonar.watch/img/platforms/raydium.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/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,+CAA+C;IACtD,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,qBAAqB;CAC/B,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE7C,QAAA,mBAAmB,GAAG,gCAAgC,CAAC;AAEvD,QAAA,OAAO,GAAG,8CAA8C,CAAC;AACzD,QAAA,WAAW,GAAG,CAAC,CAAC"}
|
@@ -8,7 +8,7 @@ const lpTokensJob_1 = __importDefault(require("./lpTokensJob"));
|
|
8
8
|
const clmmJob_1 = __importDefault(require("./clmmJob"));
|
9
9
|
const constants_1 = require("./constants");
|
10
10
|
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
11
|
-
exports.platforms = [constants_1.
|
11
|
+
exports.platforms = [constants_1.platform];
|
12
12
|
exports.jobs = [lpTokensJob_1.default, clmmJob_1.default];
|
13
13
|
exports.fetchers = [stakingFetcher_1.default];
|
14
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,wDAAgC;AAChC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,wDAAgC;AAChC,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,qBAAW,EAAE,iBAAO,CAAC,CAAC;AACrC,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import BigNumber from 'bignumber.js';
|
3
3
|
export declare const platformId = "rocketpool";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const marketsCachePrefix = "rocketpool-markets";
|
6
6
|
export declare const minipoolManagerAddress = "0x6293B8abC1F36aFB22406Be5f96D893072A8cF3a";
|
7
7
|
export declare const nodeStakingAddress = "0x0d8D8f8541B12A0e1194B7CC4b6D954b90AB82ec";
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.rplFactor = exports.rplDecimals = exports.rplAddress = exports.nodeStakingAddress = exports.minipoolManagerAddress = exports.marketsCachePrefix = exports.
|
6
|
+
exports.rplFactor = exports.rplDecimals = exports.rplAddress = exports.nodeStakingAddress = exports.minipoolManagerAddress = exports.marketsCachePrefix = exports.platform = exports.platformId = void 0;
|
7
7
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
8
|
exports.platformId = 'rocketpool';
|
9
|
-
exports.
|
9
|
+
exports.platform = {
|
10
10
|
id: exports.platformId,
|
11
11
|
name: 'Rocket Pool',
|
12
12
|
defiLlamaId: 'rocket-pool',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/constants.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAExB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/constants.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAExB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,yBAAyB;CACnC,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC;AAC7C,QAAA,sBAAsB,GACjC,4CAA4C,CAAC;AAClC,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,mBAAW,CAAA,CAAC,CAAC"}
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const positionFetcher_1 = __importDefault(require("./positionFetcher"));
|
9
|
-
exports.platforms = [constants_1.
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
10
|
exports.jobs = [];
|
11
11
|
exports.fetchers = [positionFetcher_1.default];
|
12
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,wEAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "saber";
|
3
|
-
export declare const
|
3
|
+
export declare const platform: Platform;
|
4
4
|
export declare const SABER_SWAPS = "https://raw.githubusercontent.com/saber-hq/saber-registry-dist/master/data/swaps.mainnet.json";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SABER_SWAPS = exports.
|
3
|
+
exports.SABER_SWAPS = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'saber';
|
5
|
-
exports.
|
5
|
+
exports.platform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Saber',
|
8
8
|
image: 'https://sonar.watch/img/platforms/saber.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,OAAO;IACpB,OAAO,EAAE,uBAAuB;CACjC,CAAC;AACW,QAAA,WAAW,GACtB,+FAA+F,CAAC"}
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.jobs = exports.platforms = void 0;
|
7
7
|
const lpTokensJob_1 = __importDefault(require("./lpTokensJob"));
|
8
8
|
const constants_1 = require("./constants");
|
9
|
-
exports.platforms = [constants_1.
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
10
|
exports.jobs = [lpTokensJob_1.default];
|
11
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/index.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAwC;AACxC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/index.ts"],"names":[],"mappings":";;;;;;AAEA,gEAAwC;AACxC,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,qBAAW,CAAC,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "scallop";
|
3
|
+
export declare const platform: Platform;
|
3
4
|
export declare const addressPrefix = "scallop-address";
|
4
5
|
export declare const marketPrefix = "scallop-market";
|
5
6
|
export declare const poolsPrefix = "scallop-pools";
|
@@ -12,7 +13,6 @@ export declare const spoolsKey = "scallop-spoolsmarket-key";
|
|
12
13
|
export declare const spoolAccountPackageId = "0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount";
|
13
14
|
export declare const marketCoinPackageId = "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::reserve::MarketCoin";
|
14
15
|
export declare const obligationKeyPackageId = "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::obligation::ObligationKey";
|
15
|
-
export declare const scallopPlatform: Platform;
|
16
16
|
export declare const baseIndexRate = 1000000000;
|
17
17
|
export declare const scaAddress = "0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA";
|
18
18
|
export declare const scaDecimals = 9;
|
@@ -1,8 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.scaDecimals = exports.scaAddress = exports.baseIndexRate = exports.
|
4
|
-
const PROTOCOL_OBJECT_ID = '0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf';
|
3
|
+
exports.scaDecimals = exports.scaAddress = exports.baseIndexRate = exports.obligationKeyPackageId = exports.marketCoinPackageId = exports.spoolAccountPackageId = exports.spoolsKey = exports.poolsKey = exports.marketKey = exports.addressKey = exports.addressEndpoint = exports.spoolsPrefix = exports.poolsPrefix = exports.marketPrefix = exports.addressPrefix = exports.platform = exports.platformId = void 0;
|
5
4
|
exports.platformId = 'scallop';
|
5
|
+
exports.platform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'Scallop',
|
8
|
+
image: `https://sonar.watch/img/platforms/${exports.platformId}.png`,
|
9
|
+
defiLlamaId: 'parent#scallop',
|
10
|
+
website: 'https://app.scallop.io/',
|
11
|
+
};
|
6
12
|
exports.addressPrefix = `${exports.platformId}-address`;
|
7
13
|
exports.marketPrefix = `${exports.platformId}-market`;
|
8
14
|
exports.poolsPrefix = `${exports.platformId}-pools`;
|
@@ -13,15 +19,9 @@ exports.marketKey = 'scallop-market-key';
|
|
13
19
|
exports.poolsKey = 'scallop-pools-key';
|
14
20
|
exports.spoolsKey = 'scallop-spoolsmarket-key';
|
15
21
|
exports.spoolAccountPackageId = `0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount`;
|
22
|
+
const PROTOCOL_OBJECT_ID = '0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf';
|
16
23
|
exports.marketCoinPackageId = `${PROTOCOL_OBJECT_ID}::reserve::MarketCoin`;
|
17
24
|
exports.obligationKeyPackageId = `${PROTOCOL_OBJECT_ID}::obligation::ObligationKey`;
|
18
|
-
exports.scallopPlatform = {
|
19
|
-
id: exports.platformId,
|
20
|
-
name: 'Scallop',
|
21
|
-
image: `https://sonar.watch/img/platforms/${exports.platformId}.png`,
|
22
|
-
defiLlamaId: 'parent#scallop',
|
23
|
-
website: 'https://app.scallop.io/',
|
24
|
-
};
|
25
25
|
exports.baseIndexRate = 1000000000;
|
26
26
|
exports.scaAddress = '0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA';
|
27
27
|
exports.scaDecimals = 9;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qCAAqC,kBAAU,MAAM;IAC5D,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,YAAY,GAAG,GAAG,kBAAU,eAAe,CAAC;AAE5C,QAAA,eAAe,GAC1B,+DAA+D,CAAC;AACrD,QAAA,UAAU,GAAG,qBAAqB,CAAC;AACnC,QAAA,SAAS,GAAG,oBAAoB,CAAC;AACjC,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,SAAS,GAAG,0BAA0B,CAAC;AAEvC,QAAA,qBAAqB,GAAG,iGAAiG,CAAC;AACvI,MAAM,kBAAkB,GACtB,oEAAoE,CAAC;AAC1D,QAAA,mBAAmB,GAAG,GAAG,kBAAkB,uBAAuB,CAAC;AACnE,QAAA,sBAAsB,GAAG,GAAG,kBAAkB,6BAA6B,CAAC;AAC5E,QAAA,aAAa,GAAG,UAAa,CAAC;AAC9B,QAAA,UAAU,GACrB,8EAA8E,CAAC;AACpE,QAAA,WAAW,GAAG,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,8DAAsC;AACtC,4DAAoC;AACpC,wEAAgD;AAEhD,wEAAgD;AAChD,kEAA0C;AAC1C,8EAAsD;AACtD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,8DAAsC;AACtC,4DAAoC;AACpC,wEAAgD;AAEhD,wEAAgD;AAChD,kEAA0C;AAC1C,8EAAsD;AACtD,2CAAuC;AAE1B,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,kBAAQ,EAAE,mBAAS,EAAE,yBAAe,CAAC,CAAC;AACjE,QAAA,QAAQ,GAAc;IACjC,yBAAe;IACf,4BAAkB;IAClB,sBAAY;CACb,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,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 = "solend";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const marketsPrefix = "solend-markets";
|
6
6
|
export declare const reservesPrefix = "solend-reserves";
|
7
7
|
export declare const marketsKey = "markets";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.mainMarket = exports.wadsDecimal = exports.reserveEndpoint = exports.marketsEndpoint = exports.pid = exports.marketsKey = exports.reservesPrefix = exports.marketsPrefix = exports.
|
3
|
+
exports.mainMarket = exports.wadsDecimal = exports.reserveEndpoint = exports.marketsEndpoint = exports.pid = exports.marketsKey = exports.reservesPrefix = exports.marketsPrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'solend';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Solend',
|
9
9
|
image: 'https://sonar.watch/img/platforms/solend.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/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/solend/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,WAAW,EAAE,QAAQ;IACrB,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AACW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,UAAU,GAAG,SAAS,CAAC;AAEvB,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,eAAe,GAAG,0CAA0C,CAAC;AAC7D,QAAA,eAAe,GAAG,yCAAyC,CAAC;AAC5D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,UAAU,GAAG,8CAA8C,CAAC"}
|
@@ -8,7 +8,7 @@ const reservesJob_1 = __importDefault(require("./reservesJob"));
|
|
8
8
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
9
9
|
const obligationsFetcher_1 = __importDefault(require("./obligationsFetcher"));
|
10
10
|
const constants_1 = require("./constants");
|
11
|
-
exports.platforms = [constants_1.
|
11
|
+
exports.platforms = [constants_1.platform];
|
12
12
|
exports.jobs = [marketsJob_1.default, reservesJob_1.default];
|
13
13
|
exports.fetchers = [obligationsFetcher_1.default];
|
14
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,8DAAsC;AACtC,8EAAqD;AACrD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/index.ts"],"names":[],"mappings":";;;;;;AAGA,gEAAwC;AACxC,8DAAsC;AACtC,8EAAqD;AACrD,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,qBAAW,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAc,CAAC,4BAAiB,CAAC,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'stader';
|
5
|
-
exports.
|
5
|
+
exports.platform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Stader',
|
8
8
|
image: 'https://sonar.watch/img/platforms/stader.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stader/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stader/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,OAAO,EAAE,yBAAyB;IAClC,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
4
4
|
const constants_1 = require("./constants");
|
5
|
-
exports.platforms = [constants_1.
|
5
|
+
exports.platforms = [constants_1.platform];
|
6
6
|
exports.jobs = [];
|
7
7
|
exports.fetchers = [];
|
8
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stader/index.ts"],"names":[],"mappings":";;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stader/index.ts"],"names":[],"mappings":";;;AAGA,2CAAuC;AAE1B,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { StgConfig } from './types';
|
3
3
|
export declare const platformId = "stargate";
|
4
|
-
export declare const
|
4
|
+
export declare const platform: Platform;
|
5
5
|
export declare const poolsKey = "pools";
|
6
6
|
export declare const farmsKey = "farms";
|
7
7
|
export declare const stargateNetworksConfigs: StgConfig[];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.stargateNetworksConfigs = exports.farmsKey = exports.poolsKey = exports.
|
3
|
+
exports.stargateNetworksConfigs = exports.farmsKey = exports.poolsKey = exports.platform = exports.platformId = void 0;
|
4
4
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
5
|
exports.platformId = 'stargate';
|
6
|
-
exports.
|
6
|
+
exports.platform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Stargate',
|
9
9
|
image: 'https://sonar.watch/img/platforms/stargate.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,QAAA,UAAU,GAAG,UAAU,CAAC;AAExB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/constants.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAGpD,QAAA,UAAU,GAAG,UAAU,CAAC;AAExB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,gDAAgD;IACvD,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,QAAQ,GAAG,OAAO,CAAC;AAEnB,QAAA,uBAAuB,GAAgB;IAClD;QACE,SAAS,EAAE,0BAAS,CAAC,QAAQ;QAC7B,aAAa,EAAE,4CAA4C;QAC3D,aAAa,EAAE,4CAA4C;QAC3D,YAAY,EAAE,4CAA4C;QAC1D,UAAU,EAAE,4CAA4C;KACzD;IACD;QACE,SAAS,EAAE,0BAAS,CAAC,SAAS;QAC9B,aAAa,EAAE,4CAA4C;QAC3D,aAAa,EAAE,4CAA4C;QAC3D,YAAY,EAAE,4CAA4C;QAC1D,UAAU,EAAE,4CAA4C;KACzD;IACD;QACE,SAAS,EAAE,0BAAS,CAAC,OAAO;QAC5B,aAAa,EAAE,4CAA4C;QAC3D,aAAa,EAAE,4CAA4C;QAC3D,YAAY,EAAE,4CAA4C;QAC1D,UAAU,EAAE,4CAA4C;KACzD;CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/index.ts"],"names":[],"mappings":";;;;;;AAGA,qEAAoE;AACpE,0DAAkC;AAClC,0DAAkC;AAClC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stargate/index.ts"],"names":[],"mappings":";;;;;;AAGA,qEAAoE;AACpE,0DAAkC;AAClC,0DAAkC;AAClC,2CAAgE;AAChE,uEAAqE;AACrE,iEAA8D;AAEjD,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,kBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc;IACjC,GAAG,mCAAuB;SACvB,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACf,IAAA,iDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,kDAAwB,EAAC,MAAM,CAAC;QAChC,IAAA,2CAAoB,EAAC,MAAM,CAAC;KAC7B,CAAC;SACD,IAAI,EAAE;CACV,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const platformId = "switchboard";
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,aAAa,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
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
|
+
exports.getSwitchboardPrice = void 0;
|
13
|
+
const getSwitchboardPrices_1 = require("./getSwitchboardPrices");
|
14
|
+
function getSwitchboardPrice(connection, feedAddress) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return (yield (0, getSwitchboardPrices_1.getSwitchboardPrices)(connection, [feedAddress]))[0];
|
17
|
+
});
|
18
|
+
}
|
19
|
+
exports.getSwitchboardPrice = getSwitchboardPrice;
|
20
|
+
//# sourceMappingURL=getSwitchboardPrice.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getSwitchboardPrice.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/switchboard/helpers/getSwitchboardPrice.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,iEAA8D;AAE9D,SAAsB,mBAAmB,CACvC,UAAwB,EACxB,WAAsB;;QAEtB,OAAO,CAAC,MAAM,IAAA,2CAAoB,EAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,CAAC;CAAA;AALD,kDAKC"}
|
@@ -0,0 +1,23 @@
|
|
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
|
+
exports.getSwitchboardPrices = void 0;
|
13
|
+
const structs_1 = require("../structs");
|
14
|
+
const misc_1 = require("./misc");
|
15
|
+
const solana_1 = require("../../../utils/solana");
|
16
|
+
function getSwitchboardPrices(connection, feedAddresses) {
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
18
|
+
const accounts = yield (0, solana_1.getParsedMultipleAccountsInfo)(connection, structs_1.aggregatorAccountStruct, feedAddresses);
|
19
|
+
return accounts.map((account) => account ? (0, misc_1.getValueFromAggregator)(account, 3600) : null);
|
20
|
+
});
|
21
|
+
}
|
22
|
+
exports.getSwitchboardPrices = getSwitchboardPrices;
|
23
|
+
//# sourceMappingURL=getSwitchboardPrices.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getSwitchboardPrices.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/switchboard/helpers/getSwitchboardPrices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,wCAAqD;AACrD,iCAAgD;AAChD,kDAAsE;AAEtE,SAAsB,oBAAoB,CACxC,UAAwB,EACxB,aAA0B;;QAE1B,MAAM,QAAQ,GAAG,MAAM,IAAA,sCAA6B,EAClD,UAAU,EACV,iCAAuB,EACvB,aAAa,CACd,CAAC;QACF,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC9B,OAAO,CAAC,CAAC,CAAC,IAAA,6BAAsB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CACvD,CAAC;IACJ,CAAC;CAAA;AAZD,oDAYC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getValueFromAggregator = void 0;
|
7
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
|
+
function getValueFromAggregator(aggregator, maxStalenessSec = 0) {
|
9
|
+
var _a, _b;
|
10
|
+
if (((_b = (_a = aggregator.latestConfirmedRound) === null || _a === void 0 ? void 0 : _a.numSuccess) !== null && _b !== void 0 ? _b : 0) === 0) {
|
11
|
+
return null;
|
12
|
+
}
|
13
|
+
if (maxStalenessSec !== 0) {
|
14
|
+
const now = new bignumber_js_1.default(Date.now() / 1000);
|
15
|
+
const latestRoundTimestamp = aggregator.latestConfirmedRound.roundOpenTimestamp;
|
16
|
+
const staleness = now.minus(latestRoundTimestamp);
|
17
|
+
if (staleness.gt(maxStalenessSec)) {
|
18
|
+
return null;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
return aggregator.latestConfirmedRound.result.mantissa
|
22
|
+
.div(Math.pow(10, aggregator.latestConfirmedRound.result.scale))
|
23
|
+
.toNumber();
|
24
|
+
}
|
25
|
+
exports.getValueFromAggregator = getValueFromAggregator;
|
26
|
+
//# sourceMappingURL=misc.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/switchboard/helpers/misc.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAGrC,SAAgB,sBAAsB,CACpC,UAA6B,EAC7B,eAAe,GAAG,CAAC;;IAEnB,IAAI,CAAC,MAAA,MAAA,UAAU,CAAC,oBAAoB,0CAAE,UAAU,mCAAI,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,eAAe,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,GAAG,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QAC7C,MAAM,oBAAoB,GACxB,UAAU,CAAC,oBAAoB,CAAC,kBAAkB,CAAC;QACrD,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAClD,IAAI,SAAS,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC,oBAAoB,CAAC,MAAM,CAAC,QAAQ;SACnD,GAAG,CAAC,SAAA,EAAE,EAAI,UAAU,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAA,CAAC;SACvD,QAAQ,EAAE,CAAC;AAChB,CAAC;AApBD,wDAoBC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = void 0;
|
7
|
+
const pricingJob_1 = __importDefault(require("./pricingJob"));
|
8
|
+
exports.jobs = [pricingJob_1.default];
|
9
|
+
exports.fetchers = [];
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/switchboard/index.ts"],"names":[],"mappings":";;;;;;AAEA,8DAAsC;AAEzB,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|