Skip to content

Commit

Permalink
Unichain CCTP (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna authored Feb 11, 2025
1 parent 0ce2518 commit 0d01d5c
Show file tree
Hide file tree
Showing 7 changed files with 2,004 additions and 1,163 deletions.
3,149 changes: 1,995 additions & 1,154 deletions apps/connect/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"@mui/icons-material": "^5.14.11",
"@mui/material": "^5.12.1",
"@tanstack/react-query": "^5.14.2",
"@wormhole-foundation/sdk": "^1.5.0",
"@wormhole-foundation/wormhole-connect": "^2.0.0",
"@wormhole-foundation/sdk": "^1.7.0",
"@wormhole-foundation/wormhole-connect": "^2.1.0-beta.0-development",
"bech32": "^2.0.0",
"dompurify": "^3.0.6",
"ethers": "^5.6.8",
Expand Down
2 changes: 1 addition & 1 deletion apps/connect/src/env/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const wormholeConnectConfigCommon: Partial<WormholeConnectConfig> = {
showInProgressWidget: true,
},
network: CLUSTER,
coinGeckoApiKey: 'CG-7gk3AnREWCyuM7EsWSqWPDLW',
coinGeckoApiKey: "CG-7gk3AnREWCyuM7EsWSqWPDLW",
rpcs: {},
};

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 @@ -93,7 +93,7 @@ export const ENV: Env = {
// href: ADVANCE_TOOLS_HREF_TEMPLATE,
// },
// },
chains: [...chains, "Solana", "Injective", "Klaytn"],
chains: [...chains, "Solana", "Injective", "Klaytn", "Unichain"],
moreNetworks: {
href: ADVANCE_TOOLS_HREF_TEMPLATE,
target: "_blank",
Expand Down
1 change: 1 addition & 0 deletions apps/connect/src/env/usdc-bridge.mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const ENV: Env = {
"Solana",
"Sui",
"Aptos",
"Unichain",
],
}
),
Expand Down
1 change: 1 addition & 0 deletions apps/connect/src/env/usdc-bridge.testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ENV: Env = {
"Solana",
"Sui",
"Aptos",
"Unichain",
],
}
),
Expand Down
8 changes: 3 additions & 5 deletions apps/connect/src/hooks/useConnectConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import type {
Chain,
WormholeConnectConfig,
} from "@wormhole-foundation/wormhole-connect";
import type { WormholeConnectConfig } from "@wormhole-foundation/wormhole-connect";
import { useEffect, useMemo, useState } from "react";

import { useQueryParams } from "./useQueryParams";
Expand All @@ -14,6 +11,7 @@ import { isPreview, isProduction } from "../utils/constants";
import { ENV } from "@env";
import { validateTransfer } from "../utils/transferVerification";
import { getSortedChains } from "../utils/getSortedChains";
import { Chain } from "@wormhole-foundation/sdk";

const defaultConfig: WormholeConnectConfig = {
...ENV.wormholeConnectConfig,
Expand Down Expand Up @@ -63,7 +61,7 @@ export const useConnectConfig = () => {
[tokenKey, toTokenKey]
);

const config: WormholeConnectConfig = useMemo(
const config = useMemo(
() => ({
...defaultConfig,
chains: networks!,
Expand Down

0 comments on commit 0d01d5c

Please sign in to comment.