// index.ts
import { CosmosWallet, EthereumWallet, ExtensionWallet, selectWalletByPlatform, WCMobileWebWallet } from "@titan-kit/core";
import { myNewWalletInfo } from "./registry";
import { MyCustomWallet } from "./custom-wallet"; // If using custom implementation
export * from './registry';
const web = new ExtensionWallet(myNewWalletInfo);
web.setNetworkWallet('cosmos', new MyCustomWallet(myNewWalletInfo)); // Or new CosmosWallet(myNewWalletInfo)
// If your wallet supports Ethereum networks
web.setNetworkWallet('eip155', new EthereumWallet(myNewWalletInfo));
const myNewWallet = selectWalletByPlatform({
'mobile-web': new WCMobileWebWallet(myNewWalletInfo),
'web': web
});
export { myNewWallet };
import { TitanKitProvider } from '@titan-kit/react';
import { myNewWallet } from './my-new-wallet';
function App() {
return (
<TitanKitProvider
chains={chains}
assetLists={assetLists}
wallets={[myNewWallet]} // Add your new wallet to the supported wallets
>
{/* Your app components */}
</TitanKitProvider>
);
}