Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move api (partly) to packages #6

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ runs:

- name: Generate api typings
shell: bash
run: pnpm graphql:gen
run: pnpm --filter api graphql:gen
4 changes: 2 additions & 2 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
singleQuote: true,
arrowParens: "avoid",
arrowParens: 'avoid',
semi: false,
proseWrap: "always",
proseWrap: 'always',
printWidth: 100,
}
3 changes: 0 additions & 3 deletions apps/frontend-v3/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,5 @@ next-env.d.ts
# Sentry Config File
.sentryclirc

# GrapgQL Codegen
/lib/shared/services/api/generated/

# Sentry Config File
.env.sentry-build-plugin
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/(app)/debug/modal/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { SuccessOverlay } from '@/lib/shared/components/modals/SuccessOverlay'
import { TransactionModalHeader } from '@/lib/shared/components/modals/TransactionModalHeader'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { useDisclosure } from '@chakra-ui/hooks'
import {
Button,
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/(app)/debug/token-input/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useTokens } from '@/lib/modules/tokens/TokensProvider'
import { TokenInput } from '@/lib/modules/tokens/TokenInput/TokenInput'
import { Button, Card, Heading, Text, VStack, useDisclosure } from '@chakra-ui/react'
import { GqlChain, GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain, GqlToken } from '@repo/api/graphql'
import { useState } from 'react'
import { TokenSelectModal } from '@/lib/modules/tokens/TokenSelectModal/TokenSelectModal'
import { TokenBalancesProvider } from '@/lib/modules/tokens/TokenBalancesProvider'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/(app)/debug/token-select/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { TokenSelectModal } from '@/lib/modules/tokens/TokenSelectModal/TokenSelectModal'
import { TokenBalancesProvider } from '@/lib/modules/tokens/TokenBalancesProvider'
import { useTokens } from '@/lib/modules/tokens/TokensProvider'
import { GqlChain, GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain, GqlToken } from '@repo/api/graphql'
import { Button, useDisclosure, Text } from '@chakra-ui/react'
import { useRef, useState } from 'react'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ChainSlug, getPoolTypeLabel, slugToChainMap } from '@/lib/modules/pool/
import { PropsWithChildren, Suspense } from 'react'
import { PoolDetailSkeleton } from '@/lib/modules/pool/PoolDetail/PoolDetailSkeleton'
import { getApolloServerClient } from '@/lib/shared/services/api/apollo-server.client'
import { GetPoolDocument } from '@/lib/shared/services/api/generated/graphql'
import { GetPoolDocument } from '@repo/api/graphql'
import { Metadata } from 'next'
import { PoolProvider } from '@/lib/modules/pool/PoolProvider'
import { getProjectConfig } from '@/lib/config/getProjectConfig'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/(app)/pools/cow/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PoolList } from '@/lib/modules/pool/PoolList/PoolList'
import FadeInOnView from '@/lib/shared/components/containers/FadeInOnView'
import { GqlPoolType } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolType } from '@repo/api/graphql'
import { Box, Skeleton } from '@chakra-ui/react'
import { Suspense } from 'react'
import { Metadata } from 'next'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/(app)/pools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Suspense } from 'react'

// import { getApolloServerClient } from '@/lib/shared/services/api/apollo-server.client'
// import { getProjectConfig } from '@/lib/config/getProjectConfig'
// import { GetFeaturedPoolsDocument } from '@/lib/shared/services/api/generated/graphql'
// import { GetFeaturedPoolsDocument } from '@repo/api/graphql'
// import { FeaturedPools } from '@/lib/modules/featured-pools/FeaturedPools'
import { CowGalxeQuestPromoBanner } from '@/lib/shared/components/promos/CowGalxeQuestPromoBanner'

Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/(app)/swap/[[...slug]]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TokenBalancesProvider } from '@/lib/modules/tokens/TokenBalancesProvide
import { TokenInputsValidationProvider } from '@/lib/modules/tokens/TokenInputsValidationProvider'
import { useTokens } from '@/lib/modules/tokens/TokensProvider'
import { TransactionStateProvider } from '@/lib/modules/transactions/transaction-steps/TransactionStateProvider'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { PropsWithChildren } from 'react'
import { PriceImpactProvider } from '@/lib/modules/price-impact/PriceImpactProvider'
import { DefaultPageContainer } from '@/lib/shared/components/containers/DefaultPageContainer'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/app/api/rpc/[chain]/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'

