github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/scripts/interfaces/IAddressManager.sol (about)

     1  // SPDX-License-Identifier: MIT
     2  pragma solidity ^0.8.15;
     3  
     4  /// @title IAddressManager
     5  /// @notice Minimal interface of the Legacy AddressManager.
     6  interface IAddressManager {
     7      /// @notice Emitted when an address is modified in the registry.
     8      /// @param name       String name being set in the registry.
     9      /// @param newAddress Address set for the given name.
    10      /// @param oldAddress Address that was previously set for the given name.
    11      event AddressSet(string indexed name, address newAddress, address oldAddress);
    12  
    13      /// @notice Changes the address associated with a particular name.
    14      /// @param _name    String name to associate an address with.
    15      /// @param _address Address to associate with the name.
    16      function setAddress(string memory _name, address _address) external;
    17  
    18      /// @notice Retrieves the address associated with a given name.
    19      /// @param _name Name to retrieve an address for.
    20      /// @return Address associated with the given name.
    21      function getAddress(string memory _name) external view returns (address);
    22  }