DAOToken¶
DAOToken, base on zeppelin contract.
Execution cost: No bound available
Deployment cost: less than 901200 gas
Combined cost: No bound available
Constructor¶
Params:
- _name of type
string
- _symbol of type
string
- _cap of type
uint256
Events¶
Approval(address,address,uint256)¶
Execution cost: No bound available
Params:
- owner of type
address
- spender of type
address
- value of type
uint256
Burn(address,uint256)¶
Execution cost: No bound available
Params:
- burner of type
address
- value of type
uint256
Mint(address,uint256)¶
Execution cost: No bound available
Params:
- to of type
address
- amount of type
uint256
MintFinished()¶
Execution cost: No bound available
OwnershipTransferred(address,address)¶
Execution cost: No bound available
Params:
- previousOwner of type
address
- newOwner of type
address
Transfer(address,address,uint256)¶
Execution cost: No bound available
Params:
- from of type
address
- to of type
address
- value of type
uint256
Methods¶
DECIMAL()¶
Execution cost: less than 415 gas
Attributes: constant
Returns:
- output_0 of type
uint256
mintingFinished()¶
Execution cost: less than 459 gas
Attributes: constant
Returns:
- output_0 of type
bool
approve(address,uint256)¶
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
Execution cost: less than 22377 gas
Params:
-
_spender of type
address
The address which will spend the funds.
-
_value of type
uint256
The amount of tokens to be spent.
Returns:
- output_0 of type
bool
increaseApproval(address,uint256,bytes)¶
Addition to StandardToken methods. Increase the amount of tokens that an owner allowed to a spender and execute a call with the sent data. * approve should be called when allowed[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol
Execution cost: No bound available
Params:
-
_spender of type
address
The address which will spend the funds.
-
_addedValue of type
uint256
The amount of tokens to increase the allowance by.
-
_data of type
bytes
ABI-encoded contract call to call
_spender
address.
Returns:
- output_0 of type
bool
allowance(address,address)¶
Function to check the amount of tokens that an owner allowed to a spender.
Execution cost: less than 1159 gas
Attributes: constant
Params:
-
_owner of type
address
address The address which owns the funds.
-
_spender of type
address
address The address which will spend the funds.
Returns:
A uint256 specifying the amount of tokens still available for the spender.
- output_0 of type
uint256
increaseApproval(address,uint256)¶
Increase the amount of tokens that an owner allowed to a spender. * approve should be called when allowed[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol
Execution cost: less than 23283 gas
Params:
-
_spender of type
address
The address which will spend the funds.
-
_addedValue of type
uint256
The amount of tokens to increase the allowance by.
Returns:
- output_0 of type
bool
cap()¶
Execution cost: less than 505 gas
Attributes: constant
Returns:
- output_0 of type
uint256
mint(address,uint256)¶
Function to mint tokens
Execution cost: No bound available
Params:
-
_to of type
address
The address that will receive the minted tokens.
-
_amount of type
uint256
The amount of tokens to mint.
Returns:
A boolean that indicates if the operation was successful.
- output_0 of type
bool
burn(uint256)¶
Burns a specific amount of tokens.
Execution cost: No bound available
Params:
-
_value of type
uint256
The amount of token to be burned.
approve(address,uint256,bytes)¶
Addition to ERC20 token methods. It allows to approve the transfer of value and execute a call with the sent data. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
Execution cost: No bound available
Params:
-
_spender of type
address
The address that will spend the funds.
-
_value of type
uint256
The amount of tokens to be spent.
-
_data of type
bytes
ABI-encoded contract call to call
_to
address.
Returns:
true if the call function was executed successfully
- output_0 of type
bool
decreaseApproval(address,uint256)¶
Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when allowed[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol
Execution cost: No bound available
Params:
-
_spender of type
address
The address which will spend the funds.
-
_subtractedValue of type
uint256
The amount of tokens to decrease the allowance by.
Returns:
- output_0 of type
bool
finishMinting()¶
Function to stop minting new tokens.
Execution cost: less than 22168 gas
Returns:
True if the operation was successful.
- output_0 of type
bool
balanceOf(address)¶
Gets the balance of the specified address.
Execution cost: less than 862 gas
Attributes: constant
Params:
-
_owner of type
address
The address to query the the balance of.
Returns:
An uint256 representing the amount owned by the passed address.
- balance of type
uint256
decreaseApproval(address,uint256,bytes)¶
Addition to StandardToken methods. Decrease the amount of tokens that an owner allowed to a spender and execute a call with the sent data. * approve should be called when allowed[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol
Execution cost: No bound available
Params:
-
_spender of type
address
The address which will spend the funds.
-
_subtractedValue of type
uint256
The amount of tokens to decrease the allowance by.
-
_data of type
bytes
ABI-encoded contract call to call
_spender
address.
Returns:
- output_0 of type
bool
name()¶
Execution cost: No bound available
Attributes: constant
Returns:
- output_0 of type
string
owner()¶
Execution cost: less than 859 gas
Attributes: constant
Returns:
- output_0 of type
address
symbol()¶
Execution cost: No bound available
Attributes: constant
Returns:
- output_0 of type
string
totalSupply()¶
total number of tokens in existence
Execution cost: less than 461 gas
Attributes: constant
Returns:
- output_0 of type
uint256
transfer(address,uint256)¶
transfer token for a specified address
Execution cost: less than 44031 gas
Params:
-
_to of type
address
The address to transfer to.
-
_value of type
uint256
The amount to be transferred.
Returns:
- output_0 of type
bool
transfer(address,uint256,bytes)¶
Addition to ERC20 token methods. Transfer tokens to a specified address and execute a call with the sent data on the same transaction
Execution cost: No bound available
Params:
-
_to of type
address
address The address which you want to transfer to
-
_value of type
uint256
uint256 the amout of tokens to be transfered
-
_data of type
bytes
ABI-encoded contract call to call
_to
address.
Returns:
true if the call function was executed successfully
- output_0 of type
bool
transferFrom(address,address,uint256,bytes)¶
Addition to ERC20 token methods. Transfer tokens from one address to another and make a contract call on the same transaction
Execution cost: No bound available
Params:
-
_from of type
address
The address which you want to send tokens from
-
_to of type
address
The address which you want to transfer to
-
_value of type
uint256
The amout of tokens to be transferred
-
_data of type
bytes
ABI-encoded contract call to call
_to
address.
Returns:
true if the call function was executed successfully
- output_0 of type
bool
transferFrom(address,address,uint256)¶
Transfer tokens from one address to another
Execution cost: No bound available
Params:
-
_from of type
address
address The address which you want to send tokens from
-
_to of type
address
address The address which you want to transfer to
-
_value of type
uint256
uint256 the amount of tokens to be transferred
Returns:
- output_0 of type
bool
transferOwnership(address)¶
Allows the current owner to transfer control of the contract to a newOwner.
Execution cost: less than 23228 gas
Params:
-
newOwner of type
address
The address to transfer ownership to.