ERC3643
GithubWhitepaperERC3643 Association
  • Overview of the Protocol
    • ERC-3643 Permissioned Tokens
    • Built-in Compliance Framework
      • Onchain identities management
      • Modular Compliance add-ons
    • Interoperability & Standards
  • Smart contracts library
    • Permissioned Tokens
      • Tokens Interface
    • Onchain identities
      • ONCHAINID Interface
      • Identity Registry
        • Identity Registry Interface
      • Identity Registry Storage
        • Identity Registry Storage Interface
      • Trusted Issuers Registry
        • Trusted Issuers Registry Interface
      • Claim Topics Registry
        • Claim Topics Registry Interface
    • Compliance management
      • Compliance Interface
    • Tokens Factory
      • T-REX Factory Interface
      • Tokens Gateway
        • T-REX Gateway Interface
      • Official Factories & Gateways
    • Proxies
  • Resources & Community
    • Get Involved
Powered by GitBook
LogoLogo

ERC3643 ASBL - 2024 - contact@erc3643.org

On this page
Export as PDF
  1. Smart contracts library
  2. Onchain identities
  3. Identity Registry Storage

Identity Registry Storage Interface

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

IdentityStored

Event

Description: Emitted when an identity is registered into the storage contract.

event IdentityStored(address indexed investorAddress, IIdentity indexed identity);

IdentityUnstored

Event

Description: Emitted when an identity is removed from the storage contract.

event IdentityUnstored(address indexed investorAddress, IIdentity indexed identity);

IdentityModified

Event

Description: Emitted when an identity has been updated in the storage contract.

event IdentityModified(IIdentity indexed oldIdentity, IIdentity indexed newIdentity);

CountryModified

Event

Description: Emitted when an identity's country has been updated in the storage contract.

event CountryModified(address indexed investorAddress, uint16 indexed country);

IdentityRegistryBound

Event

Description: Emitted when an Identity Registry is bound to the storage contract.

event IdentityRegistryBound(address indexed identityRegistry);

IdentityRegistryUnbound

Event

Description: Emitted when an Identity Registry is unbound from the storage contract.

event IdentityRegistryUnbound(address indexed identityRegistry);

addIdentityToStorage

Source: IIdentityRegistryStorage

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

function addIdentityToStorage(
    address _userAddress,
    IIdentity _identity,
    uint16 _country
) external;

removeIdentityFromStorage

Source: IIdentityRegistryStorage

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

function removeIdentityFromStorage(address _userAddress) external;

modifyStoredInvestorCountry

Source: IIdentityRegistryStorage

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

function modifyStoredInvestorCountry(address _userAddress, uint16 _country) external;

modifyStoredIdentity

Source: IIdentityRegistryStorage

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

function modifyStoredIdentity(address _userAddress, IIdentity _identity) external;

bindIdentityRegistry

Source: IIdentityRegistryStorage

Description: Adds an identity registry as an agent of the Identity Registry Storage Contract. Only callable by the owner of the contract.

function bindIdentityRegistry(address _identityRegistry) external;

unbindIdentityRegistry

Source: IIdentityRegistryStorage

Description: Removes an identity registry from being an agent of the Identity Registry Storage Contract. Only callable by the owner of the contract.

function unbindIdentityRegistry(address _identityRegistry) external;

linkedIdentityRegistries

Source: IIdentityRegistryStorage

Description: Returns the identity registries linked to the storage contract.

function linkedIdentityRegistries() external view returns (address[] memory);

storedIdentity

Source: IIdentityRegistryStorage

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

function storedIdentity(address _userAddress) external view returns (IIdentity);

storedInvestorCountry

Source: IIdentityRegistryStorage

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

function storedInvestorCountry(address _userAddress) external view returns (uint16);

PreviousIdentity Registry StorageNextTrusted Issuers Registry

Last updated 11 months ago