Git Source

Author: @ShaneDuncan602 @oscarsernarosero @TJ-Everett

This interface provides the ABI for assets to access their handlers in an efficient way

Functions

checkAllRules

This function is the one called from the contract that implements this handler. It’s the entry point to protocol.

function checkAllRules(
    uint256 balanceFrom,
    uint256 balanceTo,
    address _from,
    address _to,
    address _sender,
    uint256 value
) external returns (bool);

Parameters

NameTypeDescription
balanceFromuint256token balance of sender address
balanceTouint256token balance of recipient address
_fromaddresssender address
_toaddressrecipient address
_senderaddressthe address triggering the contract action
valueuint256for ERC20s: the amount of tokens. For ERC721: the tokenId

Returns

NameTypeDescription
<none>boolSuccess equals true if all checks pass