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

Misc fixes #375

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/docs/pages/users/wallet/file-system-wallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ password to encrypt the private key. Afterwards, your mnemonic will be printed t
you need to restore your key at a later date.

```bash copy
namadaw gen --alias <your alias>
namadaw gen --alias $YOUR_ALIAS
```

<Callout type="warning" emoji="❗">
Expand All @@ -48,13 +48,13 @@ namadaw list
or, if you only want to search for a specific address:

```bash copy
namadaw find --alias <your alias>
namadaw find --alias $YOUR_ALIAS
```

##### Recover an address from a mnemonic
You can recover an existing key from a mnemonic and add it to your wallet with:
```bash copy
namadaw derive --alias <choose an alias>
namadaw derive --alias $YOUR_ALIAS
```
(You will be prompted to enter the mnemonic).

Expand All @@ -63,13 +63,13 @@ namadaw derive --alias <choose an alias>
If you know the raw value of a key or address, you can add it to your wallet under an alias so you can more conveniently refer to it later.

```bash copy
namadaw add --alias <choose-an-alias> --value <transparent-secret-key|transparent-public-key|transparent-address|spending-key|viewing-key|payment-address>
namadaw add --alias $YOUR_ALIAS --value <transparent-secret-key|transparent-public-key|transparent-address|spending-key|viewing-key|payment-address>
```

#### Removing a key/address
You can remove all keys/addresses associated with an alias from your wallet with:
```bash copy
namadaw remove --alias <your-alias> --do-it
namadaw remove --alias $YOUR_ALIAS --do-it
```

#### Using the pre-genesis flag
Expand Down
30 changes: 15 additions & 15 deletions packages/docs/pages/utils.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,68 +7,68 @@ Usage: `namadac utils [OPTIONS] <COMMAND>`
Configure Namada to join an existing network.
See [the networks page](./networks.mdx) for details on how to join a network.
```shell copy
namadac utils join-network --chain-id <some-chain-id>
namadac utils join-network --chain-id $CHAIN_ID
```

## fetch-wasms

Ensure pre-built wasms are present.
```shell copy
namadac utils fetch-wasms --chain-id <chain-id>
namadac utils fetch-wasms --chain-id $CHAIN_ID
```


## validate-wasm

Check that the provided wasm code is valid by the Namada standards.
```shell copy
namadac utils validate-wasm --code-path <code-path> --chain-id <chain-id>
namadac utils validate-wasm --code-path $CODE_PATH --chain-id $CHAIN_ID
```

## init-network

Initialize a new test network.

```shell copy
namadac utils init-network --templates-path <templates-path> --wasm-checksums-path <wasm-checksums-path>
--chain-prefix <chain-prefix> --genesis-time <genesis-time> --chain-id <chain-id>
namadac utils init-network --templates-path $TEMPLATES_PATH --wasm-checksums-path $WASM_CHECKSUMS_PATH
--chain-prefix $CHAIN_PREFIX --genesis-time $GENESIS_TIME --chain-id $CHAIN_ID
```

## derive-genesis-addresses

Derive account addresses from a genesis txs toml file.
```shell copy
namadac utils derive-genesis-addresses --path <path> --chain-id <chain-id>
namadac utils derive-genesis-addresses --path $PATH --chain-id $CHAIN_ID
```

## genesis-bond

Bond to a validator at pre-genesis.
```shell copy
namadac utils genesis-bond --validator <validator> --amount <amount> --path <path> --chain-id <chain-id>
namadac utils genesis-bond --validator $VALIDATOR --amount $AMOUNT --path $PATH --chain-id $CHAIN_ID
```

## init-genesis-established-account

Initialize an established account available at genesis.
```shell copy
namadac utils init-genesis-established-account --path <path> --chain-id <chain-id>
namadac utils init-genesis-established-account --path $PATH --chain-id $CHAIN_ID
```

## init-genesis-validator

Initialize genesis validator's address, consensus key and validator account key and use it in the ledger's node. Appends validator creation and self-bond txs to a .toml file containing an established account tx.
```shell copy
namadac utils init-genesis-validator --alias <alias> --address <address> --path <path>
--net-address <net-address> --commission-rate <commission-rate> --max-commission-rate-change <max-commission-rate-change>
--self-bond-amount <self-bond-amount> --email <email> --chain-id <chain-id>
namadac utils init-genesis-validator --alias $ALIAS --address $ADDRESS --path $PATH
--net-address $NET_ADDRESS --commission-rate $COMMISSION_RATE --max-commission-rate-change $MAX_COMMISSION_RATE_CHANGE
--self-bond-amount $SELF_BOND_AMOUNT --email $EMAIL --chain-id $CHAIN_ID
```

## pk-to-tm

Convert a validator's consensus public key to a Tendermint address.
```shell copy
namadac utils pk-to-tm --public-key <public-key> --chain-id <chain-id>
namadac utils pk-to-tm --public-key $PUB_KEY --chain-id $CHAIN_ID
```

## default-base-dir
Expand All @@ -89,21 +89,21 @@ namadac utils epoch-sleep

Validate genesis templates.
```shell copy
namadac utils validate-genesis-templates --path <path> --chain-id <chain-id>
namadac utils validate-genesis-templates --path $PATH --chain-id $CHAIN_ID
```

## test-genesis

Dry run genesis files and get a report on problems that may be found.
```shell copy
namadac utils test-genesis --path <path> --chain-id <chain-id>
namadac utils test-genesis --path $PATH --chain-id $CHAIN_ID
```

## sign-genesis-txs

Sign genesis transaction(s).
```shell copy
namadac utils sign-genesis-txs --path <path> --chain-id <chain-id>
namadac utils sign-genesis-txs --path $PATH --chain-id $CHAIN_ID
```

## help
Expand Down
Loading