GoodDollar
The GoodDollar G$ token follows the ERC-20 token standard and also supports ERC-677.
Events
Transfer
Emitted when value
tokens are moved from one account (from
) to another (to
).
from
The address from which tokens are moved.
to
The address to which tokens are moved.
value
The value to be processed and then transferred.
Note that value
may be zero.
Approval
Emitted when the allowance of a spender
for an owner
is set by a call to {approve}. value
is the new allowance.
owner
The address of the tokens owner.
spender
The address which can spend tokens in allowance.
value
The tokens amount to be spent on behave of the tokens owner.
transfer
Processes fees from given value and sends remainder to given address.
to
The address to be sent to.
value
The value to be processed and then transferred.
Returns: a boolean that indicates if the operation was successful.
approve
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
.
spender
The address which will spend the funds.
value
The amount of tokens to be spent.
Returns: a boolean that indicates if the operation was successful.
transferFrom
Transfer tokens from one address to another on behalf of the third party as msg.sender
.
from
The address which you want to send tokens from.
to
The address which you want to transfer to.
value
The amount of tokens to be transferred.
Returns: a boolean that indicates if the operation was successful.
transferAndCall
Processes transfer fees and calls ERC677Token transferAndCall function.
from
The address to transfer to.
value
The amount to transfer.
data
The data to be used in further execution according to ERC677.
Returns: a boolean that indicates if the operation was successful.
mint
Minting function.
to
The address that will receive the minted tokens. Must be out of blocklist. The blocklist is managed by the administrator of the contract.
value
Value the amount of tokens to mint.
Who can execute: An address who is in minter role.
Returns: a boolean that indicates if the operation was successful.
burn
Burns a specific amount of tokens.
value
The amount of token to be burned..
Who can execute: An address who is not blocklisted by the administration.
burnFrom
Burns a specific amount of tokens from the target address and decreases an allowance.
from
The address which you want to burn tokens from. Must not be in blocklist.
value
The amount of token to be burned.
Who can execute: An address who is not blocklisted by the administration.
increaseAllowance
Increase the amount of tokens that an owner allows a spender.
spender
The address which will spend the funds.
addedValue
The amount of tokens to increase the allowance by.
Returns: a boolean that indicates if the operation was successful.
decreaseAllowance
Decrease the amount of tokens that an owner allowed to a spender.
spender
The address which will spend the funds.
subtractedValue
The amount of tokens to decrease the allowance by.
Returns: a boolean that indicates if the operation was successful.
getFees
Gets the current transaction fees.
value
Value the amount of tokens to mint.
Returns: tuple of uint256
and bool
, first is an absolute amount of fees based on value and the second is whether msg.sender
paying or not.
setFeeRecipient
Sets the address that receives the transactional fees.
_feeRecipient
The new address to receive transactional fees.
Who can execute: An adminstrator only.
Last updated