type Params = {
params: {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { keyBy } from 'lodash'
import { Config, NetworkConfig, SupportedChainId } from './config.types'
import networks from './networks'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/config.types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Address } from 'viem'
import { GqlChain } from '../shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { chains } from '@/lib/modules/web3/ChainConfig'
import { PoolIssue } from '../modules/pool/alerts/pool-issues/PoolIssue.type'
import { SupportedWrapHandler } from '../modules/swap/swap.types'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/arbitrum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { PoolIssue } from '@/lib/modules/pool/alerts/pool-issues/PoolIssue.type'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/avalanche.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { PoolIssue } from '@/lib/modules/pool/alerts/pool-issues/PoolIssue.type'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'

Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/fantom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { zeroAddress } from 'viem'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/fraxtal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { CSP_ISSUE_POOL_IDS } from '@/lib/shared/data/csp-issue'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/gnosis.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { CSP_ISSUE_POOL_IDS } from '@/lib/shared/data/csp-issue'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import arbitrum from './arbitrum'
import avalanche from './avalanche'
import gnosis from './gnosis'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/mainnet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PoolIssue } from '@/lib/modules/pool/alerts/pool-issues/PoolIssue.type'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { NetworkConfig } from '../config.types'
import { CSP_ISSUE_POOL_IDS } from '../../shared/data/csp-issue'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/mode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { CSP_ISSUE_POOL_IDS } from '@/lib/shared/data/csp-issue'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/optimism.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { CSP_ISSUE_POOL_IDS } from '@/lib/shared/data/csp-issue'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/polygon.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { PoolIssue } from '@/lib/modules/pool/alerts/pool-issues/PoolIssue.type'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/sepolia.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'

Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/networks/zkevm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { NetworkConfig } from '../config.types'
import { convertHexToLowerCase } from '@/lib/shared/utils/objects'
import { PoolIssue } from '@/lib/modules/pool/alerts/pool-issues/PoolIssue.type'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/projects/balancer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ProjectConfig } from '@/lib/config/config.types'
import { PartnerVariant } from '@/lib/modules/pool/pool.types'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { isProd } from '@/lib/config/app.config'

export const ProjectConfigBalancer: ProjectConfig = {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/config/projects/beets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ProjectConfig } from '@/lib/config/config.types'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'

export const beetsSupportedNetworks = [GqlChain.Fantom, GqlChain.Optimism]
// as const satisifies GqlChain[]
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/modules/chains/ChainSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { getChainShortName } from '@/lib/config/app.config'
import { getProjectConfig } from '@/lib/config/getProjectConfig'
import { NetworkIcon } from '@/lib/shared/components/icons/NetworkIcon'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { getSelectStyles } from '@/lib/shared/services/chakra/custom/chakra-react-select'
import { Box, HStack, Text } from '@chakra-ui/react'
import { Select, OptionBase, GroupBase, SingleValue, chakraComponents } from 'chakra-react-select'
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/modules/chains/chain.utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getChainId } from '@/lib/config/app.config'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'

