koinos / koinos-cli

A command line utility used for key management and to interact with the Koinos blockchain.
Other
8 stars 7 forks source link

[FEATURE]: Visual Network Indicator #186

Open lukemwillis opened 1 year ago

lukemwillis commented 1 year ago

Is there an existing issue for this?

New feature

On the CLI prompt, display a visual indicator of which chain you're connected to.

When chain ID matches mainnet:

🔓 [mainnet] > 

When chain ID matches testnet:

🔓 [testnet] > 

Else:

🔓 [https://rpc-url.example.com] > 

Anything else?

No response

lukemwillis commented 1 year ago

Bonus: when mainnet/testnet, automatically register the system contracts at the appropriate addresses.

sgerbino commented 1 year ago

I don't think the chain ID of mainnet or testnet should be hardcoded in to koinos-cli which I consider to be framework-level. But maybe these definitions can be declared within .koinosrc using your other proposed feature here: https://github.com/koinos/koinos-cli/issues/187