Transfer Manager module to automate blacklist and restrict transfers (BlacklistTransferManager.sol)

View Source: contracts/modules/TransferManager/BTM/BlacklistTransferManager.sol

↗ Extends: BlacklistTransferManagerStorage, TransferManager

BlacklistTransferManager

Events

event AddBlacklistType(uint256  _startTime, uint256  _endTime, bytes32  _blacklistName, uint256  _repeatPeriodTime);
event ModifyBlacklistType(uint256  _startTime, uint256  _endTime, bytes32  _blacklistName, uint256  _repeatPeriodTime);
event DeleteBlacklistType(bytes32  _blacklistName);
event AddInvestorToBlacklist(address indexed _investor, bytes32  _blacklistName);
event DeleteInvestorFromBlacklist(address indexed _investor, bytes32  _blacklistName);

Functions

Constructor

Arguments

Name

Type

Description

_securityToken

address

Address of the security token

_polyAddress

address

Address of the polytoken

getInitFunction

⤾ overrides IModule.getInitFunction

This function returns the signature of configure function

Arguments

Name

Type

Description

executeTransfer

⤾ overrides ITransferManager.executeTransfer

Used to verify the transfer transaction

Arguments

Name

Type

Description

_from

address

Address of the sender

address

_from Address of the sender

uint256

_from Address of the sender

bytes

_from Address of the sender

verifyTransfer

⤾ overrides ITransferManager.verifyTransfer

Used to verify the transfer transaction (View)

Arguments

Name

Type

Description

_from

address

Address of the sender

address

_from Address of the sender

uint256

_from Address of the sender

bytes

_from Address of the sender

_verifyTransfer

Arguments

Name

Type

Description

_from

address

addBlacklistType

Used to add the blacklist type

Arguments

Name

Type

Description

_startTime

uint256

Start date of the blacklist type

_endTime

uint256

End date of the blacklist type

_blacklistName

bytes32

Name of the blacklist type

_repeatPeriodTime

uint256

Repeat period of the blacklist type in days

_addBlacklistType

Arguments

Name

Type

Description

_startTime

uint256

_endTime

uint256

_blacklistName

bytes32

_repeatPeriodTime

uint256

_addBlacklistTypeDetails

Arguments

Name

Type

Description

_startTime

uint256

_endTime

uint256

_blacklistName

bytes32

_repeatPeriodTime

uint256

addBlacklistTypeMulti

Used to add the multiple blacklist type

Arguments

Name

Type

Description

_startTimes

uint256[]

Start date of the blacklist type

_endTimes

uint256[]

End date of the blacklist type

_blacklistNames

bytes32[]

Name of the blacklist type

_repeatPeriodTimes

uint256[]

Repeat period of the blacklist type

modifyBlacklistType

Used to modify the details of a given blacklist type

Arguments

Name

Type

Description

_startTime

uint256

Start date of the blacklist type

_endTime

uint256

End date of the blacklist type

_blacklistName

bytes32

Name of the blacklist type

_repeatPeriodTime

uint256

Repeat period of the blacklist type

_modifyBlacklistType

Arguments

Name

Type

Description

_startTime

uint256

_endTime

uint256

_blacklistName

bytes32

_repeatPeriodTime

uint256

modifyBlacklistTypeMulti

Used to modify the details of a given multpile blacklist types

Arguments

Name

Type

Description

_startTimes

uint256[]

Start date of the blacklist type

_endTimes

uint256[]

End date of the blacklist type

_blacklistNames

bytes32[]

Name of the blacklist type

_repeatPeriodTimes

uint256[]

Repeat period of the blacklist type

deleteBlacklistType

Used to delete the blacklist type

Arguments

Name

Type

Description

_blacklistName

bytes32

Name of the blacklist type

_deleteBlacklistType

Arguments

Name

Type

Description

_blacklistName

bytes32

deleteBlacklistTypeMulti

Used to delete the multiple blacklist type

Arguments

Name

Type

Description

_blacklistNames

bytes32[]

Name of the blacklist type

addInvestorToBlacklist

Used to assign the blacklist type to the investor

Arguments

Name

Type

Description

_investor

address

Address of the investor

_blacklistName

bytes32

Name of the blacklist

_addInvestorToBlacklist

Arguments

Name

Type

Description

_investor

address

_blacklistName

bytes32

addInvestorToBlacklistMulti

Used to assign the blacklist type to the multiple investor

Arguments

Name

Type

Description

_investors

address[]

Address of the investor

_blacklistName

bytes32

Name of the blacklist

addMultiInvestorToBlacklistMulti

Used to assign the multiple blacklist type to the multiple investor

Arguments

Name

Type

Description

_investors

address[]

Address of the investor

_blacklistNames

bytes32[]

Name of the blacklist

addInvestorToNewBlacklist

Used to assign the new blacklist type to the investor

Arguments

Name

Type

Description

_startTime

uint256

Start date of the blacklist type

_endTime

uint256

End date of the blacklist type

_blacklistName

bytes32

Name of the blacklist type

_repeatPeriodTime

uint256

Repeat period of the blacklist type

_investor

address

Address of the investor

deleteInvestorFromBlacklist

Used to delete the investor from the blacklist

Arguments

Name

Type

Description

_investor

address

Address of the investor

_blacklistName

bytes32

Name of the blacklist

_deleteInvestorFromBlacklist

Used to delete the investor from the blacklist

Arguments

Name

Type

Description

_investor

address

Address of the investor

_blacklistName

bytes32

Name of the blacklist

deleteInvestorFromAllBlacklist

Used to delete the investor from all the associated blacklist types

Arguments

Name

Type

Description

_investor

address

Address of the investor

_deleteInvestorFromAllBlacklist

Used to delete the investor from all the associated blacklist types

Arguments

Name

Type

Description

_investor

address

Address of the investor

deleteInvestorFromAllBlacklistMulti

Used to delete the multiple investor from all the associated blacklist types

Arguments

Name

Type

Description

_investor

address[]

Address of the investor

deleteMultiInvestorsFromBlacklistMulti

Used to delete the multiple investor from the blacklist

Arguments

Name

Type

Description

_investors

address[]

address of the investor

_blacklistNames

bytes32[]

name of the blacklist

_validParams

Internal function

Arguments

Name

Type

Description

_startTime

uint256

_endTime

uint256

_blacklistName

bytes32

_repeatPeriodTime

uint256

getListOfAddresses

get the list of the investors of a blacklist type

Returns

address List of investors associated with the blacklist

Arguments

Name

Type

Description

_blacklistName

bytes32

Name of the blacklist type

getBlacklistNamesToUser

get the list of the investors of a blacklist type

Returns

bytes32 List of blacklist names associated with the given address

Arguments

Name

Type

Description

_user

address

Address of the user

getAllBlacklists

get the list of blacklist names

Returns

bytes32 Array of blacklist names

Arguments

Name

Type

Description

getTokensByPartition

⤾ overrides TransferManager.getTokensByPartition

return the amount of tokens for a given user as per the partition

Arguments

Name

Type

Description

_partition

bytes32

Identifier

_tokenHolder

address

Whom token amount need to query

_additionalBalance

uint256

It is the _value that transfer during transfer/transferFrom function call

getPermissions

⤾ overrides IModule.getPermissions

Return the permissions flag that are associated with blacklist transfer manager

Arguments

Name

Type

Description

Last updated

Was this helpful?