Skip to content

Commit

Permalink
Merge pull request #1369 from blocknative/release/2.14.2
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
6 people authored Nov 18, 2022
2 parents efcb1a4 + 13d1a9c commit 60039c3
Show file tree
Hide file tree
Showing 52 changed files with 1,463 additions and 73 deletions.
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/mew
steps:
- node-build-steps
build-mew-wallet:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/mew-wallet
steps:
- node-build-steps
build-portis:
docker:
- image: cimg/node:16.13.1
Expand Down Expand Up @@ -309,6 +315,18 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/tallyho
steps:
- node-build-steps
build-enkrypt:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/enkrypt
steps:
- node-build-steps
build-uauth:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/uauth
steps:
- node-build-steps

# Build staging/Alpha releases
build-staging-core:
Expand Down Expand Up @@ -365,6 +383,12 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/mew
steps:
- node-staging-build-steps
build-staging-mew-wallet:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/mew-wallet
steps:
- node-staging-build-steps
build-staging-portis:
docker:
- image: cimg/node:16.13.1
Expand Down Expand Up @@ -455,6 +479,18 @@ jobs:
working_directory: ~/web3-onboard-monorepo/packages/tallyho
steps:
- node-staging-build-steps
build-staging-enkrypt:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/enkrypt
steps:
- node-staging-build-steps
build-staging-uauth:
docker:
- image: cimg/node:16.13.1
working_directory: ~/web3-onboard-monorepo/packages/uauth
steps:
- node-staging-build-steps

workflows:
version: 2
Expand Down Expand Up @@ -513,6 +549,12 @@ workflows:
<<: *deploy_production_filters
- build-staging-mew:
<<: *deploy_staging_filters
mew-wallet:
jobs:
- build-mew-wallet:
<<: *deploy_production_filters
- build-staging-mew-wallet:
<<: *deploy_staging_filters
portis:
jobs:
- build-portis:
Expand Down Expand Up @@ -603,3 +645,15 @@ workflows:
<<: *deploy_production_filters
- build-staging-tallyho:
<<: *deploy_staging_filters
enkrypt:
jobs:
- build-enkrypt:
<<: *deploy_production_filters
- build-staging-enkrypt:
<<: *deploy_staging_filters
uauth:
jobs:
- build-uauth:
<<: *deploy_production_filters
- build-staging-uauth:
<<: *deploy_staging_filters
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ For full documentation, check out the README.md for each package:
- [Magic](packages/magic/README.md)
- [Fortmatic](packages/fortmatic/README.md)
- [Portis](packages/portis/README.md)
- [MEW](packages/mew/README.md)
- [MEW-Wallet](packages/mew-wallet/README.md)
- [Web3Auth](packages/web3auth/README.md)
- [Sequence](packages/sequence/README.md)
- [TallyHo](packages/tallyho/README.md)
- [Enkrypt](packages/enkrypt/README.md)
- [Unstoppable Domains](packages/uauth/README.md)

**Hardware Wallets**

Expand Down
2 changes: 1 addition & 1 deletion examples/with-ledger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@web3-onboard/ledger": "^2.1.6",
"@web3-onboard/react": "^2.2.4",
"@web3-onboard/react": "^2.4.1",
"next": "12.2.4",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@web3-onboard/react": "2.2.6",
"@web3-onboard/react": "2.4.1",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"type": "module",
"dependencies": {
"@fontsource/fira-mono": "^4.5.0",
"@web3-onboard/walletconnect": "^2.1.2",
"@web3-onboard/walletconnect": "^2.2.0",
"buffer": "^6.0.3"
}
}
8 changes: 4 additions & 4 deletions examples/with-vite-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
"@web3-onboard/coinbase": "^2.1.3",
"@web3-onboard/dcent": "^2.2.1",
"@web3-onboard/fortmatic": "^2.0.14",
"@web3-onboard/gnosis": "^2.1.3",
"@web3-onboard/gnosis": "^2.1.5",
"@web3-onboard/injected-wallets": "^2.2.4",
"@web3-onboard/keepkey": "^2.3.1",
"@web3-onboard/keystone": "^2.3.1",
"@web3-onboard/ledger": "^2.3.1",
"@web3-onboard/magic": "^2.1.3",
"@web3-onboard/mew": "^2.1.3",
"@web3-onboard/portis": "^2.1.3",
"@web3-onboard/react": "^2.3.5",
"@web3-onboard/sequence": "^2.0.2",
"@web3-onboard/react": "^2.4.1",
"@web3-onboard/sequence": "^2.0.3",
"@web3-onboard/tallyho": "^2.0.1",
"@web3-onboard/torus": "^2.1.3",
"@web3-onboard/trezor": "^2.3.1",
"@web3-onboard/walletconnect": "^2.1.3",
"@web3-onboard/walletconnect": "^2.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
20 changes: 10 additions & 10 deletions examples/with-vite-react/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2984,10 +2984,10 @@
"@web3-onboard/core" "^2.8.5"
use-sync-external-store "1.0.0"

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

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

