Finder

Provides addresses of the live contracts implementing certain interfaces.

Examples of interfaces with implementations that Finder locates are the Oracle and Store interfaces.

Modifiers
Ownable

onlyOwner() modifier

Throws if called by any account other than the owner.

changeImplementationAddress(bytes32 interfaceName, address implementationAddress) external

Updates the address of the contract that implements interfaceName.

Parameters:

  • interfaceName: bytes32 of the interface name that is either changed or registered.

  • implementationAddress: address of the implementation contract.

getImplementationAddress(bytes32 interfaceName) → address external

Gets the address of the contract that implements the given interfaceName.

Parameters:

  • interfaceName: queried interface.

constructor() internal

Initializes the contract setting the deployer as the initial owner.

owner() → address public

Returns the address of the current owner.

renounceOwnership() public

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

transferOwnership(address newOwner) public

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

_msgSender() → address payable internal

_msgData() → bytes internal

InterfaceImplementationChanged(bytes32 interfaceName, address newImplementationAddress) event

OwnershipTransferred(address previousOwner, address newOwner) event

© UMA Project 2018-2019