Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 1.08 KB

RuleWhitelistWrapper.md

File metadata and controls

32 lines (17 loc) · 1.08 KB

Rule Whitelist Wrapper

[TOC]

This rule allows to have several different whitelist rules, managed by different operators.

The rule will call each whitelist rule to know if during a transfer the address fromor the address tois in the whitelist. If this is the case, the rule return 0 (transfer valid) or an error otherwise.

Schema

Architecture

ruleWhitelistWrapper.drawio

Graph

surya_graph_Whitelist

Inheritance

surya_inheritance_RuleWhitelistWrapper.sol

Details

Architecture

This rule inherits from RuleEngineValidationCommon. Thus the whitelist rules are managed with the same architecture and code than for the ruleEngine. For example, rules are added with the functions setRulesValidation or addRuleValidation.

Admin

The default admin is the address put in argument(admin) inside the constructor. It is set in the constructor when the contract is deployed.