Skip to content

Commit

Permalink
advance
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Sep 15, 2023
1 parent 8864a51 commit a0714c1
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/assets/providers/tbtc/solana/WormholeGateway.v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConnectWalletButton.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/KeyAndBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LowBalanceWarning.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Migration/EvmQuickMigrate.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Migration/EvmWorkflow.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Migration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/NFTOriginVerifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Recovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/TokenOriginVerifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/TokenSelectors/EvmTokenPicker.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/TransactionProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transfer/RegisterNowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/EthereumProviderContext.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/TerraWalletContext.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAllowance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCheckIfWormholeWrapped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEvmMetadata.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFetchForeignAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFetchTargetAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useGetSourceParsedTokenAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useHandleTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useIsWalletReady.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useOriginalAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTransactionFees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTransferControl.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/store/attestSlice.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/store/nftSlice.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/store/transferSlice.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit a0714c1

Please sign in to comment.