View Source: contracts/mocks/MockRedemptionManager.sol
↗ Extends: TrackedRedemption
MockRedemptionManager
Constants & Variables
mapping(address => uint256) internal tokenToRedeem;mapping(address => mapping(bytes32 => uint256)) internal redeemedTokensByPartition;
Events
event RedeemedTokenByOwner(address _investor, address _byWhoom, uint256 _value);event RedeemedTokensByPartition(address indexed _investor, address indexed _operator, bytes32 _partition, uint256 _value, bytes _data, bytes _operatorData);
Constructor
function (address _securityToken, address _polyToken) public nonpayable TrackedRedemption
Arguments
Name | Type | Description |
_securityToken | address | Address of the security token |
_polyToken | address | |
Transfers tokens to Module to burn
function transferToRedeem(uint256 _value) public nonpayable
Arguments
Name | Type | Description |
_value | uint256 | The number of tokens to redeem |
Used to redeem tokens by the module
function redeemTokenByOwner(uint256 _value) public nonpayable
Arguments
Name | Type | Description |
_value | uint256 | The number of tokens to redeem |
To redeem tokens and track redemptions
function redeemTokensByPartition(uint256 _value, bytes32 _partition, bytes _data) external nonpayable
Arguments
Name | Type | Description |
_value | uint256 | The number of tokens to redeem |
_partition | bytes32 | Partition from which balance will be deducted |
_data | bytes | Extra data parmeter pass to do some offchain operation |
To redeem tokens and track redemptions
function operatorRedeemTokensByPartition(uint256 _value, bytes32 _partition, bytes _data, bytes _operatorData) external nonpayable
Arguments
Name | Type | Description |
_value | uint256 | The number of tokens to redeem |
_partition | bytes32 | Partition from which balance will be deducted |
_data | bytes | Extra data parmeter pass to do some offchain operation |
_operatorData | bytes | Data to log the operator call |
function operatorTransferToRedeem(uint256 _value, bytes32 _partition, bytes _data, bytes _operatorData) external nonpayable
Arguments
Name | Type | Description |
_value | uint256 | |
_partition | bytes32 | |
_data | bytes | |
_operatorData | bytes | |