Skip to content

Commit 01a7c9c

Browse files
Merge branch 'main' into add/what-are-programs-summary
2 parents d44972b + e3f607a commit 01a7c9c

21 files changed

+469
-368
lines changed

.github/ISSUE_TEMPLATE

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
<!-- Before submitting an issue, please review the project documentation and search for existing issues. The more details you provide, the easier it will be to diagnose and address the issue. Remove this line before submitting your issue. -->
1+
<!-- Describe the issue you're encountering in detail. -->
22

3-
Describe the issue you're encountering in detail.
3+
## Steps to reproduce
44

5-
**Issue type**: (Select one)
5+
<!-- Provide a step-by-step explanation of how to reproduce the issue, including the page or section URL (if relevant). -->
66

7-
- [ ] Bug
8-
- [ ] Question
9-
- [ ] Improvement
7+
## Error messages and/or screenshots
108

11-
**Steps to reproduce**:
9+
<!-- Include any relevant error messages, logs, or screenshots. -->
1210

13-
Provide a step-by-step explanation of how to reproduce the issue.
11+
## Proposed solution (optional)
1412

15-
**Error messages**:
13+
<!-- If you have ideas about how this might be fixed, share them here. -->
1614

17-
Include any relevant error messages, logs, or screenshots.
15+
## Checklist
1816

19-
**Expected behavior**:
17+
I confirm that I have:
2018

