GoodDollar
The GoodDollar G$ token follows the ERC-20 token standard and also supports ERC-677.
Last updated
The GoodDollar G$ token follows the ERC-20 token standard and also supports ERC-677.
Last updated
Emitted when value
tokens are moved from one account (from
) to another (to
).
Parameter name | Annotation |
---|---|
Note that value
may be zero.
Emitted when the allowance of a spender
for an owner
is set by a call to {approve}. value
is the new allowance.
Parameter name | Annotation |
---|---|
Processes fees from given value and sends remainder to given address.
Parameter name | Annotation |
---|---|
Returns: a boolean that indicates if the operation was successful.
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
.
Returns: a boolean that indicates if the operation was successful.
Transfer tokens from one address to another on behalf of the third party as msg.sender
.
Returns: a boolean that indicates if the operation was successful.
Processes transfer fees and calls ERC677Token transferAndCall function.
Returns: a boolean that indicates if the operation was successful.
Minting function.
Who can execute: An address who is in minter role.
Returns: a boolean that indicates if the operation was successful.
Burns a specific amount of tokens.
Who can execute: An address who is not blocklisted by the administration.
Burns a specific amount of tokens from the target address and decreases an allowance.
Who can execute: An address who is not blocklisted by the administration.
Increase the amount of tokens that an owner allows a spender.
Returns: a boolean that indicates if the operation was successful.
Decrease the amount of tokens that an owner allowed to a spender.
Returns: a boolean that indicates if the operation was successful.
Gets the current transaction fees.
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.
Sets the address that receives the transactional fees.
Who can execute: An adminstrator only.
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
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.
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.
to
The address to be sent to.
value
The value to be processed and then transferred.
spender
The address which will spend the funds.
value
The amount of tokens to be spent.
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.
from
The address to transfer to.
value
The amount to transfer.
data
The data to be used in further execution according to ERC677.
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.
value
The amount of token to be burned..
from
The address which you want to burn tokens from. Must not be in blocklist.
value
The amount of token to be burned.
spender
The address which will spend the funds.
addedValue
The amount of tokens to increase the allowance by.
spender
The address which will spend the funds.
subtractedValue
The amount of tokens to decrease the allowance by.
value
Value the amount of tokens to mint.
_feeRecipient
The new address to receive transactional fees.