@@ -7,10 +7,12 @@ import {
77} from "@wormhole-foundation/sdk" ;
88import evm from "@wormhole-foundation/sdk/platforms/evm" ;
99import solana from "@wormhole-foundation/sdk/platforms/solana" ;
10+ import sui from "@wormhole-foundation/sdk/platforms/sui" ;
1011
1112// register protocol implementations
1213import "@wormhole-foundation/sdk-evm-ntt" ;
1314import "@wormhole-foundation/sdk-solana-ntt" ;
15+ import "@wormhole-foundation/sdk-sui-ntt" ;
1416import { NttExecutorRoute , nttExecutorRoute } from "@wormhole-foundation/sdk-route-ntt" ;
1517import { TEST_NTT_TOKENS } from "./utils/const" ;
1618import { getSigner , convertToExecutorConfig } from "./utils/helpers" ;
@@ -20,10 +22,10 @@ import { routes } from "@wormhole-foundation/sdk";
2022( async function ( ) {
2123 // TODO: change to "Mainnet" for mainnet
2224 const network = "Testnet" ;
23- const wh = new Wormhole ( network , [ solana . Platform , evm . Platform ] , {
25+ const wh = new Wormhole ( network , [ solana . Platform , evm . Platform , sui . Platform ] , {
2426 // optional way to use private RPCs, especially recommended for mainnet
2527 // "chains": {
26- // "Monad ": {
28+ // "Sui ": {
2729 // "rpc": "http://127.0.0.1:8546"
2830 // },
2931 // "Solana": {
@@ -32,10 +34,10 @@ import { routes } from "@wormhole-foundation/sdk";
3234 // }
3335 } ) ;
3436 const src = wh . getChain ( "Solana" ) ;
35- const dst = wh . getChain ( "Monad " ) ;
37+ const dst = wh . getChain ( "Sui " ) ;
3638 const srcSigner = await getSigner ( src ) ;
3739 // TODO: change destination address
38- const dstAddress : ChainAddress = Wormhole . chainAddress ( "Monad " , "0x5e8C54C443E8c42ccA73Fa9399C8D61C94aD9f36 " ) ;
40+ const dstAddress : ChainAddress = Wormhole . chainAddress ( "Sui " , "0xa43 " ) ;
3941 console . log ( "Source signer address:" , srcSigner . address . address ) ;
4042
4143 const srcNtt = await src . getProtocol ( "Ntt" , {
@@ -70,7 +72,7 @@ import { routes } from "@wormhole-foundation/sdk";
7072 } ) ;
7173
7274 //TODO: change to token amount that should be transferred
73- const amtString = "0.07 " ;
75+ const amtString = "1.7 " ;
7476 const amt = amount . units (
7577 amount . parse ( amtString , await srcNtt . getTokenDecimals ( ) )
7678 ) ;
0 commit comments