diff --git a/package.json b/package.json index db88d926..71e2dcb4 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ "prettier --write" ], "src/content/**/*.mdx": [ - "remark \"src/content/**/*.{md,mdx}\" --output" + "remark --output --" ] } } diff --git a/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx b/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx index 73a1fd0a..89d2c04d 100644 --- a/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx +++ b/src/content/docs/build/sdks/wallet-adapter/x-chain-accounts.mdx @@ -38,8 +38,6 @@ The computation of the DAA address is done using the `authenticationFunction` an ### How to integrate x-chain accounts in my dApp? -Currently, the adapter supports Solana and EVM chains - @@ -89,10 +87,10 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` - 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider + 3. Set crossChainWallets dapp config prop to true for the AptosWalletAdapterProvider ```tsx filename="WalletProvider.tsx" {children} - + ``` @@ -149,7 +147,69 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + + ``` + + 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider + + ```tsx filename="WalletProvider.tsx" + + {children} + + ``` + + + + {/* Sui */} + + + The wallet adapter follows the [Sui Wallet Standard](https://docs.sui.io/standards/wallet-standard) to discover wallets. + Currently, the wallets that have been tested and support cross-chain accounts are: + + | | Aptos Devnet | Aptos Testnet | Aptos Mainnet | + | ------------ | ------------ | ------------- | ------------- | + | Backpack | ✅ | ✅ | ✅ | + | Bitget | ✅ | ✅ | ✅ | + | Ethos | ✅ | ✅ | ✅ | + | Nightly | ✅ | ✅ | ✅ | + | OKX | ✅ | ✅ | ✅ | + | Phantom | ✅ | ✅ | ✅ | + | Slush | ✅ | ✅ | ✅ | + | Trust Wallet | ✅ | ✅ | ✅ | + + Supporting x-chain accounts in a dApp requires only a 2-step installation process. + + + 1. Install the @aptos-labs/derived-wallet-sui package + + ```shellscript + npm install @aptos-labs/derived-wallet-sui + ``` + + 2. Import the setupAutomaticSuiWalletDerivation function + + Once you have installed the `@aptos-labs/derived-wallet-sui` package, you can import and use it. + In the same file where you import the other wallets, such as `WalletProvider.tsx`, you can add the following: + + ```tsx filename="WalletProvider.tsx" + import { setupAutomaticSuiWalletDerivation } from "@aptos-labs/derived-wallet-sui"; + + setupAutomaticSuiWalletDerivation({ defaultNetwork: Network.TESTNET }); // this is the Aptos network your dapp is working with + + ... + + + {children} + ``` 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider @@ -162,7 +222,7 @@ Currently, the adapter supports Solana and EVM chains }} > {children} - + ``` diff --git a/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx b/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx index e37ca04b..083516cf 100644 --- a/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx +++ b/src/content/docs/es/build/sdks/wallet-adapter/x-chain-accounts.mdx @@ -39,8 +39,6 @@ El cálculo de la dirección DAA se hace usando la `authenticationFunction` y la ### ¿Cómo integrar cuentas x-chain en mi dApp? -Actualmente, el adaptador soporta cadenas Solana y EVM - @@ -86,7 +84,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` 3. Establecer la prop crossChainWallets dapp config a true para el AptosWalletAdapterProvider @@ -99,7 +97,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` @@ -146,7 +144,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ``` 3. Set crossChainWallets dapp config prop to true fot the AptosWalletAdapterProvider @@ -159,7 +157,7 @@ Actualmente, el adaptador soporta cadenas Solana y EVM }} > {children} - + ```