Skip to content

Commit

Permalink
chore: add changeset, update docs
Browse files Browse the repository at this point in the history
Co-authored-by: Wilson Cusack <wilson.cusack@coinbase.com>
  • Loading branch information
DanielSinclair and wilsoncusack committed May 30, 2024
1 parent fbe9388 commit 96ef7fd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
27 changes: 11 additions & 16 deletions .changeset/little-adults-rhyme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,27 @@
"example": patch
---

Added `preference` property to `coinbaseWallet`. You can now enable coinbase smart wallet feature like so:
The `coinbaseWallet` wallet connector now has a `preference` argument to control whether Smart Wallet is enabled and available for users. Preference based behavior is documented [here](https://www.smartwallet.dev/sdk/makeWeb3Provider#parameters).

Smart Wallet will be enabled by default with `all` in early June, without a further upgrade.

Developers can test Smart Wallet with `sepolia` and `baseSepolia` chains today by setting `smartWalletOnly` like so:

```tsx
import { getDefaultConfig } from '@rainbow-me/rainbowkit';
import { coinbaseWallet } from '@rainbow-me/rainbowkit/wallets';
import {
arbitrum,
base,
mainnet,
optimism,
polygon,
sepolia,
} from 'wagmi/chains';

// Enable coinbase smart wallet feature
// Enable Coinbase Smart Wallet for testing
coinbaseWallet.preference = 'smartWalletOnly';

export const config = getDefaultConfig({
appName: 'RainbowKit demo',
projectId: 'YOUR_PROJECT_ID',
// You must manually specify your wallet list with `wallets` in
// `getDefaultConfig` or `connectorsForWallets` to assign the preference
const config = getDefaultConfig({
/* ... */
wallets: [
{
groupName: 'Popular',
wallets: [coinbaseWallet],
},
],
chains: [mainnet],
/* ... */
});
```
2 changes: 0 additions & 2 deletions packages/rainbowkit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

Smart Wallet and the underlying smart contract is fully compatible with Wagmi, but dApps need to ensure that their offchain signature validation is [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492) compliant to support smart contract wallets. Follow [this guide](https://www.smartwallet.dev/guides/signature-verification) for more information.

Smart Wallet is currently only available for testnets while using RainbowKit in a local development environment. Support for Mainnet and full production rollout will occur automatically later this month.

Coinbase Wallet users on desktop and mobile will now interact with a new connection flow in RainbowKit alongside Smart Wallet.

- 90d6931: Introduced the Enhanced Provider to handle fallback resolutions when a Mainnet provider transport is unavailable.
Expand Down
13 changes: 12 additions & 1 deletion site/data/en-US/docs/custom-wallet-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,21 @@ import { bybitWallet } from '@rainbow-me/rainbowkit/wallets';
import { braveWallet } from '@rainbow-me/rainbowkit/wallets';
```

#### Coinbase Wallet
#### Coinbase

This wallet connector supports both the Coinbase Wallet app and extension, as well as Coinbase Smart Wallet on Web.

A `preference` argument is available to control whether Smart Wallet is enabled and available for users. Preference based behavior is documented [here](https://www.smartwallet.dev/sdk/makeWeb3Provider#parameters).

Smart Wallet will be enabled by default with `all` in early June, without a further upgrade.

Developers can test Smart Wallet with `sepolia` and `baseSepolia` chains today by setting `smartWalletOnly` and including `coinbaseWallet` in their wallet list like so:

```tsx
import { coinbaseWallet } from '@rainbow-me/rainbowkit/wallets';

// Enable Coinbase Smart Wallet for testing
coinbaseWallet.preference = 'smartWalletOnly';
```

#### Compass Wallet
Expand Down

0 comments on commit 96ef7fd

Please sign in to comment.