Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/functionland/testnet-server
Server for the testnet fund
https://github.com/functionland/testnet-server
fula polkadot polkadot-blockchain testnet testnet-blockchain
Last synced: 1 day ago
JSON representation
Server for the testnet fund
- Host: GitHub
- URL: https://github.com/functionland/testnet-server
- Owner: functionland
- License: mit
- Created: 2023-12-15T21:21:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T21:36:59.000Z (13 days ago)
- Last Synced: 2024-11-07T22:29:47.969Z (13 days ago)
- Topics: fula, polkadot, polkadot-blockchain, testnet, testnet-blockchain
- Language: Go
- Homepage: https://fund.functionyard.fula.network/
- Size: 208 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testnet-server
Server for the testnet fund
To run the server create a file named `.tokens` in the same folder as main with the content
```
Main funder account seed
Bearer easyship auth
api token of Igg
acces token of igg
```
Create four files:
- `userDetails.txt`: which holds the information of users who already joined. Initial an empty file by `touch userDetails.txt`. The format of the saved file is a simple txt with below information:`Date and Time of getting funded`, `contribution ID`, `Aura account`
- `contributions-masked.csv`: which holds the details of contributions. You can export it from Indiegogo or create it manually. When contributing to `contributions.csv`, please ensure your file includes the following fields:
| Order No. | Email | Amount | Shipping Phone Number (Masked to the last 4 digist only for security) |
|-----------|-----------|-------------|---------------------|- `.tokens` : the first line of this file holds the seed to an account with enough funds to execute join requests and fund them with gas token
- `brevo.key` this contains the API key for email serverPlease make sure each entry is correctly placed under the corresponding column header.
In the same folder and then you can build or run it with go
```go
go build -o testnet-server .
testnet-server --opensea-api xxxxxx
```and then an example service file `/etc/systemd/system/testnet-server.service` is like:
```
[Unit]
Description=Testnet Server[Service]
TimeoutStartSec=0
Type=simple
User=root
WorkingDirectory=/home/${USER}/testnet-server
ExecStart=/home/${USER}/testnet-server/testnet-server
Restart=always
StandardOutput=file:/var/log/testnet-server.log
StandardError=file:/var/log/testnet-server.err[Install]
WantedBy=multi-user.target
```And then run:
```
sudo systemctl daemon-reloadsystemctl enable testnet-server
```