The TuringM-EIP2535 is an EIP-2535 base smart contract framework that currently includes TuringMarketApp and TokenUnlockerApp contracts.
The TuringMarketApp is an exchange protocol that facilitates atomic swaps between Conditional ERC1155 NFT Token assets and an ERC20 collateral asset.
It is intended to be used in a hybrid-decentralized exchange model wherein there is an operator that provides offchain matching services while settlement happens on-chain, non-custodially.
The TokenUnlockerApp is a contract that provide users to invest/refund, stake/unstake, vote for proposal for our TuringM DAO.
This project introduces the core smart contracts for the TuringMarket and TokenUnlocker applications, built on the EIP-2535 diamond standard. The contracts include:
- Diamond proxy and facet infrastructure
- Core functionality facets (AccessControl, ERC1155, EIP712, Pausable, etc.)
- TuringMarketApp with order matching, market management, and admin features
- TokenUnlockerApp with staking, voting, vault management, and token distribution
The implementation follows best practices for upgradeable contracts and includes comprehensive storage layouts, interfaces, and base contracts to support the diamond pattern. Key features include:
- Role-based access control
- EIP-712 signed messages
- Pausable functionality
- ERC1155 token standard support
- Custom token transfer quote management
- Diamond loupe and cut functionality
The contracts are designed to be modular, upgradeable, and gas-efficient while maintaining security through extensive use of modifiers, reentrancy guards, and delegate call protections.
These contracts have been audited by QuillAudits and the report is available here.
| Contract | Address |
|---|---|
| TokenUnlockerApp | 0x497459342607061E1F2F95984D605a20D4DB3731 |
| TuringToken | 0x8604AA227A00F48CCa7b096eF8853d0F6d3325F3 |
| TuringMarketApp | 0x2a4d11972e2146bBb18572C886c8EFb776651544 |
- Website: https://TuringM.IO/
- White Paper && Docs:
- English: https://docs-en.turingm.io/
- Chinese: https://docs-zh.turingm.io/
- Insights: https://insights.turingmarket.cc/
- X: https://twitter.com/turingmarket
- Product Demo Video: https://youtu.be/ni6MiigAUMg