-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add root package.json and pnpm-workspace.yaml * feat: generate .env.localnet via bootstrap script * docs: root README with updated quick start * chore: fix formatting * docs: min AlgoKit version 2 * feat(ui): add vercel.json, avoid vercel 404 - NotFound error * feat(ui): handle rewrites if deployed to Netlify * chore: release v0.2.0
- Loading branch information
Showing
14 changed files
with
2,414 additions
and
5,512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,83 @@ | ||
# Reti Open Pooling | ||
# Réti Open Pooling | ||
|
||
See [Reti Open Pooling](./docs/SUMMARY.md) for details on the proposal this implementation is for. | ||
Welcome to the Réti Open Pooling monorepo. This README provides instructions for running the protocol and its accompanying example UI in a local environment. Detailed protocol information and its objectives can be found in the [Gitbook documentation](https://txnlab.gitbook.io/reti-open-pooling). | ||
|
||
## Tealscript Contracts | ||
## Overview | ||
|
||
See [Contracts](./contracts/README.md) | ||
The Réti Open Pooling protocol enables the creation of decentralized staking pools on the Algorand network, promoting broader participation and enhancing network security through diversification. It is designed to be open-source, non-custodial, and fully decentralized, allowing for the creation and joining of staking pools to meet the minimum stake required for node rewards on Algorand. | ||
|
||
## Node Daemon | ||
## Prerequisites | ||
|
||
See [Node Manager](./docs/technical-implementation/reti-node-daemon/README.md) | ||
Before starting, ensure you have the following installed: | ||
- **Docker**: Required for running AlgoKit. [Installation guide](https://www.docker.com/get-started). | ||
- **AlgoKit**: Version 2.0 or later is required. [Installation guide](https://github.com/algorandfoundation/algokit-cli#install). Verify by running `algokit --version`. | ||
- **PNPM**: Version 8.0 or later for package management. [Installation guide](https://pnpm.io/installation). Verify by running `pnpm --version`. | ||
|
||
## UI | ||
## Quick Start | ||
|
||
See [UI](./ui/README.md) | ||
This section provides instructions for running the protocol and UI in a local AlgoKit sandbox environment. | ||
|
||
- **Clone the repository** | ||
|
||
```bash | ||
git clone https://github.com/TxnLab/reti.git | ||
``` | ||
|
||
- **Navigate to the `reti` directory** | ||
|
||
```bash | ||
cd reti | ||
``` | ||
|
||
- **Install dependencies** | ||
|
||
```bash | ||
pnpm install | ||
``` | ||
|
||
- **Start the local network** | ||
|
||
```bash | ||
algokit localnet start | ||
``` | ||
|
||
- **Bootstrap the validator** | ||
|
||
This command bootstraps a new master validator and funds two new test accounts. It also sets environment variables for LocalNet that will be used by the front-end. | ||
```bash | ||
pnpm run bootstrap | ||
``` | ||
|
||
- **Launch the UI** | ||
|
||
```bash | ||
pnpm run dev | ||
``` | ||
|
||
## TestNet Development | ||
|
||
- **Navigate to the `ui` directory** | ||
|
||
```bash | ||
cd ui | ||
``` | ||
|
||
- **Create a `.env.testnet` file** | ||
|
||
Copy the TestNet variables from the [`.env.template`](./ui/.env.template) file into a new `.env.testnet` file. Check back often to make sure you're using the latest master validator app ID, set to `VITE_RETI_APP_ID`. | ||
|
||
- **Launch the UI** | ||
|
||
```bash | ||
pnpm run dev:testnet | ||
``` | ||
|
||
## Additional Resources | ||
|
||
- **TEALScript Contracts**: Explore the smart contracts that power the protocol. [Read more](./contracts/README.md) | ||
- **Node Daemon**: Learn about the CLI / service daemon which node runners will run as a background service. [Read more](./docs/technical-implementation/reti-node-daemon/README.md) | ||
- **Example UI**: A Vite React project that serves as a dashboard for staking and validator management. [Read more](./ui/README.md) | ||
|
||
## Discord | ||
|
||
For questions or technical support, you can reach us in the **#reti** channel on NFD's Discord: https://discord.gg/w6vSwG5bFK |
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.