Skip to content

Commit 60039c3

Browse files
Adamj1232dasanraSamueleAdependabot[bot]taylorjdawson
authored
Merge pull request #1369 from blocknative/release/2.14.2
* Enable new domain at Gnosis package (#1347) * Sequence package added as part of peerDepencies (#1335) * sequence-peer-depency * update sequence connector version * removed dependency 0xsequence in example * Update examples/with-vite-react/package.json * Update examples/with-vite-react/package.json * Update packages/sequence/package.json * Update packages/sequence/package.json Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> * [walletConnect v2.2.0-alpha.1]: Fix - walletConnect support for wallet_switchEthereumChain method (#1363) * Working as expected * Bump version for release * Cleanup * Revert demo app changes, bump version for release * version bump mminor instead of patch * Refactor * Bump loader-utils from 2.0.2 to 2.0.3 (#1355) Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.3/CHANGELOG.md) - [Commits](webpack/loader-utils@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix css var typo (#1362) * Fix css var typo * Bump core in vue and react pckgs Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> * Bump socket.io-parser from 3.3.2 to 3.3.3 in /examples/with-vite-react (#1365) Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 3.3.2 to 3.3.3. - [Release notes](https://github.com/socketio/socket.io-parser/releases) - [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md) - [Commits](socketio/socket.io-parser@3.3.2...3.3.3) --- updated-dependencies: - dependency-name: socket.io-parser dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump versions for release * Bump pckg for release * fix gnosis versioning * Add Enkrypt and MEW Wallet DApp browser as SDKs (#1291) * devop: add enkrypt and mew wallet * chore: update version * update packages with necessary changes to fit current W3O patterns(versioning, injected packages changes, routing for docs) * Remove enkrypt from injected provider labels * Remove yarn lock within mew package * Mark mew package as deprecated * devop: remove unused packages * devop: move tsconfig to the right places, fix build * devop: remove tsconfig in the wrong place * Update docs and deploy for new mew-wallet package * Update enkrypt injected provider * Update injected, MEW Wallet and Enkrypt packages * Update handling of ChainIds * fix: throw error for unsupported chains * chore: make mew wallet throw error on unsupported chains * devop: add check for ios unsupported chains * chore: change error * chore: change error * chore: change error * chore: remove console * chore: remove hex conversion code * Remove package level yarn.lock files * Remove unused mew icon from injected package * Add yarn options to readmes * Clean up log * Bump mew package version to display deprecated warning * chore: update logo * Update packages/enkrypt/README.md * Prettier formatting * Apply suggestions from code review * Refine mew package.json Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Daniel <25051234+dasanra@users.noreply.github.com> Co-authored-by: Samuele Agostinelli <batonenbois@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com> Co-authored-by: Gamaliel 'Yel' Padillo <gamalielhere@users.noreply.github.com>
2 parents efcb1a4 + 13d1a9c commit 60039c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1463
-73
lines changed

.circleci/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ jobs:
219219
working_directory: ~/web3-onboard-monorepo/packages/mew
220220
steps:
221221
- node-build-steps
222+
build-mew-wallet:
223+
docker:
224+
- image: cimg/node:16.13.1
225+
working_directory: ~/web3-onboard-monorepo/packages/mew-wallet
226+
steps:
227+
- node-build-steps
222228
build-portis:
223229
docker:
224230
- image: cimg/node:16.13.1
@@ -309,6 +315,18 @@ jobs:
309315
working_directory: ~/web3-onboard-monorepo/packages/tallyho
310316
steps:
311317
- node-build-steps
318+
build-enkrypt:
319+
docker:
320+
- image: cimg/node:16.13.1
321+
working_directory: ~/web3-onboard-monorepo/packages/enkrypt
322+
steps:
323+
- node-build-steps
324+
build-uauth:
325+
docker:
326+
- image: cimg/node:16.13.1
327+
working_directory: ~/web3-onboard-monorepo/packages/uauth
328+
steps:
329+
- node-build-steps
312330

313331
# Build staging/Alpha releases
314332
build-staging-core:
@@ -365,6 +383,12 @@ jobs:
365383
working_directory: ~/web3-onboard-monorepo/packages/mew
366384
steps:
367385
- node-staging-build-steps
386+
build-staging-mew-wallet:
387+
docker:
388+
- image: cimg/node:16.13.1
389+
working_directory: ~/web3-onboard-monorepo/packages/mew-wallet
390+
steps:
391+
- node-staging-build-steps
368392
build-staging-portis:
369393
docker:
370394
- image: cimg/node:16.13.1
@@ -455,6 +479,18 @@ jobs:
455479
working_directory: ~/web3-onboard-monorepo/packages/tallyho
456480
steps:
457481
- node-staging-build-steps
482+
build-staging-enkrypt:
483+
docker:
484+
- image: cimg/node:16.13.1
485+
working_directory: ~/web3-onboard-monorepo/packages/enkrypt
486+
steps:
487+
- node-staging-build-steps
488+
build-staging-uauth:
489+
docker:
490+
- image: cimg/node:16.13.1
491+
working_directory: ~/web3-onboard-monorepo/packages/uauth
492+
steps:
493+
- node-staging-build-steps
458494

459495
workflows:
460496
version: 2
@@ -513,6 +549,12 @@ workflows:
513549
<<: *deploy_production_filters
514550
- build-staging-mew:
515551
<<: *deploy_staging_filters
552+
mew-wallet:
553+
jobs:
554+
- build-mew-wallet:
555+
<<: *deploy_production_filters
556+
- build-staging-mew-wallet:
557+
<<: *deploy_staging_filters
516558
portis:
517559
jobs:
518560
- build-portis:
@@ -603,3 +645,15 @@ workflows:
603645
<<: *deploy_production_filters
604646
- build-staging-tallyho:
605647
<<: *deploy_staging_filters
648+
enkrypt:
649+
jobs:
650+
- build-enkrypt:
651+
<<: *deploy_production_filters
652+
- build-staging-enkrypt:
653+
<<: *deploy_staging_filters
654+
uauth:
655+
jobs:
656+
- build-uauth:
657+
<<: *deploy_production_filters
658+
- build-staging-uauth:
659+
<<: *deploy_staging_filters

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ For full documentation, check out the README.md for each package:
9393
- [Magic](packages/magic/README.md)
9494
- [Fortmatic](packages/fortmatic/README.md)
9595
- [Portis](packages/portis/README.md)
96-
- [MEW](packages/mew/README.md)
96+
- [MEW-Wallet](packages/mew-wallet/README.md)
9797
- [Web3Auth](packages/web3auth/README.md)
9898
- [Sequence](packages/sequence/README.md)
9999
- [TallyHo](packages/tallyho/README.md)
100+
- [Enkrypt](packages/enkrypt/README.md)
101+
- [Unstoppable Domains](packages/uauth/README.md)
100102

101103
**Hardware Wallets**
102104

examples/with-ledger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@web3-onboard/ledger": "^2.1.6",
13-
"@web3-onboard/react": "^2.2.4",
13+
"@web3-onboard/react": "^2.4.1",
1414
"next": "12.2.4",
1515
"react": "18.2.0",
1616
"react-dom": "18.2.0"

examples/with-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@web3-onboard/react": "2.2.6",
12+
"@web3-onboard/react": "2.4.1",
1313
"next": "12.2.5",
1414
"react": "18.2.0",
1515
"react-dom": "18.2.0"

examples/with-sveltekit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"type": "module",
3333
"dependencies": {
3434
"@fontsource/fira-mono": "^4.5.0",
35-
"@web3-onboard/walletconnect": "^2.1.2",
35+
"@web3-onboard/walletconnect": "^2.2.0",
3636
"buffer": "^6.0.3"
3737
}
3838
}

