Skip to content
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ We'll review and merge within 24 hours.
| `icon` | string (URL) | Yes | App icon URL. Must be HTTPS. PNG or SVG, 128x128px recommended. |
| `url` | string (URL) | Yes | DApp URL. Must be HTTPS. |
| `category` | string | Yes | One of: `defi`, `tools`, `gaming`, `social`, `nft`, `identity`, `other` |
| `networks` | string[] | Yes | Supported networks: `preview`, `preprod`, `mainnet`, or `*` for all. |
| `networks` | string[] | Yes | Supported networks: `stagenet`, `preview`, `preprod`, `mainnet`, or `*` for all. |
| `contracts` | object[] | No | Verified public contracts for this app. Used by 1AM Explorer to show partner themes and verified badges. |
| `featured` | boolean | No | Set by maintainers only. Do not include in submissions. |
| `new` | boolean | No | Automatically set for new listings. Removed after 30 days. |
Expand All @@ -85,7 +85,7 @@ We'll review and merge within 24 hours.
| Field | Type | Required | Description |
|---|---|---|---|
| `address` | string | Yes | 64-character Midnight contract address hex. |
| `network` | string | Yes | Contract network: `preview`, `preprod`, or `mainnet`. Must also be listed in the app `networks`. |
| `network` | string | Yes | Contract network: `stagenet`, `preview`, `preprod`, or `mainnet`. Must also be listed in the app `networks`. |
| `name` | string | Yes | Human-readable contract name. Max 40 chars. |
| `role` | string | Yes | Short role label, such as `Registry`, `Application`, or `Router`. |
| `description` | string | Yes | One-line contract description. Max 120 chars. |
Expand Down
4 changes: 2 additions & 2 deletions validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fs = require('fs');
const path = require('path');

const VALID_CATEGORIES = ['defi', 'tools', 'gaming', 'social', 'nft', 'identity', 'other'];
const VALID_NETWORKS = ['preview', 'preprod', 'mainnet', '*'];
const VALID_NETWORKS = ['stagenet', 'preview', 'preprod', 'mainnet', '*'];
const VALID_CONTRACT_THEMES = ['ascend'];
const MAX_ID_LENGTH = 32;
const MAX_NAME_LENGTH = 40;
Expand Down Expand Up @@ -118,7 +118,7 @@ for (const app of registry.apps) {
}

if (!VALID_NETWORKS.includes(contract.network) || contract.network === '*') {
fail(`Invalid contract network "${contract.network}" — must be one of: preview, preprod, mainnet`);
fail(`Invalid contract network "${contract.network}" — must be one of: stagenet, preview, preprod, mainnet`);
} else if (!Array.isArray(app.networks) || (!app.networks.includes('*') && !app.networks.includes(contract.network))) {
fail(`contract network "${contract.network}" is not listed in app.networks`);
} else {
Expand Down
Loading