Git Product home page Git Product logo

zo-keeper's Introduction

zo-keeper

The zo-keeper (pronounced "zoo keeper") repository runs large scale instructions that secure the 01 network, and allow it to operate in a fully decentralized manner. Anyone can run any of the keepers in the network.

The breakdown of the keepers are as follows:

zo-keeper
├── liquidator
├── consumer
│   ├── consume events
│   └── crank pnl
├── crank
│   ├── cache interest rates
│   ├── cache oracles
│   └── update perp funding rate
└── listener
    ├── funding updates
    ├── realized pnl changes
    ├── liquidations
    ├── bankruptcies
    └── trade fills

For more information, see the program's help menu, zo-keeper --help.

Building

This repository has a submodule under the /abi directory, so make sure the submodule is populated by running:

$ git submodule update --init

If git status shows nothing, then the submodule is up to date. To build the project, simply run:

$ cargo build --release

The program will be built at /target/release/zo-keeper, or if --release wasn't passed, then it will be at /target/debug/zo-keeper.

Running

Running /target/release/zo-keeper with no argument prints the program's help menu. There are a few arguments needed for all subcommands, which can also be passed as environment variables. Additionally, the project uses dotenv as well, so it's recommended to copy .env.example to .env and configure it appropriately, to avoid having to pass arguments every time.

Liquidator

The liquidator requires the SOLANA_PAYER_KEY env variable. It also requires rpc node arguments in teh following format when running.

$ cargo build --release
$ ./target/release/zo-keeper \
     --rpc-url "https://api.mainnet-beta.solana.com:8899" --ws-url "wss://api.mainnet-beta.solana.com:8900" \
     liquidator --worker-count 1 --worker-index 0 

zo-keeper's People

Contributors

cherryman avatar beau-coup avatar lmvdz 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.