dAppBooster
    Preparing search index...

    Function createMockWeb3Status

    • Returns a minimal mock of the useWeb3Status return value. Pass overrides to test specific states.

      Parameters

      • Optionaloverrides: Partial<
            {
                address: `0x${string}`
                | undefined;
                appChainId: number;
                balance: undefined;
                connectingWallet: boolean;
                disconnect: () => void;
                isWalletConnected: boolean;
                isWalletSynced: boolean;
                readOnlyClient: undefined;
                switchChain: (_chainId?: number) => void;
                switchingChain: boolean;
                walletChainId: number | undefined;
                walletClient: undefined;
            },
        >

      Returns {
          address: `0x${string}` | undefined;
          appChainId: number;
          balance: undefined;
          connectingWallet: boolean;
          disconnect: () => void;
          isWalletConnected: boolean;
          isWalletSynced: boolean;
          readOnlyClient: undefined;
          switchChain: (_chainId?: number) => void;
          switchingChain: boolean;
          walletChainId: number | undefined;
          walletClient: undefined;
      }