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 providerprivate_key- Private key for the deployer accountdeployer_address- Deployer addressconfig_data- Configuration data for the deploymenteth_pos_deposit- Address of the ETH POS deposit contract (optional, for mainnet)genesis_time- Genesis time for theEigenPod(optional)
§Errors
Returns an error if any of the contract deployments fail or if any of the contract calls fail.