Skip to content

Commit

Permalink
remove torus, solana adapters from default external adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 9, 2024
1 parent 3028abe commit 8f245e3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/adapters/default-evm-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"dependencies": {
"@web3auth/base": "^9.0.0-alpha.0",
"@web3auth/base-evm-adapter": "^9.0.0-alpha.0",
"@web3auth/torus-evm-adapter": "^9.0.0-alpha.0",
"@web3auth/wallet-connect-v2-adapter": "^9.0.0-alpha.0",
"mipd": "^0.0.7"
},
Expand Down
8 changes: 2 additions & 6 deletions packages/adapters/default-evm-adapter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ export const getDefaultExternalAdapters = async (params: { options: IWeb3AuthCor
...(chainConfig || {}),
};

const [{ TorusWalletAdapter }, { WalletConnectV2Adapter }] = await Promise.all([
import("@web3auth/torus-evm-adapter"),
import("@web3auth/wallet-connect-v2-adapter"),
]);
const torusWalletAdapter = new TorusWalletAdapter({ chainConfig: finalChainConfig, clientId, sessionTime, web3AuthNetwork, useCoreKitKey });
const [{ WalletConnectV2Adapter }] = await Promise.all([import("@web3auth/wallet-connect-v2-adapter")]);

const wcv2Adapter = new WalletConnectV2Adapter({
chainConfig: finalChainConfig,
Expand Down Expand Up @@ -54,5 +50,5 @@ export const getDefaultExternalAdapters = async (params: { options: IWeb3AuthCor
});
});

return [...injectedProviders, torusWalletAdapter, wcv2Adapter];
return [...injectedProviders, wcv2Adapter];
};
1 change: 0 additions & 1 deletion packages/adapters/default-solana-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@web3auth/base": "^9.0.0-alpha.0",
"@web3auth/base-solana-adapter": "^9.0.0-alpha.0",
"@web3auth/solana-provider": "^9.0.0-alpha.0",
"@web3auth/torus-solana-adapter": "^9.0.0-alpha.0",
"bn.js": "^5.2.1"
},
"files": [
Expand Down
4 changes: 1 addition & 3 deletions packages/adapters/default-solana-adapter/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ export const getDefaultExternalAdapters = async (params: { options: IWeb3AuthCor
...(getChainConfig(chainConfig.chainNamespace, chainConfig?.chainId) as CustomChainConfig),
...(chainConfig || {}),
};
const [{ SolanaWalletAdapter }] = await Promise.all([import("@web3auth/torus-solana-adapter")]);
const solanaWalletAdapter = new SolanaWalletAdapter({ chainConfig: finalChainConfig, clientId, sessionTime, web3AuthNetwork, useCoreKitKey });

// get installed wallets that support standard wallet
const standardWalletAdapters = [] as BaseAdapter<void>[];
Expand All @@ -50,5 +48,5 @@ export const getDefaultExternalAdapters = async (params: { options: IWeb3AuthCor
})
);
});
return [solanaWalletAdapter, ...standardWalletAdapters];
return standardWalletAdapters;
};

0 comments on commit 8f245e3

Please sign in to comment.