@sonarwatch/portfolio-plugins 0.14.96 → 0.14.98
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/src/plugins/01/constants.d.ts +1 -0
- package/src/plugins/01/helpers.d.ts +1 -0
- package/src/plugins/01/struct.d.ts +1 -0
- package/src/plugins/accessprotocol/constants.d.ts +1 -0
- package/src/plugins/accessprotocol/filters.d.ts +1 -0
- package/src/plugins/accessprotocol/structs.d.ts +1 -0
- package/src/plugins/adrastea/constants.d.ts +1 -0
- package/src/plugins/adrastea/structs.d.ts +1 -0
- package/src/plugins/adrena/constants.d.ts +1 -0
- package/src/plugins/adrena/filters.d.ts +1 -0
- package/src/plugins/adrena/helpers.d.ts +1 -0
- package/src/plugins/adrena/structs.d.ts +1 -0
- package/src/plugins/allbridge/constants.d.ts +1 -0
- package/src/plugins/allbridge/helpers.d.ts +1 -0
- package/src/plugins/armada-staking/constants.d.ts +1 -0
- package/src/plugins/armada-staking/filters.d.ts +1 -0
- package/src/plugins/armada-staking/structs.d.ts +1 -0
- package/src/plugins/atrix/constants.d.ts +1 -0
- package/src/plugins/atrix/structs.d.ts +1 -0
- package/src/plugins/aurory/constants.d.ts +1 -0
- package/src/plugins/aurory/helpers.d.ts +1 -0
- package/src/plugins/banx/constants.d.ts +1 -0
- package/src/plugins/banx/filters.d.ts +1 -0
- package/src/plugins/banx/structs.d.ts +1 -0
- package/src/plugins/bonfida/constants.d.ts +1 -0
- package/src/plugins/bonfida/filters.d.ts +1 -0
- package/src/plugins/bonfida/structs.d.ts +1 -0
- package/src/plugins/bonkrewards/constants.d.ts +1 -0
- package/src/plugins/bonkrewards/filters.d.ts +1 -0
- package/src/plugins/bonkrewards/structs.d.ts +1 -0
- package/src/plugins/bskt/constants.d.ts +1 -0
- package/src/plugins/bskt/filters.d.ts +1 -0
- package/src/plugins/bskt/structs.d.ts +1 -0
- package/src/plugins/citrus/constants.d.ts +1 -0
- package/src/plugins/citrus/filters.d.ts +1 -0
- package/src/plugins/clone/constants.d.ts +1 -0
- package/src/plugins/clone/helpers.d.ts +1 -0
- package/src/plugins/clone/structs.d.ts +1 -0
- package/src/plugins/cropper/constants.d.ts +1 -0
- package/src/plugins/cyberfrogs/constants.d.ts +1 -0
- package/src/plugins/cyberfrogs/structs.d.ts +1 -0
- package/src/plugins/daos/constants.d.ts +1 -0
- package/src/plugins/daos/helpers.d.ts +1 -0
- package/src/plugins/daos/structs/realms.d.ts +1 -0
- package/src/plugins/daos/types.d.ts +1 -0
- package/src/plugins/debridge/constants.d.ts +1 -0
- package/src/plugins/defiland/constants.d.ts +1 -0
- package/src/plugins/defiland/structs.d.ts +1 -0
- package/src/plugins/defituna/constants.d.ts +1 -0
- package/src/plugins/defituna/structs.d.ts +1 -0
- package/src/plugins/divvy/constants.d.ts +1 -0
- package/src/plugins/divvy/types.d.ts +1 -0
- package/src/plugins/doubleup/structs.d.ts +1 -0
- package/src/plugins/drift/constants.d.ts +1 -0
- package/src/plugins/drift/filters.d.ts +1 -0
- package/src/plugins/drift/helpers.d.ts +1 -0
- package/src/plugins/drift/struct.d.ts +1 -0
- package/src/plugins/drift-market-maker-vault/constants.d.ts +1 -0
- package/src/plugins/drift-market-maker-vault/filters.d.ts +1 -0
- package/src/plugins/drift-market-maker-vault/structs.d.ts +1 -0
- package/src/plugins/elemental/filters.d.ts +1 -0
- package/src/plugins/elemental/helpers.d.ts +1 -0
- package/src/plugins/elemental/structs.d.ts +1 -0
- package/src/plugins/exponent/constants.d.ts +1 -0
- package/src/plugins/exponent/structs.d.ts +1 -0
- package/src/plugins/famousfoxfederation/constants.d.ts +1 -0
- package/src/plugins/flash/constants.d.ts +1 -0
- package/src/plugins/flash/filters.d.ts +1 -0
- package/src/plugins/flash/helpers.d.ts +1 -0
- package/src/plugins/flash/structs.d.ts +1 -0
- package/src/plugins/fluxbeam/structs.d.ts +1 -0
- package/src/plugins/foo/structs.d.ts +1 -0
- package/src/plugins/fragmetric/constants.d.ts +1 -0
- package/src/plugins/fragmetric/structs.d.ts +1 -0
- package/src/plugins/francium/constants.d.ts +1 -0
- package/src/plugins/francium/helpers.d.ts +1 -0
- package/src/plugins/francium/structs.d.ts +1 -0
- package/src/plugins/francium/tokens.d.ts +1 -0
- package/src/plugins/francium/types.d.ts +1 -0
- package/src/plugins/futarchy/constants.d.ts +1 -0
- package/src/plugins/futarchy/structs.d.ts +1 -0
- package/src/plugins/genesysgo/constants.d.ts +1 -0
- package/src/plugins/goosefx/constants.d.ts +1 -0
- package/src/plugins/goosefx/filters.d.ts +1 -0
- package/src/plugins/goosefx/structs.d.ts +1 -0
- package/src/plugins/gpool/constants.d.ts +1 -0
- package/src/plugins/gpool/structs.d.ts +1 -0
- package/src/plugins/grass/constants.d.ts +1 -0
- package/src/plugins/grass/helpers.d.ts +1 -0
- package/src/plugins/grass/structs.d.ts +1 -0
- package/src/plugins/hawksight/helper.d.ts +1 -0
- package/src/plugins/hedgehog/constants.d.ts +1 -0
- package/src/plugins/hedgehog/structs.d.ts +1 -0
- package/src/plugins/hxro/constants.d.ts +1 -0
- package/src/plugins/hxro/structs.d.ts +1 -0
- package/src/plugins/jito/constants.d.ts +1 -0
- package/src/plugins/jito/structs.d.ts +1 -0
- package/src/plugins/joule/structs.d.ts +1 -0
- package/src/plugins/jupiter/exchange/constants.d.ts +1 -0
- package/src/plugins/jupiter/exchange/filters.d.ts +1 -0
- package/src/plugins/jupiter/exchange/structs.d.ts +1 -0
- package/src/plugins/jupiter/filters.d.ts +1 -0
- package/src/plugins/jupiter/helpers.d.ts +1 -0
- package/src/plugins/jupiter/launchpad/constants.d.ts +1 -0
- package/src/plugins/jupiter/launchpad/structs.d.ts +1 -0
- package/src/plugins/jupiter/pricingJob.js +15 -3
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/jupiter/types.d.ts +8 -0
- package/src/plugins/kamino/constants.d.ts +1 -0
- package/src/plugins/kamino/filters.d.ts +1 -0
- package/src/plugins/kamino/helpers/pdas.d.ts +1 -0
- package/src/plugins/kamino/structs/klend.d.ts +1 -0
- package/src/plugins/kamino/structs/vaults.d.ts +1 -0
- package/src/plugins/lifinity/constants.d.ts +1 -0
- package/src/plugins/lifinity/filters.d.ts +1 -0
- package/src/plugins/lifinity/structs.d.ts +1 -0
- package/src/plugins/loopscale/constants.d.ts +1 -0
- package/src/plugins/loopscale/filters.d.ts +1 -0
- package/src/plugins/loopscale/helpers.d.ts +1 -0
- package/src/plugins/loopscale/structs.d.ts +1 -0
- package/src/plugins/loverflow/constants.d.ts +1 -0
- package/src/plugins/loverflow/helpers.d.ts +1 -0
- package/src/plugins/loverflow/structs.d.ts +1 -0
- package/src/plugins/lulo/constants.d.ts +1 -0
- package/src/plugins/lulo/struct.d.ts +1 -0
- package/src/plugins/magiceden/constants.d.ts +1 -0
- package/src/plugins/magiceden/helpers.d.ts +1 -0
- package/src/plugins/magiceden/structs.d.ts +1 -0
- package/src/plugins/mango/constants.d.ts +1 -0
- package/src/plugins/mango/filters.d.ts +1 -0
- package/src/plugins/mango/struct.d.ts +1 -0
- package/src/plugins/maple/solanaJob.js +2 -2
- package/src/plugins/maple/solanaJob.js.map +1 -1
- package/src/plugins/marginfi/constants.d.ts +1 -0
- package/src/plugins/marginfi/filters.d.ts +1 -0
- package/src/plugins/marginfi/structs/Bank.d.ts +1 -0
- package/src/plugins/marginfi/structs/MarginfiAccount.d.ts +1 -0
- package/src/plugins/marinade/constants.d.ts +1 -0
- package/src/plugins/marinade/filters.d.ts +1 -0
- package/src/plugins/marinade/helpers.d.ts +1 -0
- package/src/plugins/marinade/structs.d.ts +1 -0
- package/src/plugins/meso/structs.d.ts +1 -0
- package/src/plugins/metaplex/constants.d.ts +1 -0
- package/src/plugins/metaplex/helpers.d.ts +1 -0
- package/src/plugins/meteora/constants.d.ts +1 -0
- package/src/plugins/meteora/dlmmHelper.d.ts +1 -0
- package/src/plugins/meteora/filters.d.ts +1 -0
- package/src/plugins/meteora/helpers.d.ts +1 -0
- package/src/plugins/meteora/struct.d.ts +1 -0
- package/src/plugins/meteora/types.d.ts +1 -0
- package/src/plugins/moonwalk/constants.d.ts +1 -0
- package/src/plugins/moonwalk/structs.d.ts +1 -0
- package/src/plugins/native-stake/solana/constants.d.ts +1 -0
- package/src/plugins/native-stake/solana/filters.d.ts +1 -0
- package/src/plugins/native-stake/solana/structs.d.ts +1 -0
- package/src/plugins/nosana/constants.d.ts +1 -0
- package/src/plugins/nosana/helpers.d.ts +1 -0
- package/src/plugins/nosana/structs.d.ts +1 -0
- package/src/plugins/nxfinance/constants.d.ts +1 -0
- package/src/plugins/orca/constants.d.ts +1 -0
- package/src/plugins/orca/filters.d.ts +1 -0
- package/src/plugins/orca/getWhirlpoolPositions.d.ts +1 -0
- package/src/plugins/orca/getWhirlpoolsJob.d.ts +1 -0
- package/src/plugins/orca/structs/oldLiquidities.d.ts +1 -0
- package/src/plugins/orca/structs/whirlpool.d.ts +1 -0
- package/src/plugins/orders/clobs-solana/filters.d.ts +1 -0
- package/src/plugins/orders/clobs-solana/structs.d.ts +1 -0
- package/src/plugins/parcl/constants.d.ts +1 -0
- package/src/plugins/parcl/filters.d.ts +1 -0
- package/src/plugins/parcl/helpers.d.ts +1 -0
- package/src/plugins/parcl/structs.d.ts +1 -0
- package/src/plugins/perena/constants.d.ts +1 -0
- package/src/plugins/perena/structs.d.ts +1 -0
- package/src/plugins/phoenix/constants.d.ts +1 -0
- package/src/plugins/phoenix/helpers/misc.d.ts +1 -0
- package/src/plugins/phoenix/structs/marketHeader.d.ts +1 -0
- package/src/plugins/phoenix/structs/misc.d.ts +1 -0
- package/src/plugins/phoenix/structs/seat.d.ts +1 -0
- package/src/plugins/picasso/constants.d.ts +1 -0
- package/src/plugins/picasso/helpers.d.ts +1 -0
- package/src/plugins/port/constants.d.ts +1 -0
- package/src/plugins/port/filters.d.ts +1 -0
- package/src/plugins/port/structs.d.ts +1 -0
- package/src/plugins/pudgypenguins/structs.d.ts +1 -0
- package/src/plugins/pyth/constants.d.ts +1 -0
- package/src/plugins/pyth/structs.d.ts +1 -0
- package/src/plugins/quarry/constants.d.ts +1 -0
- package/src/plugins/quarry/filters.d.ts +1 -0
- package/src/plugins/quarry/helpers.d.ts +1 -0
- package/src/plugins/quarry/types.d.ts +1 -0
- package/src/plugins/rain/constants.d.ts +1 -0
- package/src/plugins/rain/filters.d.ts +1 -0
- package/src/plugins/rain/helpers.d.ts +1 -0
- package/src/plugins/rain/structs/loan.d.ts +1 -0
- package/src/plugins/rain/structs/pool.d.ts +1 -0
- package/src/plugins/ratex/constants.d.ts +1 -0
- package/src/plugins/ratex/getPool.d.ts +1 -0
- package/src/plugins/raydium/constants.d.ts +1 -0
- package/src/plugins/raydium/farmsJob.d.ts +1 -0
- package/src/plugins/raydium/filters.d.ts +1 -0
- package/src/plugins/raydium/helpers.d.ts +1 -0
- package/src/plugins/raydium/structs/amms.d.ts +1 -0
- package/src/plugins/raydium/structs/clmms.d.ts +1 -0
- package/src/plugins/raydium/structs/cpmm.d.ts +1 -0
- package/src/plugins/raydium/structs/farms.d.ts +1 -0
- package/src/plugins/raydium/structs/openOrders.d.ts +1 -0
- package/src/plugins/raydium/structs/staking.d.ts +1 -0
- package/src/plugins/raydium/types.d.ts +1 -0
- package/src/plugins/sandglass/constants.d.ts +1 -0
- package/src/plugins/sandglass/filters.d.ts +1 -0
- package/src/plugins/sandglass/structs.d.ts +1 -0
- package/src/plugins/save/constants.d.ts +1 -0
- package/src/plugins/save/structs.d.ts +1 -0
- package/src/plugins/save/types.d.ts +1 -0
- package/src/plugins/sharky/constants.d.ts +1 -0
- package/src/plugins/sharky/filters.d.ts +1 -0
- package/src/plugins/solayer/constants.d.ts +1 -0
- package/src/plugins/solayer/structs.d.ts +1 -0
- package/src/plugins/spdr/constants.d.ts +1 -0
- package/src/plugins/spdr/structs.d.ts +1 -0
- package/src/plugins/stabble/filters.d.ts +1 -0
- package/src/plugins/staratlas/constants.d.ts +1 -0
- package/src/plugins/staratlas/helpers.d.ts +1 -0
- package/src/plugins/staratlas/structs.d.ts +1 -0
- package/src/plugins/streamflow/constants.d.ts +1 -0
- package/src/plugins/streamflow/filters.d.ts +1 -0
- package/src/plugins/streamflow/structs.d.ts +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardOnDemandPrice.d.ts +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardOnDemandPrices.d.ts +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrice.d.ts +1 -0
- package/src/plugins/switchboard/helpers/getSwitchboardPrices.d.ts +1 -0
- package/src/plugins/switchboard/structs.d.ts +1 -0
- package/src/plugins/symmetry/constants.d.ts +1 -0
- package/src/plugins/symmetry/filters.d.ts +1 -0
- package/src/plugins/symmetry/structs.d.ts +1 -0
- package/src/plugins/tensor/constants.d.ts +1 -0
- package/src/plugins/tensor/filters.d.ts +1 -0
- package/src/plugins/tensor/helpers.d.ts +1 -0
- package/src/plugins/tensor/struct.d.ts +1 -0
- package/src/plugins/texture/constants.d.ts +1 -0
- package/src/plugins/texture/structs.d.ts +1 -0
- package/src/plugins/tulip/constants.d.ts +1 -0
- package/src/plugins/tulip/structs.d.ts +1 -0
- package/src/plugins/uxd/constants.d.ts +1 -0
- package/src/plugins/uxd/structs.d.ts +1 -0
- package/src/plugins/vaultka/constants.d.ts +1 -0
- package/src/plugins/vaultka/structs.d.ts +1 -0
- package/src/plugins/whalesmarket/constants.d.ts +1 -0
- package/src/plugins/whalesmarket/structs.d.ts +1 -0
- package/src/plugins/wormhole/constants.d.ts +1 -0
- package/src/plugins/wormhole/helpers.d.ts +1 -0
- package/src/plugins/wormhole/structs.d.ts +1 -0
- package/src/plugins/zelo/constants.d.ts +1 -0
- package/src/plugins/zelo/structs.d.ts +1 -0
- package/src/plugins/zeta/constants.d.ts +1 -0
- package/src/plugins/zeta/helpers.d.ts +1 -0
- package/src/plugins/zeta/structs.d.ts +1 -0
- package/src/utils/clients/types.d.ts +1 -0
- package/src/utils/elementbuilder/ConcentratedLiquidityParams.d.ts +1 -0
- package/src/utils/elementbuilder/PortfolioAssetGenericParams.d.ts +1 -0
- package/src/utils/elementbuilder/PortfolioAssetTokenParams.d.ts +1 -0
- package/src/utils/name-service/getNames.js +4 -8
- package/src/utils/name-service/getNames.js.map +1 -1
- package/src/utils/name-service/services/bonfida.d.ts +10 -0
- package/src/utils/name-service/services/bonfida.js +29 -12
- package/src/utils/name-service/services/bonfida.js.map +1 -1
- package/src/utils/solana/constants.d.ts +1 -0
- package/src/utils/solana/fetchTokenSupplyAndDecimals.d.ts +1 -0
- package/src/utils/solana/filters.d.ts +1 -0
- package/src/utils/solana/getAutoParsedMultipleAccountsInfo.d.ts +1 -0
- package/src/utils/solana/getAutoParsedProgramAccounts.d.ts +1 -0
- package/src/utils/solana/getDecimals.d.ts +1 -0
- package/src/utils/solana/getMultipleAccountsInfoSafe.d.ts +1 -0
- package/src/utils/solana/getMultipleDecimals.d.ts +1 -0
- package/src/utils/solana/getMultipleDecimalsAsMap.d.ts +1 -0
- package/src/utils/solana/getParsedAccountInfo.d.ts +1 -0
- package/src/utils/solana/getParsedMultipleAccountsInfo.d.ts +1 -0
- package/src/utils/solana/getParsedProgramAccounts.d.ts +1 -0
- package/src/utils/solana/getProgramAccounts.d.ts +1 -0
- package/src/utils/solana/getSupply.d.ts +1 -0
- package/src/utils/solana/jupiter/deriveClaimStatus.d.ts +1 -0
- package/src/utils/solana/jupiter/deriveClaimStatuses.d.ts +1 -0
- package/src/utils/solana/jupiter/getMerkleDistributorPda.d.ts +1 -0
- package/src/utils/solana/pyth/helpers.d.ts +1 -0
- package/src/utils/solana/pyth/structs.d.ts +1 -0
- package/src/utils/solana/pyth/structsOld.d.ts +1 -0
- package/src/utils/solana/structs.d.ts +1 -0
- package/src/utils/solana/types.d.ts +1 -0
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const liquidityAccountFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const limitFilters: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import BigNumber from 'bignumber.js';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const perpetualsPositionsFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -8,9 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
16
|
const web3_js_1 = require("@solana/web3.js");
|
17
|
+
const axios_1 = __importDefault(require("axios"));
|
14
18
|
const constants_1 = require("./exchange/constants");
|
15
19
|
const helpers_1 = require("./helpers");
|
16
20
|
const constants_2 = require("../tokens/constants");
|
@@ -45,11 +49,19 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
49
|
networkId: portfolio_core_1.NetworkId.solana,
|
46
50
|
});
|
47
51
|
const connection = (0, clients_1.getClientSolana)();
|
48
|
-
|
49
|
-
|
52
|
+
const [solSources, verifiedTokens] = yield Promise.all([
|
53
|
+
(0, helpers_1.getJupiterPrices)([new web3_js_1.PublicKey(vsToken)], new web3_js_1.PublicKey(solana_1.usdcSolanaMint)),
|
54
|
+
axios_1.default.get('https://tokens.jup.ag/tokens?tags=verified'),
|
55
|
+
]);
|
50
56
|
const solPrice = solSources.get(vsToken);
|
51
57
|
if (!solPrice)
|
52
58
|
return;
|
59
|
+
verifiedTokens.data
|
60
|
+
.sort((a, b) => b.daily_volume - a.daily_volume)
|
61
|
+
.slice(0, 250)
|
62
|
+
.forEach((token) => {
|
63
|
+
mints.push(token.address);
|
64
|
+
});
|
53
65
|
const solTokenPrice = { price: solPrice };
|
54
66
|
const mintsPk = mints.map((m) => new web3_js_1.PublicKey(m));
|
55
67
|
if (sanctumMints)
|
@@ -64,7 +76,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
76
|
const source = {
|
65
77
|
address: mint,
|
66
78
|
decimals,
|
67
|
-
id:
|
79
|
+
id: portfolio_core_1.jupiterSourceId,
|
68
80
|
networkId: portfolio_core_1.NetworkId.solana,
|
69
81
|
timestamp: Date.now(),
|
70
82
|
price: solTokenPrice.price * price,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":"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"}
|
@@ -104,4 +104,12 @@ export type PriceResponse = {
|
|
104
104
|
} | null>;
|
105
105
|
timeTaken: number;
|
106
106
|
};
|
107
|
+
export type TokenResponse = {
|
108
|
+
address: string;
|
109
|
+
daily_volume: number;
|
110
|
+
symbol: string;
|
111
|
+
extensions: {
|
112
|
+
coingeckoId?: string;
|
113
|
+
};
|
114
|
+
};
|
107
115
|
export {};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const userStateFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { PublicKey } from '@solana/web3.js';
|
4
5
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const escrowFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const roleFilters: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const accountsFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
-
const spl_name_service_1 = require("@bonfida/spl-name-service");
|
14
13
|
const constants_1 = require("./constants");
|
14
|
+
const solana_1 = require("../../utils/solana");
|
15
15
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
16
|
-
const usdcPrice = yield cache.getTokenPrice(
|
16
|
+
const usdcPrice = yield cache.getTokenPrice(solana_1.usdcSolanaMint.toString(), portfolio_core_1.NetworkId.solana);
|
17
17
|
if (!usdcPrice)
|
18
18
|
return;
|
19
19
|
yield cache.setTokenPriceSource({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solanaJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maple/solanaJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;
|
1
|
+
{"version":3,"file":"solanaJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maple/solanaJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA0D;AAC1D,+CAAoD;AAEpD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,aAAa,CACzC,uBAAc,CAAC,QAAQ,EAAE,EACzB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,IAAI,CAAC,SAAS;QAAE,OAAO;IACvB,MAAM,KAAK,CAAC,mBAAmB,CAAC;QAC9B,OAAO,EAAE,2BAAe;QACxB,QAAQ,EAAE,CAAC;QACX,EAAE,EAAE,sBAAU;QACd,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,WAAW,EAAE,MAAM;QACnB,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;QACrB,MAAM,EAAE,CAAC;QACT,WAAW,EAAE;YACX;gBACE,OAAO,EAAE,SAAS,CAAC,OAAO;gBAC1B,WAAW,EAAE,CAAC;gBACd,QAAQ,EAAE,SAAS,CAAC,QAAQ;gBAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,KAAK,EAAE,SAAS,CAAC,KAAK;aACvB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const accountsFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, bignum } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const ticketFilters: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import BigNumber from 'bignumber.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
1
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
3
|
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
3
4
|
export declare const stakeAccountsFilter: (owner: string) => GetProgramAccountsFilter[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
3
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
4
|
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
5
|
import { PublicKey } from '@solana/web3.js';
|