export function isMainnet(chain: GqlChain | number): boolean {
return chain === GqlChain.Mainnet || chain === getChainId(GqlChain.Mainnet)
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-v3/lib/modules/chains/chains.constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'

export const UNSUPPORTED_CHAINS = [GqlChain.Fantom, GqlChain.Optimism]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { FeaturedPool, Pool } from '../pool/PoolProvider'
import { useRouter } from 'next/navigation'
import { VStack, Text, Box, HStack, Image } from '@chakra-ui/react'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { BoxProps, Card, Box, Text, HStack } from '@chakra-ui/react'
import { FeaturePoolCard } from './FeaturePoolCard'
import { GetFeaturedPoolsQuery } from '@/lib/shared/services/api/generated/graphql'
import { GetFeaturedPoolsQuery } from '@repo/api/graphql'
import { PoolCarousel } from './PoolCarousel'
import {
FeaturedPool1SVG,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { GetFeaturedPoolsQuery } from '@/lib/shared/services/api/generated/graphql'
import { GetFeaturedPoolsQuery } from '@repo/api/graphql'
import { useState } from 'react'
import { Box, BoxProps, Card, Center, Text } from '@chakra-ui/react'
import { FeaturePoolCard } from './FeaturePoolCard'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as echarts from 'echarts/core'
import { useEffect, useMemo, useRef, useState } from 'react'
import { format } from 'date-fns'
import { GqlChain, GqlPoolEventType, GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain, GqlPoolEventType, GqlToken } from '@repo/api/graphql'
import EChartsReactCore from 'echarts-for-react/lib/core'
import { ColorMode, useTheme as useChakraTheme } from '@chakra-ui/react'
import { useTheme as useNextTheme } from 'next-themes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlPoolType, GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolType, GqlToken } from '@repo/api/graphql'
import { BaseVariant, PoolVariant } from '../../pool.types'

export type PoolActivityTokens = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PropsWithChildren, createContext, useCallback, useMemo, useState } from
import { useParams } from 'next/navigation'
import { PoolVariant } from '../../pool.types'
import { usePool } from '../../PoolProvider'
import { GqlPoolEventType } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolEventType } from '@repo/api/graphql'
import { usePoolEvents } from '../../usePoolEvents'
import { slugToChainMap, ChainSlug } from '../../pool.utils'
import { useTokens } from '@/lib/modules/tokens/TokensProvider'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as echarts from 'echarts/core'
import { useRef } from 'react'
import { useParams } from 'next/navigation'
import { secondsToMilliseconds, differenceInDays, format } from 'date-fns'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import EChartsReactCore from 'echarts-for-react/lib/core'
import { ChainSlug, slugToChainMap } from '../../pool.utils'
import { ColorMode, useTheme as useChakraTheme } from '@chakra-ui/react'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { PoolActivityEl, PoolActivityTokens } from '../PoolActivity/poolActivity
import { TokenIcon } from '@/lib/modules/tokens/TokenIcon'
import { fNum } from '@/lib/shared/utils/numbers'
import React from 'react'
import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { usePool } from '../../PoolProvider'

interface Props extends GridProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Card, Divider, HStack, Heading, Skeleton, Stack, Text, VStack } from '@
import React from 'react'
import { usePool } from '../../PoolProvider'
import { Address } from 'viem'
import { GqlChain, GqlPoolTokenDetail } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain, GqlPoolTokenDetail } from '@repo/api/graphql'
import { useCurrency } from '@/lib/shared/hooks/useCurrency'
import { fNum } from '@/lib/shared/utils/numbers'
import { NoisyCard } from '@/lib/shared/components/containers/NoisyCard'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react'
import { usePool } from '../../PoolProvider'
import { GqlPoolTokenDetail } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolTokenDetail } from '@repo/api/graphql'
import { fNum } from '@/lib/shared/utils/numbers'

type CompositionRow = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { usePool } from '../../PoolProvider'
import { ArrowUpRight } from 'react-feather'
import { useMemo } from 'react'
import { GqlPriceRateProviderData, GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlPriceRateProviderData, GqlToken } from '@repo/api/graphql'
import { Address, zeroAddress } from 'viem'
import { useTokens } from '@/lib/modules/tokens/TokensProvider'
import { TokenIcon } from '@/lib/modules/tokens/TokenIcon'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
VStack,
} from '@chakra-ui/react'
import { usePool } from '../../../PoolProvider'
import { GqlPoolElement } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolElement } from '@repo/api/graphql'
import { getPoolRisks, risksTitle } from './usePoolRisks'

