coordinator

module
v0.0.0-...-2b7c0bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2022 License: MIT

README

coordinator

Help Nova to act correctly

Bot types

  • oracle : Update host's base token price every 15 minutes.
  • stake : Delegate the tokens sent by the user to the host chain via IBC to the a4x validator through the controller account every 10 mintues.
  • restake : Automatically re-stake the host account's rewards through IBC. The amount to be re-deposited is inquired from the distribution module of the host chain every 6 hours.
  • withdraw : Undelegate and withdraw token from host account to nova. The interval depends on the rules of the host chain.

Cmd

# Set keyring if you need
make run TARGET=oracle FLAGS="-display -add -name=nova_bot"

# Build bot
make all [ARCH=<arm64|amd64>] # if you don't set ARCH, it follows GOARCH

# Run bot without build (test)
make run TARGET=oracle FLAGS="-host=gaia -interval=900 -display"
make run TARGET=stake FLAGS="-host=gaia -interval=600 -display"
make run TARGET=restake FLAGS="-host=gaia -ch=channel-0 -interval=21600 -display"
make run TARGET=withdraw FLAGS="-host=gaia -ch=channel-45 -interval=1814400 -display"

# Run bot (prod)
./out/<bot> [flags]

Directories

Path Synopsis
client
cmd
oracle command
restake command
stake command
withdraw command
rpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL