Split cosmos chain validator commission to specific addresses according their delegations
- You can set custom timeout when broadcasting transactions.
- Considered the gas fee when making transactions
npm install -g typescript
npm install -g ts-node
git clone https://github.com/silentnoname/ValidatorCommissionSplit
cd ValidatorCommissionSplit
npm install
- Edit the
chainconfig.ts
to add your custom chain and network config - Edit the
addresslist.ts
, add your validator address ,and the delegators addresses that you want to split the commission to. Also you can add addresses for your custom chains. cp .env.example .env
- Input your validator account mnemonic chainid and timeout to
.env
file
ts-node CommissionSplit.ts
Info logSplitCommission.log
and Error logSplitCommissionError.log
will be at same directory with CommissionSplit.ts
If you're using Ubuntu 20.04, you may need to add the following line on top of utf8.js under node_modules/@cosmjs/encoding/
const {TextDecoder, TextEncoder} = require("util");