interface RisksListProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GqlChain, GqlPoolElement } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain, GqlPoolElement } from '@repo/api/graphql'
import { isMetaStable, isStable, isWeighted, isGyro } from '../../../pool.helpers'
import { zeroAddress } from 'viem'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TokenIcon } from '@/lib/modules/tokens/TokenIcon'
import { GqlPriceRateProviderData, GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlPriceRateProviderData, GqlToken } from '@repo/api/graphql'
import {
Popover,
PopoverTrigger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import { isVebalPool, shouldBlockAddLiquidity, calcUserShareOfPool, isFx } from

import { getCanStake, migrateStakeTooltipLabel } from '../actions/stake.helpers'
import { InfoOutlineIcon } from '@chakra-ui/icons'
import { GqlPoolStakingType } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolStakingType } from '@repo/api/graphql'
import { ArrowUpRight } from 'react-feather'
import { getChainId } from '@/lib/config/app.config'
import { VeBalLink } from '../../vebal/VebalRedirectModal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
GqlPoolType,
GqlPoolSnapshotDataRange,
GqlChain,
} from '@/lib/shared/services/api/generated/graphql'
} from '@repo/api/graphql'
import { useQuery } from '@apollo/experimental-nextjs-app-support/ssr'
import { useCallback, useMemo, useState } from 'react'
import { useParams } from 'next/navigation'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { memo, useMemo } from 'react'
import { HStack, Heading, Skeleton, Text, VStack } from '@chakra-ui/react'
import { GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlToken } from '@repo/api/graphql'
import { TokenIconStack } from '../../../../tokens/TokenIconStack'
import { useCurrency } from '@/lib/shared/hooks/useCurrency'
import { SECONDS_IN_DAY } from '@/test/utils/numbers'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { memo, useMemo } from 'react'
import { Button, HStack, Heading, Skeleton, Text, Tooltip, VStack } from '@chakra-ui/react'
import { TokenIconStack } from '../../../../tokens/TokenIconStack'
import { GqlToken } from '@/lib/shared/services/api/generated/graphql'
import { GqlToken } from '@repo/api/graphql'
import { useCurrency } from '@/lib/shared/hooks/useCurrency'
import { SECONDS_IN_DAY } from '@/test/utils/numbers'
import { sumBy, isEmpty } from 'lodash'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { usePool } from '../PoolProvider'
import { useEffect, useLayoutEffect, useMemo, useState } from 'react'
import { useCurrency } from '@/lib/shared/hooks/useCurrency'
import { GetPoolEventsQuery, GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GetPoolEventsQuery, GqlChain } from '@repo/api/graphql'
import { TokenIcon } from '@/lib/modules/tokens/TokenIcon'
import { formatDistanceToNow, secondsToMilliseconds } from 'date-fns'
import { useBlockExplorer } from '@/lib/shared/hooks/useBlockExplorer'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { GqlChain } from '@/lib/shared/services/api/generated/graphql'
import { GqlPoolTokenDetail } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain } from '@repo/api/graphql'
import { GqlPoolTokenDetail } from '@repo/api/graphql'
import { NoisyCard } from '@/lib/shared/components/containers/NoisyCard'
import { useThemeColorMode } from '@/lib/shared/services/chakra/useThemeColorMode'
import { Box, VStack, useTheme } from '@chakra-ui/react'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { GqlChain, GqlPoolTokenDetail } from '@/lib/shared/services/api/generated/graphql'
import { GqlChain, GqlPoolTokenDetail } from '@repo/api/graphql'
import { NoisyCard } from '@/lib/shared/components/containers/NoisyCard'
import { useThemeColorMode } from '@/lib/shared/services/chakra/useThemeColorMode'
import { Box, VStack, useTheme } from '@chakra-ui/react'
Expand Down
Loading
Loading