-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * [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] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> 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 <[email protected]> * 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] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> 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 <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: Samuele Agostinelli <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Taylor Dawson <[email protected]> Co-authored-by: Gamaliel 'Yel' Padillo <[email protected]>
- Loading branch information
Showing
52 changed files
with
1,463 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -3973,7 +3973,7 @@ [email protected]: | |
|
||
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== | ||
|
||
[email protected]: | ||
|
@@ -6240,7 +6240,7 @@ [email protected]: | |
|
||
[email protected]: | ||
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: | ||
|
@@ -6872,7 +6872,7 @@ mri@^1.1.0: | |
|
||
[email protected]: | ||
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== | ||
|
||
[email protected]: | ||
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|
@@ -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: '[email protected]' | ||
|
@@ -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, | ||
|
@@ -124,7 +140,8 @@ | |
gnosis, | ||
dcent, | ||
sequence, | ||
tallyho | ||
tallyho, | ||
uauth | ||
], | ||
gas, | ||
chains: [ | ||
|
@@ -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 | ||
|
@@ -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') | ||
|
@@ -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> | ||
|
@@ -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" | ||
|
Oops, something went wrong.