Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subcmds oasis network operators #244

Open
amela opened this issue May 24, 2024 · 2 comments
Open

Add subcmds oasis network operators #244

amela opened this issue May 24, 2024 · 2 comments
Assignees

Comments

@amela
Copy link
Member

amela commented May 24, 2024

It would be nice to have a cli function that lists data regarding operators and optionally stores it in the CSV. Examples of cmds:

  • oasis network operators < validators | sapphire | cipher | ... > -> it would list operators metadata and addr with their emails
  • oasis network operators nodes -> it would list node versions with their operator's metadata, addr and emails

Alias: opers

@amela amela changed the title Add command oasis operators Add command oasis network operators May 29, 2024
@amela amela changed the title Add command oasis network operators Add subcmds oasis network operators May 29, 2024
@matevz
Copy link
Member

matevz commented Sep 25, 2024

Could this be part of the existing oasis network show validators and oasis network show nodes commands?

@amela
Copy link
Member Author

amela commented Dec 3, 2024

@kostko @matevz
So, I tried to add these commands to oasis network show. The problem is that this command is becoming very bloated. I suggest the following:

Because the paratime section looks like this:
oasis paratimes show { <round> [ <tx-index> | <tx-hash> ] | parameters }

I think the oasis network show should be about consensus. So, I would there remove the following commands:
oasis network show { id | committees | entities | gas-costs | native-token | nodes | parameters | paratimes | validators }

I would move the removed commands to oasis operators section and put each command in its own file. Also add operators metadata where needed and extend the entities command to something like this:
oasis operators entities [id]
with the following flags:

--paratime sapphire //to list operators on sapphire or other selected paratime
--show status //to show all node statuses of selected operator

This command without the flags would output:

{
  "EntityName": "Staking Fund",
  "EntityAddr": "oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql",
  "EntityID": "kfr2A6K6TlvhQm4nz88Hczzkd2Aq5PlkxSpnmUUBAFs=",
  "EntityNodes": [
    "lbxs4hlud9XNloIOdhJPaCahd7HtiY8QATCgGnFfCM0=",
    "KUjJArjDn1TtZOi6AgYki1fUTC2PrU0LJFJ4ppHt3NQ="
  ]
}

wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants