description |
---|
Running a collateral auction keeper directly on a host |
Python 3.6+
Buy RAI from Uniswap v2 or open a SAFE and generate it.
git clone https://github.com/reflexer-labs/auction-keeper.git
cd auction-keeper
git submodule update --init --recursive
This creates a virtual environment and installs requirements.
./install.sh
source _virtualenv/bin/activate
Paste the following code into collateral_model.sh
:
#!/usr/bin/env bash
while true; do
echo "{}"
sleep 120
done
NOTE: Currently, collateral auctions sell collateral at a fixed discount and so the keeper doesn't use a bidding model. This empty bidding model is simply a placeholder.
Create a file called run_auction_keeper.sh
and paste the following code in it:
#!/bin/bash
bin/auction-keeper \
--model ./collateral_model.sh \
--rpc-uri <ETH_RPC_URL> \
--eth-from <KEEPER_ADDRESS> \
--eth-key key_file=<KEYSTORE_FILE>
ETH_RPC_URL
- the URL of the ethereum RPC connection
KEEPER_ADDRESS
- the keeper's address. It should be in checksummed format(not lowercase).
KEYSTORE_FILE
- your Ethereum UTC JSON keystore filename
For more information about this keystore format and how to generate them:
chmod +x run_auction_keeper.sh
./run_auction_keeper.sh
$ ./run_auction_keeper.sh
Password for /keystore/key.json: