Skip to content

Commit

Permalink
doc: change log mode to info and clarify instructions (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Windforcer authored May 6, 2021
1 parent 73ce4d3 commit 0e9a6f6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Exercises/exercise_1_btc_transfer_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To perform these tests, you'll need some test Bitcoins on the Bitcoin testnet, a
- You can monitor the status of your deposit using the testnet explorer: https://blockstream.info/testnet/


4. Confirm the Bitcoin outpoint
3. Confirm the Bitcoin outpoint

```
axelarcli tx bitcoin confirmTxOut "{txID:vout}" "{amount}btc" "{deposit address}" --from validator -y -b block
Expand All @@ -69,7 +69,7 @@ To perform these tests, you'll need some test Bitcoins on the Bitcoin testnet, a

You can search it using `docker logs -f axelar-core 2>&1 | grep -e threshold`.

5. Trigger signing of the transfers to Ethereum
4. Trigger signing of the transfers to Ethereum

```
axelarcli tx ethereum sign-pending-transfers --from validator -y -b block
Expand All @@ -82,7 +82,7 @@ You can search it using `docker logs -f axelar-core 2>&1 | grep -e threshold`.

You can search it using `docker logs -f axelar-core 2>&1 | grep -e command`.

6. Send the previous command to Ethereum
5. Send the previous command to Ethereum
```
axelarcli q ethereum sendCommand {commandID} {address of account that should send this tx}
```
Expand All @@ -92,7 +92,7 @@ You can search it using `docker logs -f axelar-core 2>&1 | grep -e threshold`.
```
So use the above command, and just replace the `commandID` with your own.

You can now open Metamask, select "Assets" => "Custom Token" and then paste the token contract address (see `axelarate-community/TESTNET RELEASE.md`).
You can now open Metamask, select "Assets" then "Add Token" then "Custom Token" and then paste the token contract address (see `axelarate-community/TESTNET RELEASE.md` and look for `Ethereum token contract address` field).

### Burn ERC20 wrapped Bitcoin tokens and obtain native Satoshi

Expand All @@ -101,7 +101,7 @@ To send wrapped Bitcoin back to Bitcoin, run the following commands:
1. Create a deposit address on Ethereum

```
axelarcli tx ethereum link bitcoin {bitcoin addr} satoshi --from validator -y -b block
axelarcli tx ethereum link bitcoin {destination bitcoin addr} satoshi --from validator -y -b block
-> returns deposit address
```

Expand All @@ -110,13 +110,13 @@ To send wrapped Bitcoin back to Bitcoin, run the following commands:
axelarcli tx ethereum link bitcoin tb1qg2z5jatp22zg7wyhpthhgwvn0un05mdwmqgjln satoshi --from validator -y -b block
```

Look for the Ethereum deposit address as the first outout in this line (`0x5CFE...`):
Look for the Ethereum deposit address as the first output in this line (`0x5CFE...`):

```
"successfully linked {0x5CFEcE3b659e657E02e31d864ef0adE028a42a8E} and {tb1qq8wnre6rzctec9wycrl2dq00m3avravslahc8v}"
```

2. External: send wrapped tokens to deposit address (e.g. with Metamask). You need to have some Ropsten testnet Ether on the address to send transactions. Wait for 30 Ethereum block confirmations.
2. External: send wrapped tokens to deposit address (e.g. with Metamask). You need to have some Ropsten testnet Ether on the address to send transactions. Wait for 30 Ethereum block confirmations. You can monitor the status of your deposit using the testnet explorer: https://ropsten.etherscan.io/

3. Confirm the Ethereum transaction

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Optional flags:
```
See https://hub.docker.com/repository/docker/axelarnet/axelar-core and https://hub.docker.com/repository/docker/axelarnet/tofnd for the latest available versions of the docker images.

Once you join, at the terminal you should see blocks produced:
Once you join, at the terminal you should see blocks produced quickly. Wait for your node to catch up with the network before proceeding (When block production slows down to every 10 seconds). This can take a while.

```
2:00PM DBG indexed block txs height=2803 module=txindex num_txs=0
Expand Down Expand Up @@ -93,4 +93,7 @@ Axelar signs meta transactions for Ethereum, meaning that any Ethereum account c
```
axelarcli q bank balances {validator_addr}
```
e.g.,
```
axelarcli q bank balances axelar1p5nl00z6h5fuzyzfylhf8w7g3qj6lmlyryqmhg
```
2 changes: 1 addition & 1 deletion join/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ db_backend = "goleveldb"
db_dir = "data"

# Output level for logging, including package level options
log_level = "debug"
log_level = "info"

# Output format: 'plain' (colored text) or 'json'
log_format = "plain"
Expand Down

0 comments on commit 0e9a6f6

Please sign in to comment.