-
-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: @coinbase/wallet-sdk upgrade #3784
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/connectors/package.json
Outdated
@@ -45,7 +45,7 @@ | |||
} | |||
}, | |||
"dependencies": { | |||
"@coinbase/wallet-sdk": "3.9.1", | |||
"@coinbase/wallet-sdk": "4.0.0-beta.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: upgrade to v4 latest when published
What are the breaking changes in v4? |
const reloadOnDisconnect = false | ||
|
||
type Provider = CoinbaseWalletProvider | ||
export function coinbaseWallet(parameters: CoinbaseWalletSDKOptions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep CoinbaseWalletParameters
around, even if it just proxies CoinbaseWalletSDKOptions
. Gives us more control over the connector's public API.
We need a |
hi @nateReiners we are also using |
Hey @glitch-txs To remove the option to connect via mobile, dapps can pass in |
Hey Derek can you say more why the disable option is needed? |
@nateReiners thanks for the quick response! My question is if the SDK will throw an error if I pass it down the |
@arein Yep, just added it to the PR description. gzipped size was reduced by ~20 KB 🎉 |
Curious why you'd want to disable smart wallets? Shouldn't Web3Modal be agnostic in this sense? I see iOS Coinbase Wallet via Web3Modal the same as what Coinbase Smart Wallet via Web3Modal would be. |
No the SDK wont throw an error. All deprecated options including |
@jxom @wilsoncusack I can imagine some dapps not wanting this so I think it makes sense to allow them to configure. What rationale went into the option to exclusively use the smart wallet. |
Hey just wanted to drop an update here since I know this has been sitting for some time. We have been making some SDK interface tweaks and I wanted to wait until all of those decisions are solidified before cleaning up this PR. We are adding the ability to disable smart wallet as part of these tweaks via an 'eoaOnly' option cc: @arein |
4e2d00e
to
72a25ee
Compare
8c21357
to
94b5543
Compare
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: to minimize diff
* @default false | ||
*/ | ||
reloadOnDisconnect?: boolean | undefined | ||
Mutable<Omit<ConstructorParameters<typeof CoinbaseWalletSDK>[0], "appChainIds">> & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mutable<Omit<ConstructorParameters<typeof CoinbaseWalletSDK>[0], "appChainIds">> & { | |
Mutable< | |
Omit< | |
ConstructorParameters<typeof CoinbaseWalletSDK>[0], | |
'appChainIds' // remove property and use `config.chains` | |
> | |
> & { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs will need updating too
} | ||
'appChainIds' // set via wagmi config | ||
> & { | ||
preference?: Preference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's inline Preference
preference?: Preference | |
preference?: Parameters<CoinbaseWalletSDK['makeWeb3Provider']>[0] | undefined |
type Preference = Parameters<CoinbaseWalletSDK['makeWeb3Provider']>[0] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type Preference = Parameters<CoinbaseWalletSDK['makeWeb3Provider']>[0] |
Closing in favor of #3928 |
Description
What changes are made in this PR? Is it a feature or a bug fix?
@coinbase/wallet-sdk
from v3 to v4Additional Information
Bundle size has been cut in half!
https://bundlephobia.com/package/@coinbase/wallet-sdk@4.0.0
Before submitting this issue, please make sure you do the following.