Closed brenzi closed 4 years ago
currently, the client performs a hard-coded example sequence. This task aims at a generic cli client with the following capabilities:
chain interaction:
chain new-account
chain list-workers
chain list-shards
chain transfer <from> <to> <amount>
chain balance <account>
chain listen
needs --node-url and --node-port
--node-url
--node-port
bridging (M6)
shield <from> <to> <amount> <shard>
unshield <from> <to> <amount> <shard>
worker interaction (stf-specific)
stf new-account
stf transfer <from> <to> <amount>
stf balance <me>
getters need --worker-url and --worker-port
--worker-url
--worker-port
We should use clap_nested and define stf commands within the stf crate. Like this, the cli stays generic with respect to stf.
clap_nested
@clangenb , @electronix please review cli suggestion. What more do we need?
work started on branch brenzi_client
brenzi_client
currently, the client performs a hard-coded example sequence. This task aims at a generic cli client with the following capabilities:
chain interaction:
chain new-account
-> generate new sr25519 key and store it in the keystorechain list-workers
-> all workers listed with columns: ss58(account) | MRENCLAVE | RA timestamp | urlchain list-shards
-> all shards listed with the latest worker that commited a state update. columschain transfer <from> <to> <amount>
(public accounts)chain balance <account>
(public account)chain listen
-> listen to events and list all execution confirmations with their specificsneeds
--node-url
and--node-port
bridging (M6)
shield <from> <to> <amount> <shard>
-> send funds from public to private account (chain-to-stf)unshield <from> <to> <amount> <shard>
-> send funds from private to public account (stf-to-chain)worker interaction (stf-specific)
stf new-account
-> new private account, new sr25519 key and store it in private keystorestf transfer <from> <to> <amount>
stf balance <me>
->getters need
--worker-url
and--worker-port
We should use
clap_nested
and define stf commands within the stf crate. Like this, the cli stays generic with respect to stf.