|
1 | | -## Foundry |
| 1 | +# SKALE Documentation |
2 | 2 |
|
3 | | -**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.** |
| 3 | +> [docs.skale.space](https://docs.skale.space) — Official documentation for the SKALE Network. |
4 | 4 |
|
5 | | -Foundry consists of: |
| 5 | +**SKALE** is the blockchain for a billion agents — programmable privacy built into the protocol, with zero gas fees, agentic commerce primitives, and horizontal scalability. |
6 | 6 |
|
7 | | -- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools). |
8 | | -- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data. |
9 | | -- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network. |
10 | | -- **Chisel**: Fast, utilitarian, and verbose solidity REPL. |
| 7 | +This repository powers the SKALE documentation site, built with [Mintlify](https://mintlify.com). |
11 | 8 |
|
12 | | -## Documentation |
| 9 | +## What is SKALE? |
13 | 10 |
|
14 | | -https://book.getfoundry.sh/ |
| 11 | +SKALE is a network of independent Layer 1 chains (SKALE Chains) anchored to Ethereum and Base. Unlike traditional blockchains that scale one chain vertically, SKALE scales horizontally — adding more chains as demand grows. Each chain runs on a dedicated subset of validators (all validators run all chains simultaneously via containerization), achieving ~1,500 TPS per chain with 1–2s finality. |
15 | 12 |
|
16 | | -## Usage |
| 13 | +### Key Differentiators |
17 | 14 |
|
18 | | -### Build |
| 15 | +| Feature | Description | |
| 16 | +|---------|-------------| |
| 17 | +| **Programmable Privacy** | Threshold-encrypted transactions, conditional decryption, and confidential tokens — built into consensus via BITE (Blockchain Integrated Threshold Encryption). No ZK circuits, no TEEs. | |
| 18 | +| **Zero Gas Fees** | End users never hold gas tokens. Powered by EIP-3009 meta-transactions, SFuel distribution, and credit-based chain models. | |
| 19 | +| **Agentic Commerce** | Native x402 (HTTP 402 payments), MPP (Machine Payments Protocol), ERC-8004 agent identity — agents pay agents autonomously. | |
| 20 | +| **Horizontal Scalability** | Deploy dedicated SKALE Chains as demand scales. No contention, no shared mempool, no congestion. | |
| 21 | +| **Enhanced EVM** | Native precompiled contracts for RNG (VRF), gasless transactions, filestorage, and encryption — no oracles or middleware needed. | |
19 | 22 |
|
20 | | -```shell |
21 | | -$ forge build |
22 | | -``` |
| 23 | +Learn more at [skale.space](https://skale.space) or dive into the docs at [get-started/skale](https://docs.skale.space/get-started/skale). |
23 | 24 |
|
24 | | -### Test |
| 25 | +## Repository Structure |
25 | 26 |
|
26 | | -```shell |
27 | | -$ forge test |
| 27 | +``` |
| 28 | +docs.skale.space/ |
| 29 | +├── docs.json # Mintlify navigation config (all page structure, redirects) |
| 30 | +├── custom.css # Custom Mintlify styles |
| 31 | +├── _snippets/ # Reusable MDX includes (chain addresses, AI integrations) |
| 32 | +├── get-started/ # Introduction, quick starts, SKL token, agentic builders |
| 33 | +├── cookbook/ # Step-by-step tutorials (deployment, privacy, x402, MPP, agents) |
| 34 | +├── developers/ # Technical docs (integrate SKALE, privacy, SDKs, bridge, crypto) |
| 35 | +├── skale-chain/ # Chain internals (consensus, block rotation, DDOS, precompiles) |
| 36 | +├── chain-types/ # AppChain, Credit Chain, Zero-Gas Chain |
| 37 | +├── validators/ # Supernode operations, CLI, watchdog, upgrade guides |
| 38 | +├── .agents/ # AI agent skills for building with SKALE |
| 39 | +│ └── skills/ # Reusable skills (glossary, build, etc.) |
| 40 | +└── AGENTS.md # Full agent guidelines (product pillars, terminology, paths) |
28 | 41 | ``` |
29 | 42 |
|
30 | | -### Format |
| 43 | +## Contributing |
31 | 44 |
|
32 | | -```shell |
33 | | -$ forge fmt |
34 | | -``` |
| 45 | +We welcome contributions to improve SKALE documentation! Whether it's fixing a typo, clarifying a concept, adding a tutorial, or expanding the privacy or agentic commerce sections — every contribution helps. |
35 | 46 |
|
36 | | -### Gas Snapshots |
| 47 | +### Getting Started |
37 | 48 |
|
38 | | -```shell |
39 | | -$ forge snapshot |
40 | | -``` |
| 49 | +1. **Fork** this repository |
| 50 | +2. **Clone** your fork: |
| 51 | + ```bash |
| 52 | + git clone https://github.com/YOUR_USERNAME/docs.skale.space.git |
| 53 | + cd docs.skale.space |
| 54 | + ``` |
| 55 | +3. **Install Mintlify CLI** (if not already installed): |
| 56 | + ```bash |
| 57 | + npm i -g mintlify |
| 58 | + ``` |
| 59 | +4. **Run the local dev server**: |
| 60 | + ```bash |
| 61 | + mintlify dev |
| 62 | + ``` |
| 63 | + This starts a local preview at `http://localhost:3000`. |
41 | 64 |
|
42 | | -### Anvil |
| 65 | +> **Alternative (Docker):** If `mintlify dev` fails due to Homebrew/Node.js conflicts or you don't want to manage Node versions locally, use Docker Compose instead. Requires [Docker Desktop](https://www.docker.com/products/docker-desktop/). |
| 66 | +> ```bash |
| 67 | +> docker compose up -d |
| 68 | +> ``` |
| 69 | +> The docs site will be available at `http://localhost:4444`. |
43 | 70 |
|
44 | | -```shell |
45 | | -$ anvil |
46 | | -``` |
| 71 | +### Architecture & Design |
47 | 72 |
|
48 | | -### Deploy |
| 73 | +The documentation follows a flat `.mdx` file structure organized by **product section** (not by file type). The primary organizational artifact is `docs.json`, which defines: |
49 | 74 |
|
50 | | -```shell |
51 | | -$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key> |
52 | | -``` |
| 75 | +- **Navigation tabs** — Get Started, Cookbook, Developers, SKALE Chain, Validators |
| 76 | +- **Group hierarchy** — Pages nested under groups within each tab |
| 77 | +- **Redirects** — Legacy URL mappings (200+ redirects maintained in `docs.json`) |
53 | 78 |
|
54 | | -### Cast |
| 79 | +All pages use **MDX** format with Mintlify JSX components: |
| 80 | +- `Card`, `CardGroup` — Navigation and reference grids |
| 81 | +- `Note`, `Accordion`, `AccordionGroup` — Callouts and expandable content |
| 82 | +- `CodeGroup` — Multi-language code tabs |
| 83 | +- `Steps` — Numbered tutorial steps |
55 | 84 |
|
56 | | -```shell |
57 | | -$ cast <subcommand> |
58 | | -``` |
| 85 | +**Content guidelines:** |
59 | 86 |
|
60 | | -### Help |
| 87 | +- **Never reference raw `.mdx` filenames** in links — always use the path slug as listed in `docs.json` |
| 88 | +- **Terminology**: SKALE (uppercase), BITE (descriptive names, no phases), x402 (lowercase x), onchain (one word), ERC-20 (hyphenated) |
| 89 | +- **Privacy terminology**: Use "confidential" for product/marketing, "encrypted" for technical mechanism, "private" only for absolute cryptographic guarantees |
| 90 | +- See [AGENTS.md](./AGENTS.md) for complete terminology standards and product pillar guidelines |
61 | 91 |
|
62 | | -```shell |
63 | | -$ forge --help |
64 | | -$ anvil --help |
65 | | -$ cast --help |
66 | | -``` |
| 92 | +### What to Contribute |
| 93 | +
|
| 94 | +Good places to start: |
| 95 | +
|
| 96 | +- **Tutorials** — Add new recipes to `/cookbook/` for x402, MPP, confidential tokens, agent workflows |
| 97 | +- **Fixes** — Clarify ambiguous sections, fix broken links, update chain addresses in `_snippets/` |
| 98 | +- **Privacy deep-dives** — Expand `/developers/programmable-privacy/` with more use cases and API references |
| 99 | +- **Agentic commerce** — Document agent patterns, facilitator integrations, ERC-8004 usage |
| 100 | +- **Validator docs** — Improve node operations, troubleshooting, CLI guides |
| 101 | +
|
| 102 | +### Formatting & Linting |
| 103 | +
|
| 104 | +- Pages use `.mdx` extension |
| 105 | +- Frontmatter with `title` and `description` at the top of each file |
| 106 | +- Mintlify-specific components for layout (avoid raw HTML where possible) |
| 107 | +- Keep lines reasonably short for readable diffs |
| 108 | +
|
| 109 | +### Pull Request Process |
| 110 | +
|
| 111 | +1. Create a feature branch from `main` |
| 112 | +2. Make your changes with clear commit messages |
| 113 | +3. Test locally with `mintlify dev` |
| 114 | +4. Open a PR with a description of what changed and why |
| 115 | +5. Maintainers will review and provide feedback |
| 116 | +
|
| 117 | +### Need Help? |
| 118 | +
|
| 119 | +- Open a [GitHub Issue](https://github.com/skalenetwork/docs.skale.space/issues) |
| 120 | +- Join the [SKALE Discord](https://discord.gg/skale) and open a ticket in `#support` |
| 121 | +- Check [AGENTS.md](./AGENTS.md) for the full product context used by AI coding assistants |
| 122 | +
|
| 123 | +## Related Resources |
| 124 | +
|
| 125 | +- [SKALE Network](https://skale.space) — Main website |
| 126 | +- [SKALE Portal](https://base.skalenodes.com) — Chain management dashboard for SKALE on Base |
| 127 | +- [SKALE MCP Server](https://docs.skale.space/mcp) — AI-powered docs access |
| 128 | +- [llms.txt](https://docs.skale.space/llms.txt) — Full docs in AI-consumable format |
| 129 | +- [GitHub](https://github.com/skalenetwork) — All SKALE open-source repositories |
| 130 | +
|
| 131 | +--- |
| 132 | +
|
| 133 | +Documentation for the SKALE Network |
0 commit comments