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
  • Benefits of the T-REX Factory
  • Key Features of the T-REX Factory
  • How the T-REX Factory Works
Export as PDF
  1. Smart contracts library

Tokens Factory

The T-REX Factory is a pivotal smart contract in the T-REX protocol, deployed at the same address on every EVM-compatible chain where the ERC-3643 association has implemented the protocol. It enables users to deploy the entire T-REX suite (Token, Identity Registry, Identity Registry Storage, Claim Topics Registry, Trusted Issuers Registry, and Compliance) in a single transaction, streamlining the setup process and ensuring consistency across multiple blockchains.

Benefits of the T-REX Factory

  1. Efficiency and Consistency:

    • The single transaction deployment process ensures that all components of the T-REX suite are deployed consistently and efficiently. This reduces the complexity and potential errors associated with manual deployments.

  2. Future-Proof Design:

    • The use of upgradeable proxies ensures that deployed contracts can be updated without needing redeployment. This future-proof design allows the T-REX protocol to adapt to new standards and requirements seamlessly.

  3. Enhanced Interoperability:

    • The cross-chain consistency provided by the T-REX Factory enhances the interoperability of the T-REX ecosystem. It ensures that claims and credentials can be used across different networks, reducing the need for redundant verification processes.

Key Features of the T-REX Factory

  1. Single Transaction Deployment:

    • The T-REX Factory allows the deployment of the entire T-REX suite in one transaction. This includes the Token, Identity Registry (IR), Identity Registry Storage (IRS), Claim Topics Registry (CTR), Trusted Issuers Registry (TIR), and Compliance contracts.

  2. Predefined Settings:

    • Users can predefine a wide range of settings in the deployment transaction, including defining agents for the Token and IR, required claim topics, trusted issuers, and more. This feature ensures that all necessary configurations are set up during deployment.

  3. Reuse of Existing IRS:

    • The T-REX Factory can reuse an existing IRS if it needs to be shared with other tokens. If not, it will create a new IRS. This flexibility allows for efficient use of resources and better integration with existing infrastructure.

  4. Upgradeable Proxies:

    • All contracts deployed by the T-REX Factory are implemented as upgradeable proxies (beacon proxies). This design ensures that contracts can be updated without requiring redeployment, providing a future-proof solution.

  5. Cross-Chain Consistency:

    • Using the CREATE2 opcode, the T-REX Factory ensures that contracts can be deployed at the same address across different EVM chains. This consistency is crucial for cross-chain interoperability and seamless integration.

  6. Linked to IdFactory:

    • The T-REX Factory is linked to the IdFactory, which it uses to deploy ONCHAINID contracts. When deploying a T-REX suite, the factory generates an AssetID (the onchain identity of the tokenized asset), ensuring that each tokenized asset has a unique and verifiable identity.

How the T-REX Factory Works

  1. Deployment Process:

    • The T-REX Factory deploys a new T-REX token and sets all the parameters as required. It handles the deployment of the Token, IR, IRS (if not provided), CTR, TIR, and Compliance contracts, setting owners, agents, required claims, and trusted issuers in a single transaction.

  2. Predefined Configurations:

    • During deployment, users can define various settings such as token details, agents, compliance modules, and claim details. This comprehensive setup ensures that the deployed contracts are fully configured and ready for use.

  3. Cross-Chain Deployment:

    • By leveraging the CREATE2 opcode, the T-REX Factory deploys contracts at predetermined addresses, ensuring that the same address can be used across different EVM chains. This feature supports the seamless use of claims and credentials across multiple networks.

  4. Integration with Other Components:

    • The T-REX Factory integrates with the IdFactory to deploy ONCHAINIDs, generating unique identities for tokenized assets. It also interacts with implementation authority contracts to ensure that the correct contract versions are used.

PreviousCompliance InterfaceNextT-REX Factory Interface

Last updated 4 months ago