deploy_core_contracts

Function deploy_core_contracts 

Source
pub async fn deploy_core_contracts(
    http_endpoint: &str,
    private_key: &str,
    deployer_address: Address,
    config_data: DeploymentConfigData,
    eth_pos_deposit: Option<Address>,
    genesis_time: Option<u64>,
) -> Result<DeployedCoreContracts>
Expand description

Deploys the EigenLayer core contracts

This function deploys all the necessary core contracts for EigenLayer following the logic from the provided Solidity script.

§Arguments

  • http_endpoint - HTTP endpoint for the RPC provider
  • private_key - Private key for the deployer account
  • deployer_address - Deployer address
  • config_data - Configuration data for the deployment
  • eth_pos_deposit - Address of the ETH POS deposit contract (optional, for mainnet)
  • genesis_time - Genesis time for the EigenPod (optional)

§Errors

Returns an error if any of the contract deployments fail or if any of the contract calls fail.