EigenLayer Vault

This section is going to guide you through the creation of a Single Protocol vault on top of EigenLayer using the Byzantine factory.

Two types of vaults are supported: one for ERC20 tokens and one for native ETH :

To create these vaults, the only thing you need to do is call the associated functions form the Factory, and provide the desired parameters :

createEigenByzVault (ERC20 version)

function createEigenByzVault(
    ByzVaultParams calldata _byzVaultParams,
    EigenParams calldata _eigenParams
) external returns (address eigenByzVault);

Description: Creates a new EigenByzVault that accepts an ERC20 deposit token.

Parameters:

  • ByzVaultParams _byzVaultParams: Configuration for the vault, including token type, fee settings, role assignments, and deposit logic. See the ByzVaultParams documentation.

  • EigenParams _eigenParams: Configuration for delegation on EigenLayer. See the EigenParams documentation.

Returns:

  • address eigenByzVault: The deployed address of the new ERC20-compatible EigenByzVault.


createEigenByzVault (Native ETH version)

function createEigenByzVault(
    NativeByzVaultParams calldata _nativeByzVaultParams,
    EigenParams calldata _eigenParams,
    EigenPodParams calldata _eigenPodParams
) external returns (address eigenByzVault);

Description: Creates a new EigenByzVault that accepts native ETH for restaking via EigenLayer.

Parameters:

  • NativeByzVaultParams _nativeByzVaultParams: Configuration for the native vault variant. Includes validator node identity and optional validator manager for Solo Staker Vaults.

  • EigenParams _eigenParams: EigenLayer delegation settings. See EigenParams.

  • EigenPodParams _eigenPodParams: Optional metadata for the associated EigenPod, such as checkpoint authority and proof submitter. See EigenPodParams.

Returns:

  • address eigenByzVault: The deployed address of the new native ETH-compatible EigenByzVault.



If you want a complete process on how to fill these parameters, go to the underlying sections.

Last updated