-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/algod-node-install
# Conflicts: # .gitignore # cmd/root.go # cmd/root_test.go # cmd/status.go # internal/block.go # internal/block_test.go # internal/metrics.go # internal/state_test.go # ui/pages/accounts/model.go # ui/protocol.go # ui/protocol_test.go # ui/status.go # ui/status_test.go
- Loading branch information
Showing
76 changed files
with
1,034 additions
and
660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
algorun-tui | ||
coverage | ||
hack-tui | ||
bin | ||
.data | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,18 @@ | |
|
||
A guide on how to contribute to this project. | ||
|
||
# Getting Started | ||
# Building | ||
|
||
Clone the project | ||
|
||
```bash | ||
git clone [email protected]:algorandfoundation/hack-tui.git | ||
git clone [email protected]:algorandfoundation/algorun-tui.git | ||
``` | ||
|
||
Change to the directory | ||
|
||
```bash | ||
cd hack-tui | ||
cd algorun-tui | ||
``` | ||
|
||
Build the project | ||
|
@@ -22,7 +22,8 @@ Build the project | |
make build | ||
``` | ||
|
||
Running a Participation Node | ||
Optionally, run a sandboxed participation node | ||
|
||
|
||
```bash | ||
docker compose up | ||
|
@@ -31,12 +32,19 @@ docker compose up | |
Create a configuration file for the participation node in the root directory of the project (.algorun.yaml) | ||
|
||
```yaml | ||
server: http://localhost:8080 | ||
token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
algod-endpoint: http://localhost:8080 | ||
algod-token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
``` | ||
Launch the TUI | ||
> [!NOTE] | ||
> If you skipped the docker container or config file, try running `./bin/algorun` standalone, | ||
> which will detect your algorand data directory from the `ALGORAND_DATA` environment variable that works for `goal`. | ||
> Otherwise, provide the `--algod-endpoint` and `--algod-token` arguments so that it can find your node. | ||
> Note that algorun requires the admin algod token. | ||
|
||
```bash | ||
./bin/algorun | ||
``` | ||
|
@@ -59,7 +67,7 @@ All submodules and endpoints **SHOULD** align with the command/ui namespaces. | |
Example Command: | ||
|
||
```bash | ||
hacktui status | ||
algorun status | ||
``` | ||
|
||
Example Structure | ||
|
@@ -122,6 +130,7 @@ This package is the ViewModel and View in MVC. | |
# Generating RPC package | ||
|
||
The `api` package is generated via [oapi-codegen](https://github.com/oapi-codegen/oapi-codegen). | ||
This is only required when adding new or missing RPC interfaces from the algod specification. | ||
Its configuration is found under `generate.yaml` and can be run with the following make command: | ||
|
||
```bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.