Transfer Manager module for manually approving transactions between accounts (ManualApprovalTransfer

View Source: contracts/modules/TransferManager/MATM/ManualApprovalTransferManager.sol

↗ Extends: ManualApprovalTransferManagerStorage, TransferManager

ManualApprovalTransferManager

Events

event AddManualApproval(address indexed _from, address indexed _to, uint256  _allowance, uint256  _expiryTime, bytes32  _description, address indexed _addedBy);
event ModifyManualApproval(address indexed _from, address indexed _to, uint256  _expiryTime, uint256  _allowance, bytes32  _description, address indexed _editedBy);
event RevokeManualApproval(address indexed _from, address indexed _to, address indexed _addedBy);

Functions

Constructor

function (address _securityToken, address _polyToken) public nonpayable Module

Arguments

getInitFunction

⤾ overrides IModule.getInitFunction

This function returns the signature of configure function

function getInitFunction() public pure
returns(bytes4)

Arguments

executeTransfer

⤾ overrides ITransferManager.executeTransfer

Used to verify the transfer transaction and allow a manually approved transqaction to bypass other restrictions

function executeTransfer(address _from, address _to, uint256 _amount, bytes ) external nonpayable onlySecurityToken 
returns(enum ITransferManager.Result)

Arguments

verifyTransfer

⤾ overrides ITransferManager.verifyTransfer

Used to verify the transfer transaction and allow a manually approved transqaction to bypass other restrictions

function verifyTransfer(address _from, address _to, uint256 _amount, bytes ) public view
returns(enum ITransferManager.Result, bytes32)

Arguments

_verifyTransfer

function _verifyTransfer(address _from, address _to, uint256 _amount) internal view
returns(enum ITransferManager.Result, bytes32)

Arguments

addManualApproval

Adds a pair of addresses to manual approvals

function addManualApproval(address _from, address _to, uint256 _allowance, uint256 _expiryTime, bytes32 _description) external nonpayable withPerm

Arguments

_addManualApproval

function _addManualApproval(address _from, address _to, uint256 _allowance, uint256 _expiryTime, bytes32 _description) internal nonpayable

Arguments

addManualApprovalMulti

Adds mutiple manual approvals in batch

function addManualApprovalMulti(address[] _from, address[] _to, uint256[] _allowances, uint256[] _expiryTimes, bytes32[] _descriptions) public nonpayable withPerm

Arguments

modifyManualApproval

Modify the existing manual approvals

function modifyManualApproval(address _from, address _to, uint256 _expiryTime, uint256 _changeInAllowance, bytes32 _description, bool _increase) external nonpayable withPerm

Arguments

or any value when there is no change in allowances |

_modifyManualApproval

function _modifyManualApproval(address _from, address _to, uint256 _expiryTime, uint256 _changeInAllowance, bytes32 _description, bool _increase) internal nonpayable

Arguments

modifyManualApprovalMulti

Adds mutiple manual approvals in batch

function modifyManualApprovalMulti(address[] _from, address[] _to, uint256[] _expiryTimes, uint256[] _changeInAllowance, bytes32[] _descriptions, bool[] _increase) public nonpayable withPerm

Arguments

or any value when there is no change in allowances |

revokeManualApproval

Removes a pairs of addresses from manual approvals

function revokeManualApproval(address _from, address _to) external nonpayable withPerm

Arguments

_revokeManualApproval

function _revokeManualApproval(address _from, address _to) internal nonpayable

Arguments

revokeManualApprovalMulti

Removes mutiple pairs of addresses from manual approvals

function revokeManualApprovalMulti(address[] _from, address[] _to) external nonpayable withPerm

Arguments

_checkInputLengthArray

function _checkInputLengthArray(address[] _from, address[] _to, uint256[] _expiryTimes, uint256[] _allowances, bytes32[] _descriptions) internal pure

Arguments

getActiveApprovalsToUser

Returns the all active approvals corresponds to an address

function getActiveApprovalsToUser(address _user) external view
returns(address[], address[], uint256[], uint256[], uint256[], bytes32[])

Returns

address[] addresses from

Arguments

need to return |

getApprovalDetails

Get the details of the approval corresponds to _from & _to addresses

function getApprovalDetails(address _from, address _to) external view
returns(uint256, uint256, uint256, bytes32)

Returns

uint256 expiryTime of the approval

Arguments

getTotalApprovalsLength

Returns the current number of active approvals

function getTotalApprovalsLength() external view
returns(uint256)

Arguments

getAllApprovals

Get the details of all approvals

function getAllApprovals() external view
returns(address[], address[], uint256[], uint256[], uint256[], bytes32[])

Returns

address[] addresses from

Arguments

getPermissions

⤾ overrides IModule.getPermissions

Returns the permissions flag that are associated with ManualApproval transfer manager

function getPermissions() public view
returns(bytes32[])

Arguments

Last updated