Skip to content

Commit

Permalink
USDT bridge (#914)
Browse files Browse the repository at this point in the history
* usdt bridge

* Update connect

* Fix build

* Update connect version meta

* Update connect

* updated connect to 0.3.17

---------

Co-authored-by: Daniel Isaac Geslin <[email protected]>
  • Loading branch information
yuli-ferna and danielisaacgeslin authored Jul 18, 2024
1 parent 74a478c commit 887f2b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions apps/connect/package-lock.json

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

2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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 @@ -44,7 +44,7 @@ export const versions: Env["versions"] = [
},
{
appName: "Wormhole Connect",
version: `v${packageJson.version}`,
version: `v${packageJson.dependencies["@wormhole-foundation/wormhole-connect"]}`,
},
];

Expand Down
5 changes: 3 additions & 2 deletions apps/connect/src/providers/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
? {
Expand Down

0 comments on commit 887f2b8

Please sign in to comment.