santa/README.md

36 lines
872 B
Markdown
Raw Normal View History

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
2019-06-24 03:10:50 -07:00
```
2019-06-24 03:08:44 -07:00
terracli tx distr set-withdraw-addr --withdraw-to terra1437zllxmq9gag8acyt56rk7dkyrd2zvk9ts02p --from {both} --chain-id columbus-2 --gas-prices 0.015uluna --gas 18000
2019-06-24 03:10:50 -07:00
```
2019-06-24 03:08:44 -07:00
### For Foundation Validator
2019-06-24 03:10:50 -07:00
```
2019-06-24 03:10:33 -07:00
terracli tx distr withdraw-rewards --validator {validator} --from {validator} --commission
2019-06-24 03:10:50 -07:00
```
2019-06-24 03:08:44 -07:00
### For Foundation Delegator
2019-06-24 03:10:50 -07:00
```
2019-06-24 03:08:44 -07:00
terracli tx distr terracli tx distr withdraw-all-rewards --from {validator}
2019-06-24 03:10:50 -07:00
```