arrow-left
All pages
gitbookPowered by GitBook
1 of 1

Loading...

Identity Registry Interface

The Identity Registry interface defines the set of functions and events used to manage and verify identities within the T-REX protocol. Below is a detailed breakdown of each function and event, explaining its purpose, source, and functionality.

ClaimTopicsRegistrySet

Event

Description: Emitted when the Claim Topics Registry has been set for the Identity Registry.


IdentityStorageSet

Event

Description: Emitted when the Identity Registry Storage has been set for the Identity Registry.


TrustedIssuersRegistrySet

Event

Description: Emitted when the Trusted Issuers Registry has been set for the Identity Registry.


IdentityRegistered

Event

Description: Emitted when an identity is registered in the Identity Registry.


IdentityRemoved

Event

Description: Emitted when an identity is removed from the Identity Registry.


IdentityUpdated

Event

Description: Emitted when an identity has been updated in the Identity Registry.


CountryUpdated

Event

Description: Emitted when an investor's country information is updated in the Identity Registry.


registerIdentity

Source: IIdentityRegistry

Description: Registers an identity contract corresponding to a user address. Only callable by an agent of the contract.


deleteIdentity

Source: IIdentityRegistry

Description: Removes a user from the Identity Registry. Only callable by an agent of the contract.


setIdentityRegistryStorage

Source: IIdentityRegistry

Description: Replaces the current Identity Registry Storage contract with a new one. Only callable by the owner of the contract.


setClaimTopicsRegistry

Source: IIdentityRegistry

Description: Replaces the current Claim Topics Registry contract with a new one. Only callable by the owner of the contract.


setTrustedIssuersRegistry

Source: IIdentityRegistry

Description: Replaces the current Trusted Issuers Registry contract with a new one. Only callable by the owner of the contract.


updateCountry

Source: IIdentityRegistry

Description: Updates the country corresponding to a user address. Only callable by an agent of the contract.


updateIdentity

Source: IIdentityRegistry

Description: Updates an identity contract corresponding to a user address. Only callable by an agent of the contract.


batchRegisterIdentity

Source: IIdentityRegistry

Description: Registers multiple identities in batch. Only callable by an agent of the contract.


contains

Source: IIdentityRegistry

Description: Checks whether a wallet address is registered in the Identity Registry.


isVerified

Source: IIdentityRegistry

Description: Checks whether an identity contract corresponding to a user address has the required claims for verification.


identity

Source: IIdentityRegistry

Description: Returns the ONCHAINID of an investor based on their wallet address.


investorCountry

Source: IIdentityRegistry

Description: Returns the country code of an investor based on their wallet address.


identityStorage

Source: IIdentityRegistry

Description: Returns the Identity Registry Storage linked to the current Identity Registry.


issuersRegistry

Source: IIdentityRegistry

Description: Returns the Trusted Issuers Registry linked to the current Identity Registry.


topicsRegistry

Source: IIdentityRegistry

Description: Returns the Claim Topics Registry linked to the current Identity Registry.

event ClaimTopicsRegistrySet(address indexed claimTopicsRegistry);
event IdentityStorageSet(address indexed identityStorage);
event TrustedIssuersRegistrySet(address indexed trustedIssuersRegistry);
event IdentityRegistered(address indexed investorAddress, IIdentity indexed identity);
event IdentityRemoved(address indexed investorAddress, IIdentity indexed identity);
event IdentityUpdated(IIdentity indexed oldIdentity, IIdentity indexed newIdentity);
event CountryUpdated(address indexed investorAddress, uint16 indexed country);
function registerIdentity(
    address _userAddress,
    IIdentity _identity,
    uint16 _country
) external;
function deleteIdentity(address _userAddress) external;
function setIdentityRegistryStorage(address _identityRegistryStorage) external;
function setClaimTopicsRegistry(address _claimTopicsRegistry) external;
function setTrustedIssuersRegistry(address _trustedIssuersRegistry) external;
function updateCountry(address _userAddress, uint16 _country) external;
function updateIdentity(address _userAddress, IIdentity _identity) external;
function batchRegisterIdentity(
    address[] calldata _userAddresses,
    IIdentity[] calldata _identities,
    uint16[] calldata _countries
) external;
function contains(address _userAddress) external view returns (bool);
function isVerified(address _userAddress) external view returns (bool);
function identity(address _userAddress) external view returns (IIdentity);
function investorCountry(address _userAddress) external view returns (uint16);
function identityStorage() external view returns (IIdentityRegistryStorage);
function issuersRegistry() external view returns (ITrustedIssuersRegistry);
function topicsRegistry() external view returns (IClaimTopicsRegistry);