-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c27857
commit 2926d03
Showing
3 changed files
with
2 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ import Onboard, { OnboardAPI } from '@web3-onboard/core'; | |
import injectedModule from '@web3-onboard/injected-wallets'; | ||
import walletConnectModule from '@web3-onboard/walletconnect'; | ||
import coinbaseWalletModule from '@web3-onboard/coinbase'; | ||
import ledgerModule from '@web3-onboard/ledger'; | ||
import trezorModule from '@web3-onboard/trezor'; | ||
import { KeyPair, StealthKeyRegistry, utils, Umbra } from '@umbracash/umbra-js'; | ||
import { | ||
|
@@ -34,10 +33,6 @@ const walletConnect = walletConnectModule({ | |
version: 2, | ||
}); | ||
const coinbaseWalletSdk = coinbaseWalletModule(); | ||
const ledger = ledgerModule({ | ||
projectId: process.env.WALLET_CONNECT_PROJECT_ID || '', | ||
walletConnectVersion: 2, | ||
}); | ||
const trezor = trezorModule({ email: '[email protected]', appUrl: 'https://app.umbra.cash/' }); | ||
|
||
/** | ||
|
@@ -92,7 +87,7 @@ export default function useWalletStore() { | |
// Initialize onboard.js if not yet done | ||
if (!onboard.value) { | ||
onboard.value = Onboard({ | ||
wallets: [injected, walletConnect, coinbaseWalletSdk, ledger, trezor], | ||
wallets: [injected, walletConnect, coinbaseWalletSdk, trezor], | ||
chains: supportedChains.map((chain) => { | ||
return { | ||
id: chain.chainId, | ||
|
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 |
---|---|---|
|
@@ -2724,31 +2724,6 @@ | |
"@jridgewell/resolve-uri" "^3.1.0" | ||
"@jridgewell/sourcemap-codec" "^1.4.14" | ||
|
||
"@ledgerhq/connect-kit-loader@^1.1.0": | ||
version "1.1.1" | ||
resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.1.1.tgz#7f495de1565e393d2d3a9d54c5831ed045e403a2" | ||
integrity sha512-Jq/CMEw+o5+u6YEcVtkE5UiEDhTjyqro1vo0hDDScf1WdDkxBHahYn/1bL9QEhA4nG5JyfygcL1+CKT+2BilWw== | ||
|
||
"@ledgerhq/devices@^7.0.5": | ||
version "7.0.5" | ||
resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-7.0.5.tgz#2b3f69b84d4bccb2c4b1d34e534444da862f4880" | ||
integrity sha512-2o2zD2Yv1Hgd3+R2aLCvlyT7NxBz2nltawTCPSXaf3+8MDIyZbiJlXi43hLEISRFBG3u3bYwAQuiOisimN9C6Q== | ||
dependencies: | ||
"@ledgerhq/errors" "^6.12.1" | ||
"@ledgerhq/logs" "^6.10.1" | ||
rxjs "6" | ||
semver "^7.3.5" | ||
|
||
"@ledgerhq/errors@^6.12.1": | ||
version "6.12.1" | ||
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.12.1.tgz#99ad10bd528942bdfde0ef3d4d0dce658f6f4405" | ||
integrity sha512-2qeUSUCpQbMhV9eLJDLI8wycFwTcWszP8g3cJycBt9Jf1VczC5MRERwAQv5AYhPa4rcy+jLKBOVZYxc35r5l7g== | ||
|
||
"@ledgerhq/logs@^6.10.1": | ||
version "6.10.1" | ||
resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-6.10.1.tgz#5bd16082261d7364eabb511c788f00937dac588d" | ||
integrity sha512-z+ILK8Q3y+nfUl43ctCPuR4Y2bIxk/ooCQFwZxhtci1EhAtMDzMAx2W25qx8G1PPL9UUOdnUax19+F0OjXoj4w== | ||
|
||
"@leichtgewicht/ip-codec@^2.0.1": | ||
version "2.0.4" | ||
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b" | ||
|
@@ -5731,28 +5706,6 @@ | |
lodash.isequal "4.5.0" | ||
uint8arrays "^3.1.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.9.1.tgz#1a333933750f5f933d9b7788a8dae44ce1173063" | ||
integrity sha512-xyWeP0eLhEEDQAVJSmqs4n/AClKUM+8os2ZFe7BTuw1tFYjeLNVDtKCHziVOSTh8wEChMsKSGKA4zerQoH8mAQ== | ||
dependencies: | ||
"@walletconnect/heartbeat" "1.2.1" | ||
"@walletconnect/jsonrpc-provider" "1.0.13" | ||
"@walletconnect/jsonrpc-types" "1.0.3" | ||
"@walletconnect/jsonrpc-utils" "1.0.8" | ||
"@walletconnect/jsonrpc-ws-connection" "1.0.13" | ||
"@walletconnect/keyvaluestorage" "^1.0.2" | ||
"@walletconnect/logger" "^2.0.1" | ||
"@walletconnect/relay-api" "^1.0.9" | ||
"@walletconnect/relay-auth" "^1.0.4" | ||
"@walletconnect/safe-json" "^1.0.2" | ||
"@walletconnect/time" "^1.0.2" | ||
"@walletconnect/types" "2.9.1" | ||
"@walletconnect/utils" "2.9.1" | ||
events "^3.3.0" | ||
lodash.isequal "4.5.0" | ||
uint8arrays "^3.1.0" | ||
|
||
"@walletconnect/core@^1.8.0": | ||
version "1.8.0" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-1.8.0.tgz#6b2748b90c999d9d6a70e52e26a8d5e8bfeaa81e" | ||
|
@@ -5805,21 +5758,6 @@ | |
"@walletconnect/utils" "2.9.0" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/ethereum-provider/-/ethereum-provider-2.9.1.tgz#6f41acb38259a59f383d490396aa9c0933839d0b" | ||
integrity sha512-JiMatBFVgzJSQrckpbOoOsmQmKnbTn9wzmU10MBPe9W6ZV2mf2JuxW0luWKLpQkuCmM9mL6+nCKX7nfW9V6qrQ== | ||
dependencies: | ||
"@walletconnect/jsonrpc-http-connection" "^1.0.7" | ||
"@walletconnect/jsonrpc-provider" "^1.0.13" | ||
"@walletconnect/jsonrpc-types" "^1.0.3" | ||
"@walletconnect/jsonrpc-utils" "^1.0.8" | ||
"@walletconnect/sign-client" "2.9.1" | ||
"@walletconnect/types" "2.9.1" | ||
"@walletconnect/universal-provider" "2.9.1" | ||
"@walletconnect/utils" "2.9.1" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/events@^1.0.1": | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/events/-/events-1.0.1.tgz#2b5f9c7202019e229d7ccae1369a9e86bda7816c" | ||
|
@@ -5910,17 +5848,6 @@ | |
tslib "1.14.1" | ||
ws "^7.5.1" | ||
|
||
"@walletconnect/[email protected]": | ||
version "1.0.13" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/jsonrpc-ws-connection/-/jsonrpc-ws-connection-1.0.13.tgz#23b0cdd899801bfbb44a6556936ec2b93ef2adf4" | ||
integrity sha512-mfOM7uFH4lGtQxG+XklYuFBj6dwVvseTt5/ahOkkmpcAEgz2umuzu7fTR+h5EmjQBdrmYyEBOWADbeaFNxdySg== | ||
dependencies: | ||
"@walletconnect/jsonrpc-utils" "^1.0.6" | ||
"@walletconnect/safe-json" "^1.0.2" | ||
events "^3.3.0" | ||
tslib "1.14.1" | ||
ws "^7.5.1" | ||
|
||
"@walletconnect/keyvaluestorage@^1.0.2": | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/keyvaluestorage/-/keyvaluestorage-1.0.2.tgz#92f5ca0f54c1a88a093778842ce0c874d86369c8" | ||
|
@@ -5950,13 +5877,6 @@ | |
buffer "6.0.3" | ||
valtio "1.10.6" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.6.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/modal-core/-/modal-core-2.6.1.tgz#bc76055d0b644a2d4b98024324825c108a700905" | ||
integrity sha512-f2hYlJ5pwzGvjyaZ6BoGR5uiMgXzWXt6w6ktt1N8lmY6PiYp8whZgqx2hTxVWwVlsGnaIfh6UHp1hGnANx0eTQ== | ||
dependencies: | ||
valtio "1.11.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.5.9" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.5.9.tgz#4d07f1697147ec9f75d85d93f564cadae05a5e59" | ||
|
@@ -5967,16 +5887,6 @@ | |
motion "10.16.2" | ||
qrcode "1.5.3" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.6.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/modal-ui/-/modal-ui-2.6.1.tgz#200c54c8dfe3c71321abb2724e18bb357dfd6371" | ||
integrity sha512-RFUOwDAMijSK8B7W3+KoLKaa1l+KEUG0LCrtHqaB0H0cLnhEGdLR+kdTdygw+W8+yYZbkM5tXBm7MlFbcuyitA== | ||
dependencies: | ||
"@walletconnect/modal-core" "2.6.1" | ||
lit "2.7.6" | ||
motion "10.16.2" | ||
qrcode "1.5.3" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.5.9" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.5.9.tgz#28840f2a46bcd0a47c5fda60d18a5f1607a92a72" | ||
|
@@ -5985,14 +5895,6 @@ | |
"@walletconnect/modal-core" "2.5.9" | ||
"@walletconnect/modal-ui" "2.5.9" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.6.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/modal/-/modal-2.6.1.tgz#066fdbfcff83b58c8a9da66ab4af0eb93e3626de" | ||
integrity sha512-G84tSzdPKAFk1zimgV7JzIUFT5olZUVtI3GcOk77OeLYjlMfnDT23RVRHm5EyCrjkptnvpD0wQScXePOFd2Xcw== | ||
dependencies: | ||
"@walletconnect/modal-core" "2.6.1" | ||
"@walletconnect/modal-ui" "2.6.1" | ||
|
||
"@walletconnect/qrcode-modal@^1.8.0": | ||
version "1.8.0" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/qrcode-modal/-/qrcode-modal-1.8.0.tgz#ddd6f5c9b7ee52c16adf9aacec2a3eac4994caea" | ||
|
@@ -6062,21 +5964,6 @@ | |
"@walletconnect/utils" "2.9.0" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.9.1.tgz#e4aa9c7b15849f450fdd1b03754a7517cb5c8811" | ||
integrity sha512-Z7tFRrJ9btA1vU427vsjUS6cPlHQVcTWdKH90khEc2lv3dB6mU8FNO0VJsw+I2D7CW7WaMWF3nnj6Z1FfotbDg== | ||
dependencies: | ||
"@walletconnect/core" "2.9.1" | ||
"@walletconnect/events" "^1.0.1" | ||
"@walletconnect/heartbeat" "1.2.1" | ||
"@walletconnect/jsonrpc-utils" "1.0.8" | ||
"@walletconnect/logger" "^2.0.1" | ||
"@walletconnect/time" "^1.0.2" | ||
"@walletconnect/types" "2.9.1" | ||
"@walletconnect/utils" "2.9.1" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/socket-transport@^1.8.0": | ||
version "1.8.0" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/socket-transport/-/socket-transport-1.8.0.tgz#9a1128a249628a0be11a0979b522fe82b44afa1b" | ||
|
@@ -6105,18 +5992,6 @@ | |
"@walletconnect/logger" "^2.0.1" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.9.1.tgz#cb32ff396cc8880a7395f28716d1e82f407e1372" | ||
integrity sha512-xbGgTPuD6xsb7YMvCESBIH55cjB86QAnnVL50a/ED42YkQzDsOdJ0VGTbrm0tG5cxUOF933rpxZQjxGdP+ovww== | ||
dependencies: | ||
"@walletconnect/events" "^1.0.1" | ||
"@walletconnect/heartbeat" "1.2.1" | ||
"@walletconnect/jsonrpc-types" "1.0.3" | ||
"@walletconnect/keyvaluestorage" "^1.0.2" | ||
"@walletconnect/logger" "^2.0.1" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/types@^1.8.0": | ||
version "1.8.0" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-1.8.0.tgz#3f5e85b2d6b149337f727ab8a71b8471d8d9a195" | ||
|
@@ -6137,21 +6012,6 @@ | |
"@walletconnect/utils" "2.9.0" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.9.1.tgz#b9034dfa748f11b692d45b584f202cfcfdd289ea" | ||
integrity sha512-Ychf+/J0Ql3UvaiPVEGtdpYXXDa87e6hP+NUEl/+nF41x3dlH0P1zoIgX5sWbpGP8HRaKd8Qsm0N6S7RalC+LQ== | ||
dependencies: | ||
"@walletconnect/jsonrpc-http-connection" "^1.0.7" | ||
"@walletconnect/jsonrpc-provider" "1.0.13" | ||
"@walletconnect/jsonrpc-types" "^1.0.2" | ||
"@walletconnect/jsonrpc-utils" "^1.0.7" | ||
"@walletconnect/logger" "^2.0.1" | ||
"@walletconnect/sign-client" "2.9.1" | ||
"@walletconnect/types" "2.9.1" | ||
"@walletconnect/utils" "2.9.1" | ||
events "^3.3.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.0" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.9.0.tgz#c73925edb9fefe79021bcf028e957028f986b728" | ||
|
@@ -6172,26 +6032,6 @@ | |
query-string "7.1.3" | ||
uint8arrays "^3.1.0" | ||
|
||
"@walletconnect/[email protected]": | ||
version "2.9.1" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.9.1.tgz#92abc24b3af3ead42a3864e019dbf2f651ab2e47" | ||
integrity sha512-tXeQVebF5oPBvhdmuUyVSkSIBYx/egIi4czav1QrnUpwrUS1LsrFhyWBxSbhN7TXY287ULWkEf6aFpWOHdp5EA== | ||
dependencies: | ||
"@stablelib/chacha20poly1305" "1.0.1" | ||
"@stablelib/hkdf" "1.0.1" | ||
"@stablelib/random" "^1.0.2" | ||
"@stablelib/sha256" "1.0.1" | ||
"@stablelib/x25519" "^1.0.3" | ||
"@walletconnect/relay-api" "^1.0.9" | ||
"@walletconnect/safe-json" "^1.0.2" | ||
"@walletconnect/time" "^1.0.2" | ||
"@walletconnect/types" "2.9.1" | ||
"@walletconnect/window-getters" "^1.0.1" | ||
"@walletconnect/window-metadata" "^1.0.1" | ||
detect-browser "5.3.0" | ||
query-string "7.1.3" | ||
uint8arrays "^3.1.0" | ||
|
||
"@walletconnect/utils@^1.8.0": | ||
version "1.8.0" | ||
resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-1.8.0.tgz#2591a197c1fa7429941fe428876088fda6632060" | ||
|
@@ -6288,19 +6128,6 @@ | |
joi "17.9.1" | ||
lodash.uniqby "^4.7.0" | ||
|
||
"@web3-onboard/ledger@^2.5.2": | ||
version "2.5.2" | ||
resolved "https://registry.yarnpkg.com/@web3-onboard/ledger/-/ledger-2.5.2.tgz#09ae2b28e873156a8ead65ad428f7cd061a78ee6" | ||
integrity sha512-Hnq4HvhtUrRlr3rcM70uDxqsky9riV676tNUElTyi1baqi58dm2IPgctzMqEamlJqYIRLXlhcf+FaMaf4vZMHg== | ||
dependencies: | ||
"@ethersproject/providers" "5.5.0" | ||
"@ledgerhq/connect-kit-loader" "^1.1.0" | ||
"@walletconnect/client" "^1.8.0" | ||
"@walletconnect/ethereum-provider" "2.9.1" | ||
"@walletconnect/modal" "2.6.1" | ||
"@web3-onboard/common" "^2.3.3" | ||
rxjs "^7.5.2" | ||
|
||
"@web3-onboard/trezor@^2.3.2": | ||
version "2.4.2" | ||
resolved "https://registry.yarnpkg.com/@web3-onboard/trezor/-/trezor-2.4.2.tgz#49a485467d970ae872288c07eccb7adf18782622" | ||
|
@@ -16001,15 +15828,6 @@ [email protected]: | |
lit-element "^3.3.0" | ||
lit-html "^2.7.0" | ||
|
||
[email protected]: | ||
version "2.7.6" | ||
resolved "https://registry.yarnpkg.com/lit/-/lit-2.7.6.tgz#810007b876ed43e0c70124de91831921598b1665" | ||
integrity sha512-1amFHA7t4VaaDe+vdQejSVBklwtH9svGoG6/dZi9JhxtJBBlqY5D1RV7iLUYY0trCqQc4NfhYYZilZiVHt7Hxg== | ||
dependencies: | ||
"@lit/reactive-element" "^1.6.0" | ||
lit-element "^3.3.0" | ||
lit-html "^2.7.0" | ||
|
||
load-json-file@^1.0.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" | ||
|
@@ -20064,7 +19882,7 @@ rustbn.js@~0.2.0: | |
resolved "https://registry.yarnpkg.com/rustbn.js/-/rustbn.js-0.2.0.tgz#8082cb886e707155fd1cb6f23bd591ab8d55d0ca" | ||
integrity sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA== | ||
|
||
rxjs@6, rxjs@^6.4.0, rxjs@^6.5.2, rxjs@^6.6.3: | ||
rxjs@^6.4.0, rxjs@^6.5.2, rxjs@^6.6.3: | ||
version "6.6.7" | ||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" | ||
integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== | ||
|
@@ -22688,14 +22506,6 @@ [email protected]: | |
proxy-compare "2.5.1" | ||
use-sync-external-store "1.2.0" | ||
|
||
[email protected]: | ||
version "1.11.0" | ||
resolved "https://registry.yarnpkg.com/valtio/-/valtio-1.11.0.tgz#c029dcd17a0f99d2fbec933721fe64cfd32a31ed" | ||
integrity sha512-65Yd0yU5qs86b5lN1eu/nzcTgQ9/6YnD6iO+DDaDbQLn1Zv2w12Gwk43WkPlUBxk5wL/6cD5YMFf7kj6HZ1Kpg== | ||
dependencies: | ||
proxy-compare "2.5.1" | ||
use-sync-external-store "1.2.0" | ||
|
||
varint@^5.0.0: | ||
version "5.0.2" | ||
resolved "https://registry.yarnpkg.com/varint/-/varint-5.0.2.tgz#5b47f8a947eb668b848e034dcfa87d0ff8a7f7a4" | ||
|