diff --git a/src/apps/aave-amm/contracts/index.ts b/src/apps/aave-amm/contracts/index.ts index f3e9c118a..972c35480 100644 --- a/src/apps/aave-amm/contracts/index.ts +++ b/src/apps/aave-amm/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AaveAmmAToken__factory } from './ethers'; -import { AaveAmmLendingPool__factory } from './ethers'; +import { AaveAmmAToken__factory, AaveAmmLendingPool__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/aave-safety-module/contracts/index.ts b/src/apps/aave-safety-module/contracts/index.ts index 685edef0f..a46aec2f1 100644 --- a/src/apps/aave-safety-module/contracts/index.ts +++ b/src/apps/aave-safety-module/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AaveAbpt__factory } from './ethers'; -import { AaveBpt__factory } from './ethers'; -import { AaveStkAave__factory } from './ethers'; -import { AaveStkAbpt__factory } from './ethers'; -import { AaveStkApyHelper__factory } from './ethers'; +import { + AaveAbpt__factory, + AaveBpt__factory, + AaveStkAave__factory, + AaveStkAbpt__factory, + AaveStkApyHelper__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/aave-v2/contracts/index.ts b/src/apps/aave-v2/contracts/index.ts index 25ac10bbe..61bd586d1 100644 --- a/src/apps/aave-v2/contracts/index.ts +++ b/src/apps/aave-v2/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AaveProtocolDataProvider__factory } from './ethers'; -import { AaveStakedTokenIncentivesController__factory } from './ethers'; -import { AaveV2AToken__factory } from './ethers'; -import { AaveV2LendingPoolProvider__factory } from './ethers'; +import { + AaveProtocolDataProvider__factory, + AaveStakedTokenIncentivesController__factory, + AaveV2AToken__factory, + AaveV2LendingPoolProvider__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/aelin/contracts/index.ts b/src/apps/aelin/contracts/index.ts index 3d6352c7c..1a87fec74 100644 --- a/src/apps/aelin/contracts/index.ts +++ b/src/apps/aelin/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AelinPool__factory } from './ethers'; -import { AelinStaking__factory } from './ethers'; -import { AelinVAelin__factory } from './ethers'; +import { AelinPool__factory, AelinStaking__factory, AelinVAelin__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/agave/contracts/index.ts b/src/apps/agave/contracts/index.ts index 6a8b95d04..39d2a7af5 100644 --- a/src/apps/agave/contracts/index.ts +++ b/src/apps/agave/contracts/index.ts @@ -4,9 +4,11 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AgaveBaseIncentivesController__factory } from './ethers'; -import { AgaveLendingPoolProvider__factory } from './ethers'; -import { AgaveProtocolDataProvider__factory } from './ethers'; +import { + AgaveBaseIncentivesController__factory, + AgaveLendingPoolProvider__factory, + AgaveProtocolDataProvider__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/airswap/contracts/index.ts b/src/apps/airswap/contracts/index.ts index 67c8ec5d0..30ba58257 100644 --- a/src/apps/airswap/contracts/index.ts +++ b/src/apps/airswap/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { StakingV2__factory } from './ethers'; -import { StakingV3__factory } from './ethers'; +import { StakingV2__factory, StakingV3__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/angle/contracts/index.ts b/src/apps/angle/contracts/index.ts index 8362afe31..1d89a1437 100644 --- a/src/apps/angle/contracts/index.ts +++ b/src/apps/angle/contracts/index.ts @@ -4,13 +4,15 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AngleLiquidityGauge__factory } from './ethers'; -import { AnglePerpetualManager__factory } from './ethers'; -import { AnglePoolManager__factory } from './ethers'; -import { AngleSanToken__factory } from './ethers'; -import { AngleStablemaster__factory } from './ethers'; -import { AngleVaultManager__factory } from './ethers'; -import { AngleVeAngle__factory } from './ethers'; +import { + AngleLiquidityGauge__factory, + AnglePerpetualManager__factory, + AnglePoolManager__factory, + AngleSanToken__factory, + AngleStablemaster__factory, + AngleVaultManager__factory, + AngleVeAngle__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/arrakis/contracts/index.ts b/src/apps/arrakis/contracts/index.ts index 2b8896745..6d7ff9d87 100644 --- a/src/apps/arrakis/contracts/index.ts +++ b/src/apps/arrakis/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { ArrakisGelatoPool__factory } from './ethers'; -import { ArrakisPool__factory } from './ethers'; +import { ArrakisGelatoPool__factory, ArrakisPool__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/atlendis-v1/contracts/index.ts b/src/apps/atlendis-v1/contracts/index.ts index 8fa134eea..48e5cac4c 100644 --- a/src/apps/atlendis-v1/contracts/index.ts +++ b/src/apps/atlendis-v1/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AtlendisBorrowerPools__factory } from './ethers'; -import { AtlendisPositionManager__factory } from './ethers'; +import { AtlendisBorrowerPools__factory, AtlendisPositionManager__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/aurigami/contracts/index.ts b/src/apps/aurigami/contracts/index.ts index 66aec470c..1fdfc7bbd 100644 --- a/src/apps/aurigami/contracts/index.ts +++ b/src/apps/aurigami/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { AurigamiAuToken__factory } from './ethers'; -import { AurigamiComptroller__factory } from './ethers'; -import { AurigamiLens__factory } from './ethers'; +import { AurigamiAuToken__factory, AurigamiComptroller__factory, AurigamiLens__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/b-protocol/contracts/index.ts b/src/apps/b-protocol/contracts/index.ts index 7c18274d7..bb6f5ef66 100644 --- a/src/apps/b-protocol/contracts/index.ts +++ b/src/apps/b-protocol/contracts/index.ts @@ -4,12 +4,14 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BProtocolBamm__factory } from './ethers'; -import { BProtocolBammLens__factory } from './ethers'; -import { BProtocolCompoundComptroller__factory } from './ethers'; -import { BProtocolCompoundRegistry__factory } from './ethers'; -import { BProtocolCompoundToken__factory } from './ethers'; -import { BProtocolGetInfo__factory } from './ethers'; +import { + BProtocolBamm__factory, + BProtocolBammLens__factory, + BProtocolCompoundComptroller__factory, + BProtocolCompoundRegistry__factory, + BProtocolCompoundToken__factory, + BProtocolGetInfo__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/badger/contracts/index.ts b/src/apps/badger/contracts/index.ts index 915aadb54..9d435b18a 100644 --- a/src/apps/badger/contracts/index.ts +++ b/src/apps/badger/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BadgerDiggToken__factory } from './ethers'; -import { BadgerRegistry__factory } from './ethers'; -import { BadgerSett__factory } from './ethers'; -import { BadgerTree__factory } from './ethers'; -import { BadgerYearnVault__factory } from './ethers'; +import { + BadgerDiggToken__factory, + BadgerRegistry__factory, + BadgerSett__factory, + BadgerTree__factory, + BadgerYearnVault__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/bancor-v3/contracts/index.ts b/src/apps/bancor-v3/contracts/index.ts index 587c4aa9b..b77a8e2f5 100644 --- a/src/apps/bancor-v3/contracts/index.ts +++ b/src/apps/bancor-v3/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BancorNetwork__factory } from './ethers'; -import { BntPool__factory } from './ethers'; -import { PoolCollection__factory } from './ethers'; -import { PoolToken__factory } from './ethers'; -import { StandardRewards__factory } from './ethers'; +import { + BancorNetwork__factory, + BntPool__factory, + PoolCollection__factory, + PoolToken__factory, + StandardRewards__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/barnbridge-smart-alpha/contracts/index.ts b/src/apps/barnbridge-smart-alpha/contracts/index.ts index a37aa4f90..2acbf1b92 100644 --- a/src/apps/barnbridge-smart-alpha/contracts/index.ts +++ b/src/apps/barnbridge-smart-alpha/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BarnbridgeSmartAlphaPool__factory } from './ethers'; -import { BarnbridgeSmartAlphaToken__factory } from './ethers'; +import { BarnbridgeSmartAlphaPool__factory, BarnbridgeSmartAlphaToken__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/bastion-protocol/contracts/index.ts b/src/apps/bastion-protocol/contracts/index.ts index fd2c58a93..2b7345757 100644 --- a/src/apps/bastion-protocol/contracts/index.ts +++ b/src/apps/bastion-protocol/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BastionProtocolComptroller__factory } from './ethers'; -import { BastionProtocolCtoken__factory } from './ethers'; -import { BastionProtocolLptoken__factory } from './ethers'; -import { BastionProtocolSwap__factory } from './ethers'; +import { + BastionProtocolComptroller__factory, + BastionProtocolCtoken__factory, + BastionProtocolLptoken__factory, + BastionProtocolSwap__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/beefy/contracts/index.ts b/src/apps/beefy/contracts/index.ts index d449d44d3..78845be8d 100644 --- a/src/apps/beefy/contracts/index.ts +++ b/src/apps/beefy/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BeefyBoostVault__factory } from './ethers'; -import { BeefyVaultToken__factory } from './ethers'; +import { BeefyBoostVault__factory, BeefyVaultToken__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/biswap/contracts/index.ts b/src/apps/biswap/contracts/index.ts index 4a8a75698..0ba4d7959 100644 --- a/src/apps/biswap/contracts/index.ts +++ b/src/apps/biswap/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BiswapFactory__factory } from './ethers'; -import { BiswapMasterchef__factory } from './ethers'; -import { BiswapPool__factory } from './ethers'; +import { BiswapFactory__factory, BiswapMasterchef__factory, BiswapPool__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/bluebit/contracts/index.ts b/src/apps/bluebit/contracts/index.ts index 5f603d9b2..b750fd1cc 100644 --- a/src/apps/bluebit/contracts/index.ts +++ b/src/apps/bluebit/contracts/index.ts @@ -4,10 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BluebitChef__factory } from './ethers'; -import { BluebitVeToken__factory } from './ethers'; -import { Stats__factory } from './ethers'; -import { Vault__factory } from './ethers'; +import { BluebitChef__factory, BluebitVeToken__factory, Stats__factory, Vault__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/botto/contracts/index.ts b/src/apps/botto/contracts/index.ts index 8ce6b9c74..6f1fe002c 100644 --- a/src/apps/botto/contracts/index.ts +++ b/src/apps/botto/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { BottoGovernance__factory } from './ethers'; -import { BottoLiquidityMining__factory } from './ethers'; +import { BottoGovernance__factory, BottoLiquidityMining__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/chicken-bond/contracts/index.ts b/src/apps/chicken-bond/contracts/index.ts index 7a5c3c032..386059849 100644 --- a/src/apps/chicken-bond/contracts/index.ts +++ b/src/apps/chicken-bond/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { ChickenBondBlusd__factory } from './ethers'; -import { ChickenBondBondNft__factory } from './ethers'; -import { ChickenBondManager__factory } from './ethers'; -import { CurvePool__factory } from './ethers'; +import { + ChickenBondBlusd__factory, + ChickenBondBondNft__factory, + ChickenBondManager__factory, + CurvePool__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/compound/contracts/index.ts b/src/apps/compound/contracts/index.ts index 6c78912c7..de6c9d236 100644 --- a/src/apps/compound/contracts/index.ts +++ b/src/apps/compound/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { CompoundCToken__factory } from './ethers'; -import { CompoundComptroller__factory } from './ethers'; -import { CompoundLens__factory } from './ethers'; +import { CompoundCToken__factory, CompoundComptroller__factory, CompoundLens__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/concave/contracts/index.ts b/src/apps/concave/contracts/index.ts index 78a6de4f5..04d3f0dad 100644 --- a/src/apps/concave/contracts/index.ts +++ b/src/apps/concave/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { Cnv__factory } from './ethers'; -import { Lsdcnv__factory } from './ethers'; +import { Cnv__factory, Lsdcnv__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/concave/ethereum/concave.liquid-staking.contract-position-fetcher.ts b/src/apps/concave/ethereum/concave.liquid-staking.contract-position-fetcher.ts index 66f159e7b..1dfb71269 100644 --- a/src/apps/concave/ethereum/concave.liquid-staking.contract-position-fetcher.ts +++ b/src/apps/concave/ethereum/concave.liquid-staking.contract-position-fetcher.ts @@ -9,7 +9,6 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; import { drillBalance } from '~app-toolkit/helpers/drill-balance.helper'; import { gqlFetch } from '~app-toolkit/helpers/the-graph.helper'; -import { ContractType } from '~position/contract.interface'; import { DefaultDataProps } from '~position/display.interface'; import { ContractPositionBalance } from '~position/position-balance.interface'; import { MetaType } from '~position/position.interface'; diff --git a/src/apps/concentrator/concentrator.module.ts b/src/apps/concentrator/concentrator.module.ts index e47f3d04d..11aa2ab2b 100644 --- a/src/apps/concentrator/concentrator.module.ts +++ b/src/apps/concentrator/concentrator.module.ts @@ -4,13 +4,13 @@ import { AbstractApp } from '~app/app.dynamic-module'; import { ConcentratorContractFactory } from './contracts'; import { EthereumConcentratorAbcCvxTokenFetcher } from './ethereum/concentrator.abc.token-fetcher'; -import { EthereumConcentratorCompounderTokenFetcher } from './ethereum/concentrator.compounder.token-fetcher'; import { EthereumConcentratorAcrvVaultContractPositionFetcher } from './ethereum/concentrator.acrv-vault.contract-position-fetcher'; import { EthereumConcentratorAfrxethVaultContractPositionFetcher } from './ethereum/concentrator.afrxeth-vault.contract-position-fetcher'; import { EthereumConcentratorAfxsVaultContractPositionFetcher } from './ethereum/concentrator.afxs-vault.contract-position-fetcher'; +import { EthereumConcentratorCompounderTokenFetcher } from './ethereum/concentrator.compounder.token-fetcher'; import { EthereumConcentratorLegacyVaultContractPositionFetcher } from './ethereum/concentrator.legacy-vault.contract-position-fetcher'; -import { EthereumConcentratorVotingEscrowContractPositionFetcher } from './ethereum/concentrator.voting-escrow.contract-position-fetcher'; import { EthereumConcentratorVestingContractPositionFetcher } from './ethereum/concentrator.vesting.contract-position-fetcher'; +import { EthereumConcentratorVotingEscrowContractPositionFetcher } from './ethereum/concentrator.voting-escrow.contract-position-fetcher'; @Module({ providers: [ diff --git a/src/apps/concentrator/ethereum/concentrator.abc.token-fetcher.ts b/src/apps/concentrator/ethereum/concentrator.abc.token-fetcher.ts index b59d1c963..37febf9b9 100644 --- a/src/apps/concentrator/ethereum/concentrator.abc.token-fetcher.ts +++ b/src/apps/concentrator/ethereum/concentrator.abc.token-fetcher.ts @@ -3,11 +3,7 @@ import { Inject } from '@nestjs/common'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; -import { - GetDataPropsParams, - GetPricePerShareParams, - GetUnderlyingTokensParams, -} from '~position/template/app-token.template.types'; +import { GetPricePerShareParams, GetUnderlyingTokensParams } from '~position/template/app-token.template.types'; import { AbcCvx, ConcentratorContractFactory } from '../contracts'; diff --git a/src/apps/concentrator/ethereum/concentrator.compounder.token-fetcher.ts b/src/apps/concentrator/ethereum/concentrator.compounder.token-fetcher.ts index b5250dbab..6a7f4d8af 100644 --- a/src/apps/concentrator/ethereum/concentrator.compounder.token-fetcher.ts +++ b/src/apps/concentrator/ethereum/concentrator.compounder.token-fetcher.ts @@ -3,13 +3,9 @@ import { Inject } from '@nestjs/common'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; -import { - GetDataPropsParams, - GetPricePerShareParams, - GetUnderlyingTokensParams, -} from '~position/template/app-token.template.types'; +import { GetPricePerShareParams, GetUnderlyingTokensParams } from '~position/template/app-token.template.types'; -import { AbcCvx, AladdinConcentratorCompounder, ConcentratorContractFactory } from '../contracts'; +import { AladdinConcentratorCompounder, ConcentratorContractFactory } from '../contracts'; @PositionTemplate() export class EthereumConcentratorCompounderTokenFetcher extends AppTokenTemplatePositionFetcher { diff --git a/src/apps/cozy-finance/contracts/index.ts b/src/apps/cozy-finance/contracts/index.ts index fdcfbb88b..1af4314d0 100644 --- a/src/apps/cozy-finance/contracts/index.ts +++ b/src/apps/cozy-finance/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { CozyFinanceCToken__factory } from './ethers'; -import { CozyFinanceComptroller__factory } from './ethers'; +import { CozyFinanceCToken__factory, CozyFinanceComptroller__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/dfx/contracts/index.ts b/src/apps/dfx/contracts/index.ts index efc7b5da0..e3283048b 100644 --- a/src/apps/dfx/contracts/index.ts +++ b/src/apps/dfx/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { DfxCurve__factory } from './ethers'; -import { DfxStaking__factory } from './ethers'; +import { DfxCurve__factory, DfxStaking__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/dhedge-v2/contracts/index.ts b/src/apps/dhedge-v2/contracts/index.ts index 76a06a578..0e0d002b6 100644 --- a/src/apps/dhedge-v2/contracts/index.ts +++ b/src/apps/dhedge-v2/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { DhedgeV2Factory__factory } from './ethers'; -import { DhedgeV2Token__factory } from './ethers'; +import { DhedgeV2Factory__factory, DhedgeV2Token__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/dystopia/contracts/index.ts b/src/apps/dystopia/contracts/index.ts index 46eae5250..5d8cdc0a8 100644 --- a/src/apps/dystopia/contracts/index.ts +++ b/src/apps/dystopia/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { DystopiaGauge__factory } from './ethers'; -import { DystopiaPair__factory } from './ethers'; -import { DystopiaVe__factory } from './ethers'; +import { DystopiaGauge__factory, DystopiaPair__factory, DystopiaVe__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/ease/contracts/index.ts b/src/apps/ease/contracts/index.ts index c583c9fe7..fab88a0ae 100644 --- a/src/apps/ease/contracts/index.ts +++ b/src/apps/ease/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { EaseRcaShield__factory } from './ethers'; -import { EaseRcaShieldAave__factory } from './ethers'; -import { EaseRcaShieldCompound__factory } from './ethers'; -import { EaseRcaShieldConvex__factory } from './ethers'; -import { EaseRcaShieldOnsen__factory } from './ethers'; +import { + EaseRcaShield__factory, + EaseRcaShieldAave__factory, + EaseRcaShieldCompound__factory, + EaseRcaShieldConvex__factory, + EaseRcaShieldOnsen__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/gamma-strategies/gamma-strategies.module.ts b/src/apps/gamma-strategies/gamma-strategies.module.ts index abc269074..6598b0c5b 100644 --- a/src/apps/gamma-strategies/gamma-strategies.module.ts +++ b/src/apps/gamma-strategies/gamma-strategies.module.ts @@ -31,4 +31,4 @@ import { PolygonGammaStrategiesQuickSwapFarmContractPositionFetcher } from './po PolygonGammaStrategiesQuickSwapFarmContractPositionFetcher, ], }) -export class GammaStrategiesAppModule extends AbstractApp() { } +export class GammaStrategiesAppModule extends AbstractApp() {} diff --git a/src/apps/geist/contracts/index.ts b/src/apps/geist/contracts/index.ts index d8a268397..986f94b14 100644 --- a/src/apps/geist/contracts/index.ts +++ b/src/apps/geist/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { GeistRewards__factory } from './ethers'; -import { GeistStaking__factory } from './ethers'; +import { GeistRewards__factory, GeistStaking__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/gmx/contracts/index.ts b/src/apps/gmx/contracts/index.ts index 4fee73340..7dfa84e1d 100644 --- a/src/apps/gmx/contracts/index.ts +++ b/src/apps/gmx/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { GmxAumManager__factory } from './ethers'; -import { GmxRewardReader__factory } from './ethers'; -import { GmxRewardTracker__factory } from './ethers'; -import { GmxVault__factory } from './ethers'; +import { + GmxAumManager__factory, + GmxRewardReader__factory, + GmxRewardTracker__factory, + GmxVault__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/gro/contracts/index.ts b/src/apps/gro/contracts/index.ts index 2cbe7e9ec..26098dcd8 100644 --- a/src/apps/gro/contracts/index.ts +++ b/src/apps/gro/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { GroLabsVault__factory } from './ethers'; -import { GroLpTokenStaker__factory } from './ethers'; -import { GroVesting__factory } from './ethers'; +import { GroLabsVault__factory, GroLpTokenStaker__factory, GroVesting__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/hector-network/contracts/index.ts b/src/apps/hector-network/contracts/index.ts index 8f2aba826..6d042926d 100644 --- a/src/apps/hector-network/contracts/index.ts +++ b/src/apps/hector-network/contracts/index.ts @@ -4,12 +4,14 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { HectorNetworkBondDepository__factory } from './ethers'; -import { HectorNetworkBondNoTreasury__factory } from './ethers'; -import { HectorNetworkStakeBondDepository__factory } from './ethers'; -import { HectorNetworkStaked__factory } from './ethers'; -import { HectorNetworkStakingRewards__factory } from './ethers'; -import { HectorNetworkToken__factory } from './ethers'; +import { + HectorNetworkBondDepository__factory, + HectorNetworkBondNoTreasury__factory, + HectorNetworkStakeBondDepository__factory, + HectorNetworkStaked__factory, + HectorNetworkStakingRewards__factory, + HectorNetworkToken__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/hidden-hand/common/hidden-hand.rewards-resolver.ts b/src/apps/hidden-hand/common/hidden-hand.rewards-resolver.ts index aa65de5a2..e0966397a 100644 --- a/src/apps/hidden-hand/common/hidden-hand.rewards-resolver.ts +++ b/src/apps/hidden-hand/common/hidden-hand.rewards-resolver.ts @@ -195,7 +195,7 @@ export class HiddenHandRewardsResolver { constructor( @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, @Inject(HiddenHandContractFactory) protected readonly contractFactory: HiddenHandContractFactory, - ) { } + ) {} @Cache({ key: `studio:hidden-hand:claimable-raw-data`, diff --git a/src/apps/hidden-hand/hidden-hand.module.ts b/src/apps/hidden-hand/hidden-hand.module.ts index 209bdd2c7..986e0b91e 100644 --- a/src/apps/hidden-hand/hidden-hand.module.ts +++ b/src/apps/hidden-hand/hidden-hand.module.ts @@ -17,4 +17,4 @@ import { OptimismHiddenHandRewardsContractPositionFetcher } from './optimism/hid HiddenHandContractFactory, ], }) -export class HiddenHandAppModule extends AbstractApp() { } +export class HiddenHandAppModule extends AbstractApp() {} diff --git a/src/apps/homora-v2/contracts/index.ts b/src/apps/homora-v2/contracts/index.ts index a3c278839..56cefcb69 100644 --- a/src/apps/homora-v2/contracts/index.ts +++ b/src/apps/homora-v2/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { CyToken__factory } from './ethers'; -import { HomoraBank__factory } from './ethers'; +import { CyToken__factory, HomoraBank__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/honeyswap/contracts/index.ts b/src/apps/honeyswap/contracts/index.ts index 18014bdbe..6b84b518b 100644 --- a/src/apps/honeyswap/contracts/index.ts +++ b/src/apps/honeyswap/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { HoneyswapFactory__factory } from './ethers'; -import { HoneyswapPair__factory } from './ethers'; +import { HoneyswapFactory__factory, HoneyswapPair__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/impermax/contracts/index.ts b/src/apps/impermax/contracts/index.ts index d20d439c1..54a690b88 100644 --- a/src/apps/impermax/contracts/index.ts +++ b/src/apps/impermax/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { Borrowable__factory } from './ethers'; -import { Collateral__factory } from './ethers'; -import { Factory__factory } from './ethers'; +import { Borrowable__factory, Collateral__factory, Factory__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/index-coop/contracts/index.ts b/src/apps/index-coop/contracts/index.ts index d5e1eeb54..12e3c190d 100644 --- a/src/apps/index-coop/contracts/index.ts +++ b/src/apps/index-coop/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { IndexCoopStaking__factory } from './ethers'; -import { IndexCoopToken__factory } from './ethers'; +import { IndexCoopStaking__factory, IndexCoopToken__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/insurace/contracts/index.ts b/src/apps/insurace/contracts/index.ts index f759e3c16..df7d325b0 100644 --- a/src/apps/insurace/contracts/index.ts +++ b/src/apps/insurace/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { InsuracePoolToken__factory } from './ethers'; -import { InsuraceStakersPoolV2__factory } from './ethers'; +import { InsuracePoolToken__factory, InsuraceStakersPoolV2__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/iq/contracts/index.ts b/src/apps/iq/contracts/index.ts index 1c1bdb29a..890cce3e2 100644 --- a/src/apps/iq/contracts/index.ts +++ b/src/apps/iq/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { Iq__factory } from './ethers'; -import { IqHiiq__factory } from './ethers'; +import { Iq__factory, IqHiiq__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/iron-bank/contracts/index.ts b/src/apps/iron-bank/contracts/index.ts index 282848aa5..22177bf03 100644 --- a/src/apps/iron-bank/contracts/index.ts +++ b/src/apps/iron-bank/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { IronBankCToken__factory } from './ethers'; -import { IronBankComptroller__factory } from './ethers'; -import { IronBankLens__factory } from './ethers'; +import { IronBankCToken__factory, IronBankComptroller__factory, IronBankLens__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/keeper/contracts/index.ts b/src/apps/keeper/contracts/index.ts index cc754e54b..116ec6c1b 100644 --- a/src/apps/keeper/contracts/index.ts +++ b/src/apps/keeper/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { KeeperJobManager__factory } from './ethers'; -import { KeeperKlp__factory } from './ethers'; -import { KeeperRedeemableToken__factory } from './ethers'; -import { KeeperVest__factory } from './ethers'; +import { + KeeperJobManager__factory, + KeeperKlp__factory, + KeeperRedeemableToken__factory, + KeeperVest__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/kwenta/kwenta.module.ts b/src/apps/kwenta/kwenta.module.ts index 1272e7962..ee232eae3 100644 --- a/src/apps/kwenta/kwenta.module.ts +++ b/src/apps/kwenta/kwenta.module.ts @@ -5,11 +5,10 @@ import { AbstractApp } from '~app/app.dynamic-module'; import { SynthetixContractFactory } from '../synthetix/contracts'; import { KwentaContractFactory } from './contracts'; +import { OptimismKwentaEscrowContractPositionFetcher } from './optimism/kwenta.escrow.contract-position-fetcher'; import { OptimismKwentaPerpV1CrossMarginContractPositionFetcher } from './optimism/kwenta.perp-v1-cross-margin.contract-position-fetcher'; import { OptimismKwentaPerpV2SmartMarginContractPositionFetcher } from './optimism/kwenta.perp-v2-smart-margin.contract-position-fetcher'; import { OptimismKwentaStakingContractPositionFetcher } from './optimism/kwenta.staking.contract-position-fetcher'; -import { OptimismKwentaEscrowContractPositionFetcher } from './optimism/kwenta.escrow.contract-position-fetcher'; - @Module({ providers: [ @@ -21,4 +20,4 @@ import { OptimismKwentaEscrowContractPositionFetcher } from './optimism/kwenta.e OptimismKwentaEscrowContractPositionFetcher, ], }) -export class KwentaAppModule extends AbstractApp() { } +export class KwentaAppModule extends AbstractApp() {} diff --git a/src/apps/kwenta/optimism/kwenta.escrow.contract-position-fetcher.ts b/src/apps/kwenta/optimism/kwenta.escrow.contract-position-fetcher.ts index 41132aa14..8e744bc89 100644 --- a/src/apps/kwenta/optimism/kwenta.escrow.contract-position-fetcher.ts +++ b/src/apps/kwenta/optimism/kwenta.escrow.contract-position-fetcher.ts @@ -29,7 +29,10 @@ export class OptimismKwentaEscrowContractPositionFetcher extends VotingEscrowTem } async getEscrowedTokenBalance({ multicall, contract, address }: GetTokenBalancesParams) { - const stakingContract = this.contractFactory.kwentaStaking({ address: this.stakingContractAddress, network: this.network }); + const stakingContract = this.contractFactory.kwentaStaking({ + address: this.stakingContractAddress, + network: this.network, + }); const mcStakingContract = multicall.wrap(stakingContract); const stakedBalance = await mcStakingContract.balanceOf(address); const stakedNonEscrowedBalance = await mcStakingContract.nonEscrowedBalanceOf(address); diff --git a/src/apps/liquity/contracts/index.ts b/src/apps/liquity/contracts/index.ts index 1506da309..ca571c712 100644 --- a/src/apps/liquity/contracts/index.ts +++ b/src/apps/liquity/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { LiquityStaking__factory } from './ethers'; -import { StabilityPool__factory } from './ethers'; -import { TroveManager__factory } from './ethers'; +import { LiquityStaking__factory, StabilityPool__factory, TroveManager__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/llama-airforce/contracts/index.ts b/src/apps/llama-airforce/contracts/index.ts index c39c7550c..163f9c838 100644 --- a/src/apps/llama-airforce/contracts/index.ts +++ b/src/apps/llama-airforce/contracts/index.ts @@ -4,9 +4,11 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { LlamaAirforceMerkleDistributor__factory } from './ethers'; -import { LlamaAirforceUnionVault__factory } from './ethers'; -import { LlamaAirforceUnionVaultPirex__factory } from './ethers'; +import { + LlamaAirforceMerkleDistributor__factory, + LlamaAirforceUnionVault__factory, + LlamaAirforceUnionVaultPirex__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/looks-rare/contracts/index.ts b/src/apps/looks-rare/contracts/index.ts index 6a7ad56e5..6d827112d 100644 --- a/src/apps/looks-rare/contracts/index.ts +++ b/src/apps/looks-rare/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { LooksRareCompounder__factory } from './ethers'; -import { LooksRareFeeSharing__factory } from './ethers'; +import { LooksRareCompounder__factory, LooksRareFeeSharing__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/maker/contracts/index.ts b/src/apps/maker/contracts/index.ts index 4ac0885a4..825cf4637 100644 --- a/src/apps/maker/contracts/index.ts +++ b/src/apps/maker/contracts/index.ts @@ -4,12 +4,14 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { MakerCdpManager__factory } from './ethers'; -import { MakerGemJoin__factory } from './ethers'; -import { MakerGovernance__factory } from './ethers'; -import { MakerIlkRegistry__factory } from './ethers'; -import { MakerProxyRegistry__factory } from './ethers'; -import { MakerVat__factory } from './ethers'; +import { + MakerCdpManager__factory, + MakerGemJoin__factory, + MakerGovernance__factory, + MakerIlkRegistry__factory, + MakerProxyRegistry__factory, + MakerVat__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/maker/ethereum/maker.vault.contract-position-fetcher.ts b/src/apps/maker/ethereum/maker.vault.contract-position-fetcher.ts index 6a9696cb6..575b485b5 100644 --- a/src/apps/maker/ethereum/maker.vault.contract-position-fetcher.ts +++ b/src/apps/maker/ethereum/maker.vault.contract-position-fetcher.ts @@ -7,7 +7,6 @@ import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { ZERO_ADDRESS } from '~app-toolkit/constants/address'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; import { drillBalance } from '~app-toolkit/helpers/drill-balance.helper'; -import { ContractType } from '~position/contract.interface'; import { ContractPositionBalance } from '~position/position-balance.interface'; import { MetaType } from '~position/position.interface'; import { isBorrowed, isSupplied } from '~position/position.utils'; diff --git a/src/apps/market-xyz/contracts/index.ts b/src/apps/market-xyz/contracts/index.ts index 60121e517..b61fee185 100644 --- a/src/apps/market-xyz/contracts/index.ts +++ b/src/apps/market-xyz/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { MarketXyzComptroller__factory } from './ethers'; -import { MarketXyzPoolDirectory__factory } from './ethers'; -import { MarketXyzPoolLens__factory } from './ethers'; -import { MarketXyzToken__factory } from './ethers'; +import { + MarketXyzComptroller__factory, + MarketXyzPoolDirectory__factory, + MarketXyzPoolLens__factory, + MarketXyzToken__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/meshswap/contracts/index.ts b/src/apps/meshswap/contracts/index.ts index 6f2eeaa3f..44ff98f83 100644 --- a/src/apps/meshswap/contracts/index.ts +++ b/src/apps/meshswap/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { MeshswapSinglePool__factory } from './ethers'; -import { MeshswapSinglePoolFactory__factory } from './ethers'; +import { MeshswapSinglePool__factory, MeshswapSinglePoolFactory__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/metavault-trade/contracts/index.ts b/src/apps/metavault-trade/contracts/index.ts index 1517c8e7f..84e831408 100644 --- a/src/apps/metavault-trade/contracts/index.ts +++ b/src/apps/metavault-trade/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { MetavaultTradeMvlpManager__factory } from './ethers'; -import { MetavaultTradeRewardReader__factory } from './ethers'; -import { MetavaultTradeRewardTracker__factory } from './ethers'; -import { MetavaultTradeVault__factory } from './ethers'; +import { + MetavaultTradeMvlpManager__factory, + MetavaultTradeRewardReader__factory, + MetavaultTradeRewardTracker__factory, + MetavaultTradeVault__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/mstable/contracts/index.ts b/src/apps/mstable/contracts/index.ts index f53601078..afdc9395e 100644 --- a/src/apps/mstable/contracts/index.ts +++ b/src/apps/mstable/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { MstableAsset__factory } from './ethers'; -import { MstableMetavault4626__factory } from './ethers'; -import { MstableStaking__factory } from './ethers'; -import { MstableStakingV2__factory } from './ethers'; -import { MstableVmta__factory } from './ethers'; +import { + MstableAsset__factory, + MstableMetavault4626__factory, + MstableStaking__factory, + MstableStakingV2__factory, + MstableVmta__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/mycelium/contracts/index.ts b/src/apps/mycelium/contracts/index.ts index 938f07cf6..f1ea24f4d 100644 --- a/src/apps/mycelium/contracts/index.ts +++ b/src/apps/mycelium/contracts/index.ts @@ -4,15 +4,17 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { MyceliumAumManager__factory } from './ethers'; -import { MyceliumMlpManager__factory } from './ethers'; -import { MyceliumPerpFarm__factory } from './ethers'; -import { MyceliumPerpToken__factory } from './ethers'; -import { MyceliumPositionReader__factory } from './ethers'; -import { MyceliumRewardReader__factory } from './ethers'; -import { MyceliumRewardTracker__factory } from './ethers'; -import { MyceliumStaking__factory } from './ethers'; -import { MyceliumVault__factory } from './ethers'; +import { + MyceliumAumManager__factory, + MyceliumMlpManager__factory, + MyceliumPerpFarm__factory, + MyceliumPerpToken__factory, + MyceliumPositionReader__factory, + MyceliumRewardReader__factory, + MyceliumRewardTracker__factory, + MyceliumStaking__factory, + MyceliumVault__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/nereus-finance/contracts/index.ts b/src/apps/nereus-finance/contracts/index.ts index 5f6cf85f3..c60231009 100644 --- a/src/apps/nereus-finance/contracts/index.ts +++ b/src/apps/nereus-finance/contracts/index.ts @@ -4,9 +4,11 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { NereusFinanceDataProvider__factory } from './ethers'; -import { NereusFinanceLendingPoolProvider__factory } from './ethers'; -import { NereusFinanceStakedTokenIncentivesController__factory } from './ethers'; +import { + NereusFinanceDataProvider__factory, + NereusFinanceLendingPoolProvider__factory, + NereusFinanceStakedTokenIncentivesController__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/ooki/contracts/index.ts b/src/apps/ooki/contracts/index.ts index 407480d8a..077328a15 100644 --- a/src/apps/ooki/contracts/index.ts +++ b/src/apps/ooki/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { OokiIToken__factory } from './ethers'; -import { OokiTokenRegistry__factory } from './ethers'; +import { OokiIToken__factory, OokiTokenRegistry__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/openleverage/contracts/index.ts b/src/apps/openleverage/contracts/index.ts index c8c0b3dae..5ac24ba9c 100644 --- a/src/apps/openleverage/contracts/index.ts +++ b/src/apps/openleverage/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { OpenleverageFactory__factory } from './ethers'; -import { OpenleverageLpool__factory } from './ethers'; +import { OpenleverageFactory__factory, OpenleverageLpool__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/opnx/opnx.module.ts b/src/apps/opnx/opnx.module.ts index 9b0422ae6..3829eac73 100644 --- a/src/apps/opnx/opnx.module.ts +++ b/src/apps/opnx/opnx.module.ts @@ -8,4 +8,4 @@ import { EthereumOpnxContractPositionFetcher } from './ethereum/opnx.veox.contra @Module({ providers: [EthereumOpnxContractPositionFetcher, OpnxContractFactory], }) -export class OpnxAppModule extends AbstractApp() { } +export class OpnxAppModule extends AbstractApp() {} diff --git a/src/apps/origin-dollar-governance/contracts/index.ts b/src/apps/origin-dollar-governance/contracts/index.ts index bedf1e93c..26b4117b1 100644 --- a/src/apps/origin-dollar-governance/contracts/index.ts +++ b/src/apps/origin-dollar-governance/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { Veogv__factory } from './ethers'; -import { Wousd__factory } from './ethers'; +import { Veogv__factory, Wousd__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/p-stake/contracts/index.ts b/src/apps/p-stake/contracts/index.ts index f824ff88b..49e31c9b0 100644 --- a/src/apps/p-stake/contracts/index.ts +++ b/src/apps/p-stake/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PStakePool__factory } from './ethers'; -import { PStakeStkToken__factory } from './ethers'; +import { PStakePool__factory, PStakeStkToken__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pendle-v2/arbitrum/pendle-v2.pool.token-fetcher.ts b/src/apps/pendle-v2/arbitrum/pendle-v2.pool.token-fetcher.ts index b1e935aec..7e808486e 100644 --- a/src/apps/pendle-v2/arbitrum/pendle-v2.pool.token-fetcher.ts +++ b/src/apps/pendle-v2/arbitrum/pendle-v2.pool.token-fetcher.ts @@ -1,4 +1,5 @@ import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; + import { PendleV2PoolTokenFetcher } from '../common/pendle-v2.pool.token-fetcher'; @PositionTemplate() diff --git a/src/apps/pendle-v2/contracts/index.ts b/src/apps/pendle-v2/contracts/index.ts index a66ffa64f..d50ec293e 100644 --- a/src/apps/pendle-v2/contracts/index.ts +++ b/src/apps/pendle-v2/contracts/index.ts @@ -4,13 +4,15 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PendleMarket__factory } from './ethers'; -import { PendleMarketFactory__factory } from './ethers'; -import { PendlePrincipalToken__factory } from './ethers'; -import { PendleVotingEscrow__factory } from './ethers'; -import { PendleYieldContractFactory__factory } from './ethers'; -import { PendleYieldToken__factory } from './ethers'; -import { StandardizedYield__factory } from './ethers'; +import { + PendleMarket__factory, + PendleMarketFactory__factory, + PendlePrincipalToken__factory, + PendleVotingEscrow__factory, + PendleYieldContractFactory__factory, + PendleYieldToken__factory, + StandardizedYield__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pendle-v2/ethereum/pendle-v2.pool.token-fetcher.ts b/src/apps/pendle-v2/ethereum/pendle-v2.pool.token-fetcher.ts index db1592b3a..7460ad1b5 100644 --- a/src/apps/pendle-v2/ethereum/pendle-v2.pool.token-fetcher.ts +++ b/src/apps/pendle-v2/ethereum/pendle-v2.pool.token-fetcher.ts @@ -1,4 +1,5 @@ import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; + import { PendleV2PoolTokenFetcher } from '../common/pendle-v2.pool.token-fetcher'; @PositionTemplate() diff --git a/src/apps/pendle/contracts/index.ts b/src/apps/pendle/contracts/index.ts index 57d21e518..fd79ef5d0 100644 --- a/src/apps/pendle/contracts/index.ts +++ b/src/apps/pendle/contracts/index.ts @@ -4,15 +4,17 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PendleData__factory } from './ethers'; -import { PendleDexFactory__factory } from './ethers'; -import { PendleDexPair__factory } from './ethers'; -import { PendleForge__factory } from './ethers'; -import { PendleMarket__factory } from './ethers'; -import { PendleOwnershipToken__factory } from './ethers'; -import { PendleStaking__factory } from './ethers'; -import { PendleStakingManager__factory } from './ethers'; -import { PendleYieldToken__factory } from './ethers'; +import { + PendleData__factory, + PendleDexFactory__factory, + PendleDexPair__factory, + PendleForge__factory, + PendleMarket__factory, + PendleOwnershipToken__factory, + PendleStaking__factory, + PendleStakingManager__factory, + PendleYieldToken__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/penguin/contracts/index.ts b/src/apps/penguin/contracts/index.ts index 644b48a6f..774c12a73 100644 --- a/src/apps/penguin/contracts/index.ts +++ b/src/apps/penguin/contracts/index.ts @@ -4,13 +4,15 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PenguinChef__factory } from './ethers'; -import { PenguinChefV2__factory } from './ethers'; -import { PenguinExtraRewarder__factory } from './ethers'; -import { PenguinIPefi__factory } from './ethers'; -import { PenguinRewarderRate__factory } from './ethers'; -import { PenguinVault__factory } from './ethers'; -import { PenguinXPefi__factory } from './ethers'; +import { + PenguinChef__factory, + PenguinChefV2__factory, + PenguinExtraRewarder__factory, + PenguinIPefi__factory, + PenguinRewarderRate__factory, + PenguinVault__factory, + PenguinXPefi__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/phuture/contracts/index.ts b/src/apps/phuture/contracts/index.ts index d2da6772a..7c642bfa2 100644 --- a/src/apps/phuture/contracts/index.ts +++ b/src/apps/phuture/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PhutureManagedIndex__factory } from './ethers'; -import { PhutureVToken__factory } from './ethers'; -import { PhutureVTokenFactory__factory } from './ethers'; +import { PhutureManagedIndex__factory, PhutureVToken__factory, PhutureVTokenFactory__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pickle/contracts/index.ts b/src/apps/pickle/contracts/index.ts index a7297f924..804045c38 100644 --- a/src/apps/pickle/contracts/index.ts +++ b/src/apps/pickle/contracts/index.ts @@ -4,18 +4,20 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PickleController__factory } from './ethers'; -import { PickleJar__factory } from './ethers'; -import { PickleJarMasterchef__factory } from './ethers'; -import { PickleJarSingleRewardStaking__factory } from './ethers'; -import { PickleJarUniv3__factory } from './ethers'; -import { PickleMiniChefV2__factory } from './ethers'; -import { PickleRegistry__factory } from './ethers'; -import { PickleRewarder__factory } from './ethers'; -import { PickleStrategyUniv3__factory } from './ethers'; -import { PickleVotingEscrow__factory } from './ethers'; -import { PickleVotingEscrowReward__factory } from './ethers'; -import { PickleVotingEscrowRewardV2__factory } from './ethers'; +import { + PickleController__factory, + PickleJar__factory, + PickleJarMasterchef__factory, + PickleJarSingleRewardStaking__factory, + PickleJarUniv3__factory, + PickleMiniChefV2__factory, + PickleRegistry__factory, + PickleRewarder__factory, + PickleStrategyUniv3__factory, + PickleVotingEscrow__factory, + PickleVotingEscrowReward__factory, + PickleVotingEscrowRewardV2__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pie-dao/contracts/index.ts b/src/apps/pie-dao/contracts/index.ts index 82f387e6e..681b08105 100644 --- a/src/apps/pie-dao/contracts/index.ts +++ b/src/apps/pie-dao/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PieDaoReferralRewards__factory } from './ethers'; -import { PieDaoRewards__factory } from './ethers'; -import { PieDaoStaking__factory } from './ethers'; -import { PieDaoVoteLockedDough__factory } from './ethers'; +import { + PieDaoReferralRewards__factory, + PieDaoRewards__factory, + PieDaoStaking__factory, + PieDaoVoteLockedDough__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pika-protocol-v3/contracts/index.ts b/src/apps/pika-protocol-v3/contracts/index.ts index ea2bcfd50..a359a81a7 100644 --- a/src/apps/pika-protocol-v3/contracts/index.ts +++ b/src/apps/pika-protocol-v3/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PikaProtocolV3Rewards__factory } from './ethers'; -import { PikaProtocolV3Vault__factory } from './ethers'; +import { PikaProtocolV3Rewards__factory, PikaProtocolV3Vault__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pirex/pirex.module.ts b/src/apps/pirex/pirex.module.ts index f1dcd69d9..9e50cc95c 100644 --- a/src/apps/pirex/pirex.module.ts +++ b/src/apps/pirex/pirex.module.ts @@ -23,4 +23,4 @@ import { EthereumPirexPxCvxTokenFetcher } from './ethereum/pirex.pxcvx.token-fet PirexContractFactory, ], }) -export class PirexAppModule extends AbstractApp() { } +export class PirexAppModule extends AbstractApp() {} diff --git a/src/apps/platypus-finance/contracts/index.ts b/src/apps/platypus-finance/contracts/index.ts index b3505a1da..418c92f8f 100644 --- a/src/apps/platypus-finance/contracts/index.ts +++ b/src/apps/platypus-finance/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PlatypusFinanceMasterPlatypusV1__factory } from './ethers'; -import { PlatypusFinanceMasterPlatypusV2__factory } from './ethers'; -import { PlatypusFinancePool__factory } from './ethers'; -import { PlatypusFinancePoolToken__factory } from './ethers'; -import { PlatypusFinanceVotingEscrow__factory } from './ethers'; +import { + PlatypusFinanceMasterPlatypusV1__factory, + PlatypusFinanceMasterPlatypusV2__factory, + PlatypusFinancePool__factory, + PlatypusFinancePoolToken__factory, + PlatypusFinanceVotingEscrow__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/polygon-staking/contracts/index.ts b/src/apps/polygon-staking/contracts/index.ts index 8aae67427..d7fa65099 100644 --- a/src/apps/polygon-staking/contracts/index.ts +++ b/src/apps/polygon-staking/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PolygonStakeManager__factory } from './ethers'; -import { PolygonValidatorShare__factory } from './ethers'; +import { PolygonStakeManager__factory, PolygonValidatorShare__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/polynomial/optimism/polynomial.smart-wallet.contract-position-fetcher.ts b/src/apps/polynomial/optimism/polynomial.smart-wallet.contract-position-fetcher.ts index 307cda855..4554b0a3f 100644 --- a/src/apps/polynomial/optimism/polynomial.smart-wallet.contract-position-fetcher.ts +++ b/src/apps/polynomial/optimism/polynomial.smart-wallet.contract-position-fetcher.ts @@ -3,6 +3,7 @@ import Axios from 'axios'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; +import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present'; import { Erc20 } from '~contract/contracts'; import { MetaType } from '~position/position.interface'; import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; @@ -12,7 +13,6 @@ import { GetTokenBalancesParams, GetTokenDefinitionsParams, } from '~position/template/contract-position.template.types'; -import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present'; import { PolynomialAccountResolver } from '../common/polynomial.account-resolver'; @@ -27,7 +27,7 @@ export class OptimismPolynomialSmartWalletContractPositionFetcher extends Contra '0x7f5c764cbc14f9669b88837ca1490cca17c31607', //USDC '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58', //USDT '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1', //DAI - '0x4200000000000000000000000000000000000042' //OP + '0x4200000000000000000000000000000000000042', //OP ]; groupLabel = 'Smart Wallet'; @@ -53,11 +53,13 @@ export class OptimismPolynomialSmartWalletContractPositionFetcher extends Contra } async getTokenDefinitions({ contract }: GetTokenDefinitionsParams) { - return [{ - address: contract.address, - metaType: MetaType.SUPPLIED, - network: this.network, - }]; + return [ + { + address: contract.address, + metaType: MetaType.SUPPLIED, + network: this.network, + }, + ]; } async getAccountAddress(address: string): Promise { @@ -69,7 +71,7 @@ export class OptimismPolynomialSmartWalletContractPositionFetcher extends Contra } async getDataProps({ contract }): Promise { - if (await contract.symbol() != 'sUSD') { + if ((await contract.symbol()) != 'sUSD') { return { liquidity: 0 }; } const { data } = await Axios.get<{ tvl: number }>('https://perps-api-experimental.polynomial.fi/snx-perps/tvl'); diff --git a/src/apps/pool-together-v3/contracts/index.ts b/src/apps/pool-together-v3/contracts/index.ts index 3e4e0aeff..5a05ac74d 100644 --- a/src/apps/pool-together-v3/contracts/index.ts +++ b/src/apps/pool-together-v3/contracts/index.ts @@ -4,17 +4,19 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PoolTogetherMerkleDistributor__factory } from './ethers'; -import { PoolTogetherV3CommunityPrizePool__factory } from './ethers'; -import { PoolTogetherV3MultiTokenListener__factory } from './ethers'; -import { PoolTogetherV3MultipleWinners__factory } from './ethers'; -import { PoolTogetherV3MultipleWinnersPrizeStrategy__factory } from './ethers'; -import { PoolTogetherV3Pod__factory } from './ethers'; -import { PoolTogetherV3PodRegistry__factory } from './ethers'; -import { PoolTogetherV3PoolWithMultipleWinnersBuilder__factory } from './ethers'; -import { PoolTogetherV3PrizePool__factory } from './ethers'; -import { PoolTogetherV3Ticket__factory } from './ethers'; -import { PoolTogetherV3TokenFaucet__factory } from './ethers'; +import { + PoolTogetherMerkleDistributor__factory, + PoolTogetherV3CommunityPrizePool__factory, + PoolTogetherV3MultiTokenListener__factory, + PoolTogetherV3MultipleWinners__factory, + PoolTogetherV3MultipleWinnersPrizeStrategy__factory, + PoolTogetherV3Pod__factory, + PoolTogetherV3PodRegistry__factory, + PoolTogetherV3PoolWithMultipleWinnersBuilder__factory, + PoolTogetherV3PrizePool__factory, + PoolTogetherV3Ticket__factory, + PoolTogetherV3TokenFaucet__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/pool-together-v4/contracts/index.ts b/src/apps/pool-together-v4/contracts/index.ts index 0ca6a4d9f..9573c296f 100644 --- a/src/apps/pool-together-v4/contracts/index.ts +++ b/src/apps/pool-together-v4/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { PoolTogetherMerkleDistributor__factory } from './ethers'; -import { PoolTogetherV3TokenFaucet__factory } from './ethers'; -import { PoolTogetherV4PrizePool__factory } from './ethers'; -import { PoolTogetherV4Ticket__factory } from './ethers'; +import { + PoolTogetherMerkleDistributor__factory, + PoolTogetherV3TokenFaucet__factory, + PoolTogetherV4PrizePool__factory, + PoolTogetherV4Ticket__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/rari-fuse/contracts/index.ts b/src/apps/rari-fuse/contracts/index.ts index be7b7ff98..ae92d0cc6 100644 --- a/src/apps/rari-fuse/contracts/index.ts +++ b/src/apps/rari-fuse/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { RariFuseComptroller__factory } from './ethers'; -import { RariFusePoolLens__factory } from './ethers'; -import { RariFusePoolsDirectory__factory } from './ethers'; -import { RariFuseToken__factory } from './ethers'; +import { + RariFuseComptroller__factory, + RariFusePoolLens__factory, + RariFusePoolsDirectory__factory, + RariFuseToken__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/rari/contracts/index.ts b/src/apps/rari/contracts/index.ts index cbeb46561..30975a59b 100644 --- a/src/apps/rari/contracts/index.ts +++ b/src/apps/rari/contracts/index.ts @@ -4,9 +4,11 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { RariFundManager__factory } from './ethers'; -import { RariGovernanceTokenDistributor__factory } from './ethers'; -import { RariUniswapTokenDistributor__factory } from './ethers'; +import { + RariFundManager__factory, + RariGovernanceTokenDistributor__factory, + RariUniswapTokenDistributor__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/rhino-fi/contracts/index.ts b/src/apps/rhino-fi/contracts/index.ts index aa5e1172e..5607d19cd 100644 --- a/src/apps/rhino-fi/contracts/index.ts +++ b/src/apps/rhino-fi/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { RhinoFiBridge__factory } from './ethers'; -import { RhinoFiStarkEx__factory } from './ethers'; +import { RhinoFiBridge__factory, RhinoFiStarkEx__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/rigoblock/common/rigoblock.pool.token-fetcher.ts b/src/apps/rigoblock/common/rigoblock.pool.token-fetcher.ts index 4a8917d1f..865cfa4fa 100644 --- a/src/apps/rigoblock/common/rigoblock.pool.token-fetcher.ts +++ b/src/apps/rigoblock/common/rigoblock.pool.token-fetcher.ts @@ -1,6 +1,6 @@ import { parseBytes32String } from '@ethersproject/strings'; -import { BigNumber } from 'ethers'; import { Inject } from '@nestjs/common'; +import { BigNumber } from 'ethers'; import { compact, flatMap } from 'lodash'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; @@ -34,7 +34,7 @@ type WhitelistedTokenDefinition = DefaultAppTokenDefinition & { type RToken = BaseToken & { hide: boolean; -} +}; export abstract class RigoblockPoolTokenFetcher extends AppTokenTemplatePositionFetcher< SmartPool, @@ -54,7 +54,7 @@ export abstract class RigoblockPoolTokenFetcher extends AppTokenTemplatePosition async getDefinitions(): Promise { const poolBuilders = POOL_BUILDERS[this.network] ?? []; // we query tracked tokens here to save redundant calls - const tokenList = await this.getTokenList() + const tokenList = await this.getTokenList(); // Get all logs for each pool builder contract const builderLogs = await Promise.all( @@ -98,7 +98,7 @@ export abstract class RigoblockPoolTokenFetcher extends AppTokenTemplatePosition // whitelisted tokens are filtered by those that are not tracked async getTokenList(): Promise { const tokenList = [...new Set(await this.getTokenWhitelist())]; - const baseTokens = await this.appToolkit.getBaseTokenPrices(this.network) as RToken[]; + const baseTokens = (await this.appToolkit.getBaseTokenPrices(this.network)) as RToken[]; const trackedTokens = tokenList.map(token => { const tokenFound = baseTokens.find(p => p.address === token.address && !p.hide); if (!tokenFound) return null; @@ -139,21 +139,22 @@ export abstract class RigoblockPoolTokenFetcher extends AppTokenTemplatePosition async getUnderlyingTokenDefinitions({ multicall, - definition + definition, }: GetDisplayPropsParams) { // this block returns only held tokens. However, it would require less RPC calls to just multicall // all tokens and display in UI only tokens with positive balances. - const tokens = definition.tokenList - if(!tokens || tokens?.length === 0) return[] - let heldTokens: WhitelistedTokenDefinition[] = [] + const tokens = definition.tokenList; + if (!tokens || tokens?.length === 0) return []; + const heldTokens: WhitelistedTokenDefinition[] = []; for (let i = 0; i !== tokens.length; i++) { const uTokenContract = this.contractFactory.erc20({ address: tokens[i].address, network: this.network }); const poolTokenBalance = await multicall.wrap(uTokenContract).balanceOf(definition.address); - if (poolTokenBalance && poolTokenBalance.gt(BigNumber.from(0))) { heldTokens[i] = tokens[i] }; + if (poolTokenBalance && poolTokenBalance.gt(BigNumber.from(0))) { + heldTokens[i] = tokens[i]; + } } - return compact(heldTokens) - .map(x => ({ address: x.address.toLowerCase(), network: this.network })) + return compact(heldTokens).map(x => ({ address: x.address.toLowerCase(), network: this.network })); } async getPricePerShare({ diff --git a/src/apps/rook/contracts/index.ts b/src/apps/rook/contracts/index.ts index 4a0c196d5..61592709f 100644 --- a/src/apps/rook/contracts/index.ts +++ b/src/apps/rook/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { RookKToken__factory } from './ethers'; -import { RookLiquidityPoolDistributor__factory } from './ethers'; -import { RookLiquidityPoolV2__factory } from './ethers'; -import { RookLiquidityPoolV3__factory } from './ethers'; +import { + RookKToken__factory, + RookLiquidityPoolDistributor__factory, + RookLiquidityPoolV2__factory, + RookLiquidityPoolV3__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/sablier/contracts/index.ts b/src/apps/sablier/contracts/index.ts index 82b1ce83d..aa1555904 100644 --- a/src/apps/sablier/contracts/index.ts +++ b/src/apps/sablier/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { SablierSalary__factory } from './ethers'; -import { SablierStream__factory } from './ethers'; -import { SablierStreamLegacy__factory } from './ethers'; +import { SablierSalary__factory, SablierStream__factory, SablierStreamLegacy__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/saddle/contracts/index.ts b/src/apps/saddle/contracts/index.ts index 716214d57..101bbdd4d 100644 --- a/src/apps/saddle/contracts/index.ts +++ b/src/apps/saddle/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { SaddleCommunalFarm__factory } from './ethers'; -import { SaddleMiniChefV2__factory } from './ethers'; -import { SaddleMiniChefV2Rewarder__factory } from './ethers'; -import { SaddleSwap__factory } from './ethers'; +import { + SaddleCommunalFarm__factory, + SaddleMiniChefV2__factory, + SaddleMiniChefV2Rewarder__factory, + SaddleSwap__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/solid-lizard/solid-lizard.module.ts b/src/apps/solid-lizard/solid-lizard.module.ts index 74ba0bf86..8c59c2f71 100644 --- a/src/apps/solid-lizard/solid-lizard.module.ts +++ b/src/apps/solid-lizard/solid-lizard.module.ts @@ -2,12 +2,12 @@ import { Module } from '@nestjs/common'; import { AbstractApp } from '~app/app.dynamic-module'; -import { SolidLizardDefinitionsResolver } from './common/solid-lizard.definitions-resolver'; -import { SolidLizardContractFactory } from './contracts'; import { ArbitrumSolidLizardBribeContractPositionFetcher } from './arbitrum/solid-lizard.bribe.contract-position-fetcher'; import { ArbitrumSolidLizardStakingContractPositionFetcher } from './arbitrum/solid-lizard.farm.contract-position-fetcher'; import { ArbitrumSolidLizardPoolsTokenFetcher } from './arbitrum/solid-lizard.pool.token-fetcher'; import { ArbitrumSolidLizardVotingEscrowContractPositionFetcher } from './arbitrum/solid-lizard.voting-escrow.contract-position-fetcher'; +import { SolidLizardDefinitionsResolver } from './common/solid-lizard.definitions-resolver'; +import { SolidLizardContractFactory } from './contracts'; @Module({ providers: [ @@ -19,4 +19,4 @@ import { ArbitrumSolidLizardVotingEscrowContractPositionFetcher } from './arbitr ArbitrumSolidLizardBribeContractPositionFetcher, ], }) -export class SolidLizardAppModule extends AbstractApp() { } +export class SolidLizardAppModule extends AbstractApp() {} diff --git a/src/apps/sonne/optimism/sonne.staking.contract-position-fetcher.ts b/src/apps/sonne/optimism/sonne.staking.contract-position-fetcher.ts index ce17ff5de..f4857f762 100644 --- a/src/apps/sonne/optimism/sonne.staking.contract-position-fetcher.ts +++ b/src/apps/sonne/optimism/sonne.staking.contract-position-fetcher.ts @@ -43,7 +43,7 @@ export class OptimismSonneStakingContractPositionFetcher extends ContractPositio rewardTokenAddresses: [ '0x1db2466d9f5e10d7090e7152b68d62703a2245f0', '0x3c8b650257cfb5f272f799f5e2b4e65093a11a05', - '0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db', + '0x9560e827af36c94d2ac33a39bce1fe78631088db', '0x4200000000000000000000000000000000000042', ], }, @@ -53,7 +53,7 @@ export class OptimismSonneStakingContractPositionFetcher extends ContractPositio rewardTokenAddresses: [ '0x7f5c764cbc14f9669b88837ca1490cca17c31607', '0x3c8b650257cfb5f272f799f5e2b4e65093a11a05', - '0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db', + '0x9560e827af36c94d2ac33a39bce1fe78631088db', '0x4200000000000000000000000000000000000042', ], }, diff --git a/src/apps/spice-finance/ethereum/spice-finance.weth.token-fetcher.ts b/src/apps/spice-finance/ethereum/spice-finance.weth.token-fetcher.ts index a99f58b1f..976e29852 100644 --- a/src/apps/spice-finance/ethereum/spice-finance.weth.token-fetcher.ts +++ b/src/apps/spice-finance/ethereum/spice-finance.weth.token-fetcher.ts @@ -1,8 +1,11 @@ import { Inject } from '@nestjs/common'; +import { BigNumberish, constants } from 'ethers'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; import { Erc721 } from '~contract/contracts'; +import { IMulticallWrapper } from '~multicall'; +import { AppTokenPosition } from '~position/position.interface'; import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; import { GetAddressesParams, @@ -15,16 +18,13 @@ import { } from '~position/template/app-token.template.types'; import { SpiceFinanceContractFactory } from '../contracts'; -import { BigNumberish, constants } from 'ethers'; -import { IMulticallWrapper } from '~multicall'; -import { AppTokenPosition } from '~position/position.interface'; @PositionTemplate() export class EthereumSpiceFinanceWethTokenFetcher extends AppTokenTemplatePositionFetcher { - groupLabel = "WETH"; + groupLabel = 'WETH'; - vaultAddress = "0x6110d61DD1133b0f845f1025d6678Cd22A11a2fe"; - underlyingTokenAddress = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"; + vaultAddress = '0x6110d61dd1133b0f845f1025d6678cd22a11a2fe'; + underlyingTokenAddress = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'; constructor( @Inject(APP_TOOLKIT) public readonly appToolkit: IAppToolkit, @@ -74,7 +74,9 @@ export class EthereumSpiceFinanceWethTokenFetcher extends AppTokenTemplatePositi return [reserve]; } - async getBalancePerToken({ address }: { + async getBalancePerToken({ + address, + }: { address: string; appToken: AppTokenPosition; multicall: IMulticallWrapper; diff --git a/src/apps/spice-finance/spice-finance.module.ts b/src/apps/spice-finance/spice-finance.module.ts index a94b1b582..0f11d3a8d 100644 --- a/src/apps/spice-finance/spice-finance.module.ts +++ b/src/apps/spice-finance/spice-finance.module.ts @@ -8,4 +8,4 @@ import { EthereumSpiceFinanceWethTokenFetcher } from './ethereum/spice-finance.w @Module({ providers: [EthereumSpiceFinanceWethTokenFetcher, SpiceFinanceContractFactory], }) -export class SpiceFinanceAppModule extends AbstractApp() { } +export class SpiceFinanceAppModule extends AbstractApp() {} diff --git a/src/apps/spool/contracts/index.ts b/src/apps/spool/contracts/index.ts index b13f62532..0c9a5573f 100644 --- a/src/apps/spool/contracts/index.ts +++ b/src/apps/spool/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { SpoolStaking__factory } from './ethers'; -import { SpoolVault__factory } from './ethers'; -import { SpoolVospool__factory } from './ethers'; +import { SpoolStaking__factory, SpoolVault__factory, SpoolVospool__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/steak-hut/contracts/index.ts b/src/apps/steak-hut/contracts/index.ts index 89fa11ee9..422ba18c3 100644 --- a/src/apps/steak-hut/contracts/index.ts +++ b/src/apps/steak-hut/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { SteakHutHjoe__factory } from './ethers'; -import { SteakHutPool__factory } from './ethers'; -import { SteakHutStaking__factory } from './ethers'; +import { SteakHutHjoe__factory, SteakHutPool__factory, SteakHutStaking__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/sturdy/contracts/index.ts b/src/apps/sturdy/contracts/index.ts index 4d7113c58..d4c2a2730 100644 --- a/src/apps/sturdy/contracts/index.ts +++ b/src/apps/sturdy/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { SturdyLendingPool__factory } from './ethers'; -import { SturdyToken__factory } from './ethers'; +import { SturdyLendingPool__factory, SturdyToken__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/tarot/contracts/index.ts b/src/apps/tarot/contracts/index.ts index 79b81fce7..328ffc856 100644 --- a/src/apps/tarot/contracts/index.ts +++ b/src/apps/tarot/contracts/index.ts @@ -4,12 +4,14 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { CompoundCToken__factory } from './ethers'; -import { CompoundComptroller__factory } from './ethers'; -import { TarotBorrowable__factory } from './ethers'; -import { TarotFactory__factory } from './ethers'; -import { TarotSupplyVault__factory } from './ethers'; -import { TarotVault__factory } from './ethers'; +import { + CompoundCToken__factory, + CompoundComptroller__factory, + TarotBorrowable__factory, + TarotFactory__factory, + TarotSupplyVault__factory, + TarotVault__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/tarot/fantom/tarot.borrow.contract-position-fetcher.ts b/src/apps/tarot/fantom/tarot.borrow.contract-position-fetcher.ts index 7b60af393..2113e3444 100644 --- a/src/apps/tarot/fantom/tarot.borrow.contract-position-fetcher.ts +++ b/src/apps/tarot/fantom/tarot.borrow.contract-position-fetcher.ts @@ -8,8 +8,12 @@ import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.prese import { DisplayProps } from '~position/display.interface'; import { MetaType } from '~position/position.interface'; import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; -import { GetDisplayPropsParams, GetTokenBalancesParams } from '~position/template/contract-position.template.types'; -import { GetDefinitionsParams, GetTokenDefinitionsParams } from '~position/template/contract-position.template.types'; +import { + GetDisplayPropsParams, + GetTokenBalancesParams, + GetDefinitionsParams, + GetTokenDefinitionsParams, +} from '~position/template/contract-position.template.types'; import { TarotBorrowable, TarotContractFactory } from '../contracts'; diff --git a/src/apps/tempus/contracts/index.ts b/src/apps/tempus/contracts/index.ts index 258ef0991..61d65ffd5 100644 --- a/src/apps/tempus/contracts/index.ts +++ b/src/apps/tempus/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { TempusAmm__factory } from './ethers'; -import { TempusPool__factory } from './ethers'; -import { TempusPyToken__factory } from './ethers'; +import { TempusAmm__factory, TempusPool__factory, TempusPyToken__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/thales/common/thales.amm.contract-position-fetcher.ts b/src/apps/thales/common/thales.amm.contract-position-fetcher.ts index 9d560b6f1..5385d85a5 100644 --- a/src/apps/thales/common/thales.amm.contract-position-fetcher.ts +++ b/src/apps/thales/common/thales.amm.contract-position-fetcher.ts @@ -2,10 +2,14 @@ import { Inject } from '@nestjs/common'; import { BigNumberish } from 'ethers'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; +import { DefaultDataProps } from '~position/display.interface'; import { MetaType } from '~position/position.interface'; import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; -import { GetTokenBalancesParams, GetTokenDefinitionsParams, GetDisplayPropsParams } from '~position/template/contract-position.template.types'; -import { DefaultDataProps } from '~position/display.interface'; +import { + GetTokenBalancesParams, + GetTokenDefinitionsParams, + GetDisplayPropsParams, +} from '~position/template/contract-position.template.types'; import { Amm, ThalesContractFactory } from '../contracts'; @@ -54,17 +58,17 @@ export abstract class ThalesAmmContractPositionFetcher extends ContractPositionT async getDataProps({ contract, multicall }): Promise { const liquidityRaw = await contract.totalDeposited(); const underlyingTokenAddress = await contract.sUSD(); - const underlyingTokenContract = this.appToolkit.globalContracts.erc20({ address: underlyingTokenAddress, network: this.network }); - const decimals = await multicall.wrap(underlyingTokenContract).decimals() + const underlyingTokenContract = this.appToolkit.globalContracts.erc20({ + address: underlyingTokenAddress, + network: this.network, + }); + const decimals = await multicall.wrap(underlyingTokenContract).decimals(); return { - liquidity: Number(liquidityRaw) / 10 ** decimals + liquidity: Number(liquidityRaw) / 10 ** decimals, }; } - async getTokenBalancesPerPosition({ - address, - contract, - }: GetTokenBalancesParams): Promise { + async getTokenBalancesPerPosition({ address, contract }: GetTokenBalancesParams): Promise { const currentRound = await contract.round(); const currentBalance = await contract.balancesPerRound(Number(currentRound), address); const pendingDeposit = await contract.balancesPerRound(Number(currentRound) + 1, address); diff --git a/src/apps/thales/common/thales.vault.contract-position-fetcher.ts b/src/apps/thales/common/thales.vault.contract-position-fetcher.ts index 920f97216..b0f31a628 100644 --- a/src/apps/thales/common/thales.vault.contract-position-fetcher.ts +++ b/src/apps/thales/common/thales.vault.contract-position-fetcher.ts @@ -59,10 +59,13 @@ export abstract class ThalesVaultContractPositionFetcher extends ContractPositio const currentRound = await contract.round(); const liquidityRaw = await contract.allocationPerRound(currentRound); const underlyingTokenAddress = await contract.sUSD(); - const underlyingTokenContract = this.appToolkit.globalContracts.erc20({ address: underlyingTokenAddress, network: this.network }); - const decimals = await multicall.wrap(underlyingTokenContract).decimals() + const underlyingTokenContract = this.appToolkit.globalContracts.erc20({ + address: underlyingTokenAddress, + network: this.network, + }); + const decimals = await multicall.wrap(underlyingTokenContract).decimals(); return { - liquidity: Number(liquidityRaw) / 10 ** decimals + liquidity: Number(liquidityRaw) / 10 ** decimals, }; } diff --git a/src/apps/thales/thales.module.ts b/src/apps/thales/thales.module.ts index 18526f5e8..096cde97f 100644 --- a/src/apps/thales/thales.module.ts +++ b/src/apps/thales/thales.module.ts @@ -2,13 +2,13 @@ import { Module } from '@nestjs/common'; import { AbstractApp } from '~app/app.dynamic-module'; -import { ArbitrumThalesEscrowContractPositionFetcher } from './arbitrum/thales.escrow.contract-position-fetcher'; import { ArbitrumThalesAmmContractPositionFetcher } from './arbitrum/thales.amm.contract-position-fetcher'; +import { ArbitrumThalesEscrowContractPositionFetcher } from './arbitrum/thales.escrow.contract-position-fetcher'; import { ArbitrumThalesStakingContractPositionFetcher } from './arbitrum/thales.staking.contract-position-fetcher'; import { ArbitrumThalesVaultContractPositionFetcher } from './arbitrum/thales.vault.contract-position-fetcher'; import { ThalesContractFactory } from './contracts'; -import { OptimismThalesEscrowContractPositionFetcher } from './optimism/thales.escrow.contract-position-fetcher'; import { OptimismThalesAmmContractPositionFetcher } from './optimism/thales.amm.contract-position-fetcher'; +import { OptimismThalesEscrowContractPositionFetcher } from './optimism/thales.escrow.contract-position-fetcher'; import { OptimismThalesPool2ContractPositionFetcher } from './optimism/thales.pool2.contract-position-fetcher'; import { OptimismThalesStakingContractPositionFetcher } from './optimism/thales.staking.contract-position-fetcher'; import { OptimismThalesVaultContractPositionFetcher } from './optimism/thales.vault.contract-position-fetcher'; @@ -27,4 +27,4 @@ import { OptimismThalesVaultContractPositionFetcher } from './optimism/thales.va ArbitrumThalesAmmContractPositionFetcher, ], }) -export class ThalesAppModule extends AbstractApp() { } +export class ThalesAppModule extends AbstractApp() {} diff --git a/src/apps/tokemak/contracts/index.ts b/src/apps/tokemak/contracts/index.ts index c74873960..7e2d0e93d 100644 --- a/src/apps/tokemak/contracts/index.ts +++ b/src/apps/tokemak/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { TokemakAccToke__factory } from './ethers'; -import { TokemakReactor__factory } from './ethers'; -import { TokemakRewards__factory } from './ethers'; -import { TokemakRewardsHash__factory } from './ethers'; -import { TokemakTokeStaking__factory } from './ethers'; +import { + TokemakAccToke__factory, + TokemakReactor__factory, + TokemakRewards__factory, + TokemakRewardsHash__factory, + TokemakTokeStaking__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/trisolaris/contracts/index.ts b/src/apps/trisolaris/contracts/index.ts index 7310579ae..8348f252e 100644 --- a/src/apps/trisolaris/contracts/index.ts +++ b/src/apps/trisolaris/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { TrisolarisFactory__factory } from './ethers'; -import { TrisolarisMasterChef__factory } from './ethers'; -import { TrisolarisPair__factory } from './ethers'; -import { TrisolarisRewarder__factory } from './ethers'; +import { + TrisolarisFactory__factory, + TrisolarisMasterChef__factory, + TrisolarisPair__factory, + TrisolarisRewarder__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/unagii/contracts/index.ts b/src/apps/unagii/contracts/index.ts index 83b9d17c0..5795edcf9 100644 --- a/src/apps/unagii/contracts/index.ts +++ b/src/apps/unagii/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { UnagiiUtoken__factory } from './ethers'; -import { UnagiiV2Vault__factory } from './ethers'; +import { UnagiiUtoken__factory, UnagiiV2Vault__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/unipilot/contracts/index.ts b/src/apps/unipilot/contracts/index.ts index c21f926c1..8c15e3120 100644 --- a/src/apps/unipilot/contracts/index.ts +++ b/src/apps/unipilot/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { UnipilotEthereumFactory__factory } from './ethers'; -import { UnipilotPolygonFactory__factory } from './ethers'; -import { UnipilotVault__factory } from './ethers'; +import { UnipilotEthereumFactory__factory, UnipilotPolygonFactory__factory, UnipilotVault__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/uniswap-v2/contracts/index.ts b/src/apps/uniswap-v2/contracts/index.ts index 07c025110..8c132c0c5 100644 --- a/src/apps/uniswap-v2/contracts/index.ts +++ b/src/apps/uniswap-v2/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { UniswapFactory__factory } from './ethers'; -import { UniswapPair__factory } from './ethers'; +import { UniswapFactory__factory, UniswapPair__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/uniswap-v3/contracts/index.ts b/src/apps/uniswap-v3/contracts/index.ts index fa5209b33..b5cc383d1 100644 --- a/src/apps/uniswap-v3/contracts/index.ts +++ b/src/apps/uniswap-v3/contracts/index.ts @@ -4,9 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { UniswapV3Factory__factory } from './ethers'; -import { UniswapV3Pool__factory } from './ethers'; -import { UniswapV3PositionManager__factory } from './ethers'; +import { UniswapV3Factory__factory, UniswapV3Pool__factory, UniswapV3PositionManager__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/unstoppable/unstoppable.module.ts b/src/apps/unstoppable/unstoppable.module.ts index d3b910016..479f383b2 100644 --- a/src/apps/unstoppable/unstoppable.module.ts +++ b/src/apps/unstoppable/unstoppable.module.ts @@ -8,4 +8,4 @@ import { UnstoppableContractFactory } from './contracts'; @Module({ providers: [ArbitrumUnstoppableGlpCompounderTokenFetcher, UnstoppableContractFactory], }) -export class UnstoppableAppModule extends AbstractApp() { } +export class UnstoppableAppModule extends AbstractApp() {} diff --git a/src/apps/vaporwave-finance/contracts/index.ts b/src/apps/vaporwave-finance/contracts/index.ts index d27357551..bb5fe6c56 100644 --- a/src/apps/vaporwave-finance/contracts/index.ts +++ b/src/apps/vaporwave-finance/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { VaporwaveLaunchpool__factory } from './ethers'; -import { VaporwaveVault__factory } from './ethers'; +import { VaporwaveLaunchpool__factory, VaporwaveVault__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/vector-finance/contracts/index.ts b/src/apps/vector-finance/contracts/index.ts index 043380657..9211baa8a 100644 --- a/src/apps/vector-finance/contracts/index.ts +++ b/src/apps/vector-finance/contracts/index.ts @@ -4,9 +4,11 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { VectorFinanceMasterChef__factory } from './ethers'; -import { VectorFinanceMasterChefPoolHelper__factory } from './ethers'; -import { VectorFinanceMasterChefRewarder__factory } from './ethers'; +import { + VectorFinanceMasterChef__factory, + VectorFinanceMasterChefPoolHelper__factory, + VectorFinanceMasterChefRewarder__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/wombat-exchange/contracts/index.ts b/src/apps/wombat-exchange/contracts/index.ts index bf96d14eb..4bb16a38b 100644 --- a/src/apps/wombat-exchange/contracts/index.ts +++ b/src/apps/wombat-exchange/contracts/index.ts @@ -4,10 +4,12 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { WombatExchangeMasterWombat__factory } from './ethers'; -import { WombatExchangePool__factory } from './ethers'; -import { WombatExchangePoolToken__factory } from './ethers'; -import { WombatExchangeVotingEscrow__factory } from './ethers'; +import { + WombatExchangeMasterWombat__factory, + WombatExchangePool__factory, + WombatExchangePoolToken__factory, + WombatExchangeVotingEscrow__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/yamato/ethereum/yamato.pledge.contract-position-fetcher.ts b/src/apps/yamato/ethereum/yamato.pledge.contract-position-fetcher.ts index e67a62ecf..9ec605f21 100644 --- a/src/apps/yamato/ethereum/yamato.pledge.contract-position-fetcher.ts +++ b/src/apps/yamato/ethereum/yamato.pledge.contract-position-fetcher.ts @@ -1,10 +1,10 @@ import { Inject } from '@nestjs/common'; -import { BigNumberish, Contract } from 'ethers'; +import { BigNumberish } from 'ethers'; + import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; +import { ZERO_ADDRESS } from '~app-toolkit/constants/address'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; import { DefaultDataProps } from '~position/display.interface'; -import { YamatoContractFactory } from '../contracts'; -import { ZERO_ADDRESS } from '~app-toolkit/constants/address'; import { MetaType } from '~position/position.interface'; import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher'; import { @@ -12,10 +12,15 @@ import { GetTokenBalancesParams, } from '~position/template/contract-position.template.types'; +import { YamatoContractFactory } from '../contracts'; import { Yamato } from '../contracts/ethers/Yamato'; @PositionTemplate() -export class EthereumYamatoPledgeContractPositionFetcher extends ContractPositionTemplatePositionFetcher { +export class EthereumYamatoPledgeContractPositionFetcher extends ContractPositionTemplatePositionFetcher< + Yamato, + DefaultDataProps, + DefaultContractPositionDefinition +> { groupLabel: 'Pledge'; constructor( @@ -30,10 +35,9 @@ export class EthereumYamatoPledgeContractPositionFetcher extends ContractPositio } async getDefinitions(): Promise { - return [{ address: '0x02Fe72b2E9fF717EbF3049333B184E9Cd984f257' }]; + return [{ address: '0x02fe72b2e9ff717ebf3049333b184e9cd984f257' }]; } - async getTokenDefinitions() { return [ { diff --git a/src/apps/yield-protocol/contracts/index.ts b/src/apps/yield-protocol/contracts/index.ts index 5470cac6a..895893d65 100644 --- a/src/apps/yield-protocol/contracts/index.ts +++ b/src/apps/yield-protocol/contracts/index.ts @@ -4,11 +4,13 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { YieldProtocolCauldron__factory } from './ethers'; -import { YieldProtocolLadle__factory } from './ethers'; -import { YieldProtocolLendToken__factory } from './ethers'; -import { YieldProtocolPool__factory } from './ethers'; -import { YieldProtocolPoolToken__factory } from './ethers'; +import { + YieldProtocolCauldron__factory, + YieldProtocolLadle__factory, + YieldProtocolLendToken__factory, + YieldProtocolPool__factory, + YieldProtocolPoolToken__factory, +} from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/yield-yak/contracts/index.ts b/src/apps/yield-yak/contracts/index.ts index 3258dcf6e..54bd77930 100644 --- a/src/apps/yield-yak/contracts/index.ts +++ b/src/apps/yield-yak/contracts/index.ts @@ -4,8 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; import { ContractFactory } from '~contract/contracts'; import { Network } from '~types/network.interface'; -import { YieldYakChef__factory } from './ethers'; -import { YieldYakVault__factory } from './ethers'; +import { YieldYakChef__factory, YieldYakVault__factory } from './ethers'; // eslint-disable-next-line type ContractOpts = { address: string; network: Network }; diff --git a/src/apps/zharta/ethereum/zharta.lending-pool-core.contract-position-fetcher.ts b/src/apps/zharta/ethereum/zharta.lending-pool-core.contract-position-fetcher.ts index d6f5a9c80..68010797a 100644 --- a/src/apps/zharta/ethereum/zharta.lending-pool-core.contract-position-fetcher.ts +++ b/src/apps/zharta/ethereum/zharta.lending-pool-core.contract-position-fetcher.ts @@ -22,7 +22,7 @@ interface ZhartaLendingPoolCoreContractPositionDefinition extends DefaultContrac @PositionTemplate() export class EthereumZhartaLendingPoolCoreContractPositionFetcher extends ContractPositionTemplatePositionFetcher { groupLabel = 'Deposits'; - contracts = ['0xE3c959Bc97b92973d5367DBF4cE1b7b9660Ee271']; + contracts = ['0xe3c959bc97b92973d5367dbf4ce1b7b9660ee271']; constructor( @Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit, @@ -57,9 +57,7 @@ export class EthereumZhartaLendingPoolCoreContractPositionFetcher extends Contra private async getRegularTokenDefinitions({ contract, }: GetTokenDefinitionsParams) { - const [depositAddress] = await Promise.all([ - contract.erc20TokenContract() - ]); + const [depositAddress] = await Promise.all([contract.erc20TokenContract()]); return [ { @@ -71,7 +69,7 @@ export class EthereumZhartaLendingPoolCoreContractPositionFetcher extends Contra metaType: MetaType.CLAIMABLE, address: depositAddress, network: this.network, - } + }, ]; } @@ -84,11 +82,11 @@ export class EthereumZhartaLendingPoolCoreContractPositionFetcher extends Contra address, contractPosition, contract, - multicall + multicall, }: GetTokenBalancesParams) { const [lenderFundsRaw, withdrawableAmountRaw] = await Promise.all([ contract.funds(address), - contract.computeWithdrawableAmount(address) + contract.computeWithdrawableAmount(address), ]); return [lenderFundsRaw.currentAmountDeposited, withdrawableAmountRaw.sub(lenderFundsRaw.currentAmountDeposited)];