This is sevice for Bitsong Validators. You can see how it works here Bitsong.blockmachine.pro
- Use function add_to_database_many(record=get_validators_delegators()) in the file get_delgators.py. You will get all validators, delgators and they will be added to database
- Use function get_time_tokens_for_delegations(validators_delegators=get_validators_delegators(validators_with_valopers=True)) in the file get_delgators.py. You will get all delegators and add tokens, date to database.
In file get_delegators.py.
Get list of all validators from Bitsong blockchain.
Through the cicle get all delegators by validators valoper. Need one argument - validator valoper.
Temporary function, not use anywhere. Get address, validator_id and add to delegators table one row.
Return validator_id by valoper for one validator. Parameter - valoper.
One parameter - if False function return list without valopers, only Id's. It needs for different use cases. Functuion return all validators and theis delegators.
Argument record is list with data to export to database many rows.
Function return list of all delegators tokens and dates when its delegation was delegated. Get one argument - list of all validatros with their delegators.