Skip to main content

Finder

Finder#

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

Functions#

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.

_transferOwnership(address newOwner) (internal)

Transfers ownership of the contract to a new account (newOwner). Internal function without access restriction.

_msgSender() โ†’ address (internal)
_msgData() โ†’ bytes (internal)

Events#

InterfaceImplementationChanged(bytes32 interfaceName, address newImplementationAddress)
OwnershipTransferred(address previousOwner, address newOwner)

Modifiers#

onlyOwner()

Throws if called by any account other than the owner.