diff --git a/apps/connect/package-lock.json b/apps/connect/package-lock.json index 9328cb3df..e04760c23 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", "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", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.3.18.tgz", + "integrity": "sha512-twvpVYDySNCHb02EWKoY0zDDqtkyM4+AbnOAV1P/ezsJBsHrrRoXqp+4ZYgiB7ZtxXDPSwkFAdVJR3K+hdUm9Q==", "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..8779d2940 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", "dompurify": "^3.0.6", "mixpanel-browser": "^2.53.0", "react": "^18.2.0", diff --git a/apps/connect/src/providers/telemetry.test.ts b/apps/connect/src/providers/telemetry.test.ts index 0da3429b6..0de21a733 100644 --- a/apps/connect/src/providers/telemetry.test.ts +++ b/apps/connect/src/providers/telemetry.test.ts @@ -20,6 +20,7 @@ describe("telemetry", () => { fromChain: "bsc", toChain: "arbitrum", txId: "txId", + USDAmount: 123.456, toToken: { symbol: "osETH", tokenId: { address: "address", chain: "chain" }, @@ -65,6 +66,7 @@ describe("telemetry", () => { toTokenAddress: "address", route: "wstETH Bridge", txId: "txId", + USDAmount: 123.456, }); }); 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",