autonity / aut

A command-line RPC client for Autonity
MIT License
11 stars 10 forks source link

Drop unnecessary `get-` prefix from protocol commands #159

Closed aiman closed 1 month ago

aiman commented 1 month ago

All the protocol commands fetch protocol-related information, they don't modify the state. So the get- prefix is unnecessary:

  get-block-period              Block period in seconds
  get-committee                 Get current committee
  get-committee-enodes          Enodes in current committee
  get-epoch-from-block          Get the epoch of the given block
  get-epoch-period              Epoch period in blocks
  get-last-epoch-block          Block of last epoch
  get-max-committee-size        Maximum committee size
  get-minimum-base-fee          Minimum base fee
  get-operator                  Contract operator
  get-proposer                  Proposer at the given height and round
  get-reverting-amount          Get the amount of LNTN or NTN bonded when...
  get-treasury-account          Treasury account address
  get-treasury-fee              Treasury fee
  get-unbonding-period          Unbonding period in blocks
  get-validators                Get current validators
  get-version                   Contract version
aiman commented 1 month ago

See https://github.com/autonity/aut/commit/2ae01ec572fa338401095805da6bc4772d68065b