diff --git a/apps/connect/package-lock.json b/apps/connect/package-lock.json index 9328cb3df..be3cae96a 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.17", + "@wormhole-foundation/wormhole-connect": "^0.3.18-beta.2-development", "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.17", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.3.17.tgz", - "integrity": "sha512-cWE2KqoY9wdRTozAAXHP0ruXv6PKiBiOnbWA72LC74QqfBr0gc4IGVTlcs21pTGUhYF3EmCpa+7rqizr96NPdw==", + "version": "0.3.18-beta.2-development", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.3.18-beta.2-development.tgz", + "integrity": "sha512-SDZd+NljH1T/GEC/GWBvD7gjKRSm2TwofQkO4hTesiYg8eBb9kIuh37hEeQuTTSjoPokasHSnYFDj85XWJkvhQ==", "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 fc3ae4534..2b11f945b 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.17", + "@wormhole-foundation/wormhole-connect": "^0.3.18-beta.2-development", "dompurify": "^3.0.6", "mixpanel-browser": "^2.53.0", "react": "^18.2.0", diff --git a/apps/connect/src/providers/telemetry.ts b/apps/connect/src/providers/telemetry.ts index d15abda27..015434cb5 100644 --- a/apps/connect/src/providers/telemetry.ts +++ b/apps/connect/src/providers/telemetry.ts @@ -65,14 +65,15 @@ export const eventHandler = (e: WormholeConnectEvent) => { // Convert WormholeConnectEvent to Attributes const isTransferError = e.type === "transfer.error" || e.type === "transfer.redeem.error"; - const attributes: { [key: string]: string } = { + const attributes: { [key: string]: string | number | undefined } = { 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, toTokenAddress: getTokenAddress(e.details.toToken), - txId: e.details.txId!, + txId: e.details.txId, + USDAmount: e.details.USDAmount, route: { bridge: "Manual Bridge",