Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions examples/conformance-runner/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Playwright
*.png
test-results/
playwright-report/
blob-report/
playwright/.cache/
28 changes: 28 additions & 0 deletions examples/conformance-runner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## CIP-103 Conformance Runner (dApp)

This is a small web dApp that:

- connects to a wallet using `@canton-network/dapp-sdk` discovery
- runs a subset of the CIP-103 conformance suite against the **currently connected** provider (no Playwright)
- lets you download an artifact JSON compatible with `tools/cip103-conformance/generate-report.mjs`

### Run

From repo root:

```bash
yarn install --mode=skip-build --no-immutable
yarn workspace @canton-network/example-conformance-runner run dev
```

Then open the page, connect a wallet, select a profile, and click **Run conformance**.

### Download artifact

Click **Download artifact JSON** to save a `result-connected-<profile>.json` file.

To include it in the HTML report site, copy it under `tools/cip103-conformance/` as `result-<wallet>.json` and run:

```bash
yarn workspace @canton-network/cip103-conformance report:html
```
12 changes: 12 additions & 0 deletions examples/conformance-runner/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CIP-103 Conformance Runner</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
33 changes: 33 additions & 0 deletions examples/conformance-runner/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@canton-network/example-conformance-runner",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview"
},
"dependencies": {
"@canton-network/cip103-conformance": "workspace:^",
"@canton-network/core-rpc-errors": "workspace:^",
"@canton-network/core-types": "workspace:^",
"@canton-network/dapp-sdk": "workspace:^",
"react": "^19.2.4",
"react-dom": "^19.2.4"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"eslint": "^10.0.2",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"nx": "^22.5.3",
"typescript": "~5.9.3",
"typescript-eslint": "^8.56.1",
"vite": "^7.3.1"
}
}
Loading
Loading