PolyTokenFaucet.sol
View Source: contracts/mocks/PolyTokenFaucet.sol
PolyTokenFaucet
Contract Members
Constants & Variables
Events
Functions
Arguments
Name | Type | Description |
getTokens
Arguments
Name | Type | Description |
_amount | uint256 | |
_recipient | address |
transfer
Sends _value
tokens to _to
from msg.sender
Returns
Whether the transfer was successful or not
Arguments
Name | Type | Description |
_to | address | The address of the recipient |
_value | uint256 | The amount of token to be transferred |
transferFrom
sends _value
tokens to _to
from _from
with the condition it is approved by _from
Returns
Whether the transfer was successful or not
Arguments
Name | Type | Description |
_from | address | The address of the sender |
_to | address | The address of the recipient |
_value | uint256 | The amount of token to be transferred |
balanceOf
Returns the balance of a token holder
Returns
The balance
Arguments
Name | Type | Description |
_owner | address | The address from which the balance will be retrieved |
approve
Used by msg.sender
to approve _spender
to spend _value
tokens
Returns
Whether the approval was successful or not
Arguments
Name | Type | Description |
_spender | address | The address of the account able to transfer the tokens |
_value | uint256 | The amount of tokens to be approved for transfer |
allowance
Returns
Amount of remaining tokens allowed to be spent
Arguments
Name | Type | Description |
_owner | address | The address of the account owning tokens |
_spender | address | The address of the account able to transfer the tokens |
totalSupply
Arguments
Name | Type | Description |
increaseApproval
Increases the amount of tokens that an owner allowed to a spender. approve should be called when allowed[_spender] == 0. To increment allowed value, it is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol
Arguments
Name | Type | Description |
_spender | address | The address which will spend the funds. |
_addedValue | uint256 | The amount of tokens to increase the allowance by. |
decreaseApproval
Decrease the amount of tokens that an owner allowed to a spender.
approve should be called when allowed[_spender] == 0. To decrement
allowed value, it is better to use this function to avoid 2 calls (and wait until
the first transaction is mined)
From MonolithDAO Token.sol
Arguments
Name | Type | Description |
_spender | address | The address which will spend the funds. |
_subtractedValue | uint256 | The amount of tokens to decrease the allowance by. |
Last updated