This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
372 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
# place all worker configuration variables here | ||
# place all {{ b7s_type }} configuration variables here | ||
|
||
name: {{ name }} | ||
faucet_url: https://faucet.testnet.allora.network/ | ||
worker: | ||
{{ b7s_type }}: | ||
boot_nodes: /dns4/head-0.testnet.allora.network/tcp/9010/p2p/12D3KooWGAA1C2UNyj51QaGX5aXnVzRqeaqhyhUFFJixdqshwWC3 | ||
chain_rpc_address: https://allora-rpc.testnet.allora.network/ | ||
chain_topic_id: {{ topic_id }} | ||
mnemonic: "" | ||
hex_coded_pk: "" | ||
address: "" | ||
validator: | ||
image_uri: alloranetwork/allora-chain | ||
image_tag: latest | ||
mnemonic: "" | ||
hex_coded_pk: "" | ||
address: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
set -exu | ||
|
||
NETWORK="{{ network }}" | ||
GENESIS_URL="https://raw.githubusercontent.com/allora-network/networks/main/${NETWORK}/genesis.json" | ||
PEERS_URL="https://raw.githubusercontent.com/allora-network/networks/main/${NETWORK}/peers.txt" | ||
BLOCKLESS_API_URL="https://heads.${NETWORK}.allora.network" | ||
|
||
APP_HOME="/data" | ||
INIT_FLAG="${APP_HOME}/.initialized" | ||
MONIKER="{{ val_name }}" | ||
KEYRING_BACKEND=test #! Use test for simplicity, you should decide which backend to use !!! | ||
GENESIS_FILE="${APP_HOME}/config/genesis.json" | ||
DENOM="uallo" | ||
|
||
echo "To re-initiate the node, remove the file: ${INIT_FLAG}" | ||
if [ ! -f $INIT_FLAG ]; then | ||
rm -rf ${APP_HOME}/config | ||
|
||
#* Init node | ||
allorad --home=${APP_HOME} init ${MONIKER} --chain-id=${NETWORK} --default-denom $DENOM | ||
|
||
#* Download genesis | ||
rm -f $GENESIS_FILE | ||
curl -Lo $GENESIS_FILE $GENESIS_URL | ||
|
||
#* Import allora account, priv_validator_key.json and node_key.json from the vault here | ||
#* Here create a new allorad account | ||
allorad --home $APP_HOME keys add ${MONIKER} --keyring-backend $KEYRING_BACKEND > $APP_HOME/${MONIKER}.account_info 2>&1 | ||
|
||
#* Setup allorad client | ||
allorad --home=${APP_HOME} config set client chain-id ${NETWORK} | ||
allorad --home=${APP_HOME} config set client keyring-backend $KEYRING_BACKEND | ||
|
||
#* Create symlink for allorad config | ||
ln -sf . ${APP_HOME}/.allorad | ||
|
||
touch $INIT_FLAG | ||
fi | ||
echo "Node is initialized" | ||
|
||
PEERS=$(curl -s ${PEERS_URL}) | ||
|
||
echo "Starting validator node" | ||
allorad \ | ||
--home=${APP_HOME} \ | ||
start \ | ||
--moniker=${MONIKER} \ | ||
--minimum-gas-prices=0${DENOM} \ | ||
--rpc.laddr=tcp://0.0.0.0:26657 \ | ||
--p2p.persistent_peers=${PEERS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "3" | ||
|
||
services: | ||
validator0: | ||
container_name: {{ val_name }} | ||
image: "alloranetwork/allora-chain:v0.0.10" | ||
environment: | ||
- NETWORK={{ network }} | ||
- MONIKER={{ val_name }} | ||
- APP_HOME=/data | ||
volumes: | ||
- ./data:/data | ||
- ./scripts/:/scripts | ||
ports: | ||
- "26656-26657:26656-26657" | ||
user: "0:0" | ||
entrypoint: /scripts/start-validator.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
cliVersion = "1.0.4" | ||
|
||
cliVersion = "2.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.