Skip to main content

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:

Setup

  1. Install Foundry (if not already installed):

    curl -L https://foundry.paradigm.xyz | bash
    foundryup
  2. Clone the UniFi repository:

    git clone https://github.com/PufferFinance/UniFi.git
  3. Navigate to the cloned directory:

    cd UniFi
  4. Install dependencies:

    yarn install
  5. Navigate to the l1-contracts directory:

    cd l1-contracts
  6. Install Foundry dependencies:

    forge build

Phase 1 - Register to UniFi AVS

During phase 1 of UniFi AVS mainnet, Operators can register as follows.

  1. Register as an Operator Run the following Solidity script:
    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 
    Replace YOUR_OPERATOR_PRIVATE_KEY and YOUR_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.