Skip to content
Snippets Groups Projects

Big refacto

Merged Hugo Trentesaux requested to merge hugo-dev into master
24 files
+ 1262
965
Compare changes
  • Side-by-side
  • Inline
Files
24
+ 26
24
@@ -2,38 +2,40 @@
Useful when developing: replace `gcli` by `cargo run --` to build in debug mode and launch gcli.
## Mnemonics
## Configuration
Used in duniter-indexer genesis config:
`pipe paddle ketchup filter life ice feel embody glide quantum ride usage`
It can be handful to use Gcli with a configuration file to avoid passing arguments on every command.
with derivations:
- `//2``test1`
- `//4``test2`
- `//6``test3`
Used in substrate for Alice, Bob and Co:
`bottom drive obey lake curtain smoke basket hold race lonely fit walk`
with derivations:
```sh
# show config commands
gcli config
# show where config file is stored
gcli config where
# save config to use gdev network for next commands
gcli --network gdev config save
# save config to use Alice predefined secret
gcli -S predefined -s Alice config save
# these can be combined
gcli --network local -S predefined -s test1 config save
```
- `//Alice`
- `//Bob`
- `//Charlie`
- ...
In the following, we assume this last command was run.
## Commands
```sh
# get duniter current block
gcli current-block
# get balance of test1 account
gcli --address 5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa get-balance
gcli blockchain current-block
# get balance of configured account
gcli account balance
# get identity information without indexer
gcli --no-indexer identity get -a 5Hn2LeMZXPFitMwrmrGucwtAPSLEiP4o5zTF7kHzMBtEkJUr
# get information about test1 identity (needs indexer)
gcli identity --username test1
# show address of given secret
gcli --secret "pipe paddle ketchup filter life ice feel embody glide quantum ride usage"//2 show-address
gcli identity get --username test1
# claim universal dividends
gcli ud claim
# transfer 5000 units
gcli account transfer 5000 5E4i8vcNjnrDp21Sbnp32WHm2gz8YP3GGFwmdpfg5bHd8Whb
```
## Indexer commands
@@ -42,7 +44,7 @@ You can check first that indexer is on the same network as Duniter node:
```sh
# check if indexer is on the same chain as duniter
gcli check-indexer-against-blockchain
gcli indexer check
```
The following commands uniquely relate with indexer.
Loading