@@ -12,17 +12,26 @@ import { WalletConnectV2Connector } from './walletconnectV2';
1212
1313export const FILTERED_OUT_WALLETS = [ 'Trust Wallet' , 'Coinbase Wallet' , 'WalletConnect' ] ;
1414
15+ const rpcMap = getRpcUrlsByChainId ( ) ;
16+ rpcMap [ WalletChainIds . TESTNET ] = 'https://goerli.infura.io/v3/54af4f71d6c44e0ea83badb0886458f9' ;
17+
1518export const injectedConnector = new InjectedConnector ( {
1619 supportedChainIds : WALLET_SUPPORTED_CHAIN_IDS ,
1720} ) ;
1821
22+ const infinityWalletConnector = new InfinityWalletConnector ( {
23+ supportedChainIds : WALLET_SUPPORTED_CHAIN_IDS ,
24+ } ) ;
25+
26+ //
27+ // Below are the 3 connectors in which onyx chain is not supported,
28+ // above are all of the multi-chain supported injectors
29+ //
30+
1931const trustWalletConnector = new InjectedConnector ( {
2032 supportedChainIds : [ WalletChainIds . MAINNET ] ,
2133} ) ;
2234
23- const rpcMap = getRpcUrlsByChainId ( ) ;
24- rpcMap [ WalletChainIds . TESTNET ] = 'https://goerli.infura.io/v3/54af4f71d6c44e0ea83badb0886458f9' ;
25-
2635const walletConnectConnector = new WalletConnectV2Connector ( {
2736 supportedChainIds : [ WalletChainIds . MAINNET ] ,
2837 rpcMap,
@@ -40,10 +49,6 @@ const coinbaseWalletConnector = new WalletLinkConnector({
4049 supportedChainIds : [ WalletChainIds . MAINNET ] ,
4150} ) ;
4251
43- const infinityWalletConnector = new InfinityWalletConnector ( {
44- supportedChainIds : WALLET_SUPPORTED_CHAIN_IDS ,
45- } ) ;
46-
4752export const connectorsByName = {
4853 [ Connector . MetaMask ] : injectedConnector ,
4954 [ Connector . BraveWallet ] : injectedConnector ,
0 commit comments