examples/with-vite-react/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
"@web3-onboard/coinbase": "^2.1.3",
1313
"@web3-onboard/dcent": "^2.2.1",
1414
"@web3-onboard/fortmatic": "^2.0.14",
15-
"@web3-onboard/gnosis": "^2.1.3",
15+
"@web3-onboard/gnosis": "^2.1.5",
1616
"@web3-onboard/injected-wallets": "^2.2.4",
1717
"@web3-onboard/keepkey": "^2.3.1",
1818
"@web3-onboard/keystone": "^2.3.1",
1919
"@web3-onboard/ledger": "^2.3.1",
2020
"@web3-onboard/magic": "^2.1.3",
2121
"@web3-onboard/mew": "^2.1.3",
2222
"@web3-onboard/portis": "^2.1.3",
23-
"@web3-onboard/react": "^2.3.5",
24-
"@web3-onboard/sequence": "^2.0.2",
23+
"@web3-onboard/react": "^2.4.1",
24+
"@web3-onboard/sequence": "^2.0.3",
2525
"@web3-onboard/tallyho": "^2.0.1",
2626
"@web3-onboard/torus": "^2.1.3",
2727
"@web3-onboard/trezor": "^2.3.1",
28-
"@web3-onboard/walletconnect": "^2.1.3",
28+
"@web3-onboard/walletconnect": "^2.2.0",
2929
"react": "^18.2.0",
3030
"react-dom": "^18.2.0"
3131
},

