Getting Started with UniFi AVS
This guide provides simple steps for operators to register with UniFi AVS.
Prerequisites
Before you begin, ensure you have the following:
- An Operator registered in EigenLayer's contracts (see guide)
- Access to an Ethereum mainnet RPC
- Git installed
- Node.js and npm installed
- Yarn installed
- Foundry installed
Setup
-
Install Foundry (if not already installed):
curl -L https://foundry.paradigm.xyz | bash
foundryup -
Clone the UniFi repository:
git clone https://github.com/PufferFinance/UniFi.git
-
Navigate to the cloned directory:
cd UniFi
-
Install dependencies:
yarn install
-
Navigate to the l1-contracts directory:
cd l1-contracts
-
Install Foundry dependencies:
forge build
Phase 1 - Register to UniFi AVS
During phase 1 of UniFi AVS mainnet, Operators can register as follows.
- Register as an Operator
Run the following Solidity script:
Replace
forge script script/UniFiAVSScripts.sol:UniFiAVSScripts --sig "registerOperatorToUniFiAVS(uint256 signerPk)" 'YOUR_OPERATOR_PRIVATE_KEY' --private-key 'YOUR_OPERATOR_PRIVATE_KEY' --rpc-url 'YOUR_MAINNET_RPC_URL' --broadcast
YOUR_OPERATOR_PRIVATE_KEY
andYOUR_MAINNET_RPC_URL
with your actual values.
tip
Phase 2 of UniFi AVS will be coming soon as EigenLayer introduces new features around rewards and slashing.