component-inherit@0.0.3:
Expand Down Expand Up @@ -6240,7 +6240,7 @@ isarray@0.0.1:

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

isarray@^2.0.1:
Expand Down Expand Up @@ -6872,7 +6872,7 @@ mri@^1.1.0:

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

ms@2.1.2:
Expand Down Expand Up @@ -8286,9 +8286,9 @@ socket.io-client@^2.3.0:
to-array "0.1.4"

socket.io-parser@~3.3.0:
version "3.3.2"
resolved "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.2.tgz#ef872009d0adcf704f2fbe830191a14752ad50b6"
integrity sha512-FJvDBuOALxdCI9qwRrO/Rfp9yfndRtc1jSgVgV8FDraihmSP/MLGD5PEuJrNfjALvcQ+vMDM/33AWOYP/JSjDg==
version "3.3.3"
resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-3.3.3.tgz#3a8b84823eba87f3f7624e64a8aaab6d6318a72f"
integrity sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==
dependencies:
component-emitter "~1.3.0"
debug "~3.1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vuejs-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@web3-onboard/injected-wallets": "^2.2.0",
"@web3-onboard/vue": "^2.2.1",
"@web3-onboard/vue": "^2.3.1",
"vue": "^2.6.12",
"vue-template-compiler": "^2.7.10"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vuejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@web3-onboard/injected-wallets": "^2.0.15",
"@web3-onboard/vue": "^2.1.6",
"@web3-onboard/vue": "^2.3.1",
"pinia": "^2.0.16",
"vue": "^3.2.37",
"vue-router": "^4.1.2"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3-onboard-monorepo",
"version": "2.14.1",
"version": "2.14.2",
"private": true,
"workspaces": {
"packages": [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.10.0",
"version": "2.10.1",
"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.",
"keywords": [
"Ethereum",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/views/account-center/Micro.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
var(--onboard-white, var(--white))
);
border: 1px solid
var(--acount-center-border, var(--onboard-gray-100, var(--gray-100)));
var(--account-center-border, var(--onboard-gray-100, var(--gray-100)));
box-shadow: var(
--account-center-box-shadow,
var(--onboard-shadow-3, var(--shadow-3))
Expand Down
13 changes: 8 additions & 5 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,26 @@
},
"dependencies": {
"@web3-onboard/coinbase": "^2.1.3",
"@web3-onboard/core": "^2.10.0",
"@web3-onboard/core": "^2.10.1",
"@web3-onboard/dcent": "^2.2.2",
"@web3-onboard/fortmatic": "^2.0.14",
"@web3-onboard/gas": "^2.1.3",
"@web3-onboard/gnosis": "^2.1.3",
"@web3-onboard/injected-wallets": "^2.3.0",
"@web3-onboard/gnosis": "^2.1.5",
"@web3-onboard/injected-wallets": "^2.4.0",
"@web3-onboard/keepkey": "^2.3.2",
"@web3-onboard/keystone": "^2.3.2",
"@web3-onboard/ledger": "^2.3.2",
"@web3-onboard/magic": "^2.1.3",
"@web3-onboard/portis": "^2.1.3",
"@web3-onboard/sequence": "^2.0.2",
"@web3-onboard/sequence": "^2.0.3",
"@web3-onboard/torus": "^2.1.3",
"@web3-onboard/trezor": "^2.3.2",
"@web3-onboard/tallyho": "^2.0.1",
"@web3-onboard/walletconnect": "^2.1.3",
"@web3-onboard/walletconnect": "^2.2.0",
"@web3-onboard/web3auth": "^2.1.3",
"@web3-onboard/enkrypt": "^2.0.0",
"@web3-onboard/mew-wallet": "^2.0.0",
"@web3-onboard/uauth": "^2.0.0",
"vconsole": "^3.9.5"
},
"license": "MIT",
Expand Down
41 changes: 37 additions & 4 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
import dcentModule from '@web3-onboard/dcent'
import sequenceModule from '@web3-onboard/sequence'
import tallyHoModule from '@web3-onboard/tallyho'
import enkryptModule from '@web3-onboard/enkrypt'
import mewWalletModule from '@web3-onboard/mew-wallet'
import uauthModule from '@web3-onboard/uauth'
import {
recoverAddress,
arrayify,
Expand Down Expand Up @@ -96,6 +99,14 @@
}
const trezor = trezorModule(trezorOptions)
const uauthOptions = {
clientID: 'a25c3a65-a1f2-46cc-a515-a46fe7acb78c',
redirectUri: 'http://localhost:8080/',
scope:
'openid wallet email:optional humanity_check:optional profile:optional social:optional'
}
const uauth = uauthModule(uauthOptions)
const magic = magicModule({
apiKey: 'pk_live_02207D744E81C2BA'
// userEmail: 'test@test.com'
Expand All @@ -107,13 +118,18 @@
const sequence = sequenceModule()
const enkrypt = enkryptModule()
const mewWallet = mewWalletModule()
const onboard = Onboard({
wallets: [
injected,
web3auth,
ledger,
trezor,
walletConnect,
enkrypt,
mewWallet,
keepkey,
keystone,
coinbaseWallet,
Expand All @@ -124,7 +140,8 @@
gnosis,
dcent,
sequence,
tallyho
tallyho,
uauth
],
gas,
chains: [
Expand Down Expand Up @@ -238,8 +255,8 @@
}
},
// containerElements: {
// El must be present at time of JS script execution
// See ../public/index.html for element example
// El must be present at time of JS script execution
// See ../public/index.html for element example
// accountCenter: '#sample-container-el'
// },
// Sign up for your free api key at www.Blocknative.com
Expand All @@ -248,6 +265,12 @@
// Subscribe to wallet updates
const wallets$ = onboard.state.select('wallets').pipe(share())
wallets$.subscribe(wallet => {
const unstoppableUser = wallet.find(
provider => provider.label === 'Unstoppable'
)
if (unstoppableUser) console.log(unstoppableUser.instance.user)
})
const signTransactionMessage = async provider => {
const ethersProvider = new ethers.providers.Web3Provider(provider, 'any')
Expand Down Expand Up @@ -942,7 +965,7 @@
{/if}
</div>
{#if $wallets$ && !hideForIframe}
{#each $wallets$ as { icon, label, accounts, chains, provider }}
{#each $wallets$ as { icon, label, accounts, chains, provider, instance }}
<div class="connected-wallet">
<div class="flex-centered" style="width: 10rem;">
<div style="width: 2rem; height: 2rem">{@html icon}</div>
Expand All @@ -951,6 +974,16 @@
<div>Chains: {JSON.stringify(chains, null, 2)}</div>
{#if label === 'Unstoppable'}
<div>Unstoppable User: {instance.user.sub}</div>
<div>Unstoppable Wallet: {instance.user.wallet_address}</div>
<div>Unstoppable Email: {instance.user.email || ''}</div>
<div>
Unstoppable Humanity: {instance.user.humanity_check_id || ''}
</div>
<div>Unstoppable Profile: {instance.user.profile || ''}</div>
{/if}
{#each accounts as { address, ens, balance }}
<div
class="account-info"
Expand Down
Loading

0 comments on commit 60039c3

Please sign in to comment.