Skip to content

Commit 29ab6b7

Browse files
committed
feat(web): add keystone wallet back
We had to remove keystone from the list of wallets in this PR: https://github.com/safe-global/safe-wallet-monorepo/pull/4686/files as the previous package had a faulty dependency that didn’t resolve with yarn v4. This has been resolved here: thirdweb-dev/web3-onboard#2322 And I’m adding keystone back
1 parent 866a772 commit 29ab6b7

File tree

4 files changed

+336
-7
lines changed

4 files changed

+336
-7
lines changed

apps/web/jest.setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { server } from '@/tests/server'
55

66
jest.mock('@web3-onboard/coinbase', () => jest.fn())
77
jest.mock('@web3-onboard/injected-wallets', () => ({ ProviderLabel: { MetaMask: 'MetaMask' } }))
8+
jest.mock('@web3-onboard/keystone/dist/index', () => jest.fn())
89
jest.mock('@web3-onboard/ledger/dist/index', () => jest.fn())
910
jest.mock('@web3-onboard/trezor', () => jest.fn())
1011
jest.mock('@web3-onboard/walletconnect', () => jest.fn())

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"@web3-onboard/coinbase": "^2.4.1",
6767
"@web3-onboard/core": "2.21.4",
6868
"@web3-onboard/injected-wallets": "^2.11.2",
69+
"@web3-onboard/keystone": "^2.3.11",
6970
"@web3-onboard/ledger": "2.3.2",
7071
"@web3-onboard/trezor": "2.4.3",
7172
"@web3-onboard/walletconnect": "^2.6.1",

apps/web/src/hooks/wallets/wallets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { ChainInfo } from '@safe-global/safe-gateway-typescript-sdk'
33
import type { InitOptions } from '@web3-onboard/core'
44
import coinbaseModule from '@web3-onboard/coinbase'
55
import injectedWalletModule from '@web3-onboard/injected-wallets'
6+
import keystoneModule from '@web3-onboard/keystone/dist/index'
67
import ledgerModule from '@web3-onboard/ledger/dist/index'
78
import { ledgerModuleV2 } from '@/services/onboard/ledger-module'
89
import trezorModule from '@web3-onboard/trezor'
@@ -45,6 +46,7 @@ const WALLET_MODULES: Partial<{ [_key in WALLET_KEYS]: (chain: ChainInfo) => Wal
4546
[WALLET_KEYS.LEDGER]: () => ledgerModule(),
4647
[WALLET_KEYS.LEDGER_V2]: () => ledgerModuleV2(),
4748
[WALLET_KEYS.TREZOR]: () => trezorModule({ appUrl: TREZOR_APP_URL, email: TREZOR_EMAIL }) as WalletInit,
49+
[WALLET_KEYS.KEYSTONE]: () => keystoneModule() as WalletInit,
4850
[WALLET_KEYS.PK]: (chain) => pkModule(chain.chainId, chain.rpcUri) as WalletInit,
4951
}
5052

0 commit comments

Comments
 (0)