ERC721TaggedRuleFacet.sol
ERC721TaggedRuleFacet
Inherits: HandlerAccountMinMaxTokenBalance, HandlerUtils, AppAdministratorOrOwnerOnlyDiamondVersion
Functions
checkTaggedAndTradingRules
This function uses the protocol’s ruleProcessor to perform the actual tagged rule checks.
Parameters
Name | Type | Description |
---|---|---|
_balanceFrom | uint256 | token balance of sender address |
_balanceTo | uint256 | token balance of recipient address |
_from | address | address of the from account |
_to | address | address of the to account |
_sender | address | address of the caller |
_amount | uint256 | number of tokens transferred |
action | ActionTypes | if selling or buying (of ActionTypes type) |
_checkTaggedIndividualRules
This function consolidates all the tagged rules that utilize account tags plus all trading rules.
Parameters
Name | Type | Description |
---|---|---|
_balanceFrom | uint256 | token balance of sender address |
_balanceTo | uint256 | token balance of recipient address |
_from | address | address of the from account |
_to | address | address of the to account |
_sender | address | address of the caller |
_amount | uint256 | number of tokens transferred |
action | ActionTypes | if selling or buying (of ActionTypes type) |