Skip to content
Open
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
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package3.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package4.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/ts_commonjs_default_export.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/ts_commonjs_default_export1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/ts_commonjs_default_export2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/zenlink-interface.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/analytics/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const AMM_ENABLED_NETWORKS = [
ParachainId.MOONRIVER,
ParachainId.MOONBEAM,
ParachainId.BIFROST_KUSAMA,
ParachainId.DOLPHIN,
]

export const SUPPORTED_CHAIN_IDS = Array.from(
Expand Down
1 change: 1 addition & 0 deletions apps/pool/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const AMM_ENABLED_NETWORKS = [
ParachainId.MOONRIVER,
ParachainId.MOONBEAM,
ParachainId.BIFROST_KUSAMA,
ParachainId.DOLPHIN,
]

export const SUPPORTED_CHAIN_IDS = Array.from(
Expand Down
1 change: 1 addition & 0 deletions apps/referrals/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const AMM_ENABLED_NETWORKS = [
ParachainId.MOONRIVER,
ParachainId.MOONBEAM,
ParachainId.BIFROST_KUSAMA,
ParachainId.DOLPHIN,
]

export const REFERRALS_ENABLED_NETWORKS = [
Expand Down
1 change: 1 addition & 0 deletions apps/swap/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const AMM_ENABLED_NETWORKS = [
ParachainId.MOONRIVER,
ParachainId.MOONBEAM,
ParachainId.BIFROST_KUSAMA,
ParachainId.DOLPHIN,
]

export const AGGREGATOR_ENABLED_NETWORKS = [
Expand Down
2 changes: 1 addition & 1 deletion apps/swap/lib/hooks/AggregatorTrade/useAggregatorTrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function useAggregatorTradeQuery(
return tradeValidator.parse(res)
},
select,
refetchInterval: 12000,
refetchInterval: 120000,
enabled: Boolean(enabled && chainId && fromToken && toToken && amount && gasPrice && fromToken && toToken),
},
)
Expand Down
5 changes: 4 additions & 1 deletion packages/chain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ export enum ParachainId {
MOONRIVER = 2023,
MOONBEAM = 2004,
BIFROST_KUSAMA = 2001,
DOLPHIN = 2084
}

export enum ChainKey {
ASTAR = 'Astar',
MOONBEAM = 'Moonbeam',
MOONRIVER = 'Moonriver',
BIFROST_KUSAMA = 'Bifrost Kusama',
DOLPHIN = 'Dolphin'
}

export interface Chain {
Expand All @@ -84,12 +86,13 @@ export interface Chain {
network?: Network
}

export const CHAIN_NAMES = ['Astar', 'Moonbeam', 'Moonriver', 'Bifrost Kusama']
export const CHAIN_NAMES = ['Astar', 'Moonbeam', 'Moonriver', 'Bifrost Kusama', 'Dolphin']
export const PARACHAIN_ID_MAP: { [chainName: string]: number } = {
'Astar': 2006,
'Moonriver': 2023,
'Moonbeam': 2004,
'Bifrost Kusama': 2001,
'Dolphin': 2084
}
const CHAINS = [...json, ...parachains]
.filter(chain => CHAIN_NAMES.includes(chain.name))
Expand Down
24 changes: 24 additions & 0 deletions packages/chain/parachains.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,29 @@
"standard": "none"
}
]
},
{
"name": "Dolphin",
"chain": "Dolphin",
"rpc": [
"ws://127.0.0.1:9944"
],
"faucets": [],
"nativeCurrency": {
"name": "Dolphin",
"symbol": "DOL",
"decimals": 18
},
"infoURL": "https://manta.network/",
"shortName": "dolphin",
"chainId": 2084,
"networkId": 208,
"explorers": [
{
"name": "subscan",
"url": "https://bifrost-kusama.subscan.io",
"standard": "none"
}
]
}
]
2 changes: 1 addition & 1 deletion packages/compat/components/Profile/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ParachainId } from '@zenlink-interface/chain'
import type { FC } from 'react'
import { Profile as WagmiProfile } from '@zenlink-interface/wagmi'
import { Profile as BifrostProfile } from '@zenlink-interface/parachains-bifrost'
import { Profile as BifrostProfile } from '@zenlink-interface/parachains-dolphin'
import { useSettings } from '@zenlink-interface/shared'
import { isEvmNetwork, isSubstrateNetwork } from '../../config'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Token, Type } from '@zenlink-interface/currency'
import type { Fraction } from '@zenlink-interface/math'
import type { FC, RefObject } from 'react'
import { TokenListFilterByQuery as WagmiTokenListFilterByQuery } from '@zenlink-interface/wagmi'
import { TokenListFilterByQuery as BifrostTokenListFilterByQuery } from '@zenlink-interface/parachains-bifrost'
import { TokenListFilterByQuery as BifrostTokenListFilterByQuery } from '@zenlink-interface/parachains-dolphin'
import { isEvmNetwork } from '../../config'
import type { BalanceMap } from '../../hooks/useBalance/types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ParachainId } from '@zenlink-interface/chain'
import type { Token } from '@zenlink-interface/currency'
import type { FC, ReactNode } from 'react'
import { TokenListImportChecker as WagmiTokenListImportChecker } from '@zenlink-interface/wagmi'
import { TokenListImportChecker as BifrostTokenListImportChecker } from '@zenlink-interface/parachains-bifrost'
import { TokenListImportChecker as BifrostTokenListImportChecker } from '@zenlink-interface/parachains-dolphin'
import { isEvmNetwork } from '../../config'

