From 8f96bc8feff7ae02b370a72b30e7a86926211440 Mon Sep 17 00:00:00 2001 From: kev1n-peters <96065607+kev1n-peters@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:11:13 -0600 Subject: [PATCH] ntt input amount truncate excess decimals fix (#3041) Fixes an issue that prevents users from transferring ntt amounts with more fractional digits than the destination chain supports. Mostly affected transfers from an EVM chain to Solana when the max button was pressed and included a lot of dust. bump ntt sdk for this fix: https://github.com/wormhole-foundation/native-token-transfers/pull/560 --- wormhole-connect/package-lock.json | 42 +++++++++++++++--------------- wormhole-connect/package.json | 8 +++--- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/wormhole-connect/package-lock.json b/wormhole-connect/package-lock.json index 7445a3e4b..7eef9d58d 100644 --- a/wormhole-connect/package-lock.json +++ b/wormhole-connect/package-lock.json @@ -33,11 +33,11 @@ "@solana/web3.js": "^1.95.2", "@wormhole-foundation/sdk": "1.2.0-beta.0", "@wormhole-foundation/sdk-definitions": "1.2.0-beta.0", - "@wormhole-foundation/sdk-definitions-ntt": "^0.5.2", - "@wormhole-foundation/sdk-evm-ntt": "^0.5.2", + "@wormhole-foundation/sdk-definitions-ntt": "^0.6.0-alpha.2", + "@wormhole-foundation/sdk-evm-ntt": "^0.6.0-alpha.2", "@wormhole-foundation/sdk-icons": "^1.0.0", - "@wormhole-foundation/sdk-route-ntt": "^0.5.2", - "@wormhole-foundation/sdk-solana-ntt": "^0.5.2", + "@wormhole-foundation/sdk-route-ntt": "^0.6.0-alpha.2", + "@wormhole-foundation/sdk-solana-ntt": "^0.6.0-alpha.2", "@xlabs-libs/wallet-aggregator-aptos": "^0.0.1-alpha.14", "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.18", "@xlabs-libs/wallet-aggregator-evm": "^0.0.2-alpha.2", @@ -13537,9 +13537,9 @@ } }, "node_modules/@wormhole-foundation/sdk-definitions-ntt": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-definitions-ntt/-/sdk-definitions-ntt-0.5.2.tgz", - "integrity": "sha512-D5SI0OyajEPHZ/xWdmb7YBcV2PIfNMh/baNgtSVo5evZGV14QtAmO2IKebkSQMPXls5ktmFPZxlBBbPfIESzOQ==", + "version": "0.6.0-alpha.2", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-definitions-ntt/-/sdk-definitions-ntt-0.6.0-alpha.2.tgz", + "integrity": "sha512-ejFXLdSFfPoRIzKBfcOGtewxA3UzRMB0ZzO8SnetE3VgAnHnem/OwRdYeETUE6y2cW1KQvabiXzoD/98Xcn18A==", "peerDependencies": { "@wormhole-foundation/sdk-base": "^1.0.0", "@wormhole-foundation/sdk-definitions": "^1.0.0" @@ -13587,12 +13587,12 @@ } }, "node_modules/@wormhole-foundation/sdk-evm-ntt": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-evm-ntt/-/sdk-evm-ntt-0.5.2.tgz", - "integrity": "sha512-kaBKcI9dso3Iue6wSdxvFkkjwhVBpkhdLM2CUGF7cBPOPWFiRDiDdXikgLTL7gvlDP7wl9FqbFrReEQOFoYqxA==", + "version": "0.6.0-alpha.2", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-evm-ntt/-/sdk-evm-ntt-0.6.0-alpha.2.tgz", + "integrity": "sha512-XNtkOZEgKxRMDF49/bAwVWfLBEFuKc/qdmFeZA33PCbYrn+SkrCIEB5NDx7Ir5V0SCHXCveIdbCOawSh3B1Vww==", "license": "Apache-2.0", "dependencies": { - "@wormhole-foundation/sdk-definitions-ntt": "0.5.2", + "@wormhole-foundation/sdk-definitions-ntt": "0.6.0-alpha.2", "ethers": "^6.5.1" }, "engines": { @@ -13654,14 +13654,14 @@ } }, "node_modules/@wormhole-foundation/sdk-route-ntt": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-route-ntt/-/sdk-route-ntt-0.5.2.tgz", - "integrity": "sha512-GpvJUJOdD9zfOLG59Z74TcPOLNIHbyYCPN+ZHGfIgWOIT6hGvn4TXBwpSZlhpR9jS0V7eNbJXzCPiex5dN5/GQ==", + "version": "0.6.0-alpha.2", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-route-ntt/-/sdk-route-ntt-0.6.0-alpha.2.tgz", + "integrity": "sha512-eXfLgP1AzbM0rv+7I3/KlsskROIdNxU/NB/tfSbUp07VhOWtBcHs9ZluZxBxdjwTnSEz+NzAXtte1It4n6EzHA==", "license": "Apache-2.0", "dependencies": { - "@wormhole-foundation/sdk-definitions-ntt": "0.5.2", - "@wormhole-foundation/sdk-evm-ntt": "0.5.2", - "@wormhole-foundation/sdk-solana-ntt": "0.5.2" + "@wormhole-foundation/sdk-definitions-ntt": "0.6.0-alpha.2", + "@wormhole-foundation/sdk-evm-ntt": "0.6.0-alpha.2", + "@wormhole-foundation/sdk-solana-ntt": "0.6.0-alpha.2" }, "engines": { "node": ">=16" @@ -13737,16 +13737,16 @@ } }, "node_modules/@wormhole-foundation/sdk-solana-ntt": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-solana-ntt/-/sdk-solana-ntt-0.5.2.tgz", - "integrity": "sha512-CMWyj0Jpaq1pqN3iOsVvYJ7hNvhyFgyI2sEKCOThDLIZC5CPnHhkxDhC+wj5vRLbZbHWkIlFYrzjH5V+pdU5IA==", + "version": "0.6.0-alpha.2", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/sdk-solana-ntt/-/sdk-solana-ntt-0.6.0-alpha.2.tgz", + "integrity": "sha512-G4eem0bRzp2hFsPcp9DNWFToyzdIuZPfMFvbQ6JzWD2cfnK30FKfVnQsVWVcYSVYA2HShlQdlCLrX6PV/5QKOw==", "license": "Apache-2.0", "dependencies": { "@coral-xyz/anchor": "0.29.0", "@coral-xyz/borsh": "0.29.0", "@solana/spl-token": "0.4.0", "@solana/web3.js": "^1.95.2", - "@wormhole-foundation/sdk-definitions-ntt": "0.5.2", + "@wormhole-foundation/sdk-definitions-ntt": "0.6.0-alpha.2", "bn.js": "5.2.1" }, "engines": { diff --git a/wormhole-connect/package.json b/wormhole-connect/package.json index 510848f36..cf66d7778 100644 --- a/wormhole-connect/package.json +++ b/wormhole-connect/package.json @@ -42,11 +42,11 @@ "@solana/web3.js": "^1.95.2", "@wormhole-foundation/sdk": "1.2.0-beta.0", "@wormhole-foundation/sdk-definitions": "1.2.0-beta.0", - "@wormhole-foundation/sdk-definitions-ntt": "^0.5.2", - "@wormhole-foundation/sdk-evm-ntt": "^0.5.2", + "@wormhole-foundation/sdk-definitions-ntt": "^0.6.0-alpha.2", + "@wormhole-foundation/sdk-evm-ntt": "^0.6.0-alpha.2", "@wormhole-foundation/sdk-icons": "^1.0.0", - "@wormhole-foundation/sdk-route-ntt": "^0.5.2", - "@wormhole-foundation/sdk-solana-ntt": "^0.5.2", + "@wormhole-foundation/sdk-route-ntt": "^0.6.0-alpha.2", + "@wormhole-foundation/sdk-solana-ntt": "^0.6.0-alpha.2", "@xlabs-libs/wallet-aggregator-aptos": "^0.0.1-alpha.14", "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.18", "@xlabs-libs/wallet-aggregator-evm": "^0.0.2-alpha.2",