ITokenController

Git Source

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

NameTypeDescription
_owneraddressThe address that sent the ether to create tokens

Returns

NameTypeDescription
<none>boolTrue 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

NameTypeDescription
_fromaddressThe origin of the transfer
_toaddressThe destination of the transfer
_amountuint256The amount of the transfer

Returns

NameTypeDescription
<none>boolFalse 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

NameTypeDescription
_owneraddressThe address that calls approve()
_spenderaddressThe spender in the approve() call
_amountuint256The amount in the approve() call

Returns

NameTypeDescription
<none>boolFalse if the controller does not authorize the approval