CLI - add a command show chain

The command clive show chain should return the following information:

  • The part of information that was available in the cli wallet info:
  1. head_block_number: 82999780
  2. head_block_id: "04f279e43ef1efde6a5f5e4353cac95603f42624"
  3. time: "2024-02-21T10:51:15"
  4. current_witness: "deathwing"
  5. hbd_interest_rate: 2000
  6. hbd_print_rate: 10000
  7. maximum_block_size: 65536
  8. last_irreversible_block_num: 82999780
  9. witness_majority_version: "1.27.3"
  10. hardfork_version: "1.27.0"
  11. head_block_num: 82999780
  12. head_block_age: "1 second old"
  13. participation: "100.00000000000000000"
  14. "median_hbd_price: {base: ""0.330 HBD"", quote: ""1.000 HIVE""},"
  15. account_creation_fee: "3.000 HIVE"
  • Additionally:
  1. Add chain_id
  2. Instead of total_vesting_fund_hive and total_vesting_shares there should be rounded vest price = total_vesting_shares /total_vesting_fund_hive.
  3. Next to hbd_interest_rate there should be added current inflation rate.
  4. Next to hbd_interest_rate there should be added APR.
  5. There should be a warning for hbd_print_rate, if hbd_print_rate is not 100%. Maybe it may be color green and red? If not, then text.
  6. There should be a warning for participation, if participation is less than DEFAULT_WITNESS_PARTICIPATION (33) and in the halfway.
  7. There should be a warning for median_hbd_price, if current_median_history is differed from market_median_history.

For reference see https://docs.google.com/spreadsheets/d/1jHeLQtFrCyPzDwlH4U0BTu4Anc8jxNaLCxqSm7GQdGE/edit?usp=sharing