Skip to content

Commit

Permalink
feat: tofnd binary and ampd wildcard clarifications (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenFluin authored Jun 28, 2024
1 parent bf0dd6a commit a366ba8
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/pages/validator/amplifier/verifier-onboarding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,33 @@ There are three ways to set up and run a verifier:

<tab-item title="Source">
Install `tofnd` from source by cloning and building the [`tofnd` repository](https://github.com/axelarnetwork/tofnd).

Create a default mneumonic and configuration in `~/.tofnd/` with:

```bash
~/Downloads/tofnd*-v0.10.5 -m create
```
</tab-item>

<tab-item title="Binary">
Download the [`tofnd` binary](https://github.com/axelarnetwork/tofnd/releases) depending on the type of machine you have:
- Linux: [`tofnd-linux-amd64-v0.10.5`](https://github.com/axelarnetwork/tofnd/releases/download/v0.10.5/tofnd-linux-amd64-v0.10.5)
- Apple Silicon Mac: [`tofnd-darwin-arm64-v0.10.5`](https://github.com/axelarnetwork/tofnd/releases/download/v0.10.5/tofnd-darwin-arm64-v0.10.5)
- Intel Mac: [`tofnd-darwin-amd64-v0.10.5`](https://github.com/axelarnetwork/tofnd/releases/download/v0.10.5/tofnd-darwin-amd64-v0.10.5)

Create a default mneumonic and configuration in `~/.tofnd/` with:

```bash
~/Downloads/tofnd*-v0.10.5 -m create
```
</tab-item>

<tab-item title="Docker">
Pull and run the latest version of `tofnd` from Docker:

```bash
docker pull haiyizxx/tofnd:latest
docker run -p 50051:50051 --env MNEMONIC_CMD=auto --env NOPASSWORD=true -v tofnd:/.tofnd haiyizxx/tofnd:latest
docker pull axelarnet/tofnd:v0.10.5
docker run -p 50051:50051 --env MNEMONIC_CMD=auto --env NOPASSWORD=true --env ADDRESS=0.0.0.0 -v tofnd:/.tofnd axelarnet/tofnd:v0.10.5
```

Leave this process running in the background, and perform additional commands in a new terminal window or shell.
Expand Down Expand Up @@ -76,28 +88,27 @@ docker run axelarnet/axelar-ampd:v0.5.0 verifier-address

## Add `ampd` to your `PATH`

This will allow you to begin commands with `ampd`. If you set up `ampd` through source or Docker, make sure to build a binary first.
This will allow you to begin commands with `ampd`. If you set up `ampd` through source or Docker, you can skip this step.

<tabs>

<tab-item title="Symbolic link">
<Callout>
Replace `ampd-darwin-arm64-v0.5.0` with the [`ampd` binary you downloaded](/validator/amplifier/verifier-onboarding#set-up-ampd).
</Callout>
1. Add a symbolic link named `ampd` to the `ampd` binary on your machine:
1. Add a symbolic link named `ampd` in your binaries folder.:

```bash
sudo ln -s ~/Downloads/ampd-darwin-arm64-v0.5.0 /usr/local/bin/ampd
sudo ln -s ~/Downloads/ampd-*-v0.5.0 /usr/local/bin/ampd
```
1. Make the binary executable:

```bash
chmod a+x ~/Downloads/ampd-darwin-arm64-v0.5.0
chmod a+x ~/Downloads/ampd-*-v0.5.0
```

1. Restart your terminal.

1. Run `ampd --version` to make sure that the right version of `ampd` was installed on your machine. It should be `ampd 0.5.0`.
1. Run `ampd --version` to make sure that the right version of `ampd` is being used. It should be `ampd 0.5.0`.
</tab-item>

<tab-item title="<code>bash</code> alias">
Expand Down

0 comments on commit a366ba8

Please sign in to comment.