21-
What were you expecting to happen? This may seem like a silly question, but please be specific.
19+
- [ ] Checked to see if there are any existing issue that cover this topic.
20+
- [ ] Linked to any relevant issues across all [entropyxyz](https://github.com/entropyxyz/) repos.

.github/PULL_REQUEST_TEMPLATE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Fill out this template to help us review your pull request. Delete any comments once you are done. -->
2+
3+
## Description
4+
5+
<!-- Quickly describe the changes you made and why you made them. -->
6+
<!-- Reference the issue/issues that this PR fixes. -->
7+
8+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
9+
<!-- ALL PRs MUST CLOSE AN ISSUE. IF AN ISSUE DOES NOT EXIST, GO MAKE ONE. -->
10+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
11+
12+
### Content updates
13+
14+
<!-- List which pages or sections you have created/updated/deleted in this PR. -->
15+
16+
## Documentation updates
17+
18+
<!-- Have you changed how shortcodes work or how the docs site is rendered? Update the relevant info in this project's `README.md` and/or `CONTRIBUTING.md` files. -->
19+
20+
## Checklist:
21+
22+
- [ ] I have read and followed the `CONTRIBUTING.md` guidelines.
23+
- [ ] I have run these changes through a grammar and spell checker.
24+
- [ ] I have updated the documentation (`README.md`, `CONTRIBUTING.md` etc.) to reflect these changes.

CONTRIBUTING.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Welcome Contributors
2+
3+
We welcome contributions from developers of all experience levels. Whether you're a seasoned blockchain expert or a curious newcomer, your input is valuable to our project.
4+
5+
## Table of contents
6+
7+
- [Creating PRs](#creating-prs)
8+
- [Writing the docs](#writing-the-docs)
9+
10+
## Creating PRs
11+
12+
Follow these steps to make a successful and impactful PR!
13+
14+
### Prerequisites
15+
16+
- Familiarize yourself with the docs project by reading the `README.md`.
17+
- Ensure you have the necessary development tools installed.
18+
- Set up a local development environment following the instructions in `README.md`. The Hugo static site generator is available for pretty much every modern OS.
19+
20+
### Fork the repository
21+
22+
1. Create a personal fork of this project on GitHub.
23+
1. Clone your **forked** repository to your local machine.
24+
25+
### Create a branch
26+
27+
1. Create a new branch for your contribution.
28+
1. Use a clear, descriptive branch name that reflects the purpose of your changes, like `feat/add-key-generation-method` or `update/signature-signing-error`
29+
30+
### Make Your Changes
31+
32+
1. Add or update documentation as needed.
33+
1. Test your changes locally using Hugo to ensure the site renders correctly.
34+
35+
### Prepare your PR
36+
37+
1. Write clear, concise commit messages.
38+
1. Describe _exactly_ what the commit does. For example: "Clarifies T of N signature verification method."
39+
1. Run your markdown through a grammar and spell checker.
40+
1. Ensure clarity and correctness of all written content.
41+
1. If modifying technical documentation, verify technical accuracy.
42+
43+
### Submit a Pull Request
44+
45+
1. Push your changes to your fork.
46+
1. Open a pull request against this repo.
47+
1. Provide a clear description of your changes using the PR template provided (you'll see it when you make your PR).
48+
1. Link all related issues. All PRs **must** close at least one existing issue.
49+
50+
### Code Review Process
51+
52+
1. All pull requests will undergo a thorough code review.
53+
1. Reviewers will provide constructive feedback.
54+
1. Be prepared to make modifications based on review comments.
55+
56+
## Writing the docs
57+
58+
You can find all the docs in the `/content` folder. This content directory is structured the same as the website. The only caveats:
59+
60+
1. The `docs.entropy.xyz` homepage is controlled by `./content/_index.md`.
61+
1. Section indexes, like `docs.entropy.xyz/concepts`, are automatically generated by Hugo -- you do not need to directly edit the content of these pages. The content in the sub-pages controls the page snippets in these index pages. For example, the snippet for the **Quickstart** entry in `docs.entropy.xyz/basics` is generated from the `lead` variable within `./content/basics/quickstart.md`. If a `lead` variable does not exist, Hugo generates a snippet from the main content of a sub-page.
62+
63+
---
64+
65+
**Thanks for helping improve our docs!**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ To submit a support ticket:
123123
124124
## Contribute
125125
126-
We appreciate contributions of any size from everyone, from fixing typos to proposing substantial rewrites to aid clarity. Simply make a PR with your edits, and a member of the Entropy devrel team will review everything.
126+
We appreciate contributions of any size from everyone, from fixing typos to proposing substantial rewrites to aid clarity. Take a look at the [`CONTRIBUTING.md` doc for more details](./CONTRIBUTING.md) on how to help.
127127
128128
### Writing docs
129129

content/guides/spin-up-a-devnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A devnet is an essential tool for devs working with Entropy. It provides a safe
1313
This guide will cover two primary methods for setting up a local Entropy devnet:
1414

1515
- [Using Docker containers]({{< relref "#docker-containers" >}}): The recommended method for most users due to its ease of use and simplicity.
16-
- [Building from source]({{< relref "building-from-source" >}}): For developers who require more control or are unable to use Docker.
16+
- [Building from source]({{< relref "#building-from-source" >}}): For developers who require more control or are unable to use Docker.
1717

1818
## Docker containers
1919

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "CLI"
3+
lead: "The command-line interface (CLI) is a straightforward way to experiment with the Entropy network and explore common workflows."
4+
aliases:
5+
- "cli"
6+
---
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
---
2+
title: "Install and Configure"
3+
lead: "This guide covers everything you need to get up and running with the Entropy CLI. We'll walk you through installation, configuration, and even log management."
4+
weight: 5
5+
---
6+
7+
## Install
8+
9+
Follow these steps to install Entropy globally using NPM:
10+
11+
1. The CLI requires Node version 20 or higher to run:
12+
13+
```shell
14+
node --version
15+
```
16+
17+
```output
18+
v23.1.0
19+
```
20+
21+
{{< callout type="info" >}}
22+
Consider using [Node Version Manager (NVM)](https://github.com/nvm-sh/nvm) to keep your Node installation organized. NVM also makes it trivial to switch between Node versions when necessary.
23+
{{< /callout >}}
24+
25+
1. Install the Entropy CLI globally using NPM:
26+
27+
```shell
28+
npm install --global @entropyxyz/cli
29+
```
30+
31+
1. You can now run the CLI from anywhere using `entropy`:
32+
33+
```shell
34+
entropy
35+
```
36+
37+
```output
38+
Usage: entropy [options] [command]
39+
40+
CLI interface for interacting with entropy.xyz. Running without commands starts an interactive ui
41+
42+
Options:
43+
-e, --endpoint <endpoint> Runs entropy with the given endpoint and ignores
44+
network endpoints in config. Can also be given a
45+
stored endpoint name from config eg: `entropy
46+
47+
--endpoint test-net`. (default:
48+
"ws://testnet.entropy.xyz:9944/", env: ENDPOINT)
49+
-h, --help display help for command
50+
51+
Commands:
52+
list|ls List all accounts. Output is JSON of form [{ name,
53+
address, data }]
54+
55+
balance [options] <address> Get the balance of an Entropy account. Output is a
56+
57+
number
58+
transfer [options] <source> <destination> <amount> Transfer funds between two Entropy accounts.
59+
sign [options] <address> <message> Sign a message using the Entropy network. Output is
60+
a signature (string)
61+
```
62+
63+
64+
1. You can also interact with the CLI through the TUI by adding `tui`:
65+
66+
```shell
67+
entropy tui
68+
```
69+
70+
```output
71+
? Select Action (Use arrow keys)
72+
73+
❯ Manage Accounts
74+
Balance
75+
Register
76+
Sign
77+
Transfer
78+
Deploy Program
79+
User Programs
80+
Exit
81+
```
82+
83+
## Configuration
84+
85+
The CLI uses a configuration file to set and store basic information. This CLI uses [env-paths](https://www.npmjs.com/package/env-paths) to determine where configurations files should be stored:
86+
87+
- **Arch**: `~/.config/entropy-cryptography/entropy-cli.json`
88+
- **MacOS**: `/Library/Preferences/entropy-cryptography/entropy-cli.json`
89+
- **Ubuntu**: `~/.config/entropy-cryptography/entropy-cli.json`
90+
- **Windows**: `C:\Users\<USERNAME>\AppData\Roaming\entropy-cryptography\Config\entropy-cli.json`
91+
92+
### Config file contents
93+
94+
This configuration file contains:
95+
96+
| Description | Name in configuration file |
97+
| ----------- | -------------------------- |
98+
| Account information | `accounts: [...]` |
99+
| Which account is currently selected | `selectAccount` |
100+
| Endpoints that you are connected to | `endpoints: {...}` |
101+
| Configuration version | `migration-version` |
102+
103+
{{< callout type="danger" >}}
104+
The config file contains your unencrypted private key.
105+
{{< /callout >}}
106+
107+
### Deleting your config
108+
109+
The config file gets generated the first time that you start the CLI. If you somehow _break_ your config, you can delete your existing config and start the CLI -- it will generate a new base config.
110+
111+
## Logs
112+
113+
Similar to the configuration file, log files for this CLI can be found in the default [env-paths](https://www.npmjs.com/package/env-paths) locations:
114+
115+
- **Arch**: `~/.local/state/entropy-cryptography/`
116+
- **MacOS**: `/Library/Logs/entropy-cryptography/`
117+
- **Ubuntu**: `~/.local/state/entropy-cryptography/`
118+
- **Windows**: `C:\Users\<USERNAME>\AppData\Local\entropy-cryptography\Log`

0 commit comments

Comments
 (0)