2019-06-24 02:41:29 -07:00
|
|
|
# Reward Distributor
|
2019-06-24 02:12:32 -07:00
|
|
|
TERRA Foundation Reward Distributor
|
2019-06-24 02:41:29 -07:00
|
|
|
|
|
|
|
This repository is built to distribute all foundation rewards to validator and delegators on terra network.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
```
|
|
|
|
npm run build
|
|
|
|
npm start
|
2019-06-24 02:41:47 -07:00
|
|
|
```
|
2019-06-24 02:41:29 -07:00
|
|
|
or
|
2019-06-24 02:41:47 -07:00
|
|
|
```
|
2019-06-24 02:41:29 -07:00
|
|
|
npm start -- lcd=https://lcd.terra.dev log=prod output=./unsigned.json
|
|
|
|
```
|
|
|
|
|
|
|
|
It requires active lcd url to get reward information.
|
2019-06-24 02:44:19 -07:00
|
|
|
|
|
|
|
It will make unsigned transaction output file (default `./unsignedTx.json`)
|
2019-06-24 03:08:44 -07:00
|
|
|
|
|
|
|
|
|
|
|
## Instructions
|
|
|
|
### For Both
|
|
|
|
terracli tx distr set-withdraw-addr --withdraw-to terra1437zllxmq9gag8acyt56rk7dkyrd2zvk9ts02p --from {both} --chain-id columbus-2 --gas-prices 0.015uluna --gas 18000
|
|
|
|
|
|
|
|
### For Foundation Validator
|
|
|
|
terracli tx distr withdraw-rewards --from {validator} --commission
|
|
|
|
|
|
|
|
### For Foundation Delegator
|
|
|
|
terracli tx distr terracli tx distr withdraw-all-rewards --from {validator}
|