Bladeren bron

bridge_ui: remove oasis from beta

Evan Gray 3 jaren geleden
bovenliggende
commit
26b848d375

+ 2 - 1
bridge_ui/src/components/Home/index.tsx

@@ -151,7 +151,8 @@ function Home() {
           </Typography>
           <Typography variant="h6" className={classes.description}>
             The Wormhole Token Bridge allows you to seamlessly transfer
-            tokenized assets across Solana, Ethereum, BSC, Terra, and Polygon.
+            tokenized assets across Solana, Ethereum, BSC, Terra, Polygon,
+            Avalanche, and Oasis.
           </Typography>
           <div className={classes.spacer} />
           <Typography variant="subtitle1" className={classes.description}>

+ 3 - 1
bridge_ui/src/components/ShowTx.tsx

@@ -58,7 +58,9 @@ export default function ShowTx({
           tx?.id
         }`
       : chainId === CHAIN_ID_OASIS
-      ? undefined
+      ? `https://explorer.${
+          CLUSTER === "testnet" ? "testnet." : ""
+        }oasis.updev.si/tx/${tx?.id}`
       : chainId === CHAIN_ID_SOLANA
       ? `https://explorer.solana.com/tx/${tx?.id}${
           CLUSTER === "testnet"

+ 3 - 1
bridge_ui/src/components/SmartAddress.tsx

@@ -117,7 +117,9 @@ export default function SmartAddress({
         CLUSTER === "testnet" ? "testnet." : ""
       }snowtrace.io/address/${useableAddress}`
     : chainId === CHAIN_ID_OASIS
-    ? null
+    ? `https://explorer.${
+        CLUSTER === "testnet" ? "testnet." : ""
+      }oasis.updev.si/address/${useableAddress}`
     : chainId === CHAIN_ID_SOLANA
     ? `https://explorer.solana.com/address/${useableAddress}${
         CLUSTER === "testnet"

+ 3 - 10
bridge_ui/src/utils/consts.ts

@@ -32,7 +32,7 @@ export interface ChainInfo {
   name: string;
   logo: string;
 }
-export const CHAINS =
+export const CHAINS: ChainInfo[] =
   CLUSTER === "mainnet"
     ? [
         {
@@ -136,8 +136,7 @@ export const CHAINS =
           logo: terraIcon,
         },
       ];
-export const BETA_CHAINS: ChainId[] =
-  CLUSTER === "mainnet" ? [CHAIN_ID_OASIS] : [];
+export const BETA_CHAINS: ChainId[] = CLUSTER === "mainnet" ? [] : [];
 export const CHAINS_WITH_NFT_SUPPORT = CHAINS.filter(
   ({ id }) =>
     id === CHAIN_ID_AVAX ||
@@ -154,13 +153,7 @@ export const CHAINS_BY_ID: ChainsById = CHAINS.reduce((obj, chain) => {
   return obj;
 }, {} as ChainsById);
 
-export const COMING_SOON_CHAINS = [
-  {
-    id: CHAIN_ID_OASIS,
-    name: "Oasis",
-    logo: oasisIcon,
-  },
-];
+export const COMING_SOON_CHAINS: ChainInfo[] = [];
 export const getDefaultNativeCurrencySymbol = (chainId: ChainId) =>
   chainId === CHAIN_ID_SOLANA
     ? "SOL"