You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve documentation and add Claude Code guidance
- Add CLAUDE.md with repository guidance for Claude Code assistant
- Standardize shell code blocks to use 'sh' instead of 'bash'
- Add spell checker words to VS Code settings
- Simplify README project description for clarity
- Add temporary files pattern to .gitignore
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,19 +18,22 @@ The project uses Nix flakes to manage dependencies and ensure a consistent devel
18
18
19
19
1. Install Nix package manager by following the instructions at [nixos.org](https://nixos.org/download.html)
20
20
2. Enable flakes by adding the following to your `~/.config/nix/nix.conf` or `/etc/nix/nix.conf`:
21
-
```
21
+
22
+
```conf
22
23
experimental-features = nix-command flakes
23
24
```
25
+
24
26
3. Enter the development environment:
25
27
26
-
```bash
28
+
```sh
27
29
nix develop
28
30
```
29
31
30
32
This will set up the correct Rust version, git, and precompiled binaries for dependencies like RocksDB and OpenSSL.
31
33
32
34
4. Build the project:
33
-
```bash
35
+
36
+
```sh
34
37
cargo build --release
35
38
```
36
39
@@ -92,23 +95,23 @@ For detailed guidance on creating migrations, refer to the [Substrate Storage Mi
92
95
93
96
1. Fork the repo and create a new branch for your feature or bugfix:
94
97
95
-
```bash
98
+
```sh
96
99
git checkout -b feature/your-feature-name
97
100
```
98
101
99
102
2. Make your changes, following our code guidelines and testing requirements
100
103
101
104
3. Run tests and checks to ensure your changes don't break existing functionality:
102
105
103
-
```bash
106
+
```sh
104
107
cargo fmt
105
108
cargo clippy
106
109
cargo test
107
110
```
108
111
109
112
4. Check code coverage to ensure sufficient test coverage:
110
113
111
-
```bash
114
+
```sh
112
115
cargo xtask coverage
113
116
```
114
117
@@ -125,7 +128,7 @@ Strong test coverage is a core value for our project. All pallets must maintain
125
128
126
129
Run the following command to generate a `Cobertura` xml file on `target/cov.xml` that can be used with the [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) VSCode plugin to display which functions and branches are not covered by tests yet.
Torus is a self-assembling and evolving peer-to-peer blockchain organism, with a
8
-
stake-driven network built in Rust with the Substrate framework. Torus powers an
9
-
innovative ecosystem of agents and incentives, incorporating diverse
10
-
technologies into its collective body.
7
+
Torus is a self-assembling and evolving peer-to-peer organism with a
8
+
stake-driven ecosystem of agents and incentives. It's core coordination system
9
+
is a blockchain built on Substrate, implemented in this repository.
11
10
12
11
## Table of Contents
13
12
@@ -74,7 +73,7 @@ The Torus node operates on two primary ports:
74
73
75
74
We have tools to simulate a network locally as well. The `cargo xtask run` command allows you to run a local network from scratch by setting up nodes with fresh spec files:
@@ -186,6 +186,6 @@ When working with xtask, you might encounter some common issues. If a node fails
186
186
187
187
For debugging purposes, you can examine the temporary node directories to check logs and configuration files. The path is printed when the node starts. You can also run a node without using xtask to get more detailed logs:
0 commit comments