This document defines the Validation Module for the CMTA Token specification. The goal of the Validation Module is to restrict token transferability based on a set of rules applied to the token.
This section describes the Ethereum API of the Validation Module.
The rules are defined using an (optional) rule engine, set using the setRuleEngine method. The RuleEngine implementation is not provided along with this implementation but it has to comply with the interface IRuleEngine. The RuleEgine call rules that must respect the interface IRule
function setRuleEngine(address ruleEngine)
publicSet the optional rule engine to the given address.
Only authorized users are allowed to call this function.
event RuleEngineSet (address indexed newRuleEngine)Emitted when the rule engine is set to newRuleEngine.