Python 3.6+
Buy RAI from Uniswap v2 or open a SAFE and generate it.
git clone https://github.com/reflexer-labs/auction-keeper.gitcd auction-keepergit submodule update --init --recursive
This creates a virtual environment and installs all the keeper dependencies:
./install.sh
source _virtualenv/bin/activate
Pix a system coin/protocol token price and paste the following code into debt_model.sh
:
#!/usr/bin/env bashwhile true; doecho "{\"price\": \"325.0\"}"sleep 120done
chmod +x debt_model.sh
Create a file called run_auction_keeper.sh
and paste the following code in it:
#!/bin/bashbin/auction-keeper \--type debt \--model debt_model.sh \--rpc-uri <ETH_RPC_URL> \--eth-from <KEEPER_ADDRESS> \--eth-key key_file=<KEYSTORE_FILE>
ETH_RPC_URL
- the URL of 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, check:
​keythereum​
chmod +x run_auction_keeper.sh
./run_auction_keeper.sh
$ ./run_auction_keeper.shPassword for /keystore/key.json: