Giter VIP home page Giter VIP logo

autoline-keeper's Introduction

autoline-keeper

Build Status

This repository contains a Keeper that on each block mined checks if there's any debt ceiling change opportunity and executes the transaction to update. Checking opportunities of debt ceiling change is done by calling the getNextJob function of AutoLineJob contract (https://etherscan.io/address/0xd3E01B079f0a787Fc2143a43E2Bdd799b2f34d9a).

Installation

This project uses Python 3.6.6 and requires virtualenv to be installed.

In order to clone the project and install required third-party packages please execute:

git clone https://github.com/makerdao/autoline-keeper.git
cd autoline-keeper
git submodule update --init --recursive
./install.sh

Can be also installed as a Docker image (makerdao/autoline-keeper)

Running

usage: autoline-keeper [-h] --rpc-url RPC_URL [--rpc-timeout RPC_TIMEOUT]
                       --eth-from ETH_FROM --eth-private-key ETH_PRIVATE_KEY
                       [--autoline-address AUTOLINE_ADDRESS]
                       [--autoline-job-address AUTOLINE_JOB_ADDRESS]
                       [--max-errors MAX_ERRORS] --network-id NETWORK_ID
                       --blocknative-api-key BLOCKNATIVE_API_KEY

optional arguments:
  -h, --help            show this help message and exit
  --rpc-url RPC_URL     JSON-RPC host URL
  --rpc-timeout RPC_TIMEOUT
                        JSON-RPC timeout (in seconds, default: 10)
  --eth-from ETH_FROM   Ethereum account from which to send transactions
  --eth-private-key ETH_PRIVATE_KEY
                        Ethereum private key(s) to use
  --autoline-address AUTOLINE_ADDRESS
                        Address of AutoLine contract (default: 0xe6eC07969F626648cFb20D8C77E5630E4468D0DB)
  --autoline-job-address AUTOLINE_JOB_ADDRESS
                        Address of AutoLineJob contract (default: 0x6FC1dc81D88f16486bA5F5aCe3b7B09CDE0B17B6)
  --max-errors MAX_ERRORS
                        Maximum number of allowed errors before the keeper
                        terminates (default: 100)
  --network-id NETWORK_ID
                        Unique id of network running autoline keepers (hex encoded)
  --blocknative-api-key BLOCKNATIVE_API_KEY
                        Blocknative key

Sample startup script

#!/bin/bash

bin/autoline-keeper \
    --rpc-url https://localhost:8545 \
    --eth-from 0x.... \
    --eth-private-key 5210.... \
    --network-id 0x.... \
    --blocknative-api-key MY-KEY

autoline-keeper's People

Contributors

aaweidai avatar dizzy avatar hacpy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.