examples/with-vite-react/yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,10 +2984,10 @@
29842984
"@web3-onboard/core" "^2.8.5"
29852985
use-sync-external-store "1.0.0"
29862986

2987-
"@web3-onboard/sequence@^2.0.2":
2988-
version "2.0.2"
2989-
resolved "https://registry.npmjs.org/@web3-onboard/sequence/-/sequence-2.0.2.tgz#e95d5382771c1220e05d8bbc6e68f5dcdfd05394"
2990-
integrity sha512-1Cy0CG6zNgyRG1G453XfxjMx59jqrDXpPFNjzg645/6bW6jdyqEEPa7rTXcSx3Dav5A93E6ePH1vJtZKW64Hhw==
2987+
"@web3-onboard/sequence@^2.0.3-alpha.1":
2988+
version "2.0.3-alpha.1"
2989+
resolved "https://registry.yarnpkg.com/@web3-onboard/sequence/-/sequence-2.0.3-alpha.1.tgz#fb71aa65f6c1fb5a09705731c859641cdc95fbf4"
2990+
integrity sha512-E/JQormX7phENgnPtqtTEomxTCEzXQIRqU4w7/jFzYI/XkVoVvjjflQZ7Z8r2mH55fPowvVHrmB0K5l4sOW2lw==
29912991
dependencies:
29922992
"0xsequence" "^0.40.5"
29932993
"@web3-onboard/common" "^2.2.3"
@@ -3973,7 +3973,7 @@ component-bind@1.0.0:
39733973

39743974
component-emitter@~1.3.0:
39753975
version "1.3.0"
3976-
resolved "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
3976+
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
39773977
integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==
39783978

39793979
component-inherit@0.0.3:
@@ -6240,7 +6240,7 @@ isarray@0.0.1:
62406240

62416241
isarray@2.0.1:
62426242
version "2.0.1"
6243-
resolved "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz#a37d94ed9cda2d59865c9f76fe596ee1f338741e"
6243+
resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.1.tgz#a37d94ed9cda2d59865c9f76fe596ee1f338741e"
62446244
integrity sha512-c2cu3UxbI+b6kR3fy0nRnAhodsvR9dx7U5+znCOzdj6IfP3upFURTr0Xl5BlQZNKZjEtxrmVyfSdeE3O57smoQ==
62456245

62466246
isarray@^2.0.1:
@@ -6872,7 +6872,7 @@ mri@^1.1.0:
68726872

68736873
ms@2.0.0:
68746874
version "2.0.0"
6875-
resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
6875+
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
68766876
integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==
68776877

