Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce MockConnector option to enable test automation of dApps using starknetkit #116

Open
SergeyVolynkin opened this issue Jul 17, 2024 · 0 comments

Comments

@SergeyVolynkin
Copy link

SergeyVolynkin commented Jul 17, 2024

Hi @bluecco, @vladutjs
Would it be possible to add an implementation of a MockConnector to be used with starknetkit, similar to what WalletConnect/wagmi provides

For example with WalletConnect it is possible run tests against mocked ETH wallet via

const wagmiConfig = createConfig({
  autoConnect: true,
  connectors: [
    new MockConnector({
      chains: [sepolia],
      options: {
        flags: {
          isAuthorized: true,
        },
        walletClient: createWalletClient({
          account: mnemonicToAccount(testWallet.mnemonic),
          chain: sepolia,
          transport: http(),
        }),
      },
    }),
  ],
  publicClient,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant