diff --git a/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts b/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts index d60ce03a7..aae70451d 100644 --- a/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts +++ b/src/assets/providers/tbtc/solana/WormholeGateway.v2.ts @@ -19,7 +19,7 @@ import { SignedVaa, parseTokenTransferVaa, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { WormholeGatewayIdl } from "./WormholeGatewayIdl"; import * as coreBridge from "@certusone/wormhole-sdk/lib/esm/solana/wormhole"; import * as tokenBridge from "@certusone/wormhole-sdk/lib/esm/solana/tokenBridge"; diff --git a/src/components/ConnectWalletButton.tsx b/src/components/ConnectWalletButton.tsx index 3ac907e9f..675ab24b5 100644 --- a/src/components/ConnectWalletButton.tsx +++ b/src/components/ConnectWalletButton.tsx @@ -1,4 +1,4 @@ -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { useCallback, useEffect, useState } from "react"; import { Wallet } from "@xlabs-libs/wallet-aggregator-core"; import { diff --git a/src/components/KeyAndBalance.tsx b/src/components/KeyAndBalance.tsx index c5ae36059..1b4e9e889 100644 --- a/src/components/KeyAndBalance.tsx +++ b/src/components/KeyAndBalance.tsx @@ -9,7 +9,7 @@ import { isTerraChain, CHAIN_ID_SUI, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import ConnectWalletButton from "./ConnectWalletButton"; function isChainAllowed(chainId: ChainId) { diff --git a/src/components/LowBalanceWarning.tsx b/src/components/LowBalanceWarning.tsx index c30eb67ef..947e151b6 100644 --- a/src/components/LowBalanceWarning.tsx +++ b/src/components/LowBalanceWarning.tsx @@ -1,5 +1,5 @@ import { isTerraChain } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { makeStyles, Typography } from "@material-ui/core"; import { Alert } from "@material-ui/lab"; import { useSelector } from "react-redux"; diff --git a/src/components/Migration/EvmQuickMigrate.tsx b/src/components/Migration/EvmQuickMigrate.tsx index e6aa63632..240c34137 100644 --- a/src/components/Migration/EvmQuickMigrate.tsx +++ b/src/components/Migration/EvmQuickMigrate.tsx @@ -1,5 +1,5 @@ import { ethers_contracts } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { Signer } from "@ethersproject/abstract-signer"; import { getAddress } from "@ethersproject/address"; import { BigNumber } from "@ethersproject/bignumber"; diff --git a/src/components/Migration/EvmWorkflow.tsx b/src/components/Migration/EvmWorkflow.tsx index 942f3c42a..a737954f8 100644 --- a/src/components/Migration/EvmWorkflow.tsx +++ b/src/components/Migration/EvmWorkflow.tsx @@ -1,4 +1,4 @@ -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { CircularProgress, makeStyles, Typography } from "@material-ui/core"; import { Alert } from "@material-ui/lab"; import { parseUnits } from "ethers/lib/utils"; diff --git a/src/components/Migration/index.tsx b/src/components/Migration/index.tsx index 4d60251e8..40a290d35 100644 --- a/src/components/Migration/index.tsx +++ b/src/components/Migration/index.tsx @@ -3,7 +3,7 @@ import { CHAIN_ID_CELO, CHAIN_ID_ETH, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { getAddress } from "@ethersproject/address"; import { Container, makeStyles, Paper, Typography } from "@material-ui/core"; import { withRouter } from "react-router"; diff --git a/src/components/NFTOriginVerifier.tsx b/src/components/NFTOriginVerifier.tsx index 19192bd87..3cb997024 100644 --- a/src/components/NFTOriginVerifier.tsx +++ b/src/components/NFTOriginVerifier.tsx @@ -10,7 +10,7 @@ import { isEVMChain, CHAIN_ID_APTOS, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { getOriginalAssetEth, getOriginalAssetSol, diff --git a/src/components/Recovery.tsx b/src/components/Recovery.tsx index 491663a8b..e368cc76e 100644 --- a/src/components/Recovery.tsx +++ b/src/components/Recovery.tsx @@ -36,7 +36,7 @@ import { CHAIN_ID_SUI, getForeignAssetSui, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { repairVaa } from "@certusone/wormhole-sdk/lib/esm/utils/repairVaa"; import { Accordion, diff --git a/src/components/TokenOriginVerifier.tsx b/src/components/TokenOriginVerifier.tsx index 09700c2a9..d473019ad 100644 --- a/src/components/TokenOriginVerifier.tsx +++ b/src/components/TokenOriginVerifier.tsx @@ -6,7 +6,7 @@ import { isEVMChain, nativeToHexString, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { Card, CircularProgress, diff --git a/src/components/TokenSelectors/EvmTokenPicker.tsx b/src/components/TokenSelectors/EvmTokenPicker.tsx index 9d5374d20..4137ea46d 100644 --- a/src/components/TokenSelectors/EvmTokenPicker.tsx +++ b/src/components/TokenSelectors/EvmTokenPicker.tsx @@ -1,5 +1,5 @@ import { CHAIN_ID_ETH, ethers_contracts } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { WormholeAbi__factory } from "@certusone/wormhole-sdk/lib/esm/ethers-contracts/abi"; import { getAddress as getEthAddress } from "@ethersproject/address"; import React, { useCallback } from "react"; diff --git a/src/components/TransactionProgress.tsx b/src/components/TransactionProgress.tsx index a708cfad3..c2f79acf4 100644 --- a/src/components/TransactionProgress.tsx +++ b/src/components/TransactionProgress.tsx @@ -15,7 +15,7 @@ import { isEVMChain, CHAIN_ID_BASE, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { LinearProgress, makeStyles, Typography } from "@material-ui/core"; import { Connection } from "@solana/web3.js"; import { useEffect, useState } from "react"; diff --git a/src/components/Transfer/RegisterNowButton.tsx b/src/components/Transfer/RegisterNowButton.tsx index e95e0e2c4..90b835334 100644 --- a/src/components/Transfer/RegisterNowButton.tsx +++ b/src/components/Transfer/RegisterNowButton.tsx @@ -24,7 +24,7 @@ import { hexToNativeAssetString, CHAIN_ID_SUI, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; export function RegisterNowButtonCore({ originChain, diff --git a/src/contexts/EthereumProviderContext.tsx b/src/contexts/EthereumProviderContext.tsx index d23022b1b..d745417cd 100644 --- a/src/contexts/EthereumProviderContext.tsx +++ b/src/contexts/EthereumProviderContext.tsx @@ -1,5 +1,5 @@ import { isEVMChain } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { EVMWallet, InjectedWallet, diff --git a/src/contexts/TerraWalletContext.tsx b/src/contexts/TerraWalletContext.tsx index 0c717a0b4..6b3de60d0 100644 --- a/src/contexts/TerraWalletContext.tsx +++ b/src/contexts/TerraWalletContext.tsx @@ -1,6 +1,6 @@ import { ConnectType } from "@terra-money/wallet-provider"; import { isTerraChain } from "@xlabs-libs/wallet-aggregator-core"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { useWallet } from "@xlabs-libs/wallet-aggregator-react"; import { getWallets, TerraWallet } from "@xlabs-libs/wallet-aggregator-terra"; import { useEffect, useMemo, useState } from "react"; diff --git a/src/hooks/useAllowance.ts b/src/hooks/useAllowance.ts index 88246bb81..3ff3d52e0 100644 --- a/src/hooks/useAllowance.ts +++ b/src/hooks/useAllowance.ts @@ -4,7 +4,7 @@ import { getAllowanceEth, isEVMChain, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { BigNumber } from "ethers"; import { useEffect, useMemo, useRef, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; diff --git a/src/hooks/useCheckIfWormholeWrapped.ts b/src/hooks/useCheckIfWormholeWrapped.ts index c0d4d3647..2e3563b90 100644 --- a/src/hooks/useCheckIfWormholeWrapped.ts +++ b/src/hooks/useCheckIfWormholeWrapped.ts @@ -19,7 +19,7 @@ import { getOriginalAssetSui, CHAIN_ID_ETH, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { getOriginalAssetEth as getOriginalAssetEthNFT, getOriginalAssetSol as getOriginalAssetSolNFT, diff --git a/src/hooks/useEvmMetadata.ts b/src/hooks/useEvmMetadata.ts index 0aaf02602..e55657383 100644 --- a/src/hooks/useEvmMetadata.ts +++ b/src/hooks/useEvmMetadata.ts @@ -1,5 +1,5 @@ import { isEVMChain } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { ethers } from "ethers"; import { useEffect, useMemo, useState } from "react"; import { diff --git a/src/hooks/useFetchForeignAsset.ts b/src/hooks/useFetchForeignAsset.ts index aa6b08c67..a48cc2580 100644 --- a/src/hooks/useFetchForeignAsset.ts +++ b/src/hooks/useFetchForeignAsset.ts @@ -21,7 +21,7 @@ import { CHAIN_ID_SUI, getForeignAssetSui, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { Connection } from "@solana/web3.js"; import { LCDClient } from "@terra-money/terra.js"; import { ethers } from "ethers"; diff --git a/src/hooks/useFetchTargetAsset.ts b/src/hooks/useFetchTargetAsset.ts index 3dca1aa4d..d80507085 100644 --- a/src/hooks/useFetchTargetAsset.ts +++ b/src/hooks/useFetchTargetAsset.ts @@ -24,7 +24,7 @@ import { CHAIN_ID_SUI, getForeignAssetSui, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { getForeignAssetEth as getForeignAssetEthNFT, getForeignAssetSol as getForeignAssetSolNFT, diff --git a/src/hooks/useGetSourceParsedTokenAccounts.ts b/src/hooks/useGetSourceParsedTokenAccounts.ts index 71738faca..530df6639 100644 --- a/src/hooks/useGetSourceParsedTokenAccounts.ts +++ b/src/hooks/useGetSourceParsedTokenAccounts.ts @@ -27,7 +27,7 @@ import { CHAIN_ID_ARBITRUM, CHAIN_ID_BASE, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { Dispatch } from "@reduxjs/toolkit"; import { TOKEN_PROGRAM_ID } from "@solana/spl-token"; import { diff --git a/src/hooks/useHandleTransfer.tsx b/src/hooks/useHandleTransfer.tsx index b13376c9b..8e49ae7e1 100644 --- a/src/hooks/useHandleTransfer.tsx +++ b/src/hooks/useHandleTransfer.tsx @@ -37,7 +37,7 @@ import { CHAIN_ID_POLYGON, tryNativeToUint8Array, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { transferTokens } from "@certusone/wormhole-sdk/lib/esm/aptos/api/tokenBridge"; import { CHAIN_ID_NEAR } from "@certusone/wormhole-sdk/lib/esm"; import { Alert } from "@material-ui/lab"; diff --git a/src/hooks/useIsWalletReady.ts b/src/hooks/useIsWalletReady.ts index 0251fc37b..04a3d7ef7 100644 --- a/src/hooks/useIsWalletReady.ts +++ b/src/hooks/useIsWalletReady.ts @@ -9,7 +9,7 @@ import { isTerraChain, CHAIN_ID_SUI, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { useMemo } from "react"; import { useAlgorandWallet } from "../contexts/AlgorandWalletContext"; import { useEthereumProvider } from "../contexts/EthereumProviderContext"; diff --git a/src/hooks/useOriginalAsset.ts b/src/hooks/useOriginalAsset.ts index 41dac41a7..19d2ea7f3 100644 --- a/src/hooks/useOriginalAsset.ts +++ b/src/hooks/useOriginalAsset.ts @@ -24,7 +24,7 @@ import { getOriginalAssetSui, getForeignAssetSui, } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { getOriginalAssetEth as getOriginalAssetEthNFT, getOriginalAssetSol as getOriginalAssetSolNFT, diff --git a/src/hooks/useTransactionFees.tsx b/src/hooks/useTransactionFees.tsx index be245f489..2e459c684 100644 --- a/src/hooks/useTransactionFees.tsx +++ b/src/hooks/useTransactionFees.tsx @@ -12,7 +12,7 @@ import { LocalGasStation } from "@material-ui/icons"; import { Connection, PublicKey } from "@solana/web3.js"; import { useCallback, useEffect, useMemo, useState } from "react"; import { useEthereumProvider } from "../contexts/EthereumProviderContext"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { getDefaultNativeCurrencySymbol, SOLANA_HOST, diff --git a/src/hooks/useTransferControl.ts b/src/hooks/useTransferControl.ts index a0c0ebf40..d7d92cac3 100644 --- a/src/hooks/useTransferControl.ts +++ b/src/hooks/useTransferControl.ts @@ -1,4 +1,4 @@ -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { Rule, useWarningRulesEngine } from "./useWarningRulesEngine"; import { useEffect, useState } from "react"; import useOriginalAsset from "./useOriginalAsset"; diff --git a/src/store/attestSlice.ts b/src/store/attestSlice.ts index 5b7525527..409317277 100644 --- a/src/store/attestSlice.ts +++ b/src/store/attestSlice.ts @@ -1,5 +1,5 @@ import { CHAIN_ID_ETH, CHAIN_ID_SOLANA } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { Transaction } from "./transferSlice"; diff --git a/src/store/nftSlice.ts b/src/store/nftSlice.ts index 2688e1d68..24636ccc2 100644 --- a/src/store/nftSlice.ts +++ b/src/store/nftSlice.ts @@ -1,5 +1,5 @@ import { CHAIN_ID_ETH, CHAIN_ID_SOLANA } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { StateSafeWormholeWrappedInfo } from "../hooks/useCheckIfWormholeWrapped"; import { ForeignAssetInfo } from "../hooks/useFetchForeignAsset"; diff --git a/src/store/transferSlice.ts b/src/store/transferSlice.ts index fbdb691a1..fa058ef72 100644 --- a/src/store/transferSlice.ts +++ b/src/store/transferSlice.ts @@ -1,5 +1,5 @@ import { CHAIN_ID_ETH, CHAIN_ID_SOLANA } from "@certusone/wormhole-sdk"; -import { ChainId } from "@xlabs-libs/wallet-aggregator-core/dist/types/constants"; +import { ChainId } from "@xlabs-libs/wallet-aggregator-core"; import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { StateSafeWormholeWrappedInfo } from "../hooks/useCheckIfWormholeWrapped"; import { ForeignAssetInfo } from "../hooks/useFetchForeignAsset";