68786878
ms@2.1.2:
@@ -8286,9 +8286,9 @@ socket.io-client@^2.3.0:
82868286
to-array "0.1.4"
82878287

82888288
socket.io-parser@~3.3.0:
8289-
version "3.3.2"
8290-
resolved "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.2.tgz#ef872009d0adcf704f2fbe830191a14752ad50b6"
8291-
integrity sha512-FJvDBuOALxdCI9qwRrO/Rfp9yfndRtc1jSgVgV8FDraihmSP/MLGD5PEuJrNfjALvcQ+vMDM/33AWOYP/JSjDg==
8289+
version "3.3.3"
8290+
resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-3.3.3.tgz#3a8b84823eba87f3f7624e64a8aaab6d6318a72f"
8291+
integrity sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==
82928292
dependencies:
82938293
component-emitter "~1.3.0"
82948294
debug "~3.1.0"

examples/with-vuejs-v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@web3-onboard/injected-wallets": "^2.2.0",
11-
"@web3-onboard/vue": "^2.2.1",
11+
"@web3-onboard/vue": "^2.3.1",
1212
"vue": "^2.6.12",
1313
"vue-template-compiler": "^2.7.10"
1414
},

examples/with-vuejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@web3-onboard/injected-wallets": "^2.0.15",
12-
"@web3-onboard/vue": "^2.1.6",
12+
"@web3-onboard/vue": "^2.3.1",
1313
"pinia": "^2.0.16",
1414
"vue": "^3.2.37",
1515
"vue-router": "^4.1.2"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-onboard-monorepo",
3-
"version": "2.14.1",
3+
"version": "2.14.2",
44
"private": true,
55
"workspaces": {
66
"packages": [

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.10.0",
3+
"version": "2.10.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized 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",

packages/core/src/views/account-center/Micro.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var(--onboard-white, var(--white))
2323
);
2424
border: 1px solid
25-
var(--acount-center-border, var(--onboard-gray-100, var(--gray-100)));
25+
var(--account-center-border, var(--onboard-gray-100, var(--gray-100)));
2626
box-shadow: var(
2727
--account-center-box-shadow,
2828
var(--onboard-shadow-3, var(--shadow-3))

packages/demo/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,26 @@
2323
},
2424
"dependencies": {
2525
"@web3-onboard/coinbase": "^2.1.3",
26-
"@web3-onboard/core": "^2.10.0",
26+
"@web3-onboard/core": "^2.10.1",
2727
"@web3-onboard/dcent": "^2.2.2",
2828
"@web3-onboard/fortmatic": "^2.0.14",
2929
"@web3-onboard/gas": "^2.1.3",
30-
"@web3-onboard/gnosis": "^2.1.3",
31-
"@web3-onboard/injected-wallets": "^2.3.0",
30+
"@web3-onboard/gnosis": "^2.1.5",
31+
"@web3-onboard/injected-wallets": "^2.4.0",
3232
"@web3-onboard/keepkey": "^2.3.2",
3333
"@web3-onboard/keystone": "^2.3.2",
3434
"@web3-onboard/ledger": "^2.3.2",
3535
"@web3-onboard/magic": "^2.1.3",
3636
"@web3-onboard/portis": "^2.1.3",
37-
"@web3-onboard/sequence": "^2.0.2",
37+
"@web3-onboard/sequence": "^2.0.3",
3838
"@web3-onboard/torus": "^2.1.3",
3939
"@web3-onboard/trezor": "^2.3.2",
4040
"@web3-onboard/tallyho": "^2.0.1",
41-
"@web3-onboard/walletconnect": "^2.1.3",
41+
"@web3-onboard/walletconnect": "^2.2.0",
4242
"@web3-onboard/web3auth": "^2.1.3",
43+
"@web3-onboard/enkrypt": "^2.0.0",
44+
"@web3-onboard/mew-wallet": "^2.0.0",
45+
"@web3-onboard/uauth": "^2.0.0",
4346
"vconsole": "^3.9.5"
4447
},
4548
"license": "MIT",

packages/demo/src/App.svelte

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
import dcentModule from '@web3-onboard/dcent'
1818
import sequenceModule from '@web3-onboard/sequence'
1919
import tallyHoModule from '@web3-onboard/tallyho'
20+
import enkryptModule from '@web3-onboard/enkrypt'
21+
import mewWalletModule from '@web3-onboard/mew-wallet'
22+
import uauthModule from '@web3-onboard/uauth'
2023
import {
2124
recoverAddress,
2225
arrayify,
@@ -96,6 +99,14 @@
9699
}
97100
const trezor = trezorModule(trezorOptions)
98101
102+
const uauthOptions = {
103+
clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c',
104+
redirectUri: 'http://localhost:8080/',
105+
scope:
106+
'openid wallet email:optional humanity_check:optional profile:optional social:optional'
107+
}
108+
const uauth = uauthModule(uauthOptions)
109+
99110
const magic = magicModule({
100111
apiKey: 'pk_live_02207D744E81C2BA'
101112
// userEmail: 'test@test.com'
@@ -107,13 +118,18 @@
107118
108119
const sequence = sequenceModule()
109120
121+
const enkrypt = enkryptModule()
122+
const mewWallet = mewWalletModule()
123+
110124
const onboard = Onboard({
111125
wallets: [
112126
injected,
113127
web3auth,
114128
ledger,
115129
trezor,
116130
walletConnect,
131+
enkrypt,
132+
mewWallet,
117133
keepkey,
118134
keystone,
119135
coinbaseWallet,
@@ -124,7 +140,8 @@
124140
gnosis,
125141
dcent,
126142
sequence,
127-
tallyho
143+
tallyho,
144+
uauth
128145
],
129146
gas,
130147
chains: [
@@ -238,8 +255,8 @@
238255
}
239256
},
240257
// containerElements: {
241-
// El must be present at time of JS script execution
242-
// See ../public/index.html for element example
258+
// El must be present at time of JS script execution
259+
// See ../public/index.html for element example
243260
// accountCenter: '#sample-container-el'
244261
// },
245262
// Sign up for your free api key at www.Blocknative.com
@@ -248,6 +265,12 @@
248265
249266
// Subscribe to wallet updates
250267
const wallets$ = onboard.state.select('wallets').pipe(share())
268+
wallets$.subscribe(wallet => {
269+
const unstoppableUser = wallet.find(
270+
provider => provider.label === 'Unstoppable'
271+
)
272+
if (unstoppableUser) console.log(unstoppableUser.instance.user)
273+
})
251274
252275
const signTransactionMessage = async provider => {
253276
const ethersProvider = new ethers.providers.Web3Provider(provider, 'any')
@@ -942,7 +965,7 @@
942965
{/if}
943966
</div>
944967
{#if $wallets$ && !hideForIframe}
945-
{#each $wallets$ as { icon, label, accounts, chains, provider }}
968+
{#each $wallets$ as { icon, label, accounts, chains, provider, instance }}
946969
<div class="connected-wallet">
947970
<div class="flex-centered" style="width: 10rem;">
948971
<div style="width: 2rem; height: 2rem">{@html icon}</div>
@@ -951,6 +974,16 @@
951974
952975
<div>Chains: {JSON.stringify(chains, null, 2)}</div>
953976
977+
{#if label === 'Unstoppable'}
978+
<div>Unstoppable User: {instance.user.sub}</div>
979+
<div>Unstoppable Wallet: {instance.user.wallet_address}</div>
980+
<div>Unstoppable Email: {instance.user.email || ''}</div>
981+
<div>
982+
Unstoppable Humanity: {instance.user.humanity_check_id || ''}
983+
</div>
984+
<div>Unstoppable Profile: {instance.user.profile || ''}</div>
985+
{/if}
986+
954987
{#each accounts as { address, ens, balance }}
955988
<div
956989
class="account-info"

0 commit comments

Comments
 (0)