Skip to content

Commit

Permalink
bump wormhole-sdk version, prettier checks, remove unecesary constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Jul 27, 2023
1 parent 34deeef commit d8bfd89
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
18 changes: 9 additions & 9 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.52",
"private": true,
"dependencies": {
"@certusone/wormhole-sdk": "^0.9.20",
"@certusone/wormhole-sdk": "^0.9.22",
"@injectivelabs/sdk-ts": "^1.10.72",
"@injectivelabs/ts-types": "^1.10.4",
"@injectivelabs/wallet-ts": "^1.10.51",
Expand Down
8 changes: 4 additions & 4 deletions src/components/ShowTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
CHAIN_ID_INJECTIVE,
CHAIN_ID_OPTIMISM,
CHAIN_ID_SUI,
CHAIN_ID_BASE
CHAIN_ID_BASE,
} from "@certusone/wormhole-sdk";
import { CHAIN_ID_NEAR } from "@certusone/wormhole-sdk/lib/esm";
import { Button, makeStyles, Typography } from "@material-ui/core";
Expand Down Expand Up @@ -137,9 +137,9 @@ export default function ShowTx({
CLUSTER === "testnet" ? "moonbase." : ""
}moonscan.io/tx/${tx?.id}`
: chainId === CHAIN_ID_BASE
? `https://${CLUSTER === "testnet" ? "goerli." : ""}basescan.org/tx/${
tx?.id
}`
? `https://${
CLUSTER === "testnet" ? "goerli." : ""
}basescan.org/tx/${tx?.id}`
: chainId === CHAIN_ID_XPLA
? `https://explorer.xpla.io/${
CLUSTER === "testnet" ? "testnet" : "mainnet"
Expand Down
12 changes: 5 additions & 7 deletions src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import algorandIcon from "../icons/algorand.svg";
import arbitrumIcon from "../icons/arbitrum.svg";
import auroraIcon from "../icons/aurora.svg";
import avaxIcon from "../icons/avax.svg";
import baseIcon from '../icons/base.svg';
import baseIcon from "../icons/base.svg";
import bscIcon from "../icons/bsc.svg";
import celoIcon from "../icons/celo.svg";
import ethIcon from "../icons/eth.svg";
Expand Down Expand Up @@ -122,7 +122,7 @@ export const CHAINS: ChainInfo[] =
{
id: CHAIN_ID_BASE,
name: "Base",
logo: baseIcon
logo: baseIcon,
},
{
id: CHAIN_ID_BSC,
Expand Down Expand Up @@ -245,7 +245,7 @@ export const CHAINS: ChainInfo[] =
{
id: CHAIN_ID_BASE,
name: "Base",
logo: baseIcon
logo: baseIcon,
},
{
id: CHAIN_ID_BSC,
Expand Down Expand Up @@ -629,7 +629,7 @@ export const ARBITRUM_NETWORK_CHAIN_ID =
CLUSTER === "mainnet" ? 42161 : CLUSTER === "testnet" ? 421613 : 1381;
export const OPTIMISM_NETWORK_CHAIN_ID =
CLUSTER === "mainnet" ? 10 : CLUSTER === "testnet" ? 420 : 1381;
export const BASE_NETWORK_CHAIN_ID =
export const BASE_NETWORK_CHAIN_ID =
CLUSTER === "mainnet" ? 8453 : CLUSTER === "testnet" ? 84531 : 1381;

export const getEvmChainId = (chainId: ChainId) =>
Expand Down Expand Up @@ -1262,7 +1262,7 @@ export const COVALENT_OPTIMISM =
CLUSTER === "devnet" ? null : OPTIMISM_NETWORK_CHAIN_ID; // Covalent only supports mainnet

export const COVALENT_BASE =
CLUSTER === "devnet" ? null : BASE_NETWORK_CHAIN_ID
CLUSTER === "devnet" ? null : BASE_NETWORK_CHAIN_ID;

export const COVALENT_GET_TOKENS_URL = (
chainId: ChainId,
Expand Down Expand Up @@ -1360,8 +1360,6 @@ export const WETH_ADDRESS =
: "0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E";
export const WETH_DECIMALS = 18;

export const BASE_WETH_DECIMALS = 18;

export const WBNB_ADDRESS =
CLUSTER === "mainnet"
? "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/metaMaskChainParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const METAMASK_CHAIN_PARAMETERS: {
nativeCurrency: { name: "Goerli Ether", symbol: "GOR", decimals: 18 },
rpcUrls: ["https://goerli.base.org"],
blockExplorerUrls: ["https://goerli.basescan.org"],
}
},
};

export interface EvmRpcMap {
Expand Down

0 comments on commit d8bfd89

Please sign in to comment.