How tokenysolutions/t-rex works
Project Type and Purpose
• This is a Solidity-based smart-contract suite (no traditional frontend) implementing the ERC-3643 “T-REX” protocol for security tokens on Ethereum.
• Purpose: enable issuance, management, compliance checks, and regulated transfers of security tokens via on-chain modules (registries, compliance logic, role/permissioning, proxy/factory patterns).
File Structure Analysis
• Top-level configs and scripts:
• hardhat.config.ts, tsconfig.json, package.json, .github/workflows, scripts/flatten.js → build/test/deploy pipelines
• contracts/ directory (the core):
• DVA, DVD (token variants)
• _testContracts for versioned/development testing
• compliance/legacy & compliance/modular (multiple compliance modules)
• factory (deploy new tokens)
• proxy (upgradeable pattern: authority & interface)
• registry (trusted issuers, claim topics, identity registries: interface, implementation, storage)
• roles (permissioning via owner/agent)
• token (ERC-3643 token implementation & extensions)
• test/ covers unit/integration via hardhat; docs/ holds whitepaper and images
README Insights
• Lists six main on-chain components:
1. ONCHAINID (external identity contract)
2. Trusted Issuers Registry
3. Claim Topics Registry
4. Identity Registry
5. Compliance Smart Contract(s)
6. Security Token Contract
• Mentions factory for deployment, proxy for upgradeability, and modular compliance.