diff --git a/.changeset/rude-hornets-shop.md b/.changeset/rude-hornets-shop.md new file mode 100644 index 0000000..bca7080 --- /dev/null +++ b/.changeset/rude-hornets-shop.md @@ -0,0 +1,5 @@ +--- +'@node-real/walletkit': patch +--- + +Support telegram mini app diff --git a/packages/walletkit/src/evm/components/SetEvmWalletClickRef/index.tsx b/packages/walletkit/src/evm/components/SetEvmWalletClickRef/index.tsx index 054fd24..d1eb49d 100644 --- a/packages/walletkit/src/evm/components/SetEvmWalletClickRef/index.tsx +++ b/packages/walletkit/src/evm/components/SetEvmWalletClickRef/index.tsx @@ -1,5 +1,5 @@ +import { isMobile, isTMA } from '@/core/base/utils/mobile'; import { UseWalletRenderProps } from '@/core/hooks/useWalletRender'; -import { isMobile, isTMA } from '@/core/index'; import { useConnectModal } from '@/core/modals/ConnectModal/context'; import { ViewRoutes } from '@/core/modals/ConnectModal/RouteProvider'; import { useRouter } from '@/core/modals/ConnectModal/RouteProvider/context'; diff --git a/packages/walletkit/src/evm/utils/evmCommonErrorHandler.ts b/packages/walletkit/src/evm/utils/evmCommonErrorHandler.ts index d2c9cf0..364d984 100644 --- a/packages/walletkit/src/evm/utils/evmCommonErrorHandler.ts +++ b/packages/walletkit/src/evm/utils/evmCommonErrorHandler.ts @@ -1,4 +1,4 @@ -import { isIOS, isMobile } from '@/core/index'; +import { isIOS, isMobile } from '@/core/base/utils/mobile'; import { binanceWeb3Wallet, trustWallet } from '../wallets'; export function evmCommonErrorHandler(props: { log: any; handler: any; error: any }) { diff --git a/packages/walletkit/src/evm/wallets/metaMask/index.tsx b/packages/walletkit/src/evm/wallets/metaMask/index.tsx index 3da923f..208e2fd 100644 --- a/packages/walletkit/src/evm/wallets/metaMask/index.tsx +++ b/packages/walletkit/src/evm/wallets/metaMask/index.tsx @@ -2,7 +2,7 @@ import { metaMaskConfig } from '@/core/configs/metaMask'; import { hasEvmInjectedProvider } from '../utils'; import { injected } from '../injected'; import { InjectedEvmWalletOptions, EvmWallet } from '../types'; -import { isMobile, isTMA } from '@/core/index'; +import { isMobile, isTMA } from '@/core/base/utils/mobile'; export function metaMask(props: InjectedEvmWalletOptions = {}): EvmWallet { const { connectorOptions, ...restProps } = props; diff --git a/packages/walletkit/src/evm/wallets/trustWallet/index.tsx b/packages/walletkit/src/evm/wallets/trustWallet/index.tsx index c254cf1..5faa350 100644 --- a/packages/walletkit/src/evm/wallets/trustWallet/index.tsx +++ b/packages/walletkit/src/evm/wallets/trustWallet/index.tsx @@ -3,7 +3,7 @@ import { trustWalletConfig } from '@/core/configs/trustWallet'; import { injected } from '../injected'; import { EvmWallet, InjectedEvmWalletOptions } from '../types'; import { getEvmInjectedProvider } from '../utils'; -import { isMobile, isTMA } from '@/core/index'; +import { isMobile, isTMA } from '@/core/base/utils/mobile'; export function trustWallet(props: InjectedEvmWalletOptions = {}): EvmWallet { const { connectorOptions, ...restProps } = props;