oasisprotocol / cli

Official CLI for the Oasis Network.
Apache License 2.0
12 stars 1 forks source link

`paratime show native-token`: Also show ROFL staking requirements #290

Open matevz opened 5 days ago

matevz commented 5 days ago

Currently the "network show native-token" output looks like

$ oasis net show native-token --network testnet
Network:                  testnet
Token's ticker symbol:    TEST
Token's base-10 exponent: 9
Total supply:             9999999997.0 TEST
Common pool:              1386172230.297244237 TEST
Last block fees:          0.0 TEST
Governance deposits:      0.0 TEST
Debonding interval:       336 epoch(s)

=== STAKING THRESHOLDS ===
  entity:             100.0 TEST
  node-validator:     100.0 TEST
  node-compute:       100.0 TEST
  node-keymanager:    100.0 TEST
  runtime-compute:    10000.0 TEST
  runtime-keymanager: 10000.0 TEST

Similarly, show ParaTime-specific staking thresholds in paratime show native-token (?):

kostko commented 5 days ago

Not sure if this should go under "network" as that is used for the consensus layer?

In any case the rofl module first needs a query that would return this information so please also open an issue in the SDK and link it here.

matevz commented 5 days ago

In any case the rofl module first needs a query that would return this information so please also open an issue in the SDK and link it here.

Should this also be updated in the genesis document page?

kostko commented 5 days ago

No, the genesis document is for the consensus layer. The rofl module (and its staking requirements) is in individual runtimes.