Skip to content

Commit

Permalink
Update wormhole sdk to 0.4.0-rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Nov 20, 2024
1 parent a3e3b5c commit 324e005
Show file tree
Hide file tree
Showing 40 changed files with 56 additions and 4,969 deletions.
54 changes: 19 additions & 35 deletions bridge_ui/package-lock.json

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

2 changes: 1 addition & 1 deletion bridge_ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@alephium/token-list": "0.0.12",
"@alephium/web3": "^1.8.5",
"@alephium/web3-react": "^1.8.5",
"@alephium/wormhole-sdk": "^0.3.5",
"@alephium/wormhole-sdk": "^0.4.0-rc.0",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.60",
Expand Down
30 changes: 0 additions & 30 deletions bridge_ui/src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import {
CHAIN_ID_BSC,
CHAIN_ID_ETH,
CHAIN_ID_SOLANA,
} from "@alephium/wormhole-sdk";
import {
AppBar,
Container,
Expand All @@ -29,17 +24,13 @@ import {
import Attest from "./components/Attest";
import Footer from "./components/Footer";
import HeaderText from "./components/HeaderText";
import Migration from "./components/Migration";
import EvmQuickMigrate from "./components/Migration/EvmQuickMigrate";
import SolanaQuickMigrate from "./components/Migration/SolanaQuickMigrate";
import Recovery from "./components/Recovery";
import Stats from "./components/Stats";
import CustodyAddresses from "./components/Stats/CustodyAddresses";
import TokenOriginVerifier from "./components/TokenOriginVerifier";
import Transactions from "./components/Transactions";
import Transfer from "./components/Transfer";
import UnwrapNative from "./components/UnwrapNative";
import WithdrawTokensTerra from "./components/WithdrawTokensTerra";
import { useBetaContext } from "./contexts/BetaContext";
import Alephium from "./icons/alephium.svg";
import { CLUSTER } from "./utils/consts";
Expand Down Expand Up @@ -280,30 +271,9 @@ function App() {
<Route exact path="/register">
<Attest />
</Route>
<Route exact path="/migrate/Solana/:legacyAsset/:fromTokenAccount">
<Migration chainId={CHAIN_ID_SOLANA} />
</Route>
<Route exact path="/migrate/Ethereum/:legacyAsset/">
<Migration chainId={CHAIN_ID_ETH} />
</Route>
<Route exact path="/migrate/BinanceSmartChain/:legacyAsset/">
<Migration chainId={CHAIN_ID_BSC} />
</Route>
<Route exact path="/migrate/Ethereum/">
<EvmQuickMigrate chainId={CHAIN_ID_ETH} />
</Route>
<Route exact path="/migrate/BinanceSmartChain/">
<EvmQuickMigrate chainId={CHAIN_ID_BSC} />
</Route>
<Route exact path="/migrate/Solana/">
<SolanaQuickMigrate />
</Route>
<Route exact path="/stats">
<Stats />
</Route>
<Route exact path="/withdraw-tokens-terra">
<WithdrawTokensTerra />
</Route>
<Route exact path="/unwrap-native">
<UnwrapNative />
</Route>
Expand Down
5 changes: 0 additions & 5 deletions bridge_ui/src/components/Attest/Create.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CHAIN_ID_TERRA } from "@alephium/wormhole-sdk";
import { CircularProgress, makeStyles } from "@material-ui/core";
import { useTranslation } from "react-i18next";
import { useSelector } from "react-redux";
Expand All @@ -12,7 +11,6 @@ import {
} from "../../store/selectors";
import ButtonWithLoader from "../ButtonWithLoader";
import KeyAndBalance from "../KeyAndBalance";
import TerraFeeDenomPicker from "../TerraFeeDenomPicker";
import WaitingForWalletMessage from "./WaitingForWalletMessage";

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -47,9 +45,6 @@ function Create() {
return (
<>
<KeyAndBalance chainId={targetChain} />
{targetChain === CHAIN_ID_TERRA && (
<TerraFeeDenomPicker disabled={disabled} />
)}
{foreignAssetInfo.isFetching ? (
<>
<div className={classes.spacer} />
Expand Down
6 changes: 1 addition & 5 deletions bridge_ui/src/components/Attest/Send.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CHAIN_ID_ALEPHIUM, CHAIN_ID_SOLANA, CHAIN_ID_TERRA, waitAlphTxConfirmed } from "@alephium/wormhole-sdk";
import { CHAIN_ID_ALEPHIUM, CHAIN_ID_SOLANA, waitAlphTxConfirmed } from "@alephium/wormhole-sdk";
import { Alert } from "@material-ui/lab";
import { Link, makeStyles } from "@material-ui/core";
import { useCallback, useMemo, useState } from "react";
Expand All @@ -18,7 +18,6 @@ import KeyAndBalance from "../KeyAndBalance";
import TransactionProgress from "../TransactionProgress";
import WaitingForWalletMessage from "./WaitingForWalletMessage";
import { ALEPHIUM_ATTEST_TOKEN_CONSISTENCY_LEVEL, SOLANA_TOKEN_METADATA_PROGRAM_URL } from "../../utils/consts";
import TerraFeeDenomPicker from "../TerraFeeDenomPicker";
import { createLocalTokenPool } from "../../utils/alephium";
import { useWallet } from "@alephium/web3-react";
import { useSnackbar } from "notistack";
Expand Down Expand Up @@ -125,9 +124,6 @@ function Send() {
return (
<>
<KeyAndBalance chainId={sourceChain} />
{sourceChain === CHAIN_ID_TERRA && (
<TerraFeeDenomPicker disabled={disabled} />
)}
<ButtonWithLoader
disabled={!isReady || disabled}
onClick={handleClick}
Expand Down
Loading

0 comments on commit 324e005

Please sign in to comment.