Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joticajulian/fogata-automatic
script to automate payments in fogata
https://github.com/joticajulian/fogata-automatic
Last synced: about 1 month ago
JSON representation
script to automate payments in fogata
- Host: GitHub
- URL: https://github.com/joticajulian/fogata-automatic
- Owner: joticajulian
- License: mit
- Created: 2023-01-11T15:47:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T16:11:38.000Z (9 months ago)
- Last Synced: 2024-10-18T07:24:57.712Z (3 months ago)
- Language: TypeScript
- Size: 173 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automatic payments in Fogata
This script allows to perform automatic payments and trigger reburns in [fogata pools](http://fogata.io).
## How to use it
Create a copy of `.env.example` and rename it as `.env` and fill the following values:
- `MAINNET_MINING_POOL_IDS`: List of mining pools separated by commas.
- `MAINNET_MINING_POOL_NAMES`: List of names for the mining pools. You can use any name for each one.
- `MAINNET_MANA_SHARER_ADDRESS`: Address of the account that will pay the mana
- `MAINNET_MANAGER_MANA_SHARER_PRIVATE_KEY`: Private key of the mana sharer. If you are using a [Mana Sharer Contract](https://github.com/joticajulian/koinos-contracts-as/blob/main/contracts/manasharer/assembly/ManaSharer.ts) then set the private key of the manager.Run
```
yarn install
yarn build
yarn start
```The script will start to make the payments and reburns.
## Docker
You can build and run the script using docker.
Build locally with:
```bash
docker build -t fogata-automatic .
```Run in interactive mode:
```bash
docker run --rm -it --env-file .env --name fogata-automatic fogata-automatic
```Or run in detached mode:
```bash
docker run -d --env-file .env --volume $(pwd)/logs:/app/logs --name fogata-automatic fogata-automatic
```Read logs with:
```bash
docker logs fogata-automatic -f
```## References
See also:
- [Fogata Contract](https://github.com/joticajulian/fogata).
- https://fogata.io