FCT_ENS

FCT_ENS.sol is responsible for getting and validating named addresses.

FCT_ENS.sol has internal ens registering and supports external ENS services.

It is used by the FCT_Controller contract is order to extract destination addresses for FCT's calls.

Main Functions

setLocalEns

function setLocalEns(
        string calldata ens,
        address dest
) external onlyRole(LOCAL_ENS_ROLE)

Used by the ens manager to set local mapping, ens(string) to destination(address).

circle-info

Local ENS always starts with "@" Local library ENS always starts with "@lib:"

setEns

function setEns(address ens) external onlyRole(ENS_ROLE)

Used by the ENS manager to set an external service to be used as ENS mapper.

ensToAddress

Validates and returns the address of a given ens hash.

circle-check
circle-exclamation
circle-info

If ENS is not fund on the local mapping, calls the external ENS contract.

Last updated