midnight-cq:dapp-connector-testing

Validate DApp wallet integration by exercising the InitialAPI and ConnectedAPI.

37|9|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/devrelaicom/midnight-expert --skill midnight-cq-dapp-connector-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: midnight-cq:dapp-connector-testing
Source: https://github.com/devrelaicom/midnight-expert/tree/main/plugins/midnight-cq/skills/dapp-connector-testing
Command: npx skills add https://github.com/devrelaicom/midnight-expert --skill midnight-cq-dapp-connector-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a structured approach to verify DApp wallet integration with the DApp Connector API by simulating wallet connections, API surfaces, and error scenarios across diverse stub configurations.

Core Features & Use Cases

  • Connection lifecycle testing: wallet discovery, apiVersion validation, connect/disconnect, and reconnection flows.
  • ConnectedAPI methods coverage: balances, addresses, transfer/intent creation, signing, configuration, and proving provider.
  • Error handling and progressive enhancement: simulate InternalError, Rejected, PermissionRejected, and Disconnected, and verify fallback behavior when methods are not available.
  • Wallet stub patterns: configurable InitialAPI and ConnectedAPI doubles to model diverse wallet capabilities and failure modes.

Quick Start

Create a wallet stub, connect to the DApp, and exercise a representative set of API calls (balances, transfers, signing) to verify integration points.

Frequently Asked Questions about midnight-cq:dapp-connector-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test DApp wallet integration end-to-end?

DApp wallet integration testing validates connection lifecycles and API interactions using configurable wallet stubs. You exercise wallet discovery, apiVersion validation, balances, transfers, signing, and error handling across diverse stub configurations to verify integration points.

What is a wallet stub and how does it work for DApp testing?

A wallet stub is a configurable double for the InitialAPI and ConnectedAPI that models diverse wallet capabilities and failure modes. It allows you to simulate wallet connections, API surfaces, and error scenarios without a real wallet.

How do I simulate wallet connection errors like Rejected or Disconnected?

Simulate wallet connection errors by configuring wallet stubs to trigger InternalError, Rejected, PermissionRejected, and Disconnected states. This verifies your DApp's error handling and fallback behavior when ConnectedAPI methods fail or are unavailable.

Does this DApp connector testing approach cover progressive enhancement?

Yes, DApp connector testing covers progressive enhancement by verifying fallback behavior when ConnectedAPI methods are not available. It checks security patterns and ensures your DApp degrades gracefully across diverse wallet stub configurations.

What ConnectedAPI methods can I validate during DApp wallet integration?

You can validate ConnectedAPI methods including balance queries, address retrieval, transfer creation, intent creation, signing, configuration, and proving provider. This ensures broad API surface coverage across multiple stub configurations.