Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Latest commit

 

History

History
 
 

feeder

feeder

This program will submit exchange rate prevotes and votes, implementing the voting procedure.

Requirements

Oracle Feeder requires the following:

  • Set up a running price-server
  • An account which has feeder rights for a validator (instructions here)

Instructions

  1. Install dependencies
npm install
  1. Create a key from your mnemonic

You need the mnemonic phrase for the feeder account for your validator.

npm start update-key

Enter a passphrase to encrypt your key to disk: ********
Repeat the passphrase: ********
Enter your bip39 mnemonic : <some nice mnemonic>
saved!
✨  Done in 9.19s.
  1. Vote

Make sure the Price Server is running.

You can start feeder with arguments or env.

  • Arguments

    $ npm start vote -- \
       --source http://localhost:8532/latest \
       --lcd https://lcd-1.terra.dev \
       --lcd https://lcd-2.terra.dev \
       --chain-id columbus-5 \
       --validator terravaloper1xx \
       --validator terravaloper1yy \
       --password "<password>"
  • Env

    # set your env vars 
    $ npm start vote
Argument Env Description Example
source SOURCE Price server URL. http://localhost:8532/latest
lcd LCD_ADDRESS LCD server URL (can be multiple) https://lcd.terra.dev
chain-id CHAIN_ID Chain ID. columbus-5
validator VALIDATOR Validator to submit prices for (can be multiple) terravaloper1xx...
password PASSPHRASE Password for mnemonic (assigned in step #2) 12345678
key-path KEY_PATH signing key store path (default voter.json) voter.json