Skip to content

Commit

Permalink
fix(copy): change A-MACI to aMACI
Browse files Browse the repository at this point in the history
  • Loading branch information
realfish committed Jul 1, 2024
1 parent 57e1ea2 commit 4846442
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions pages/docs/vota-devops/amaci.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: 'Run A-MACI Operator Service on `vota-sf` Testnet · Dora Vota DevOps Guide'
title: 'Run aMACI Operator Service on `vota-sf` Testnet · Dora Vota DevOps Guide'
desc: 'This guide provides instructions on running a Dora Vota full node and setting up as a validator. It covers hardware requirements, port and chain configurations, and the process of starting a node and registering as a validator. Ensure your environment meets all requirements to operate Dora Vota nodes successfully.'
---

import { Steps, Callout, Tabs } from 'nextra/components'

# How to Run A-MACI Operator Service on `vota-sf` Testnet
# How to Run aMACI Operator Service on `vota-sf` Testnet

## Requirements

Expand All @@ -20,25 +20,25 @@ import { Steps, Callout, Tabs } from 'nextra/components'
- [Node.js](https://nodejs.org/) version: >= 20
- [`dorad`](/docs/vota-dev/dorad) version: 0.4.0

## Create an A-MACI operator account
## Create an aMACI operator account

<Callout type="warning">
Make sure you have backed up the **MNEMONIC** of this account which is the
only method to recover your wallet. Also, it will be used when **initiating
A-MACI operator service**.
aMACI operator service**.
</Callout>

This account will be used later to register as an A-MACI operator.
This account will be used later to register as an aMACI operator.

```sh
export ACCOUNT_NAME=maci-operator
dorad keys add $ACCOUNT_NAME
```

## Register an A-MACI operator on `vota-sf`
## Register an aMACI operator on `vota-sf`

<Steps>
### Stake 20 DORA to register as A-MACI operator with your A-MACI operator account:
### Stake 20 DORA to register as aMACI operator with your aMACI operator account:

```sh
dorad tx wasm execute dora17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgsnah3h8 '{"register": {} }' \
Expand All @@ -52,21 +52,21 @@ dorad tx wasm execute dora17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgsn
-y
```

### Query whether your A-MACI operator has been created successfully
### Query whether your aMACI operator has been created successfully

```sh
dorad query wasm contract-state smart dora17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgsnah3h8 '{ "is_maci_operator": { "address": <your_account_address> } }' --node https://vota-sf-rpc.dorafactory.org:443
```

If terminal shows `true`, it means the A-MACI operator creation is successful.
If terminal shows `true`, it means the aMACI operator creation is successful.

```sh
data: true
```

</Steps>

## Build A-MACI operator service
## Build aMACI operator service

```sh
git clone https://github.com/DoraFactory/maci-operator && cd maci-operator
Expand All @@ -76,7 +76,7 @@ npm install
npm run build
```

## Initiate A-MACI operator service
## Initiate aMACI operator service

<Callout type="info">
Before configuring environment variables, please make sure you have navigated
Expand Down Expand Up @@ -109,18 +109,18 @@ Y: 5572999208344294573488778747734990567557173306854827005273539480127951622273

### Config your MNEMONIC and coordinator private key

- Enter the mnemonic of the previously generated **A-MACI operator account** into the `MNEMONIC` field in your `.env` file.
- Enter the mnemonic of the previously generated **aMACI operator account** into the `MNEMONIC` field in your `.env` file.
- Enter the **coordinator private key** generated in the previous step into the `COORDINATOR_PRI_KEY` field in your `.env` file.

### Initiate A-MACI operator service
### Initiate aMACI operator service

```sh
npm run init
```

</Steps>

## Setup A-MACI operator service
## Setup aMACI operator service

<Steps>
### Create the definition file
Expand Down Expand Up @@ -176,7 +176,7 @@ If it started successfully, you will see many similar logs like this:

</Steps>

## What is the A-MACI operator service doing?
## What is the aMACI operator service doing?

- The A-MACI operator service periodically checks A-MACI rounds that need to be processed on the `vota-sf` testnet.
- The A-MACI operator service logs processed A-MACI round information and other data in the `/maci-operator/work` directory.
- The aMACI operator service periodically checks aMACI rounds that need to be processed on the `vota-sf` testnet.
- The aMACI operator service logs processed aMACI round information and other data in the `/maci-operator/work` directory.

0 comments on commit 4846442

Please sign in to comment.