Giter Club home page Giter Club logo

power-oracle-reporter's Introduction

Power Oracle Reporter

Script for working with Power Oracle contracts, which allows updating prices and slash the primary Price Reporter's deposit in CVP in case it did not update prices on time.

Starting Power Oracle Reporter

Kovan Testnet:

yarn
REPORTER_PRIVATE_KEY=<Reporter private key e.g. 0x7700fa638003ef53c10485c0535353e9cf7e773cf64b3cfc7942662f8218e88b> npm start

Ethereum Main Network:

yarn
MAINNET=1 REPORTER_PRIVATE_KEY=<Reporter private key e.g. 0x7700fa638003ef53c10485c0535353e9cf7e773cf64b3cfc7942662f8218e88b> npm start

Run in background

yarn global add pm2 && pm2 install typescript
MAINNET=1 REPORTER_PRIVATE_KEY=<Reporter private key e.g. 0x7700fa638003ef53c10485c0535353e9cf7e773cf64b3cfc7942662f8218e88b> pm2 start index.ts --name "power-oracle-reporter"
pm2 save && sudo pm2 startup # add to startup

ETH compensation

To enable CVP compensation converting to ETH and sending to poker address you can add COMPENSATE_ETH=1 option to start script command.

Telegram bot

Use a telegram bot to receive information about a change in your status (Price Reporter or Fisherman), the need to replenish the Reporter address balance in ETH, slashing, and others.

Getting started with personal notifier telegram bot

  1. Go to https://t.me/BotFather and create a new bot with any name. It will be your bot
  2. Copy access token and paste to TG_KEY argument
  3. Get your telegram user id. You can google how to get it or use one of the popular bots: https://t.me/myTelergamIdBot, https://t.me/userinfobot
  4. Paste your telegram user id to the TG_ADMIN argument. You can specify several admins separated by comma.
  5. As a result, your command for running the bot will look like this:
TG_KEY=1112233444:AAEV2fJbf1ba-vbftCP-knd2dg0t3wq-gya TG_ADMIN=555444333 MAINNET=1 REPORTER_PRIVATE_KEY=0x7700fa638003ef53c10485c0535353e9cf7e773cf64b3cfc7942662f8218e88b npm start
  1. Open your telegram bot and press start. You will receive notifications

power-oracle-reporter's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

cryptobuks

power-oracle-reporter's Issues

Does it have automatic update feature?

I have seen you just added the command to add the reporter script to the startup services.
I want to ask if this script has an automatic update feature?
Would the reporter have to update it manually when any newer version release?

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.