Skip to content

Commit

Permalink
Merge pull request #150 from alephium/fix-wormhole-sdk-in-react-native
Browse files Browse the repository at this point in the history
Fix the wormhole sdk in react native env
  • Loading branch information
Lbqds authored Dec 26, 2024
2 parents 152f8b5 + cdad356 commit 3d1ebba
Show file tree
Hide file tree
Showing 132 changed files with 204 additions and 25,496 deletions.
146 changes: 65 additions & 81 deletions bridge_ui/package-lock.json

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

6 changes: 3 additions & 3 deletions bridge_ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@alephium/token-list": "0.0.12",
"@alephium/web3": "^1.11.0",
"@alephium/web3-react": "^1.11.0",
"@alephium/wormhole-sdk": "^0.3.7",
"@alephium/web3": "^1.11.1",
"@alephium/web3-react": "^1.11.1",
"@alephium/wormhole-sdk": "^0.4.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
Loading

0 comments on commit 3d1ebba

Please sign in to comment.