Become a Guardian
Manas Network
Manas network supports open ecosystem of Gurdians to join & leave at their will without negatively impacting the network. The participants only need to follow the rules laid out in the runtime so that they do not face any negative economic impact. The pre-requisites for an active Guardian participant requires them to do the following:
Provide node preferences to activate the Guardian services
Setup a Guardian Node
Docker-compose config
Save the attached
palliora-manas.json.Save the attached
docker-compose.yml.Open a terminal where you have saved the downloaded files and run the following commands
Command
Store the docker login auth token in the Environment by executing
export AUTH_TOKEN=<auth-token-from-palliora>Perform Docker login by executing
echo $AUTH_TOKEN | docker login --username AWS --password-stdin 434856701645.dkr.ecr.us-east-1.amazonaws.comRun the docker compose with following command:
docker-compose pull && docker-compose up --force-recreate -d
Ollama setup
Download Ollama from https://ollama.com/download
Pull relevant model (e.g. `llama3.1:latest`)
ollama pull llama3.1:latestStart ollama server
ollama serve
Install palliora-cli
Install palliora-cli from npm package registry
npm i -g @thefossguy/test-cliCreate an account
To create a fresh account, run the palliora-cli with following command
palliora-cli account-createGet test tokens
Use the palliora-cli to receive test tokens on your new account. The following command funds your account with 1000 PALI tokens.
palliora-cli fund --amount 1000000Bond Tokens
The next step is bonding PALI. A bonded account, holds your staked tokens (PALI) that back your guardian node. Bonding your PALI means locking it for a period, during which it cannot be transferred or spent but is used to secure your guardian's role in the network. The Minimum Bond Requirement is 1,000 PALI tokens.
The following sections will guide you through bonding PALI for your guardian.
Bonding PALI
Using the palliora-cli use the stake command to bond your tokens as follows:
palliora-cli stake-new --amount=<token-amount> [--reward-destination="<reward-address>"]
palliora-cli stake-add|stake-reduce --amount=<token-amount>Node operators can do a fresh stake or increase/decrease their existing stake using this command.
The amount flag signifies how much of PALI tokens will be staked. This value must be equal or greater than the minimum guardian stake. The parameters accepts floating values upto 18 decimal places.
The reward-destination gives the node operators an option to provide a alternate address to receive the stake rewards into. By default the account that is setup will receive the staking rewards but any valid address can be set as the reward destination using this option.
Example of valid stake command:
# fresh stake of minimum guardian stake with default reward destination
palliora-cli stake-new --amount=1000
# fresh stake with an alternate reward destination address
palliora-cli stake-new --amount=1100 --reward-destination="5HpG9w8EBLe5XCrbczpwq5TSXvedjrBGCwqxK1iQ7qUsSWFc"
# increase the current stake by 100
palliora-cli stake-add --amount=100
# decrease the current stake
palliora-cli stake-reduce --amount=100
# unstake entire amount
palliora-cli stake-removeGuard
Using the palliora-cli use the join command to participate as guardian:
palliora-cli join guardian [--standard] [--verifier] [--compute="[trusted,tee,mpc,fhe,zkp]"]Example of valid join command:
# joining as a standard guardian without verifier or compute services
palliora-cli join-guardian --standard
# joining as a verifier only
palliora-cli join-guardian --verifier
# joining with trusted & tee based compute services
palliora-cli join-guardian --compute="trusted,tee"
# a guardian offering all the possible services
palliora-cli join-guardian --standard --verifier --compute="trusted,tee,mpc,fhe,zkp"Last updated