src/client/token/handler/ruleContracts
you will see a contract for each existing rule that implements the following four functions: setRuleName, activateRuleName, getRuleNameId, isRuleNameActive (RuleName being replaced by the name of the specific rule instace the file is handling). For our example we’ll be looking at the HandlerTokenMinTxSize.sol
contract which implements the following four functions: setTokenMinTxSizeId
, activateMinTransactionSizeRule
, getTokenMinTxSizeId
, and isTokenMinTxSizeActive
.
The following function uses the ruleId we received when we created the instance of the rule to set the instance in the diamond and activate it for the list of passed in actions:
checkNonTaggedRules
function: