7 unstable releases (3 breaking)

new 0.4.0 Feb 20, 2025
0.3.0 Feb 11, 2025
0.2.0 Feb 6, 2025
0.1.3 Jan 17, 2025
0.1.0 Sep 30, 2024

#780 in Magic Beans

Download history 145/week @ 2024-10-29 265/week @ 2024-11-05 177/week @ 2024-11-12 245/week @ 2024-11-19 343/week @ 2024-11-26 229/week @ 2024-12-03 327/week @ 2024-12-10 109/week @ 2024-12-17 8/week @ 2024-12-24 57/week @ 2024-12-31 271/week @ 2025-01-07 146/week @ 2025-01-14 89/week @ 2025-01-21 152/week @ 2025-01-28 270/week @ 2025-02-04 232/week @ 2025-02-11

760 downloads per month
Used in 10 crates

Custom license

19MB
321K SLoC

Eigen Testing Utils

The eigen-testing-utils crate provides a set of utilities for testing Ethereum-based contracts and services within the Eigen ecosystem. This crate is designed to simplify interactions with local Anvil instances and Holesky/Mainnet environments by providing constant addresses and helper functions to retrieve important contract addresses.

Anvil Utilities

Anvil Constants

Provides utilities for interacting with local Anvil instances. Key components include:

  • CONTRACTS_REGISTRY: The address of the local Anvil Contracts Registry.
  • ANVIL_RPC_URL: A static instance of the local Anvil RPC URL configured with required fillers.

Key Functions

  • get_service_manager_address(): Retrieves the address of the service manager contract.
  • get_registry_coordinator_address(): Retrieves the address of the registry coordinator contract.
  • get_operator_state_retriever_address(): Retrieves the address of the operator state retriever contract.
  • get_delegation_manager_address(): Retrieves the address of the delegation manager contract.
  • get_strategy_manager_address(): Retrieves the address of the strategy manager contract.
  • get_erc20_mock_strategy(): Retrieves the address of the ERC20 mock strategy contract.
  • get_proxy_admin(): Retrieves the address of the proxy admin contract.

Holesky Constants

Contains predefined addresses for various contracts on the Holesky test network.

Holesky Key Addresses

  • DELEGATION_MANAGER_ADDRESS: Address of the delegation manager.
  • STRATEGY_MANAGER_ADDRESS: Address of the strategy manager.
  • EIGENPOD_MANAGER_ADDRESS: Address of the Eigenpod manager.
  • AVS_DIRECTORY_ADDRESS: Address of the AVS directory.
  • SLASHER_ADDRESS: Address of the slasher.
  • REWARDS_COORDINATOR: Address of the rewards coordinator. And various strategy base addresses.

Mainnet Constants

Contains predefined addresses for various contracts on the Ethereum mainnet.

Mainnet Key Addresses

  • DELEGATION_MANAGER_ADDRESS: Address of the delegation manager.
  • STRATEGY_MANAGER_ADDRESS: Address of the strategy manager.
  • EIGENPOD_MANAGER_ADDRESS: Address of the Eigenpod manager.
  • AVS_DIRECTORY_ADDRESS: Address of the AVS directory.
  • SLASHER_ADDRESS: Address of the slasher.
  • StrategyBase_cbETH: Address of the cbETH strategy base.
  • StrategyBase_stETH: Address of the stETH strategy base. And various other strategy base addresses.

Example

Dependencies

~80MB
~1.5M SLoC