rooch-network / rooch

VApp Container with Move Language for Bitcoin ecosystem
https://rooch.network
Apache License 2.0
159 stars 83 forks source link

[CLI] Support address alias name #2772

Open jolestar opened 2 weeks ago

jolestar commented 2 weeks ago

Proposal Details

  1. Support sets alias names to address and saves them to the keystore.
  2. CLI auto-loads the address mappings(name -> address) from the keystore and adds them to WalletContext when executing a command.

https://github.com/rooch-network/rooch/blob/a92821b6f911d101923cdd5860d6b696d1096e60/crates/rooch-rpc-client/src/wallet_context.rs#L97-L99

The cli will support the name as address arguments.

rooch account transfer --sender alice --to bob
rooch move run --function alice::my_module::my_function
newraina commented 2 weeks ago

@jolestar may I take it?