From cb26ca50b90290bd07dd82a893993aafa88fe6b0 Mon Sep 17 00:00:00 2001 From: M-Picco Date: Tue, 29 Oct 2024 23:55:58 -0300 Subject: [PATCH 1/3] Add TBR v3 route --- wormhole-connect/package-lock.json | 368 +++++++++++++++++- wormhole-connect/package.json | 11 + .../src/components/DemoApp/index.tsx | 7 + wormhole-connect/src/config/routes.ts | 7 + wormhole-connect/src/config/testnet/tokens.ts | 24 +- wormhole-connect/src/routes/operator.ts | 7 + wormhole-connect/src/routes/sdkv2/route.ts | 1 + wormhole-connect/vite.config.ts | 5 + 8 files changed, 405 insertions(+), 25 deletions(-) diff --git a/wormhole-connect/package-lock.json b/wormhole-connect/package-lock.json index 2266887a6..90284a9d2 100644 --- a/wormhole-connect/package-lock.json +++ b/wormhole-connect/package-lock.json @@ -46,6 +46,10 @@ "@xlabs-libs/wallet-aggregator-sei": "^0.0.1-alpha.14", "@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.15", "@xlabs-libs/wallet-aggregator-sui": "^0.0.1-alpha.10", + "@xlabs-xyz/arbitrary-token-transfer-evm-route": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfer-route": "^0.0.1-alpha.4", + "@xlabs-xyz/arbitrary-token-transfer-solana-route": "^0.0.1-alpha.4", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "^0.0.1-alpha.5", "aptos": "1.5.0", "axios": "^1.2.4", "binary-parser": "^2.2.1", @@ -2488,6 +2492,14 @@ "node": ">=11" } }, + "node_modules/@coral-xyz/anchor-errors": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor-errors/-/anchor-errors-0.30.1.tgz", + "integrity": "sha512-9Mkradf5yS5xiLWrl9WrpjqOrAV+/W2RQHDlbnAZBivoGpOs1ECjoDCkVk4aRG8ZdiFiB8zQEVlxf+8fKkmSfQ==", + "engines": { + "node": ">=10" + } + }, "node_modules/@coral-xyz/borsh": { "version": "0.29.0", "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.29.0.tgz", @@ -15254,6 +15266,338 @@ "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.18" } }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-evm-route": { + "version": "0.0.1-alpha5", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-evm-route/-/arbitrary-token-transfer-evm-route-0.0.1-alpha5.tgz", + "integrity": "sha512-a9oPkiU/1ydnyvMLVeXdA+2rUdzdADnkIgeei/M8FW7dUKzpXERZ91qabds7WtKQnZwaubtQZWmsMdHjdYgwrQ==", + "dependencies": { + "@wormhole-foundation/sdk-base": "^0.12.0", + "@wormhole-foundation/sdk-definitions": "^0.12.0", + "@wormhole-foundation/sdk-evm": "^0.12.0", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", + "@xlabs-xyz/evm-arbitrary-token-transfers": "0.0.2-alpha1", + "ethers": "^6.13.3" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-route": { + "version": "0.0.1-alpha4", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-route/-/arbitrary-token-transfer-route-0.0.1-alpha4.tgz", + "integrity": "sha512-zMBAY8SdGyq3yI5eieog7tCPud6EIcaJ6MamcvsLzpfgJHLxUhwbXl3ktWxiiI7/53k4w9yPEf1RyH5drPvS8w==", + "dependencies": { + "@wormhole-foundation/sdk-base": "^0.12.0", + "@wormhole-foundation/sdk-connect": "^0.12.0", + "@wormhole-foundation/sdk-definitions": "^0.12.0", + "@xlabs-xyz/arbitrary-token-transfer-evm-route": "0.0.1-alpha4", + "@xlabs-xyz/arbitrary-token-transfer-solana-route": "0.0.1-alpha4", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", + "ethers": "^6.13.3" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-route/node_modules/@xlabs-xyz/arbitrary-token-transfer-evm-route": { + "version": "0.0.1-alpha4", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-evm-route/-/arbitrary-token-transfer-evm-route-0.0.1-alpha4.tgz", + "integrity": "sha512-hJG1QG3NJEuy2q+nwtNBF98uN9+wwzOGn+KRUepCeJ8UCK1YjwQdArV4tRaZNWkFCbZXbciRPXcfo6tQGb3/xg==", + "dependencies": { + "@wormhole-foundation/sdk-base": "^0.12.0", + "@wormhole-foundation/sdk-definitions": "^0.12.0", + "@wormhole-foundation/sdk-evm": "^0.12.0", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", + "@xlabs-xyz/evm-arbitrary-token-transfers": "0.0.2-alpha1", + "ethers": "^6.13.3" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-solana-route": { + "version": "0.0.1-alpha4", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-solana-route/-/arbitrary-token-transfer-solana-route-0.0.1-alpha4.tgz", + "integrity": "sha512-xy+sOFTPFBVHV+6KCq0J6dLtzQWyPafQ5hHwDkLQ/DvEQFjhYJ+wM6OCpDoTP/vjjyiDwh2JuF4Zl0053nrD8Q==", + "dependencies": { + "@coral-xyz/anchor": "^0.30.1", + "@solana/spl-token": "0.3.9", + "@solana/web3.js": "^1.95.3", + "@wormhole-foundation/sdk-base": "^0.12.0", + "@wormhole-foundation/sdk-definitions": "^0.12.0", + "@wormhole-foundation/sdk-solana": "^0.12.0", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", + "@xlabs-xyz/solana-arbitrary-token-transfers": "0.0.2-alpha6" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-solana-route/node_modules/@coral-xyz/anchor": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.30.1.tgz", + "integrity": "sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==", + "dependencies": { + "@coral-xyz/anchor-errors": "^0.30.1", + "@coral-xyz/borsh": "^0.30.1", + "@noble/hashes": "^1.3.1", + "@solana/web3.js": "^1.68.0", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^6.3.0", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "superstruct": "^0.15.4", + "toml": "^3.0.0" + }, + "engines": { + "node": ">=11" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-solana-route/node_modules/@coral-xyz/borsh": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.30.1.tgz", + "integrity": "sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ==", + "dependencies": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.68.0" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfer-solana-route/node_modules/@solana/spl-token": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.3.9.tgz", + "integrity": "sha512-1EXHxKICMnab35MvvY/5DBc/K/uQAOJCYnDZXw83McCAYUAfi+rwq6qfd6MmITmSTEhcfBcl/zYxmW/OSN0RmA==", + "dependencies": { + "@solana/buffer-layout": "^4.0.0", + "@solana/buffer-layout-utils": "^0.2.0", + "buffer": "^6.0.3" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.47.4" + } + }, + "node_modules/@xlabs-xyz/arbitrary-token-transfers-definitions": { + "version": "0.0.1-alpha5", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfers-definitions/-/arbitrary-token-transfers-definitions-0.0.1-alpha5.tgz", + "integrity": "sha512-KAUaLFcBcRDYNLPQvH9c0PceSv6J4oRi3BpGQrfCpWDdYtwOLVugfJjslUWok7MV1rnx7yYUsapCyGgi87lXXA==", + "dependencies": { + "@wormhole-foundation/sdk-base": "^0.12.0", + "@wormhole-foundation/sdk-definitions": "^0.12.0", + "ethers": "^6.13.3" + } + }, + "node_modules/@xlabs-xyz/evm-arbitrary-token-transfers": { + "version": "0.0.2-alpha1", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/evm-arbitrary-token-transfers/-/evm-arbitrary-token-transfers-0.0.2-alpha1.tgz", + "integrity": "sha512-37nsoGR88l77jKh1VTqad6rNpiiIJGlVYhcZrXJHOX3QdLoy48axwXwHAMyMbxooOXC5zTqxizfjPX/kXEYqBA==", + "dependencies": { + "@wormhole-foundation/sdk-base": "0.12.0", + "@wormhole-foundation/sdk-definitions": "0.12.0", + "@wormhole-foundation/sdk-evm": "0.12.0", + "ethers": "^6.13.4" + } + }, + "node_modules/@xlabs-xyz/solana-arbitrary-token-transfers": { + "version": "0.0.2-alpha6", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/solana-arbitrary-token-transfers/-/solana-arbitrary-token-transfers-0.0.2-alpha6.tgz", + "integrity": "sha512-JrQAksKuQAKNrIfhRQITnQdBM6uemh/VSM++yIM2XQhyvCMZm49K57PS2UztLd9ouL1P+OwLgJyczIQqnM9UeA==", + "dependencies": { + "@coral-xyz/anchor": "^0.30.1", + "@solana/web3.js": "^1.95.3", + "@wormhole-foundation/sdk-base": "^0.12.0", + "@wormhole-foundation/sdk-definitions": "^0.12.0", + "@wormhole-foundation/sdk-solana": "^0.12.0", + "@wormhole-foundation/sdk-solana-tokenbridge": "^0.12.0", + "@xlabs/solana-price-oracle-sdk": "0.0.14", + "borsh": "^2.0.0" + } + }, + "node_modules/@xlabs-xyz/solana-arbitrary-token-transfers/node_modules/@coral-xyz/anchor": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.30.1.tgz", + "integrity": "sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==", + "dependencies": { + "@coral-xyz/anchor-errors": "^0.30.1", + "@coral-xyz/borsh": "^0.30.1", + "@noble/hashes": "^1.3.1", + "@solana/web3.js": "^1.68.0", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^6.3.0", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "superstruct": "^0.15.4", + "toml": "^3.0.0" + }, + "engines": { + "node": ">=11" + } + }, + "node_modules/@xlabs-xyz/solana-arbitrary-token-transfers/node_modules/@coral-xyz/borsh": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.30.1.tgz", + "integrity": "sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ==", + "dependencies": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.68.0" + } + }, + "node_modules/@xlabs-xyz/solana-arbitrary-token-transfers/node_modules/borsh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/borsh/-/borsh-2.0.0.tgz", + "integrity": "sha512-kc9+BgR3zz9+cjbwM8ODoUB4fs3X3I5A/HtX7LZKxCLaMrEeDFoBpnhZY//DTS1VZBSs6S5v46RZRbZjRFspEg==" + }, + "node_modules/@xlabs/solana-price-oracle-sdk": { + "version": "0.0.14", + "resolved": "https://npm.pkg.github.com/download/@xlabs/solana-price-oracle-sdk/0.0.14/30109786217046880003ced1cef34eda8337c43f", + "integrity": "sha512-bVecT9AmPLAtasbS0VzKS7TkzVDDDw1c4Bn/tPJR9zSu0EB3Ey48Cel14d8l3FeZ9GZx4KsjsHmSM+673WIJ1g==", + "license": "ISC", + "dependencies": { + "@coral-xyz/anchor": "^0.30.1", + "@solana/web3.js": "^1.95.2", + "@wormhole-foundation/sdk-base": "^0.11", + "@wormhole-foundation/sdk-definitions": "^0.11", + "@wormhole-foundation/sdk-solana": "^0.11" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@coral-xyz/anchor": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.30.1.tgz", + "integrity": "sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==", + "dependencies": { + "@coral-xyz/anchor-errors": "^0.30.1", + "@coral-xyz/borsh": "^0.30.1", + "@noble/hashes": "^1.3.1", + "@solana/web3.js": "^1.68.0", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^6.3.0", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "superstruct": "^0.15.4", + "toml": "^3.0.0" + }, + "engines": { + "node": ">=11" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@coral-xyz/anchor/node_modules/@coral-xyz/borsh": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.30.1.tgz", + "integrity": "sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ==", + "dependencies": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.68.0" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@solana/spl-token": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.3.9.tgz", + "integrity": "sha512-1EXHxKICMnab35MvvY/5DBc/K/uQAOJCYnDZXw83McCAYUAfi+rwq6qfd6MmITmSTEhcfBcl/zYxmW/OSN0RmA==", + "dependencies": { + "@solana/buffer-layout": "^4.0.0", + "@solana/buffer-layout-utils": "^0.2.0", + "buffer": "^6.0.3" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.47.4" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-base": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-base/-/sdk-base-0.11.0.tgz", + "integrity": "sha512-5rf0NStwI6dHF1a1I+RS1tTfld7Cv3zM/AREol1SEock15PLIjSBo5YsBmVn/fxBqvCwYP2rdmL0yCt7bq9Qiw==", + "dependencies": { + "@scure/base": "^1.1.3" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-connect": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-connect/-/sdk-connect-0.11.0.tgz", + "integrity": "sha512-s3IjAhR7OBiT0RalCPsrKNeVln2i7MpkRCvTpU1iLhARsg5hsWeRUkQBonubMiXCpY+MW6aA1SBr53xZnD5IfA==", + "dependencies": { + "@wormhole-foundation/sdk-base": "0.11.0", + "@wormhole-foundation/sdk-definitions": "0.11.0", + "axios": "^1.4.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-definitions": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-definitions/-/sdk-definitions-0.11.0.tgz", + "integrity": "sha512-cD/MjTscEygPgV+RIH7n/TGVYFgF3X7ZSKIqDxCbcKqNsYm3C4TVwGRTWm1d8kMuCRI2umejAsHQ9ge6ZK8Nyw==", + "dependencies": { + "@noble/curves": "^1.4.0", + "@noble/hashes": "^1.3.1", + "@wormhole-foundation/sdk-base": "0.11.0" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-solana": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-solana/-/sdk-solana-0.11.0.tgz", + "integrity": "sha512-Nc77bMDTP67RwNsXEV2IGqrPVDJl6xAKg6MSMcBOyV/9qqk9UobhnSicFVVaxirhQ6ceuuD1kZjyAhnpbxx9nw==", + "dependencies": { + "@coral-xyz/anchor": "0.29.0", + "@coral-xyz/borsh": "0.29.0", + "@solana/spl-token": "0.3.9", + "@solana/web3.js": "^1.95.2", + "@wormhole-foundation/sdk-connect": "0.11.0", + "rpc-websockets": "^7.10.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-solana/node_modules/@coral-xyz/anchor": { + "version": "0.29.0", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.29.0.tgz", + "integrity": "sha512-eny6QNG0WOwqV0zQ7cs/b1tIuzZGmP7U7EcH+ogt4Gdbl8HDmIYVMh/9aTmYZPaFWjtUaI8qSn73uYEXWfATdA==", + "dependencies": { + "@coral-xyz/borsh": "^0.29.0", + "@noble/hashes": "^1.3.1", + "@solana/web3.js": "^1.68.0", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^6.3.0", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "superstruct": "^0.15.4", + "toml": "^3.0.0" + }, + "engines": { + "node": ">=11" + } + }, "node_modules/abitype": { "version": "0.8.7", "resolved": "https://registry.npmjs.org/abitype/-/abitype-0.8.7.tgz", @@ -18269,9 +18613,9 @@ } }, "node_modules/ethers": { - "version": "6.13.3", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.3.tgz", - "integrity": "sha512-/DzbZOLVtoO4fKvvQwpEucHAQgIwBGWuRvBdwE/lMXgXvvHHTSkn7XqAQ2b+gjJzZDJjWA9OD05bVceVOsBHbg==", + "version": "6.13.4", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.4.tgz", + "integrity": "sha512-21YtnZVg4/zKkCQPjrDj38B1r4nQvTZLopUGMLQ1ePU2zV/joCfDC3t3iKQjWRzjjjbzR+mdAIoikeBRNkdllA==", "funding": [ { "type": "individual", @@ -18286,9 +18630,9 @@ "@adraffy/ens-normalize": "1.10.1", "@noble/curves": "1.2.0", "@noble/hashes": "1.3.2", - "@types/node": "18.15.13", + "@types/node": "22.7.5", "aes-js": "4.0.0-beta.5", - "tslib": "2.4.0", + "tslib": "2.7.0", "ws": "8.17.1" }, "engines": { @@ -18318,20 +18662,18 @@ } }, "node_modules/ethers/node_modules/@types/node": { - "version": "18.15.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.13.tgz", - "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==" + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "dependencies": { + "undici-types": "~6.19.2" + } }, "node_modules/ethers/node_modules/aes-js": { "version": "4.0.0-beta.5", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==" }, - "node_modules/ethers/node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, "node_modules/ethers/node_modules/ws": { "version": "8.17.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", diff --git a/wormhole-connect/package.json b/wormhole-connect/package.json index 92be3bac4..3a003cbf7 100644 --- a/wormhole-connect/package.json +++ b/wormhole-connect/package.json @@ -55,6 +55,10 @@ "@xlabs-libs/wallet-aggregator-sei": "^0.0.1-alpha.14", "@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.15", "@xlabs-libs/wallet-aggregator-sui": "^0.0.1-alpha.10", + "@xlabs-xyz/arbitrary-token-transfer-evm-route": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfer-route": "^0.0.1-alpha.4", + "@xlabs-xyz/arbitrary-token-transfer-solana-route": "^0.0.1-alpha.4", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "^0.0.1-alpha.5", "aptos": "1.5.0", "axios": "^1.2.4", "binary-parser": "^2.2.1", @@ -160,6 +164,13 @@ }, "vite-plugin-dts": { "vue-tsc": "2.0.0" + }, + "@xlabs-xyz/arbitrary-token-transfer-solana-route": { + "@xlabs-xyz/solana-arbitrary-token-transfers": "^0.0.2-alpha6", + "@xlabs/solana-price-oracle-sdk": "^0.0.14" + }, + "@xlabs-xyz/solana-arbitrary-token-transfers": { + "@xlabs/solana-price-oracle-sdk": "^0.0.14" } } } diff --git a/wormhole-connect/src/components/DemoApp/index.tsx b/wormhole-connect/src/components/DemoApp/index.tsx index 5ffe350f5..a7471bae6 100644 --- a/wormhole-connect/src/components/DemoApp/index.tsx +++ b/wormhole-connect/src/components/DemoApp/index.tsx @@ -39,6 +39,7 @@ import { } from '@mayanfinance/wormhole-sdk-route'; import { NTT_TEST_CONFIG_TESTNET, NTT_TEST_CONFIG_MAINNET } from './consts'; import { DEFAULT_ROUTES, nttRoutes } from 'routes/operator'; +import { AutomaticTokenBridgeRouteV3 } from '@xlabs-xyz/arbitrary-token-transfer-route'; const MAX_URL_SIZE = 30_000; // 30kb (HTTP header limit is set to 32kb) @@ -73,6 +74,8 @@ const parseConfig = (config: string): WormholeConnectConfig => { window.testNttRoutesTestnet = () => nttRoutes(NTT_TEST_CONFIG_TESTNET); /* @ts-ignore */ window.testNttRoutesMainnet = () => nttRoutes(NTT_TEST_CONFIG_MAINNET); + /* @ts-ignore */ + window.AutomaticTokenBridgeRouteV3 = AutomaticTokenBridgeRouteV3; return eval( `(function() { return ${config} })()`, @@ -239,6 +242,10 @@ function DemoApp() {
testNttRoutesTestnet
{'(NttRoute.Config) -> RouteConstructor[])'} + {/*
  • +
    AutomaticTokenBridgeRouteV3
    + {'RouteConstructor'} +
  • */} ) : undefined} diff --git a/wormhole-connect/src/config/routes.ts b/wormhole-connect/src/config/routes.ts index cf53cdbe7..062b733fa 100644 --- a/wormhole-connect/src/config/routes.ts +++ b/wormhole-connect/src/config/routes.ts @@ -135,4 +135,11 @@ export const RoutesConfig: Record = { icon: XLabsIcon, pendingMessage: 'Waiting for Wormhole network consensus . . .', }, + AutomaticTokenBridgeV3: { + name: 'AutomaticTokenBridgeV3', + displayName: 'Automatic Bridge V3', + link: 'https://xlabs.xyz', + icon: XLabsIcon, + pendingMessage: 'Waiting for Wormhole network consensus . . .', + }, }; diff --git a/wormhole-connect/src/config/testnet/tokens.ts b/wormhole-connect/src/config/testnet/tokens.ts index f793e884a..9f13b4a4c 100644 --- a/wormhole-connect/src/config/testnet/tokens.ts +++ b/wormhole-connect/src/config/testnet/tokens.ts @@ -217,7 +217,7 @@ export const TESTNET_TOKENS: TokensConfig = { symbol: 'ETH', nativeChain: 'Sepolia', icon: Icon.ETH, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, wrappedAsset: 'WETHsepolia', @@ -231,7 +231,7 @@ export const TESTNET_TOKENS: TokensConfig = { chain: 'Sepolia', address: '0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c', }, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, }, @@ -253,7 +253,7 @@ export const TESTNET_TOKENS: TokensConfig = { symbol: 'ETH', nativeChain: 'ArbitrumSepolia', icon: Icon.ETH, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, wrappedAsset: 'WETHarbitrum_sepolia', @@ -267,7 +267,7 @@ export const TESTNET_TOKENS: TokensConfig = { chain: 'ArbitrumSepolia', address: '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73', }, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, }, @@ -276,7 +276,7 @@ export const TESTNET_TOKENS: TokensConfig = { symbol: 'ETH', nativeChain: 'BaseSepolia', icon: Icon.ETH, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, wrappedAsset: 'WETHbase_sepolia', @@ -290,7 +290,7 @@ export const TESTNET_TOKENS: TokensConfig = { chain: 'BaseSepolia', address: '0x4200000000000000000000000000000000000006', }, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, }, @@ -299,7 +299,7 @@ export const TESTNET_TOKENS: TokensConfig = { symbol: 'ETH', nativeChain: 'OptimismSepolia', icon: Icon.ETH, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, wrappedAsset: 'WETHoptimism_sepolia', @@ -313,7 +313,7 @@ export const TESTNET_TOKENS: TokensConfig = { chain: 'OptimismSepolia', address: '0x4200000000000000000000000000000000000006', }, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', color: '#5794EC', decimals: 18, }, @@ -322,7 +322,7 @@ export const TESTNET_TOKENS: TokensConfig = { symbol: 'ETH', nativeChain: 'Scroll', icon: Icon.SCROLL, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', decimals: 18, wrappedAsset: 'WETHscroll', }, @@ -335,7 +335,7 @@ export const TESTNET_TOKENS: TokensConfig = { chain: 'Scroll', address: '0x5300000000000000000000000000000000000004', }, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', decimals: 18, }, ETHblast: { @@ -343,7 +343,7 @@ export const TESTNET_TOKENS: TokensConfig = { symbol: 'ETH', nativeChain: 'Blast', icon: Icon.BLAST, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', decimals: 18, wrappedAsset: 'WETHblast', }, @@ -356,7 +356,7 @@ export const TESTNET_TOKENS: TokensConfig = { chain: 'Blast', address: '0x9D020B1697035d9d54f115194c9e04a1e4Eb9aF7', }, - coinGeckoId: 'Ethereum', + coinGeckoId: 'ethereum', decimals: 18, }, OKB: { diff --git a/wormhole-connect/src/routes/operator.ts b/wormhole-connect/src/routes/operator.ts index 776ca4b16..61bf5ade3 100644 --- a/wormhole-connect/src/routes/operator.ts +++ b/wormhole-connect/src/routes/operator.ts @@ -11,6 +11,12 @@ import { NttRoute, } from '@wormhole-foundation/sdk-route-ntt'; +import { AutomaticTokenBridgeRouteV3 } from '@xlabs-xyz/arbitrary-token-transfer-route'; + +import '@xlabs-xyz/arbitrary-token-transfers-definitions'; +import '@xlabs-xyz/arbitrary-token-transfer-evm-route'; +import '@xlabs-xyz/arbitrary-token-transfer-solana-route'; + import '@wormhole-foundation/sdk-definitions-ntt'; import '@wormhole-foundation/sdk-evm-ntt'; import '@wormhole-foundation/sdk-solana-ntt'; @@ -27,6 +33,7 @@ type forEachCallback = (name: string, route: SDKv2Route) => T; export const DEFAULT_ROUTES = [ routes.AutomaticCCTPRoute, routes.CCTPRoute, + AutomaticTokenBridgeRouteV3, routes.AutomaticTokenBridgeRoute, routes.TokenBridgeRoute, routes.AutomaticPorticoRoute, diff --git a/wormhole-connect/src/routes/sdkv2/route.ts b/wormhole-connect/src/routes/sdkv2/route.ts index 745ad021d..064c1b4ad 100644 --- a/wormhole-connect/src/routes/sdkv2/route.ts +++ b/wormhole-connect/src/routes/sdkv2/route.ts @@ -36,6 +36,7 @@ export class SDKv2Route { this.IS_TOKEN_BRIDGE_ROUTE = [ 'ManualTokenBridge', 'AutomaticTokenBridge', + 'AutomaticTokenBridgeV3', 'CosmosGateway', ].includes(rc.meta.name); } diff --git a/wormhole-connect/vite.config.ts b/wormhole-connect/vite.config.ts index fd56d3a52..3e1ee835b 100644 --- a/wormhole-connect/vite.config.ts +++ b/wormhole-connect/vite.config.ts @@ -60,6 +60,7 @@ const resolve = { 'process/': 'process', 'buffer/': 'buffer', }, + preserveSymlinks: true, }; const plugins = [ @@ -140,6 +141,10 @@ export default defineConfig(({ command, mode }) => { output, external, }, + sourcemap: 'inline', + }, + css: { + devSourcemap: true, }, plugins, optimizeDeps, From d0d124c24f70de7112705cfb787113d9d9318745 Mon Sep 17 00:00:00 2001 From: M-Picco Date: Wed, 30 Oct 2024 10:51:43 -0300 Subject: [PATCH 2/3] Bump package versions --- wormhole-connect/package-lock.json | 88 +++++++++++++----------------- wormhole-connect/package.json | 15 ++--- 2 files changed, 41 insertions(+), 62 deletions(-) diff --git a/wormhole-connect/package-lock.json b/wormhole-connect/package-lock.json index 90284a9d2..d8afd9dff 100644 --- a/wormhole-connect/package-lock.json +++ b/wormhole-connect/package-lock.json @@ -46,10 +46,10 @@ "@xlabs-libs/wallet-aggregator-sei": "^0.0.1-alpha.14", "@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.15", "@xlabs-libs/wallet-aggregator-sui": "^0.0.1-alpha.10", - "@xlabs-xyz/arbitrary-token-transfer-evm-route": "^0.0.1-alpha.5", - "@xlabs-xyz/arbitrary-token-transfer-route": "^0.0.1-alpha.4", - "@xlabs-xyz/arbitrary-token-transfer-solana-route": "^0.0.1-alpha.4", - "@xlabs-xyz/arbitrary-token-transfers-definitions": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfer-evm-route": "^0.0.1-alpha.6", + "@xlabs-xyz/arbitrary-token-transfer-route": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfer-solana-route": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "^0.0.1-alpha.6", "aptos": "1.5.0", "axios": "^1.2.4", "binary-parser": "^2.2.1", @@ -15267,49 +15267,36 @@ } }, "node_modules/@xlabs-xyz/arbitrary-token-transfer-evm-route": { - "version": "0.0.1-alpha5", - "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-evm-route/-/arbitrary-token-transfer-evm-route-0.0.1-alpha5.tgz", - "integrity": "sha512-a9oPkiU/1ydnyvMLVeXdA+2rUdzdADnkIgeei/M8FW7dUKzpXERZ91qabds7WtKQnZwaubtQZWmsMdHjdYgwrQ==", + "version": "0.0.1-alpha6", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-evm-route/-/arbitrary-token-transfer-evm-route-0.0.1-alpha6.tgz", + "integrity": "sha512-vRd1FrC8OmnrGbvLxooO8sODetk+jUxRh0aSO9auws8YU9a92fcFqY9ii5gm6eGnziE0o1xihG7k9WhmWGQ0Rw==", "dependencies": { "@wormhole-foundation/sdk-base": "^0.12.0", "@wormhole-foundation/sdk-definitions": "^0.12.0", "@wormhole-foundation/sdk-evm": "^0.12.0", - "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha6", "@xlabs-xyz/evm-arbitrary-token-transfers": "0.0.2-alpha1", "ethers": "^6.13.3" } }, "node_modules/@xlabs-xyz/arbitrary-token-transfer-route": { - "version": "0.0.1-alpha4", - "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-route/-/arbitrary-token-transfer-route-0.0.1-alpha4.tgz", - "integrity": "sha512-zMBAY8SdGyq3yI5eieog7tCPud6EIcaJ6MamcvsLzpfgJHLxUhwbXl3ktWxiiI7/53k4w9yPEf1RyH5drPvS8w==", + "version": "0.0.1-alpha5", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-route/-/arbitrary-token-transfer-route-0.0.1-alpha5.tgz", + "integrity": "sha512-gVViC3IbJv7NiISMyTtVLkVTCgVVwMZBGz83gXJ452xIwG4SxfBQwlfoRlVBb3+PKAb68KLwTmTruZBoICl1ig==", "dependencies": { "@wormhole-foundation/sdk-base": "^0.12.0", "@wormhole-foundation/sdk-connect": "^0.12.0", "@wormhole-foundation/sdk-definitions": "^0.12.0", - "@xlabs-xyz/arbitrary-token-transfer-evm-route": "0.0.1-alpha4", - "@xlabs-xyz/arbitrary-token-transfer-solana-route": "0.0.1-alpha4", - "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", - "ethers": "^6.13.3" - } - }, - "node_modules/@xlabs-xyz/arbitrary-token-transfer-route/node_modules/@xlabs-xyz/arbitrary-token-transfer-evm-route": { - "version": "0.0.1-alpha4", - "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-evm-route/-/arbitrary-token-transfer-evm-route-0.0.1-alpha4.tgz", - "integrity": "sha512-hJG1QG3NJEuy2q+nwtNBF98uN9+wwzOGn+KRUepCeJ8UCK1YjwQdArV4tRaZNWkFCbZXbciRPXcfo6tQGb3/xg==", - "dependencies": { - "@wormhole-foundation/sdk-base": "^0.12.0", - "@wormhole-foundation/sdk-definitions": "^0.12.0", - "@wormhole-foundation/sdk-evm": "^0.12.0", - "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", - "@xlabs-xyz/evm-arbitrary-token-transfers": "0.0.2-alpha1", + "@xlabs-xyz/arbitrary-token-transfer-evm-route": "0.0.1-alpha6", + "@xlabs-xyz/arbitrary-token-transfer-solana-route": "0.0.1-alpha5", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha6", "ethers": "^6.13.3" } }, "node_modules/@xlabs-xyz/arbitrary-token-transfer-solana-route": { - "version": "0.0.1-alpha4", - "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-solana-route/-/arbitrary-token-transfer-solana-route-0.0.1-alpha4.tgz", - "integrity": "sha512-xy+sOFTPFBVHV+6KCq0J6dLtzQWyPafQ5hHwDkLQ/DvEQFjhYJ+wM6OCpDoTP/vjjyiDwh2JuF4Zl0053nrD8Q==", + "version": "0.0.1-alpha5", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfer-solana-route/-/arbitrary-token-transfer-solana-route-0.0.1-alpha5.tgz", + "integrity": "sha512-jp8ICWfhVPg6WoM63NOvHBYiA34W8DXaxc//AASofXYNkdJF8NBfNIB1XeaFVZH6pZWcnNzaoM++Bl3Nzwe2JQ==", "dependencies": { "@coral-xyz/anchor": "^0.30.1", "@solana/spl-token": "0.3.9", @@ -15317,8 +15304,8 @@ "@wormhole-foundation/sdk-base": "^0.12.0", "@wormhole-foundation/sdk-definitions": "^0.12.0", "@wormhole-foundation/sdk-solana": "^0.12.0", - "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha5", - "@xlabs-xyz/solana-arbitrary-token-transfers": "0.0.2-alpha6" + "@xlabs-xyz/arbitrary-token-transfers-definitions": "0.0.1-alpha6", + "@xlabs-xyz/solana-arbitrary-token-transfers": "0.0.2-alpha7" } }, "node_modules/@xlabs-xyz/arbitrary-token-transfer-solana-route/node_modules/@coral-xyz/anchor": { @@ -15378,9 +15365,9 @@ } }, "node_modules/@xlabs-xyz/arbitrary-token-transfers-definitions": { - "version": "0.0.1-alpha5", - "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfers-definitions/-/arbitrary-token-transfers-definitions-0.0.1-alpha5.tgz", - "integrity": "sha512-KAUaLFcBcRDYNLPQvH9c0PceSv6J4oRi3BpGQrfCpWDdYtwOLVugfJjslUWok7MV1rnx7yYUsapCyGgi87lXXA==", + "version": "0.0.1-alpha6", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/arbitrary-token-transfers-definitions/-/arbitrary-token-transfers-definitions-0.0.1-alpha6.tgz", + "integrity": "sha512-P4ouVU5ca5E+3e9LlufQyjhFqs5uK17gwdnLW5jIfKgxZCeGA8hhXAFm7weOfjh1HvDK3pQeThhAPR4GC5qXpA==", "dependencies": { "@wormhole-foundation/sdk-base": "^0.12.0", "@wormhole-foundation/sdk-definitions": "^0.12.0", @@ -15399,9 +15386,9 @@ } }, "node_modules/@xlabs-xyz/solana-arbitrary-token-transfers": { - "version": "0.0.2-alpha6", - "resolved": "https://registry.npmjs.org/@xlabs-xyz/solana-arbitrary-token-transfers/-/solana-arbitrary-token-transfers-0.0.2-alpha6.tgz", - "integrity": "sha512-JrQAksKuQAKNrIfhRQITnQdBM6uemh/VSM++yIM2XQhyvCMZm49K57PS2UztLd9ouL1P+OwLgJyczIQqnM9UeA==", + "version": "0.0.2-alpha7", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/solana-arbitrary-token-transfers/-/solana-arbitrary-token-transfers-0.0.2-alpha7.tgz", + "integrity": "sha512-2bR02ZhoMlOl/1W7K7TNYfS/so0ZNEISqcID31tazL2Z8WoiEup5dRmAuR1h4pdqj3wXYaldpJqe3d6MWE5sgw==", "dependencies": { "@coral-xyz/anchor": "^0.30.1", "@solana/web3.js": "^1.95.3", @@ -15409,7 +15396,7 @@ "@wormhole-foundation/sdk-definitions": "^0.12.0", "@wormhole-foundation/sdk-solana": "^0.12.0", "@wormhole-foundation/sdk-solana-tokenbridge": "^0.12.0", - "@xlabs/solana-price-oracle-sdk": "0.0.14", + "@xlabs-xyz/solana-price-oracle-sdk": "0.0.14", "borsh": "^2.0.0" } }, @@ -15458,11 +15445,10 @@ "resolved": "https://registry.npmjs.org/borsh/-/borsh-2.0.0.tgz", "integrity": "sha512-kc9+BgR3zz9+cjbwM8ODoUB4fs3X3I5A/HtX7LZKxCLaMrEeDFoBpnhZY//DTS1VZBSs6S5v46RZRbZjRFspEg==" }, - "node_modules/@xlabs/solana-price-oracle-sdk": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk": { "version": "0.0.14", - "resolved": "https://npm.pkg.github.com/download/@xlabs/solana-price-oracle-sdk/0.0.14/30109786217046880003ced1cef34eda8337c43f", - "integrity": "sha512-bVecT9AmPLAtasbS0VzKS7TkzVDDDw1c4Bn/tPJR9zSu0EB3Ey48Cel14d8l3FeZ9GZx4KsjsHmSM+673WIJ1g==", - "license": "ISC", + "resolved": "https://registry.npmjs.org/@xlabs-xyz/solana-price-oracle-sdk/-/solana-price-oracle-sdk-0.0.14.tgz", + "integrity": "sha512-kTot1e3YTN6K2/PZwm7Bf/jH2N0xSWmYvRfW2HsnQ/HXu5V/UDB7IlUVdTeDg8lDgWGHOcpk9gdV64hSAfHPxw==", "dependencies": { "@coral-xyz/anchor": "^0.30.1", "@solana/web3.js": "^1.95.2", @@ -15471,7 +15457,7 @@ "@wormhole-foundation/sdk-solana": "^0.11" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@coral-xyz/anchor": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@coral-xyz/anchor": { "version": "0.30.1", "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.30.1.tgz", "integrity": "sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==", @@ -15496,7 +15482,7 @@ "node": ">=11" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@coral-xyz/anchor/node_modules/@coral-xyz/borsh": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@coral-xyz/anchor/node_modules/@coral-xyz/borsh": { "version": "0.30.1", "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.30.1.tgz", "integrity": "sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ==", @@ -15511,7 +15497,7 @@ "@solana/web3.js": "^1.68.0" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@solana/spl-token": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@solana/spl-token": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.3.9.tgz", "integrity": "sha512-1EXHxKICMnab35MvvY/5DBc/K/uQAOJCYnDZXw83McCAYUAfi+rwq6qfd6MmITmSTEhcfBcl/zYxmW/OSN0RmA==", @@ -15527,7 +15513,7 @@ "@solana/web3.js": "^1.47.4" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-base": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-base": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-base/-/sdk-base-0.11.0.tgz", "integrity": "sha512-5rf0NStwI6dHF1a1I+RS1tTfld7Cv3zM/AREol1SEock15PLIjSBo5YsBmVn/fxBqvCwYP2rdmL0yCt7bq9Qiw==", @@ -15535,7 +15521,7 @@ "@scure/base": "^1.1.3" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-connect": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-connect": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-connect/-/sdk-connect-0.11.0.tgz", "integrity": "sha512-s3IjAhR7OBiT0RalCPsrKNeVln2i7MpkRCvTpU1iLhARsg5hsWeRUkQBonubMiXCpY+MW6aA1SBr53xZnD5IfA==", @@ -15548,7 +15534,7 @@ "node": ">=16" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-definitions": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-definitions": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-definitions/-/sdk-definitions-0.11.0.tgz", "integrity": "sha512-cD/MjTscEygPgV+RIH7n/TGVYFgF3X7ZSKIqDxCbcKqNsYm3C4TVwGRTWm1d8kMuCRI2umejAsHQ9ge6ZK8Nyw==", @@ -15558,7 +15544,7 @@ "@wormhole-foundation/sdk-base": "0.11.0" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-solana": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-solana": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-solana/-/sdk-solana-0.11.0.tgz", "integrity": "sha512-Nc77bMDTP67RwNsXEV2IGqrPVDJl6xAKg6MSMcBOyV/9qqk9UobhnSicFVVaxirhQ6ceuuD1kZjyAhnpbxx9nw==", @@ -15574,7 +15560,7 @@ "node": ">=16" } }, - "node_modules/@xlabs/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-solana/node_modules/@coral-xyz/anchor": { + "node_modules/@xlabs-xyz/solana-price-oracle-sdk/node_modules/@wormhole-foundation/sdk-solana/node_modules/@coral-xyz/anchor": { "version": "0.29.0", "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.29.0.tgz", "integrity": "sha512-eny6QNG0WOwqV0zQ7cs/b1tIuzZGmP7U7EcH+ogt4Gdbl8HDmIYVMh/9aTmYZPaFWjtUaI8qSn73uYEXWfATdA==", diff --git a/wormhole-connect/package.json b/wormhole-connect/package.json index 3a003cbf7..d1a8ec2c0 100644 --- a/wormhole-connect/package.json +++ b/wormhole-connect/package.json @@ -55,10 +55,10 @@ "@xlabs-libs/wallet-aggregator-sei": "^0.0.1-alpha.14", "@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.15", "@xlabs-libs/wallet-aggregator-sui": "^0.0.1-alpha.10", - "@xlabs-xyz/arbitrary-token-transfer-evm-route": "^0.0.1-alpha.5", - "@xlabs-xyz/arbitrary-token-transfer-route": "^0.0.1-alpha.4", - "@xlabs-xyz/arbitrary-token-transfer-solana-route": "^0.0.1-alpha.4", - "@xlabs-xyz/arbitrary-token-transfers-definitions": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfer-evm-route": "^0.0.1-alpha.6", + "@xlabs-xyz/arbitrary-token-transfer-route": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfer-solana-route": "^0.0.1-alpha.5", + "@xlabs-xyz/arbitrary-token-transfers-definitions": "^0.0.1-alpha.6", "aptos": "1.5.0", "axios": "^1.2.4", "binary-parser": "^2.2.1", @@ -164,13 +164,6 @@ }, "vite-plugin-dts": { "vue-tsc": "2.0.0" - }, - "@xlabs-xyz/arbitrary-token-transfer-solana-route": { - "@xlabs-xyz/solana-arbitrary-token-transfers": "^0.0.2-alpha6", - "@xlabs/solana-price-oracle-sdk": "^0.0.14" - }, - "@xlabs-xyz/solana-arbitrary-token-transfers": { - "@xlabs/solana-price-oracle-sdk": "^0.0.14" } } } From 747ae65b54b229d4727b5a115d4dcacc5b450f80 Mon Sep 17 00:00:00 2001 From: M-Picco Date: Wed, 30 Oct 2024 18:53:27 -0300 Subject: [PATCH 3/3] Remove vite config sourcemap changes --- wormhole-connect/vite.config.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wormhole-connect/vite.config.ts b/wormhole-connect/vite.config.ts index 3e1ee835b..84cb71758 100644 --- a/wormhole-connect/vite.config.ts +++ b/wormhole-connect/vite.config.ts @@ -141,10 +141,6 @@ export default defineConfig(({ command, mode }) => { output, external, }, - sourcemap: 'inline', - }, - css: { - devSourcemap: true, }, plugins, optimizeDeps,