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.
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.
Two repositories. One clone runs everything.
T-REX pulls ONCHAINID in as a dependency, so the T-REX repository alone runs a complete suite.
- T-REX-Network/T-REX
The token suite, the compliance and its modules, the factory and the cross-chain endpoint.
- Version
- 5.0.0
- Branch
- develop
- Package
- @t-rex-network/t-rex
- Licence
- GPL-3.0
- T-REX-Network/ONCHAINID
The identity layer: the identity account, its factory, the validator, recovery, reputation and the EAS adapter.
- Version
- 3.0.0
- Branch
- develop
- Licence
- GPL-3.0
- Solidity package
Sources in
contracts/, ABIs and bytecode inout/.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
TREXFactory.deployTREXSuite(salt, tokenDetails, claimDetails)- TokenThe ERC-3643 registerBeacon proxy · CREATE3
- TREXRegistryEligibility: claim topics, trusted issuersBeacon proxy · CREATE3
- IdentityRegistryStorageRegistrations, shareableBeacon proxy · CREATE3
- ModularComplianceRules and positionsBeacon proxy · CREATE3
- TREXAccessManagerRoles, unless one is suppliedBeacon proxy · CREATE3
- ONCHAINIDType ASSET, unless one is suppliedIdentity beacon · CREATE3
Both codebases, audited by OpenZeppelin.
28 Sep to 16 Oct 2026Read the reportONCHAINID3.0.0Report published36/39findings resolvedThe critical and both highs resolved.
27 Jul to 7 Aug 2026Read the reportAlso 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
Start from what you are building.
| You build | Start with | Then |
|---|---|---|
| Anything, first | Quickstart | Protocol at a glance |
| A wallet or a custodian | Integrate a wallet or a custodian | 10Transfer between investors |
| A venue or an application | Integrate a venue or an application | 26Authorize spenders |
| A Claim Issuer | Integrate as a Claim Issuer | 05Issue a claim to an investor |
| A compliance module | Write a compliance module | Compliance modules reference |
| A messaging gateway | Build an ERC-7786 gateway adapter | Messaging providers |
| A new satellite chain | Implement T-REX Lite on a new chain | T-REX Lite |
| An indexer or data team | Indexing: events and supply accounting | Deployments |
| A front end | Pre-flight checks with UtilityChecker | UtilityChecker reference |
36 guides. One operation each.
Who performs it, the calls in order, what the contracts check, and every way it can fail.
- 01Deploy a token suite
- 25Commission a suite and grant roles
- 03Configure required claim topics
- 04Add a trusted Claim Issuer
- 20Remove a trusted Claim Issuer
- 11Add a compliance rule
- 12Remove a compliance rule
- 26Authorize spenders
- 27Upgrade a suite
Listed in the order they are performed. Each number is permanent, so “guide 14” means the same operation in every version of the docs.
The contract reference.
Every function, its access, what it checks and how it reverts.
Token suite 12
Identity suite 8
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.
TREXFactoryTREXImplementationAuthorityTrustedGatewayRegistryUtilityCheckerIdentityFactoryERC734ValidatorKeyApprovalModuleRecoveryModuleReputationRegistryEASClaimIssuer
No public testnet is listed either. From a token, every other address of its suite is read onchain: Token.identityRegistry(), Token.compliance().