mint
, transfer
, and transferFrom
operations, both before and after execution.
Functions
checksPoliciesERC20TransferBefore
Modifier for checking policies before executing thetransfer
function.
Calls the _checksPoliciesERC20Transfer
function to evaluate policies.
Name | Type | Description |
---|---|---|
to | address | The receiving address. |
value | uint256 | The amount to transfer. |
balanceFrom | uint256 | The sender’s balance before the transfer. |
balanceTo | uint256 | The receiver’s balance before the transfer. |
blockTime | uint256 | The current block timestamp. |
checksPoliciesERC20TransferAfter
Modifier for checking policies after executing thetransfer
function.
Calls the _checksPoliciesERC20Transfer
function to evaluate policies.
Name | Type | Description |
---|---|---|
to | address | The receiving address. |
value | uint256 | The amount to transfer. |
balanceFrom | uint256 | The sender’s balance after the transfer. |
balanceTo | uint256 | The receiver’s balance after the transfer. |
blockTime | uint256 | The current block timestamp. |
checksPoliciesERC20TransferFromBefore
Modifier for checking policies before executing thetransferFrom
function.
Calls the _checksPoliciesERC20TransferFrom
function to evaluate policies.
Name | Type | Description |
---|---|---|
from | address | The sending address. |
to | address | The receiving address. |
value | uint256 | The amount to transfer. |
balanceFrom | uint256 | The sender’s balance before the transfer. |
balanceTo | uint256 | The receiver’s balance before the transfer. |
blockTime | uint256 | The current block timestamp. |
checksPoliciesERC20TransferFromAfter
Modifier for checking policies after executing thetransferFrom
function.
Calls the _checksPoliciesERC20TransferFrom
function to evaluate policies.
Name | Type | Description |
---|---|---|
from | address | The sending address. |
to | address | The receiving address. |
value | uint256 | The amount to transfer. |
balanceFrom | uint256 | The sender’s balance after the transfer. |
balanceTo | uint256 | The receiver’s balance after the transfer. |
blockTime | uint256 | The current block timestamp. |
checksPoliciesERC20MintBefore
Modifier for checking policies before executing themint
function.
Calls the _checksPoliciesERC20Mint
function to evaluate policies.
Name | Type | Description |
---|---|---|
to | address | The receiving address. |
amount | uint256 | The amount to mint. |
balanceFrom | uint256 | The sender’s balance before the mint. |
balanceTo | uint256 | The receiver’s balance before the mint. |
blockTime | uint256 | The current block timestamp. |
checksPoliciesERC20MintAfter
Modifier for checking policies after executing themint
function.
Calls the _checksPoliciesERC20Mint
function to evaluate policies.
Name | Type | Description |
---|---|---|
to | address | The receiving address. |
amount | uint256 | The amount to mint. |
balanceFrom | uint256 | The sender’s balance after the mint. |
balanceTo | uint256 | The receiver’s balance after the mint. |
blockTime | uint256 | The current block timestamp. |
_checksPoliciesERC20Transfer
Calls the Rules Engine to evaluate policies for an ERC20transfer
operation.
Encodes the parameters and invokes the _invokeRulesEngine
function.
Name | Type | Description |
---|---|---|
_to | address | The receiving address. |
_value | uint256 | The amount to transfer. |
_balanceFrom | uint256 | The sender’s balance. |
_balanceTo | uint256 | The receiver’s balance. |
_blockTime | uint256 | The current block timestamp. |
_checksPoliciesERC20TransferFrom
Calls the Rules Engine to evaluate policies for an ERC20transferFrom
operation.
Encodes the parameters and invokes the _invokeRulesEngine
function.
Name | Type | Description |
---|---|---|
_from | address | The sending address. |
_to | address | The receiving address. |
_value | uint256 | The amount to transfer. |
_balanceFrom | uint256 | The sender’s balance. |
_balanceTo | uint256 | The receiver’s balance. |
_blockTime | uint256 | The current block timestamp. |
_checksPoliciesERC20Mint
Calls the Rules Engine to evaluate policies for an ERC20mint
operation.
Encodes the parameters and invokes the _invokeRulesEngine
function.
Name | Type | Description |
---|---|---|
_to | address | The receiving address. |
_amount | uint256 | The amount to mint. |
_balanceFrom | uint256 | The sender’s balance. |
_balanceTo | uint256 | The receiver’s balance. |
_blockTime | uint256 | The current block timestamp. |