Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.2 KB

File metadata and controls

39 lines (23 loc) · 1.2 KB

Validation Module

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.

API for Ethereum

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

Functions

setRuleEngine(address)

Signature:
    function setRuleEngine(address ruleEngine)
    public
Description:

Set the optional rule engine to the given address. Only authorized users are allowed to call this function.

Events

RuleEngineSet(address)

Signature:
    event RuleEngineSet (address indexed newRuleEngine)
Description:

Emitted when the rule engine is set to newRuleEngine.