Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(apps): Linting (#2913)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin authored Aug 25, 2023
1 parent f3adcdd commit de9f0eb
Show file tree
Hide file tree
Showing 113 changed files with 420 additions and 398 deletions.
3 changes: 1 addition & 2 deletions src/apps/aave-amm/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
12 changes: 7 additions & 5 deletions src/apps/aave-safety-module/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
10 changes: 6 additions & 4 deletions src/apps/aave-v2/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
4 changes: 1 addition & 3 deletions src/apps/aelin/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
8 changes: 5 additions & 3 deletions src/apps/agave/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/airswap/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
16 changes: 9 additions & 7 deletions src/apps/angle/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/arrakis/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/atlendis-v1/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
4 changes: 1 addition & 3 deletions src/apps/aurigami/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
14 changes: 8 additions & 6 deletions src/apps/b-protocol/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
12 changes: 7 additions & 5 deletions src/apps/badger/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
12 changes: 7 additions & 5 deletions src/apps/bancor-v3/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/barnbridge-smart-alpha/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
10 changes: 6 additions & 4 deletions src/apps/bastion-protocol/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/beefy/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
4 changes: 1 addition & 3 deletions src/apps/biswap/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
5 changes: 1 addition & 4 deletions src/apps/bluebit/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/botto/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
10 changes: 6 additions & 4 deletions src/apps/chicken-bond/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
4 changes: 1 addition & 3 deletions src/apps/compound/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/concave/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions src/apps/concentrator/concentrator.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<AladdinConcentratorCompounder> {
Expand Down
3 changes: 1 addition & 2 deletions src/apps/cozy-finance/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/dfx/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
3 changes: 1 addition & 2 deletions src/apps/dhedge-v2/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
4 changes: 1 addition & 3 deletions src/apps/dystopia/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
Loading

0 comments on commit de9f0eb

Please sign in to comment.