View Source: contracts/modules/TransferManager/CTM/CountTransferManager.solโ
โ Extends: CountTransferManagerStorage, TransferManager โ Derived Contracts: MockCountTransferManagerโ
CountTransferManager
Events
event ModifyHolderCount(uint256 _oldHolderCount, uint256 _newHolderCount);
โgetInitFunction()โ
โgetPermissions()โ
Constructor
function (address _securityToken, address _polyToken) public nonpayable Module
Arguments
Name | Type | Description |
_securityToken | address | Address of the security token |
_polyToken | address | โ |
โคพ overrides ITransferManager.executeTransferโ
Used to verify the transfer transaction and prevent a transfer if it passes the allowed amount of token holders
function executeTransfer(address _from, address _to, uint256 _amount, bytes ) external nonpayablereturns(enum ITransferManager.Result)
Arguments
Name | Type | Description |
_from | address | Address of the sender |
_to | address | Address of the receiver |
_amount | uint256 | Amount to send |
โ | bytes | _from Address of the sender |
โคพ overrides ITransferManager.verifyTransferโ
Used to verify the transfer transaction and prevent a transfer if it passes the allowed amount of token holders
function verifyTransfer(address _from, address _to, uint256 _amount, bytes ) public viewreturns(enum ITransferManager.Result, bytes32)
Arguments
Name | Type | Description |
_from | address | Address of the sender |
_to | address | Address of the receiver |
_amount | uint256 | Amount to send |
โ | bytes | _from Address of the sender |
function _verifyTransfer(address _from, address _to, uint256 _amount, uint256 _holderCount) internal viewreturns(enum ITransferManager.Result, bytes32)
Arguments
Name | Type | Description |
_from | address | โ |
_to | address | โ |
_amount | uint256 | โ |
_holderCount | uint256 | โ |
Used to initialize the variables of the contract
function configure(uint256 _maxHolderCount) public nonpayable onlyFactory
Arguments
Name | Type | Description |
_maxHolderCount | uint256 | Maximum no. of holders this module allows the SecurityToken to have |
Sets the cap for the amount of token holders there can be
function changeHolderCount(uint256 _maxHolderCount) public nonpayable withPerm
Arguments
Name | Type | Description |
_maxHolderCount | uint256 | is the new maximum amount of token holders |
โคพ overrides IModule.getInitFunctionโ
This function returns the signature of configure function
function getInitFunction() public purereturns(bytes4)
Arguments
Name | Type | Description |
โคพ overrides IModule.getPermissionsโ
Returns the permissions flag that are associated with CountTransferManager
function getPermissions() public viewreturns(bytes32[])
Arguments
Name | Type | Description |