Commit ddf7161 1 parent 1659d2e commit ddf7161 Copy full SHA for ddf7161
File tree 7 files changed +9
-11
lines changed
7 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import { BridgeConfirmationModal } from '../../components/bridge/BridgeConfirmat
35
35
import { FeeDetail , FeeDetailProps } from '../../components/bridge/FeeDetail' ;
36
36
import { AssetConfig , AssetList } from '../../components/Lists/AssetList' ;
37
37
import { ChainList } from '../../components/Lists/ChainList' ;
38
- import { ROUTER_NATIVE_TOKEN_ADDRESS } from '../../../../../libs/tangle-shared-ui/src/constants/bridge' ;
39
38
import useBridgeStore from '../../context/bridge/useBridgeStore' ;
40
39
import useBalances from '../../data/balances/useBalances' ;
41
40
import { BridgeTokenWithBalance } from '@webb-tools/tangle-shared-ui/types' ;
@@ -52,6 +51,7 @@ import { WalletFillIcon } from '@webb-tools/icons';
52
51
import { useBalance } from 'wagmi' ;
53
52
import convertDecimalToBn from '@webb-tools/tangle-shared-ui/utils/convertDecimalToBn' ;
54
53
import { useBridgeEvmBalances } from '../../data/bridge/useBridgeEvmBalances' ;
54
+ import { ROUTER_NATIVE_TOKEN_ADDRESS } from '@webb-tools/tangle-shared-ui/constants/bridge' ;
55
55
56
56
interface BridgeContainerProps {
57
57
className ?: string ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { Decimal } from 'decimal.js';
7
7
import { create } from 'zustand' ;
8
8
9
9
import { BridgeToken } from '@webb-tools/tangle-shared-ui/types' ;
10
- import { BRIDGE_CHAINS } from '../../../../../libs/ tangle-shared-ui/src /constants/bridge' ;
10
+ import { BRIDGE_CHAINS } from '@webb-tools/ tangle-shared-ui/constants/bridge' ;
11
11
12
12
const sortChainOptions = ( chains : ChainConfig [ ] ) => {
13
13
return chains . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import {
10
10
BridgeToken ,
11
11
BridgeTokenWithBalance ,
12
12
} from '@webb-tools/tangle-shared-ui/types' ;
13
- import { BRIDGE_TOKENS } from '../../../../../libs/tangle-shared-ui/src/constants/bridge' ;
14
13
import ensureError from '@webb-tools/tangle-shared-ui/utils/ensureError' ;
15
14
import { EvmAddress } from '@webb-tools/webb-ui-components/types/address' ;
16
15
import useEvmAddress20 from '../../hooks/useEvmAddress' ;
17
16
import { isSolanaAddress } from '@webb-tools/webb-ui-components' ;
18
17
import assert from 'assert' ;
18
+ import { BRIDGE_TOKENS } from '@webb-tools/tangle-shared-ui/constants/bridge' ;
19
19
20
20
export const fetchEvmTokenBalance = async (
21
21
accountAddress : string ,
Original file line number Diff line number Diff line change 1
1
import { useQuery } from '@tanstack/react-query' ;
2
2
import axios from 'axios' ;
3
3
4
+ import { EvmAddress } from '@webb-tools/webb-ui-components/types/address' ;
4
5
import {
5
6
ROUTER_PARTNER_ID ,
6
7
ROUTER_QUOTE_URL ,
7
- } from '../../../../../libs/tangle-shared-ui/src/constants/bridge' ;
8
- import { EvmAddress } from '@webb-tools/webb-ui-components/types/address' ;
8
+ } from '@webb-tools/tangle-shared-ui/constants/bridge' ;
9
9
10
10
export type RouterQuoteParams = {
11
11
fromTokenAddress : string ;
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { JsonRpcSigner } from '@ethersproject/providers';
3
3
import { useMutation } from '@tanstack/react-query' ;
4
4
import axios from 'axios' ;
5
5
6
- import { ROUTER_TRANSACTION_URL } from '../../../../../libs/tangle-shared-ui/src/constants/bridge' ;
7
6
import useEthersSigner from './useEthersSigner' ;
8
7
import { isEvmAddress } from '@webb-tools/webb-ui-components' ;
8
+ import { ROUTER_TRANSACTION_URL } from '@webb-tools/tangle-shared-ui/constants/bridge' ;
9
9
10
10
interface RouterTransactionResponse {
11
11
allowanceTo : string ;
Original file line number Diff line number Diff line change 1
1
import { GithubRegistry } from '@hyperlane-xyz/registry' ;
2
2
import { ChainMap , ChainMetadata } from '@hyperlane-xyz/sdk' ;
3
- import { z } from 'zod' ;
4
-
5
3
import {
6
4
HYPERLANE_CHAINS ,
7
5
HYPERLANE_REGISTRY_URL ,
8
- } from '../../../../../../libs/tangle-shared-ui/src/constants/bridge' ;
6
+ } from '@webb-tools/tangle-shared-ui/constants/bridge' ;
7
+ import { z } from 'zod' ;
9
8
10
9
export default async function assembleChainMetadata ( ) {
11
10
const result = z . record ( z . custom < ChainMetadata > ( ) ) . safeParse ( {
Original file line number Diff line number Diff line change 1
1
import { warpRouteConfigs } from '@hyperlane-xyz/registry' ;
2
2
import { WarpCoreConfig , WarpCoreConfigSchema } from '@hyperlane-xyz/sdk' ;
3
3
import { objFilter , objMerge } from '@hyperlane-xyz/utils' ;
4
-
5
4
import {
6
5
HYPERLANE_WARP_ROUTE_CONFIGS ,
7
6
HYPERLANE_WARP_ROUTE_WHITELIST ,
8
- } from '../../../../../../libs/ tangle-shared-ui/src /constants/bridge' ;
7
+ } from '@webb-tools/ tangle-shared-ui/constants/bridge' ;
9
8
10
9
export default function assembleWarpCoreConfig ( ) : WarpCoreConfig {
11
10
const result = WarpCoreConfigSchema . safeParse ( HYPERLANE_WARP_ROUTE_CONFIGS ) ;
You can’t perform that action at this time.
0 commit comments