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

Commit

Permalink
fix(studio): Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Nov 18, 2023
1 parent 8c10d4a commit 0a3accd
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 17 deletions.
10 changes: 5 additions & 5 deletions src/position/template/app-token.template.position-fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Inject } from '@nestjs/common';
import { BigNumberish, Contract } from 'ethers/lib/ethers';
import _, { isEqual, isUndefined, uniqWith, compact, intersection, isArray, partition, sortBy, sum } from 'lodash';
import { BigNumberish } from 'ethers/lib/ethers';
import _, { isEqual, isUndefined, uniqWith, compact, isArray, sortBy, sum } from 'lodash';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface';
import { DEAD_ADDRESS, ZERO_ADDRESS } from '~app-toolkit/constants/address';
Expand All @@ -11,11 +12,12 @@ import {
} from '~app-toolkit/helpers/presentation/display-item.present';
import { getImagesFromToken } from '~app-toolkit/helpers/presentation/image.present';
import { ViemMulticallDataLoader } from '~multicall';
import { isViemMulticallUnderlyingError } from '~multicall/errors';
import { ContractType } from '~position/contract.interface';
import { DisplayProps, StatsItem } from '~position/display.interface';
import { AppTokenPositionBalance, RawAppTokenBalance } from '~position/position-balance.interface';
import { PositionFetcher } from '~position/position-fetcher.interface';
import { AppTokenPosition, isNonFungibleToken, NonFungibleToken, Token } from '~position/position.interface';
import { AppTokenPosition, isNonFungibleToken, Token } from '~position/position.interface';
import { Network } from '~types/network.interface';

import {
Expand All @@ -32,8 +34,6 @@ import {
UnderlyingTokenDefinition,
} from './app-token.template.types';
import { PositionFetcherTemplateCommons } from './position-fetcher.template.types';
import { Abi, GetContractReturnType, PublicClient } from 'viem';
import { isViemMulticallUnderlyingError } from '~multicall/errors';

export abstract class AppTokenTemplatePositionFetcher<
T extends Abi,
Expand Down
2 changes: 1 addition & 1 deletion src/position/template/app-token.template.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Abi, GetContractReturnType, PublicClient } from 'viem';
import { ViemMulticallDataLoader } from '~multicall';

import { ViemMulticallDataLoader } from '~multicall';
import { AppTokenPosition } from '~position/position.interface';
import { TokenDependencySelector } from '~position/selectors/token-dependency-selector.interface';
import { Network } from '~types/network.interface';
Expand Down
2 changes: 1 addition & 1 deletion src/position/template/contract-position.template.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Abi, GetContractReturnType, PublicClient } from 'viem';
import { ViemMulticallDataLoader } from '~multicall';

import { ViemMulticallDataLoader } from '~multicall';
import { DefaultDataProps } from '~position/display.interface';
import { ContractPosition, MetaType } from '~position/position.interface';
import { TokenDependencySelector } from '~position/selectors/token-dependency-selector.interface';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject } from '@nestjs/common';
import { Contract } from 'ethers';
import { Abi } from 'viem';

import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface';
import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present';
Expand All @@ -9,7 +9,6 @@ import { isClaimable } from '~position/position.utils';
import { ContractPositionTemplatePositionFetcher } from '~position/template/contract-position.template.position-fetcher';

import { GetDisplayPropsParams, GetTokenDefinitionsParams } from './contract-position.template.types';
import { Abi } from 'viem';

export type MerkleContractPositionDefinition = {
address: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject } from '@nestjs/common';
import { BigNumberish, Contract } from 'ethers';
import { BigNumberish } from 'ethers';
import { isArray, sum } from 'lodash';
import { Abi } from 'viem';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject } from '@nestjs/common';
import { BigNumberish, Contract } from 'ethers';
import { BigNumberish } from 'ethers';
import { isArray, sum } from 'lodash';
import { Abi } from 'viem';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BigNumberish, Contract } from 'ethers';
import { BigNumberish } from 'ethers';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present';
import { MetaType } from '~position/position.interface';
Expand All @@ -10,7 +11,6 @@ import {
GetTokenBalancesParams,
GetTokenDefinitionsParams,
} from './contract-position.template.types';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

export abstract class VestingEscrowTemplateContractPositionFetcher<
T extends Abi,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BigNumberish, Contract } from 'ethers';
import { BigNumberish } from 'ethers';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present';
import { MetaType } from '~position/position.interface';
Expand All @@ -10,7 +11,6 @@ import {
GetTokenBalancesParams,
GetTokenDefinitionsParams,
} from './contract-position.template.types';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

export abstract class VotingEscrowWithRewardsTemplateContractPositionFetcher<
T extends Abi,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BigNumberish, Contract } from 'ethers';
import { BigNumberish } from 'ethers';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present';
import { MetaType } from '~position/position.interface';
Expand All @@ -10,7 +11,6 @@ import {
GetTokenBalancesParams,
GetTokenDefinitionsParams,
} from './contract-position.template.types';
import { Abi, GetContractReturnType, PublicClient } from 'viem';

export abstract class VotingEscrowTemplateContractPositionFetcher<
T extends Abi,
Expand Down

0 comments on commit 0a3accd

Please sign in to comment.