A modern web3 application for deploying ERC-3643 compliant security tokens on Polkadot using Tokeny's T-REX (Tokeny's Regulatory EXchange) framework.
- Multi-Step Deployment Wizard: Guided step-by-step contract deployment process
- Asset Dashboard: View and manage deployed token details and statistics
- Modern UI: Dark theme inspired by DeployPolkadot.xyz with responsive design
- Wallet Integration: Connect with Web3 wallets for contract deployment
- T-REX Framework: Full support for Tokeny's regulatory compliance infrastructure
The application deploys 6 core T-REX contracts in sequence:
- TrustedIssuers Registry - Foundation contract for managing trusted claim issuers
- ClaimTopics Registry - Manages claim topic requirements for compliance
- Identity Storage - Persistent storage for identity verification data
- Identity Registry - Combines all identity management components
- Default Compliance - Simple compliance rules for your token
- Token Contract - Final ERC-3643 compliant token deployment
- Frontend: React 18 + TypeScript + Vite
- Styling: Tailwind CSS + Custom CSS
- Web3: Wagmi + Viem for blockchain interactions
- Blockchain: Polkadot AssetHub (Chain ID: 420420420)
- Framework: T-REX (Tokeny's Regulatory EXchange)
- Node.js 18+
- npm or yarn
- Web3 wallet (MetaMask, Polkadot.js, etc.)
- Clone the repository:
git clone https://github.com/corey-hathaway/trex-demo-dapp.git
cd trex-demo-dapp- Install dependencies:
cd frontend
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run build- Connect Wallet: Use the wallet connection component to link your Web3 wallet
- Deploy Contracts: Navigate to "Deploy Contracts" to start the step-by-step wizard
- Monitor Assets: Use the "Asset Dashboard" to view deployed token details and statistics
- Navigation: Clean top navigation with brand logo and menu items
- Deployment Wizard: Multi-step process with progress tracking
- Dashboard: Asset overview with contract details and statistics
- Responsive Design: Works seamlessly on desktop and mobile devices
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLintnpm run generate- Generate Wagmi contract hooks
frontend/
├── src/
│ ├── components/ # React components
│ │ ├── Dashboard.tsx # Asset dashboard
│ │ ├── DeploymentWizard.tsx # Multi-step deployment
│ │ ├── Navigation.tsx # Top navigation
│ │ └── ... # Deployment components
│ ├── utils/ # Utility functions
│ ├── App.tsx # Main application
│ └── App.css # Global styles
├── T-REX/ # Contract artifacts
└── package.json
This project is licensed under the MIT License.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
For support and questions, please open an issue on GitHub or contact the development team.
Built with ❤️ for the Polkadot ecosystem