Everything to build with T-REX, from the first test.

The token suite and the identity layer, documented operation by operation. Clone the repository, run the tests, and write a first test against a complete local suite.

terminal
git clone https://github.com/T-REX-Network/T-REX.git
cd T-REX
git checkout develop
forge soldeer install    # fetch the dependencies
forge build              # compile
forge test               # run the tests
 
# or the same through npm
npm run build            # forge build
npm test                 # forge test --gas-report
npm run coverage         # a coverage summary

Foundry projects on Solidity 0.8.30. Version 5 is on the develop branch.

Source in the docs

Two repositories. One clone runs everything.

T-REX pulls ONCHAINID in as a dependency, so the T-REX repository alone runs a complete suite.

  • Solidity package

    Sources in contracts/, ABIs and bytecode in out/.

    npm add @t-rex-network/t-rexOn npm
  • SDKNot listed in the docs

    None is published today. Use the package’s ABIs with the library you already run.

A complete suite, deployed in one call.

TREXFactory deploys every contract of an asset in one transaction, at addresses derived from a salt.

Caller holds ASSET_DEPLOYER

One transactionTREXFactory.deployTREXSuite(salt, tokenDetails, claimDetails)
  1. TokenThe ERC-3643 registerBeacon proxy · CREATE3
  2. TREXRegistryEligibility: claim topics, trusted issuersBeacon proxy · CREATE3
  3. IdentityRegistryStorageRegistrations, shareableBeacon proxy · CREATE3
  4. ModularComplianceRules and positionsBeacon proxy · CREATE3
  5. TREXAccessManagerRoles, unless one is suppliedBeacon proxy · CREATE3
  6. ONCHAINIDType ASSET, unless one is suppliedIdentity beacon · CREATE3
Suite contracts behind the shared beacons of the TREXImplementationAuthorityFollows the versions the network publishes.

Both codebases, audited by OpenZeppelin.

Also tested six ways

  • Uniteach contract alone
  • Integrationa full suite
  • StandardERC-3643 surface
  • Fuzz and invariantrandom sequences
  • FormalCertora
  • MutationGambit

Found a vulnerability?Write to security@t-rex.network, never in a public issue.What to include

36 guides. One operation each.

Who performs it, the calls in order, what the contracts check, and every way it can fail.

The contract reference.

Every function, its access, what it checks and how it reverts.

Networks and deployments

One reference chain, Ethereum, holds the register and decides every movement. Any number of satellite chains, EVM or not, run a T-REX Lite token and execute what it authorizes.

Network contractsNo address published
  • TREXFactory
  • TREXImplementationAuthority
  • TrustedGatewayRegistry
  • UtilityChecker
  • IdentityFactory
  • ERC734Validator
  • KeyApprovalModule
  • RecoveryModule
  • ReputationRegistry
  • EASClaimIssuer

No public testnet is listed either. From a token, every other address of its suite is read onchain: Token.identityRegistry(), Token.compliance().

Deployments and how to verify them

Tokenization was never the hard part. Making it worth it is.

Tell us what you are building or issuing.