claudedwithlove
explore/ruleengine

RuleEngine

Cherished

A Solidity-based rule engine that enforces transfer restrictions on ERC-3643 compliant tokens and CMTAT, supporting multiple access control patterns and role-based rule execution. It enables token issuers to apply granular compliance rules through an external contract that validates transfers without modifying the token contract itself. The engine supports both role-based and ownership-based control models, with optional gasless transactions via ERC-2771.

C
by CMTA
·0··submitted April 16, 2026
View on GitHub
Clauded With Love Rating
7.3 / 10

RuleEngine is a Solidity-based external contract system that enforces transfer restrictions on ERC-3643 and CMTAT tokens through customizable rules without modifying the token contracts themselves. It provides three deployment variants with different access control patterns (RBAC, Ownable, Ownable2Step) and supports ERC-2771 gasless transactions.

Code Quality7.5
Usefulness8.5
Claude Usage6.0
Documentation7.0
Originality7.5
Highlights
  • Clean architectural separation with three well-designed access control variants that cater to different governance models
  • Comprehensive support for multiple token standards (ERC-3643, CMTAT) with proper ERC-1404 transfer restriction implementation
  • Strong modularity allowing reusable rule engine across multiple tokens with clear warnings about multi-tenant security considerations
To Improve
  • Add concrete code examples and deployment scripts to demonstrate integration with CMTAT/ERC-3643 tokens
  • Include comprehensive test coverage documentation and provide audit recommendations given the financial nature of token transfer restrictions
Language