interface TokenListImportCheckerProps {
Expand Down
2 changes: 2 additions & 0 deletions packages/compat/config/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const AMM_ENABLED_NETWORKS = [
ParachainId.ASTAR,
ParachainId.MOONRIVER,
ParachainId.MOONBEAM,
ParachainId.DOLPHIN,
]

export const EVM_NETWORKS = [
Expand All @@ -14,6 +15,7 @@ export const EVM_NETWORKS = [

export const SUBSTRATE_NETWORKS = [
ParachainId.BIFROST_KUSAMA,
ParachainId.DOLPHIN,
]

export const SUPPORTED_CHAIN_IDS = Array.from(new Set([...AMM_ENABLED_NETWORKS]))
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/hooks/useAddLiquidityStandardReview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Amount, Type } from '@zenlink-interface/currency'
import type { Dispatch, SetStateAction } from 'react'
import { useMemo } from 'react'
import { useAddLiquidityStandardReview as useWagmiAddLiquidityStandardReview } from '@zenlink-interface/wagmi'
import { useAddLiquidityStandardReview as useBifrostAddLiquidityStandardReview } from '@zenlink-interface/parachains-bifrost'
import { useAddLiquidityStandardReview as useBifrostAddLiquidityStandardReview } from '@zenlink-interface/parachains-dolphin'
import { isEvmNetwork } from '../config'
import type { PairState } from './usePairs'

Expand Down
10 changes: 8 additions & 2 deletions packages/compat/hooks/useBalance/useBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import type { ParachainId } from '@zenlink-interface/chain'
import type { Address } from 'wagmi'
import { AddressZero } from '@ethersproject/constants'
import { useBalances as useWagmiBalances } from '@zenlink-interface/wagmi'
import { useBalances as useBifrostBalances } from '@zenlink-interface/parachains-bifrost'
// import { useBalances as useBifrostBalances } from '@zenlink-interface/parachains-dolphin'
import { useBalances as useDolphinBalances } from '@zenlink-interface/parachains-dolphin'
import type { Amount, Type } from '@zenlink-interface/currency'
import { useMemo } from 'react'
import { isEvmNetwork } from '../../config'
Expand Down Expand Up @@ -37,7 +38,12 @@ export const useBalances: UseBalances = ({
watch,
})

const bifrostBalances = useBifrostBalances({
// const bifrostBalances = useBifrostBalances({
// chainId,
// account,
// currencies,
// })
const bifrostBalances = useDolphinBalances({
chainId,
account,
currencies,
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/hooks/usePairTotalSupply.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Pair } from '@zenlink-interface/amm'
import type { ParachainId } from '@zenlink-interface/chain'
import { usePairTotalSupply as useWagmiPairTotalSupply } from '@zenlink-interface/wagmi'
import { usePairTotalSupply as useBifrostPairTotalSupply } from '@zenlink-interface/parachains-bifrost'
import { usePairTotalSupply as useBifrostPairTotalSupply } from '@zenlink-interface/parachains-dolphin'
import { useMemo } from 'react'
import { isEvmNetwork, isSubstrateNetwork } from '../config'

Expand Down
Loading