Pretest Task

Preparation

You'll need a minimum 6 core + 16gb ram (i have test with their minimum 4 core but getting killed after a few hours running!)

i use Contabo Cloud VPS M with NVME Disk. Don't use hetzner as they may ban you.

also you can't use free ETH RPC for this. you need to buy any subscription plan. but i'm recomend you to use reliable service like alchemy, infura or any other. i personally use BlockPi (49$) and NodeReal (39$) because they has more cheaper price and reliable services. for nodereal you can use my links https://nodereal.io/invite/39aa0451-acb0-440c-8bcd-ab566857a3da and get some bonus referral registration too.

// install dependencies
sudo apt-get update
sudo apt-get install git screen
// install docker
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
  // start copy all text below //  
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  // end copy all text above //

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Test if your docker are working.

sudo docker run hello-world

Clone pretask repository

git clone https://github.com/PowerLoom/deploy.git --single-branch powerloom_testnet_pretask --branch testnet_pretask && cd powerloom_testnet_pretask

Copy .env configuration

cp env.example .env

Edit your configuration

// Change SOURCE_RPC_URL, SIGNER_ACCOUNT_ADDRESS, SIGNER_ACCOUNT_PRIVATE_KEY and POOLER_API_PREFIX
// SOURCE_RPC_URL need to use paid services!
// SIGNER_ACCOUNT_ADDRESS = your new address. create one on https://vanity-eth.tk/
// SIGNER_ACCOUNT_PRIVATE_KEY = your private key of wallet SIGNER_ACCOUNT_ADDRESS 
// POOLER_API_PREFIX please use: http://YOUR_IP:8002 , change YOUR_IP to your vps ip.

sudo nano .env
// after editing, use CTRL+X, then press Y and enter to close file editor

Run the program

// Run for 24-48 Hours, then ping the team on your ticket raised on discord.
./build.sh

Check your current epoch (open on your browser)

http://YOUR_IP:8002/current_epoch

Consensus dashboard for pretest task

https://pretest-consensus.powerloom.io/projects/aggregate_24h_stats_lite:9fb408548a732c85604dacb9c956ffc2538a3b895250741593da630d994b1f27:UNISWAPV2

Check your front-end dashboard (open on your browser)

http://YOUR_IP:3000/

Last updated