Validator Registry

Validator Registry

The Validator Registry is a core component of the Fabrica ecosystem that maps each validator's contract address to a human-readable name, so applications can display a token's validator by name instead of a raw address.

Name Resolution

A property token stores its validator as a contract address. The registry resolves that address to a human-readable name via its name(address) function, providing several benefits:

  1. Improved Readability: Applications can show a validator's name rather than its cryptographic address
  2. Stable Display: The onchain validator name travels with the token as a trait, resolved from the address
  3. Cross-Chain Compatibility: The registry on each chain resolves that chain's validator addresses to names

Registry Structure

The registry contract (FabricaValidatorRegistry) stores one thing per validator: a mapping from the validator's contract address to its name (e.g., "fabrica-us-validator"). It exposes:

FunctionWho can call itWhat it does
name(address)anyoneReturns the name registered for a validator address (empty if none)
addName(address, string)registry ownerRegisters a name for an address
updateName(address, string)registry ownerChanges a registered name
removeName(address)registry ownerRemoves a registered name

The registry is for display only. It does not decide which validator a token relies on: each token stores its own validator address, changed through the token contract's updateValidator by an account holding at least 70% of the token's supply.

Validator Resolution Process

When a property token needs to interact with its validator:

  1. The token stores its validator's contract address (set via updateValidator)
  2. An application reads that address and calls the registry's name(address) function
  3. The registry returns the validator's human-readable name, which the token also exposes as an onchain trait

Supported Validators

The registry currently includes the following validators:

NameDescriptionSupported Networks
fabrica-us-validatorPrimary validator for US propertiesEthereum Mainnet, Sepolia, Base Sepolia

Did this page help you?