bin- shell scripts and environment configuration file templaresrc- source code- eva.Dockerfile - the Docker configuration for building an image to run on Kubernetes.
The env.template file is a template for required and optional environment variables that are used by Eva.
- Install dependencies
- OS librarires:
sudo apt install build-essential libssl-dev pkg-config unzip - Protoc: https://grpc.io/docs/protoc-installation/#install-pre-compiled-binaries-any-os;
- Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- OS librarires:
- Clone the Git repo.
- Create and configure the
.envfile by using env.template as prototype.
VSCode: create the VSCode launch configuration and add the configured
.envto it.
- Source the
.envfile. Example:source src/eva01/bin/prod.env - Optionally Rotate logs:
mv ~/log/liquidator.log ~/log/liquidator.log.$(date +'%Y%m%dT%H%M%S') - Run the Liquidator:
nohup bash $LIQUIDATOR_SRC_PATH/bin/start.sh >> ~/log/liquidator.log 2>&1 &
Initial Loading Time The initial loading phase can take some time, depending on your RPC. Eva will load everything needed into the state, including all Marginfi Accounts. Expect the loading time to be between 1-3 minutes depending on the RPC.
Local Docker: Run
docker build -f <CONFIG FILE> -t eva:latest .to build an image anddocker run --env-file docker.staging.env --rm -v <WALLET>:<WALLET> evato run it.