diff --git a/builder/package.json b/builder/package.json index 2000fcbe0..7f91cad8a 100644 --- a/builder/package.json +++ b/builder/package.json @@ -14,7 +14,7 @@ "@types/node": "^16.18.25", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", - "@wormhole-foundation/wormhole-connect": "^0.1.2", + "@wormhole-foundation/wormhole-connect": "^0.1.4", "react": "^18.2.0", "react-color": "^2.19.3", "react-dom": "^18.2.0", diff --git a/builder/scripts/token_keys.ts b/builder/scripts/token_keys.ts new file mode 100644 index 000000000..0df8a53bb --- /dev/null +++ b/builder/scripts/token_keys.ts @@ -0,0 +1,7 @@ +import { TESTNET_TOKENS } from "../../wormhole-connect/src/config/testnet/tokens"; +import { MAINNET_TOKENS } from "../../wormhole-connect/src/config/mainnet/tokens"; + +console.log("TESTNET TOKENS"); +console.log(Object.keys(TESTNET_TOKENS)); +console.log("MAINNET TOKENS"); +console.log(Object.keys(MAINNET_TOKENS)); diff --git a/builder/src/App.tsx b/builder/src/App.tsx index 6e678b2ee..ec5ffe160 100644 --- a/builder/src/App.tsx +++ b/builder/src/App.tsx @@ -66,10 +66,10 @@ import { setObjectPathImmutable, } from "./utils"; -const version = "0.1.2"; +const version = "0.1.4"; // generated with https://www.srihash.org/ const versionScriptIntegrity = - "sha384-nhHnv/RrHd814OnnzSvh+jikOAPOcTYqEjnEMfmXMqivORZ6pXEOQu1zY1tX+AjX"; + "sha384-NUeZzmcZSVf4i3sUHD1rhtihig08WkCKu42too+Na8ll/2Sxr8v8D1i9IuVrF70A"; const versionLinkIntegrity = "sha384-KGZI5sQxWDSIe8Xzhvu4eO0fi8KYtEmDnYS2Qn5xrtw667xfxFINL3uN48d/djuY"; const nonBreakingTag = "latest-v0.1"; @@ -190,6 +190,12 @@ function App() { setPageHeader(e.target.value || undefined); }, []); const [pageHeader] = useDebounce(_pageHeader, 500); + const [showHamburgerMenu, setShowHamburgerMenu] = useState< + boolean | undefined + >(undefined); + const handleToggleShowHamburgerMenu = useCallback((e: any) => { + setShowHamburgerMenu((prev) => !(prev === undefined || prev)); + }, []); // END STYLING // BEGIN THEME const [mode, setMode] = useState<"dark" | "light" | undefined>("dark"); @@ -483,6 +489,7 @@ function App() { : undefined, routes, pageHeader, + showHamburgerMenu, }), [ testnetRpcs, @@ -498,6 +505,7 @@ function App() { requiredNetwork, routes, pageHeader, + showHamburgerMenu, ] ); const [versionOrTag, setVersionOrTag] = useState(version); @@ -635,6 +643,19 @@ function App() { sx={{ mb: 2 }} /> + + + } + label="Show Hamburger Menu" + /> + ) : screen === 2 ? ( <> diff --git a/builder/src/consts.ts b/builder/src/consts.ts index 21fc6dfb3..11684a1a5 100644 --- a/builder/src/consts.ts +++ b/builder/src/consts.ts @@ -17,7 +17,6 @@ export const NETWORKS: Network[] = [ }, { name: "Ethereum", - testnet: "goerli", mainnet: "ethereum", }, @@ -61,6 +60,16 @@ export const NETWORKS: Network[] = [ testnet: "aptos", mainnet: "aptos", }, + { + name: "Arbitrum", + testnet: "arbitrumgoerli", + mainnet: "arbitrum", + }, + { + name: "Optimism", + testnet: "optimismgoerli", + mainnet: "optimism", + }, { name: "Base", testnet: "basegoerli", @@ -105,9 +114,9 @@ export const TESTNET_TOKEN_KEYS: string[] = [ "ETHoptimism", "WETHoptimism", "USDCoptimism", - "SEI", "ETHbase", "WETHbase", + "USDCbase", "OSMO", "tBTC", "tBTCpolygon", @@ -116,6 +125,10 @@ export const TESTNET_TOKEN_KEYS: string[] = [ "tBTCbase", "tBTCsol", "wstETH", + "SEI", + "ATOM", + "EVMOS", + "KUJI", ].sort(); export const MAINNET_TOKEN_KEYS: string[] = [ @@ -153,6 +166,7 @@ export const MAINNET_TOKEN_KEYS: string[] = [ "USDCoptimism", "ETHbase", "WETHbase", + "USDCbase", "OSMO", "tBTC", "tBTCpolygon", @@ -162,6 +176,8 @@ export const MAINNET_TOKEN_KEYS: string[] = [ "tBTCsol", "wstETH", "BONK", + "EVMOS", + "KUJI", ].sort(); export type RouteInfo = { @@ -231,6 +247,9 @@ export const DEFAULT_MAINNET_RPCS = { sei: "", // TODO: fill in wormchain: "", osmosis: "https://osmosis-rpc.polkachu.com", + cosmoshub: "https://cosmos-rpc.polkachu.com", + evmos: "https://evmos-rpc.polkachu.com", + kujira: "https://kujira-rpc.polkachu.com", }; export const DEFAULT_TESTNET_RPCS = { @@ -250,4 +269,7 @@ export const DEFAULT_TESTNET_RPCS = { sei: "https://rpc.atlantic-2.seinetwork.io", wormchain: "", osmosis: "https://rpc.osmotest5.osmosis.zone", + cosmoshub: "https://rpc.sentry-02.theta-testnet.polypore.xyz", + evmos: "https://evmos-testnet-rpc.polkachu.com", + kujira: "https://kujira-testnet-rpc.polkachu.com", }; diff --git a/package-lock.json b/package-lock.json index 908faba0e..0daed9149 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "@types/node": "^16.18.25", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", - "@wormhole-foundation/wormhole-connect": "^0.1.2", + "@wormhole-foundation/wormhole-connect": "^0.1.4", "react": "^18.2.0", "react-color": "^2.19.3", "react-dom": "^18.2.0", @@ -54,9 +54,9 @@ } }, "builder/node_modules/@wormhole-foundation/wormhole-connect": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.1.2.tgz", - "integrity": "sha512-QYr+5m52tDz/mBTFffoTKbulRJxYSyILrPWJfj/x2H4+IFbqmGmGJw0yfW2IUXRRmZeMYMdwO49YEu81Wcm6SA==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.1.4.tgz", + "integrity": "sha512-SHoQxgTxinZUJ01mDijB/G66UzUksTNMLrGLU+2z/XFtddYBl74ppfkhdCSQb4ID1aqt6eipFcqYySgvxdaZOg==", "dependencies": { "@mui/material": "^5.12.1" },