Skip to content

Commit

Permalink
docs: update evm metamask config and token cli (#2844)
Browse files Browse the repository at this point in the history
* docs: update token cli

* docs: update evm config and token cli
  • Loading branch information
taramakage authored Apr 18, 2023
1 parent b21443b commit db8762a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion docs/cli-client/token.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ Token module allows you to manage assets on IRIS Hub
## Available Commands

| Name | Description |
| ------------------------------------------ | ------------------------------------------ |
|--------------------------------------------|--------------------------------------------|
| [issue](#iris-tx-token-issue) | Issue a new token |
| [edit](#iris-tx-token-edit) | Edit an existing token |
| [transfer](#iris-tx-token-transfer) | Transfer the ownership of a token |
| [mint](#iris-tx-token-mint) | Mint tokens to a specified address |
| [burn](#iris-tx-token-burn) | Burn some tokens |
| [swap-fee](#iris-tx-token-swap-fee) | Swap one token with another token |
| [token](#iris-query-token-token) | Query a token by symbol |
| [tokens](#iris-query-token-tokens) | Query tokens by owner |
| [fee](#iris-query-token-fee) | Query the token related fees |
Expand Down Expand Up @@ -122,6 +123,19 @@ iris tx token mint [symbol] [flags]
| --to | string | | | Address to which the token will be minted, default to the owner address |
| --amount | uint64 | Yes | 0 | Amount of the tokens to be minted |

## iris tx token swap-fee

Swap one token with another token. For example, this feature can be used to exchange `IRIS` for `ERIS`.

```bash
iris tx token swap-fee [fee_paid] --to [reciever]
```
**Flags:**

| Name | Type | Required | Default | Description |
| -------- | ------ |----------| ------- |-------------------------------------------|
| --to | string | Yes | | Address to which the token will be swaped |

### Mint Token

```bash
Expand Down
4 changes: 2 additions & 2 deletions docs/get-started/evm-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ Open the Metamask extension on your browser, you may have to log in to your Meta

Then click the top right circle and go to `Settings > Networks`. Press the `Add Network` button and fill the form as the example below with your application ChainID:

- Network Name: IRISHub
- RPC URL: http://localhost:8545
- Network Name: IRISHub 2.0
- RPC URL: https://evmrpc.irishub-1.irisnet.org
- ChainID: 6688
- Symbol: ERIS

Expand Down
Binary file modified docs/pics/evm-metamask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db8762a

Please sign in to comment.