Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
point all v2 to edgenet for now alone
Browse files Browse the repository at this point in the history
  • Loading branch information
okedeji committed Jun 17, 2024
1 parent e0ca785 commit 91cdc65
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The following are the list of stuff that can don with this tool at the moment
1. Generating worker node files
2. Genrating reputer node files
3. Generating validator node files
4. Funding of testnet account addresses
4. Funding of edgenet account addresses

for all the files generation commands, the tool will help in generation of the needed files and their respective docker files and you can spin them up as usual docker containers with docker-compose

Expand Down Expand Up @@ -76,7 +76,7 @@ By running this command, `prod-docker-compose.yaml` will be generated with appro

### Initialize validator production
```shell
allocmd generate validator --name <validator-name> --network <testnet or mainnet>
allocmd generate validator --name <validator-name> --network <edgenet>
```
The above command can generate validator files and you can then use docker-compose to deploy

Expand Down
4 changes: 2 additions & 2 deletions allocmd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def reputer(environment, name=None, topic=None):

@generate.command()
@click.option('--name',required=True, help='Name of the validator.')
@click.option('--network', required=True, type=click.Choice(['testnet', 'edgenet']), help='Your preffered chain network to run the validator on.')
@click.option('--network', required=True, type=click.Choice(['edgenet']), help='Your preffered chain network to run the validator on.')
def validator(name=None, network=None):
"""Initialize your Allora Worker Node with necessary boilerplates"""

Expand Down Expand Up @@ -82,7 +82,7 @@ def validator(name=None, network=None):

@click.command()
@click.option('--address',required=True, help='the account address to be funded.')
@click.option('--network', required=True, type=click.Choice(['testnet', 'edgenet']), help='Your preffered chain network to fund address from.')
@click.option('--network', required=True, type=click.Choice(['edgenet']), help='Your preffered chain network to fund address from.')
def fund(address=None, network=None):
"""fund allora account address"""

Expand Down
6 changes: 3 additions & 3 deletions allocmd/templates/config.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# place all {{ b7s_type }} configuration variables here

name: {{ name }}
faucet_url: https://faucet.testnet.allora.network/
faucet_url: https://faucet.edgenet.allora.network/
{{ b7s_type }}:
boot_nodes: /dns4/head-0.testnet.allora.network/tcp/9010/p2p/12D3KooWGAA1C2UNyj51QaGX5aXnVzRqeaqhyhUFFJixdqshwWC3
chain_rpc_address: https://allora-rpc.testnet.allora.network/
boot_nodes: /dns4/head-0-p2p.edgenet.allora.network/tcp/32050/p2p/12D3KooWQgcJ4wiHBWE6H9FxZAVUn84ZAmywQdRk83op2EibWTiZ
chain_rpc_address: https://allora-rpc.edgenet.allora.network/
chain_topic_id: {{ topic_id }}
mnemonic: ""
hex_coded_pk: ""
Expand Down
2 changes: 1 addition & 1 deletion allocmd/utilities/constants.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cliVersion = "2.0.0"
cliVersion = "2.0.1"
4 changes: 2 additions & 2 deletions allocmd/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import re
import yaml

def create_worker_account(worker_name, faucet_url, type, network="testnet"):
def create_worker_account(worker_name, faucet_url, type, network="edgenet"):
current_file_dir = os.path.dirname(os.path.abspath(__file__))
cli_tool_dir = os.path.dirname(current_file_dir)
allora_chain_dir = os.path.join(cli_tool_dir, 'allora-chain')
Expand Down Expand Up @@ -81,7 +81,7 @@ def create_worker_account(worker_name, faucet_url, type, network="testnet"):
print(colored("'make' is not available in the system's PATH. Please install it or check your PATH settings.", "red"))
return ''

def fundAddress(faucet_url, address, network="testnet"):
def fundAddress(faucet_url, address, network="edgenet"):
try:
subprocess.run([
'curl',
Expand Down

0 comments on commit 91cdc65

Please sign in to comment.