NODE SETUP GUIDE
Install GO & Dependencies HERE
Install binaries & Run node
cd $HOME
git clone https://github.com/umee-network/umee.git
cd umee
ver='v5.0.0'
git checkout ${ver}
make install
umeed init <NODE_NAME> --chain-id canon-2
wget -qO $HOME/.umee/config/genesis.json "https://raw.githubusercontent.com/umee-network/umee/canon-2/networks/canon-2/genesis.json"
sha256sum $HOME/.umee/config/genesis.json
#right output: ecc7dc53b752ef70bc75567c614b402cc281603d66b2d5b89eb9eeeaf1b545c5
#create service file
sudo tee /etc/systemd/system/umeed.service << EOF
[Unit]
Description=Umee-Testnet
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which umeed) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable umeed.service
STATE SYNC SERVICE
Please make sure You have latest, officially launched version of Umee binaries.
sudo systemctl stop umeed.service
umeed tendermint unsafe-reset-all --home $HOME/.umee
SNAP_RPC="http://173.212.215.104:26657"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$(($LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash); \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.umee/config/config.toml; \
wget -qO $HOME/.umee/config/addrbook.json https://snapshots.theamsolutions.info/umee-test-adrb.json
sudo systemctl restart umeed.service && sudo journalctl -u umeed.service -f -o cat
Use command below to switch off your State Sync mode, after node fully synced to avoid problems in future node restarts!
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.umee/config/config.toml
A fully synced node supposed to be ready in 10-15 min. depending on computer/bandwidth power.
Enjoy.
DATA SNAPSHOT SERVICE
#check snapshot height : curl -s https://snapshots.theamsolutions.info | egrep -o ">umee-test*.*tar" | tr -d ">"
snap=$(curl -s https://snapshots.theamsolutions.info | egrep -o ">umee-test*.*tar" | tr -d ">")
sudo systemctl stop umeed
cp $HOME/.umee/data/priv_validator_state.json $HOME
rm -rf $HOME/.umee/data
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
tar xf $HOME/${snap} -C $HOME/.umee
rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.umee/data
wget -q -O $HOME/.umee/config/addrbook.json https://snapshots.theamsolutions.info/umee-test-adrb.json
sudo systemctl restart umeed
journalctl -u umeed -f -o cat
PRICE FEEDER SETUP
#create Umee key for Price Feeder and fund it with some tokens (100 for example)
cd $HOME
git clone https://github.com/ojo-network/price-feeder
cd price-feeder
git checkout umee/v2.3.0
make install
mkdir $HOME/pfd-config
#download recommended version of config (wont be redundant to double check config actuality at Discord)
mkdir $HOME/pfd-config/
curl -s https://raw.githubusercontent.com/ojo-network/price-feeder/umee/price-feeder.example.toml > $HOME/pfd-config/price-feeder.toml
curl -s https://raw.githubusercontent.com/ojo-network/price-feeder/umee/umee-provider-config/currency-pairs.toml >> $HOME/pfd-config/price-feeder.toml
echo "#">> $HOME/pfd-config/price-feeder.toml
curl -s https://raw.githubusercontent.com/ojo-network/price-feeder/umee/umee-provider-config/deviation-thresholds.toml >> $HOME/pfd-config/price-feeder.toml
echo "#" >> $HOME/pfd-config/price-feeder.toml
curl -s https://raw.githubusercontent.com/ojo-network/price-feeder/umee/umee-provider-config/endpoints.toml >> $HOME/pfd-config/price-feeder.toml
#open file $HOME/test/price-feeder.toml and set right values as commented below only for mentioned fields
[account]
address = "umee1..." # your newly created key for PFD
chain_id = "canon-2"
validator = "umeevaloper..." #your Validator valoper address
[keyring]
backend = "os"
dir = "home_dir" # path to $HOME/.umee
pass = "key_ring_pass" # your keyring password
[telemetry]
global_labels = [["chain-id", "canon-4"]] # set Umee chain id fo telemetry
#create pfd.service file
PFD_PASS="your-keyring-pass"
sudo tee /etc/systemd/system/price-feeder.service << EOF
Description=Price-Feeder
After=network.target
[Service]
User=$USER
Environment=PRICE_FEEDER_PASS="$PFD_PASS"
ExecStart=$(which price-feeder) $HOME/pfd-config/price-feeder.toml --log-level debug
RestartSec=10
Restart=on-failure
Type=simple
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
#launch pfd
sudo systemctl daemon-reload
sudo systemctl enable price-feeder.service
sudo systemctl start price-feeder.service
#register PFD acc to the chain and restart
UMEE_KEY="umee1..." # validator main wallet key
PFD_KEY="umee1..." # PFD key
umeed tx oracle delegate-feed-consent $UMEE_KEY $PFD_KEY --chain-id=canon-2 --fees 5000uumee
sudo systemctl restart pfd.service
journalctl -u pfd.service -f -o cat
GOOD LUCK!!!
AM Solutions © Copyright. All rights reserved.
We need your consent to load the translations
We use a third-party service to translate the website content that may collect data about your activity. Please review the details in the privacy policy and accept the service to view the translations.