Skip to content

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

@SergeyVolynkin

Description

@SergeyVolynkin

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,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions