Giter VIP home page Giter VIP logo

multi-sig-test's Introduction

Ergo Miner Rewarder Bot

Sends native tokens and ERGs to a random miner every configured block interval.

Setup

install bun

install dependencies

bun install

Fill out .env, you can use the .env.example as a guide.

Note: You can find address index by counting the addresses shown in the receive section of nautilus wallet. The bottom most is index 0.

Fill out params.json

  • startBlockHeight
    • block number to start selecting miner from
    • bot automatically saves the new startBlockHeight after rewarding
  • rewardInterval
    • Bot rewards one random miner from this set of blocks
  • rewardToken
    • token to reward miner
    • amount must not contain decimals
    • If I wanted to reward
      • 1000 comet, set 1000 (note 0 decimals)
      • 1 sigusd, set 100 (note two decimals)
  • nanoErgPerTx
    • nanoERGs to send to miner
    • 1 ERG = 10^9 nanoERG
  • nanoErgMinerFee
    • nanoERGs tx fee
  • nodeUrl
    • node url with exposed api (port 9053)
    • testnet supported
  • explorerApi
    • explorer api url
    • testnet supported
  • blacklist
    • array of miner addresses to prevent rewarding
    • find list here
    • If I wanted to blacklist 2miners pool
      • ["88dhgzEuTXaRQTX5KNdnaWTTX7fEZVEQRn6qP4MJotPuRnS3QpoJxYpSaXoU1y7SHp8ZXMp92TH22DBY"]
    • If I wanted to blacklist 2miner pool and DX pool
      • ["88dhgzEuTXaRQTX5KNdnaWTTX7fEZVEQRn6qP4MJotPuRnS3QpoJxYpSaXoU1y7SHp8ZXMp92TH22DBY", "88dhgzEuTXaUPpNAbKL7UeNUFEcjkoqW6ev5P1hkynBmG4L5baYdZ8rSPYCDNmvwBLiJR7ABjndPhqGm"]

Run program with

bun start

Docker

Fill out .env

run as such

docker compose up -d

check logs

docker compose logs -f

kill program

docker compose down

License

MIT

multi-sig-test's People

Contributors

mgpai22 avatar

Watchers

Luca D'Angelo 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.