Skip to content
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

[UPDATE] - Update coinbase wallet dependencies #2093

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/src/routes/docs/[...4]wallets/[...6]coinbase/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ npm install @web3-onboard/coinbase

```typescript
type CoinbaseWalletOptions = {
darkMode: boolean // default = false
/** @optional Use dark theme */
darkMode?: boolean
/** @optional whether to connect mobile web app via WalletLink, defaults to false */
enableMobileWalletLink?: boolean
/** @optional whether or not to reload dapp automatically after disconnect, defaults to true */
reloadOnDisconnect?: boolean
}
```

Expand Down
7 changes: 6 additions & 1 deletion packages/coinbase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ See [Coinbase Wallet Developer Docs](https://docs.cloud.coinbase.com/wallet-sdk/

```typescript
type CoinbaseWalletOptions = {
darkMode: boolean // default = false
/** @optional Use dark theme */
darkMode?: boolean
/** @optional whether to connect mobile web app via WalletLink, defaults to false */
enableMobileWalletLink?: boolean
/** @optional whether or not to reload dapp automatically after disconnect, defaults to true */
reloadOnDisconnect?: boolean
}
```

Expand Down
4 changes: 2 additions & 2 deletions packages/coinbase/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/coinbase",
"version": "2.2.6",
"version": "2.2.7-alpha.1",
"description": "Coinbase SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
"keywords": [
"Ethereum",
Expand Down Expand Up @@ -58,7 +58,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"@coinbase/wallet-sdk": "^3.7.2",
"@coinbase/wallet-sdk": "^3.9.3",
"@web3-onboard/common": "^2.3.3"
}
}
13 changes: 11 additions & 2 deletions packages/coinbase/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { WalletInit } from '@web3-onboard/common'

function coinbaseWallet({
darkMode = false
darkMode = false,
enableMobileWalletLink = false,
reloadOnDisconnect = true
}: {
/** @optional Use dark theme */
darkMode?: boolean
/** @optional whether to connect mobile web app via WalletLink, defaults to false */
enableMobileWalletLink?: boolean
/** @optional whether or not to reload dapp automatically after disconnect, defaults to true */
reloadOnDisconnect?: boolean
} = {}): WalletInit {
return () => {
return {
Expand Down Expand Up @@ -31,7 +38,9 @@ function coinbaseWallet({
const instance = new CoinbaseWalletSDKConstructor({
appName: name || '',
appLogoUrl,
darkMode
darkMode,
enableMobileWalletLink,
reloadOnDisconnect
})

const coinbaseWalletProvider = instance.makeWeb3Provider(
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@web3-onboard/blocto": "^2.0.1-alpha.1",
"@web3-onboard/capsule": "2.0.1",
"@web3-onboard/cede-store": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.6",
"@web3-onboard/coinbase": "^2.2.7-alpha.1",
"@web3-onboard/core": "^2.21.3-alpha.2",
"@web3-onboard/dcent": "^2.2.7",
"@web3-onboard/enkrypt": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@
const onboard = Onboard({
wallets: [
metamaskSDKWallet,
coinbaseWallet,
injected,
ledger,
trezor,
walletConnect,
coinbaseWallet,
phantom,
safe,
trust,
Expand Down
38 changes: 37 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@
dependencies:
"@chakra-ui/utils" "1.10.4"

"@coinbase/wallet-sdk@^3.6.6", "@coinbase/wallet-sdk@^3.7.2":
"@coinbase/wallet-sdk@^3.6.6":
version "3.7.2"
resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.7.2.tgz#7a89bd9e3a06a1f26d4480d8642af33fb0c7e3aa"
integrity sha512-lIGvXMsgpsQWci/XOMQIJ2nIZ8JUy/L+bvC0wkRaYarr0YylwpXrJ2gRM3hCXPS477pkyO7N/kSiAoRgEXUdJQ==
Expand All @@ -1323,6 +1323,21 @@
stream-browserify "^3.0.0"
util "^0.12.4"

"@coinbase/wallet-sdk@^3.9.3":
version "3.9.3"
resolved "https://registry.yarnpkg.com/@coinbase/wallet-sdk/-/wallet-sdk-3.9.3.tgz#daf10cb0c85d0363315b7270cb3f02bedc408aab"
integrity sha512-N/A2DRIf0Y3PHc1XAMvbBUu4zisna6qAdqABMZwBMNEfWrXpAwx16pZGkYCLGE+Rvv1edbcB2LYDRnACNcmCiw==
dependencies:
bn.js "^5.2.1"
buffer "^6.0.3"
clsx "^1.2.1"
eth-block-tracker "^7.1.0"
eth-json-rpc-filters "^6.0.0"
eventemitter3 "^5.0.1"
keccak "^3.0.3"
preact "^10.16.0"
sha.js "^2.4.11"

"@cosmjs/amino@0.31.0":
version "0.31.0"
resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.31.0.tgz#49b33047295002804ad51bdf7ec0c2c97f1b553d"
Expand Down Expand Up @@ -7912,6 +7927,11 @@ clsx@^1.1.0:
resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.1.1.tgz#98b3134f9abbdf23b2663491ace13c5c03a73188"
integrity sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==

clsx@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.2.1.tgz#0ddc4a20a549b59c93a4116bb26f5294ca17dc12"
integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==

cluster-key-slot@^1.1.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz#88ddaa46906e303b5de30d3153b7d9fe0a0c19ac"
Expand Down Expand Up @@ -9340,6 +9360,17 @@ eth-block-tracker@^7.0.0:
json-rpc-random-id "^1.0.1"
pify "^3.0.0"

eth-block-tracker@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/eth-block-tracker/-/eth-block-tracker-7.1.0.tgz#dfc16085c6817cc30caabba381deb8d204c1c766"
integrity sha512-8YdplnuE1IK4xfqpf4iU7oBxnOYAc35934o083G8ao+8WM8QQtt/mVlAY6yIAdY1eMeLqg4Z//PZjJGmWGPMRg==
dependencies:
"@metamask/eth-json-rpc-provider" "^1.0.0"
"@metamask/safe-event-emitter" "^3.0.0"
"@metamask/utils" "^5.0.1"
json-rpc-random-id "^1.0.1"
pify "^3.0.0"

eth-crypto@^2.1.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/eth-crypto/-/eth-crypto-2.2.0.tgz#8fa9bd7b04ee256d0e755d73e9a0a6c7e977c5b9"
Expand Down Expand Up @@ -13341,6 +13372,11 @@ preact@^10.12.0:
resolved "https://registry.yarnpkg.com/preact/-/preact-10.19.2.tgz#841797620dba649aaac1f8be42d37c3202dcea8b"
integrity sha512-UA9DX/OJwv6YwP9Vn7Ti/vF80XL+YA5H2l7BpCtUr3ya8LWHFzpiO5R+N7dN16ujpIxhekRFuOOF82bXX7K/lg==

preact@^10.16.0:
version "10.19.7"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.19.7.tgz#92495eead60ab42689bcddd8428d30d51ee4a489"
integrity sha512-IJOW6cQN1fwfC17HfNOqUtAGyB8wAYshuC+jG1JiL/1+sC4yVyuA3IcF0N9vdodMJjW/lbuEF5qFsJqGNcbHbw==

preact@^10.5.9:
version "10.6.6"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.6.6.tgz#f1899bc8dab7c0788b858481532cb3b5d764a520"
Expand Down
Loading