Skip to content

Commit

Permalink
connect new config update | 2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielisaacgeslin committed Sep 18, 2024
1 parent b6745d4 commit eb2c753
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/connect/package-lock.json

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

12 changes: 7 additions & 5 deletions apps/connect/src/env/token-bridge.mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { ACALA, ALGORAND, MORE, SEI, ENV as ENV_BASE } from "./token-bridge";
import { mergeDeep } from "../utils/mergeDeep";
import {
DEFAULT_ROUTES,
MayanRoute,
MayanRouteWH,
MayanRouteMCTP,
MayanRouteSWIFT,
nttRoutes,
type WormholeConnectConfig,
} from "@wormhole-foundation/wormhole-connect";
Expand All @@ -14,14 +16,14 @@ export const ENV: Env = {
ENV_BASE.wormholeConnectConfig,
{
ui: {
moreChains: {
networks: [ALGORAND, ACALA, SEI, MORE],
},
moreChains: { chains: [ALGORAND, ACALA, SEI, MORE] },
} as WormholeConnectConfig["ui"],
rpcs: MAINNET_RPCS,
routes: [
...DEFAULT_ROUTES,
MayanRoute,
MayanRouteWH,
MayanRouteMCTP,
MayanRouteSWIFT,
...nttRoutes({
tokens: {
W: [
Expand Down
4 changes: 1 addition & 3 deletions apps/connect/src/env/token-bridge.testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export const ENV: Env = {
ENV_BASE.wormholeConnectConfig as WormholeConnectConfig,
{
ui: {
moreChains: {
networks: [ALGORAND, ACALA, MORE],
},
moreChains: { chains: [ALGORAND, ACALA, MORE] },
} as NonNullable<WormholeConnectConfig["ui"]>,
tokensConfig: {
Wsolana: {
Expand Down
2 changes: 1 addition & 1 deletion apps/connect/src/env/token-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { mergeDeep } from "../utils/mergeDeep";

type MoreChainDefinition = NonNullable<
NonNullable<WormholeConnectConfig["ui"]>["moreChains"]
>["networks"][0];
>["chains"][0];

const ADVANCE_TOOLS_HREF = `${PUBLIC_URL}/advanced-tools/`;
const ADVANCE_TOOLS_HREF_TEMPLATE = `${ADVANCE_TOOLS_HREF}#/transfer?sourceChain={:sourceChain}&targetChain={:targetChain}`;
Expand Down
Binary file modified apps/connect/wormhole-foundation-wormhole-connect-0.3.7.tgz
Binary file not shown.

0 comments on commit eb2c753

Please sign in to comment.