ITokenController
The token controller contract must implement these functions. See https://github.com/Giveth/minime/blob/master/contracts/TokenController.sol
Functions
proxyPayment
Called when _owner
sends ether to the MiniMe Token contract
function proxyPayment(address _owner) external payable returns (bool);
Parameters
Name | Type | Description |
---|---|---|
_owner | address | The address that sent the ether to create tokens |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | True if the ether is accepted, false if it throws |
onTransfer
Notifies the controller about a token transfer allowing the controller to react if desired
function onTransfer(address _from, address _to, uint256 _amount) external returns (bool);
Parameters
Name | Type | Description |
---|---|---|
_from | address | The origin of the transfer |
_to | address | The destination of the transfer |
_amount | uint256 | The amount of the transfer |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | False if the controller does not authorize the transfer |
onApprove
Notifies the controller about an approval allowing the controller to react if desired
function onApprove(address _owner, address _spender, uint256 _amount) external returns (bool);
Parameters
Name | Type | Description |
---|---|---|
_owner | address | The address that calls approve() |
_spender | address | The spender in the approve() call |
_amount | uint256 | The amount in the approve() call |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | False if the controller does not authorize the approval |