Skip to content

Commit 63bcc6e

Browse files
committed
Update MetaMask SDK version, add gif to docs
1 parent a68b4b9 commit 63bcc6e

File tree

7 files changed

+100
-26
lines changed

7 files changed

+100
-26
lines changed

assets/metaMaskSDK-connect.gif

74.6 MB
Loading
74.6 MB
Loading

docs/src/routes/docs/[...4]wallets/[...18]metamask/+page.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
title: MetaMask
33
---
44

5+
<script>
6+
import metaMaskSDKConnect from '$lib/assets/metaMaskSDK-connect.gif'
7+
</script>
8+
59
# {$frontmatter.title}
610

711
## Wallet module for connecting MetaMask Wallet SDK to web3-onboard
812

913
The MetaMask Web3-Onboard module provides a reliable, secure, and seamless connection from your dapp to the MetaMask browser extension and MetaMask Mobile.
1014
See [MetaMask SDK Developer Docs](https://github.com/MetaMask/metamask-sdk)
1115

16+
<img src="{metaMaskSDKConnect}" alt="MetaMask SDK connect flow gif"/>
17+
1218
:::admonition type=tip
1319
When utilizing this package alongside the `@web3-onboard/injected-wallets` module, ensure to list this package prior to the initialized injected-wallets module within the wallets list of the Web3-Onboard init.
1420

@@ -21,14 +27,14 @@ This order prioritizes the SDK when a MetaMask browser wallet is detected, allow
2127
<TabPanel value="yarn">
2228

2329
```sh copy
24-
yarn add @web3-onboard/metamask
30+
yarn add @web3-onboard/core @web3-onboard/metamask
2531
```
2632

2733
</TabPanel>
2834
<TabPanel value="npm">
2935

3036
```sh copy
31-
npm install @web3-onboard/metamask
37+
npm install @web3-onboard/core @web3-onboard/metamask
3238
```
3339

3440
</TabPanel>

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@web3-onboard/keystone": "^2.3.7",
4747
"@web3-onboard/ledger": "^2.5.2",
4848
"@web3-onboard/magic": "^2.1.6",
49-
"@web3-onboard/metamask": "^2.0.1-alpha.3",
49+
"@web3-onboard/metamask": "^2.0.1-alpha.4",
5050
"@web3-onboard/mew-wallet": "^2.0.3",
5151
"@web3-onboard/phantom": "^2.0.3",
5252
"@web3-onboard/portis": "^2.1.6",

packages/metamask/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
The MetaMask Web3-Onboard module provides a reliable, secure, and seamless connection from your dapp to the MetaMask browser extension and MetaMask Mobile.
55
See [MetaMask SDK Developer Docs](https://github.com/MetaMask/metamask-sdk)
66

7+
![MetaMask SDK ConnectionFlow](https://github.com/blocknative/web3-onboard/blob/develop/assets/metaMaskSDK-connect.gif?raw=true 'MetaMask SDK ConnectionFlow')
8+
79
### Install
810

911
`npm i @web3-onboard/metamask`

packages/metamask/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/metamask",
3-
"version": "2.0.1-alpha.3",
3+
"version": "2.0.1-alpha.4",
44
"description": "MetaMask 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.",
55
"keywords": [
66
"Ethereum",
@@ -60,7 +60,7 @@
6060
"typescript": "^5.2.2"
6161
},
6262
"dependencies": {
63-
"@metamask/sdk": "^0.10.1",
63+
"@metamask/sdk": "^0.11.1",
6464
"@web3-onboard/common": "^2.3.3"
6565
}
6666
}

yarn.lock

Lines changed: 87 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,10 +2197,10 @@
21972197
resolved "https://registry.yarnpkg.com/@metamask/safe-event-emitter/-/safe-event-emitter-3.0.0.tgz#8c2b9073fe0722d48693143b0dc8448840daa3bd"
21982198
integrity sha512-j6Z47VOmVyGMlnKXZmL0fyvWfEYtKWCA9yGZkU3FCsGZUT5lHGmvaV9JA5F2Y+010y7+ROtR3WMXIkvl/nVzqQ==
21992199

2200-
"@metamask/sdk-communication-layer@0.10.1":
2201-
version "0.10.1"
2202-
resolved "https://registry.yarnpkg.com/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.10.1.tgz#95c6a1786dcd7a64c54a8e5cbd11489aa708b074"
2203-
integrity sha512-lWeh1PUq114h1/44llZgBcG51uOEi5dHjnNHlcYK9Sjq/iJ4s3mp0y39DGXHEs2r6rJQRyQpryoYyPsQTF2Imw==
2200+
"@metamask/sdk-communication-layer@0.11.1":
2201+
version "0.11.1"
2202+
resolved "https://registry.yarnpkg.com/@metamask/sdk-communication-layer/-/sdk-communication-layer-0.11.1.tgz#9105d82980504d52e3986e99b671366a62849959"
2203+
integrity sha512-3Rj1xiRIq4JC/TyGFtojKevb4oI0PKK97M5ImOKsELRALPngnUTiTxtNYRLg9Kufxn5L/QNh2cjaijzmav3KPg==
22042204
dependencies:
22052205
cross-fetch "^3.1.5"
22062206
date-fns "^2.29.3"
@@ -2209,10 +2209,10 @@
22092209
socket.io-client "^4.5.1"
22102210
uuid "^8.3.2"
22112211

2212-
"@metamask/sdk-install-modal-web@0.10.0":
2213-
version "0.10.0"
2214-
resolved "https://registry.yarnpkg.com/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.10.0.tgz#e2638c6fdd1ab4e42064a51d16bab8a141e7c667"
2215-
integrity sha512-pMZeHx7XkXljYed1WCH9ek2Z4mttmpucZl+oacRb3YnMvF+aCphfx+HXabOvnX6htFSlVvxh9djibk8ox2Z9Bg==
2212+
"@metamask/sdk-install-modal-web@0.11.1":
2213+
version "0.11.1"
2214+
resolved "https://registry.yarnpkg.com/@metamask/sdk-install-modal-web/-/sdk-install-modal-web-0.11.1.tgz#66f5f8748d4199b4de2376335dcad0f0ffe87020"
2215+
integrity sha512-uGVWcAl1Q8jfYtPvtvFySIkRJbT9cNjW8wVcWEj23JpmA7BAdG3VY6cXT30o9AiSXsvfbxrtoc02vk6K9V26Xw==
22162216
dependencies:
22172217
"@emotion/react" "^11.10.6"
22182218
"@emotion/styled" "^11.10.6"
@@ -2222,16 +2222,16 @@
22222222
react-dom "^18.2.0"
22232223
react-i18next "^13.2.2"
22242224

2225-
"@metamask/sdk@^0.10.1":
2226-
version "0.10.1"
2227-
resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.10.1.tgz#3a9d029d5b16684de59d6ee34401d1165dc1a740"
2228-
integrity sha512-cxTWnniZG0cmvaFxf/WAf4SqPw4lHrt16cMMiefAJAsNyL3aPUh8M26fh29EdftIhUXytT9ErNGW+Nf5V4EsCQ==
2225+
"@metamask/sdk@^0.11.1":
2226+
version "0.11.1"
2227+
resolved "https://registry.yarnpkg.com/@metamask/sdk/-/sdk-0.11.1.tgz#cd1870ede3f41f08eb28c0340c9474a9dc26cdf5"
2228+
integrity sha512-/3UQH75MT2kNLnjD8dZEaNP1ZQQYBKsiFYRHQbMIzUIpnKIbigAF7flo1HVH3LtQZitfEi/x0xtp7k8bD/URug==
22292229
dependencies:
22302230
"@metamask/onboarding" "^1.0.1"
22312231
"@metamask/post-message-stream" "^6.1.0"
22322232
"@metamask/providers" "^10.2.1"
2233-
"@metamask/sdk-communication-layer" "0.10.1"
2234-
"@metamask/sdk-install-modal-web" "0.10.0"
2233+
"@metamask/sdk-communication-layer" "0.11.1"
2234+
"@metamask/sdk-install-modal-web" "0.11.1"
22352235
"@react-native-async-storage/async-storage" "^1.17.11"
22362236
"@types/dom-screen-wake-lock" "^1.0.0"
22372237
bowser "^2.9.0"
@@ -2244,10 +2244,11 @@
22442244
i18next-browser-languagedetector "^7.1.0"
22452245
obj-multiplex "^1.0.0"
22462246
pump "^3.0.0"
2247-
qrcode-terminal "^0.12.0"
2247+
qrcode-terminal-nooctal "^0.12.1"
22482248
react-i18next "^13.2.2"
22492249
react-native-webview "^11.26.0"
22502250
readable-stream "^2.3.7"
2251+
rollup-plugin-visualizer "^5.9.2"
22512252
socket.io-client "^4.5.1"
22522253
util "^0.12.4"
22532254
uuid "^8.3.2"
@@ -6497,6 +6498,15 @@ cliui@^6.0.0:
64976498
strip-ansi "^6.0.0"
64986499
wrap-ansi "^6.2.0"
64996500

6501+
cliui@^8.0.1:
6502+
version "8.0.1"
6503+
resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa"
6504+
integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==
6505+
dependencies:
6506+
string-width "^4.2.0"
6507+
strip-ansi "^6.0.1"
6508+
wrap-ansi "^7.0.0"
6509+
65006510
clone-deep@^4.0.1:
65016511
version "4.0.1"
65026512
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
@@ -8737,7 +8747,7 @@ get-browser-rtc@^1.1.0:
87378747
resolved "https://registry.yarnpkg.com/get-browser-rtc/-/get-browser-rtc-1.1.0.tgz#d1494e299b00f33fc8e9d6d3343ba4ba99711a2c"
87388748
integrity sha512-MghbMJ61EJrRsDe7w1Bvqt3ZsBuqhce5nrn/XAwgwOXhcsz53/ltdxOse1h/8eKXj5slzxdsz56g5rzOFSGwfQ==
87398749

8740-
get-caller-file@^2.0.1:
8750+
get-caller-file@^2.0.1, get-caller-file@^2.0.5:
87418751
version "2.0.5"
87428752
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
87438753
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
@@ -11072,6 +11082,15 @@ open@^8.0.9:
1107211082
is-docker "^2.1.1"
1107311083
is-wsl "^2.2.0"
1107411084

11085+
open@^8.4.0:
11086+
version "8.4.2"
11087+
resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
11088+
integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==
11089+
dependencies:
11090+
define-lazy-prop "^2.0.0"
11091+
is-docker "^2.1.1"
11092+
is-wsl "^2.2.0"
11093+
1107511094
optionator@^0.8.1:
1107611095
version "0.8.3"
1107711096
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
@@ -11313,7 +11332,7 @@ picocolors@^1.0.0:
1131311332
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
1131411333
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
1131511334

11316-
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3:
11335+
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1:
1131711336
version "2.3.1"
1131811337
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
1131911338
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
@@ -11681,10 +11700,10 @@ qrcode-generator@^1.4.1, qrcode-generator@^1.4.3:
1168111700
resolved "https://registry.yarnpkg.com/qrcode-generator/-/qrcode-generator-1.4.4.tgz#63f771224854759329a99048806a53ed278740e7"
1168211701
integrity sha512-HM7yY8O2ilqhmULxGMpcHSF1EhJJ9yBj8gvDEuZ6M+KGJ0YY2hKpnXvRD+hZPLrDVck3ExIGhmPtSdcjC+guuw==
1168311702

11684-
qrcode-terminal@^0.12.0:
11685-
version "0.12.0"
11686-
resolved "https://registry.yarnpkg.com/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz#bb5b699ef7f9f0505092a3748be4464fe71b5819"
11687-
integrity sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==
11703+
qrcode-terminal-nooctal@^0.12.1:
11704+
version "0.12.1"
11705+
resolved "https://registry.yarnpkg.com/qrcode-terminal-nooctal/-/qrcode-terminal-nooctal-0.12.1.tgz#45016aca0d82b2818de7af0a06d072ad671fbe2e"
11706+
integrity sha512-jy/kkD0iIMDjTucB+5T6KBsnirlhegDH47vHgrj5MejchSQmi/EAMM0xMFeePgV9CJkkAapNakpVUWYgHvtdKg==
1168811707

1168911708
qrcode.react@^1.0.1:
1169011709
version "1.0.1"
@@ -12298,6 +12317,16 @@ rollup-plugin-svelte@^7.0.0:
1229812317
require-relative "^0.8.7"
1229912318
rollup-pluginutils "^2.8.2"
1230012319

12320+
rollup-plugin-visualizer@^5.9.2:
12321+
version "5.9.2"
12322+
resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.2.tgz#f1aa2d9b1be8ebd6869223c742324897464d8891"
12323+
integrity sha512-waHktD5mlWrYFrhOLbti4YgQCn1uR24nYsNuXxg7LkPH8KdTXVWR9DNY1WU0QqokyMixVXJS4J04HNrVTMP01A==
12324+
dependencies:
12325+
open "^8.4.0"
12326+
picomatch "^2.3.1"
12327+
source-map "^0.7.4"
12328+
yargs "^17.5.1"
12329+
1230112330
rollup-pluginutils@^2.8.2:
1230212331
version "2.8.2"
1230312332
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e"
@@ -12949,6 +12978,11 @@ source-map@^0.7.3, source-map@~0.7.2:
1294912978
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
1295012979
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==
1295112980

12981+
source-map@^0.7.4:
12982+
version "0.7.4"
12983+
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656"
12984+
integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==
12985+
1295212986
sourcemap-codec@^1.3.0, sourcemap-codec@^1.4.4:
1295312987
version "1.4.8"
1295412988
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"
@@ -15020,6 +15054,15 @@ wrap-ansi@^6.2.0:
1502015054
string-width "^4.1.0"
1502115055
strip-ansi "^6.0.0"
1502215056

15057+
wrap-ansi@^7.0.0:
15058+
version "7.0.0"
15059+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
15060+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
15061+
dependencies:
15062+
ansi-styles "^4.0.0"
15063+
string-width "^4.1.0"
15064+
strip-ansi "^6.0.0"
15065+
1502315066
wrappy@1:
1502415067
version "1.0.2"
1502515068
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
@@ -15196,6 +15239,11 @@ y18n@^4.0.0:
1519615239
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf"
1519715240
integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==
1519815241

15242+
y18n@^5.0.5:
15243+
version "5.0.8"
15244+
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
15245+
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
15246+
1519915247
yaeti@^0.0.6:
1520015248
version "0.0.6"
1520115249
resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577"
@@ -15237,6 +15285,11 @@ yargs-parser@^18.1.2:
1523715285
camelcase "^5.0.0"
1523815286
decamelize "^1.2.0"
1523915287

15288+
yargs-parser@^21.1.1:
15289+
version "21.1.1"
15290+
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
15291+
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
15292+
1524015293
yargs@^13.0.0, yargs@^13.2.4:
1524115294
version "13.3.2"
1524215295
resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd"
@@ -15270,6 +15323,19 @@ yargs@^15.3.1:
1527015323
y18n "^4.0.0"
1527115324
yargs-parser "^18.1.2"
1527215325

15326+
yargs@^17.5.1:
15327+
version "17.7.2"
15328+
resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269"
15329+
integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==
15330+
dependencies:
15331+
cliui "^8.0.1"
15332+
escalade "^3.1.1"
15333+
get-caller-file "^2.0.5"
15334+
require-directory "^2.1.1"
15335+
string-width "^4.2.3"
15336+
y18n "^5.0.5"
15337+
yargs-parser "^21.1.1"
15338+
1527315339
1527415340
version "0.1.2"
1527515341
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"

0 commit comments

Comments
 (0)