https://github.com/zargarzadehm/ergo-faucet
Ergo Faucet
https://github.com/zargarzadehm/ergo-faucet
Last synced: 6 days ago
JSON representation
Ergo Faucet
- Host: GitHub
- URL: https://github.com/zargarzadehm/ergo-faucet
- Owner: zargarzadehm
- Created: 2021-06-13T12:27:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T17:17:52.000Z (about 2 years ago)
- Last Synced: 2023-03-12T01:12:30.194Z (about 2 years ago)
- Language: Scala
- Homepage: https://ErgoFaucet.org
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ergo - Ergo Faucet
README
# ErgoFaucet
This project is a Faucet service that aims to enable anyone to gain assets(Erg, Token) needed for test most beta Ergo Projects in Mainnet or Testnet network.## How to add any assets to faucet?
Create a issue and fill params (assets) according to below example:
```
name = "WT_ERG"
erg = "1000000" // How much erg should be in each box?
// What token (id) and how much of it should be in each box?
00c5c3d5641206d570374c3b03fb1e6a67c19f4495bd97a48a7243a739ca3ad7 = "100000"
```
ErgoFaucet address: ```9h3DjWYXLriAn5cox3CeCFGxngTY3JQpy9RwZwP4x1xYAjeSN1G```
## Setup Back-End Side
### Prerequisite
#### OpenJDK 8+
Download and install the appropriate [OpenJDK](https://openjdk.java.net/projects/jdk8/) binaries.
#### sbt 1.2.7
Install sbt 1.2.7 [(manual)](https://www.scala-sbt.org/1.0/docs/Setup.html)### ErgoFaucet Front-End Side
Get the latest `ergo-faucet-ui`
```shell
$ git submodule update --init
```
Build the `ergo-faucet-ui` [(instructions)](https://github.com/zargarzadehm/ergo-faucet-ui/blob/master/README.md)move the `ergo-faucet-ui/build` into `ergo-faucet/public`
```shell
$ mv ergo-faucet-ui/build ergo-faucet/public
```## Installation
Build `ergo-faucet`
```shell
$ cd ergo-faucet
$ sbt assembly
```
Set the configs and update the keys. An example is available in `ergo-faucet/conf/application.conf`.Run the `ergo-faucet`
```shell
$ java -Dconfig.file=path/to/config -jar ergo-faucet-.jar
```