Sitemap
BreizhNode

BreizhNode

Crypto, blockchain, and masternode enthusiast - Setting up your own node has never been easier - (French/English) co-founder https://easy-node.xyz/

Two Testnets in One! Be the first to support Mangata’s roll-up with EigenLayer

6 min readDec 25, 2023

--

The very first version of Mangata’s AVS testnet, based on the EigenLayer omnichain zk-rollup, is now live! This marks a crucial step towards the launch of their mainnet on Ethereum via EigenLayer in 2024

This article can be read in French or English.
To access the English version, follow this
link.

Press enter or click to view image in full size

I am BreizhNode, a blockchain and masternode enthusiast, and I’m excited to share my knowledge about this ecosystem through my articles. Don’t forget to subscribe to my Medium to stay updated on my new publications.

You can also follow me on Twitter or chat with me on Discord (syphilis#6688).

Find my videos on YouTube to set up your nodes!

Introduction

Mangata is deploying its first omnichain zk-rollup on the Ethereum Goerli testnet, utilizing ETH restaked from EigenLayer for its security.

https://www.mangata.finance/

Mangata is an omnichain zk-rollup offering L1-grade native liquidity with the goal of making tokens from all ecosystems tradable. To date, Mangata has raised a total of $5.6 million, and its current valuation is $60 million.

Mangata invites EigenLayer operators to join the testnet journey starting today. Exciting opportunities and a reward system will be available for testers in the future.

1- VPS Configuration

To set up your masternode, you have the choice of hosting it on your own computer or opting for a Virtual Private Server (VPS), which is ideal for hosting websites, applications, or other online services, such as nodes.

In my case, I opted for Contabo, a reputable VPS rental solution.
I have no information about the requested configuration. Considering an intermediate VPS configuration could be an interesting option to consider

So, I recommend you choose the Cloud VPS 2.

Now it’s your turn…

To order your Contabo VPS, you can click on this link.

It’s an affiliate link, with no additional cost to you, which allows me to support my work and provide valuable content.

Les offres de Contabo
Press enter or click to view image in full size

Opt for a 400 GB SSD storage capacity and choose the Docker image for your configuration.

Once you have completed the payment process, you will receive an order confirmation email. Please wait to receive a second email containing information about your VPS, including your login credentials.

To connect to your VPS, I recommend following this detailed tutorial. You will need to download the Putty software, which will allow you to establish a secure connection with your VPS and access its features.

Press enter or click to view image in full size

2- Creating your operator on EigenLayer

In order to launch your Mangata node, you will create your operator on the EigenLayer testnet.

To do this, follow step 2 of my guide.

Get BreizhNode’s stories in your inbox

Join Medium for free to get updates from this writer.

Link to the EigenLayer guide.

Press enter or click to view image in full size
https://medium.com/@SyphilisNode/lancement-du-testnet-deigenlayer-suivez-ce-guide-simple-pour-faire-partie-des-testeurs-du-r%C3%A9seau-619a194cb954
https://medium.com/@SyphilisNode/lancement-du-testnet-deigenlayer-suivez-ce-guide-simple-pour-faire-partie-des-testeurs-du-r%C3%A9seau-619a194cb954

To be able to launch your Mangata node, you will need to have a minimum of one gETH restacked on your Operator.

3- Installation of Essential Components

Before delving into the installation of your node, it is crucial to update your VPS.
To do so, simply execute the following command in your VPS terminal:

sudo apt-get update && sudo apt-get upgrade -y
Copy the command and right-click in your terminal to paste it.

Now, you need to proceed with installing Docker.

Docker is a platform for running applications in “containers”, which makes it easy to deploy and run them on different machines without worrying about configuration differences.

To do this, run the following command in your terminal:

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
Press enter or click to view image in full size

Then :

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

And :

systemctl start docker

4- Downloading the Mangata Folder

You will be able to download the Mangata folder:

git clone https://github.com/mangata-finance/avs-operator-setup.git
cd avs-operator-setup
chmod +x run.sh

5- Configuring Your Node

You will configure your node according to your operator on EigenLayer.

nano .env

You will open a file containing this text. Modify the elements with angle brackets <…> with the information from your EigenLayer operator.
Navigate through the text using the arrow keys on your keyboard.
You can find an API at https://www.infura.io/ :

MAIN_SERVICE_IMAGE=mangatasolutions/avs-finalizer:80ac399c2c2f103dd8de1be62c114d5090cd11cd
MAIN_SERVICE_NAME=avs-finalizer-node

# Goerli contracts deployment
AVS_REGISTRY_COORDINATOR_ADDR=0x5620cDb94BaAaD10c20483bd8705DA711b2Bc0a3

# Finalizer Service Manager RPC
AVS_RPC_URL=https://avs-aggregator-testnet.mangata.online/
# register with AVS when the node starts
OPT_IN_AT_STARTUP=true

RUST_LOG=avs=info

###############################################################################
####### TODO: Operators please update below values for your node ##############
###############################################################################

# TODO: Operators need to update this to provide connection to ETH & network nodes
CHAIN_ID=5
ETH_RPC_URL=<HTTP_API_GOERLI>
ETH_WS_URL=<WSS_API_GOERLI>
SUBSTRATE_RPC_URL=wss://collator-01-ws-rollup-testnet.mangata.online:443

# TODO: Operators need to update this to their own keys, either use files or encoded JSON
# this is where your keys are stored on local storage
ECDSA_KEY_FILE_HOST=~/.eigenlayer/operator_keys/<NAME>.ecdsa.key.json
BLS_KEY_FILE_HOST=~/.eigenlayer/operator_keys/<NAME>.bls.key.json

# this is where the node binary finds the keys in the docker container
ECDSA_KEY_FILE=/app/operator_keys/ecdsa_key.json
BLS_KEY_FILE=/app/operator_keys/bls_key.json

# it is possible to pass the encoded json key directly with these env flags
# comment above both ECDSA_KEY_FILE & BLS_KEY_FILE if used
# ECDSA_KEY_JSON=
# BLS_KEY_JSON=

# TODO: Operators need to add password to decrypt the above keys
ECDSA_KEY_PASSWORD=<PASSWORD_WALLET>
BLS_KEY_PASSWORD=<PASSWORD_WALLET>

To exit your file, hold down CTRL+X, then press Y and ENTER.

Update the folder:

./run.sh opt-in

6- Launching the Node

Now that you have configured your folder, you can launch the node.

docker compose up -d
Press enter or click to view image in full size

You can check the log of your node with the command:

docker logs -f avs-finalizer-node

Congratulations, your node is launched, and you are securing the Mangata roll-up with your ETH restaked on EigenLayer!

Thank you for taking the time to read my article.

If you have any additional questions or would like to discuss further, feel free to reach out to me on Twitter or Discord. You can check out my videos on Youtube too.

Youtube: @breizhnode56
Discord: syphilis#6688

If you would like to support my work, I have created a dedicated wallet : 0x8AF4A2ec91469aBda8Fc36571D4f50A581215D29

You can also join the project’s social media networks:

--

--

BreizhNode

Written by BreizhNode

Crypto, blockchain, and masternode enthusiast - Setting up your own node has never been easier - (French/English) co-founder https://easy-node.xyz/