File tree 4 files changed +336
-7
lines changed
4 files changed +336
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { server } from '@/tests/server'
5
5
6
6
jest . mock ( '@web3-onboard/coinbase' , ( ) => jest . fn ( ) )
7
7
jest . mock ( '@web3-onboard/injected-wallets' , ( ) => ( { ProviderLabel : { MetaMask : 'MetaMask' } } ) )
8
+ jest . mock ( '@web3-onboard/keystone/dist/index' , ( ) => jest . fn ( ) )
8
9
jest . mock ( '@web3-onboard/ledger/dist/index' , ( ) => jest . fn ( ) )
9
10
jest . mock ( '@web3-onboard/trezor' , ( ) => jest . fn ( ) )
10
11
jest . mock ( '@web3-onboard/walletconnect' , ( ) => jest . fn ( ) )
Original file line number Diff line number Diff line change 66
66
"@web3-onboard/coinbase" : " ^2.4.1" ,
67
67
"@web3-onboard/core" : " 2.21.4" ,
68
68
"@web3-onboard/injected-wallets" : " ^2.11.2" ,
69
+ "@web3-onboard/keystone" : " ^2.3.11" ,
69
70
"@web3-onboard/ledger" : " 2.3.2" ,
70
71
"@web3-onboard/trezor" : " 2.4.3" ,
71
72
"@web3-onboard/walletconnect" : " ^2.6.1" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { ChainInfo } from '@safe-global/safe-gateway-typescript-sdk'
3
3
import type { InitOptions } from '@web3-onboard/core'
4
4
import coinbaseModule from '@web3-onboard/coinbase'
5
5
import injectedWalletModule from '@web3-onboard/injected-wallets'
6
+ import keystoneModule from '@web3-onboard/keystone/dist/index'
6
7
import ledgerModule from '@web3-onboard/ledger/dist/index'
7
8
import { ledgerModuleV2 } from '@/services/onboard/ledger-module'
8
9
import trezorModule from '@web3-onboard/trezor'
@@ -45,6 +46,7 @@ const WALLET_MODULES: Partial<{ [_key in WALLET_KEYS]: (chain: ChainInfo) => Wal
45
46
[ WALLET_KEYS . LEDGER ] : ( ) => ledgerModule ( ) ,
46
47
[ WALLET_KEYS . LEDGER_V2 ] : ( ) => ledgerModuleV2 ( ) ,
47
48
[ WALLET_KEYS . TREZOR ] : ( ) => trezorModule ( { appUrl : TREZOR_APP_URL , email : TREZOR_EMAIL } ) as WalletInit ,
49
+ [ WALLET_KEYS . KEYSTONE ] : ( ) => keystoneModule ( ) as WalletInit ,
48
50
[ WALLET_KEYS . PK ] : ( chain ) => pkModule ( chain . chainId , chain . rpcUri ) as WalletInit ,
49
51
}
50
52
You can’t perform that action at this time.
0 commit comments