Transfer Manager for limiting maximum number of token holders (CountTransferManager.sol)

View Source: contracts/modules/TransferManager/CTM/CountTransferManager.solโ€‹

โ†— Extends: CountTransferManagerStorage, TransferManager โ†˜ Derived Contracts: MockCountTransferManagerโ€‹

CountTransferManager

Events

event ModifyHolderCount(uint256 _oldHolderCount, uint256 _newHolderCount);

Functions

Constructor

function (address _securityToken, address _polyToken) public nonpayable Module

Arguments

Name

Type

Description

_securityToken

address

Address of the security token

_polyToken

address

โ€‹

executeTransfer

โคพ 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 nonpayable
returns(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

verifyTransfer

โคพ 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 view
returns(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

_verifyTransfer

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

Arguments

Name

Type

Description

_from

address

โ€‹

_to

address

โ€‹

_amount

uint256

โ€‹

_holderCount

uint256

โ€‹

configure

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

changeHolderCount

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

getInitFunction

โคพ overrides IModule.getInitFunctionโ€‹

This function returns the signature of configure function

function getInitFunction() public pure
returns(bytes4)

Arguments

Name

Type

Description

getPermissions

โคพ overrides IModule.getPermissionsโ€‹

Returns the permissions flag that are associated with CountTransferManager

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

Arguments

Name

Type

Description