diff --git a/apps/connect/package-lock.json b/apps/connect/package-lock.json index b5bb61ca0..9328cb3df 100644 --- a/apps/connect/package-lock.json +++ b/apps/connect/package-lock.json @@ -14,7 +14,7 @@ "@mui/icons-material": "^5.14.11", "@mui/material": "^5.12.1", "@tanstack/react-query": "^5.14.2", - "@wormhole-foundation/wormhole-connect": "^0.3.16", + "@wormhole-foundation/wormhole-connect": "^0.3.17", "dompurify": "^3.0.6", "mixpanel-browser": "^2.53.0", "react": "^18.2.0", @@ -17362,9 +17362,9 @@ } }, "node_modules/@wormhole-foundation/wormhole-connect": { - "version": "0.3.16", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.3.16.tgz", - "integrity": "sha512-vBFNLBbeeb5Zr/7VyNWenO7r9e8cylziOVyyvu6JR8HBkgVmDk8w21VuTsUxyAdNyysDl7QHqJqRHwd/T118FQ==", + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.3.17.tgz", + "integrity": "sha512-cWE2KqoY9wdRTozAAXHP0ruXv6PKiBiOnbWA72LC74QqfBr0gc4IGVTlcs21pTGUhYF3EmCpa+7rqizr96NPdw==", "dependencies": { "@certusone/wormhole-sdk": "^0.10.10", "@coral-xyz/anchor": "^0.29.0", diff --git a/apps/connect/package.json b/apps/connect/package.json index fa4455a80..79e0861a3 100644 --- a/apps/connect/package.json +++ b/apps/connect/package.json @@ -30,7 +30,7 @@ "@mui/icons-material": "^5.14.11", "@mui/material": "^5.12.1", "@tanstack/react-query": "^5.14.2", - "@wormhole-foundation/wormhole-connect": "^0.3.16", + "@wormhole-foundation/wormhole-connect": "^0.3.17", "dompurify": "^3.0.6", "mixpanel-browser": "^2.53.0", "react": "^18.2.0", diff --git a/apps/connect/src/env/common.ts b/apps/connect/src/env/common.ts index 64d7c8615..07fdbee8e 100644 --- a/apps/connect/src/env/common.ts +++ b/apps/connect/src/env/common.ts @@ -44,7 +44,7 @@ export const versions: Env["versions"] = [ }, { appName: "Wormhole Connect", - version: `v${packageJson.version}`, + version: `v${packageJson.dependencies["@wormhole-foundation/wormhole-connect"]}`, }, ]; diff --git a/apps/connect/src/providers/telemetry.ts b/apps/connect/src/providers/telemetry.ts index 16ccec58c..ffd9f89cb 100644 --- a/apps/connect/src/providers/telemetry.ts +++ b/apps/connect/src/providers/telemetry.ts @@ -65,8 +65,8 @@ export const eventHandler = (e: WormholeConnectEvent) => { const isTransferError = e.type === "transfer.error" || e.type === "transfer.redeem.error"; const attributes: { [key: string]: string } = { - fromChain: e.details.fromChain, - toChain: e.details.toChain, + fromChain: e.details.fromChain.toString(), + toChain: e.details.toChain.toString(), fromTokenSymbol: e.details.fromToken?.symbol, fromTokenAddress: getTokenAddress(e.details.fromToken), toTokenSymbol: e.details.toToken?.symbol, @@ -83,6 +83,7 @@ export const eventHandler = (e: WormholeConnectEvent) => { cosmosGateway: "Cosmos Gateway", nttManual: "NTT Manual", nttRelay: "NTT Relayer", + usdtBridge: "USDT Bridge", }[e.details.route] || "Manual Bridge", ...(isTransferError ? {