Skip to content

Commit

Permalink
Fixed imports issues
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek committed Mar 27, 2024
1 parent dd29ed5 commit 51f9af9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion features/refinance/MakerRefinanceContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type PositionId } from '@summerfi/sdk-common/dist/common'
import { type PositionId } from '@summerfi/sdk-common'

Check failure on line 1 in features/refinance/MakerRefinanceContext.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import type { GeneralManageVaultState } from 'features/generalManageVault/generalManageVault.types'
import type { PropsWithChildren } from 'react'
import React from 'react'
Expand Down
5 changes: 2 additions & 3 deletions features/refinance/RefinanceContext.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { AddressValue, ChainInfo, PositionId } from '@summerfi/sdk-common/dist/common'
import { TokenAmount } from '@summerfi/sdk-common/dist/common'
import { getChainInfoByChainId } from '@summerfi/sdk-common/dist/common/implementation/ChainFamilies'
import type { AddressValue, ChainInfo, PositionId } from '@summerfi/sdk-common'

Check failure on line 1 in features/refinance/RefinanceContext.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import { getChainInfoByChainId, TokenAmount } from '@summerfi/sdk-common'

Check failure on line 2 in features/refinance/RefinanceContext.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import type { PropsWithChildren } from 'react'
import React from 'react'

Expand Down
2 changes: 1 addition & 1 deletion features/refinance/mapTokenToSdkToken.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address, AddressType,type ChainInfo, Token } from '@summerfi/sdk-common/dist/common'
import { Address, AddressType,type ChainInfo, Token } from '@summerfi/sdk-common'

Check failure on line 1 in features/refinance/mapTokenToSdkToken.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import { getNetworkContracts } from 'blockchain/contracts'
import { getTokenMetaData } from 'features/exchange/exchange'

Expand Down
2 changes: 1 addition & 1 deletion features/refinance/sdkMappings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ProtocolName } from '@summerfi/sdk-common/dist/protocols/enums/ProtocolName'
import { ProtocolName } from '@summerfi/sdk-common'

Check failure on line 1 in features/refinance/sdkMappings.ts

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import { LendingProtocol } from 'lendingProtocols'

const ProtocolNameByLendingProtocol: Record<LendingProtocol, ProtocolName> = {
Expand Down
21 changes: 11 additions & 10 deletions features/refinance/useSdkSimulation.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import { type Chain, makeSDK, PositionUtils, type User } from '@summerfi/sdk-client'

Check failure on line 1 in features/refinance/useSdkSimulation.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-client' or its corresponding type declarations.
import type {
AddressValue,
IRefinanceParameters,
Position,
Simulation,
SimulationType,
} from '@summerfi/sdk-common'

Check failure on line 8 in features/refinance/useSdkSimulation.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import {
Address,
AddressType,
type AddressValue,
CurrencySymbol,
getChainInfoByChainId,
Percentage,
type Position,
Price,
RiskRatio,
RiskRatioType,
Wallet,
} from '@summerfi/sdk-common/dist/common'
import { getChainInfoByChainId } from '@summerfi/sdk-common/dist/common/implementation/ChainFamilies'
import type { IRefinanceParameters } from '@summerfi/sdk-common/dist/orders'
import type { SimulationType } from '@summerfi/sdk-common/dist/simulation/Enums'
import type { Simulation } from '@summerfi/sdk-common/dist/simulation/Simulation'
} from '@summerfi/sdk-common'

Check failure on line 19 in features/refinance/useSdkSimulation.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Cannot find module '@summerfi/sdk-common' or its corresponding type declarations.
import { useEffect, useState } from 'react'

import { type RefinanceContext } from './RefinanceContext'
Expand Down Expand Up @@ -99,9 +101,8 @@ export function useSdkSimulation(context: RefinanceContext, address: AddressValu
}

const fetchData = async () => {
const _simulation = await sdk.simulator.refinance.simulateRefinancePosition(
refinanceParameters,
)
const _simulation =
await sdk.simulator.refinance.simulateRefinancePosition(refinanceParameters)
setSimulation(_simulation)
}
void fetchData().catch((err) => {
Expand Down

0 comments on commit 51f9af9

Please sign in to comment.