The development of FAsset protocol was commissioned for and on behalf of the Flare Foundation, accordingly all completed repos for the protocol have been moved to Flare Foundation Github, the protocol's ultimate owner. New repository
AMD64 machine.
Docker version 25.0.4 or higher.
Docker Compose version v2.24.7 or higher
Tested on Ubuntu 22.04.4 LTS.
- Your agent management address must be whitelisted.
- Procure underlying nodes rpc api keys (XRP, DOGE, BTC).
Make sure you follow best practices to protect your server and data.
-
Clone repository.
-
Copy
.env.template
to.env
. -
Run
docker compose pull
.
All settings are in .env.template
.
This must be set:
- machine address
MACHINE_ADDRESS
. This is either the IP or domain name of the machine running front and back end. For security reasons, it is recommended to use a local network IP or configure firewall so thatMACHINE_ADDRESS
can be access only from your IP.
Profiles
- agent
- agent-ui
- liquidator
- challenger
To generate accounts needed by the bot automatically, choose a secure agent management EVM address and write it under AGENT_MANAGEMENT_ADDRESS
inside .env
file, then run bash populate_config.sh
.
Set file mode to 600 chmod 600 secrets.json
and file ownership to user 1000 chown 1000:1000 secrets.json
.
Make backup of the secrets.json
.
Make sure to setup rpc/DAL/FDC api keys.
To generate or update configuration after .env
file change, run
bash populate_config.sh
Fund your management address with native token (e.g. SGB, FLR).
Fund your work address with native token (e.g. SGB, FLR) and vault token (e.g. USDX) (get address from secrets.json
using key owner.native.address
).
Fund your underlying address with underlying token (e.g. XRP, BTC) (get addressed from file secrets.json
key owner.<token>.address
).
Setup your work address:
- on Songbird.
Run docker compose up -d
.
docker compose down
git pull
docker compose pull
docker compose up -d
To execute agent bot commands, use the cli
profile and agent-bot
Docker container.
For example to get agents running use this command:
docker compose --profile cli run agent-bot listAgents --fasset FASSET
To execute user bot commands use the cli
profile and user-bot
Docker container.
For example to the FAsset system info use this command:
docker compose --profile cli run user-bot info --fasset FASSET
Make sure you backup at least:
.env
secrets.json
config.json
- database docker volume (default:
fasset-agent_postgres-db
)